Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SpeechWordInfo
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SpeechWordInfo
- 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) ⇒ 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.
21997 21998 21999 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 21997 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Corresponds to the JSON property confidence
21980 21981 21982 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 21980 def confidence @confidence end |
#end_offset ⇒ String
Corresponds to the JSON property endOffset
21985 21986 21987 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 21985 def end_offset @end_offset end |
#start_offset ⇒ String
Corresponds to the JSON property startOffset
21990 21991 21992 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 21990 def start_offset @start_offset end |
#word ⇒ String
Corresponds to the JSON property word
21995 21996 21997 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 21995 def word @word end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22002 22003 22004 22005 22006 22007 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22002 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 |