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
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/protobuf/timestamp_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n#google/cloud/retail/v2/common.proto\x12\x16google.cloud.retail.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
11
|
+
descriptor_data = "\n#google/cloud/retail/v2/common.proto\x12\x16google.cloud.retail.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc9\x02\n\tCondition\x12@\n\x0bquery_terms\x18\x01 \x03(\x0b\x32+.google.cloud.retail.v2.Condition.QueryTerm\x12\x46\n\x11\x61\x63tive_time_range\x18\x03 \x03(\x0b\x32+.google.cloud.retail.v2.Condition.TimeRange\x12\x17\n\x0fpage_categories\x18\x04 \x03(\t\x1a.\n\tQueryTerm\x12\r\n\x05value\x18\x01 \x01(\t\x12\x12\n\nfull_match\x18\x02 \x01(\x08\x1ai\n\tTimeRange\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa5\x0c\n\x04Rule\x12@\n\x0c\x62oost_action\x18\x02 \x01(\x0b\x32(.google.cloud.retail.v2.Rule.BoostActionH\x00\x12\x46\n\x0fredirect_action\x18\x03 \x01(\x0b\x32+.google.cloud.retail.v2.Rule.RedirectActionH\x00\x12S\n\x16oneway_synonyms_action\x18\x06 \x01(\x0b\x32\x31.google.cloud.retail.v2.Rule.OnewaySynonymsActionH\x00\x12T\n\x17\x64o_not_associate_action\x18\x07 \x01(\x0b\x32\x31.google.cloud.retail.v2.Rule.DoNotAssociateActionH\x00\x12L\n\x12replacement_action\x18\x08 \x01(\x0b\x32..google.cloud.retail.v2.Rule.ReplacementActionH\x00\x12\x42\n\rignore_action\x18\t \x01(\x0b\x32).google.cloud.retail.v2.Rule.IgnoreActionH\x00\x12\x42\n\rfilter_action\x18\n \x01(\x0b\x32).google.cloud.retail.v2.Rule.FilterActionH\x00\x12S\n\x16twoway_synonyms_action\x18\x0b \x01(\x0b\x32\x31.google.cloud.retail.v2.Rule.TwowaySynonymsActionH\x00\x12X\n\x19\x66orce_return_facet_action\x18\x0c \x01(\x0b\x32\x33.google.cloud.retail.v2.Rule.ForceReturnFacetActionH\x00\x12M\n\x13remove_facet_action\x18\r \x01(\x0b\x32..google.cloud.retail.v2.Rule.RemoveFacetActionH\x00\x12\x39\n\tcondition\x18\x01 \x01(\x0b\x32!.google.cloud.retail.v2.ConditionB\x03\xe0\x41\x02\x1a\x35\n\x0b\x42oostAction\x12\r\n\x05\x62oost\x18\x01 \x01(\x02\x12\x17\n\x0fproducts_filter\x18\x02 \x01(\t\x1a\x1e\n\x0c\x46ilterAction\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x1a&\n\x0eRedirectAction\x12\x14\n\x0credirect_uri\x18\x01 \x01(\t\x1a(\n\x14TwowaySynonymsAction\x12\x10\n\x08synonyms\x18\x01 \x03(\t\x1aS\n\x14OnewaySynonymsAction\x12\x13\n\x0bquery_terms\x18\x03 \x03(\t\x12\x10\n\x08synonyms\x18\x04 \x03(\t\x12\x14\n\x0coneway_terms\x18\x02 \x03(\t\x1aZ\n\x14\x44oNotAssociateAction\x12\x13\n\x0bquery_terms\x18\x02 \x03(\t\x12\x1e\n\x16\x64o_not_associate_terms\x18\x03 \x03(\t\x12\r\n\x05terms\x18\x01 \x03(\t\x1aP\n\x11ReplacementAction\x12\x13\n\x0bquery_terms\x18\x02 \x03(\t\x12\x18\n\x10replacement_term\x18\x03 \x01(\t\x12\x0c\n\x04term\x18\x01 \x01(\t\x1a$\n\x0cIgnoreAction\x12\x14\n\x0cignore_terms\x18\x01 \x03(\t\x1a\xce\x01\n\x16\x46orceReturnFacetAction\x12o\n\x1a\x66\x61\x63\x65t_position_adjustments\x18\x01 \x03(\x0b\x32K.google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment\x1a\x43\n\x17\x46\x61\x63\x65tPositionAdjustment\x12\x16\n\x0e\x61ttribute_name\x18\x01 \x01(\t\x12\x10\n\x08position\x18\x02 \x01(\x05\x1a,\n\x11RemoveFacetAction\x12\x17\n\x0f\x61ttribute_names\x18\x01 \x03(\tB\x08\n\x06\x61\x63tion\"/\n\x08\x41udience\x12\x0f\n\x07genders\x18\x01 \x03(\t\x12\x12\n\nage_groups\x18\x02 \x03(\t\"3\n\tColorInfo\x12\x16\n\x0e\x63olor_families\x18\x01 \x03(\t\x12\x0e\n\x06\x63olors\x18\x02 \x03(\t\"\x86\x01\n\x0f\x43ustomAttribute\x12\x0c\n\x04text\x18\x01 \x03(\t\x12\x0f\n\x07numbers\x18\x02 \x03(\x01\x12\x1b\n\nsearchable\x18\x03 \x01(\x08\x42\x02\x18\x01H\x00\x88\x01\x01\x12\x1a\n\tindexable\x18\x04 \x01(\x08\x42\x02\x18\x01H\x01\x88\x01\x01\x42\r\n\x0b_searchableB\x0c\n\n_indexable\"2\n\x0f\x46ulfillmentInfo\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x11\n\tplace_ids\x18\x02 \x03(\t\"8\n\x05Image\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0e\n\x06height\x18\x02 \x01(\x05\x12\r\n\x05width\x18\x03 \x01(\x05\"x\n\x08Interval\x12\x11\n\x07minimum\x18\x01 \x01(\x01H\x00\x12\x1b\n\x11\x65xclusive_minimum\x18\x02 \x01(\x01H\x00\x12\x11\n\x07maximum\x18\x03 \x01(\x01H\x01\x12\x1b\n\x11\x65xclusive_maximum\x18\x04 \x01(\x01H\x01\x42\x05\n\x03minB\x05\n\x03max\"\x89\x03\n\tPriceInfo\x12\x15\n\rcurrency_code\x18\x01 \x01(\t\x12\r\n\x05price\x18\x02 \x01(\x02\x12\x16\n\x0eoriginal_price\x18\x03 \x01(\x02\x12\x0c\n\x04\x63ost\x18\x04 \x01(\x02\x12\x38\n\x14price_effective_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x11price_expire_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x46\n\x0bprice_range\x18\x07 \x01(\x0b\x32,.google.cloud.retail.v2.PriceInfo.PriceRangeB\x03\xe0\x41\x03\x1aw\n\nPriceRange\x12/\n\x05price\x18\x01 \x01(\x0b\x32 .google.cloud.retail.v2.Interval\x12\x38\n\x0eoriginal_price\x18\x02 \x01(\x0b\x32 .google.cloud.retail.v2.Interval\"P\n\x06Rating\x12\x14\n\x0crating_count\x18\x01 \x01(\x05\x12\x16\n\x0e\x61verage_rating\x18\x02 \x01(\x02\x12\x18\n\x10rating_histogram\x18\x03 \x03(\x05\"`\n\x08UserInfo\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x12\n\nip_address\x18\x02 \x01(\t\x12\x12\n\nuser_agent\x18\x03 \x01(\t\x12\x1b\n\x13\x64irect_user_request\x18\x04 \x01(\x08\"\xa1\x02\n\x0eLocalInventory\x12\x10\n\x08place_id\x18\x01 \x01(\t\x12\x35\n\nprice_info\x18\x02 \x01(\x0b\x32!.google.cloud.retail.v2.PriceInfo\x12J\n\nattributes\x18\x03 \x03(\x0b\x32\x36.google.cloud.retail.v2.LocalInventory.AttributesEntry\x12\x1e\n\x11\x66ulfillment_types\x18\x04 \x03(\tB\x03\xe0\x41\x04\x1aZ\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.retail.v2.CustomAttribute:\x02\x38\x01*\x86\x01\n\x14\x41ttributeConfigLevel\x12&\n\"ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED\x10\x00\x12\"\n\x1ePRODUCT_LEVEL_ATTRIBUTE_CONFIG\x10\x01\x12\"\n\x1e\x43\x41TALOG_LEVEL_ATTRIBUTE_CONFIG\x10\x02*i\n\x0cSolutionType\x12\x1d\n\x19SOLUTION_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1cSOLUTION_TYPE_RECOMMENDATION\x10\x01\x12\x18\n\x14SOLUTION_TYPE_SEARCH\x10\x02*\xa1\x01\n\x1eRecommendationsFilteringOption\x12\x30\n,RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED\x10\x00\x12&\n\"RECOMMENDATIONS_FILTERING_DISABLED\x10\x01\x12%\n!RECOMMENDATIONS_FILTERING_ENABLED\x10\x03*\x8b\x01\n\x15SearchSolutionUseCase\x12(\n$SEARCH_SOLUTION_USE_CASE_UNSPECIFIED\x10\x00\x12#\n\x1fSEARCH_SOLUTION_USE_CASE_SEARCH\x10\x01\x12#\n\x1fSEARCH_SOLUTION_USE_CASE_BROWSE\x10\x02\x42\xb6\x01\n\x1a\x63om.google.cloud.retail.v2B\x0b\x43ommonProtoP\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"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
@@ -51,6 +51,9 @@ module Google
|
|
51
51
|
Rule::DoNotAssociateAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.DoNotAssociateAction").msgclass
|
52
52
|
Rule::ReplacementAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.ReplacementAction").msgclass
|
53
53
|
Rule::IgnoreAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.IgnoreAction").msgclass
|
54
|
+
Rule::ForceReturnFacetAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.ForceReturnFacetAction").msgclass
|
55
|
+
Rule::ForceReturnFacetAction::FacetPositionAdjustment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.ForceReturnFacetAction.FacetPositionAdjustment").msgclass
|
56
|
+
Rule::RemoveFacetAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.RemoveFacetAction").msgclass
|
54
57
|
Audience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Audience").msgclass
|
55
58
|
ColorInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ColorInfo").msgclass
|
56
59
|
CustomAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CustomAttribute").msgclass
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# Enable Retail Search on Cloud Console before using this feature.
|
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
|
|
@@ -213,7 +216,7 @@ module Google
|
|
213
216
|
# @param options [::Gapic::CallOptions, ::Hash]
|
214
217
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
215
218
|
#
|
216
|
-
# @overload complete_query(catalog: nil, query: nil, visitor_id: nil, language_codes: nil, device_type: nil, dataset: nil, max_suggestions: nil, entity: nil)
|
219
|
+
# @overload complete_query(catalog: nil, query: nil, visitor_id: nil, language_codes: nil, device_type: nil, dataset: nil, max_suggestions: nil, enable_attribute_suggestions: nil, entity: nil)
|
217
220
|
# Pass arguments to `complete_query` via keyword arguments. Note that at
|
218
221
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
219
222
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -283,11 +286,15 @@ module Google
|
|
283
286
|
#
|
284
287
|
# The maximum allowed max suggestions is 20. If it is set higher, it will be
|
285
288
|
# capped by 20.
|
289
|
+
# @param enable_attribute_suggestions [::Boolean]
|
290
|
+
# If true, attribute suggestions are enabled and provided in response.
|
291
|
+
#
|
292
|
+
# This field is only available for "cloud-retail" dataset.
|
286
293
|
# @param entity [::String]
|
287
|
-
# The entity for customers
|
288
|
-
#
|
294
|
+
# The entity for customers who run multiple entities, domains, sites, or
|
295
|
+
# regions, for example, `Google US`, `Google Ads`, `Waymo`,
|
289
296
|
# `google.com`, `youtube.com`, etc.
|
290
|
-
# If this is set, it
|
297
|
+
# If this is set, it must be an exact match with
|
291
298
|
# {::Google::Cloud::Retail::V2::UserEvent#entity UserEvent.entity} to get
|
292
299
|
# per-entity autocomplete results.
|
293
300
|
#
|
@@ -325,10 +332,11 @@ module Google
|
|
325
332
|
# Customize the options with defaults
|
326
333
|
metadata = @config.rpcs.complete_query.metadata.to_h
|
327
334
|
|
328
|
-
# Set x-goog-api-client
|
335
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
329
336
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
330
337
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
331
338
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
339
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
332
340
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
333
341
|
|
334
342
|
header_params = {}
|
@@ -435,10 +443,11 @@ module Google
|
|
435
443
|
# Customize the options with defaults
|
436
444
|
metadata = @config.rpcs.import_completion_data.metadata.to_h
|
437
445
|
|
438
|
-
# Set x-goog-api-client
|
446
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
439
447
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
440
448
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
441
449
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
450
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
442
451
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
443
452
|
|
444
453
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module CompletionService
|
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,
|
@@ -36,6 +36,9 @@ module Google
|
|
36
36
|
# Enable Retail Search on Cloud Console before using this feature.
|
37
37
|
#
|
38
38
|
class Client
|
39
|
+
# @private
|
40
|
+
API_VERSION = ""
|
41
|
+
|
39
42
|
# @private
|
40
43
|
DEFAULT_ENDPOINT_TEMPLATE = "retail.$UNIVERSE_DOMAIN$"
|
41
44
|
|
@@ -206,7 +209,7 @@ module Google
|
|
206
209
|
# @param options [::Gapic::CallOptions, ::Hash]
|
207
210
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
208
211
|
#
|
209
|
-
# @overload complete_query(catalog: nil, query: nil, visitor_id: nil, language_codes: nil, device_type: nil, dataset: nil, max_suggestions: nil, entity: nil)
|
212
|
+
# @overload complete_query(catalog: nil, query: nil, visitor_id: nil, language_codes: nil, device_type: nil, dataset: nil, max_suggestions: nil, enable_attribute_suggestions: nil, entity: nil)
|
210
213
|
# Pass arguments to `complete_query` via keyword arguments. Note that at
|
211
214
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
212
215
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -276,11 +279,15 @@ module Google
|
|
276
279
|
#
|
277
280
|
# The maximum allowed max suggestions is 20. If it is set higher, it will be
|
278
281
|
# capped by 20.
|
282
|
+
# @param enable_attribute_suggestions [::Boolean]
|
283
|
+
# If true, attribute suggestions are enabled and provided in response.
|
284
|
+
#
|
285
|
+
# This field is only available for "cloud-retail" dataset.
|
279
286
|
# @param entity [::String]
|
280
|
-
# The entity for customers
|
281
|
-
#
|
287
|
+
# The entity for customers who run multiple entities, domains, sites, or
|
288
|
+
# regions, for example, `Google US`, `Google Ads`, `Waymo`,
|
282
289
|
# `google.com`, `youtube.com`, etc.
|
283
|
-
# If this is set, it
|
290
|
+
# If this is set, it must be an exact match with
|
284
291
|
# {::Google::Cloud::Retail::V2::UserEvent#entity UserEvent.entity} to get
|
285
292
|
# per-entity autocomplete results.
|
286
293
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -317,12 +324,13 @@ module Google
|
|
317
324
|
# Customize the options with defaults
|
318
325
|
call_metadata = @config.rpcs.complete_query.metadata.to_h
|
319
326
|
|
320
|
-
# Set x-goog-api-client
|
327
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
321
328
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
322
329
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
323
330
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
324
331
|
transports_version_send: [:rest]
|
325
332
|
|
333
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
326
334
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
327
335
|
|
328
336
|
options.apply_defaults timeout: @config.rpcs.complete_query.timeout,
|
@@ -420,12 +428,13 @@ module Google
|
|
420
428
|
# Customize the options with defaults
|
421
429
|
call_metadata = @config.rpcs.import_completion_data.metadata.to_h
|
422
430
|
|
423
|
-
# Set x-goog-api-client
|
431
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
424
432
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
425
433
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
426
434
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
427
435
|
transports_version_send: [:rest]
|
428
436
|
|
437
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
429
438
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
430
439
|
|
431
440
|
options.apply_defaults timeout: @config.rpcs.import_completion_data.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,
|
@@ -13,7 +13,7 @@ require 'google/cloud/retail/v2/import_config_pb'
|
|
13
13
|
require 'google/longrunning/operations_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n/google/cloud/retail/v2/completion_service.proto\x12\x16google.cloud.retail.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\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#google/longrunning/operations.proto\"\
|
16
|
+
descriptor_data = "\n/google/cloud/retail/v2/completion_service.proto\x12\x16google.cloud.retail.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\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#google/longrunning/operations.proto\"\x83\x02\n\x14\x43ompleteQueryRequest\x12\x36\n\x07\x63\x61talog\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dretail.googleapis.com/Catalog\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nvisitor_id\x18\x07 \x01(\t\x12\x16\n\x0elanguage_codes\x18\x03 \x03(\t\x12\x13\n\x0b\x64\x65vice_type\x18\x04 \x01(\t\x12\x0f\n\x07\x64\x61taset\x18\x06 \x01(\t\x12\x17\n\x0fmax_suggestions\x18\x05 \x01(\x05\x12$\n\x1c\x65nable_attribute_suggestions\x18\t \x01(\x08\x12\x0e\n\x06\x65ntity\x18\n \x01(\t\"\x8d\x04\n\x15\x43ompleteQueryResponse\x12Z\n\x12\x63ompletion_results\x18\x01 \x03(\x0b\x32>.google.cloud.retail.v2.CompleteQueryResponse.CompletionResult\x12\x19\n\x11\x61ttribution_token\x18\x02 \x01(\t\x12\x63\n\x15recent_search_results\x18\x03 \x03(\x0b\x32@.google.cloud.retail.v2.CompleteQueryResponse.RecentSearchResultB\x02\x18\x01\x1a\xe6\x01\n\x10\x43ompletionResult\x12\x12\n\nsuggestion\x18\x01 \x01(\t\x12\x62\n\nattributes\x18\x02 \x03(\x0b\x32N.google.cloud.retail.v2.CompleteQueryResponse.CompletionResult.AttributesEntry\x1aZ\n\x0f\x41ttributesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0b\x32\'.google.cloud.retail.v2.CustomAttribute:\x02\x38\x01\x1a/\n\x12RecentSearchResult\x12\x15\n\rrecent_search\x18\x01 \x01(\t:\x02\x18\x01\x32\xb2\x04\n\x11\x43ompletionService\x12\xb3\x01\n\rCompleteQuery\x12,.google.cloud.retail.v2.CompleteQueryRequest\x1a-.google.cloud.retail.v2.CompleteQueryResponse\"E\x82\xd3\xe4\x93\x02?\x12=/v2/{catalog=projects/*/locations/*/catalogs/*}:completeQuery\x12\x9b\x02\n\x14ImportCompletionData\x12\x33.google.cloud.retail.v2.ImportCompletionDataRequest\x1a\x1d.google.longrunning.Operation\"\xae\x01\xca\x41\\\n3google.cloud.retail.v2.ImportCompletionDataResponse\x12%google.cloud.retail.v2.ImportMetadata\x82\xd3\xe4\x93\x02I\"D/v2/{parent=projects/*/locations/*/catalogs/*}/completionData:import:\x01*\x1aI\xca\x41\x15retail.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc1\x01\n\x1a\x63om.google.cloud.retail.v2B\x16\x43ompletionServiceProtoP\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"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for modifying Control.
|
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
|
|
@@ -242,10 +245,11 @@ module Google
|
|
242
245
|
# Customize the options with defaults
|
243
246
|
metadata = @config.rpcs.create_control.metadata.to_h
|
244
247
|
|
245
|
-
# Set x-goog-api-client
|
248
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
246
249
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
247
250
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
248
251
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
252
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
249
253
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
250
254
|
|
251
255
|
header_params = {}
|
@@ -331,10 +335,11 @@ module Google
|
|
331
335
|
# Customize the options with defaults
|
332
336
|
metadata = @config.rpcs.delete_control.metadata.to_h
|
333
337
|
|
334
|
-
# Set x-goog-api-client
|
338
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
335
339
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
336
340
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
337
341
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
342
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
338
343
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
339
344
|
|
340
345
|
header_params = {}
|
@@ -429,10 +434,11 @@ module Google
|
|
429
434
|
# Customize the options with defaults
|
430
435
|
metadata = @config.rpcs.update_control.metadata.to_h
|
431
436
|
|
432
|
-
# Set x-goog-api-client
|
437
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
433
438
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
434
439
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
435
440
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
441
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
436
442
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
437
443
|
|
438
444
|
header_params = {}
|
@@ -515,10 +521,11 @@ module Google
|
|
515
521
|
# Customize the options with defaults
|
516
522
|
metadata = @config.rpcs.get_control.metadata.to_h
|
517
523
|
|
518
|
-
# Set x-goog-api-client
|
524
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
519
525
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
520
526
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
521
527
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
528
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
522
529
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
523
530
|
|
524
531
|
header_params = {}
|
@@ -619,10 +626,11 @@ module Google
|
|
619
626
|
# Customize the options with defaults
|
620
627
|
metadata = @config.rpcs.list_controls.metadata.to_h
|
621
628
|
|
622
|
-
# Set x-goog-api-client
|
629
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
623
630
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
624
631
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
625
632
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
633
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
626
634
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
627
635
|
|
628
636
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for modifying Control.
|
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
|
|
@@ -234,12 +237,13 @@ module Google
|
|
234
237
|
# Customize the options with defaults
|
235
238
|
call_metadata = @config.rpcs.create_control.metadata.to_h
|
236
239
|
|
237
|
-
# Set x-goog-api-client
|
240
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
238
241
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
239
242
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
240
243
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
241
244
|
transports_version_send: [:rest]
|
242
245
|
|
246
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
243
247
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
244
248
|
|
245
249
|
options.apply_defaults timeout: @config.rpcs.create_control.timeout,
|
@@ -316,12 +320,13 @@ module Google
|
|
316
320
|
# Customize the options with defaults
|
317
321
|
call_metadata = @config.rpcs.delete_control.metadata.to_h
|
318
322
|
|
319
|
-
# Set x-goog-api-client
|
323
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
320
324
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
321
325
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
322
326
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
323
327
|
transports_version_send: [:rest]
|
324
328
|
|
329
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
325
330
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
326
331
|
|
327
332
|
options.apply_defaults timeout: @config.rpcs.delete_control.timeout,
|
@@ -407,12 +412,13 @@ module Google
|
|
407
412
|
# Customize the options with defaults
|
408
413
|
call_metadata = @config.rpcs.update_control.metadata.to_h
|
409
414
|
|
410
|
-
# Set x-goog-api-client
|
415
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
411
416
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
412
417
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
413
418
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
414
419
|
transports_version_send: [:rest]
|
415
420
|
|
421
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
416
422
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
417
423
|
|
418
424
|
options.apply_defaults timeout: @config.rpcs.update_control.timeout,
|
@@ -486,12 +492,13 @@ module Google
|
|
486
492
|
# Customize the options with defaults
|
487
493
|
call_metadata = @config.rpcs.get_control.metadata.to_h
|
488
494
|
|
489
|
-
# Set x-goog-api-client
|
495
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
490
496
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
491
497
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
492
498
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
493
499
|
transports_version_send: [:rest]
|
494
500
|
|
501
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
495
502
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
496
503
|
|
497
504
|
options.apply_defaults timeout: @config.rpcs.get_control.timeout,
|
@@ -583,12 +590,13 @@ module Google
|
|
583
590
|
# Customize the options with defaults
|
584
591
|
call_metadata = @config.rpcs.list_controls.metadata.to_h
|
585
592
|
|
586
|
-
# Set x-goog-api-client
|
593
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
587
594
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
588
595
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
589
596
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION,
|
590
597
|
transports_version_send: [:rest]
|
591
598
|
|
599
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
592
600
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
593
601
|
|
594
602
|
options.apply_defaults timeout: @config.rpcs.list_controls.timeout,
|
@@ -10,7 +10,7 @@ require 'google/cloud/retail/v2/common_pb'
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
11
11
|
|
12
12
|
|
13
|
-
descriptor_data = "\n\"google/cloud/retail/v2/model.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\x1fgoogle/protobuf/timestamp.proto\"\
|
13
|
+
descriptor_data = "\n\"google/cloud/retail/v2/model.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\x1fgoogle/protobuf/timestamp.proto\"\x97\x0e\n\x05Model\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12H\n\x0etraining_state\x18\x03 \x01(\x0e\x32+.google.cloud.retail.v2.Model.TrainingStateB\x03\xe0\x41\x01\x12\x46\n\rserving_state\x18\x04 \x01(\x0e\x32*.google.cloud.retail.v2.Model.ServingStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04type\x18\x07 \x01(\tB\x03\xe0\x41\x02\x12#\n\x16optimization_objective\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12U\n\x15periodic_tuning_state\x18\x0b \x01(\x0e\x32\x31.google.cloud.retail.v2.Model.PeriodicTuningStateB\x03\xe0\x41\x01\x12\x37\n\x0elast_tune_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1d\n\x10tuning_operation\x18\x0f \x01(\tB\x03\xe0\x41\x03\x12@\n\ndata_state\x18\x10 \x01(\x0e\x32\'.google.cloud.retail.v2.Model.DataStateB\x03\xe0\x41\x03\x12U\n\x10\x66iltering_option\x18\x12 \x01(\x0e\x32\x36.google.cloud.retail.v2.RecommendationsFilteringOptionB\x03\xe0\x41\x01\x12R\n\x14serving_config_lists\x18\x13 \x03(\x0b\x32/.google.cloud.retail.v2.Model.ServingConfigListB\x03\xe0\x41\x03\x12U\n\x15model_features_config\x18\x16 \x01(\x0b\x32\x31.google.cloud.retail.v2.Model.ModelFeaturesConfigB\x03\xe0\x41\x01\x1a\x34\n\x11ServingConfigList\x12\x1f\n\x12serving_config_ids\x18\x01 \x03(\tB\x03\xe0\x41\x01\x1a\x7f\n&FrequentlyBoughtTogetherFeaturesConfig\x12U\n\x15\x63ontext_products_type\x18\x02 \x01(\x0e\x32\x31.google.cloud.retail.v2.Model.ContextProductsTypeB\x03\xe0\x41\x01\x1a\xa1\x01\n\x13ModelFeaturesConfig\x12q\n!frequently_bought_together_config\x18\x01 \x01(\x0b\x32\x44.google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfigH\x00\x42\x17\n\x15type_dedicated_config\"R\n\x0cServingState\x12\x1d\n\x19SERVING_STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08INACTIVE\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\t\n\x05TUNED\x10\x03\"I\n\rTrainingState\x12\x1e\n\x1aTRAINING_STATE_UNSPECIFIED\x10\x00\x12\n\n\x06PAUSED\x10\x01\x12\x0c\n\x08TRAINING\x10\x02\"\x90\x01\n\x13PeriodicTuningState\x12%\n!PERIODIC_TUNING_STATE_UNSPECIFIED\x10\x00\x12\x1c\n\x18PERIODIC_TUNING_DISABLED\x10\x01\x12\x17\n\x13\x41LL_TUNING_DISABLED\x10\x03\x12\x1b\n\x17PERIODIC_TUNING_ENABLED\x10\x02\"D\n\tDataState\x12\x1a\n\x16\x44\x41TA_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44\x41TA_OK\x10\x01\x12\x0e\n\nDATA_ERROR\x10\x02\"w\n\x13\x43ontextProductsType\x12%\n!CONTEXT_PRODUCTS_TYPE_UNSPECIFIED\x10\x00\x12\x1a\n\x16SINGLE_CONTEXT_PRODUCT\x10\x01\x12\x1d\n\x19MULTIPLE_CONTEXT_PRODUCTS\x10\x02:k\xea\x41h\n\x1bretail.googleapis.com/Model\x12Iprojects/{project}/locations/{location}/catalogs/{catalog}/models/{model}B\xb5\x01\n\x1a\x63om.google.cloud.retail.v2B\nModelProtoP\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
14
|
|
15
15
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
16
|
|
@@ -43,10 +43,13 @@ module Google
|
|
43
43
|
module V2
|
44
44
|
Model = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Model").msgclass
|
45
45
|
Model::ServingConfigList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Model.ServingConfigList").msgclass
|
46
|
+
Model::FrequentlyBoughtTogetherFeaturesConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Model.FrequentlyBoughtTogetherFeaturesConfig").msgclass
|
47
|
+
Model::ModelFeaturesConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Model.ModelFeaturesConfig").msgclass
|
46
48
|
Model::ServingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Model.ServingState").enummodule
|
47
49
|
Model::TrainingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Model.TrainingState").enummodule
|
48
50
|
Model::PeriodicTuningState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Model.PeriodicTuningState").enummodule
|
49
51
|
Model::DataState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Model.DataState").enummodule
|
52
|
+
Model::ContextProductsType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Model.ContextProductsType").enummodule
|
50
53
|
end
|
51
54
|
end
|
52
55
|
end
|