google-cloud-retail-v2 0.6.4 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -6
  3. data/lib/google/cloud/retail/v2/catalog_pb.rb +2 -4
  4. data/lib/google/cloud/retail/v2/catalog_service/client.rb +9 -9
  5. data/lib/google/cloud/retail/v2/catalog_service_pb.rb +3 -1
  6. data/lib/google/cloud/retail/v2/catalog_service_services_pb.rb +0 -8
  7. data/lib/google/cloud/retail/v2/common_pb.rb +8 -5
  8. data/lib/google/cloud/retail/v2/completion_service/client.rb +20 -21
  9. data/lib/google/cloud/retail/v2/completion_service/operations.rb +3 -0
  10. data/lib/google/cloud/retail/v2/completion_service.rb +1 -2
  11. data/lib/google/cloud/retail/v2/completion_service_pb.rb +2 -1
  12. data/lib/google/cloud/retail/v2/completion_service_services_pb.rb +7 -7
  13. data/lib/google/cloud/retail/v2/import_config_pb.rb +2 -2
  14. data/lib/google/cloud/retail/v2/prediction_service/client.rb +17 -4
  15. data/lib/google/cloud/retail/v2/prediction_service_pb.rb +2 -1
  16. data/lib/google/cloud/retail/v2/product_pb.rb +3 -2
  17. data/lib/google/cloud/retail/v2/product_service/client.rb +337 -23
  18. data/lib/google/cloud/retail/v2/product_service/operations.rb +3 -0
  19. data/lib/google/cloud/retail/v2/product_service_pb.rb +29 -2
  20. data/lib/google/cloud/retail/v2/product_service_services_pb.rb +47 -9
  21. data/lib/google/cloud/retail/v2/promotion_pb.rb +22 -0
  22. data/lib/google/cloud/retail/v2/purge_config_pb.rb +3 -2
  23. data/lib/google/cloud/retail/v2/search_service/client.rb +56 -19
  24. data/lib/google/cloud/retail/v2/search_service.rb +1 -2
  25. data/lib/google/cloud/retail/v2/search_service_pb.rb +28 -3
  26. data/lib/google/cloud/retail/v2/search_service_services_pb.rb +2 -4
  27. data/lib/google/cloud/retail/v2/user_event_pb.rb +2 -2
  28. data/lib/google/cloud/retail/v2/user_event_service/client.rb +4 -3
  29. data/lib/google/cloud/retail/v2/user_event_service/operations.rb +3 -0
  30. data/lib/google/cloud/retail/v2/user_event_service_pb.rb +3 -1
  31. data/lib/google/cloud/retail/v2/user_event_service_services_pb.rb +4 -3
  32. data/lib/google/cloud/retail/v2/version.rb +1 -1
  33. data/lib/google/cloud/retail/v2.rb +2 -0
  34. data/proto_docs/google/cloud/retail/v2/catalog.rb +8 -8
  35. data/proto_docs/google/cloud/retail/v2/catalog_service.rb +9 -0
  36. data/proto_docs/google/cloud/retail/v2/common.rb +100 -25
  37. data/proto_docs/google/cloud/retail/v2/completion_service.rb +28 -18
  38. data/proto_docs/google/cloud/retail/v2/import_config.rb +38 -23
  39. data/proto_docs/google/cloud/retail/v2/prediction_service.rb +19 -6
  40. data/proto_docs/google/cloud/retail/v2/product.rb +50 -41
  41. data/proto_docs/google/cloud/retail/v2/product_service.rb +154 -6
  42. data/proto_docs/google/cloud/retail/v2/promotion.rb +43 -0
  43. data/proto_docs/google/cloud/retail/v2/search_service.rb +162 -28
  44. data/proto_docs/google/cloud/retail/v2/user_event.rb +30 -14
  45. data/proto_docs/google/protobuf/any.rb +3 -3
  46. data/proto_docs/google/protobuf/struct.rb +2 -2
  47. metadata +14 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5a649dac660528f0cc6df350433fadbebeb4667b242626fcc0132c9f0991764
