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
@@ -24,6 +24,25 @@ module Google
24
24
  module CatalogService
25
25
  # Path helper methods for the CatalogService API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified AttributesConfig resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/catalogs/{catalog}/attributesConfig`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param catalog [String]
37
+ #
38
+ # @return [::String]
39
+ def attributes_config_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}/attributesConfig"
44
+ end
45
+
27
46
  ##
28
47
  # Create a fully-qualified Branch resource string.
29
48
  #
@@ -64,6 +83,25 @@ module Google
64
83
  "projects/#{project}/locations/#{location}/catalogs/#{catalog}"
65
84
  end
66
85
 
86
+ ##
87
+ # Create a fully-qualified CompletionConfig resource string.
88
+ #
89
+ # The resource will be in the following format:
90
+ #
91
+ # `projects/{project}/locations/{location}/catalogs/{catalog}/completionConfig`
92
+ #
93
+ # @param project [String]
94
+ # @param location [String]
95
+ # @param catalog [String]
96
+ #
97
+ # @return [::String]
98
+ def completion_config_path project:, location:, catalog:
99
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
100
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
101
+
102
+ "projects/#{project}/locations/#{location}/catalogs/#{catalog}/completionConfig"
103
+ end
104
+
67
105
  ##
68
106
  # Create a fully-qualified Location resource string.
69
107
  #
@@ -33,7 +33,7 @@ module Google
33
33
  ##
34
34
  # Service for managing catalog configuration.
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/catalog_service"
39
39
  # client = ::Google::Cloud::Retail::V2::CatalogService::Client.new
@@ -41,6 +41,33 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
41
41
  optional :set_time, :message, 2, "google.protobuf.Timestamp"
42
42
  optional :note, :string, 3
43
43
  end
44
+ add_message "google.cloud.retail.v2.GetCompletionConfigRequest" do
45
+ optional :name, :string, 1
46
+ end
47
+ add_message "google.cloud.retail.v2.UpdateCompletionConfigRequest" do
48
+ optional :completion_config, :message, 1, "google.cloud.retail.v2.CompletionConfig"
49
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
50
+ end
51
+ add_message "google.cloud.retail.v2.GetAttributesConfigRequest" do
52
+ optional :name, :string, 1
53
+ end
54
+ add_message "google.cloud.retail.v2.UpdateAttributesConfigRequest" do
55
+ optional :attributes_config, :message, 1, "google.cloud.retail.v2.AttributesConfig"
56
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
57
+ end
58
+ add_message "google.cloud.retail.v2.AddCatalogAttributeRequest" do
59
+ optional :attributes_config, :string, 1
60
+ optional :catalog_attribute, :message, 2, "google.cloud.retail.v2.CatalogAttribute"
61
+ end
62
+ add_message "google.cloud.retail.v2.RemoveCatalogAttributeRequest" do
63
+ optional :attributes_config, :string, 1
64
+ optional :key, :string, 2
65
+ end
66
+ add_message "google.cloud.retail.v2.ReplaceCatalogAttributeRequest" do
67
+ optional :attributes_config, :string, 1
68
+ optional :catalog_attribute, :message, 2, "google.cloud.retail.v2.CatalogAttribute"
69
+ optional :update_mask, :message, 3, "google.protobuf.FieldMask"
70
+ end
44
71
  end
45
72
  end
46
73
 
@@ -54,6 +81,13 @@ module Google
54
81
  SetDefaultBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.SetDefaultBranchRequest").msgclass
55
82
  GetDefaultBranchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.GetDefaultBranchRequest").msgclass
56
83
  GetDefaultBranchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.GetDefaultBranchResponse").msgclass
84
+ GetCompletionConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.GetCompletionConfigRequest").msgclass
85
+ UpdateCompletionConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.UpdateCompletionConfigRequest").msgclass
86
+ GetAttributesConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.GetAttributesConfigRequest").msgclass
87
+ UpdateAttributesConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.UpdateAttributesConfigRequest").msgclass
88
+ AddCatalogAttributeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.AddCatalogAttributeRequest").msgclass
89
+ RemoveCatalogAttributeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.RemoveCatalogAttributeRequest").msgclass
90
+ ReplaceCatalogAttributeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ReplaceCatalogAttributeRequest").msgclass
57
91
  end
