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 ControlService
26
+ # Credentials for the ControlService 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 ControlService
25
+ # Path helper methods for the ControlService 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 Control resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/catalogs/{catalog}/controls/{control}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param catalog [String]
56
+ # @param control [String]
57
+ #
58
+ # @return [::String]
59
+ def control_path project:, location:, catalog:, control:
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}/controls/#{control}"
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/control_service/credentials"
26
+ require "google/cloud/retail/v2/control_service/paths"
27
+ require "google/cloud/retail/v2/control_service/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Retail
32
+ module V2
33
+ ##
34
+ # Service for modifying Control.
35
+ #
36
+ # @example Load this service and instantiate a gRPC client
37
+ #
38
+ # require "google/cloud/retail/v2/control_service"
39
+ # client = ::Google::Cloud::Retail::V2::ControlService::Client.new
40
+ #
41
+ module ControlService
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
47
+
48
+ helper_path = ::File.join __dir__, "control_service", "helpers.rb"
49
+ require "google/cloud/retail/v2/control_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,57 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/retail/v2/control_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/control_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/control_service.proto", :syntax => :proto3) do
16
+ add_message "google.cloud.retail.v2.CreateControlRequest" do
17
+ optional :parent, :string, 1
18
+ optional :control, :message, 2, "google.cloud.retail.v2.Control"
19
+ optional :control_id, :string, 3
20
+ end
21
+ add_message "google.cloud.retail.v2.UpdateControlRequest" do
22
+ optional :control, :message, 1, "google.cloud.retail.v2.Control"
23
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
24
+ end
25
+ add_message "google.cloud.retail.v2.DeleteControlRequest" do
26
+ optional :name, :string, 1
27
+ end
28
+ add_message "google.cloud.retail.v2.GetControlRequest" do
29
+ optional :name, :string, 1
30
+ end
31
+ add_message "google.cloud.retail.v2.ListControlsRequest" do
32
+ optional :parent, :string, 1
33
+ optional :page_size, :int32, 2
34
+ optional :page_token, :string, 3
35
+ optional :filter, :string, 4
36
+ end
37
+ add_message "google.cloud.retail.v2.ListControlsResponse" do
38
+ repeated :controls, :message, 1, "google.cloud.retail.v2.Control"
39
+ optional :next_page_token, :string, 2
40
+ end
41
+ end
42
+ end
43
+
44
+ module Google
45
+ module Cloud
46
+ module Retail
47
+ module V2
48
+ CreateControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CreateControlRequest").msgclass
49
+ UpdateControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.UpdateControlRequest").msgclass
50
+ DeleteControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.DeleteControlRequest").msgclass
51
+ GetControlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.GetControlRequest").msgclass
52
+ ListControlsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ListControlsRequest").msgclass
53
+ ListControlsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ListControlsResponse").msgclass
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,65 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/retail/v2/control_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/control_service_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Retail
25
+ module V2
26
+ module ControlService
27
+ # Service for modifying Control.
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.ControlService'
35
+
36
+ # Creates a Control.
37
+ #
38
+ # If the [Control][google.cloud.retail.v2.Control] to create already exists,
39
+ # an ALREADY_EXISTS error is returned.
40
+ rpc :CreateControl, ::Google::Cloud::Retail::V2::CreateControlRequest, ::Google::Cloud::Retail::V2::Control
41
+ # Deletes a Control.
42
+ #
43
+ # If the [Control][google.cloud.retail.v2.Control] to delete does not exist,
44
+ # a NOT_FOUND error is returned.
45
+ rpc :DeleteControl, ::Google::Cloud::Retail::V2::DeleteControlRequest, ::Google::Protobuf::Empty
46
+ # Updates a Control.
47
+ #
48
+ # [Control][google.cloud.retail.v2.Control] cannot be set to a different
49
+ # oneof field, if so an INVALID_ARGUMENT is returned. If the
50
+ # [Control][google.cloud.retail.v2.Control] to update does not exist, a
51
+ # NOT_FOUND error is returned.
52
+ rpc :UpdateControl, ::Google::Cloud::Retail::V2::UpdateControlRequest, ::Google::Cloud::Retail::V2::Control
53
+ # Gets a Control.
54
+ rpc :GetControl, ::Google::Cloud::Retail::V2::GetControlRequest, ::Google::Cloud::Retail::V2::Control
55
+ # Lists all Controls by their parent
56
+ # [Catalog][google.cloud.retail.v2.Catalog].
57
+ rpc :ListControls, ::Google::Cloud::Retail::V2::ListControlsRequest, ::Google::Cloud::Retail::V2::ListControlsResponse
58
+ end
59
+
60
+ Stub = Service.rpc_stub_class
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -177,7 +177,7 @@ module Google
177
177
  # The ID of the Recommendations AI serving config or placement.