4
- data.tar.gz: 7eeb345615247cc8d5615e82fc552e33da8e97dfce7de9a86a178ce4eb6bdca9
3
+ metadata.gz: f199a731870887e4a82c0ed6e57baa1b0053c16ae645de55956210981675e9e0
4
+ data.tar.gz: 97989b41ed188ee4457af6bbede9fb0cfcdcb567d7704d2d24df474cdd9fe7b7
5
5
  SHA512:
6
- metadata.gz: c7c62e299e7df843e466cbec3e49396114c482470af10c9c7b2af946711f7e3d48cf260e7f99583299609da6af3d84cc5750a8c56105f35c733f02ebe8f53219
7
- data.tar.gz: 8d9424d295d578b88ab237281ae148794a12460ce96d8a5ed996c69c442414ab3849ba312967f15ebed17ea5d923ca159952b8eb9be7169dad7f52e5ea160e59
6
+ metadata.gz: 9d6d6b0b4810c7f0745417563ca640bec1921bd4dc1ad6a9e5d5c56c0f87b7d218a29f31b4a7014ba722de9637de11efaa6231618e5c3dc579739df27cbc63ce
7
+ data.tar.gz: d8db9acbb06dd6a91c5a39ba0bb6be1057f44bb5c4299c8e9c4f68e9bd1489429881ac987371e556ae8d259b0e4d93ecb29eef43510d2d68d13419936d3c1bee
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Retail::V2::ListCatalogsRequest.new # (request fields
37
37
  response = client.list_catalogs request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-retail-v2/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/retail/docs/apis)
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -1,12 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/retail/v2/catalog.proto
3
3
 
4
- require 'google/api/annotations_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/api/field_behavior_pb'
6
7
  require 'google/api/resource_pb'
7
- require 'google/cloud/retail/v2/common_pb'
8
- require 'google/cloud/retail/v2/import_config_pb'
9
- require 'google/protobuf'
10
8
 
11
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
10
  add_file("google/cloud/retail/v2/catalog.proto", :syntax => :proto3) do
@@ -397,10 +397,6 @@ module Google
397
397
  # * UserEventService will only join events with products from branch
398
398
  # \\{newBranch}.
399
399
  #
400
- # This feature is only available for users who have Retail Search enabled.
401
- # Please submit a form [here](https://cloud.google.com/contact) to contact
402
- # cloud sales if you are interested in using Retail Search.
403
- #
404
400
  # @overload set_default_branch(request, options = nil)
405
401
  # Pass arguments to `set_default_branch` via a request object, either of type
406
402
  # {::Google::Cloud::Retail::V2::SetDefaultBranchRequest} or an equivalent Hash.
@@ -411,7 +407,7 @@ module Google
411
407
  # @param options [::Gapic::CallOptions, ::Hash]
412
408
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
413
409
  #
414
- # @overload set_default_branch(catalog: nil, branch_id: nil, note: nil)
410
+ # @overload set_default_branch(catalog: nil, branch_id: nil, note: nil, force: nil)
415
411
  # Pass arguments to `set_default_branch` via keyword arguments. Note that at
416
412
  # least one keyword argument is required. To specify no parameters, or to keep all
417
413
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -424,6 +420,10 @@ module Google
424
420
  #
425
421
  # This field must be one of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT
426
422
  # error is returned.
423
+ #
424
+ # If there are no sufficient active products in the targeted branch and
425
+ # {::Google::Cloud::Retail::V2::SetDefaultBranchRequest#force force} is not set, a
426
+ # FAILED_PRECONDITION error is returned.
427
427
  # @param note [::String]
428
428
  # Some note on this request, this can be retrieved by
429
429
  # {::Google::Cloud::Retail::V2::CatalogService::Client#get_default_branch CatalogService.GetDefaultBranch}
@@ -431,6 +431,10 @@ module Google
431
431
  #
432
432
  # This field must be a UTF-8 encoded string with a length limit of 1,000