58
92
  end
59
93
  end
@@ -76,6 +76,44 @@ module Google
76
76
  # [CatalogService.SetDefaultBranch][google.cloud.retail.v2.CatalogService.SetDefaultBranch]
77
77
  # method under a specified parent catalog.
78
78
  rpc :GetDefaultBranch, ::Google::Cloud::Retail::V2::GetDefaultBranchRequest, ::Google::Cloud::Retail::V2::GetDefaultBranchResponse
79
+ # Gets a [CompletionConfig][google.cloud.retail.v2.CompletionConfig].
80
+ rpc :GetCompletionConfig, ::Google::Cloud::Retail::V2::GetCompletionConfigRequest, ::Google::Cloud::Retail::V2::CompletionConfig
81
+ # Updates the [CompletionConfig][google.cloud.retail.v2.CompletionConfig]s.
82
+ rpc :UpdateCompletionConfig, ::Google::Cloud::Retail::V2::UpdateCompletionConfigRequest, ::Google::Cloud::Retail::V2::CompletionConfig
83
+ # Gets an [AttributesConfig][google.cloud.retail.v2.AttributesConfig].
84
+ rpc :GetAttributesConfig, ::Google::Cloud::Retail::V2::GetAttributesConfigRequest, ::Google::Cloud::Retail::V2::AttributesConfig
85
+ # Updates the [AttributesConfig][google.cloud.retail.v2.AttributesConfig].
86
+ #
87
+ # The catalog attributes in the request will be updated in the catalog, or
88
+ # inserted if they do not exist. Existing catalog attributes not included in
89
+ # the request will remain unchanged. Attributes that are assigned to
90
+ # products, but do not exist at the catalog level, are always included in the
91
+ # response. The product attribute is assigned default values for missing
92
+ # catalog attribute fields, e.g., searchable and dynamic facetable options.
93
+ rpc :UpdateAttributesConfig, ::Google::Cloud::Retail::V2::UpdateAttributesConfigRequest, ::Google::Cloud::Retail::V2::AttributesConfig
94
+ # Adds the specified
95
+ # [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to the
96
+ # [AttributesConfig][google.cloud.retail.v2.AttributesConfig].
97
+ #
98
+ # If the [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to add
99
+ # already exists, an ALREADY_EXISTS error is returned.
100
+ rpc :AddCatalogAttribute, ::Google::Cloud::Retail::V2::AddCatalogAttributeRequest, ::Google::Cloud::Retail::V2::AttributesConfig
101
+ # Removes the specified
102
+ # [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] from the
103
+ # [AttributesConfig][google.cloud.retail.v2.AttributesConfig].
104
+ #
105
+ # If the [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to
106
+ # remove does not exist, a NOT_FOUND error is returned.
107
+ rpc :RemoveCatalogAttribute, ::Google::Cloud::Retail::V2::RemoveCatalogAttributeRequest, ::Google::Cloud::Retail::V2::AttributesConfig
108
+ # Replaces the specified
109
+ # [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] in the
110
+ # [AttributesConfig][google.cloud.retail.v2.AttributesConfig] by updating the
111
+ # catalog attribute with the same
112
+ # [CatalogAttribute.key][google.cloud.retail.v2.CatalogAttribute.key].
113
+ #
114
+ # If the [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to
115
+ # replace does not exist, a NOT_FOUND error is returned.
116
+ rpc :ReplaceCatalogAttribute, ::Google::Cloud::Retail::V2::ReplaceCatalogAttributeRequest, ::Google::Cloud::Retail::V2::AttributesConfig
79
117
  end
80
118
 
81
119
  Stub = Service.rpc_stub_class
