# 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::LuisAuthoring::V2_0
  module Models
    #
    # A labeled example.
    #
    class ExampleLabelObject

      include MsRestAzure

      # @return [String] The sample's utterance.
      attr_accessor :text

      # @return [Array<EntityLabelObject>] The identified entities within the
      # utterance.
      attr_accessor :entity_labels

      # @return [String] The identified intent representing the utterance.
      attr_accessor :intent_name


      #
      # Mapper for ExampleLabelObject class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ExampleLabelObject',
          type: {
            name: 'Composite',
            class_name: 'ExampleLabelObject',
            model_properties: {
              text: {
                client_side_validation: true,
                required: false,
                serialized_name: 'text',
                type: {
                  name: 'String'
                }
              },
              entity_labels: {
                client_side_validation: true,
                required: false,
                serialized_name: 'entityLabels',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'EntityLabelObjectElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'EntityLabelObject'
                      }
                  }
                }
              },
              intent_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'intentName',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