433
433
  # characters. Otherwise, an INVALID_ARGUMENT error is returned.
434
+ # @param force [::Boolean]
435
+ # If set to true, it permits switching to a branch with
436
+ # {::Google::Cloud::Retail::V2::SetDefaultBranchRequest#branch_id branch_id} even
437
+ # if it has no sufficient active products.
434
438
  #
435
439
  # @yield [response, operation] Access the result along with the RPC operation
436
440
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -501,10 +505,6 @@ module Google
501
505
  # {::Google::Cloud::Retail::V2::CatalogService::Client#set_default_branch CatalogService.SetDefaultBranch}
502
506
  # method under a specified parent catalog.
503
507
  #
504
- # This feature is only available for users who have Retail Search enabled.
505
- # Please submit a form [here](https://cloud.google.com/contact) to contact
506
- # cloud sales if you are interested in using Retail Search.
507
- #
508
508
  # @overload get_default_branch(request, options = nil)
509
509
  # Pass arguments to `get_default_branch` via a request object, either of type
510
510
  # {::Google::Cloud::Retail::V2::GetDefaultBranchRequest} or an equivalent Hash.
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/retail/v2/catalog_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -9,7 +11,6 @@ require 'google/cloud/retail/v2/catalog_pb'
9
11
  require 'google/protobuf/empty_pb'
10
12
  require 'google/protobuf/field_mask_pb'
11
13
  require 'google/protobuf/timestamp_pb'
12
- require 'google/protobuf'
13
14
 
14
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
16
  add_file("google/cloud/retail/v2/catalog_service.proto", :syntax => :proto3) do
@@ -30,6 +31,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
30
31
  optional :catalog, :string, 1
31
32
  optional :branch_id, :string, 2
32
33
  optional :note, :string, 3
34
+ optional :force, :bool, 4
33
35
  end
34
36
  add_message "google.cloud.retail.v2.GetDefaultBranchRequest" do
35
37
  optional :catalog, :string, 1
@@ -71,18 +71,10 @@ module Google
71
71
  # (if branch is not explicitly set).
72
72
  # * UserEventService will only join events with products from branch
73
73
  # {newBranch}.
74
- #
75
- # This feature is only available for users who have Retail Search enabled.
76
- # Please submit a form [here](https://cloud.google.com/contact) to contact
77
- # cloud sales if you are interested in using Retail Search.
78
74
  rpc :SetDefaultBranch, ::Google::Cloud::Retail::V2::SetDefaultBranchRequest, ::Google::Protobuf::Empty
79
75
  # Get which branch is currently default branch set by
80
76
  # [CatalogService.SetDefaultBranch][google.cloud.retail.v2.CatalogService.SetDefaultBranch]
81
77
  # method under a specified parent catalog.
82
- #
83
- # This feature is only available for users who have Retail Search enabled.
84
- # Please submit a form [here](https://cloud.google.com/contact) to contact
85
- # cloud sales if you are interested in using Retail Search.
86
78
  rpc :GetDefaultBranch, ::Google::Cloud::Retail::V2::GetDefaultBranchRequest, ::Google::Cloud::Retail::V2::GetDefaultBranchResponse
87
79
  end
88
80
 
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/retail/v2/common.proto
3
3
 
4
- require 'google/api/annotations_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/api/field_behavior_pb'
6
7
  require 'google/protobuf/timestamp_pb'
7
- require 'google/protobuf'
8
8
 
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/retail/v2/common.proto", :syntax => :proto3) do
@@ -65,8 +65,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
65
65
  optional :user_agent, :string, 3
66
66
  optional :direct_user_request, :bool, 4
67
67
  end
68
- add_message "google.cloud.retail.v2.Promotion" do
69
- optional :promotion_id, :string, 1
68
+ add_message "google.cloud.retail.v2.LocalInventory" do
69
+ optional :place_id, :string, 1
70
+ optional :price_info, :message, 2, "google.cloud.retail.v2.PriceInfo"
71
+ map :attributes, :string, :message, 3, "google.cloud.retail.v2.CustomAttribute"
72
+ repeated :fulfillment_types, :string, 4
70
73
  end