@@ -8,6 +8,62 @@ require 'google/protobuf/timestamp_pb'
8
8
 
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/retail/v2/common.proto", :syntax => :proto3) do
11
+ add_message "google.cloud.retail.v2.Condition" do
12
+ repeated :query_terms, :message, 1, "google.cloud.retail.v2.Condition.QueryTerm"
13
+ repeated :active_time_range, :message, 3, "google.cloud.retail.v2.Condition.TimeRange"
14
+ end
15
+ add_message "google.cloud.retail.v2.Condition.QueryTerm" do
16
+ optional :value, :string, 1
17
+ optional :full_match, :bool, 2
18
+ end
19
+ add_message "google.cloud.retail.v2.Condition.TimeRange" do
20
+ optional :start_time, :message, 1, "google.protobuf.Timestamp"
21
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
22
+ end
23
+ add_message "google.cloud.retail.v2.Rule" do
24
+ optional :condition, :message, 1, "google.cloud.retail.v2.Condition"
25
+ oneof :action do
26
+ optional :boost_action, :message, 2, "google.cloud.retail.v2.Rule.BoostAction"
27
+ optional :redirect_action, :message, 3, "google.cloud.retail.v2.Rule.RedirectAction"
28
+ optional :oneway_synonyms_action, :message, 6, "google.cloud.retail.v2.Rule.OnewaySynonymsAction"
29
+ optional :do_not_associate_action, :message, 7, "google.cloud.retail.v2.Rule.DoNotAssociateAction"
30
+ optional :replacement_action, :message, 8, "google.cloud.retail.v2.Rule.ReplacementAction"
31
+ optional :ignore_action, :message, 9, "google.cloud.retail.v2.Rule.IgnoreAction"
32
+ optional :filter_action, :message, 10, "google.cloud.retail.v2.Rule.FilterAction"
33
+ optional :twoway_synonyms_action, :message, 11, "google.cloud.retail.v2.Rule.TwowaySynonymsAction"
34
+ end
35
+ end
36
+ add_message "google.cloud.retail.v2.Rule.BoostAction" do
37
+ optional :boost, :float, 1
38
+ optional :products_filter, :string, 2
39
+ end
40
+ add_message "google.cloud.retail.v2.Rule.FilterAction" do
41
+ optional :filter, :string, 1
42
+ end
43
+ add_message "google.cloud.retail.v2.Rule.RedirectAction" do
44
+ optional :redirect_uri, :string, 1
45
+ end
46
+ add_message "google.cloud.retail.v2.Rule.TwowaySynonymsAction" do
47
+ repeated :synonyms, :string, 1
48
+ end
49
+ add_message "google.cloud.retail.v2.Rule.OnewaySynonymsAction" do
50
+ repeated :query_terms, :string, 3
51
+ repeated :synonyms, :string, 4
52
+ repeated :oneway_terms, :string, 2
53
+ end
54
+ add_message "google.cloud.retail.v2.Rule.DoNotAssociateAction" do
55
+ repeated :query_terms, :string, 2
56
+ repeated :do_not_associate_terms, :string, 3
57
+ repeated :terms, :string, 1
58
+ end
59
+ add_message "google.cloud.retail.v2.Rule.ReplacementAction" do
60
+ repeated :query_terms, :string, 2
61
+ optional :replacement_term, :string, 3
62
+ optional :term, :string, 1
63
+ end
64
+ add_message "google.cloud.retail.v2.Rule.IgnoreAction" do
65
+ repeated :ignore_terms, :string, 1
66
+ end
11
67
  add_message "google.cloud.retail.v2.Audience" do
12
68
  repeated :genders, :string, 1
13
69
  repeated :age_groups, :string, 2
@@ -71,6 +127,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
71
127
  map :attributes, :string, :message, 3, "google.cloud.retail.v2.CustomAttribute"
72
128
  repeated :fulfillment_types, :string, 4
73
129
  end
