Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2SpeechWordInfo
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowV2SpeechWordInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/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.
16552 16553 16554 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16552 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Corresponds to the JSON property confidence
16535 16536 16537 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16535 def confidence @confidence end |
#end_offset ⇒ String
Corresponds to the JSON property endOffset
16540 16541 16542 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16540 def end_offset @end_offset end |
#start_offset ⇒ String
Corresponds to the JSON property startOffset
16545 16546 16547 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16545 def start_offset @start_offset end |
#word ⇒ String
Corresponds to the JSON property word
16550 16551 16552 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16550 def word @word end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16557 16558 16559 16560 16561 16562 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16557 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 |