google-cloud-retail-v2 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +1 -1
  4. data/lib/google/cloud/retail/v2/catalog_pb.rb +14 -0
  5. data/lib/google/cloud/retail/v2/catalog_service/client.rb +19 -7
  6. data/lib/google/cloud/retail/v2/catalog_service.rb +1 -1
  7. data/lib/google/cloud/retail/v2/completion_service/client.rb +25 -9
  8. data/lib/google/cloud/retail/v2/completion_service/operations.rb +12 -14
  9. data/lib/google/cloud/retail/v2/completion_service.rb +2 -2
  10. data/lib/google/cloud/retail/v2/completion_service_services_pb.rb +3 -3
  11. data/lib/google/cloud/retail/v2/control_service/client.rb +18 -6
  12. data/lib/google/cloud/retail/v2/control_service.rb +1 -1
  13. data/lib/google/cloud/retail/v2/prediction_service/client.rb +21 -8
  14. data/lib/google/cloud/retail/v2/prediction_service.rb +1 -1
  15. data/lib/google/cloud/retail/v2/prediction_service_pb.rb +1 -0
  16. data/lib/google/cloud/retail/v2/product_service/client.rb +90 -68
  17. data/lib/google/cloud/retail/v2/product_service/operations.rb +12 -14
  18. data/lib/google/cloud/retail/v2/product_service.rb +1 -1
  19. data/lib/google/cloud/retail/v2/product_service_services_pb.rb +48 -38
  20. data/lib/google/cloud/retail/v2/search_service/client.rb +22 -10
  21. data/lib/google/cloud/retail/v2/search_service.rb +2 -2
  22. data/lib/google/cloud/retail/v2/search_service_services_pb.rb +2 -2
  23. data/lib/google/cloud/retail/v2/serving_config_pb.rb +7 -0
  24. data/lib/google/cloud/retail/v2/serving_config_service/client.rb +23 -11
  25. data/lib/google/cloud/retail/v2/serving_config_service.rb +1 -1
  26. data/lib/google/cloud/retail/v2/user_event_service/client.rb +51 -24
  27. data/lib/google/cloud/retail/v2/user_event_service/operations.rb +12 -14
  28. data/lib/google/cloud/retail/v2/user_event_service.rb +1 -1
  29. data/lib/google/cloud/retail/v2/user_event_service_pb.rb +6 -0
  30. data/lib/google/cloud/retail/v2/user_event_service_services_pb.rb +8 -8
  31. data/lib/google/cloud/retail/v2/version.rb +1 -1
  32. data/lib/google/cloud/retail/v2.rb +2 -2
  33. data/proto_docs/google/api/client.rb +318 -0
  34. data/proto_docs/google/api/launch_stage.rb +71 -0
  35. data/proto_docs/google/cloud/retail/v2/catalog.rb +51 -13
  36. data/proto_docs/google/cloud/retail/v2/catalog_service.rb +1 -1
  37. data/proto_docs/google/cloud/retail/v2/common.rb +5 -3
  38. data/proto_docs/google/cloud/retail/v2/completion_service.rb +4 -2
  39. data/proto_docs/google/cloud/retail/v2/control.rb +2 -3
  40. data/proto_docs/google/cloud/retail/v2/prediction_service.rb +7 -8
  41. data/proto_docs/google/cloud/retail/v2/product.rb +27 -5
  42. data/proto_docs/google/cloud/retail/v2/search_service.rb +15 -8
  43. data/proto_docs/google/cloud/retail/v2/serving_config.rb +32 -15
  44. data/proto_docs/google/cloud/retail/v2/serving_config_service.rb +5 -5
  45. data/proto_docs/google/cloud/retail/v2/user_event.rb +1 -1
  46. data/proto_docs/google/cloud/retail/v2/user_event_service.rb +24 -8
  47. data/proto_docs/google/rpc/status.rb +4 -2
  48. metadata +29 -7
@@ -34,9 +34,9 @@ module Google
34
34
  # Service for search.
35
35
  #
36
36
  # This feature is only available for users who have Retail Search enabled.
37
- # Please enable Retail Search on Cloud Console before using this feature.
37
+ # Enable Retail Search on Cloud Console before using this feature.
38
38
  #
39
- # To load this service and instantiate a client:
39
+ # @example Load this service and instantiate a gRPC client
40
40
  #
41
41
  # require "google/cloud/retail/v2/search_service"
42
42
  # client = ::Google::Cloud::Retail::V2::SearchService::Client.new
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for search.
28
28
  #
29
29
  # This feature is only available for users who have Retail Search enabled.
