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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1UserUtterance

Returns a new instance of GoogleCloudDialogflowCxV3beta1UserUtterance.



13730
13731
13732
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13730

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

Instance Attribute Details

#audioString

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

Returns:

  • (String)


13718
13719
13720
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13718

def audio
  @audio
end

#audio_tokensArray<Fixnum>

Corresponds to the JSON property audioTokens

Returns:

  • (Array<Fixnum>)


13723
13724
13725
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13723

def audio_tokens
  @audio_tokens
end

#textString

Corresponds to the JSON property text

Returns:

  • (String)


13728
13729
13730
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13728

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13735
13736
13737
13738
13739
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 13735

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