178
178
  # Before you can request predictions from your model, you must create at
179
179
  # least one serving config or placement for it. For more information, see
180
- # [Managing serving configurations]
180
+ # [Manage serving configs]
181
181
  # (https://cloud.google.com/retail/docs/manage-configs).
182
182
  #
183
183
  # The full list of available serving configs can be seen at
@@ -228,12 +228,11 @@ module Google
228
228
  # * filterOutOfStockItems tag=(-"promotional")
229
229
  # * filterOutOfStockItems
230
230
  #
231
- # If your filter blocks all prediction results, the API will return generic
232
- # (unfiltered) popular products. If you only want results strictly matching
233
- # the filters, set `strictFiltering` to True in `PredictRequest.params` to
234
- # receive empty results instead.
235
- # Note that the API will never return items with storageStatus of "EXPIRED"
236
- # or "DELETED" regardless of filter choices.
231
+ # If your filter blocks all prediction results, the API will return *no*
232
+ # results. If instead you want empty result sets to return generic
233
+ # (unfiltered) popular products, set `strictFiltering` to False in
234
+ # `PredictRequest.params`. Note that the API will never return items with
235
+ # storageStatus of "EXPIRED" or "DELETED" regardless of filter choices.
237
236
  #
238
237
  # If `filterSyntaxV2` is set to true under the `params` field, then
239
238
  # attribute-based expressions are expected instead of the above described
@@ -258,7 +257,7 @@ module Google
258
257
  # * `returnScore`: Boolean. If set to true, the prediction 'score'
259
258
  # corresponding to each returned product will be set in the
260
259
  # `results.metadata` field in the prediction response. The given
261
- # 'score' indicates the probability of an product being clicked/purchased
260
+ # 'score' indicates the probability of a product being clicked/purchased
262
261
  # given the user's context and history.
263
262
  # * `strictFiltering`: Boolean. True by default. If set to false, the service
264
263
  # will return generic (unfiltered) popular products instead of empty if
@@ -33,7 +33,7 @@ module Google
33
33
  ##
34
34
  # Service for making recommendation prediction.
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/prediction_service"
39
39
  # client = ::Google::Cloud::Retail::V2::PredictionService::Client.new
@@ -46,6 +46,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
46
46
  optional :publish_time, :message, 33, "google.protobuf.Timestamp"
47
47
  optional :retrievable_fields, :message, 30, "google.protobuf.FieldMask"
48
48
  repeated :variants, :message, 31, "google.cloud.retail.v2.Product"
49
+ repeated :local_inventories, :message, 35, "google.cloud.retail.v2.LocalInventory"
49
50
  oneof :expiration do
50
51
  optional :expire_time, :message, 16, "google.protobuf.Timestamp"
51
52
  optional :ttl, :message, 17, "google.protobuf.Duration"
@@ -782,29 +782,24 @@ module Google
782
782
  # @param errors_config [::Google::Cloud::Retail::V2::ImportErrorsConfig, ::Hash]
783
783
  # The desired location of errors incurred during the Import.
784
784
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
785
- # Indicates which fields in the provided imported 'products' to update. If
786
- # not set, will by default update all fields.
785
+ # Indicates which fields in the provided imported `products` to update. If
786
+ # not set, all fields are updated.
787
787
  # @param reconciliation_mode [::Google::Cloud::Retail::V2::ImportProductsRequest::ReconciliationMode]
788
788
  # The mode of reconciliation between existing products and the products to be
789
789
  # imported. Defaults to
790
790
  # {::Google::Cloud::Retail::V2::ImportProductsRequest::ReconciliationMode::INCREMENTAL ReconciliationMode.INCREMENTAL}.
791
791
  # @param notification_pubsub_topic [::String]
792
792
  # Full Pub/Sub topic name for receiving notification. If this field is set,
793
- # when the import is finished, a notification will be sent to
794
- # specified Pub/Sub topic. The message data will be JSON string of a
793
+ # when the import is finished, a notification is sent to
794
+ # specified Pub/Sub topic. The message data is JSON string of a
795
795
  # {::Google::Longrunning::Operation Operation}.
796
796
  #
797
797
  # Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`. It has
798
798
  # to be within the same project as
799
799
  # {::Google::Cloud::Retail::V2::ImportProductsRequest#parent ImportProductsRequest.parent}.
