Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams

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

The search parameters to use for the ELASTIC_SEARCH spec.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams

Returns a new instance of GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams.



14851
14852
14853
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14851

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

Instance Attribute Details

#indexString

The ElasticSearch index to use. Corresponds to the JSON property index

Returns:

  • (String)


14838
14839
14840
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14838

def index
  @index
end

#num_hitsFixnum

Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the num_hits param. Corresponds to the JSON property numHits

Returns:

  • (Fixnum)


14844
14845
14846
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14844

def num_hits
  @num_hits
end

#search_templateString

The ElasticSearch search template to use. Corresponds to the JSON property searchTemplate

Returns:

  • (String)


14849
14850
14851
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14849

def search_template
  @search_template
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14856
14857
14858
14859
14860
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 14856

def update!(**args)
  @index = args[:index] if args.key?(:index)
  @num_hits = args[:num_hits] if args.key?(:num_hits)
  @search_template = args[:search_template] if args.key?(:search_template)
end