Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveMemoriesRequestSimpleRetrievalParams

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Parameters for simple (non-similarity search) retrieval.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RetrieveMemoriesRequestSimpleRetrievalParams

Returns a new instance of GoogleCloudAiplatformV1beta1RetrieveMemoriesRequestSimpleRetrievalParams.



40680
40681
40682
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40680

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

Instance Attribute Details

#page_sizeFixnum

Optional. The maximum number of memories to return. The service may return fewer than this value. If unspecified, at most 3 memories will be returned. The maximum value is 100; values above 100 will be coerced to 100. Corresponds to the JSON property pageSize

Returns:

  • (Fixnum)


40672
40673
40674
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40672

def page_size
  @page_size
end

#page_tokenString

Optional. A page token, received from a previous RetrieveMemories call. Provide this to retrieve the subsequent page. Corresponds to the JSON property pageToken

Returns:

  • (String)


40678
40679
40680
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40678

def page_token
  @page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



40685
40686
40687
40688
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 40685

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