google-cloud-retail-v2 0.10.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) 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 +69 -0
  5. data/lib/google/cloud/retail/v2/catalog_service/client.rb +718 -0
  6. data/lib/google/cloud/retail/v2/catalog_service/paths.rb +38 -0
  7. data/lib/google/cloud/retail/v2/catalog_service.rb +1 -1
  8. data/lib/google/cloud/retail/v2/catalog_service_pb.rb +34 -0
  9. data/lib/google/cloud/retail/v2/catalog_service_services_pb.rb +38 -0
  10. data/lib/google/cloud/retail/v2/common_pb.rb +86 -0
  11. data/lib/google/cloud/retail/v2/completion_service/client.rb +11 -8
  12. data/lib/google/cloud/retail/v2/completion_service.rb +2 -2
  13. data/lib/google/cloud/retail/v2/completion_service_services_pb.rb +3 -3
  14. data/lib/google/cloud/retail/v2/control_pb.rb +33 -0
  15. data/lib/google/cloud/retail/v2/control_service/client.rb +807 -0
  16. data/lib/google/cloud/retail/v2/control_service/credentials.rb +51 -0
  17. data/lib/google/cloud/retail/v2/control_service/paths.rb +73 -0
  18. data/lib/google/cloud/retail/v2/control_service.rb +49 -0
  19. data/lib/google/cloud/retail/v2/control_service_pb.rb +57 -0
  20. data/lib/google/cloud/retail/v2/control_service_services_pb.rb +65 -0
  21. data/lib/google/cloud/retail/v2/prediction_service/client.rb +7 -8
  22. data/lib/google/cloud/retail/v2/prediction_service.rb +1 -1
  23. data/lib/google/cloud/retail/v2/product_pb.rb +1 -0
  24. data/lib/google/cloud/retail/v2/product_service/client.rb +65 -25
  25. data/lib/google/cloud/retail/v2/product_service.rb +1 -1
  26. data/lib/google/cloud/retail/v2/product_service_services_pb.rb +58 -13
  27. data/lib/google/cloud/retail/v2/search_service/client.rb +16 -5
  28. data/lib/google/cloud/retail/v2/search_service.rb +2 -2
  29. data/lib/google/cloud/retail/v2/search_service_pb.rb +1 -0
  30. data/lib/google/cloud/retail/v2/search_service_services_pb.rb +2 -2
  31. data/lib/google/cloud/retail/v2/serving_config_pb.rb +51 -0
  32. data/lib/google/cloud/retail/v2/serving_config_service/client.rb +998 -0
  33. data/lib/google/cloud/retail/v2/serving_config_service/credentials.rb +51 -0
  34. data/lib/google/cloud/retail/v2/serving_config_service/paths.rb +73 -0
  35. data/lib/google/cloud/retail/v2/serving_config_service.rb +49 -0
  36. data/lib/google/cloud/retail/v2/serving_config_service_pb.rb +66 -0
  37. data/lib/google/cloud/retail/v2/serving_config_service_services_pb.rb +74 -0
  38. data/lib/google/cloud/retail/v2/user_event_service/client.rb +27 -14
  39. data/lib/google/cloud/retail/v2/user_event_service.rb +1 -1
  40. data/lib/google/cloud/retail/v2/user_event_service_pb.rb +5 -0
  41. data/lib/google/cloud/retail/v2/user_event_service_services_pb.rb +10 -10
  42. data/lib/google/cloud/retail/v2/version.rb +1 -1
  43. data/lib/google/cloud/retail/v2.rb +4 -2
  44. data/proto_docs/google/api/client.rb +318 -0
  45. data/proto_docs/google/api/launch_stage.rb +71 -0
  46. data/proto_docs/google/cloud/retail/v2/catalog.rb +271 -0
  47. data/proto_docs/google/cloud/retail/v2/catalog_service.rb +133 -0
  48. data/proto_docs/google/cloud/retail/v2/common.rb +316 -4
  49. data/proto_docs/google/cloud/retail/v2/completion_service.rb +6 -3
  50. data/proto_docs/google/cloud/retail/v2/control.rb +75 -0
  51. data/proto_docs/google/cloud/retail/v2/control_service.rb +122 -0
  52. data/proto_docs/google/cloud/retail/v2/import_config.rb +20 -35
  53. data/proto_docs/google/cloud/retail/v2/prediction_service.rb +7 -8
  54. data/proto_docs/google/cloud/retail/v2/product.rb +33 -5
  55. data/proto_docs/google/cloud/retail/v2/search_service.rb +44 -10
  56. data/proto_docs/google/cloud/retail/v2/serving_config.rb +255 -0
  57. data/proto_docs/google/cloud/retail/v2/serving_config_service.rb +143 -0
  58. data/proto_docs/google/cloud/retail/v2/user_event.rb +1 -1
  59. data/proto_docs/google/cloud/retail/v2/user_event_service.rb +24 -8
  60. data/proto_docs/google/rpc/status.rb +4 -2
  61. metadata +24 -4
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Retail
24
+ module V2
25
+ module ServingConfigService
26
+ # Credentials for the ServingConfigService API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/cloud-platform"
30
+ ]
31
+ self.env_vars = [
32
+ "RETAIL_CREDENTIALS",
33
+ "RETAIL_KEYFILE",
34
+ "GOOGLE_CLOUD_CREDENTIALS",
35
+ "GOOGLE_CLOUD_KEYFILE",
36
+ "GCLOUD_KEYFILE",
37
+ "RETAIL_CREDENTIALS_JSON",
38
+ "RETAIL_KEYFILE_JSON",
39
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
40
+ "GOOGLE_CLOUD_KEYFILE_JSON",
41
+ "GCLOUD_KEYFILE_JSON"
42
+ ]
43
+ self.paths = [
44
+ "~/.config/google_cloud/application_default_credentials.json"
45
+ ]
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,73 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Retail
23
+ module V2
24
+ module ServingConfigService
25
+ # Path helper methods for the ServingConfigService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Catalog resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/catalogs/{catalog}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param catalog [String]
37
+ #
38
+ # @return [::String]
39
+ def catalog_path project:, location:, catalog:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/catalogs/#{catalog}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified ServingConfig resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/catalogs/{catalog}/servingConfigs/{serving_config}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param catalog [String]
56
+ # @param serving_config [String]
57
+ #
58
+ # @return [::String]
59
+ def serving_config_path project:, location:, catalog:, serving_config:
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
62
+ raise ::ArgumentError, "catalog cannot contain /" if catalog.to_s.include? "/"
63
+
64
+ "projects/#{project}/locations/#{location}/catalogs/#{catalog}/servingConfigs/#{serving_config}"
65
+ end
66
+
67
+ extend self
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/retail/v2/version"
24
+
25
+ require "google/cloud/retail/v2/serving_config_service/credentials"
26
+ require "google/cloud/retail/v2/serving_config_service/paths"
27
+ require "google/cloud/retail/v2/serving_config_service/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Retail
32
+ module V2
33
+ ##
34
+ # Service for modifying ServingConfig.
35
+ #
36
+ # @example Load this service and instantiate a gRPC client
37
+ #
38
+ # require "google/cloud/retail/v2/serving_config_service"
39
+ # client = ::Google::Cloud::Retail::V2::ServingConfigService::Client.new
40
+ #
41
+ module ServingConfigService
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ helper_path = ::File.join __dir__, "serving_config_service", "helpers.rb"
49
+ require "google/cloud/retail/v2/serving_config_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,66 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/retail/v2/serving_config_service.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/retail/v2/serving_config_pb'
11
+ require 'google/protobuf/empty_pb'
12
+ require 'google/protobuf/field_mask_pb'
13
+
14
+ Google::Protobuf::DescriptorPool.generated_pool.build do
15
+ add_file("google/cloud/retail/v2/serving_config_service.proto", :syntax => :proto3) do
16
+ add_message "google.cloud.retail.v2.CreateServingConfigRequest" do
17
+ optional :parent, :string, 1
18
+ optional :serving_config, :message, 2, "google.cloud.retail.v2.ServingConfig"
19
+ optional :serving_config_id, :string, 3
20
+ end
21
+ add_message "google.cloud.retail.v2.UpdateServingConfigRequest" do
22
+ optional :serving_config, :message, 1, "google.cloud.retail.v2.ServingConfig"
23
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
24
+ end
25
+ add_message "google.cloud.retail.v2.DeleteServingConfigRequest" do
26
+ optional :name, :string, 1
27
+ end
28
+ add_message "google.cloud.retail.v2.GetServingConfigRequest" do
29
+ optional :name, :string, 1
30
+ end
31
+ add_message "google.cloud.retail.v2.ListServingConfigsRequest" do
32
+ optional :parent, :string, 1
33
+ optional :page_size, :int32, 2
34
+ optional :page_token, :string, 3
35
+ end
36
+ add_message "google.cloud.retail.v2.ListServingConfigsResponse" do
37
+ repeated :serving_configs, :message, 1, "google.cloud.retail.v2.ServingConfig"
38
+ optional :next_page_token, :string, 2
39
+ end
40
+ add_message "google.cloud.retail.v2.AddControlRequest" do
41
+ optional :serving_config, :string, 1
42
+ optional :control_id, :string, 2
43
+ end
44
+ add_message "google.cloud.retail.v2.RemoveControlRequest" do
45
+ optional :serving_config, :string, 1
46
+ optional :control_id, :string, 2
47
+ end
48
+ end
49
+ end
50
+
51
+ module Google
52
+ module Cloud
53
+ module Retail
54
+ module V2
55
+ CreateServingConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CreateServingConfigRequest").msgclass
56
+ UpdateServingConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.UpdateServingConfigRequest").msgclass
57
+ DeleteServingConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.DeleteServingConfigRequest").msgclass
58
+ GetServingConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.GetServingConfigRequest").msgclass
59
+ ListServingConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ListServingConfigsRequest").msgclass
60
+ ListServingConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ListServingConfigsResponse").msgclass
61
+ AddControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.AddControlRequest").msgclass
62
+ RemoveControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.RemoveControlRequest").msgclass
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,74 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/retail/v2/serving_config_service.proto for package 'Google.Cloud.Retail.V2'
3
+ # Original file comments:
4
+ # Copyright 2021 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/retail/v2/serving_config_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Retail
25
+ module V2
26
+ module ServingConfigService
27
+ # Service for modifying ServingConfig.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.retail.v2.ServingConfigService'
35
+
36
+ # Creates a ServingConfig.
37
+ #
38
+ # A maximum of 100 [ServingConfig][google.cloud.retail.v2.ServingConfig]s are
39
+ # allowed in a [Catalog][google.cloud.retail.v2.Catalog], otherwise a
40
+ # FAILED_PRECONDITION error is returned.
41
+ rpc :CreateServingConfig, ::Google::Cloud::Retail::V2::CreateServingConfigRequest, ::Google::Cloud::Retail::V2::ServingConfig
42
+ # Deletes a ServingConfig.
43
+ #
44
+ # Returns a NotFound error if the ServingConfig does not exist.
45
+ rpc :DeleteServingConfig, ::Google::Cloud::Retail::V2::DeleteServingConfigRequest, ::Google::Protobuf::Empty
46
+ # Updates a ServingConfig.
47
+ rpc :UpdateServingConfig, ::Google::Cloud::Retail::V2::UpdateServingConfigRequest, ::Google::Cloud::Retail::V2::ServingConfig
48
+ # Gets a ServingConfig.
49
+ #
50
+ # Returns a NotFound error if the ServingConfig does not exist.
51
+ rpc :GetServingConfig, ::Google::Cloud::Retail::V2::GetServingConfigRequest, ::Google::Cloud::Retail::V2::ServingConfig
52
+ # Lists all ServingConfigs linked to this catalog.
53
+ rpc :ListServingConfigs, ::Google::Cloud::Retail::V2::ListServingConfigsRequest, ::Google::Cloud::Retail::V2::ListServingConfigsResponse
54
+ # Enables a Control on the specified ServingConfig.
55
+ # The control is added in the last position of the list of controls
56
+ # it belongs to (e.g. if it's a facet spec control it will be applied
57
+ # in the last position of servingConfig.facetSpecIds)
58
+ # Returns a ALREADY_EXISTS error if the control has already been applied.
59
+ # Returns a FAILED_PRECONDITION error if the addition could exceed maximum
60
+ # number of control allowed for that type of control.
61
+ rpc :AddControl, ::Google::Cloud::Retail::V2::AddControlRequest, ::Google::Cloud::Retail::V2::ServingConfig
62
+ # Disables a Control on the specified ServingConfig.
63
+ # The control is removed from the ServingConfig.
64
+ # Returns a NOT_FOUND error if the Control is not enabled for the
65
+ # ServingConfig.
66
+ rpc :RemoveControl, ::Google::Cloud::Retail::V2::RemoveControlRequest, ::Google::Cloud::Retail::V2::ServingConfig
67
+ end
68
+
69
+ Stub = Service.rpc_stub_class
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end
@@ -185,7 +185,7 @@ module Google
185
185
  # @param options [::Gapic::CallOptions, ::Hash]