71
74
  end
72
75
  end
@@ -85,7 +88,7 @@ module Google
85
88
  PriceInfo::PriceRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.PriceInfo.PriceRange").msgclass
86
89
  Rating = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rating").msgclass
87
90
  UserInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.UserInfo").msgclass
88
- Promotion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Promotion").msgclass
91
+ LocalInventory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.LocalInventory").msgclass
89
92
  end
90
93
  end
91
94
  end
@@ -30,8 +30,7 @@ module Google
30
30
  # Auto-completion service for retail.
31
31
  #
32
32
  # This feature is only available for users who have Retail Search enabled.
33
- # Please submit a form [here](https://cloud.google.com/contact) to contact
34
- # cloud sales if you are interested in using Retail Search.
33
+ # Please enable Retail Search on Cloud Console before using this feature.
35
34
  #
36
35
  class Client
37
36
  include Paths
@@ -170,8 +169,7 @@ module Google
170
169
  # Completes the specified prefix with keyword suggestions.
171
170
  #
172
171
  # This feature is only available for users who have Retail Search enabled.
173
- # Please submit a form [here](https://cloud.google.com/contact) to contact
174
- # cloud sales if you are interested in using Retail Search.
172
+ # Please enable Retail Search on Cloud Console before using this feature.
175
173
  #
176
174
  # @overload complete_query(request, options = nil)
177
175
  # Pass arguments to `complete_query` via a request object, either of type
@@ -198,21 +196,20 @@ module Google
198
196
  #
199
197
  # The maximum number of allowed characters is 255.
200
198
  # @param visitor_id [::String]
201
- # A unique identifier for tracking visitors. For example, this could be
202
- # implemented with an HTTP cookie, which should be able to uniquely identify
203
- # a visitor on a single device. This unique identifier should not change if
204
- # the visitor logs in or out of the website.
199
+ # Required field. A unique identifier for tracking visitors. For example,
200
+ # this could be implemented with an HTTP cookie, which should be able to
201
+ # uniquely identify a visitor on a single device. This unique identifier
202
+ # should not change if the visitor logs in or out of the website.
205
203
  #
206
204
  # The field must be a UTF-8 encoded string with a length limit of 128
207
205
  # characters. Otherwise, an INVALID_ARGUMENT error is returned.
208
206
  # @param language_codes [::Array<::String>]
209
- # The list of languages of the query. This is
210
- # the BCP-47 language code, such as "en-US" or "sr-Latn".
211
- # For more information, see
212
- # [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
213
- #
214
- # The maximum number of allowed characters is 255.
215
- # Only "en-US" is currently supported.
207
+ # The language filters applied to the output suggestions. If set, it should
208
+ # contain the language of the query. If not set, suggestions are returned
209
+ # without considering language restrictions. This is the BCP-47 language
210
+ # code, such as "en-US" or "sr-Latn". For more information, see [Tags for
211
+ # Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum
212
+ # number of language codes is 3.
216
213
  # @param device_type [::String]
217
214
  # The device type context for completion suggestions.
218
215
  # It is useful to apply different suggestions on different device types, e.g.
@@ -239,9 +236,9 @@ module Google
239
236
  #
240
237
  # * user-data
241
238
  #
242
- # * cloud-retail
243
- # This option requires additional allowlisting. Before using cloud-retail,
244
- # contact Cloud Retail support team first.
239
+ # * cloud-retail:
240
+ # This option requires enabling auto-learning function first. See
241
+ # [guidelines](https://cloud.google.com/retail/docs/completion-overview#generated-completion-dataset).
245
242
  # @param max_suggestions [::Integer]
246
243
  # Completion max suggestions. If left unset or set to 0, then will fallback
247
244
  # to the configured value [CompletionConfig.max_suggestions][].
