Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SpeechWordInfo
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SpeechWordInfo
- 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) ⇒ 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.
10153 10154 10155 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10153 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Corresponds to the JSON property confidence
10136 10137 10138 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10136 def confidence @confidence end |
#end_offset ⇒ String
Corresponds to the JSON property endOffset
10141 10142 10143 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10141 def end_offset @end_offset end |
#start_offset ⇒ String
Corresponds to the JSON property startOffset
10146 10147 10148 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10146 def start_offset @start_offset end |
#word ⇒ String
Corresponds to the JSON property word
10151 10152 10153 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10151 def word @word end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10158 10159 10160 10161 10162 10163 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10158 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 |