Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSessionTurn
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSessionTurn
- 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
-
#answer ⇒ String
The resource name of the answer to the user query.
-
#detailed_answer ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaAnswer
Defines an answer.
-
#query ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQuery
Defines a user inputed query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSessionTurn
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSessionTurn.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSessionTurn
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSessionTurn.
16666 16667 16668 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 16666 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ String
The resource name of the answer to the user query. Only set if the answer
generation (/answer API call) happened in this turn.
Corresponds to the JSON property answer
16654 16655 16656 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 16654 def answer @answer end |
#detailed_answer ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaAnswer
Defines an answer.
Corresponds to the JSON property detailedAnswer
16659 16660 16661 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 16659 def detailed_answer @detailed_answer end |
#query ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaQuery
Defines a user inputed query.
Corresponds to the JSON property query
16664 16665 16666 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 16664 def query @query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16671 16672 16673 16674 16675 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 16671 def update!(**args) @answer = args[:answer] if args.key?(:answer) @detailed_answer = args[:detailed_answer] if args.key?(:detailed_answer) @query = args[:query] if args.key?(:query) end |