google-cloud-retail-v2 0.20.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/retail/v2/analytics_service/client.rb +5 -1
- data/lib/google/cloud/retail/v2/analytics_service/operations.rb +13 -5
- data/lib/google/cloud/retail/v2/analytics_service/rest/client.rb +5 -1
- data/lib/google/cloud/retail/v2/analytics_service/rest/operations.rb +11 -4
- data/lib/google/cloud/retail/v2/catalog_pb.rb +9 -1
- data/lib/google/cloud/retail/v2/catalog_service/client.rb +25 -11
- data/lib/google/cloud/retail/v2/catalog_service/rest/client.rb +25 -11
- data/lib/google/cloud/retail/v2/common_pb.rb +4 -1
- data/lib/google/cloud/retail/v2/completion_service/client.rb +15 -6
- data/lib/google/cloud/retail/v2/completion_service/operations.rb +13 -5
- data/lib/google/cloud/retail/v2/completion_service/rest/client.rb +15 -6
- data/lib/google/cloud/retail/v2/completion_service/rest/operations.rb +11 -4
- data/lib/google/cloud/retail/v2/completion_service_pb.rb +1 -1
- data/lib/google/cloud/retail/v2/control_service/client.rb +13 -5
- data/lib/google/cloud/retail/v2/control_service/rest/client.rb +13 -5
- data/lib/google/cloud/retail/v2/model_pb.rb +4 -1
- data/lib/google/cloud/retail/v2/model_service/client.rb +19 -8
- data/lib/google/cloud/retail/v2/model_service/operations.rb +13 -5
- data/lib/google/cloud/retail/v2/model_service/rest/client.rb +19 -8
- data/lib/google/cloud/retail/v2/model_service/rest/operations.rb +11 -4
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +5 -1
- data/lib/google/cloud/retail/v2/prediction_service/rest/client.rb +5 -1
- data/lib/google/cloud/retail/v2/product_service/client.rb +206 -21
- data/lib/google/cloud/retail/v2/product_service/operations.rb +13 -5
- data/lib/google/cloud/retail/v2/product_service/rest/client.rb +199 -21
- data/lib/google/cloud/retail/v2/product_service/rest/operations.rb +11 -4
- data/lib/google/cloud/retail/v2/product_service/rest/service_stub.rb +60 -0
- data/lib/google/cloud/retail/v2/product_service_pb.rb +2 -1
- data/lib/google/cloud/retail/v2/product_service_services_pb.rb +26 -6
- data/lib/google/cloud/retail/v2/purge_config_pb.rb +6 -1
- data/lib/google/cloud/retail/v2/search_service/client.rb +27 -23
- data/lib/google/cloud/retail/v2/search_service/rest/client.rb +27 -23
- data/lib/google/cloud/retail/v2/serving_config_pb.rb +1 -1
- data/lib/google/cloud/retail/v2/serving_config_service/client.rb +17 -7
- data/lib/google/cloud/retail/v2/serving_config_service/rest/client.rb +17 -7
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +14 -6
- data/lib/google/cloud/retail/v2/user_event_service/operations.rb +13 -5
- data/lib/google/cloud/retail/v2/user_event_service/rest/client.rb +14 -6
- data/lib/google/cloud/retail/v2/user_event_service/rest/operations.rb +11 -4
- data/lib/google/cloud/retail/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/retail/v2/catalog.rb +143 -4
- data/proto_docs/google/cloud/retail/v2/common.rb +104 -10
- data/proto_docs/google/cloud/retail/v2/completion_service.rb +14 -7
- data/proto_docs/google/cloud/retail/v2/import_config.rb +10 -4
- data/proto_docs/google/cloud/retail/v2/model.rb +40 -0
- data/proto_docs/google/cloud/retail/v2/product.rb +23 -22
- data/proto_docs/google/cloud/retail/v2/promotion.rb +2 -2
- data/proto_docs/google/cloud/retail/v2/purge_config.rb +93 -0
- data/proto_docs/google/cloud/retail/v2/search_service.rb +42 -42
- data/proto_docs/google/cloud/retail/v2/serving_config.rb +4 -0
- data/proto_docs/google/cloud/retail/v2/user_event.rb +3 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f89a2349d8d2f93809a6dd12a10d9a15c3f52e50973d740c9ce55bbf39b7e4ae
|
4
|
+
data.tar.gz: 057e2cd793769dee49d5fbd4ab03bd368bd21c5050478e78cad9cb13f8f5c7b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9d6becdbe4268b2359b4a8d740ec2dbb23f57638a4dd7bd0a8657a0ccef08fe65803454ae1f0b1b75ece8b9fddc735bf79f90bc1d07376926b3888d6a7a958b
|
7
|
+
data.tar.gz: 935dcbb737e294753e2fc8be7372f77eb4a947241348c9ccbc5d755ea8308593b42cb0375c9c1dce0eaba3f62b30a1d4ffb5ea627017bf90a6b3d38aaf7e23f1
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Retail V2 API
|
2
2
|
|
3
|
-
|
3
|
+
Vertex AI Search for Retail API is made up of Retail Search, Browse and Recommendations. These discovery AI solutions help you implement personalized search, browse and recommendations, based on machine learning models, across your websites and mobile applications.
|
4
4
|
|
5
5
|
Retail enables you to build an end-to-end personalized recommendation system based on state-of-the-art deep learning ML models, without a need for expertise in ML or recommendation systems.
|
6
6
|
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# Retail recommendation business metric is currently not available.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "retail.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -279,10 +282,11 @@ module Google
|
|
279
282
|
# Customize the options with defaults
|
280
283
|
metadata = @config.rpcs.export_analytics_metrics.metadata.to_h
|
281
284
|
|
282
|
-
# Set x-goog-api-client
|
285
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
283
286
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
284
287
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
285
288
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
289
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
286
290
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
287
291
|
|
288
292
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module AnalyticsService
|
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 = "retail.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -191,10 +194,11 @@ module Google
|
|
191
194
|
# Customize the options with defaults
|
192
195
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
193
196
|
|
194
|
-
# Set x-goog-api-client
|
197
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
195
198
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
196
199
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
197
200
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
201
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
198
202
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
199
203
|
|
200
204
|
header_params = {}
|
@@ -287,10 +291,11 @@ module Google
|
|
287
291
|
# Customize the options with defaults
|
288
292
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
289
293
|
|
290
|
-
# Set x-goog-api-client
|
294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
291
295
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
292
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
293
297
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
298
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
294
299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
300
|
|
296
301
|
header_params = {}
|
@@ -376,10 +381,11 @@ module Google
|
|
376
381
|
# Customize the options with defaults
|
377
382
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
378
383
|
|
379
|
-
# Set x-goog-api-client
|
384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
380
385
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
381
386
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
382
387
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
388
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
390
|
|
385
391
|
header_params = {}
|
@@ -470,10 +476,11 @@ module Google
|
|
470
476
|
# Customize the options with defaults
|
471
477
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
472
478
|
|
473
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
474
480
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
482
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
485
|
|
479
486
|
header_params = {}
|
@@ -574,10 +581,11 @@ module Google
|
|
574
581
|
# Customize the options with defaults
|
575
582
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
576
583
|
|
577
|
-
# Set x-goog-api-client
|
584
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
585
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
586
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
587
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# Retail recommendation business metric is currently not available.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "retail.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -271,12 +274,13 @@ module Google
|
|
271
274
|
# Customize the options with defaults
|
272
275
|
call_metadata = @config.rpcs.export_analytics_metrics.metadata.to_h
|
273
276
|
|
274
|
-
# Set x-goog-api-client
|
277
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
275
278
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
276
279
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
277
280
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
278
281
|
transports_version_send: [:rest]
|
279
282
|
|
283
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
280
284
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
281
285
|
|
282
286
|
options.apply_defaults timeout: @config.rpcs.export_analytics_metrics.timeout,
|
@@ -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 = "retail.$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::Retail::V2::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::Retail::V2::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::Retail::V2::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::Retail::V2::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,
|
@@ -8,9 +8,10 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/api/resource_pb'
|
9
9
|
require 'google/cloud/retail/v2/common_pb'
|
10
10
|
require 'google/cloud/retail/v2/import_config_pb'
|
11
|
+
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
12
13
|
|
13
|
-
descriptor_data = "\n$google/cloud/retail/v2/catalog.proto\x12\x16google.cloud.retail.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/retail/v2/common.proto\x1a*google/cloud/retail/v2/import_config.proto\"^\n\x12ProductLevelConfig\x12\x1e\n\x16ingestion_product_type\x18\x01 \x01(\t\x12(\n merchant_center_product_id_field\x18\x02 \x01(\t\"\
|
14
|
+
descriptor_data = "\n$google/cloud/retail/v2/catalog.proto\x12\x16google.cloud.retail.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/retail/v2/common.proto\x1a*google/cloud/retail/v2/import_config.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"^\n\x12ProductLevelConfig\x12\x1e\n\x16ingestion_product_type\x18\x01 \x01(\t\x12(\n merchant_center_product_id_field\x18\x02 \x01(\t\"\xf7\x0f\n\x10\x43\x61talogAttribute\x12\x10\n\x03key\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06in_use\x18\t \x01(\x08\x42\x03\xe0\x41\x03\x12I\n\x04type\x18\n \x01(\x0e\x32\x36.google.cloud.retail.v2.CatalogAttribute.AttributeTypeB\x03\xe0\x41\x03\x12R\n\x10indexable_option\x18\x05 \x01(\x0e\x32\x38.google.cloud.retail.v2.CatalogAttribute.IndexableOption\x12\x61\n\x18\x64ynamic_facetable_option\x18\x06 \x01(\x0e\x32?.google.cloud.retail.v2.CatalogAttribute.DynamicFacetableOption\x12T\n\x11searchable_option\x18\x07 \x01(\x0e\x32\x39.google.cloud.retail.v2.CatalogAttribute.SearchableOption\x12_\n\x17\x65xact_searchable_option\x18\x0b \x01(\x0e\x32>.google.cloud.retail.v2.CatalogAttribute.ExactSearchableOption\x12V\n\x12retrievable_option\x18\x0c \x01(\x0e\x32:.google.cloud.retail.v2.CatalogAttribute.RetrievableOption\x12J\n\x0c\x66\x61\x63\x65t_config\x18\r \x01(\x0b\x32\x34.google.cloud.retail.v2.CatalogAttribute.FacetConfig\x1a\xe9\x05\n\x0b\x46\x61\x63\x65tConfig\x12\x39\n\x0f\x66\x61\x63\x65t_intervals\x18\x01 \x03(\x0b\x32 .google.cloud.retail.v2.Interval\x12\x65\n\x14ignored_facet_values\x18\x02 \x03(\x0b\x32G.google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues\x12\x62\n\x13merged_facet_values\x18\x03 \x03(\x0b\x32\x45.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue\x12V\n\x0cmerged_facet\x18\x04 \x01(\x0b\x32@.google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet\x12X\n\rrerank_config\x18\x05 \x01(\x0b\x32\x41.google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig\x1a\x82\x01\n\x12IgnoredFacetValues\x12\x0e\n\x06values\x18\x01 \x03(\t\x12.\n\nstart_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x38\n\x10MergedFacetValue\x12\x0e\n\x06values\x18\x01 \x03(\t\x12\x14\n\x0cmerged_value\x18\x02 \x01(\t\x1a\'\n\x0bMergedFacet\x12\x18\n\x10merged_facet_key\x18\x01 \x01(\t\x1a:\n\x0cRerankConfig\x12\x14\n\x0crerank_facet\x18\x01 \x01(\x08\x12\x14\n\x0c\x66\x61\x63\x65t_values\x18\x02 \x03(\t\"8\n\rAttributeType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07TEXTUAL\x10\x01\x12\r\n\tNUMERICAL\x10\x02\"b\n\x0fIndexableOption\x12 \n\x1cINDEXABLE_OPTION_UNSPECIFIED\x10\x00\x12\x15\n\x11INDEXABLE_ENABLED\x10\x01\x12\x16\n\x12INDEXABLE_DISABLED\x10\x02\"\x81\x01\n\x16\x44ynamicFacetableOption\x12(\n$DYNAMIC_FACETABLE_OPTION_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x44YNAMIC_FACETABLE_ENABLED\x10\x01\x12\x1e\n\x1a\x44YNAMIC_FACETABLE_DISABLED\x10\x02\"f\n\x10SearchableOption\x12!\n\x1dSEARCHABLE_OPTION_UNSPECIFIED\x10\x00\x12\x16\n\x12SEARCHABLE_ENABLED\x10\x01\x12\x17\n\x13SEARCHABLE_DISABLED\x10\x02\"}\n\x15\x45xactSearchableOption\x12\'\n#EXACT_SEARCHABLE_OPTION_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x45XACT_SEARCHABLE_ENABLED\x10\x01\x12\x1d\n\x19\x45XACT_SEARCHABLE_DISABLED\x10\x02\"j\n\x11RetrievableOption\x12\"\n\x1eRETRIEVABLE_OPTION_UNSPECIFIED\x10\x00\x12\x17\n\x13RETRIEVABLE_ENABLED\x10\x01\x12\x18\n\x14RETRIEVABLE_DISABLED\x10\x02\"\xb6\x03\n\x10\x41ttributesConfig\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12[\n\x12\x63\x61talog_attributes\x18\x02 \x03(\x0b\x32?.google.cloud.retail.v2.AttributesConfig.CatalogAttributesEntry\x12Q\n\x16\x61ttribute_config_level\x18\x03 \x01(\x0e\x32,.google.cloud.retail.v2.AttributeConfigLevelB\x03\xe0\x41\x03\x1a\x62\n\x16\x43\x61talogAttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x37\n\x05value\x18\x02 \x01(\x0b\x32(.google.cloud.retail.v2.CatalogAttribute:\x02\x38\x01:x\xea\x41u\n&retail.googleapis.com/AttributesConfig\x12Kprojects/{project}/locations/{location}/catalogs/{catalog}/attributesConfig\"\x99\x05\n\x10\x43ompletionConfig\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x16\n\x0ematching_order\x18\x02 \x01(\t\x12\x17\n\x0fmax_suggestions\x18\x03 \x01(\x05\x12\x19\n\x11min_prefix_length\x18\x04 \x01(\x05\x12\x15\n\rauto_learning\x18\x0b \x01(\x08\x12X\n\x18suggestions_input_config\x18\x05 \x01(\x0b\x32\x31.google.cloud.retail.v2.CompletionDataInputConfigB\x03\xe0\x41\x03\x12.\n!last_suggestions_import_operation\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12U\n\x15\x64\x65nylist_input_config\x18\x07 \x01(\x0b\x32\x31.google.cloud.retail.v2.CompletionDataInputConfigB\x03\xe0\x41\x03\x12+\n\x1elast_denylist_import_operation\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12V\n\x16\x61llowlist_input_config\x18\t \x01(\x0b\x32\x31.google.cloud.retail.v2.CompletionDataInputConfigB\x03\xe0\x41\x03\x12,\n\x1flast_allowlist_import_operation\x18\n \x01(\tB\x03\xe0\x41\x03:x\xea\x41u\n&retail.googleapis.com/CompletionConfig\x12Kprojects/{project}/locations/{location}/catalogs/{catalog}/completionConfig\"\xec\x01\n\x07\x43\x61talog\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x1c\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12M\n\x14product_level_config\x18\x04 \x01(\x0b\x32*.google.cloud.retail.v2.ProductLevelConfigB\x03\xe0\x41\x02:^\xea\x41[\n\x1dretail.googleapis.com/Catalog\x12:projects/{project}/locations/{location}/catalogs/{catalog}B\xb7\x01\n\x1a\x63om.google.cloud.retail.v2B\x0c\x43\x61talogProtoP\x01Z2cloud.google.com/go/retail/apiv2/retailpb;retailpb\xa2\x02\x06RETAIL\xaa\x02\x16Google.Cloud.Retail.V2\xca\x02\x16Google\\Cloud\\Retail\\V2\xea\x02\x19Google::Cloud::Retail::V2b\x06proto3"
|
14
15
|
|
15
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
17
|
|
@@ -25,6 +26,8 @@ rescue TypeError
|
|
25
26
|
file = pool.add_serialized_file(serialized)
|
26
27
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
28
|
imports = [
|
29
|
+
["google.cloud.retail.v2.Interval", "google/cloud/retail/v2/common.proto"],
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
28
31
|
["google.cloud.retail.v2.CompletionDataInputConfig", "google/cloud/retail/v2/import_config.proto"],
|
29
32
|
]
|
30
33
|
imports.each do |type_name, expected_filename|
|
@@ -43,6 +46,11 @@ module Google
|
|
43
46
|
module V2
|
44
47
|
ProductLevelConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ProductLevelConfig").msgclass
|
45
48
|
CatalogAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute").msgclass
|
49
|
+
CatalogAttribute::FacetConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.FacetConfig").msgclass
|
50
|
+
CatalogAttribute::FacetConfig::IgnoredFacetValues = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.FacetConfig.IgnoredFacetValues").msgclass
|
51
|
+
CatalogAttribute::FacetConfig::MergedFacetValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacetValue").msgclass
|
52
|
+
CatalogAttribute::FacetConfig::MergedFacet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.FacetConfig.MergedFacet").msgclass
|
53
|
+
CatalogAttribute::FacetConfig::RerankConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.FacetConfig.RerankConfig").msgclass
|
46
54
|
CatalogAttribute::AttributeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.AttributeType").enummodule
|
47
55
|
CatalogAttribute::IndexableOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.IndexableOption").enummodule
|
48
56
|
CatalogAttribute::DynamicFacetableOption = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CatalogAttribute.DynamicFacetableOption").enummodule
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for managing catalog configuration.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "retail.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -262,10 +265,11 @@ module Google
|
|
262
265
|
# Customize the options with defaults
|
263
266
|
metadata = @config.rpcs.list_catalogs.metadata.to_h
|
264
267
|
|
265
|
-
# Set x-goog-api-client
|
268
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
266
269
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
267
270
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
268
271
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
272
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
269
273
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
270
274
|
|
271
275
|
header_params = {}
|
@@ -361,10 +365,11 @@ module Google
|
|
361
365
|
# Customize the options with defaults
|
362
366
|
metadata = @config.rpcs.update_catalog.metadata.to_h
|
363
367
|
|
364
|
-
# Set x-goog-api-client
|
368
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
365
369
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
366
370
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
367
371
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
372
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
368
373
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
369
374
|
|
370
375
|
header_params = {}
|
@@ -499,10 +504,11 @@ module Google
|
|
499
504
|
# Customize the options with defaults
|
500
505
|
metadata = @config.rpcs.set_default_branch.metadata.to_h
|
501
506
|
|
502
|
-
# Set x-goog-api-client
|
507
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
503
508
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
504
509
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
505
510
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
511
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
506
512
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
507
513
|
|
508
514
|
header_params = {}
|
@@ -587,10 +593,11 @@ module Google
|
|
587
593
|
# Customize the options with defaults
|
588
594
|
metadata = @config.rpcs.get_default_branch.metadata.to_h
|
589
595
|
|
590
|
-
# Set x-goog-api-client
|
596
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
591
597
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
592
598
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
593
599
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
600
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
594
601
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
595
602
|
|
596
603
|
header_params = {}
|
@@ -673,10 +680,11 @@ module Google
|
|
673
680
|
# Customize the options with defaults
|
674
681
|
metadata = @config.rpcs.get_completion_config.metadata.to_h
|
675
682
|
|
676
|
-
# Set x-goog-api-client
|
683
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
677
684
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
678
685
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
679
686
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
687
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
680
688
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
681
689
|
|
682
690
|
header_params = {}
|
@@ -777,10 +785,11 @@ module Google
|
|
777
785
|
# Customize the options with defaults
|
778
786
|
metadata = @config.rpcs.update_completion_config.metadata.to_h
|
779
787
|
|
780
|
-
# Set x-goog-api-client
|
788
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
781
789
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
782
790
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
783
791
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
792
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
784
793
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
785
794
|
|
786
795
|
header_params = {}
|
@@ -863,10 +872,11 @@ module Google
|
|
863
872
|
# Customize the options with defaults
|
864
873
|
metadata = @config.rpcs.get_attributes_config.metadata.to_h
|
865
874
|
|
866
|
-
# Set x-goog-api-client
|
875
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
867
876
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
868
877
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
869
878
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
879
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
870
880
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
871
881
|
|
872
882
|
header_params = {}
|
@@ -964,10 +974,11 @@ module Google
|
|
964
974
|
# Customize the options with defaults
|
965
975
|
metadata = @config.rpcs.update_attributes_config.metadata.to_h
|
966
976
|
|
967
|
-
# Set x-goog-api-client
|
977
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
968
978
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
969
979
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
970
980
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
981
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
971
982
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
972
983
|
|
973
984
|
header_params = {}
|
@@ -1058,10 +1069,11 @@ module Google
|
|
1058
1069
|
# Customize the options with defaults
|
1059
1070
|
metadata = @config.rpcs.add_catalog_attribute.metadata.to_h
|
1060
1071
|
|
1061
|
-
# Set x-goog-api-client
|
1072
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1062
1073
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1063
1074
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1064
1075
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
1076
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1065
1077
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1066
1078
|
|
1067
1079
|
header_params = {}
|
@@ -1152,10 +1164,11 @@ module Google
|
|
1152
1164
|
# Customize the options with defaults
|
1153
1165
|
metadata = @config.rpcs.remove_catalog_attribute.metadata.to_h
|
1154
1166
|
|
1155
|
-
# Set x-goog-api-client
|
1167
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1156
1168
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1157
1169
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1158
1170
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
1171
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1159
1172
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1160
1173
|
|
1161
1174
|
header_params = {}
|
@@ -1256,10 +1269,11 @@ module Google
|
|
1256
1269
|
# Customize the options with defaults
|
1257
1270
|
metadata = @config.rpcs.replace_catalog_attribute.metadata.to_h
|
1258
1271
|
|
1259
|
-
# Set x-goog-api-client
|
1272
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1260
1273
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1261
1274
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1262
1275
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
1276
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1263
1277
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1264
1278
|
|
1265
1279
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for managing catalog configuration.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "retail.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -254,12 +257,13 @@ module Google
|
|
254
257
|
# Customize the options with defaults
|
255
258
|
call_metadata = @config.rpcs.list_catalogs.metadata.to_h
|
256
259
|
|
257
|
-
# Set x-goog-api-client
|
260
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
258
261
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
259
262
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
260
263
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
261
264
|
transports_version_send: [:rest]
|
262
265
|
|
266
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
263
267
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
264
268
|
|
265
269
|
options.apply_defaults timeout: @config.rpcs.list_catalogs.timeout,
|
@@ -346,12 +350,13 @@ module Google
|
|
346
350
|
# Customize the options with defaults
|
347
351
|
call_metadata = @config.rpcs.update_catalog.metadata.to_h
|
348
352
|
|
349
|
-
# Set x-goog-api-client
|
353
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
350
354
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
351
355
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
352
356
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
353
357
|
transports_version_send: [:rest]
|
354
358
|
|
359
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
355
360
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
356
361
|
|
357
362
|
options.apply_defaults timeout: @config.rpcs.update_catalog.timeout,
|
@@ -477,12 +482,13 @@ module Google
|
|
477
482
|
# Customize the options with defaults
|
478
483
|
call_metadata = @config.rpcs.set_default_branch.metadata.to_h
|
479
484
|
|
480
|
-
# Set x-goog-api-client
|
485
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
481
486
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
482
487
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
483
488
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
484
489
|
transports_version_send: [:rest]
|
485
490
|
|
491
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
486
492
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
487
493
|
|
488
494
|
options.apply_defaults timeout: @config.rpcs.set_default_branch.timeout,
|
@@ -558,12 +564,13 @@ module Google
|
|
558
564
|
# Customize the options with defaults
|
559
565
|
call_metadata = @config.rpcs.get_default_branch.metadata.to_h
|
560
566
|
|
561
|
-
# Set x-goog-api-client
|
567
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
562
568
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
563
569
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
564
570
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
565
571
|
transports_version_send: [:rest]
|
566
572
|
|
573
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
567
574
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
568
575
|
|
569
576
|
options.apply_defaults timeout: @config.rpcs.get_default_branch.timeout,
|
@@ -637,12 +644,13 @@ module Google
|
|
637
644
|
# Customize the options with defaults
|
638
645
|
call_metadata = @config.rpcs.get_completion_config.metadata.to_h
|
639
646
|
|
640
|
-
# Set x-goog-api-client
|
647
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
641
648
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
642
649
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
643
650
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
644
651
|
transports_version_send: [:rest]
|
645
652
|
|
653
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
646
654
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
647
655
|
|
648
656
|
options.apply_defaults timeout: @config.rpcs.get_completion_config.timeout,
|
@@ -734,12 +742,13 @@ module Google
|
|
734
742
|
# Customize the options with defaults
|
735
743
|
call_metadata = @config.rpcs.update_completion_config.metadata.to_h
|
736
744
|
|
737
|
-
# Set x-goog-api-client
|
745
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
738
746
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
739
747
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
740
748
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
741
749
|
transports_version_send: [:rest]
|
742
750
|
|
751
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
743
752
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
744
753
|
|
745
754
|
options.apply_defaults timeout: @config.rpcs.update_completion_config.timeout,
|
@@ -813,12 +822,13 @@ module Google
|
|
813
822
|
# Customize the options with defaults
|
814
823
|
call_metadata = @config.rpcs.get_attributes_config.metadata.to_h
|
815
824
|
|
816
|
-
# Set x-goog-api-client
|
825
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
817
826
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
818
827
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
819
828
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
820
829
|
transports_version_send: [:rest]
|
821
830
|
|
831
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
822
832
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
823
833
|
|
824
834
|
options.apply_defaults timeout: @config.rpcs.get_attributes_config.timeout,
|
@@ -907,12 +917,13 @@ module Google
|
|
907
917
|
# Customize the options with defaults
|
908
918
|
call_metadata = @config.rpcs.update_attributes_config.metadata.to_h
|
909
919
|
|
910
|
-
# Set x-goog-api-client
|
920
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
911
921
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
912
922
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
913
923
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
914
924
|
transports_version_send: [:rest]
|
915
925
|
|
926
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
916
927
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
917
928
|
|
918
929
|
options.apply_defaults timeout: @config.rpcs.update_attributes_config.timeout,
|
@@ -994,12 +1005,13 @@ module Google
|
|
994
1005
|
# Customize the options with defaults
|
995
1006
|
call_metadata = @config.rpcs.add_catalog_attribute.metadata.to_h
|
996
1007
|
|
997
|
-
# Set x-goog-api-client
|
1008
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
998
1009
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
999
1010
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1000
1011
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
1001
1012
|
transports_version_send: [:rest]
|
1002
1013
|
|
1014
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1003
1015
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1004
1016
|
|
1005
1017
|
options.apply_defaults timeout: @config.rpcs.add_catalog_attribute.timeout,
|
@@ -1081,12 +1093,13 @@ module Google
|
|
1081
1093
|
# Customize the options with defaults
|
1082
1094
|
call_metadata = @config.rpcs.remove_catalog_attribute.metadata.to_h
|
1083
1095
|
|
1084
|
-
# Set x-goog-api-client
|
1096
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1085
1097
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1086
1098
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1087
1099
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
1088
1100
|
transports_version_send: [:rest]
|
1089
1101
|
|
1102
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1090
1103
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1091
1104
|
|
1092
1105
|
options.apply_defaults timeout: @config.rpcs.remove_catalog_attribute.timeout,
|
@@ -1178,12 +1191,13 @@ module Google
|
|
1178
1191
|
# Customize the options with defaults
|
1179
1192
|
call_metadata = @config.rpcs.replace_catalog_attribute.metadata.to_h
|
1180
1193
|
|
1181
|
-
# Set x-goog-api-client
|
1194
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1182
1195
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1183
1196
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1184
1197
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
1185
1198
|
transports_version_send: [:rest]
|
1186
1199
|
|
1200
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1187
1201
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1188
1202
|
|
1189
1203
|
options.apply_defaults timeout: @config.rpcs.replace_catalog_attribute.timeout,
|