google-cloud-retail-v2 0.16.1 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/retail/v2/catalog_service/client.rb +10 -1
  3. data/lib/google/cloud/retail/v2/catalog_service/rest/client.rb +180 -0
  4. data/lib/google/cloud/retail/v2/completion_service/client.rb +10 -1
  5. data/lib/google/cloud/retail/v2/completion_service/operations.rb +10 -1
  6. data/lib/google/cloud/retail/v2/completion_service/rest/client.rb +39 -0
  7. data/lib/google/cloud/retail/v2/completion_service/rest/operations.rb +75 -0
  8. data/lib/google/cloud/retail/v2/control_service/client.rb +10 -1
  9. data/lib/google/cloud/retail/v2/control_service/rest/client.rb +84 -0
  10. data/lib/google/cloud/retail/v2/model_service/client.rb +10 -1
  11. data/lib/google/cloud/retail/v2/model_service/operations.rb +10 -1
  12. data/lib/google/cloud/retail/v2/model_service/rest/client.rb +146 -0
  13. data/lib/google/cloud/retail/v2/model_service/rest/operations.rb +75 -0
  14. data/lib/google/cloud/retail/v2/prediction_service/client.rb +10 -1
  15. data/lib/google/cloud/retail/v2/prediction_service/rest/client.rb +16 -0
  16. data/lib/google/cloud/retail/v2/product_service/client.rb +10 -1
  17. data/lib/google/cloud/retail/v2/product_service/operations.rb +10 -1
  18. data/lib/google/cloud/retail/v2/product_service/rest/client.rb +222 -0
  19. data/lib/google/cloud/retail/v2/product_service/rest/operations.rb +75 -0
  20. data/lib/google/cloud/retail/v2/search_service/client.rb +10 -1
  21. data/lib/google/cloud/retail/v2/search_service/rest/client.rb +20 -0
  22. data/lib/google/cloud/retail/v2/serving_config_service/client.rb +10 -1
  23. data/lib/google/cloud/retail/v2/serving_config_service/rest/client.rb +116 -0
  24. data/lib/google/cloud/retail/v2/user_event_service/client.rb +10 -1
  25. data/lib/google/cloud/retail/v2/user_event_service/operations.rb +10 -1
  26. data/lib/google/cloud/retail/v2/user_event_service/rest/client.rb +101 -0
  27. data/lib/google/cloud/retail/v2/user_event_service/rest/operations.rb +75 -0
  28. data/lib/google/cloud/retail/v2/version.rb +1 -1
  29. data/proto_docs/google/api/field_behavior.rb +14 -0
  30. metadata +5 -5
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -212,6 +212,22 @@ module Google
212
212
  # @return [::Google::Cloud::Retail::V2::UserEvent]
213
213
  #
214
214
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
215
+ #
216
+ # @example Basic example
217
+ # require "google/cloud/retail/v2"
218
+ #
219
+ # # Create a client object. The client can be reused for multiple calls.
220
+ # client = Google::Cloud::Retail::V2::UserEventService::Rest::Client.new
221
+ #
222
+ # # Create a request. To set request fields, pass in keyword arguments.
223
+ # request = Google::Cloud::Retail::V2::WriteUserEventRequest.new
224
+ #
225
+ # # Call the write_user_event method.
226
+ # result = client.write_user_event request
227
+ #
228
+ # # The returned object is of type Google::Cloud::Retail::V2::UserEvent.
229
+ # p result
230
+ #
215
231
  def write_user_event request, options = nil
216
232
  raise ::ArgumentError, "request must be provided" if request.nil?
217
233
 
@@ -299,6 +315,22 @@ module Google
299
315
  # @return [::Google::Api::HttpBody]
300
316
  #
301
317
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
318
+ #
319
+ # @example Basic example
320
+ # require "google/cloud/retail/v2"
321
+ #
322
+ # # Create a client object. The client can be reused for multiple calls.
323
+ # client = Google::Cloud::Retail::V2::UserEventService::Rest::Client.new
324
+ #
325
+ # # Create a request. To set request fields, pass in keyword arguments.
326
+ # request = Google::Cloud::Retail::V2::CollectUserEventRequest.new
327
+ #
328
+ # # Call the collect_user_event method.
329
+ # result = client.collect_user_event request
330
+ #
331
+ # # The returned object is of type Google::Api::HttpBody.
332
+ # p result
333
+ #
302
334
  def collect_user_event request, options = nil
