google-cloud-retail-v2 0.6.0 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/retail/v2/catalog_service/client.rb +86 -12
- data/lib/google/cloud/retail/v2/completion_service/client.rb +53 -11
- data/lib/google/cloud/retail/v2/completion_service/operations.rb +115 -12
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +20 -3
- data/lib/google/cloud/retail/v2/product_service/client.rb +218 -30
- data/lib/google/cloud/retail/v2/product_service/operations.rb +115 -12
- data/lib/google/cloud/retail/v2/search_service/client.rb +29 -3
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +123 -16
- data/lib/google/cloud/retail/v2/user_event_service/operations.rb +115 -12
- data/lib/google/cloud/retail/v2/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/retail/v2/catalog.rb +6 -6
- data/proto_docs/google/cloud/retail/v2/common.rb +4 -3
- data/proto_docs/google/cloud/retail/v2/completion_service.rb +5 -5
- data/proto_docs/google/cloud/retail/v2/import_config.rb +1 -1
- data/proto_docs/google/cloud/retail/v2/product.rb +1 -1
- data/proto_docs/google/cloud/retail/v2/product_service.rb +2 -2
- data/proto_docs/google/cloud/retail/v2/search_service.rb +5 -0
- metadata +3 -3
@@ -74,7 +74,7 @@ module Google
|
|
74
74
|
initial_delay: 0.1, max_delay: 30.0, multiplier: 1.3, retry_codes: [14, 4]
|
75
75
|
}
|
76
76
|
|
77
|
-
default_config.rpcs.import_user_events.timeout =
|
77
|
+
default_config.rpcs.import_user_events.timeout = 600.0
|
78
78
|
default_config.rpcs.import_user_events.retry_policy = {
|
79
79
|
initial_delay: 0.1, max_delay: 300.0, multiplier: 1.3, retry_codes: [14, 4]
|
80
80
|
}
|
@@ -150,6 +150,7 @@ module Google
|
|
150
150
|
|
151
151
|
@operations_client = Operations.new do |config|
|
152
152
|
config.credentials = credentials
|
153
|
+
config.quota_project = @quota_project_id
|
153
154
|
config.endpoint = @config.endpoint
|
154
155
|
end
|
155
156
|
|
@@ -203,6 +204,21 @@ module Google
|
|
203
204
|
#
|
204
205
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
205
206
|
#
|
207
|
+
# @example Basic example
|
208
|
+
# require "google/cloud/retail/v2"
|
209
|
+
#
|
210
|
+
# # Create a client object. The client can be reused for multiple calls.
|
211
|
+
# client = Google::Cloud::Retail::V2::UserEventService::Client.new
|
212
|
+
#
|
213
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
214
|
+
# request = Google::Cloud::Retail::V2::WriteUserEventRequest.new
|
215
|
+
#
|
216
|
+
# # Call the write_user_event method.
|
217
|
+
# result = client.write_user_event request
|
218
|
+
#
|
219
|
+
# # The returned object is of type Google::Cloud::Retail::V2::UserEvent.
|
220
|
+
# p result
|
221
|
+
#
|
206
222
|
def write_user_event request, options = nil
|
207
223
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
208
224
|
|
@@ -220,9 +236,11 @@ module Google
|
|
220
236
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
221
237
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
222
238
|
|
223
|
-
header_params = {
|
224
|
-
|
225
|
-
|
239
|
+
header_params = {}
|
240
|
+
if request.parent
|
241
|
+
header_params["parent"] = request.parent
|
242
|
+
end
|
243
|
+
|
226
244
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
227
245
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
228
246
|
|
@@ -288,6 +306,21 @@ module Google
|
|
288
306
|
#
|
289
307
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
290
308
|
#
|
309
|
+
# @example Basic example
|
310
|
+
# require "google/cloud/retail/v2"
|
311
|
+
#
|
312
|
+
# # Create a client object. The client can be reused for multiple calls.
|
313
|
+
# client = Google::Cloud::Retail::V2::UserEventService::Client.new
|
314
|
+
#
|
315
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
316
|
+
# request = Google::Cloud::Retail::V2::CollectUserEventRequest.new
|
317
|
+
#
|
318
|
+
# # Call the collect_user_event method.
|
319
|
+
# result = client.collect_user_event request
|
320
|
+
#
|
321
|
+
# # The returned object is of type Google::Api::HttpBody.
|
322
|
+
# p result
|
323
|
+
#
|
291
324
|
def collect_user_event request, options = nil
|
292
325
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
293
326
|
|
@@ -305,9 +338,11 @@ module Google
|
|
305
338
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
306
339
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
307
340
|
|
308
|
-
header_params = {
|
309
|
-
|
310
|
-
|
341
|
+
header_params = {}
|
342
|
+
if request.parent
|
343
|
+
header_params["parent"] = request.parent
|
344
|
+
end
|
345
|
+
|
311
346
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
312
347
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
313
348
|
|
@@ -389,6 +424,28 @@ module Google
|
|
389
424
|
#
|
390
425
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
391
426
|
#
|
427
|
+
# @example Basic example
|
428
|
+
# require "google/cloud/retail/v2"
|
429
|
+
#
|
430
|
+
# # Create a client object. The client can be reused for multiple calls.
|
431
|
+
# client = Google::Cloud::Retail::V2::UserEventService::Client.new
|
432
|
+
#
|
433
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
434
|
+
# request = Google::Cloud::Retail::V2::PurgeUserEventsRequest.new
|
435
|
+
#
|
436
|
+
# # Call the purge_user_events method.
|
437
|
+
# result = client.purge_user_events request
|
438
|
+
#
|
439
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
440
|
+
# # object to check the status of an operation, cancel it, or wait
|
441
|
+
# # for results. Here is how to block until completion:
|
442
|
+
# result.wait_until_done! timeout: 60
|
443
|
+
# if result.response?
|
444
|
+
# p result.response
|
445
|
+
# else
|
446
|
+
# puts "Error!"
|
447
|
+
# end
|
448
|
+
#
|
392
449
|
def purge_user_events request, options = nil
|
393
450
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
394
451
|
|
@@ -406,9 +463,11 @@ module Google
|
|
406
463
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
407
464
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
408
465
|
|
409
|
-
header_params = {
|
410
|
-
|
411
|
-
|
466
|
+
header_params = {}
|
467
|
+
if request.parent
|
468
|
+
header_params["parent"] = request.parent
|
469
|
+
end
|
470
|
+
|
412
471
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
413
472
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
414
473
|
|
@@ -469,6 +528,28 @@ module Google
|
|
469
528
|
#
|
470
529
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
471
530
|
#
|
531
|
+
# @example Basic example
|
532
|
+
# require "google/cloud/retail/v2"
|
533
|
+
#
|
534
|
+
# # Create a client object. The client can be reused for multiple calls.
|
535
|
+
# client = Google::Cloud::Retail::V2::UserEventService::Client.new
|
536
|
+
#
|
537
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
538
|
+
# request = Google::Cloud::Retail::V2::ImportUserEventsRequest.new
|
539
|
+
#
|
540
|
+
# # Call the import_user_events method.
|
541
|
+
# result = client.import_user_events request
|
542
|
+
#
|
543
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
544
|
+
# # object to check the status of an operation, cancel it, or wait
|
545
|
+
# # for results. Here is how to block until completion:
|
546
|
+
# result.wait_until_done! timeout: 60
|
547
|
+
# if result.response?
|
548
|
+
# p result.response
|
549
|
+
# else
|
550
|
+
# puts "Error!"
|
551
|
+
# end
|
552
|
+
#
|
472
553
|
def import_user_events request, options = nil
|
473
554
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
474
555
|
|
@@ -486,9 +567,11 @@ module Google
|
|
486
567
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
487
568
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
488
569
|
|
489
|
-
header_params = {
|
490
|
-
|
491
|
-
|
570
|
+
header_params = {}
|
571
|
+
if request.parent
|
572
|
+
header_params["parent"] = request.parent
|
573
|
+
end
|
574
|
+
|
492
575
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
493
576
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
494
577
|
|
@@ -550,6 +633,28 @@ module Google
|
|
550
633
|
#
|
551
634
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
552
635
|
#
|
636
|
+
# @example Basic example
|
637
|
+
# require "google/cloud/retail/v2"
|
638
|
+
#
|
639
|
+
# # Create a client object. The client can be reused for multiple calls.
|
640
|
+
# client = Google::Cloud::Retail::V2::UserEventService::Client.new
|
641
|
+
#
|
642
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
643
|
+
# request = Google::Cloud::Retail::V2::RejoinUserEventsRequest.new
|
644
|
+
#
|
645
|
+
# # Call the rejoin_user_events method.
|
646
|
+
# result = client.rejoin_user_events request
|
647
|
+
#
|
648
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
649
|
+
# # object to check the status of an operation, cancel it, or wait
|
650
|
+
# # for results. Here is how to block until completion:
|
651
|
+
# result.wait_until_done! timeout: 60
|
652
|
+
# if result.response?
|
653
|
+
# p result.response
|
654
|
+
# else
|
655
|
+
# puts "Error!"
|
656
|
+
# end
|
657
|
+
#
|
553
658
|
def rejoin_user_events request, options = nil
|
554
659
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
555
660
|
|
@@ -567,9 +672,11 @@ module Google
|
|
567
672
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
568
673
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
569
674
|
|
570
|
-
header_params = {
|
571
|
-
|
572
|
-
|
675
|
+
header_params = {}
|
676
|
+
if request.parent
|
677
|
+
header_params["parent"] = request.parent
|
678
|
+
end
|
679
|
+
|
573
680
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
574
681
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
575
682
|
|
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::Retail::V2::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -28,12 +28,12 @@ module Google
|
|
28
28
|
# The type of {::Google::Cloud::Retail::V2::Product Product}s allowed to be
|
29
29
|
# ingested into the catalog. Acceptable values are:
|
30
30
|
#
|
31
|
-
# * `primary` (default): You can
|
32
|
-
# {::Google::Cloud::Retail::V2::Product
|
33
|
-
# {::Google::Cloud::Retail::V2::Product Product}
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
31
|
+
# * `primary` (default): You can ingest
|
32
|
+
# {::Google::Cloud::Retail::V2::Product Product}s of all types. When
|
33
|
+
# ingesting a {::Google::Cloud::Retail::V2::Product Product}, its type will
|
34
|
+
# default to
|
35
|
+
# {::Google::Cloud::Retail::V2::Product::Type::PRIMARY Product.Type.PRIMARY} if
|
36
|
+
# unset.
|
37
37
|
# * `variant`: You can only ingest
|
38
38
|
# {::Google::Cloud::Retail::V2::Product::Type::VARIANT Product.Type.VARIANT}
|
39
39
|
# {::Google::Cloud::Retail::V2::Product Product}s.
|
@@ -175,8 +175,9 @@ module Google
|
|
175
175
|
# {::Google::Cloud::Retail::V2::FulfillmentInfo#type FulfillmentInfo.type.same-day-delivery}.
|
176
176
|
#
|
177
177
|
# A maximum of 3000 values are allowed. Each value must be a string with a
|
178
|
-
# length limit of 30 characters, matching the pattern [a-zA-Z0-9_-]
|
179
|
-
# "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
|
178
|
+
# length limit of 30 characters, matching the pattern `[a-zA-Z0-9_-]+`, such
|
179
|
+
# as "store1" or "REGION-2". Otherwise, an INVALID_ARGUMENT error is
|
180
|
+
# returned.
|
180
181
|
class FulfillmentInfo
|
181
182
|
include ::Google::Protobuf::MessageExts
|
182
183
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -421,7 +422,7 @@ module Google
|
|
421
422
|
# ID of the promotion. For example, "free gift".
|
422
423
|
#
|
423
424
|
# The value value must be a UTF-8 encoded string with a length limit of 128
|
424
|
-
# characters, and match the pattern: [a-zA-Z][a-zA-Z0-9_]
|
425
|
+
# characters, and match the pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example,
|
425
426
|
# id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is
|
426
427
|
# returned.
|
427
428
|
#
|
@@ -55,18 +55,18 @@ module Google
|
|
55
55
|
# @return [::String]
|
56
56
|
# The device type context for completion suggestions.
|
57
57
|
# It is useful to apply different suggestions on different device types, e.g.
|
58
|
-
# DESKTOP
|
58
|
+
# `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device
|
59
59
|
# types.
|
60
60
|
#
|
61
61
|
# Supported formats:
|
62
62
|
#
|
63
|
-
# * UNKNOWN_DEVICE_TYPE
|
63
|
+
# * `UNKNOWN_DEVICE_TYPE`
|
64
64
|
#
|
65
|
-
# * DESKTOP
|
65
|
+
# * `DESKTOP`
|
66
66
|
#
|
67
|
-
# * MOBILE
|
67
|
+
# * `MOBILE`
|
68
68
|
#
|
69
|
-
# * A customized string starts with OTHER_
|
69
|
+
# * A customized string starts with `OTHER_`, e.g. `OTHER_IPHONE`.
|
70
70
|
# @!attribute [rw] dataset
|
71
71
|
# @return [::String]
|
72
72
|
# Determines which dataset to use for fetching completion. "user-data" will
|
@@ -150,7 +150,7 @@ module Google
|
|
150
150
|
# Unique identifier provided by client, within the ancestor
|
151
151
|
# dataset scope. Ensures idempotency and used for request deduplication.
|
152
152
|
# Server-generated if unspecified. Up to 128 characters long and must match
|
153
|
-
# the pattern:
|
153
|
+
# the pattern: `[a-zA-Z0-9_]+`. This is returned as [Operation.name][] in
|
154
154
|
# {::Google::Cloud::Retail::V2::ImportMetadata ImportMetadata}.
|
155
155
|
#
|
156
156
|
# Only supported when
|
@@ -240,7 +240,7 @@ module Google
|
|
240
240
|
# * The key must be a UTF-8 encoded string with a length limit of 128
|
241
241
|
# characters.
|
242
242
|
# * For indexable attribute, the key must match the pattern:
|
243
|
-
# [a-zA-Z0-9][a-zA-Z0-9_]
|
243
|
+
# `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, key0LikeThis or KEY_1_LIKE_THIS.
|
244
244
|
# @!attribute [rw] tags
|
245
245
|
# @return [::Array<::String>]
|
246
246
|
# Custom tags associated with the product.
|
@@ -355,7 +355,7 @@ module Google
|
|
355
355
|
#
|
356
356
|
# At least 1 value is required, and a maximum of 2000 values are allowed.
|
357
357
|
# Each value must be a string with a length limit of 10 characters, matching
|
358
|
-
# the pattern [a-zA-Z0-9_-]
|
358
|
+
# the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an
|
359
359
|
# INVALID_ARGUMENT error is returned.
|
360
360
|
#
|
361
361
|
# If the total number of place IDs exceeds 2000 for this
|
@@ -436,7 +436,7 @@ module Google
|
|
436
436
|
#
|
437
437
|
# At least 1 value is required, and a maximum of 2000 values are allowed.
|
438
438
|
# Each value must be a string with a length limit of 10 characters, matching
|
439
|
-
# the pattern [a-zA-Z0-9_-]
|
439
|
+
# the pattern `[a-zA-Z0-9_-]+`, such as "store1" or "REGION-2". Otherwise, an
|
440
440
|
# INVALID_ARGUMENT error is returned.
|
441
441
|
# @!attribute [rw] remove_time
|
442
442
|
# @return [::Google::Protobuf::Timestamp]
|
@@ -157,7 +157,10 @@ module Google
|
|
157
157
|
# * price
|
158
158
|
# * originalPrice
|
159
159
|
# * discount
|
160
|
+
# * variantId
|
160
161
|
# * inventory(place_id,price)
|
162
|
+
# * inventory(place_id,attributes.key), where key is any key in the
|
163
|
+
# [Product.inventories.attributes][] map.
|
161
164
|
# * attributes.key, where key is any key in the
|
162
165
|
# {::Google::Cloud::Retail::V2::Product#attributes Product.attributes} map.
|
163
166
|
# * pickupInStore.id, where id is any
|
@@ -319,6 +322,7 @@ module Google
|
|
319
322
|
# * "customFulfillment3"
|
320
323
|
# * "customFulfillment4"
|
321
324
|
# * "customFulfillment5"
|
325
|
+
# * "inventory(place_id,attributes.key)"
|
322
326
|
#
|
323
327
|
# * numerical_field =
|
324
328
|
# * "price"
|
@@ -327,6 +331,7 @@ module Google
|
|
327
331
|
# * "ratingCount"
|
328
332
|
# * "attributes.key"
|
329
333
|
# * "inventory(place_id,price)"
|
334
|
+
# * "inventory(place_id,attributes.key)"
|
330
335
|
# @!attribute [rw] intervals
|
331
336
|
# @return [::Array<::Google::Cloud::Retail::V2::Interval>]
|
332
337
|
# Set only if values should be bucketized into intervals. Must be set
|