800
- # Make sure that both
801
- # `cloud-retail-customer-data-access@system.gserviceaccount.com` and
802
- # `service-<project number>@gcp-sa-retail.iam.gserviceaccount.com`
803
- # have the `pubsub.topics.publish` IAM permission on the topic.
804
- #
805
- # Only supported when
806
- # {::Google::Cloud::Retail::V2::ImportProductsRequest#reconciliation_mode ImportProductsRequest.reconciliation_mode}
807
- # is set to `FULL`.
800
+ # Make sure that `service-<project
801
+ # number>@gcp-sa-retail.iam.gserviceaccount.com` has the
802
+ # `pubsub.topics.publish` IAM permission on the topic.
808
803
  #
809
804
  # @yield [response, operation] Access the result along with the RPC operation
810
805
  # @yieldparam response [::Gapic::Operation]
@@ -885,9 +880,9 @@ module Google
885
880
  #
886
881
  # This process is asynchronous and does not require the
887
882
  # {::Google::Cloud::Retail::V2::Product Product} to exist before updating
888
- # fulfillment information. If the request is valid, the update will be
889
- # enqueued and processed downstream. As a consequence, when a response is
890
- # returned, updates are not immediately manifested in the
883
+ # fulfillment information. If the request is valid, the update is enqueued
884
+ # and processed downstream. As a consequence, when a response is returned,
885
+ # updates are not immediately manifested in the
891
886
  # {::Google::Cloud::Retail::V2::Product Product} queried by
892
887
  # {::Google::Cloud::Retail::V2::ProductService::Client#get_product ProductService.GetProduct}
893
888
  # or
@@ -897,10 +892,10 @@ module Google
897
892
  # {::Google::Cloud::Retail::V2::ProductService::Client#create_product ProductService.CreateProduct}
898
893
  # and
899
894
  # {::Google::Cloud::Retail::V2::ProductService::Client#update_product ProductService.UpdateProduct},
900
- # the specified inventory field value(s) will overwrite any existing value(s)
895
+ # the specified inventory field value(s) overwrite any existing value(s)
901
896
  # while ignoring the last update time for this field. Furthermore, the last
902
- # update time for the specified inventory fields will be overwritten to the
903
- # time of the
897
+ # update times for the specified inventory fields are overwritten by the
898
+ # times of the
904
899
  # {::Google::Cloud::Retail::V2::ProductService::Client#create_product ProductService.CreateProduct}
905
900
  # or
906
901
  # {::Google::Cloud::Retail::V2::ProductService::Client#update_product ProductService.UpdateProduct}
@@ -908,11 +903,11 @@ module Google
908
903
  #
909
904
  # If no inventory fields are set in
910
905
  # {::Google::Cloud::Retail::V2::CreateProductRequest#product CreateProductRequest.product},
911
- # then any pre-existing inventory information for this product will be used.
906
+ # then any pre-existing inventory information for this product is used.
912
907
  #
913
908
  # If no inventory fields are set in
914
909
  # {::Google::Cloud::Retail::V2::SetInventoryRequest#set_mask SetInventoryRequest.set_mask},
915
- # then any existing inventory information will be preserved.
910
+ # then any existing inventory information is preserved.
916
911
  #
917
912
  # Pre-existing inventory information can only be updated with
918
913
  # {::Google::Cloud::Retail::V2::ProductService::Client#set_inventory ProductService.SetInventory},
@@ -920,8 +915,17 @@ module Google
920
915
  # and
921
916
  # {::Google::Cloud::Retail::V2::ProductService::Client#remove_fulfillment_places ProductService.RemoveFulfillmentPlaces}.
922
917
  #
918
+ # The returned {::Google::Longrunning::Operation Operation}s is obsolete after
919
+ # one day, and the GetOperation
920
+ # API returns `NOT_FOUND` afterwards.
921
+ #
922
+ # If conflicting updates are issued, the
923
+ # {::Google::Longrunning::Operation Operation}s associated with the stale
924
+ # updates are not marked as {::Google::Longrunning::Operation#done done} until
925
+ # they are obsolete.
926
+ #
923
927
  # This feature is only available for users who have Retail Search enabled.
924
- # Please enable Retail Search on Cloud Console before using this feature.
928
+ # Enable Retail Search on Cloud Console before using this feature.
925
929
  #
926
930
  # @overload set_inventory(request, options = nil)
927
931
  # Pass arguments to `set_inventory` via a request object, either of type
@@ -1103,8 +1107,17 @@ module Google
1103
1107
  # or
1104
1108
  # {::Google::Cloud::Retail::V2::ProductService::Client#list_products ProductService.ListProducts}.
1105
1109
  #
