Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechWordInfo
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechWordInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Instance Attribute Summary collapse
-
#confidence ⇒ Float
Corresponds to the JSON property
confidence. -
#end_offset ⇒ String
Corresponds to the JSON property
endOffset. -
#start_offset ⇒ String
Corresponds to the JSON property
startOffset. -
#word ⇒ String
Corresponds to the JSON property
word.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2SpeechWordInfo
constructor
A new instance of GoogleCloudDialogflowV2SpeechWordInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2SpeechWordInfo
Returns a new instance of GoogleCloudDialogflowV2SpeechWordInfo.
15539 15540 15541 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15539 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Corresponds to the JSON property confidence
15522 15523 15524 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15522 def confidence @confidence end |
#end_offset ⇒ String
Corresponds to the JSON property endOffset
15527 15528 15529 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15527 def end_offset @end_offset end |
#start_offset ⇒ String
Corresponds to the JSON property startOffset
15532 15533 15534 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15532 def start_offset @start_offset end |
#word ⇒ String
Corresponds to the JSON property word
15537 15538 15539 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15537 def word @word end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15544 15545 15546 15547 15548 15549 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15544 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @end_offset = args[:end_offset] if args.key?(:end_offset) @start_offset = args[:start_offset] if args.key?(:start_offset) @word = args[:word] if args.key?(:word) end |