Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGetSessionRequest

Inherits:
Object
  • Object
show all
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
more...

Overview

Request for GetSession method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGetSessionRequest

Returns a new instance of GoogleCloudDiscoveryengineV1alphaGetSessionRequest.

[View source]

10906
10907
10908
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10906

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)

10896
10897
10898
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10896

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)

10904
10905
10906
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10904

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

10911
10912
10913
10914
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10911

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