30
- # Please enable Retail Search on Cloud Console before using this feature.
30
+ # Enable Retail Search on Cloud Console before using this feature.
31
31
  class Service
32
32
 
33
33
  include ::GRPC::GenericService
@@ -39,7 +39,7 @@ module Google
39
39
  # Performs a search.
40
40
  #
41
41
  # This feature is only available for users who have Retail Search enabled.
42
- # Please enable Retail Search on Cloud Console before using this feature.
42
+ # Enable Retail Search on Cloud Console before using this feature.
43
43
  rpc :Search, ::Google::Cloud::Retail::V2::SearchRequest, ::Google::Cloud::Retail::V2::SearchResponse
44
44
  end
45
45
 
@@ -26,10 +26,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
26
26
  repeated :replacement_control_ids, :string, 14
27
27
  repeated :ignore_control_ids, :string, 15
28
28
  optional :diversity_level, :string, 8
29
+ optional :diversity_type, :enum, 20, "google.cloud.retail.v2.ServingConfig.DiversityType"
29
30
  optional :enable_category_filter_level, :string, 16
30
31
  optional :personalization_spec, :message, 21, "google.cloud.retail.v2.SearchRequest.PersonalizationSpec"
31
32
  repeated :solution_types, :enum, 19, "google.cloud.retail.v2.SolutionType"
32
33
  end
34
+ add_enum "google.cloud.retail.v2.ServingConfig.DiversityType" do
35
+ value :DIVERSITY_TYPE_UNSPECIFIED, 0
36
+ value :RULE_BASED_DIVERSITY, 2
37
+ value :DATA_DRIVEN_DIVERSITY, 3
38
+ end
33
39
  end
34
40
  end
35
41
 
@@ -38,6 +44,7 @@ module Google
38
44
  module Retail
39
45
  module V2
40
46
  ServingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ServingConfig").msgclass
47
+ ServingConfig::DiversityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ServingConfig.DiversityType").enummodule
41
48
  end
42
49
  end
43
50
  end
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/retail/v2/serving_config_service_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -133,6 +134,12 @@ module Google
133
134
  @quota_project_id = @config.quota_project
134
135
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
135
136
 
137
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
138
+ config.credentials = credentials
139
+ config.quota_project = @quota_project_id
140
+ config.endpoint = @config.endpoint
141
+ end
142
+
136
143
  @serving_config_service_stub = ::Gapic::ServiceStub.new(
137
144
  ::Google::Cloud::Retail::V2::ServingConfigService::Stub,
138
145
  credentials: credentials,
@@ -142,6 +149,13 @@ module Google
142
149
  )
143
150
  end
144
151
 
152
+ ##
153
+ # Get the associated client for mix-in of the Locations.
154
+ #
155
+ # @return [Google::Cloud::Location::Locations::Client]
156
+ #
157
+ attr_reader :location_client
158
+
145
159
  # Service calls
146
160
 
147
161
  ##
@@ -264,7 +278,7 @@ module Google
264
278
  #
265
279
  # @param name [::String]
266
280
  # Required. The resource name of the ServingConfig to delete. Format:
267
- # projects/\\{project_number}/locations/\\{location_id}/catalogs/\\{catalog_id}/servingConfigs/\\{serving_config_id}
281
+ # `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}`
268
282
  #
269
283
  # @yield [response, operation] Access the result along with the RPC operation
270
284
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -445,7 +459,7 @@ module Google
445
459
  #
446
460
  # @param name [::String]
447
461
  # Required. The resource name of the ServingConfig to get. Format:
448
- # projects/\\{project_number}/locations/\\{location_id}/catalogs/\\{catalog_id}/servingConfigs/\\{serving_config_id}
462
+ # `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}`
449
463
  #
450
464
  # @yield [response, operation] Access the result along with the RPC operation
451
465
  # @yieldparam response [::Google::Cloud::Retail::V2::ServingConfig]
@@ -531,7 +545,7 @@ module Google
531
545
  #
532
546
  # @param parent [::String]
533
547
  # Required. The catalog resource name. Format:
534
- # projects/\\{project_number}/locations/\\{location_id}/catalogs/\\{catalog_id}
548
+ # `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}`
535
549
  # @param page_size [::Integer]
536
550
  # Optional. Maximum number of results to return. If unspecified, defaults
537
551
  # to 100. If a value greater than 100 is provided, at most 100 results are
@@ -560,13 +574,11 @@ module Google
560
574
  # # Call the list_serving_configs method.
561
575
  # result = client.list_serving_configs request
562
576
  #
