Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechContext

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SpeechContext

Returns a new instance of GoogleCloudDialogflowV2beta1SpeechContext.



19741
19742
19743
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19741

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

Instance Attribute Details

#boostFloat

Corresponds to the JSON property boost

Returns:

  • (Float)


19734
19735
19736
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19734

def boost
  @boost
end

#phrasesArray<String>

Corresponds to the JSON property phrases

Returns:

  • (Array<String>)


19739
19740
19741
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19739

def phrases
  @phrases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19746
19747
19748
19749
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19746

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