Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1UserUtterance

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

Instance Method Summary collapse

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

#audioString

Optional. Audio input. Corresponds to the JSON property audio NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


15583
15584
15585
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15583

def audio
  @audio
end

#audio_tokensArray<Fixnum>

Optional. Tokens of the audio input. Corresponds to the JSON property audioTokens

Returns:

  • (Array<Fixnum>)


15588
15589
15590
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15588

def audio_tokens
  @audio_tokens
end

#textString

Required. Message content in text. Corresponds to the JSON property text

Returns:

  • (String)


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