# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::CognitiveServices::TextAnalytics::V2_0
  module Models
    #
    # Model object.
    #
    #
    class DetectedLanguage

      include MsRestAzure

      # @return [String] Long name of a detected language (e.g. English,
      # French).
      attr_accessor :name

      # @return [String] A two letter representation of the detected language
      # according to the ISO 639-1 standard (e.g. en, fr).
      attr_accessor :iso6391name

      # @return [Float] A confidence score between 0 and 1. Scores close to 1
      # indicate 100% certainty that the identified language is true.
      attr_accessor :score


      #
      # Mapper for DetectedLanguage class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DetectedLanguage',
          type: {
            name: 'Composite',
            class_name: 'DetectedLanguage',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              iso6391name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'iso6391Name',
                type: {
                  name: 'String'
                }
              },
              score: {
                client_side_validation: true,
                required: false,
                serialized_name: 'score',
                type: {
                  name: 'Double'
                }
              }
            }
          }
        }
      end
    end
  end
end
