Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaGetSessionRequest

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

Request for GetSession method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGetSessionRequest

Returns a new instance of GoogleCloudDiscoveryengineV1alphaGetSessionRequest.



6416
6417
6418
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6416

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

Instance Attribute Details

#include_answer_detailsBoolean Also known as: include_answer_details?

Optional. If set to true, the full session including all answer details will be returned. Corresponds to the JSON property includeAnswerDetails

Returns:

  • (Boolean)


6406
6407
6408
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6406

def include_answer_details
  @include_answer_details
end

#nameString

Required. The resource name of the Session to get. Format: projects/project/ locations/location/collections/collection/dataStores/data_store_id/ sessions/session_id` Corresponds to the JSON propertyname`

Returns:

  • (String)


6414
6415
6416
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6414

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6421
6422
6423
6424
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6421

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