google-shopping-css-v1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/shopping/css/v1/account_labels_service/client.rb +736 -0
  6. data/lib/google/shopping/css/v1/account_labels_service/credentials.rb +47 -0
  7. data/lib/google/shopping/css/v1/account_labels_service/paths.rb +64 -0
  8. data/lib/google/shopping/css/v1/account_labels_service/rest/client.rb +682 -0
  9. data/lib/google/shopping/css/v1/account_labels_service/rest/service_stub.rb +307 -0
  10. data/lib/google/shopping/css/v1/account_labels_service/rest.rb +52 -0
  11. data/lib/google/shopping/css/v1/account_labels_service.rb +55 -0
  12. data/lib/google/shopping/css/v1/accounts_labels_pb.rb +54 -0
  13. data/lib/google/shopping/css/v1/accounts_labels_services_pb.rb +51 -0
  14. data/lib/google/shopping/css/v1/accounts_pb.rb +52 -0
  15. data/lib/google/shopping/css/v1/accounts_service/client.rb +659 -0
  16. data/lib/google/shopping/css/v1/accounts_service/credentials.rb +47 -0
  17. data/lib/google/shopping/css/v1/accounts_service/paths.rb +47 -0
  18. data/lib/google/shopping/css/v1/accounts_service/rest/client.rb +612 -0
  19. data/lib/google/shopping/css/v1/accounts_service/rest/service_stub.rb +247 -0
  20. data/lib/google/shopping/css/v1/accounts_service/rest.rb +52 -0
  21. data/lib/google/shopping/css/v1/accounts_service.rb +55 -0
  22. data/lib/google/shopping/css/v1/accounts_services_pb.rb +50 -0
  23. data/lib/google/shopping/css/v1/css_product_common_pb.rb +55 -0
  24. data/lib/google/shopping/css/v1/css_product_inputs_pb.rb +56 -0
  25. data/lib/google/shopping/css/v1/css_product_inputs_service/client.rb +546 -0
  26. data/lib/google/shopping/css/v1/css_product_inputs_service/credentials.rb +47 -0
  27. data/lib/google/shopping/css/v1/css_product_inputs_service/paths.rb +64 -0
  28. data/lib/google/shopping/css/v1/css_product_inputs_service/rest/client.rb +506 -0
  29. data/lib/google/shopping/css/v1/css_product_inputs_service/rest/service_stub.rb +188 -0
  30. data/lib/google/shopping/css/v1/css_product_inputs_service/rest.rb +53 -0
  31. data/lib/google/shopping/css/v1/css_product_inputs_service.rb +56 -0
  32. data/lib/google/shopping/css/v1/css_product_inputs_services_pb.rb +56 -0
  33. data/lib/google/shopping/css/v1/css_products_pb.rb +54 -0
  34. data/lib/google/shopping/css/v1/css_products_service/client.rb +554 -0
  35. data/lib/google/shopping/css/v1/css_products_service/credentials.rb +47 -0
  36. data/lib/google/shopping/css/v1/css_products_service/paths.rb +64 -0
  37. data/lib/google/shopping/css/v1/css_products_service/rest/client.rb +514 -0
  38. data/lib/google/shopping/css/v1/css_products_service/rest/service_stub.rb +187 -0
  39. data/lib/google/shopping/css/v1/css_products_service/rest.rb +53 -0
  40. data/lib/google/shopping/css/v1/css_products_service.rb +56 -0
  41. data/lib/google/shopping/css/v1/css_products_services_pb.rb +56 -0
  42. data/lib/google/shopping/css/v1/rest.rb +40 -0
  43. data/lib/google/shopping/css/v1/version.rb +8 -3
  44. data/lib/google/shopping/css/v1.rb +48 -0
  45. data/lib/google-shopping-css-v1.rb +21 -0
  46. data/proto_docs/README.md +4 -0
  47. data/proto_docs/google/api/client.rb +399 -0
  48. data/proto_docs/google/api/field_behavior.rb +85 -0
  49. data/proto_docs/google/api/launch_stage.rb +71 -0
  50. data/proto_docs/google/api/resource.rb +222 -0
  51. data/proto_docs/google/protobuf/duration.rb +98 -0
  52. data/proto_docs/google/protobuf/empty.rb +34 -0
  53. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  54. data/proto_docs/google/shopping/css/v1/accounts.rb +168 -0
  55. data/proto_docs/google/shopping/css/v1/accounts_labels.rb +131 -0
  56. data/proto_docs/google/shopping/css/v1/css_product_common.rb +352 -0
  57. data/proto_docs/google/shopping/css/v1/css_product_inputs.rb +130 -0
  58. data/proto_docs/google/shopping/css/v1/css_products.rb +109 -0
  59. data/proto_docs/google/shopping/type/types.rb +210 -0
  60. metadata +123 -13