@@ -316,11 +313,13 @@ module Google
316
313
  ##
317
314
  # Bulk import of processed completion dataset.
318
315
  #
319
- # Request processing may be synchronous. Partial updating is not supported.
316
+ # Request processing is asynchronous. Partial updating is not supported.
317
+ #
318
+ # The operation is successfully finished only after the imported suggestions
319
+ # are indexed successfully and ready for serving. The process takes hours.
320
320
  #
321
321
  # This feature is only available for users who have Retail Search enabled.
322
- # Please submit a form [here](https://cloud.google.com/contact) to contact
323
- # cloud sales if you are interested in using Retail Search.
322
+ # Please enable Retail Search on Cloud Console before using this feature.
324
323
  #
325
324
  # @overload import_completion_data(request, options = nil)
326
325
  # Pass arguments to `import_completion_data` via a request object, either of type
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -35,8 +35,7 @@ module Google
35
35
  # Auto-completion service for retail.
36
36
  #
37
37
  # This feature is only available for users who have Retail Search enabled.
38
- # Please submit a form [here](https://cloud.google.com/contact) to contact
39
- # cloud sales if you are interested in using Retail Search.
38
+ # Please enable Retail Search on Cloud Console before using this feature.
40
39
  #
41
40
  # To load this service and instantiate a client:
42
41
  #
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/retail/v2/completion_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -8,7 +10,6 @@ require 'google/api/resource_pb'
8
10
  require 'google/cloud/retail/v2/common_pb'
9
11
  require 'google/cloud/retail/v2/import_config_pb'
10
12
  require 'google/longrunning/operations_pb'
11
- require 'google/protobuf'
12
13
 
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/cloud/retail/v2/completion_service.proto", :syntax => :proto3) do
@@ -27,8 +27,7 @@ module Google
27
27
  # Auto-completion service for retail.
28
28
  #
29
29
  # This feature is only available for users who have Retail Search enabled.
30
- # Please submit a form [here](https://cloud.google.com/contact) to contact
31
- # cloud sales if you are interested in using Retail Search.
30
+ # Please enable Retail Search on Cloud Console before using this feature.
32
31
  class Service
33
32
 
34
33
  include ::GRPC::GenericService
@@ -40,16 +39,17 @@ module Google
40
39
  # Completes the specified prefix with keyword suggestions.
41
40
  #
42
41
  # This feature is only available for users who have Retail Search enabled.
43
- # Please submit a form [here](https://cloud.google.com/contact) to contact
44
- # cloud sales if you are interested in using Retail Search.
42
+ # Please enable Retail Search on Cloud Console before using this feature.
45
43
  rpc :CompleteQuery, ::Google::Cloud::Retail::V2::CompleteQueryRequest, ::Google::Cloud::Retail::V2::CompleteQueryResponse
46
44
  # Bulk import of processed completion dataset.
47
45
  #
48
- # Request processing may be synchronous. Partial updating is not supported.
46
+ # Request processing is asynchronous. Partial updating is not supported.
47
+ #
48
+ # The operation is successfully finished only after the imported suggestions
49
+ # are indexed successfully and ready for serving. The process takes hours.
49
50
  #
50
51
  # This feature is only available for users who have Retail Search enabled.
51
- # Please submit a form [here](https://cloud.google.com/contact) to contact
52
- # cloud sales if you are interested in using Retail Search.
52
+ # Please enable Retail Search on Cloud Console before using this feature.
53
53
  rpc :ImportCompletionData, ::Google::Cloud::Retail::V2::ImportCompletionDataRequest, ::Google::Longrunning::Operation
54
54
  end
55
55
 
@@ -1,7 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/retail/v2/import_config.proto
3
3
 
4
- require 'google/api/annotations_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/api/field_behavior_pb'
6
7
  require 'google/api/resource_pb'
7
8
  require 'google/cloud/retail/v2/product_pb'
@@ -10,7 +11,6 @@ require 'google/protobuf/field_mask_pb'
10
11
  require 'google/protobuf/timestamp_pb'
