Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSessionTurn

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

Represents a turn, including a query from the user and a answer from service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSessionTurn

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSessionTurn.



8009
8010
8011
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8009

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

Instance Attribute Details

#answerString

The resource name of the answer to the user query. Corresponds to the JSON property answer

Returns:

  • (String)


8002
8003
8004
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8002

def answer
  @answer
end

#queryGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQuery

Defines a user inputed query. Corresponds to the JSON property query



8007
8008
8009
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8007

def query
  @query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8014
8015
8016
8017
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8014

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