Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaTextInput

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb

Overview

Defines text input.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaTextInput

Returns a new instance of GoogleCloudDiscoveryengineV1alphaTextInput.



7010
7011
7012
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7010

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

Instance Attribute Details

#contextGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaConversationContext

Defines context of the conversation Corresponds to the JSON property context



7003
7004
7005
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7003

def context
  @context
end

#inputString

Text input. Corresponds to the JSON property input

Returns:

  • (String)


7008
7009
7010
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7008

def input
  @input
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7015
7016
7017
7018
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7015

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