563
- # # The returned object is of type Gapic::PagedEnumerable. You can
564
- # # iterate over all elements by calling #each, and the enumerable
565
- # # will lazily make API calls to fetch subsequent pages. Other
566
- # # methods are also available for managing paging directly.
567
- # result.each do |response|
577
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
578
+ # # over elements, and API calls will be issued to fetch pages as needed.
579
+ # result.each do |item|
568
580
  # # Each element is of type ::Google::Cloud::Retail::V2::ServingConfig.
569
- # p response
581
+ # p item
570
582
  # end
571
583
  #
572
584
  def list_serving_configs request, options = nil
@@ -637,7 +649,7 @@ module Google
637
649
  #
638
650
  # @param serving_config [::String]
639
651
  # Required. The source ServingConfig resource name . Format:
640
- # projects/\\{project_number}/locations/\\{location_id}/catalogs/\\{catalog_id}/servingConfigs/\\{serving_config_id}
652
+ # `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}`
641
653
  # @param control_id [::String]
642
654
  # Required. The id of the control to apply. Assumed to be in the same catalog
643
655
  # as the serving config - if id is not found a NOT_FOUND error is returned.
@@ -729,7 +741,7 @@ module Google
729
741
  #
730
742
  # @param serving_config [::String]
731
743
  # Required. The source ServingConfig resource name . Format:
732
- # projects/\\{project_number}/locations/\\{location_id}/catalogs/\\{catalog_id}/servingConfigs/\\{serving_config_id}
744
+ # `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}`
733
745
  # @param control_id [::String]
734
746
  # Required. The id of the control to apply. Assumed to be in the same catalog
735
747
  # as the serving config.
@@ -33,7 +33,7 @@ module Google
33
33
  ##
34
34
  # Service for modifying ServingConfig.
35
35
  #
36
- # To load this service and instantiate a client:
36
+ # @example Load this service and instantiate a gRPC client
37
37
  #
38
38
  # require "google/cloud/retail/v2/serving_config_service"
39
39
  # client = ::Google::Cloud::Retail::V2::ServingConfigService::Client.new
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/retail/v2/user_event_service_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -154,6 +155,12 @@ module Google
154
155
  config.endpoint = @config.endpoint
155
156
  end
156
157
 