11
12
  require 'google/rpc/status_pb'
12
13
  require 'google/type/date_pb'
13
- require 'google/protobuf'
14
14
 
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/cloud/retail/v2/import_config.proto", :syntax => :proto3) do
@@ -182,6 +182,16 @@ module Google
182
182
  # they took to trigger the predict request. Note that this user event detail
183
183
  # won't be ingested to userEvent logs. Thus, a separate userEvent write
184
184
  # request is required for event logging.
185
+ #
186
+ # Don't set
187
+ # {::Google::Cloud::Retail::V2::UserEvent#visitor_id UserEvent.visitor_id} or
188
+ # {::Google::Cloud::Retail::V2::UserInfo#user_id UserInfo.user_id} to the same
189
+ # fixed ID for different users. If you are trying to receive non-personalized
190
+ # recommendations (not recommended; this can negatively impact model
191
+ # performance), instead set
192
+ # {::Google::Cloud::Retail::V2::UserEvent#visitor_id UserEvent.visitor_id} to a
193
+ # random unique ID and leave
194
+ # {::Google::Cloud::Retail::V2::UserInfo#user_id UserInfo.user_id} unset.
185
195
  # @param page_size [::Integer]
186
196
  # Maximum number of results to return per page. Set this property
187
197
  # to the number of prediction results needed. If zero, the service will
@@ -213,9 +223,12 @@ module Google
213
223
  # * filterOutOfStockItems tag=(-"promotional")
214
224
  # * filterOutOfStockItems
215
225
  #
216
- # If your filter blocks all prediction results, nothing will be returned. If
217
- # you want generic (unfiltered) popular products to be returned instead, set
218
- # `strictFiltering` to false in `PredictRequest.params`.
226
+ # If your filter blocks all prediction results, the API will return generic
227
+ # (unfiltered) popular products. If you only want results strictly matching
228
+ # the filters, set `strictFiltering` to True in `PredictRequest.params` to
229
+ # receive empty results instead.
230
+ # Note that the API will never return items with storageStatus of "EXPIRED"
231
+ # or "DELETED" regardless of filter choices.
219
232
  # @param validate_only [::Boolean]
220
233
  # Use validate only mode for this prediction query. If set to true, a
221
234
  # dummy model will be used that returns arbitrary products.
@@ -253,7 +266,7 @@ module Google
253
266
  # * Each resource can have multiple labels, up to a maximum of 64.
254
267
  # * Each label must be a key-value pair.
255
268
  # * Keys have a minimum length of 1 character and a maximum length of 63
256
- # characters, and cannot be empty. Values can be empty, and have a maximum
269
+ # characters and cannot be empty. Values can be empty and have a maximum
257
270
  # length of 63 characters.
258
271
  # * Keys and values can contain only lowercase letters, numeric characters,
259
272
  # underscores, and dashes. All characters must use UTF-8 encoding, and
@@ -1,12 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/retail/v2/prediction_service.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/cloud/retail/v2/user_event_pb'
8
10
  require 'google/protobuf/struct_pb'
9
- require 'google/protobuf'
10
11
 
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/cloud/retail/v2/prediction_service.proto", :syntax => :proto3) do
@@ -1,15 +1,16 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/retail/v2/product.proto
3
3
 
4
- require 'google/api/annotations_pb'
4
+ require 'google/protobuf'
5
+
5
6
  require 'google/api/field_behavior_pb'
6
7
  require 'google/api/resource_pb'
7
8
  require 'google/cloud/retail/v2/common_pb'
9
+ require 'google/cloud/retail/v2/promotion_pb'
8
10
  require 'google/protobuf/duration_pb'
9
11
  require 'google/protobuf/field_mask_pb'
10
12
  require 'google/protobuf/timestamp_pb'
11
13
  require 'google/protobuf/wrappers_pb'
12
- require 'google/protobuf'
13
14
 
14
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
16
  add_file("google/cloud/retail/v2/product.proto", :syntax => :proto3) do