186
186
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
187
187
  #
188
- # @overload write_user_event(parent: nil, user_event: nil)
188
+ # @overload write_user_event(parent: nil, user_event: nil, write_async: nil)
189
189
  # Pass arguments to `write_user_event` via keyword arguments. Note that at
190
190
  # least one keyword argument is required. To specify no parameters, or to keep all
191
191
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -195,6 +195,11 @@ module Google
195
195
  # `projects/1234/locations/global/catalogs/default_catalog`.
196
196
  # @param user_event [::Google::Cloud::Retail::V2::UserEvent, ::Hash]
197
197
  # Required. User event to write.
198
+ # @param write_async [::Boolean]
199
+ # If set to true, the user event will be written asynchronously after
200
+ # validation, and the API will respond without waiting for the write.
201
+ # Therefore, silent failures can occur even if the API returns success. In
202
+ # case of silent failures, error messages can be found in Stackdriver logs.
198
203
  #
199
204
  # @yield [response, operation] Access the result along with the RPC operation
200
205
  # @yieldparam response [::Google::Cloud::Retail::V2::UserEvent]
@@ -277,11 +282,14 @@ module Google
277
282
  # @param options [::Gapic::CallOptions, ::Hash]
278
283
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
279
284
  #
280
- # @overload collect_user_event(parent: nil, user_event: nil, uri: nil, ets: nil)
285
+ # @overload collect_user_event(prebuilt_rule: nil, parent: nil, user_event: nil, uri: nil, ets: nil, raw_json: nil)
281
286
  # Pass arguments to `collect_user_event` via keyword arguments. Note that at