158
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
159
+ config.credentials = credentials
160
+ config.quota_project = @quota_project_id
161
+ config.endpoint = @config.endpoint
162
+ end
163
+
157
164
  @user_event_service_stub = ::Gapic::ServiceStub.new(
158
165
  ::Google::Cloud::Retail::V2::UserEventService::Stub,
159
166
  credentials: credentials,
@@ -170,6 +177,13 @@ module Google
170
177
  #
171
178
  attr_reader :operations_client
172
179
 
180
+ ##
181
+ # Get the associated client for mix-in of the Locations.
182
+ #
183
+ # @return [Google::Cloud::Location::Locations::Client]
184
+ #
185
+ attr_reader :location_client
186
+
173
187
  # Service calls
174
188
 
175
189
  ##
@@ -185,7 +199,7 @@ module Google
185
199
  # @param options [::Gapic::CallOptions, ::Hash]
186
200
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
187
201
  #
188
- # @overload write_user_event(parent: nil, user_event: nil)
202
+ # @overload write_user_event(parent: nil, user_event: nil, write_async: nil)
189
203
  # Pass arguments to `write_user_event` via keyword arguments. Note that at
190
204
  # least one keyword argument is required. To specify no parameters, or to keep all
191
205
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -195,6 +209,11 @@ module Google
195
209
  # `projects/1234/locations/global/catalogs/default_catalog`.
196
210
  # @param user_event [::Google::Cloud::Retail::V2::UserEvent, ::Hash]
197
211
  # Required. User event to write.
212
+ # @param write_async [::Boolean]
213
+ # If set to true, the user event will be written asynchronously after
214
+ # validation, and the API will respond without waiting for the write.
215
+ # Therefore, silent failures can occur even if the API returns success. In
216
+ # case of silent failures, error messages can be found in Stackdriver logs.
198
217
  #
199
218
  # @yield [response, operation] Access the result along with the RPC operation
200
219
  # @yieldparam response [::Google::Cloud::Retail::V2::UserEvent]
@@ -277,11 +296,14 @@ module Google
277
296
  # @param options [::Gapic::CallOptions, ::Hash]
278
297
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
279
298
  #
280
- # @overload collect_user_event(parent: nil, user_event: nil, uri: nil, ets: nil)
299
+ # @overload collect_user_event(prebuilt_rule: nil, parent: nil, user_event: nil, uri: nil, ets: nil, raw_json: nil)
281
300
  # Pass arguments to `collect_user_event` via keyword arguments. Note that at
282
301
  # least one keyword argument is required. To specify no parameters, or to keep all
283
302
  # the default parameter values, pass an empty Hash as a request object (see above).
284
303
  #
304
+ # @param prebuilt_rule [::String]
305
+ # The prebuilt rule name that can convert a specific type of raw_json.
306
+ # For example: "default_schema/v1.0"
285
307
  # @param parent [::String]
286
308
  # Required. The parent catalog name, such as
287
309
  # `projects/1234/locations/global/catalogs/default_catalog`.
@@ -297,6 +319,11 @@ module Google
297
319
  # The event timestamp in milliseconds. This prevents browser caching of
298
320
  # otherwise identical get requests. The name is abbreviated to reduce the
299
321
  # payload bytes.
322
+ # @param raw_json [::String]
323
+ # An arbitrary serialized JSON string that contains necessary information
324
+ # that can comprise a user event. When this field is specified, the
325
+ # user_event field will be ignored. Note: line-delimited JSON is not
326
+ # supported, a single JSON only.
300
327
  #
301
328
  # @yield [response, operation] Access the result along with the RPC operation
302
329
  # @yieldparam response [::Google::Api::HttpBody]
@@ -436,14 +463,14 @@ module Google
436
463
  # # Call the purge_user_events method.
437
464
  # result = client.purge_user_events request
438
465
  #
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:
466
+ # # The returned object is of type Gapic::Operation. You can use it to
467
+ # # check the status of an operation, cancel it, or wait for results.
468
+ # # Here is how to wait for a response.
442
469
  # result.wait_until_done! timeout: 60
443
470
  # if result.response?
444
471
  # p result.response
445
472
  # else
446
- # puts "Error!"
473
+ # puts "No response received."
447
474
  # end
448
475
  #
449
476
  def purge_user_events request, options = nil
@@ -540,14 +567,14 @@ module Google
540
567
  # # Call the import_user_events method.
541
568
  # result = client.import_user_events request
542
569
  #
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:
570
+ # # The returned object is of type Gapic::Operation. You can use it to
571
+ # # check the status of an operation, cancel it, or wait for results.
572
+ # # Here is how to wait for a response.
546
573
  # result.wait_until_done! timeout: 60
547
574
  # if result.response?
548
575
  # p result.response
549
576
  # else
550
- # puts "Error!"
577
+ # puts "No response received."
551
578
  # end
552
579
  #
553
580
  def import_user_events request, options = nil
@@ -593,14 +620,14 @@ module Google
593
620
  end
594
621
 
595
622
  ##
596
- # Starts a user event rejoin operation with latest product catalog. Events
597
- # will not be annotated with detailed product information if product is
598
- # missing from the catalog at the time the user event is ingested, and these
599
- # events are stored as unjoined events with a limited usage on training and
600
- # serving. This method can be used to start a join operation on specified
601
- # events with latest version of product catalog. It can also be used to
602
- # correct events joined with the wrong product catalog. A rejoin operation
603
- # can take hours or days to complete.
623
+ # Starts a user-event rejoin operation with latest product catalog. Events
624
+ # are not annotated with detailed product information for products that are
625
+ # missing from the catalog when the user event is ingested. These
626
+ # events are stored as unjoined events with limited usage on training and
627
+ # serving. You can use this method to start a join operation on specified
628
+ # events with the latest version of product catalog. You can also use this
629
+ # method to correct events joined with the wrong product catalog. A rejoin
630
+ # operation can take hours or days to complete.
604
631
  #
605
632
  # @overload rejoin_user_events(request, options = nil)
606
633
  # Pass arguments to `rejoin_user_events` via a request object, either of type
@@ -623,8 +650,8 @@ module Google
623
650
  # @param user_event_rejoin_scope [::Google::Cloud::Retail::V2::RejoinUserEventsRequest::UserEventRejoinScope]
624
651
  # The type of the user event rejoin to define the scope and range of the user
625
652
  # events to be rejoined with the latest product catalog. Defaults to
626
- # USER_EVENT_REJOIN_SCOPE_UNSPECIFIED if this field is not set, or set to an
627
- # invalid integer value.
653
+ # `USER_EVENT_REJOIN_SCOPE_UNSPECIFIED` if this field is not set, or set to
654
+ # an invalid integer value.
628
655
  #
629
656
  # @yield [response, operation] Access the result along with the RPC operation
630
657
  # @yieldparam response [::Gapic::Operation]
@@ -646,14 +673,14 @@ module Google
646
673
  # # Call the rejoin_user_events method.
647
674
  # result = client.rejoin_user_events request
648
675
  #
649
- # # The returned object is of type Gapic::Operation. You can use this
650
- # # object to check the status of an operation, cancel it, or wait
651
- # # for results. Here is how to block until completion:
676
+ # # The returned object is of type Gapic::Operation. You can use it to
677
+ # # check the status of an operation, cancel it, or wait for results.
678
+ # # Here is how to wait for a response.
652
679
  # result.wait_until_done! timeout: 60
653
680
  # if result.response?
654
681
  # p result.response
655
682
  # else
656
- # puts "Error!"
683
+ # puts "No response received."
657
684
  # end
658
685
  #
659
686
  def rejoin_user_events request, options = nil
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
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:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -34,7 +34,7 @@ module Google
34
34
  ##
35
35
  # Service for ingesting end user actions on the customer website.
36
36
  #
37
- # To load this service and instantiate a client:
37
+ # @example Load this service and instantiate a gRPC client
38
38
  #
39
39
  # require "google/cloud/retail/v2/user_event_service"
40
40
  # client = ::Google::Cloud::Retail::V2::UserEventService::Client.new
@@ -7,6 +7,7 @@ require 'google/api/annotations_pb'
7
7
  require 'google/api/client_pb'
8
8
  require 'google/api/field_behavior_pb'
9
9
  require 'google/api/httpbody_pb'
10
+ require 'google/api/resource_pb'
10
11
  require 'google/cloud/retail/v2/import_config_pb'
11
12
  require 'google/cloud/retail/v2/purge_config_pb'
12
13
  require 'google/cloud/retail/v2/user_event_pb'
@@ -17,12 +18,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
17
18
  add_message "google.cloud.retail.v2.WriteUserEventRequest" do
18
19
  optional :parent, :string, 1
19
20
  optional :user_event, :message, 2, "google.cloud.retail.v2.UserEvent"
21
+ optional :write_async, :bool, 3
20
22
  end
21
23
  add_message "google.cloud.retail.v2.CollectUserEventRequest" do
22
24
  optional :parent, :string, 1
23
25
  optional :user_event, :string, 2
24
26
  optional :uri, :string, 3
25
27
  optional :ets, :int64, 4
28
+ optional :raw_json, :string, 5
29
+ oneof :conversion_rule do
30
+ optional :prebuilt_rule, :string, 6
31
+ end
26
32
  end
27
33
  add_message "google.cloud.retail.v2.RejoinUserEventsRequest" do
28
34
  optional :parent, :string, 1
@@ -54,14 +54,14 @@ module Google
54
54
  # possible for a subset of the items to be successfully inserted.
55
55
  # `Operation.metadata` is of type `ImportMetadata`.
56
56
  rpc :ImportUserEvents, ::Google::Cloud::Retail::V2::ImportUserEventsRequest, ::Google::Longrunning::Operation
57
- # Starts a user event rejoin operation with latest product catalog. Events
58
- # will not be annotated with detailed product information if product is
59
- # missing from the catalog at the time the user event is ingested, and these
60
- # events are stored as unjoined events with a limited usage on training and
61
- # serving. This method can be used to start a join operation on specified
62
- # events with latest version of product catalog. It can also be used to
63
- # correct events joined with the wrong product catalog. A rejoin operation
64
- # can take hours or days to complete.
57
+ # Starts a user-event rejoin operation with latest product catalog. Events
58
+ # are not annotated with detailed product information for products that are
59
+ # missing from the catalog when the user event is ingested. These
60
+ # events are stored as unjoined events with limited usage on training and
61
+ # serving. You can use this method to start a join operation on specified
62
+ # events with the latest version of product catalog. You can also use this
63
+ # method to correct events joined with the wrong product catalog. A rejoin
64
+ # operation can take hours or days to complete.
65
65
  rpc :RejoinUserEvents, ::Google::Cloud::Retail::V2::RejoinUserEventsRequest, ::Google::Longrunning::Operation
66
66
  end
67
67
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Retail
23
23
  module V2
24
- VERSION = "0.11.0"
24
+ VERSION = "0.13.0"
25
25
  end
26
26
  end
27
27
  end
@@ -30,9 +30,9 @@ module Google
30
30
  module Cloud
31
31
  module Retail
32
32
  ##
33
- # To load this package, including all its services, and instantiate a client:
33
+ # API client module.
34
34
  #
35
- # @example
35
+ # @example Load this package, including all its services, and instantiate a gRPC client
36
36
  #
37
37
  # require "google/cloud/retail/v2"
38
38
  # client = ::Google::Cloud::Retail::V2::CatalogService::Client.new