Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechWordInfo
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechWordInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/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) ⇒ GoogleCloudDialogflowV2beta1SpeechWordInfo
constructor
A new instance of GoogleCloudDialogflowV2beta1SpeechWordInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SpeechWordInfo
Returns a new instance of GoogleCloudDialogflowV2beta1SpeechWordInfo.
19825 19826 19827 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19825 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Corresponds to the JSON property confidence
19808 19809 19810 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19808 def confidence @confidence end |
#end_offset ⇒ String
Corresponds to the JSON property endOffset
19813 19814 19815 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19813 def end_offset @end_offset end |
#start_offset ⇒ String
Corresponds to the JSON property startOffset
19818 19819 19820 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19818 def start_offset @start_offset end |
#word ⇒ String
Corresponds to the JSON property word
19823 19824 19825 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19823 def word @word end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19830 19831 19832 19833 19834 19835 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19830 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 |