Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.rb
Overview
The search parameters to use for the ELASTIC_SEARCH spec.
Instance Attribute Summary collapse
-
#index ⇒ String
The ElasticSearch index to use.
-
#num_hits ⇒ Fixnum
Optional.
-
#search_template ⇒ String
The ElasticSearch search template to use.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams
constructor
A new instance of GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams
Returns a new instance of GoogleCloudAiplatformV1beta1ExternalApiElasticSearchParams.
1023 1024 1025 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1023 def initialize(**args) update!(**args) end |
Instance Attribute Details
#index ⇒ String
The ElasticSearch index to use.
Corresponds to the JSON property index
1010 1011 1012 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1010 def index @index end |
#num_hits ⇒ Fixnum
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
1016 1017 1018 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1016 def num_hits @num_hits end |
#search_template ⇒ String
The ElasticSearch search template to use.
Corresponds to the JSON property searchTemplate
1021 1022 1023 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1021 def search_template @search_template end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1028 1029 1030 1031 1032 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 1028 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 |