# 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 MatchRecord

      include MsRestAzure

      # @return [String] Entity text as appears in the request.
      attr_accessor :text

      # @return [Integer] Start position (in Unicode characters) for the entity
      # match text.
      attr_accessor :offset

      # @return [Integer] Length (in Unicode characters) for the entity match
      # text.
      attr_accessor :length


      #
      # Mapper for MatchRecord class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'MatchRecord',
          type: {
            name: 'Composite',
            class_name: 'MatchRecord',
            model_properties: {
              text: {
                client_side_validation: true,
                required: false,
                serialized_name: 'text',
                type: {
                  name: 'String'
                }
              },
              offset: {
                client_side_validation: true,
                required: false,
                serialized_name: 'offset',
                type: {
                  name: 'Number'
                }
              },
              length: {
                client_side_validation: true,
                required: false,
                serialized_name: 'length',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