1110
+ # The returned {::Google::Longrunning::Operation Operation}s will be obsolete
1111
+ # after 1 day, and GetOperation
1112
+ # API will return NOT_FOUND afterwards.
1113
+ #
1114
+ # If conflicting updates are issued, the
1115
+ # {::Google::Longrunning::Operation Operation}s associated with the stale
1116
+ # updates will not be marked as {::Google::Longrunning::Operation#done done}
1117
+ # until being obsolete.
1118
+ #
1106
1119
  # This feature is only available for users who have Retail Search enabled.
1107
- # Please enable Retail Search on Cloud Console before using this feature.
1120
+ # Enable Retail Search on Cloud Console before using this feature.
1108
1121
  #
1109
1122
  # @overload add_fulfillment_places(request, options = nil)
1110
1123
  # Pass arguments to `add_fulfillment_places` via a request object, either of type
@@ -1264,8 +1277,17 @@ module Google
1264
1277
  # or
1265
1278
  # {::Google::Cloud::Retail::V2::ProductService::Client#list_products ProductService.ListProducts}.
1266
1279
  #
1280
+ # The returned {::Google::Longrunning::Operation Operation}s will be obsolete
1281
+ # after 1 day, and GetOperation
1282
+ # API will return NOT_FOUND afterwards.
1283
+ #
1284
+ # If conflicting updates are issued, the
1285
+ # {::Google::Longrunning::Operation Operation}s associated with the stale
1286
+ # updates will not be marked as {::Google::Longrunning::Operation#done done}
1287
+ # until being obsolete.
1288
+ #
1267
1289
  # This feature is only available for users who have Retail Search enabled.
1268
- # Please enable Retail Search on Cloud Console before using this feature.
1290
+ # Enable Retail Search on Cloud Console before using this feature.
1269
1291
  #
1270
1292
  # @overload remove_fulfillment_places(request, options = nil)
1271
1293
  # Pass arguments to `remove_fulfillment_places` via a request object, either of type
@@ -1427,8 +1449,17 @@ module Google
1427
1449
  # {::Google::Cloud::Retail::V2::ProductService::Client#update_product ProductService.UpdateProduct}
1428
1450
  # has no effect on local inventories.
1429
1451
  #
1452
+ # The returned {::Google::Longrunning::Operation Operation}s will be obsolete
1453
+ # after 1 day, and GetOperation
1454
+ # API will return NOT_FOUND afterwards.
1455
+ #
1456
+ # If conflicting updates are issued, the
1457
+ # {::Google::Longrunning::Operation Operation}s associated with the stale
1458
+ # updates will not be marked as {::Google::Longrunning::Operation#done done}
1459
+ # until being obsolete.
1460
+ #
1430
1461
  # This feature is only available for users who have Retail Search enabled.
1431
- # Please enable Retail Search on Cloud Console before using this feature.
1462
+ # Enable Retail Search on Cloud Console before using this feature.
1432
1463
  #
1433
1464
  # @overload add_local_inventories(request, options = nil)
1434
1465
  # Pass arguments to `add_local_inventories` via a request object, either of type
@@ -1575,8 +1606,17 @@ module Google
1575
1606
  # {::Google::Cloud::Retail::V2::ProductService::Client#update_product ProductService.UpdateProduct}
1576
1607
  # has no effect on local inventories.
1577
1608
  #
1609
+ # The returned {::Google::Longrunning::Operation Operation}s will be obsolete
1610
+ # after 1 day, and GetOperation
1611
+ # API will return NOT_FOUND afterwards.
1612
+ #
1613
+ # If conflicting updates are issued, the
1614
+ # {::Google::Longrunning::Operation Operation}s associated with the stale
1615
+ # updates will not be marked as {::Google::Longrunning::Operation#done done}
1616
+ # until being obsolete.
1617
+ #
1578
1618
  # This feature is only available for users who have Retail Search enabled.
1579
- # Please enable Retail Search on Cloud Console before using this feature.
1619
+ # Enable Retail Search on Cloud Console before using this feature.
1580
1620
  #
1581
1621
  # @overload remove_local_inventories(request, options = nil)
1582
1622
  # Pass arguments to `remove_local_inventories` via a request object, either of type
@@ -35,7 +35,7 @@ module Google
35
35
  # Service for ingesting {::Google::Cloud::Retail::V2::Product Product} information
36
36
  # of the customer's website.
37
37
  #
38
- # To load this service and instantiate a client:
38
+ # @example Load this service and instantiate a gRPC client
39
39
  #
40
40
  # require "google/cloud/retail/v2/product_service"
41
41
  # client = ::Google::Cloud::Retail::V2::ProductService::Client.new