Class: Azure::CognitiveServices::LuisAuthoring::V2_0::Models::LabelTextObject
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::LuisAuthoring::V2_0::Models::LabelTextObject
- Includes:
- MsRestAzure
- Defined in:
- lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/label_text_object.rb
Overview
An object containing the example utterance’s text.
Instance Attribute Summary collapse
-
#id ⇒ Integer
The ID of the Label.
-
#text ⇒ String
The text of the label.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for LabelTextObject class as Ruby Hash.
Instance Attribute Details
#id ⇒ Integer
Returns The ID of the Label.
16 17 18 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/label_text_object.rb', line 16 def id @id end |
#text ⇒ String
Returns The text of the label.
19 20 21 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/label_text_object.rb', line 19 def text @text end |
Class Method Details
.mapper ⇒ Object
Mapper for LabelTextObject class as Ruby Hash. This will be used for serialization/deserialization.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/label_text_object.rb', line 26 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'LabelTextObject', type: { name: 'Composite', class_name: 'LabelTextObject', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'Number' } }, text: { client_side_validation: true, required: false, serialized_name: 'text', type: { name: 'String' } } } } } end |