class Azure::CognitiveServices::TextAnalytics::V2_0::Models::MatchRecord

Model object.

Attributes

length[RW]

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

offset[RW]

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

text[RW]

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

Public Class Methods

mapper() click to toggle source

Mapper for MatchRecord class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/v2.0/generated/azure_cognitiveservices_textanalytics/models/match_record.rb, line 32
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