303
335
  raise ::ArgumentError, "request must be provided" if request.nil?
304
336
 
@@ -394,6 +426,29 @@ module Google
394
426
  # @return [::Gapic::Operation]
395
427
  #
396
428
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
429
+ #
430
+ # @example Basic example
431
+ # require "google/cloud/retail/v2"
432
+ #
433
+ # # Create a client object. The client can be reused for multiple calls.
434
+ # client = Google::Cloud::Retail::V2::UserEventService::Rest::Client.new
435
+ #
436
+ # # Create a request. To set request fields, pass in keyword arguments.
437
+ # request = Google::Cloud::Retail::V2::PurgeUserEventsRequest.new
438
+ #
439
+ # # Call the purge_user_events method.
440
+ # result = client.purge_user_events request
441
+ #
442
+ # # The returned object is of type Gapic::Operation. You can use it to
443
+ # # check the status of an operation, cancel it, or wait for results.
444
+ # # Here is how to wait for a response.
445
+ # result.wait_until_done! timeout: 60
446
+ # if result.response?
447
+ # p result.response
448
+ # else
449
+ # puts "No response received."
450
+ # end
451
+ #
397
452
  def purge_user_events request, options = nil
398
453
  raise ::ArgumentError, "request must be provided" if request.nil?
399
454
 
@@ -468,6 +523,29 @@ module Google
468
523
  # @return [::Gapic::Operation]
469
524
  #
470
525
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
526
+ #
527
+ # @example Basic example
528
+ # require "google/cloud/retail/v2"
529
+ #
530
+ # # Create a client object. The client can be reused for multiple calls.
531
+ # client = Google::Cloud::Retail::V2::UserEventService::Rest::Client.new
532
+ #
533
+ # # Create a request. To set request fields, pass in keyword arguments.
534
+ # request = Google::Cloud::Retail::V2::ImportUserEventsRequest.new
535
+ #
536
+ # # Call the import_user_events method.
537
+ # result = client.import_user_events request
538
+ #
539
+ # # The returned object is of type Gapic::Operation. You can use it to
540
+ # # check the status of an operation, cancel it, or wait for results.
541
+ # # Here is how to wait for a response.
542
+ # result.wait_until_done! timeout: 60
543
+ # if result.response?
544
+ # p result.response
545
+ # else
546
+ # puts "No response received."
547
+ # end
548
+ #
471
549
  def import_user_events request, options = nil
472
550
  raise ::ArgumentError, "request must be provided" if request.nil?
473
551
 
@@ -544,6 +622,29 @@ module Google
544
622
  # @return [::Gapic::Operation]
545
623
  #
546
624
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
625
+ #
626
+ # @example Basic example
627
+ # require "google/cloud/retail/v2"
628
+ #
629
+ # # Create a client object. The client can be reused for multiple calls.
630
+ # client = Google::Cloud::Retail::V2::UserEventService::Rest::Client.new
631
+ #
632
+ # # Create a request. To set request fields, pass in keyword arguments.
633
+ # request = Google::Cloud::Retail::V2::RejoinUserEventsRequest.new
634
+ #
635
+ # # Call the rejoin_user_events method.
636
+ # result = client.rejoin_user_events request
637
+ #
638
+ # # The returned object is of type Gapic::Operation. You can use it to
639
+ # # check the status of an operation, cancel it, or wait for results.
640
+ # # Here is how to wait for a response.
641
+ # result.wait_until_done! timeout: 60
642
+ # if result.response?
643
+ # p result.response
644
+ # else
645
+ # puts "No response received."
646
+ # end
647
+ #
547
648
  def rejoin_user_events request, options = nil
548
649
  raise ::ArgumentError, "request must be provided" if request.nil?
549
650
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Retail
23
23
  module V2
24
- VERSION = "0.16.1"
24
+ VERSION = "0.17.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-retail-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -347,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
347
347
  - !ruby/object:Gem::Version
348
348
  version: '0'
349
349
  requirements: []
350
- rubygems_version: 3.4.2
350
+ rubygems_version: 3.4.19
351
351
  signing_key:
352
352
  specification_version: 4
353
353
  summary: Cloud Retail service enables customers to build end-to-end personalized recommendation