Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaTextInput

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

Overview

Defines text input.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaTextInput

Returns a new instance of GoogleCloudDiscoveryengineV1betaTextInput.



7948
7949
7950
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7948

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

Instance Attribute Details

#contextGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaConversationContext

Defines context of the conversation Corresponds to the JSON property context



7941
7942
7943
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7941

def context
  @context
end

#inputString

Text input. Corresponds to the JSON property input

Returns:

  • (String)


7946
7947
7948
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7946

def input
  @input
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7953
7954
7955
7956
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7953

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