Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechContext
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechContext
- 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
-
#boost ⇒ Float
Corresponds to the JSON property
boost. -
#phrases ⇒ Array<String>
Corresponds to the JSON property
phrases.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SpeechContext
constructor
A new instance of GoogleCloudDialogflowV2beta1SpeechContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SpeechContext
Returns a new instance of GoogleCloudDialogflowV2beta1SpeechContext.
20024 20025 20026 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20024 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boost ⇒ Float
Corresponds to the JSON property boost
20017 20018 20019 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20017 def boost @boost end |
#phrases ⇒ Array<String>
Corresponds to the JSON property phrases
20022 20023 20024 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20022 def phrases @phrases end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
20029 20030 20031 20032 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20029 def update!(**args) @boost = args[:boost] if args.key?(:boost) @phrases = args[:phrases] if args.key?(:phrases) end |