282
287
  # least one keyword argument is required. To specify no parameters, or to keep all
283
288
  # the default parameter values, pass an empty Hash as a request object (see above).
284
289
  #
290
+ # @param prebuilt_rule [::String]
291
+ # The prebuilt rule name that can convert a specific type of raw_json.
292
+ # For example: "default_schema/v1.0"
285
293
  # @param parent [::String]
286
294
  # Required. The parent catalog name, such as
287
295
  # `projects/1234/locations/global/catalogs/default_catalog`.
@@ -297,6 +305,11 @@ module Google
297
305
  # The event timestamp in milliseconds. This prevents browser caching of
298
306
  # otherwise identical get requests. The name is abbreviated to reduce the
299
307
  # payload bytes.
308
+ # @param raw_json [::String]
309
+ # An arbitrary serialized JSON string that contains necessary information
310
+ # that can comprise a user event. When this field is specified, the
311
+ # user_event field will be ignored. Note: line-delimited JSON is not
312
+ # supported, a single JSON only.
300
313
  #
301
314
  # @yield [response, operation] Access the result along with the RPC operation
302
315
  # @yieldparam response [::Google::Api::HttpBody]
@@ -493,9 +506,9 @@ module Google
493
506
  # synchronous. Events that already exist are skipped.
494
507
  # Use this method for backfilling historical user events.
