Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1UserUtterance
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1UserUtterance
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb
Overview
UserUtterance represents one message sent by the customer.
Instance Attribute Summary collapse
-
#audio ⇒ String
Optional.
-
#audio_tokens ⇒ Array<Fixnum>
Optional.
-
#text ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1UserUtterance
constructor
A new instance of GoogleCloudDialogflowCxV3beta1UserUtterance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1UserUtterance
Returns a new instance of GoogleCloudDialogflowCxV3beta1UserUtterance.
15595 15596 15597 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15595 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audio ⇒ String
Optional. Audio input.
Corresponds to the JSON property audio
NOTE: Values are automatically base64 encoded/decoded in the client library.
15583 15584 15585 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15583 def audio @audio end |
#audio_tokens ⇒ Array<Fixnum>
Optional. Tokens of the audio input.
Corresponds to the JSON property audioTokens
15588 15589 15590 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15588 def audio_tokens @audio_tokens end |
#text ⇒ String
Required. Message content in text.
Corresponds to the JSON property text
15593 15594 15595 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15593 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15600 15601 15602 15603 15604 |
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15600 def update!(**args) @audio = args[:audio] if args.key?(:audio) @audio_tokens = args[:audio_tokens] if args.key?(:audio_tokens) @text = args[:text] if args.key?(:text) end |