google-cloud-discovery_engine-v1 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/v1/completion_service/client.rb +228 -3
- data/lib/google/cloud/discovery_engine/v1/completion_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/client.rb +214 -3
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/completion_service/rest/service_stub.rb +136 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/client.rb +875 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/paths.rb +167 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/rest/client.rb +814 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/rest/service_stub.rb +440 -0
- data/lib/google/cloud/discovery_engine/v1/control_service/rest.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/control_service.rb +58 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/client.rb +911 -135
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/paths.rb +199 -0
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/client.rb +733 -6
- data/lib/google/cloud/discovery_engine/v1/conversational_search_service/rest/service_stub.rb +520 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1/data_store_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/data_store_service/paths.rb +45 -0
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/client.rb +15 -7
- data/lib/google/cloud/discovery_engine/v1/data_store_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/document_service/client.rb +26 -14
- data/lib/google/cloud/discovery_engine/v1/document_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/client.rb +26 -14
- data/lib/google/cloud/discovery_engine/v1/document_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/client.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/client.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/engine_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/client.rb +471 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/client.rb +438 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/grounded_generation_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/client.rb +485 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/operations.rb +809 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/paths.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/client.rb +452 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/operations.rb +1114 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1/project_service/rest.rb +54 -0
- data/lib/google/cloud/discovery_engine/v1/project_service.rb +57 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/client.rb +481 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/credentials.rb +47 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/paths.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest/client.rb +448 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest/service_stub.rb +129 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service/rest.rb +52 -0
- data/lib/google/cloud/discovery_engine/v1/rank_service.rb +55 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/client.rb +24 -19
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/paths.rb +66 -0
- data/lib/google/cloud/discovery_engine/v1/recommendation_service/rest/client.rb +24 -19
- data/lib/google/cloud/discovery_engine/v1/rest.rb +4 -0
- data/lib/google/cloud/discovery_engine/v1/schema_service/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1/schema_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/client.rb +18 -10
- data/lib/google/cloud/discovery_engine/v1/schema_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/search_service/client.rb +57 -9
- data/lib/google/cloud/discovery_engine/v1/search_service/paths.rb +68 -0
- data/lib/google/cloud/discovery_engine/v1/search_service/rest/client.rb +57 -9
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/client.rb +27 -12
- data/lib/google/cloud/discovery_engine/v1/site_search_engine_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1/user_event_service/operations.rb +13 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/paths.rb +21 -0
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/client.rb +23 -6
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/operations.rb +28 -5
- data/lib/google/cloud/discovery_engine/v1/user_event_service/rest/service_stub.rb +15 -0
- data/lib/google/cloud/discovery_engine/v1/version.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1.rb +4 -0
- data/lib/google/cloud/discoveryengine/v1/answer_pb.rb +69 -0
- data/lib/google/cloud/discoveryengine/v1/chunk_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1/common_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/completion_pb.rb +2 -1
- data/lib/google/cloud/discoveryengine/v1/completion_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/completion_service_services_pb.rb +8 -0
- data/lib/google/cloud/discoveryengine/v1/control_pb.rb +55 -0
- data/lib/google/cloud/discoveryengine/v1/control_service_pb.rb +57 -0
- data/lib/google/cloud/discoveryengine/v1/control_service_services_pb.rb +69 -0
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_pb.rb +32 -1
- data/lib/google/cloud/discoveryengine/v1/conversational_search_service_services_pb.rb +25 -0
- data/lib/google/cloud/discoveryengine/v1/data_store_pb.rb +3 -1
- data/lib/google/cloud/discoveryengine/v1/document_processing_config_pb.rb +51 -0
- data/lib/google/cloud/discoveryengine/v1/document_service_services_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_pb.rb +52 -0
- data/lib/google/cloud/discoveryengine/v1/grounded_generation_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1/grounding_pb.rb +46 -0
- data/lib/google/cloud/discoveryengine/v1/import_config_pb.rb +6 -1
- data/lib/google/cloud/discoveryengine/v1/project_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/project_service_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1/project_service_services_pb.rb +51 -0
- data/lib/google/cloud/discoveryengine/v1/purge_config_pb.rb +4 -1
- data/lib/google/cloud/discoveryengine/v1/rank_service_pb.rb +49 -0
- data/lib/google/cloud/discoveryengine/v1/rank_service_services_pb.rb +45 -0
- data/lib/google/cloud/discoveryengine/v1/search_service_pb.rb +9 -1
- data/lib/google/cloud/discoveryengine/v1/session_pb.rb +50 -0
- data/lib/google/cloud/discoveryengine/v1/site_search_engine_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_pb.rb +1 -1
- data/lib/google/cloud/discoveryengine/v1/user_event_service_services_pb.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1/answer.rb +375 -0
- data/proto_docs/google/cloud/discoveryengine/v1/chunk.rb +119 -0
- data/proto_docs/google/cloud/discoveryengine/v1/common.rb +16 -0
- data/proto_docs/google/cloud/discoveryengine/v1/completion.rb +31 -0
- data/proto_docs/google/cloud/discoveryengine/v1/control.rb +207 -0
- data/proto_docs/google/cloud/discoveryengine/v1/control_service.rb +126 -0
- data/proto_docs/google/cloud/discoveryengine/v1/conversation.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb +529 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1/data_store_service.rb +2 -2
- data/proto_docs/google/cloud/discoveryengine/v1/document.rb +1 -1
- data/proto_docs/google/cloud/discoveryengine/v1/document_processing_config.rb +143 -0
- data/proto_docs/google/cloud/discoveryengine/v1/document_service.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1/engine.rb +3 -3
- data/proto_docs/google/cloud/discoveryengine/v1/grounded_generation_service.rb +144 -0
- data/proto_docs/google/cloud/discoveryengine/v1/grounding.rb +79 -0
- data/proto_docs/google/cloud/discoveryengine/v1/import_config.rb +118 -4
- data/proto_docs/google/cloud/discoveryengine/v1/project.rb +106 -0
- data/proto_docs/google/cloud/discoveryengine/v1/project_service.rb +57 -0
- data/proto_docs/google/cloud/discoveryengine/v1/purge_config.rb +42 -0
- data/proto_docs/google/cloud/discoveryengine/v1/rank_service.rb +124 -0
- data/proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb +20 -19
- data/proto_docs/google/cloud/discoveryengine/v1/schema_service.rb +5 -5
- data/proto_docs/google/cloud/discoveryengine/v1/search_service.rb +230 -20
- data/proto_docs/google/cloud/discoveryengine/v1/session.rb +88 -0
- data/proto_docs/google/cloud/discoveryengine/v1/site_search_engine.rb +3 -0
- data/proto_docs/google/cloud/discoveryengine/v1/user_event.rb +24 -3
- data/proto_docs/google/cloud/discoveryengine/v1/user_event_service.rb +13 -1
- metadata +58 -2
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -181,12 +184,13 @@ module Google
|
|
181
184
|
# Customize the options with defaults
|
182
185
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
186
|
|
184
|
-
# Set x-goog-api-client
|
187
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
185
188
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
189
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
190
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
188
191
|
transports_version_send: [:rest]
|
189
192
|
|
193
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
190
194
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
191
195
|
|
192
196
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -269,12 +273,13 @@ module Google
|
|
269
273
|
# Customize the options with defaults
|
270
274
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
271
275
|
|
272
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
277
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
279
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
276
280
|
transports_version_send: [:rest]
|
277
281
|
|
282
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
283
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
284
|
|
280
285
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -351,12 +356,13 @@ module Google
|
|
351
356
|
# Customize the options with defaults
|
352
357
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
353
358
|
|
354
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
362
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
358
363
|
transports_version_send: [:rest]
|
359
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
367
|
|
362
368
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -438,12 +444,13 @@ module Google
|
|
438
444
|
# Customize the options with defaults
|
439
445
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
440
446
|
|
441
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
450
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
445
451
|
transports_version_send: [:rest]
|
446
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
455
|
|
449
456
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
@@ -1077,7 +1084,23 @@ module Google
|
|
1077
1084
|
uri_template: "/v1/{name}:cancel",
|
1078
1085
|
body: "*",
|
1079
1086
|
matches: [
|
1080
|
-
["name", %r{^operations
|
1087
|
+
["name", %r{^projects/[^/]+/operations/[^/]+/?$}, false]
|
1088
|
+
]
|
1089
|
+
)
|
1090
|
+
.with_bindings(
|
1091
|
+
uri_method: :post,
|
1092
|
+
uri_template: "/v1/{name}:cancel",
|
1093
|
+
body: "*",
|
1094
|
+
matches: [
|
1095
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/collections/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1096
|
+
]
|
1097
|
+
)
|
1098
|
+
.with_bindings(
|
1099
|
+
uri_method: :post,
|
1100
|
+
uri_template: "/v1/{name}:cancel",
|
1101
|
+
body: "*",
|
1102
|
+
matches: [
|
1103
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/dataStores/[^/]+/branches/[^/]+/operations/[^/]+/?$}, false]
|
1081
1104
|
]
|
1082
1105
|
)
|
1083
1106
|
transcoder.transcode request_pb
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for search.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -193,7 +196,7 @@ module Google
|
|
193
196
|
# @param options [::Gapic::CallOptions, ::Hash]
|
194
197
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
195
198
|
#
|
196
|
-
# @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil)
|
199
|
+
# @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, language_code: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil, search_as_you_type_spec: nil, session: nil, session_spec: nil)
|
197
200
|
# Pass arguments to `search` via keyword arguments. Note that at
|
198
201
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
199
202
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -244,7 +247,10 @@ module Google
|
|
244
247
|
#
|
245
248
|
# If this field is negative, an `INVALID_ARGUMENT` is returned.
|
246
249
|
# @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DataStoreSpec, ::Hash>]
|
247
|
-
#
|
250
|
+
# Specs defining dataStores to filter on in a search call and configurations
|
251
|
+
# for those dataStores. This is only considered for engines with multiple
|
252
|
+
# dataStores use case. For single dataStore within an engine, they should
|
253
|
+
# use the specs at the top level.
|
248
254
|
# @param filter [::String]
|
249
255
|
# The filter syntax consists of an expression language for constructing a
|
250
256
|
# predicate from one or more fields of the documents being filtered. Filter
|
@@ -278,7 +284,9 @@ module Google
|
|
278
284
|
# The order in which documents are returned. Documents can be ordered by
|
279
285
|
# a field in an {::Google::Cloud::DiscoveryEngine::V1::Document Document} object.
|
280
286
|
# Leave it unset if ordered by relevance. `order_by` expression is
|
281
|
-
# case-sensitive.
|
287
|
+
# case-sensitive.
|
288
|
+
#
|
289
|
+
# For more information on ordering for retail search, see
|
282
290
|
# [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
|
283
291
|
#
|
284
292
|
# If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
@@ -287,6 +295,12 @@ module Google
|
|
287
295
|
# Highly recommended for analytics.
|
288
296
|
# {::Google::Cloud::DiscoveryEngine::V1::UserInfo#user_agent UserInfo.user_agent}
|
289
297
|
# is used to deduce `device_type` for analytics.
|
298
|
+
# @param language_code [::String]
|
299
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
300
|
+
# information, see [Standard
|
301
|
+
# fields](https://cloud.google.com/apis/design/standard_fields). This field
|
302
|
+
# helps to better interpret the query. If a value isn't specified, the query
|
303
|
+
# language code is automatically detected, which may not be accurate.
|
290
304
|
# @param facet_specs [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchRequest::FacetSpec, ::Hash>]
|
291
305
|
# Facet specifications for faceted search. If empty, no facets are returned.
|
292
306
|
#
|
@@ -295,7 +309,7 @@ module Google
|
|
295
309
|
# @param boost_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::BoostSpec, ::Hash]
|
296
310
|
# Boost specification to boost certain documents.
|
297
311
|
# For more information on boosting, see
|
298
|
-
# [Boosting](https://cloud.google.com/
|
312
|
+
# [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
|
299
313
|
# @param params [::Hash{::String => ::Google::Protobuf::Value, ::Hash}]
|
300
314
|
# Additional search parameters.
|
301
315
|
#
|
@@ -303,8 +317,7 @@ module Google
|
|
303
317
|
#
|
304
318
|
# * `user_country_code`: string. Default empty. If set to non-empty, results
|
305
319
|
# are restricted or boosted based on the location provided.
|
306
|
-
#
|
307
|
-
# user_country_code: "au"
|
320
|
+
# For example, `user_country_code: "au"`
|
308
321
|
#
|
309
322
|
# For available codes see [Country
|
310
323
|
# Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
|
@@ -312,8 +325,7 @@ module Google
|
|
312
325
|
# * `search_type`: double. Default empty. Enables non-webpage searching
|
313
326
|
# depending on the value. The only valid non-default value is 1,
|
314
327
|
# which enables image searching.
|
315
|
-
#
|
316
|
-
# search_type: 1
|
328
|
+
# For example, `search_type: 1`
|
317
329
|
# @param query_expansion_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::QueryExpansionSpec, ::Hash]
|
318
330
|
# The query expansion specification that specifies the conditions under which
|
319
331
|
# query expansion occurs.
|
@@ -358,6 +370,41 @@ module Google
|
|
358
370
|
# See [Google Cloud
|
359
371
|
# Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
|
360
372
|
# for more details.
|
373
|
+
# @param search_as_you_type_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::SearchAsYouTypeSpec, ::Hash]
|
374
|
+
# Search as you type configuration. Only supported for the
|
375
|
+
# {::Google::Cloud::DiscoveryEngine::V1::IndustryVertical::MEDIA IndustryVertical.MEDIA}
|
376
|
+
# vertical.
|
377
|
+
# @param session [::String]
|
378
|
+
# The session resource name. Optional.
|
379
|
+
#
|
380
|
+
# Session allows users to do multi-turn /search API calls or coordination
|
381
|
+
# between /search API calls and /answer API calls.
|
382
|
+
#
|
383
|
+
# Example #1 (multi-turn /search API calls):
|
384
|
+
# 1. Call /search API with the auto-session mode (see below).
|
385
|
+
# 2. Call /search API with the session ID generated in the first call.
|
386
|
+
# Here, the previous search query gets considered in query
|
387
|
+
# standing. I.e., if the first query is "How did Alphabet do in 2022?"
|
388
|
+
# and the current query is "How about 2023?", the current query will
|
389
|
+
# be interpreted as "How did Alphabet do in 2023?".
|
390
|
+
#
|
391
|
+
# Example #2 (coordination between /search API calls and /answer API calls):
|
392
|
+
# 1. Call /search API with the auto-session mode (see below).
|
393
|
+
# 2. Call /answer API with the session ID generated in the first call.
|
394
|
+
# Here, the answer generation happens in the context of the search
|
395
|
+
# results from the first search call.
|
396
|
+
#
|
397
|
+
# Auto-session mode: when `projects/.../sessions/-` is used, a new session
|
398
|
+
# gets automatically created. Otherwise, users can use the create-session API
|
399
|
+
# to create a session manually.
|
400
|
+
#
|
401
|
+
# Multi-turn Search feature is currently at private GA stage. Please use
|
402
|
+
# v1alpha or v1beta version instead before we launch this feature to public
|
403
|
+
# GA. Or ask for allowlisting through Google Support team.
|
404
|
+
# @param session_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::SessionSpec, ::Hash]
|
405
|
+
# Session specification.
|
406
|
+
#
|
407
|
+
# Can be used only when `session` is set.
|
361
408
|
#
|
362
409
|
# @yield [response, operation] Access the result along with the RPC operation
|
363
410
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DiscoveryEngine::V1::SearchResponse::SearchResult>]
|
@@ -397,10 +444,11 @@ module Google
|
|
397
444
|
# Customize the options with defaults
|
398
445
|
metadata = @config.rpcs.search.metadata.to_h
|
399
446
|
|
400
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
401
448
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
402
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
403
450
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
451
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
404
452
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
405
453
|
|
406
454
|
header_params = {}
|
@@ -186,6 +186,74 @@ module Google
|
|
186
186
|
resource.call(**args)
|
187
187
|
end
|
188
188
|
|
189
|
+
##
|
190
|
+
# Create a fully-qualified Session resource string.
|
191
|
+
#
|
192
|
+
# @overload session_path(project:, location:, data_store:, session:)
|
193
|
+
# The resource will be in the following format:
|
194
|
+
#
|
195
|
+
# `projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}`
|
196
|
+
#
|
197
|
+
# @param project [String]
|
198
|
+
# @param location [String]
|
199
|
+
# @param data_store [String]
|
200
|
+
# @param session [String]
|
201
|
+
#
|
202
|
+
# @overload session_path(project:, location:, collection:, data_store:, session:)
|
203
|
+
# The resource will be in the following format:
|
204
|
+
#
|
205
|
+
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}`
|
206
|
+
#
|
207
|
+
# @param project [String]
|
208
|
+
# @param location [String]
|
209
|
+
# @param collection [String]
|
210
|
+
# @param data_store [String]
|
211
|
+
# @param session [String]
|
212
|
+
#
|
213
|
+
# @overload session_path(project:, location:, collection:, engine:, session:)
|
214
|
+
# The resource will be in the following format:
|
215
|
+
#
|
216
|
+
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
|
217
|
+
#
|
218
|
+
# @param project [String]
|
219
|
+
# @param location [String]
|
220
|
+
# @param collection [String]
|
221
|
+
# @param engine [String]
|
222
|
+
# @param session [String]
|
223
|
+
#
|
224
|
+
# @return [::String]
|
225
|
+
def session_path **args
|
226
|
+
resources = {
|
227
|
+
"data_store:location:project:session" => (proc do |project:, location:, data_store:, session:|
|
228
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
229
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
230
|
+
raise ::ArgumentError, "data_store cannot contain /" if data_store.to_s.include? "/"
|
231
|
+
|
232
|
+
"projects/#{project}/locations/#{location}/dataStores/#{data_store}/sessions/#{session}"
|
233
|
+
end),
|
234
|
+
"collection:data_store:location:project:session" => (proc do |project:, location:, collection:, data_store:, session:|
|
235
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
236
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
237
|
+
raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
|
238
|
+
raise ::ArgumentError, "data_store cannot contain /" if data_store.to_s.include? "/"
|
239
|
+
|
240
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}/dataStores/#{data_store}/sessions/#{session}"
|
241
|
+
end),
|
242
|
+
"collection:engine:location:project:session" => (proc do |project:, location:, collection:, engine:, session:|
|
243
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
244
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
245
|
+
raise ::ArgumentError, "collection cannot contain /" if collection.to_s.include? "/"
|
246
|
+
raise ::ArgumentError, "engine cannot contain /" if engine.to_s.include? "/"
|
247
|
+
|
248
|
+
"projects/#{project}/locations/#{location}/collections/#{collection}/engines/#{engine}/sessions/#{session}"
|
249
|
+
end)
|
250
|
+
}
|
251
|
+
|
252
|
+
resource = resources[args.keys.sort.join(":")]
|
253
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
254
|
+
resource.call(**args)
|
255
|
+
end
|
256
|
+
|
189
257
|
extend self
|
190
258
|
end
|
191
259
|
end
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for search.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -186,7 +189,7 @@ module Google
|
|
186
189
|
# @param options [::Gapic::CallOptions, ::Hash]
|
187
190
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
188
191
|
#
|
189
|
-
# @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil)
|
192
|
+
# @overload search(serving_config: nil, branch: nil, query: nil, image_query: nil, page_size: nil, page_token: nil, offset: nil, data_store_specs: nil, filter: nil, canonical_filter: nil, order_by: nil, user_info: nil, language_code: nil, facet_specs: nil, boost_spec: nil, params: nil, query_expansion_spec: nil, spell_correction_spec: nil, user_pseudo_id: nil, content_search_spec: nil, safe_search: nil, user_labels: nil, search_as_you_type_spec: nil, session: nil, session_spec: nil)
|
190
193
|
# Pass arguments to `search` via keyword arguments. Note that at
|
191
194
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
192
195
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -237,7 +240,10 @@ module Google
|
|
237
240
|
#
|
238
241
|
# If this field is negative, an `INVALID_ARGUMENT` is returned.
|
239
242
|
# @param data_store_specs [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchRequest::DataStoreSpec, ::Hash>]
|
240
|
-
#
|
243
|
+
# Specs defining dataStores to filter on in a search call and configurations
|
244
|
+
# for those dataStores. This is only considered for engines with multiple
|
245
|
+
# dataStores use case. For single dataStore within an engine, they should
|
246
|
+
# use the specs at the top level.
|
241
247
|
# @param filter [::String]
|
242
248
|
# The filter syntax consists of an expression language for constructing a
|
243
249
|
# predicate from one or more fields of the documents being filtered. Filter
|
@@ -271,7 +277,9 @@ module Google
|
|
271
277
|
# The order in which documents are returned. Documents can be ordered by
|
272
278
|
# a field in an {::Google::Cloud::DiscoveryEngine::V1::Document Document} object.
|
273
279
|
# Leave it unset if ordered by relevance. `order_by` expression is
|
274
|
-
# case-sensitive.
|
280
|
+
# case-sensitive.
|
281
|
+
#
|
282
|
+
# For more information on ordering for retail search, see
|
275
283
|
# [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
|
276
284
|
#
|
277
285
|
# If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
|
@@ -280,6 +288,12 @@ module Google
|
|
280
288
|
# Highly recommended for analytics.
|
281
289
|
# {::Google::Cloud::DiscoveryEngine::V1::UserInfo#user_agent UserInfo.user_agent}
|
282
290
|
# is used to deduce `device_type` for analytics.
|
291
|
+
# @param language_code [::String]
|
292
|
+
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
293
|
+
# information, see [Standard
|
294
|
+
# fields](https://cloud.google.com/apis/design/standard_fields). This field
|
295
|
+
# helps to better interpret the query. If a value isn't specified, the query
|
296
|
+
# language code is automatically detected, which may not be accurate.
|
283
297
|
# @param facet_specs [::Array<::Google::Cloud::DiscoveryEngine::V1::SearchRequest::FacetSpec, ::Hash>]
|
284
298
|
# Facet specifications for faceted search. If empty, no facets are returned.
|
285
299
|
#
|
@@ -288,7 +302,7 @@ module Google
|
|
288
302
|
# @param boost_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::BoostSpec, ::Hash]
|
289
303
|
# Boost specification to boost certain documents.
|
290
304
|
# For more information on boosting, see
|
291
|
-
# [Boosting](https://cloud.google.com/
|
305
|
+
# [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
|
292
306
|
# @param params [::Hash{::String => ::Google::Protobuf::Value, ::Hash}]
|
293
307
|
# Additional search parameters.
|
294
308
|
#
|
@@ -296,8 +310,7 @@ module Google
|
|
296
310
|
#
|
297
311
|
# * `user_country_code`: string. Default empty. If set to non-empty, results
|
298
312
|
# are restricted or boosted based on the location provided.
|
299
|
-
#
|
300
|
-
# user_country_code: "au"
|
313
|
+
# For example, `user_country_code: "au"`
|
301
314
|
#
|
302
315
|
# For available codes see [Country
|
303
316
|
# Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
|
@@ -305,8 +318,7 @@ module Google
|
|
305
318
|
# * `search_type`: double. Default empty. Enables non-webpage searching
|
306
319
|
# depending on the value. The only valid non-default value is 1,
|
307
320
|
# which enables image searching.
|
308
|
-
#
|
309
|
-
# search_type: 1
|
321
|
+
# For example, `search_type: 1`
|
310
322
|
# @param query_expansion_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::QueryExpansionSpec, ::Hash]
|
311
323
|
# The query expansion specification that specifies the conditions under which
|
312
324
|
# query expansion occurs.
|
@@ -351,6 +363,41 @@ module Google
|
|
351
363
|
# See [Google Cloud
|
352
364
|
# Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
|
353
365
|
# for more details.
|
366
|
+
# @param search_as_you_type_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::SearchAsYouTypeSpec, ::Hash]
|
367
|
+
# Search as you type configuration. Only supported for the
|
368
|
+
# {::Google::Cloud::DiscoveryEngine::V1::IndustryVertical::MEDIA IndustryVertical.MEDIA}
|
369
|
+
# vertical.
|
370
|
+
# @param session [::String]
|
371
|
+
# The session resource name. Optional.
|
372
|
+
#
|
373
|
+
# Session allows users to do multi-turn /search API calls or coordination
|
374
|
+
# between /search API calls and /answer API calls.
|
375
|
+
#
|
376
|
+
# Example #1 (multi-turn /search API calls):
|
377
|
+
# 1. Call /search API with the auto-session mode (see below).
|
378
|
+
# 2. Call /search API with the session ID generated in the first call.
|
379
|
+
# Here, the previous search query gets considered in query
|
380
|
+
# standing. I.e., if the first query is "How did Alphabet do in 2022?"
|
381
|
+
# and the current query is "How about 2023?", the current query will
|
382
|
+
# be interpreted as "How did Alphabet do in 2023?".
|
383
|
+
#
|
384
|
+
# Example #2 (coordination between /search API calls and /answer API calls):
|
385
|
+
# 1. Call /search API with the auto-session mode (see below).
|
386
|
+
# 2. Call /answer API with the session ID generated in the first call.
|
387
|
+
# Here, the answer generation happens in the context of the search
|
388
|
+
# results from the first search call.
|
389
|
+
#
|
390
|
+
# Auto-session mode: when `projects/.../sessions/-` is used, a new session
|
391
|
+
# gets automatically created. Otherwise, users can use the create-session API
|
392
|
+
# to create a session manually.
|
393
|
+
#
|
394
|
+
# Multi-turn Search feature is currently at private GA stage. Please use
|
395
|
+
# v1alpha or v1beta version instead before we launch this feature to public
|
396
|
+
# GA. Or ask for allowlisting through Google Support team.
|
397
|
+
# @param session_spec [::Google::Cloud::DiscoveryEngine::V1::SearchRequest::SessionSpec, ::Hash]
|
398
|
+
# Session specification.
|
399
|
+
#
|
400
|
+
# Can be used only when `session` is set.
|
354
401
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
355
402
|
# @yieldparam result [::Google::Cloud::DiscoveryEngine::V1::SearchResponse]
|
356
403
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -389,12 +436,13 @@ module Google
|
|
389
436
|
# Customize the options with defaults
|
390
437
|
call_metadata = @config.rpcs.search.metadata.to_h
|
391
438
|
|
392
|
-
# Set x-goog-api-client
|
439
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
393
440
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
394
441
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
395
442
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION,
|
396
443
|
transports_version_send: [:rest]
|
397
444
|
|
445
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
398
446
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
399
447
|
|
400
448
|
options.apply_defaults timeout: @config.rpcs.search.timeout,
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for managing site search related resources.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "discoveryengine.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -252,10 +255,11 @@ module Google
|
|
252
255
|
# Customize the options with defaults
|
253
256
|
metadata = @config.rpcs.get_site_search_engine.metadata.to_h
|
254
257
|
|
255
|
-
# Set x-goog-api-client
|
258
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
256
259
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
257
260
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
258
261
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
262
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
259
263
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
260
264
|
|
261
265
|
header_params = {}
|
@@ -349,10 +353,11 @@ module Google
|
|
349
353
|
# Customize the options with defaults
|
350
354
|
metadata = @config.rpcs.create_target_site.metadata.to_h
|
351
355
|
|
352
|
-
# Set x-goog-api-client
|
356
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
353
357
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
354
358
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
355
359
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
360
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
356
361
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
357
362
|
|
358
363
|
header_params = {}
|
@@ -449,10 +454,11 @@ module Google
|
|
449
454
|
# Customize the options with defaults
|
450
455
|
metadata = @config.rpcs.batch_create_target_sites.metadata.to_h
|
451
456
|
|
452
|
-
# Set x-goog-api-client
|
457
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
453
458
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
454
459
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
455
460
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
461
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
456
462
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
457
463
|
|
458
464
|
header_params = {}
|
@@ -544,10 +550,11 @@ module Google
|
|
544
550
|
# Customize the options with defaults
|
545
551
|
metadata = @config.rpcs.get_target_site.metadata.to_h
|
546
552
|
|
547
|
-
# Set x-goog-api-client
|
553
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
548
554
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
549
555
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
550
556
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
557
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
551
558
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
552
559
|
|
553
560
|
header_params = {}
|
@@ -642,10 +649,11 @@ module Google
|
|
642
649
|
# Customize the options with defaults
|
643
650
|
metadata = @config.rpcs.update_target_site.metadata.to_h
|
644
651
|
|
645
|
-
# Set x-goog-api-client
|
652
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
646
653
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
647
654
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
648
655
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
656
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
649
657
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
650
658
|
|
651
659
|
header_params = {}
|
@@ -744,10 +752,11 @@ module Google
|
|
744
752
|
# Customize the options with defaults
|
745
753
|
metadata = @config.rpcs.delete_target_site.metadata.to_h
|
746
754
|
|
747
|
-
# Set x-goog-api-client
|
755
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
748
756
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
749
757
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
750
758
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
759
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
751
760
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
752
761
|
|
753
762
|
header_params = {}
|
@@ -852,10 +861,11 @@ module Google
|
|
852
861
|
# Customize the options with defaults
|
853
862
|
metadata = @config.rpcs.list_target_sites.metadata.to_h
|
854
863
|
|
855
|
-
# Set x-goog-api-client
|
864
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
856
865
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
857
866
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
858
867
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
868
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
859
869
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
860
870
|
|
861
871
|
header_params = {}
|
@@ -948,10 +958,11 @@ module Google
|
|
948
958
|
# Customize the options with defaults
|
949
959
|
metadata = @config.rpcs.enable_advanced_site_search.metadata.to_h
|
950
960
|
|
951
|
-
# Set x-goog-api-client
|
961
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
952
962
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
953
963
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
954
964
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
965
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
955
966
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
956
967
|
|
957
968
|
header_params = {}
|
@@ -1044,10 +1055,11 @@ module Google
|
|
1044
1055
|
# Customize the options with defaults
|
1045
1056
|
metadata = @config.rpcs.disable_advanced_site_search.metadata.to_h
|
1046
1057
|
|
1047
|
-
# Set x-goog-api-client
|
1058
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1048
1059
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1049
1060
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1050
1061
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
1062
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1051
1063
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1052
1064
|
|
1053
1065
|
header_params = {}
|
@@ -1144,10 +1156,11 @@ module Google
|
|
1144
1156
|
# Customize the options with defaults
|
1145
1157
|
metadata = @config.rpcs.recrawl_uris.metadata.to_h
|
1146
1158
|
|
1147
|
-
# Set x-goog-api-client
|
1159
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1148
1160
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1149
1161
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1150
1162
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
1163
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1151
1164
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1152
1165
|
|
1153
1166
|
header_params = {}
|
@@ -1240,10 +1253,11 @@ module Google
|
|
1240
1253
|
# Customize the options with defaults
|
1241
1254
|
metadata = @config.rpcs.batch_verify_target_sites.metadata.to_h
|
1242
1255
|
|
1243
|
-
# Set x-goog-api-client
|
1256
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1244
1257
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1245
1258
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1246
1259
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
1260
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1247
1261
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1248
1262
|
|
1249
1263
|
header_params = {}
|
@@ -1347,10 +1361,11 @@ module Google
|
|
1347
1361
|
# Customize the options with defaults
|
1348
1362
|
metadata = @config.rpcs.fetch_domain_verification_status.metadata.to_h
|
1349
1363
|
|
1350
|
-
# Set x-goog-api-client
|
1364
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1351
1365
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1352
1366
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1353
1367
|
gapic_version: ::Google::Cloud::DiscoveryEngine::V1::VERSION
|
1368
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1354
1369
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1355
1370
|
|
1356
1371
|
header_params = {}
|