495
508
  #
496
- # Operation.response is of type ImportResponse. Note that it is
509
+ # `Operation.response` is of type `ImportResponse`. Note that it is
497
510
  # possible for a subset of the items to be successfully inserted.
498
- # Operation.metadata is of type ImportMetadata.
511
+ # `Operation.metadata` is of type `ImportMetadata`.
499
512
  #
500
513
  # @overload import_user_events(request, options = nil)
501
514
  # Pass arguments to `import_user_events` via a request object, either of type
@@ -593,14 +606,14 @@ module Google
593
606
  end
594
607
 
595
608
  ##
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.
609
+ # Starts a user-event rejoin operation with latest product catalog. Events
610
+ # are not annotated with detailed product information for products that are
611
+ # missing from the catalog when the user event is ingested. These
612
+ # events are stored as unjoined events with limited usage on training and
613
+ # serving. You can use this method to start a join operation on specified
614
+ # events with the latest version of product catalog. You can also use this
615
+ # method to correct events joined with the wrong product catalog. A rejoin
616
+ # operation can take hours or days to complete.
604
617
  #
605
618
  # @overload rejoin_user_events(request, options = nil)
606
619
  # Pass arguments to `rejoin_user_events` via a request object, either of type
@@ -623,8 +636,8 @@ module Google
623
636
  # @param user_event_rejoin_scope [::Google::Cloud::Retail::V2::RejoinUserEventsRequest::UserEventRejoinScope]