130
+ add_enum "google.cloud.retail.v2.AttributeConfigLevel" do
131
+ value :ATTRIBUTE_CONFIG_LEVEL_UNSPECIFIED, 0
132
+ value :PRODUCT_LEVEL_ATTRIBUTE_CONFIG, 1
133
+ value :CATALOG_LEVEL_ATTRIBUTE_CONFIG, 2
134
+ end
135
+ add_enum "google.cloud.retail.v2.SolutionType" do
136
+ value :SOLUTION_TYPE_UNSPECIFIED, 0
137
+ value :SOLUTION_TYPE_RECOMMENDATION, 1
138
+ value :SOLUTION_TYPE_SEARCH, 2
139
+ end
140
+ add_enum "google.cloud.retail.v2.SearchSolutionUseCase" do
141
+ value :SEARCH_SOLUTION_USE_CASE_UNSPECIFIED, 0
142
+ value :SEARCH_SOLUTION_USE_CASE_SEARCH, 1
143
+ value :SEARCH_SOLUTION_USE_CASE_BROWSE, 2
144
+ end
74
145
  end
75
146
  end
76
147
 
@@ -78,6 +149,18 @@ module Google
78
149
  module Cloud
79
150
  module Retail
80
151
  module V2
152
+ Condition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Condition").msgclass
153
+ Condition::QueryTerm = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Condition.QueryTerm").msgclass
154
+ Condition::TimeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Condition.TimeRange").msgclass
155
+ Rule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule").msgclass
156
+ Rule::BoostAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.BoostAction").msgclass
157
+ Rule::FilterAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.FilterAction").msgclass
158
+ Rule::RedirectAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.RedirectAction").msgclass
159
+ Rule::TwowaySynonymsAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.TwowaySynonymsAction").msgclass
160
+ Rule::OnewaySynonymsAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.OnewaySynonymsAction").msgclass
161
+ Rule::DoNotAssociateAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.DoNotAssociateAction").msgclass
162
+ Rule::ReplacementAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.ReplacementAction").msgclass
163
+ Rule::IgnoreAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rule.IgnoreAction").msgclass
81
164
  Audience = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Audience").msgclass
82
165
  ColorInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.ColorInfo").msgclass
83
166
  CustomAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.CustomAttribute").msgclass
@@ -89,6 +172,9 @@ module Google
89
172
  Rating = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Rating").msgclass
90
173
  UserInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.UserInfo").msgclass
91
174
  LocalInventory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.LocalInventory").msgclass
175
+ AttributeConfigLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.AttributeConfigLevel").enummodule
176
+ SolutionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.SolutionType").enummodule
177
+ SearchSolutionUseCase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.SearchSolutionUseCase").enummodule
92
178
  end
93
179
  end
94
180
  end
@@ -30,7 +30,7 @@ module Google
30
30
  # Auto-completion service for retail.
31
31
  #
32
32
  # This feature is only available for users who have Retail Search enabled.
33
- # Please enable Retail Search on Cloud Console before using this feature.
33
+ # Enable Retail Search on Cloud Console before using this feature.
34
34
  #
35
35
  class Client
36
36
  include Paths
@@ -169,7 +169,7 @@ module Google
169
169
  # Completes the specified prefix with keyword suggestions.
170
170
  #
171
171
  # This feature is only available for users who have Retail Search enabled.
172
- # Please enable Retail Search on Cloud Console before using this feature.
172
+ # Enable Retail Search on Cloud Console before using this feature.
173
173
  #
174
174
  # @overload complete_query(request, options = nil)
175
175
  # Pass arguments to `complete_query` via a request object, either of type
@@ -214,8 +214,10 @@ module Google
214
214
  # Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum
215
215
  # number of language codes is 3.
216
216
  # @param device_type [::String]
217
- # The device type context for completion suggestions.
218
- # It is useful to apply different suggestions on different device types, e.g.
217
+ # The device type context for completion suggestions. We recommend that you
218
+ # leave this field empty.
219
+ #
220
+ # It can apply different suggestions on different device types, e.g.
219
221
  # `DESKTOP`, `MOBILE`. If it is empty, the suggestions are across all device
220
222
  # types.
221
223
  #
@@ -244,7 +246,8 @@ module Google
244
246
  # [guidelines](https://cloud.google.com/retail/docs/completion-overview#generated-completion-dataset).
245
247
  # @param max_suggestions [::Integer]
246
248
  # Completion max suggestions. If left unset or set to 0, then will fallback
