Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechContext

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SpeechContext

Returns a new instance of GoogleCloudDialogflowV2SpeechContext.



15441
15442
15443
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15441

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#boostFloat

Corresponds to the JSON property boost

Returns:

  • (Float)


15434
15435
15436
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15434

def boost
  @boost
end

#phrasesArray<String>

Corresponds to the JSON property phrases

Returns:

  • (Array<String>)


15439
15440
15441
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15439

def phrases
  @phrases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15446
15447
15448
15449
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15446

def update!(**args)
  @boost = args[:boost] if args.key?(:boost)
  @phrases = args[:phrases] if args.key?(:phrases)
end