Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1TextInput

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

Overview

Defines text input.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1TextInput

Returns a new instance of GoogleCloudDiscoveryengineV1TextInput.



7621
7622
7623
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7621

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

Instance Attribute Details

#contextGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ConversationContext

Defines context of the conversation Corresponds to the JSON property context



7614
7615
7616
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7614

def context
  @context
end

#inputString

Text input. Corresponds to the JSON property input

Returns:

  • (String)


7619
7620
7621
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7619

def input
  @input
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7626
7627
7628
7629
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 7626

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