247
- # to the configured value [CompletionConfig.max_suggestions][].
249
+ # to the configured value
250
+ # {::Google::Cloud::Retail::V2::CompletionConfig#max_suggestions CompletionConfig.max_suggestions}.
248
251
  #
249
252
  # The maximum allowed max suggestions is 20. If it is set higher, it will be
250
253
  # capped by 20.
@@ -322,7 +325,7 @@ module Google
322
325
  # are indexed successfully and ready for serving. The process takes hours.
323
326
  #
324
327
  # This feature is only available for users who have Retail Search enabled.
325
- # Please enable Retail Search on Cloud Console before using this feature.
328
+ # Enable Retail Search on Cloud Console before using this feature.
326
329
  #
327
330
  # @overload import_completion_data(request, options = nil)
328
331
  # Pass arguments to `import_completion_data` via a request object, either of type
@@ -347,8 +350,8 @@ module Google
347
350
  # Required. The desired input location of the data.
348
351
  # @param notification_pubsub_topic [::String]
349
352
  # Pub/Sub topic for receiving notification. If this field is set,
350
- # when the import is finished, a notification will be sent to
351
- # specified Pub/Sub topic. The message data will be JSON string of a
353
+ # when the import is finished, a notification is sent to
354
+ # specified Pub/Sub topic. The message data is JSON string of a
352
355
  # {::Google::Longrunning::Operation Operation}.
353
356
  # Format of the Pub/Sub topic is `projects/{project}/topics/{topic}`.
354
357
  #
@@ -35,9 +35,9 @@ module Google
35
35
  # Auto-completion service for retail.
36
36
  #
37
37
  # This feature is only available for users who have Retail Search enabled.
38
- # Please enable Retail Search on Cloud Console before using this feature.
38
+ # Enable Retail Search on Cloud Console before using this feature.
39
39
  #
40
- # To load this service and instantiate a client:
40
+ # @example Load this service and instantiate a gRPC client
41
41
  #
42
42
  # require "google/cloud/retail/v2/completion_service"
43
43
  # client = ::Google::Cloud::Retail::V2::CompletionService::Client.new
@@ -27,7 +27,7 @@ module Google
27
27
  # Auto-completion service for retail.
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
  # Completes the specified prefix with keyword suggestions.
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 :CompleteQuery, ::Google::Cloud::Retail::V2::CompleteQueryRequest, ::Google::Cloud::Retail::V2::CompleteQueryResponse
44
44
  # Bulk import of processed completion dataset.
45
45
  #
@@ -49,7 +49,7 @@ module Google
49
49
  # are indexed successfully and ready for serving. The process takes hours.
50
50
  #
51
51
  # This feature is only available for users who have Retail Search enabled.
52
- # Please enable Retail Search on Cloud Console before using this feature.
52
+ # Enable Retail Search on Cloud Console before using this feature.
53
53
  rpc :ImportCompletionData, ::Google::Cloud::Retail::V2::ImportCompletionDataRequest, ::Google::Longrunning::Operation
54
54
  end
55
55
 
@@ -0,0 +1,33 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/retail/v2/control.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/cloud/retail/v2/common_pb'
9
+
10
+ Google::Protobuf::DescriptorPool.generated_pool.build do
11
+ add_file("google/cloud/retail/v2/control.proto", :syntax => :proto3) do
12
+ add_message "google.cloud.retail.v2.Control" do
13
+ optional :name, :string, 1
14
+ optional :display_name, :string, 2
15
+ repeated :associated_serving_config_ids, :string, 5
16
+ repeated :solution_types, :enum, 6, "google.cloud.retail.v2.SolutionType"
17
+ repeated :search_solution_use_case, :enum, 7, "google.cloud.retail.v2.SearchSolutionUseCase"
18
+ oneof :control do
19
+ optional :rule, :message, 4, "google.cloud.retail.v2.Rule"
20
+ end
21
+ end
22
+ end
23
+ end
24
+
25
+ module Google
26
+ module Cloud
27
+ module Retail
28
+ module V2
29
+ Control = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.retail.v2.Control").msgclass
30
+ end
31
+ end
32
+ end
33
+ end