Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo
- 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
Information about the session.
Instance Attribute Summary collapse
-
#name ⇒ String
Name of the session.
-
#query_id ⇒ String
Query ID that corresponds to this search API call.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo
Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo.
12267 12268 12269 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12267 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the session. If the auto-session mode is used (when SearchRequest.
session ends with "-"), this field holds the newly generated session name.
Corresponds to the JSON property name
12257 12258 12259 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12257 def name @name end |
#query_id ⇒ String
Query ID that corresponds to this search API call. One session can have
multiple turns, each with a unique query ID. By specifying the session name
and this query ID in the Answer API call, the answer generation happens in the
context of the search results from this search call.
Corresponds to the JSON property queryId
12265 12266 12267 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12265 def query_id @query_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12272 12273 12274 12275 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12272 def update!(**args) @name = args[:name] if args.key?(:name) @query_id = args[:query_id] if args.key?(:query_id) end |