Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaGetSessionRequest

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

Request for GetSession method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGetSessionRequest

Returns a new instance of GoogleCloudDiscoveryengineV1alphaGetSessionRequest.



13955
13956
13957
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 13955

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)


13945
13946
13947
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 13945

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)


13953
13954
13955
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 13953

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13960
13961
13962
13963
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 13960

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