624
637
  # The type of the user event rejoin to define the scope and range of the user
625
638
  # 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.
639
+ # `USER_EVENT_REJOIN_SCOPE_UNSPECIFIED` if this field is not set, or set to
640
+ # an invalid integer value.
628
641
  #
629
642
  # @yield [response, operation] Access the result along with the RPC operation
630
643
  # @yieldparam response [::Gapic::Operation]
@@ -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
@@ -18,12 +18,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  add_message "google.cloud.retail.v2.WriteUserEventRequest" do
19
19
  optional :parent, :string, 1
20
20
  optional :user_event, :message, 2, "google.cloud.retail.v2.UserEvent"
21
+ optional :write_async, :bool, 3
21
22
  end
22
23
  add_message "google.cloud.retail.v2.CollectUserEventRequest" do
23
24
  optional :parent, :string, 1
24
25
  optional :user_event, :string, 2
25
26
  optional :uri, :string, 3
26
27
  optional :ets, :int64, 4
28
+ optional :raw_json, :string, 5
29
+ oneof :conversion_rule do
30
+ optional :prebuilt_rule, :string, 6
31
+ end
27
32
  end
28
33
  add_message "google.cloud.retail.v2.RejoinUserEventsRequest" do
29
34
  optional :parent, :string, 1
@@ -50,18 +50,18 @@ module Google
50
50
  # synchronous. Events that already exist are skipped.
51
51
  # Use this method for backfilling historical user events.
52
52
  #
53
- # Operation.response is of type ImportResponse. Note that it is
53
+ # `Operation.response` is of type `ImportResponse`. Note that it is
54
54
  # possible for a subset of the items to be successfully inserted.
55
- # Operation.metadata is of type ImportMetadata.
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.10.0"
24
+ VERSION = "0.12.0"
25
25
  end
26
26
  end
27
27
  end
@@ -18,9 +18,11 @@
18
18
 
19
19
  require "google/cloud/retail/v2/catalog_service"
20
20
  require "google/cloud/retail/v2/completion_service"
21
+ require "google/cloud/retail/v2/control_service"
21
22
  require "google/cloud/retail/v2/prediction_service"
22
23
  require "google/cloud/retail/v2/product_service"
23
24
  require "google/cloud/retail/v2/search_service"
25
+ require "google/cloud/retail/v2/serving_config_service"
24
26
  require "google/cloud/retail/v2/user_event_service"
25
27
  require "google/cloud/retail/v2/version"
26
28
 
@@ -28,9 +30,9 @@ module Google
28
30
  module Cloud
29
31
  module Retail
30
32
  ##
31
- # To load this package, including all its services, and instantiate a client:
33
+ # API client module.
32
34
  #
33
- # @example
35
+ # @example Load this package, including all its services, and instantiate a gRPC client
34
36
  #
35
37
  # require "google/cloud/retail/v2"
36
38
  # client = ::Google::Cloud::Retail::V2::CatalogService::Client.new