Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSessionTurn
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSessionTurn
- 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
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.
-
#query ⇒ Google::Apis::DiscoveryengineV1alpha::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.
9665 9666 9667 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9665 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ String
The resource name of the answer to the user query.
Corresponds to the JSON property answer
9658 9659 9660 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9658 def answer @answer end |
#query ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaQuery
Defines a user inputed query.
Corresponds to the JSON property query
9663 9664 9665 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9663 def query @query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9670 9671 9672 9673 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9670 def update!(**args) @answer = args[:answer] if args.key?(:answer) @query = args[:query] if args.key?(:query) end |