@@ -0,0 +1,307 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 "google/shopping/css/v1/accounts_labels_pb"
20
+
21
+ module Google
22
+ module Shopping
23
+ module Css
24
+ module V1
25
+ module AccountLabelsService
26
+ module Rest
27
+ ##
28
+ # REST service stub for the AccountLabelsService service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
34
+ # These require statements are intentionally placed here to initialize
35
+ # the REST modules only when it's required.
36
+ require "gapic/rest"
37
+
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
39
+ endpoint_template: endpoint_template,
40
+ universe_domain: universe_domain,
41
+ credentials: credentials,
42
+ numeric_enums: true,
43
+ raise_faraday_errors: false
44
+ end
45
+
46
+ ##
47
+ # The effective universe domain
48
+ #
49
+ # @return [String]
50
+ #
51
+ def universe_domain
52
+ @client_stub.universe_domain
53
+ end
54
+
55
+ ##
56
+ # The effective endpoint
57
+ #
58
+ # @return [String]
59
+ #
60
+ def endpoint
61
+ @client_stub.endpoint
62
+ end
63
+
64
+ ##
65
+ # Baseline implementation for the list_account_labels REST call
66
+ #
67
+ # @param request_pb [::Google::Shopping::Css::V1::ListAccountLabelsRequest]
68
+ # A request object representing the call parameters. Required.
69
+ # @param options [::Gapic::CallOptions]
70
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
71
+ #
72
+ # @yield [result, operation] Access the result along with the TransportOperation object
73
+ # @yieldparam result [::Google::Shopping::Css::V1::ListAccountLabelsResponse]
74
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
75
+ #
76
+ # @return [::Google::Shopping::Css::V1::ListAccountLabelsResponse]
77
+ # A result object deserialized from the server's reply
78
+ def list_account_labels request_pb, options = nil
79
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
80
+
81
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_account_labels_request request_pb
82
+ query_string_params = if query_string_params.any?
83
+ query_string_params.to_h { |p| p.split "=", 2 }
84
+ else
85
+ {}
86
+ end
87
+
88
+ response = @client_stub.make_http_request(
89
+ verb,
90
+ uri: uri,
91
+ body: body || "",
92
+ params: query_string_params,
93
+ options: options
94
+ )
95
+ operation = ::Gapic::Rest::TransportOperation.new response
96
+ result = ::Google::Shopping::Css::V1::ListAccountLabelsResponse.decode_json response.body, ignore_unknown_fields: true
97
+
98
+ yield result, operation if block_given?
99
+ result
100
+ end
101
+
102
+ ##
103
+ # Baseline implementation for the create_account_label REST call
104
+ #
105
+ # @param request_pb [::Google::Shopping::Css::V1::CreateAccountLabelRequest]
106
+ # A request object representing the call parameters. Required.
107
+ # @param options [::Gapic::CallOptions]
108
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
109
+ #
110
+ # @yield [result, operation] Access the result along with the TransportOperation object
111
+ # @yieldparam result [::Google::Shopping::Css::V1::AccountLabel]
112
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
113
+ #
114
+ # @return [::Google::Shopping::Css::V1::AccountLabel]
115
+ # A result object deserialized from the server's reply
116
+ def create_account_label request_pb, options = nil
117
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
118
+
119
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_account_label_request request_pb
120
+ query_string_params = if query_string_params.any?
121
+ query_string_params.to_h { |p| p.split "=", 2 }
122
+ else
123
+ {}
124
+ end
125
+
126
+ response = @client_stub.make_http_request(
127
+ verb,
128
+ uri: uri,
129
+ body: body || "",
130
+ params: query_string_params,
131
+ options: options
132
+ )
133
+ operation = ::Gapic::Rest::TransportOperation.new response
134
+ result = ::Google::Shopping::Css::V1::AccountLabel.decode_json response.body, ignore_unknown_fields: true
135
+
136
+ yield result, operation if block_given?
137
+ result
138
+ end
139
+
140
+ ##
141
+ # Baseline implementation for the update_account_label REST call
142
+ #
143
+ # @param request_pb [::Google::Shopping::Css::V1::UpdateAccountLabelRequest]
144
+ # A request object representing the call parameters. Required.
145
+ # @param options [::Gapic::CallOptions]
146
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
147
+ #
148
+ # @yield [result, operation] Access the result along with the TransportOperation object
149
+ # @yieldparam result [::Google::Shopping::Css::V1::AccountLabel]
150
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
151
+ #
152
+ # @return [::Google::Shopping::Css::V1::AccountLabel]
153
+ # A result object deserialized from the server's reply
154
+ def update_account_label request_pb, options = nil
155
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
156
+
157
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_account_label_request request_pb
158
+ query_string_params = if query_string_params.any?
159
+ query_string_params.to_h { |p| p.split "=", 2 }
160
+ else
161
+ {}
162
+ end
163
+
164
+ response = @client_stub.make_http_request(
165
+ verb,
166
+ uri: uri,
167
+ body: body || "",
168
+ params: query_string_params,
169
+ options: options
170
+ )
171
+ operation = ::Gapic::Rest::TransportOperation.new response
172
+ result = ::Google::Shopping::Css::V1::AccountLabel.decode_json response.body, ignore_unknown_fields: true
173
+
174
+ yield result, operation if block_given?
175
+ result
176
+ end
177
+
178
+ ##
179
+ # Baseline implementation for the delete_account_label REST call
180
+ #
181
+ # @param request_pb [::Google::Shopping::Css::V1::DeleteAccountLabelRequest]
182
+ # A request object representing the call parameters. Required.
183
+ # @param options [::Gapic::CallOptions]
184
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
185
+ #
186
+ # @yield [result, operation] Access the result along with the TransportOperation object
187
+ # @yieldparam result [::Google::Protobuf::Empty]
188
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
189
+ #
190
+ # @return [::Google::Protobuf::Empty]
191
+ # A result object deserialized from the server's reply
192
+ def delete_account_label request_pb, options = nil
193
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
194
+
195
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_account_label_request request_pb
196
+ query_string_params = if query_string_params.any?
197
+ query_string_params.to_h { |p| p.split "=", 2 }
198
+ else
199
+ {}
200
+ end
201
+
202
+ response = @client_stub.make_http_request(
203
+ verb,
204
+ uri: uri,
205
+ body: body || "",
206
+ params: query_string_params,
207
+ options: options
208
+ )
209
+ operation = ::Gapic::Rest::TransportOperation.new response
210
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
211
+
212
+ yield result, operation if block_given?
213
+ result
214
+ end
215
+
216
+ ##
217
+ # @private
218
+ #
219
+ # GRPC transcoding helper method for the list_account_labels REST call
220
+ #
221
+ # @param request_pb [::Google::Shopping::Css::V1::ListAccountLabelsRequest]
222
+ # A request object representing the call parameters. Required.
223
+ # @return [Array(String, [String, nil], Hash{String => String})]
224
+ # Uri, Body, Query string parameters
225
+ def self.transcode_list_account_labels_request request_pb
226
+ transcoder = Gapic::Rest::GrpcTranscoder.new
227
+ .with_bindings(
228
+ uri_method: :get,
229
+ uri_template: "/v1/{parent}/labels",
230
+ matches: [
231
+ ["parent", %r{^accounts/[^/]+/?$}, false]
232
+ ]
233
+ )
234
+ transcoder.transcode request_pb
235
+ end
236
+
237
+ ##
238
+ # @private
239
+ #
240
+ # GRPC transcoding helper method for the create_account_label REST call
241
+ #
242
+ # @param request_pb [::Google::Shopping::Css::V1::CreateAccountLabelRequest]
243
+ # A request object representing the call parameters. Required.
244
+ # @return [Array(String, [String, nil], Hash{String => String})]
245
+ # Uri, Body, Query string parameters
246
+ def self.transcode_create_account_label_request request_pb
247
+ transcoder = Gapic::Rest::GrpcTranscoder.new
248
+ .with_bindings(
249
+ uri_method: :post,
250
+ uri_template: "/v1/{parent}/labels",
251
+ body: "account_label",
252
+ matches: [
253
+ ["parent", %r{^accounts/[^/]+/?$}, false]
254
+ ]
255
+ )
256
+ transcoder.transcode request_pb
257
+ end
258
+
259
+ ##
260
+ # @private
261
+ #
262
+ # GRPC transcoding helper method for the update_account_label REST call
263
+ #
264
+ # @param request_pb [::Google::Shopping::Css::V1::UpdateAccountLabelRequest]
265
+ # A request object representing the call parameters. Required.
266
+ # @return [Array(String, [String, nil], Hash{String => String})]
267
+ # Uri, Body, Query string parameters
268
+ def self.transcode_update_account_label_request request_pb
269
+ transcoder = Gapic::Rest::GrpcTranscoder.new
270
+ .with_bindings(
271
+ uri_method: :patch,
272
+ uri_template: "/v1/{account_label.name}",
273
+ body: "account_label",
274
+ matches: [
275
+ ["account_label.name", %r{^accounts/[^/]+/labels/[^/]+/?$}, false]
276
+ ]
277
+ )
278
+ transcoder.transcode request_pb
279
+ end
280
+
281
+ ##
282
+ # @private
283
+ #
284
+ # GRPC transcoding helper method for the delete_account_label REST call
285
+ #
286
+ # @param request_pb [::Google::Shopping::Css::V1::DeleteAccountLabelRequest]
287
+ # A request object representing the call parameters. Required.
288
+ # @return [Array(String, [String, nil], Hash{String => String})]
289
+ # Uri, Body, Query string parameters
290
+ def self.transcode_delete_account_label_request request_pb
291
+ transcoder = Gapic::Rest::GrpcTranscoder.new
292
+ .with_bindings(
293
+ uri_method: :delete,
294
+ uri_template: "/v1/{name}",
295
+ matches: [
296
+ ["name", %r{^accounts/[^/]+/labels/[^/]+/?$}, false]
297
+ ]
298
+ )
299
+ transcoder.transcode request_pb
300
+ end
301
+ end
302
+ end
303
+ end
304
+ end
305
+ end
306
+ end
307
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/shopping/css/v1/version"
24
+
25
+ require "google/shopping/css/v1/account_labels_service/credentials"
26
+ require "google/shopping/css/v1/account_labels_service/paths"
27
+ require "google/shopping/css/v1/account_labels_service/rest/client"
28
+
29
+ module Google
30
+ module Shopping
31
+ module Css
32
+ module V1
33
+ ##
34
+ # Manages Merchant Center and CSS accounts labels.
35
+ #
36
+ # To load this service and instantiate a REST client:
37
+ #
38
+ # require "google/shopping/css/v1/account_labels_service/rest"
39
+ # client = ::Google::Shopping::Css::V1::AccountLabelsService::Rest::Client.new
40
+ #
41
+ module AccountLabelsService
42
+ # Client for the REST transport
43
+ module Rest
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+
51
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
52
+ require "google/shopping/css/v1/account_labels_service/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/shopping/css/v1/version"
24
+
25
+ require "google/shopping/css/v1/account_labels_service/credentials"
26
+ require "google/shopping/css/v1/account_labels_service/paths"
27
+ require "google/shopping/css/v1/account_labels_service/client"
28
+ require "google/shopping/css/v1/account_labels_service/rest"
29
+
30
+ module Google
31
+ module Shopping
32
+ module Css
33
+ module V1
34
+ ##
35
+ # Manages Merchant Center and CSS accounts labels.
36
+ #
37
+ # @example Load this service and instantiate a gRPC client
38
+ #
39
+ # require "google/shopping/css/v1/account_labels_service"
40
+ # client = ::Google::Shopping::Css::V1::AccountLabelsService::Client.new
41
+ #
42
+ # @example Load this service and instantiate a REST client
43
+ #
44
+ # require "google/shopping/css/v1/account_labels_service/rest"
45
+ # client = ::Google::Shopping::Css::V1::AccountLabelsService::Rest::Client.new
46
+ #
47
+ module AccountLabelsService
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ helper_path = ::File.join __dir__, "account_labels_service", "helpers.rb"
55
+ require "google/shopping/css/v1/account_labels_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/shopping/css/v1/accounts_labels.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/protobuf/empty_pb'
12
+
13
+
14
+ descriptor_data = "\n,google/shopping/css/v1/accounts_labels.proto\x12\x16google.shopping.css.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x95\x03\n\x0c\x41\x63\x63ountLabel\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\x08label_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x17\n\naccount_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tH\x01\x88\x01\x01\x12G\n\nlabel_type\x18\x06 \x01(\x0e\x32..google.shopping.css.v1.AccountLabel.LabelTypeB\x03\xe0\x41\x03\"B\n\tLabelType\x12\x1a\n\x16LABEL_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06MANUAL\x10\x01\x12\r\n\tAUTOMATIC\x10\x02:d\xea\x41\x61\n\x1f\x63ss.googleapis.com/AccountLabel\x12!accounts/{account}/labels/{label}*\raccountLabels2\x0c\x61\x63\x63ountLabelB\x0f\n\r_display_nameB\x0e\n\x0c_description\"z\n\x18ListAccountLabelsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63ss.googleapis.com/AccountLabel\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x19ListAccountLabelsResponse\x12<\n\x0e\x61\x63\x63ount_labels\x18\x01 \x03(\x0b\x32$.google.shopping.css.v1.AccountLabel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x96\x01\n\x19\x43reateAccountLabelRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63ss.googleapis.com/AccountLabel\x12@\n\raccount_label\x18\x02 \x01(\x0b\x32$.google.shopping.css.v1.AccountLabelB\x03\xe0\x41\x02\"]\n\x19UpdateAccountLabelRequest\x12@\n\raccount_label\x18\x01 \x01(\x0b\x32$.google.shopping.css.v1.AccountLabelB\x03\xe0\x41\x02\"R\n\x19\x44\x65leteAccountLabelRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63ss.googleapis.com/AccountLabel2\x97\x06\n\x14\x41\x63\x63ountLabelsService\x12\xa9\x01\n\x11ListAccountLabels\x12\x30.google.shopping.css.v1.ListAccountLabelsRequest\x1a\x31.google.shopping.css.v1.ListAccountLabelsResponse\"/\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=accounts/*}/labels\x12\xbb\x01\n\x12\x43reateAccountLabel\x12\x31.google.shopping.css.v1.CreateAccountLabelRequest\x1a$.google.shopping.css.v1.AccountLabel\"L\xda\x41\x14parent,account_label\x82\xd3\xe4\x93\x02/\"\x1e/v1/{parent=accounts/*}/labels:\raccount_label\x12\xc2\x01\n\x12UpdateAccountLabel\x12\x31.google.shopping.css.v1.UpdateAccountLabelRequest\x1a$.google.shopping.css.v1.AccountLabel\"S\xda\x41\raccount_label\x82\xd3\xe4\x93\x02=2,/v1/{account_label.name=accounts/*/labels/*}:\raccount_label\x12\x8e\x01\n\x12\x44\x65leteAccountLabel\x12\x31.google.shopping.css.v1.DeleteAccountLabelRequest\x1a\x16.google.protobuf.Empty\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=accounts/*/labels/*}\x1a?\xca\x41\x12\x63ss.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xb5\x01\n\x1a\x63om.google.shopping.css.v1B\x13\x41\x63\x63ountsLabelsProtoP\x01Z2cloud.google.com/go/shopping/css/apiv1/csspb;csspb\xaa\x02\x16Google.Shopping.Css.V1\xca\x02\x16Google\\Shopping\\Css\\V1\xea\x02\x19Google::Shopping::Css::V1b\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ]
30
+ imports.each do |type_name, expected_filename|
31
+ import_file = pool.lookup(type_name).file_descriptor
32
+ if import_file.name != expected_filename
33
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
34
+ end
35
+ end
36
+ warn "Each proto file must use a consistent fully-qualified name."
37
+ warn "This will become an error in the next major version."
38
+ end
39
+
40
+ module Google
41
+ module Shopping
42
+ module Css
43
+ module V1
44
+ AccountLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.AccountLabel").msgclass
45
+ AccountLabel::LabelType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.AccountLabel.LabelType").enummodule
46
+ ListAccountLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.ListAccountLabelsRequest").msgclass
47
+ ListAccountLabelsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.ListAccountLabelsResponse").msgclass
48
+ CreateAccountLabelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.CreateAccountLabelRequest").msgclass
49
+ UpdateAccountLabelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.UpdateAccountLabelRequest").msgclass
50
+ DeleteAccountLabelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.DeleteAccountLabelRequest").msgclass
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,51 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/shopping/css/v1/accounts_labels.proto for package 'Google.Shopping.Css.V1'
3
+ # Original file comments:
4
+ # Copyright 2024 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/shopping/css/v1/accounts_labels_pb'
21
+
22
+ module Google
23
+ module Shopping
24
+ module Css
25
+ module V1
26
+ module AccountLabelsService
27
+ # Manages Merchant Center and CSS accounts labels.
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.shopping.css.v1.AccountLabelsService'
35
+
36
+ # Lists the labels assigned to an account.
37
+ rpc :ListAccountLabels, ::Google::Shopping::Css::V1::ListAccountLabelsRequest, ::Google::Shopping::Css::V1::ListAccountLabelsResponse
38
+ # Creates a new label, not assigned to any account.
39
+ rpc :CreateAccountLabel, ::Google::Shopping::Css::V1::CreateAccountLabelRequest, ::Google::Shopping::Css::V1::AccountLabel
40
+ # Updates a label.
41
+ rpc :UpdateAccountLabel, ::Google::Shopping::Css::V1::UpdateAccountLabelRequest, ::Google::Shopping::Css::V1::AccountLabel
42
+ # Deletes a label and removes it from all accounts to which it was assigned.
43
+ rpc :DeleteAccountLabel, ::Google::Shopping::Css::V1::DeleteAccountLabelRequest, ::Google::Protobuf::Empty
44
+ end
45
+
46
+ Stub = Service.rpc_stub_class
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/shopping/css/v1/accounts.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+
12
+
13
+ descriptor_data = "\n%google/shopping/css/v1/accounts.proto\x12\x16google.shopping.css.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xc9\x01\n\x18ListChildAccountsRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63ss.googleapis.com/Account\x12\x15\n\x08label_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x16\n\tfull_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\x42\x0b\n\t_label_idB\x0c\n\n_full_name\"g\n\x19ListChildAccountsResponse\x12\x31\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x1f.google.shopping.css.v1.Account\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x89\x01\n\x11GetAccountRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63ss.googleapis.com/Account\x12\x37\n\x06parent\x18\x02 \x01(\tB\"\xe0\x41\x01\xfa\x41\x1c\n\x1a\x63ss.googleapis.com/AccountH\x00\x88\x01\x01\x42\t\n\x07_parent\"\xa5\x01\n\x1aUpdateAccountLabelsRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63ss.googleapis.com/Account\x12\x11\n\tlabel_ids\x18\x02 \x03(\x03\x12\x37\n\x06parent\x18\x03 \x01(\tB\"\xe0\x41\x01\xfa\x41\x1c\n\x1a\x63ss.googleapis.com/AccountH\x00\x88\x01\x01\x42\t\n\x07_parent\"\xbb\x04\n\x07\x41\x63\x63ount\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\tfull_name\x18\x02 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tH\x00\x88\x01\x01\x12!\n\x0chomepage_uri\x18\x04 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05H\x01\x88\x01\x01\x12\x13\n\x06parent\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x11\n\tlabel_ids\x18\x06 \x03(\x03\x12\x1b\n\x13\x61utomatic_label_ids\x18\x07 \x03(\x03\x12\x46\n\x0c\x61\x63\x63ount_type\x18\x08 \x01(\x0e\x32+.google.shopping.css.v1.Account.AccountTypeB\x03\xe0\x41\x03\"\xc6\x01\n\x0b\x41\x63\x63ountType\x12\x1c\n\x18\x41\x43\x43OUNT_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tCSS_GROUP\x10\x01\x12\x0e\n\nCSS_DOMAIN\x10\x02\x12\x16\n\x12MC_PRIMARY_CSS_MCA\x10\x03\x12\x0e\n\nMC_CSS_MCA\x10\x04\x12\x16\n\x12MC_MARKETPLACE_MCA\x10\x05\x12\x10\n\x0cMC_OTHER_MCA\x10\x06\x12\x11\n\rMC_STANDALONE\x10\x07\x12\x15\n\x11MC_MCA_SUBACCOUNT\x10\x08:F\xea\x41\x43\n\x1a\x63ss.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}*\x08\x61\x63\x63ounts2\x07\x61\x63\x63ountB\x0f\n\r_display_nameB\x0f\n\r_homepage_uriB\t\n\x07_parent2\xa5\x04\n\x0f\x41\x63\x63ountsService\x12\xb4\x01\n\x11ListChildAccounts\x12\x30.google.shopping.css.v1.ListChildAccountsRequest\x1a\x31.google.shopping.css.v1.ListChildAccountsResponse\":\xda\x41\x06parent\x82\xd3\xe4\x93\x02+\x12)/v1/{parent=accounts/*}:listChildAccounts\x12~\n\nGetAccount\x12).google.shopping.css.v1.GetAccountRequest\x1a\x1f.google.shopping.css.v1.Account\"$\xda\x41\x04name\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/{name=accounts/*}\x12\x99\x01\n\x0cUpdateLabels\x12\x32.google.shopping.css.v1.UpdateAccountLabelsRequest\x1a\x1f.google.shopping.css.v1.Account\"4\xda\x41\x04name\x82\xd3\xe4\x93\x02\'\"\"/v1/{name=accounts/*}:updateLabels:\x01*\x1a?\xca\x41\x12\x63ss.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xaf\x01\n\x1a\x63om.google.shopping.css.v1B\rAccountsProtoP\x01Z2cloud.google.com/go/shopping/css/apiv1/csspb;csspb\xaa\x02\x16Google.Shopping.Css.V1\xca\x02\x16Google\\Shopping\\Css\\V1\xea\x02\x19Google::Shopping::Css::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
+ end
34
+ end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
37
+ end
38
+
39
+ module Google
40
+ module Shopping
41
+ module Css
42
+ module V1
43
+ ListChildAccountsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.ListChildAccountsRequest").msgclass
44
+ ListChildAccountsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.ListChildAccountsResponse").msgclass
45
+ GetAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.GetAccountRequest").msgclass
46
+ UpdateAccountLabelsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.UpdateAccountLabelsRequest").msgclass
47
+ Account = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.Account").msgclass
48
+ Account::AccountType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.Account.AccountType").enummodule
49
+ end
50
+ end
51
+ end
52
+ end