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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,131 @@
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
+
20
+ module Google
21
+ module Shopping
22
+ module Css
23
+ module V1
24
+ # Label assigned by CSS domain or CSS group to one of its sub-accounts.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # The resource name of the label.
28
+ # Format: accounts/\\{account}/labels/\\{label}
29
+ # @!attribute [r] label_id
30
+ # @return [::Integer]
31
+ # Output only. The ID of the label.
32
+ # @!attribute [r] account_id
33
+ # @return [::Integer]
34
+ # Output only. The ID of account this label belongs to.
35
+ # @!attribute [rw] display_name
36
+ # @return [::String]
37
+ # The display name of this label.
38
+ # @!attribute [rw] description
39
+ # @return [::String]
40
+ # The description of this label.
41
+ # @!attribute [r] label_type
42
+ # @return [::Google::Shopping::Css::V1::AccountLabel::LabelType]
43
+ # Output only. The type of this label.
44
+ class AccountLabel
45
+ include ::Google::Protobuf::MessageExts
46
+ extend ::Google::Protobuf::MessageExts::ClassMethods
47
+
48
+ # The label type.
49
+ module LabelType
50
+ # Unknown label type.
51
+ LABEL_TYPE_UNSPECIFIED = 0
52
+
53
+ # Indicates that the label was created manually.
54
+ MANUAL = 1
55
+
56
+ # Indicates that the label was created automatically by CSS Center.
57
+ AUTOMATIC = 2
58
+ end
59
+ end
60
+
61
+ # Request message for the `ListAccountLabels` method.
62
+ # @!attribute [rw] parent
63
+ # @return [::String]
64
+ # Required. The parent account.
65
+ # Format: accounts/\\{account}
66
+ # @!attribute [rw] page_size
67
+ # @return [::Integer]
68
+ # The maximum number of labels to return. The service may return fewer than
69
+ # this value.
70
+ # If unspecified, at most 50 labels will be returned.
71
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
72
+ # @!attribute [rw] page_token
73
+ # @return [::String]
74
+ # A page token, received from a previous `ListAccountLabels` call.
75
+ # Provide this to retrieve the subsequent page.
76
+ #
77
+ # When paginating, all other parameters provided to `ListAccountLabels` must
78
+ # match the call that provided the page token.
79
+ class ListAccountLabelsRequest
80
+ include ::Google::Protobuf::MessageExts
81
+ extend ::Google::Protobuf::MessageExts::ClassMethods
82
+ end
83
+
84
+ # Response message for the `ListAccountLabels` method.
85
+ # @!attribute [rw] account_labels
86
+ # @return [::Array<::Google::Shopping::Css::V1::AccountLabel>]
87
+ # The labels from the specified account.
88
+ # @!attribute [rw] next_page_token
89
+ # @return [::String]
90
+ # A token, which can be sent as `page_token` to retrieve the next page.
91
+ # If this field is omitted, there are no subsequent pages.
92
+ class ListAccountLabelsResponse
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
+ end
96
+
97
+ # Request message for the 'CreateAccountLanel' method.
98
+ # @!attribute [rw] parent
99
+ # @return [::String]
100
+ # Required. The parent account.
101
+ # Format: accounts/\\{account}
102
+ # @!attribute [rw] account_label
103
+ # @return [::Google::Shopping::Css::V1::AccountLabel]
104
+ # Required. The label to create.
105
+ class CreateAccountLabelRequest
106
+ include ::Google::Protobuf::MessageExts
107
+ extend ::Google::Protobuf::MessageExts::ClassMethods
108
+ end
109
+
110
+ # Request message for the `UpdateAccountLabel` method.
111
+ # @!attribute [rw] account_label
112
+ # @return [::Google::Shopping::Css::V1::AccountLabel]
113
+ # Required. The updated label. All fields must be provided.
114
+ class UpdateAccountLabelRequest
115
+ include ::Google::Protobuf::MessageExts
116
+ extend ::Google::Protobuf::MessageExts::ClassMethods
117
+ end
118
+
119
+ # Request message for the 'DeleteAccountLabel' method.
120
+ # @!attribute [rw] name
121
+ # @return [::String]
122
+ # Required. The name of the label to delete.
123
+ # Format: accounts/\\{account}/labels/\\{label}
124
+ class DeleteAccountLabelRequest
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+ end
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,352 @@
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
+
20
+ module Google
21
+ module Shopping
22
+ module Css
23
+ module V1
24
+ # Attributes for CSS Product.
25
+ # @!attribute [rw] cpp_link
26
+ # @return [::String]
27
+ # URL directly linking to your the Product Detail Page of the CSS.
28
+ # @!attribute [rw] cpp_mobile_link
29
+ # @return [::String]
30
+ # URL for the mobile-optimized version of the Product Detail Page of the CSS.
31
+ # @!attribute [rw] cpp_ads_redirect
32
+ # @return [::String]
33
+ # Allows advertisers to override the item URL when the product is shown
34
+ # within the context of Product Ads.
35
+ # @!attribute [rw] low_price
36
+ # @return [::Google::Shopping::Type::Price]
37
+ # Low Price of the aggregate offer.
38
+ # @!attribute [rw] high_price
39
+ # @return [::Google::Shopping::Type::Price]
40
+ # High Price of the aggregate offer.
41
+ # @!attribute [rw] number_of_offers
42
+ # @return [::Integer]
43
+ # The number of aggregate offers.
44
+ # @!attribute [rw] headline_offer_condition
45
+ # @return [::String]
46
+ # Condition of the headline offer.
47
+ # @!attribute [rw] headline_offer_price
48
+ # @return [::Google::Shopping::Type::Price]
49
+ # Headline Price of the aggregate offer.
50
+ # @!attribute [rw] headline_offer_link
51
+ # @return [::String]
52
+ # Link to the headline offer.
53
+ # @!attribute [rw] headline_offer_mobile_link
54
+ # @return [::String]
55
+ # Mobile Link to the headline offer.
56
+ # @!attribute [rw] headline_offer_shipping_price
57
+ # @return [::Google::Shopping::Type::Price]
58
+ # Headline Price of the aggregate offer.
59
+ # @!attribute [rw] title
60
+ # @return [::String]
61
+ # Title of the item.
62
+ # @!attribute [rw] image_link
63
+ # @return [::String]
64
+ # URL of an image of the item.
65
+ # @!attribute [rw] additional_image_links
66
+ # @return [::Array<::String>]
67
+ # Additional URL of images of the item.
68
+ # @!attribute [rw] description
69
+ # @return [::String]
70
+ # Description of the item.
71
+ # @!attribute [rw] brand
72
+ # @return [::String]
73
+ # Product Related Attributes.[14-36]
74
+ # Brand of the item.
75
+ # @!attribute [rw] mpn
76
+ # @return [::String]
77
+ # Manufacturer Part Number
78
+ # ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
79
+ # item.
80
+ # @!attribute [rw] gtin
81
+ # @return [::String]
82
+ # Global Trade Item Number
83
+ # ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
84
+ # item.
85
+ # @!attribute [rw] product_types
86
+ # @return [::Array<::String>]
87
+ # Categories of the item (formatted as in [products data
88
+ # specification](https://support.google.com/merchants/answer/6324406)).
89
+ # @!attribute [rw] google_product_category
90
+ # @return [::String]
91
+ # Google's category of the item (see [Google product
92
+ # taxonomy](https://support.google.com/merchants/answer/1705911)). When
93
+ # querying products, this field will contain the user provided value. There
94
+ # is currently no way to get back the auto assigned google product
95
+ # categories through the API.
96
+ # @!attribute [rw] adult
97
+ # @return [::Boolean]
98
+ # Set to true if the item is targeted towards adults.
99
+ # @!attribute [rw] multipack
100
+ # @return [::Integer]
101
+ # The number of identical products in a merchant-defined multipack.
102
+ # @!attribute [rw] is_bundle
103
+ # @return [::Boolean]
104
+ # Whether the item is a merchant-defined bundle. A bundle is a custom
105
+ # grouping of different products sold by a merchant for a single price.
106
+ # @!attribute [rw] age_group
107
+ # @return [::String]
108
+ # Target age group of the item.
109
+ # @!attribute [rw] color
110
+ # @return [::String]
111
+ # Color of the item.
112
+ # @!attribute [rw] gender
113
+ # @return [::String]
114
+ # Target gender of the item.
115
+ # @!attribute [rw] material
116
+ # @return [::String]
117
+ # The material of which the item is made.
118
+ # @!attribute [rw] pattern
119
+ # @return [::String]
120
+ # The item's pattern (e.g. polka dots).
121
+ # @!attribute [rw] size
122
+ # @return [::String]
123
+ # Size of the item. Only one value is allowed. For variants with different
124
+ # sizes, insert a separate product for each size with the same
125
+ # `itemGroupId` value (see
126
+ # [https://support.google.com/merchants/answer/6324492](size definition)).
127
+ # @!attribute [rw] size_system
128
+ # @return [::String]
129
+ # System in which the size is specified. Recommended for apparel items.
130
+ # @!attribute [rw] size_types
131
+ # @return [::Array<::String>]
132
+ # The cut of the item. It can be used to represent combined size types for
133
+ # apparel items. Maximum two of size types can be provided (see
134
+ # [https://support.google.com/merchants/answer/6324497](size type)).
135
+ # @!attribute [rw] item_group_id
136
+ # @return [::String]
137
+ # Shared identifier for all variants of the same product.
138
+ # @!attribute [rw] product_details
139
+ # @return [::Array<::Google::Shopping::Css::V1::ProductDetail>]
140
+ # Technical specification or additional product details.
141
+ # @!attribute [rw] product_weight
142
+ # @return [::Google::Shopping::Css::V1::ProductWeight]
143
+ # The weight of the product in the units provided. The value must be
144
+ # between 0 (exclusive) and 2000 (inclusive).
145
+ # @!attribute [rw] product_length
146
+ # @return [::Google::Shopping::Css::V1::ProductDimension]
147
+ # The length of the product in the units provided. The value must be
148
+ # between 0 (exclusive) and 3000 (inclusive).
149
+ # @!attribute [rw] product_width
150
+ # @return [::Google::Shopping::Css::V1::ProductDimension]
151
+ # The width of the product in the units provided. The value must be between
152
+ # 0 (exclusive) and 3000 (inclusive).
153
+ # @!attribute [rw] product_height
154
+ # @return [::Google::Shopping::Css::V1::ProductDimension]
155
+ # The height of the product in the units provided. The value must be
156
+ # between
157
+ # 0 (exclusive) and 3000 (inclusive).
158
+ # @!attribute [rw] product_highlights
159
+ # @return [::Array<::String>]
160
+ # Bullet points describing the most relevant highlights of a product.
161
+ # @!attribute [rw] certifications
162
+ # @return [::Array<::Google::Shopping::Css::V1::Certification>]
163
+ # A list of certificates claimed by the CSS for the given product.
164
+ # @!attribute [rw] expiration_date
165
+ # @return [::Google::Protobuf::Timestamp]
166
+ # Date on which the item should expire, as specified upon insertion, in
167
+ # [ISO
168
+ # 8601](http://en.wikipedia.org/wiki/ISO_8601) format. The actual
169
+ # expiration date in Google Shopping is exposed in `productstatuses` as
170
+ # [googleExpirationDate](https://support.google.com/merchants/answer/6324499)
171
+ # and might be earlier if `expirationDate` is too far in the future.
172
+ # Note: It may take 2+ days from the expiration date for the item to
173
+ # actually get deleted.
174
+ # @!attribute [rw] included_destinations
175
+ # @return [::Array<::String>]
176
+ # The list of destinations to include for this target (corresponds to
177
+ # checked check boxes in Merchant Center). Default destinations are always
178
+ # included unless provided in `excludedDestinations`.
179
+ # @!attribute [rw] excluded_destinations
180
+ # @return [::Array<::String>]
181
+ # The list of destinations to exclude for this target (corresponds to
182
+ # unchecked check boxes in Merchant Center).
183
+ # @!attribute [rw] pause
184
+ # @return [::String]
185
+ # Publication of this item will be temporarily paused.
186
+ # @!attribute [rw] custom_label_0
187
+ # @return [::String]
188
+ # Custom label 0 for custom grouping of items in a Shopping campaign.
189
+ # @!attribute [rw] custom_label_1
190
+ # @return [::String]
191
+ # Custom label 1 for custom grouping of items in a Shopping campaign.
192
+ # @!attribute [rw] custom_label_2
193
+ # @return [::String]
194
+ # Custom label 2 for custom grouping of items in a Shopping campaign.
195
+ # @!attribute [rw] custom_label_3
196
+ # @return [::String]
197
+ # Custom label 3 for custom grouping of items in a Shopping campaign.
198
+ # @!attribute [rw] custom_label_4
199
+ # @return [::String]
200
+ # Custom label 4 for custom grouping of items in a Shopping campaign.
201
+ class Attributes
202
+ include ::Google::Protobuf::MessageExts
203
+ extend ::Google::Protobuf::MessageExts::ClassMethods
204
+ end
205
+
206
+ # The certification for the product.
207
+ # @!attribute [rw] name
208
+ # @return [::String]
209
+ # Name of the certification.
210
+ # @!attribute [rw] authority
211
+ # @return [::String]
212
+ # Name of the certification body.
213
+ # @!attribute [rw] code
214
+ # @return [::String]
215
+ # A unique code to identify the certification.
216
+ class Certification
217
+ include ::Google::Protobuf::MessageExts
218
+ extend ::Google::Protobuf::MessageExts::ClassMethods
219
+ end
220
+
221
+ # The product details.
222
+ # @!attribute [rw] section_name
223
+ # @return [::String]
224
+ # The section header used to group a set of product details.
225
+ # @!attribute [rw] attribute_name
226
+ # @return [::String]
227
+ # The name of the product detail.
228
+ # @!attribute [rw] attribute_value
229
+ # @return [::String]
230
+ # The value of the product detail.
231
+ class ProductDetail
232
+ include ::Google::Protobuf::MessageExts
233
+ extend ::Google::Protobuf::MessageExts::ClassMethods
234
+ end
235
+
236
+ # The dimension of the product.
237
+ # @!attribute [rw] value
238
+ # @return [::Float]
239
+ # Required. The dimension value represented as a number. The value can have a
240
+ # maximum precision of four decimal places.
241
+ # @!attribute [rw] unit
242
+ # @return [::String]
243
+ # Required. The dimension units.
244
+ # Acceptable values are:
245
+ # * "`in`"
246
+ # * "`cm`"
247
+ class ProductDimension
248
+ include ::Google::Protobuf::MessageExts
249
+ extend ::Google::Protobuf::MessageExts::ClassMethods
250
+ end
251
+
252
+ # The weight of the product.
253
+ # @!attribute [rw] value
254
+ # @return [::Float]
255
+ # Required. The weight represented as a number. The weight can have a maximum
256
+ # precision of four decimal places.
257
+ # @!attribute [rw] unit
258
+ # @return [::String]
259
+ # Required. The weight unit.
260
+ # Acceptable values are:
261
+ # * "`g`"
262
+ # * "`kg`"
263
+ # * "`oz`"
264
+ # * "`lb`"
265
+ class ProductWeight
266
+ include ::Google::Protobuf::MessageExts
267
+ extend ::Google::Protobuf::MessageExts::ClassMethods
268
+ end
269
+
270
+ # The status of the Css Product, data validation issues, that is,
271
+ # information about the Css Product computed asynchronously.
272
+ # @!attribute [rw] destination_statuses
273
+ # @return [::Array<::Google::Shopping::Css::V1::CssProductStatus::DestinationStatus>]
274
+ # The intended destinations for the product.
275
+ # @!attribute [rw] item_level_issues
276
+ # @return [::Array<::Google::Shopping::Css::V1::CssProductStatus::ItemLevelIssue>]
277
+ # A list of all issues associated with the product.
278
+ # @!attribute [rw] creation_date
279
+ # @return [::Google::Protobuf::Timestamp]
280
+ # Date on which the item has been created, in [ISO
281
+ # 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
282
+ # @!attribute [rw] last_update_date
283
+ # @return [::Google::Protobuf::Timestamp]
284
+ # Date on which the item has been last updated, in [ISO
285
+ # 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
286
+ # @!attribute [rw] google_expiration_date
287
+ # @return [::Google::Protobuf::Timestamp]
288
+ # Date on which the item expires in Google Shopping, in [ISO
289
+ # 8601](http://en.wikipedia.org/wiki/ISO_8601) format.
290
+ class CssProductStatus
291
+ include ::Google::Protobuf::MessageExts
292
+ extend ::Google::Protobuf::MessageExts::ClassMethods
293
+
294
+ # The destination status of the product status.
295
+ # @!attribute [rw] destination
296
+ # @return [::String]
297
+ # The name of the destination
298
+ # @!attribute [rw] approved_countries
299
+ # @return [::Array<::String>]
300
+ # List of country codes (ISO 3166-1 alpha-2) where the aggregate offer is
301
+ # approved.
302
+ # @!attribute [rw] pending_countries
303
+ # @return [::Array<::String>]
304
+ # List of country codes (ISO 3166-1 alpha-2) where the aggregate offer is
305
+ # pending approval.
306
+ # @!attribute [rw] disapproved_countries
307
+ # @return [::Array<::String>]
308
+ # List of country codes (ISO 3166-1 alpha-2) where the aggregate offer is
309
+ # disapproved.
310
+ class DestinationStatus
311
+ include ::Google::Protobuf::MessageExts
312
+ extend ::Google::Protobuf::MessageExts::ClassMethods
313
+ end
314
+
315
+ # The ItemLevelIssue of the product status.
316
+ # @!attribute [rw] code
317
+ # @return [::String]
318
+ # The error code of the issue.
319
+ # @!attribute [rw] servability
320
+ # @return [::String]
321
+ # How this issue affects serving of the aggregate offer.
322
+ # @!attribute [rw] resolution
323
+ # @return [::String]
324
+ # Whether the issue can be resolved by the merchant.
325
+ # @!attribute [rw] attribute
326
+ # @return [::String]
327
+ # The attribute's name, if the issue is caused by a single attribute.
328
+ # @!attribute [rw] destination
329
+ # @return [::String]
330
+ # The destination the issue applies to.
331
+ # @!attribute [rw] description
332
+ # @return [::String]
333
+ # A short issue description in English.
334
+ # @!attribute [rw] detail
335
+ # @return [::String]
336
+ # A detailed issue description in English.
337
+ # @!attribute [rw] documentation
338
+ # @return [::String]
339
+ # The URL of a web page to help with resolving this issue.
340
+ # @!attribute [rw] applicable_countries
341
+ # @return [::Array<::String>]
342
+ # List of country codes (ISO 3166-1 alpha-2) where issue applies to the
343
+ # aggregate offer.
344
+ class ItemLevelIssue
345
+ include ::Google::Protobuf::MessageExts
346
+ extend ::Google::Protobuf::MessageExts::ClassMethods
347
+ end
348
+ end
349
+ end
350
+ end
351
+ end
352
+ end
@@ -0,0 +1,130 @@
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
+
20
+ module Google
21
+ module Shopping
22
+ module Css
23
+ module V1
24
+ # This resource represents input data you submit for a CSS Product, not
25
+ # the processed CSS Product that you see in CSS Center, in Shopping Ads, or
26
+ # across Google surfaces.
27
+ # @!attribute [rw] name
28
+ # @return [::String]
29
+ # The name of the CSS Product input.
30
+ # Format:
31
+ # `accounts/{account}/cssProductInputs/{css_product_input}`
32
+ # @!attribute [r] final_name
33
+ # @return [::String]
34
+ # Output only. The name of the processed CSS Product.
35
+ # Format:
36
+ # `accounts/{account}/cssProducts/{css_product}`
37
+ # "
38
+ # @!attribute [rw] raw_provided_id
39
+ # @return [::String]
40
+ # Required. Your unique identifier for the CSS Product. This is the same for
41
+ # the CSS Product input and processed CSS Product. We only allow ids with
42
+ # alphanumerics, underscores and dashes. See the [products feed
43
+ # specification](https://support.google.com/merchants/answer/188494#id) for
44
+ # details.
45
+ # @!attribute [rw] content_language
46
+ # @return [::String]
47
+ # Required. The two-letter [ISO
48
+ # 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the CSS
49
+ # Product.
50
+ # @!attribute [rw] feed_label
51
+ # @return [::String]
52
+ # Required. The [feed
53
+ # label](https://developers.google.com/shopping-content/guides/products/feed-labels)
54
+ # for the CSS Product.
55
+ # Feed Label is synonymous to "target country" and hence should always be a
56
+ # valid region code. For example: 'DE' for Germany, 'FR' for France.
57
+ # @!attribute [rw] freshness_time
58
+ # @return [::Google::Protobuf::Timestamp]
59
+ # Represents the existing version (freshness) of the CSS Product, which
60
+ # can be used to preserve the right order when multiple updates are done at
61
+ # the same time.
62
+ #
63
+ # This field must not be set to the future time.
64
+ #
65
+ # If set, the update is prevented if a newer version of the item already
66
+ # exists in our system (that is the last update time of the existing
67
+ # CSS products is later than the freshness time set in the update). If
68
+ # the update happens, the last update time is then set to this freshness
69
+ # time.
70
+ #
71
+ # If not set, the update will not be prevented and the last update time will
72
+ # default to when this request was received by the CSS API.
73
+ #
74
+ # If the operation is prevented, the aborted exception will be
75
+ # thrown.
76
+ # @!attribute [rw] attributes
77
+ # @return [::Google::Shopping::Css::V1::Attributes]
78
+ # A list of CSS Product attributes.
79
+ # @!attribute [rw] custom_attributes
80
+ # @return [::Array<::Google::Shopping::Type::CustomAttribute>]
81
+ # A list of custom (CSS-provided) attributes. It can also be used for
82
+ # submitting any attribute of the feed specification in its generic
83
+ # form (for example:
84
+ # `{ "name": "size type", "value": "regular" }`).
85
+ # This is useful for submitting attributes not explicitly exposed by the
86
+ # API, such as additional attributes used for Buy on Google.
87
+ class CssProductInput
88
+ include ::Google::Protobuf::MessageExts
89
+ extend ::Google::Protobuf::MessageExts::ClassMethods
90
+ end
91
+
92
+ # Request message for the InsertCssProductInput method.
93
+ # @!attribute [rw] parent
94
+ # @return [::String]
95
+ # Required. The account where this CSS Product will be inserted.
96
+ # Format: accounts/\\{account}
97
+ # @!attribute [rw] css_product_input
98
+ # @return [::Google::Shopping::Css::V1::CssProductInput]
99
+ # Required. The CSS Product Input to insert.
100
+ # @!attribute [rw] feed_id
101
+ # @return [::Integer]
102
+ # Required. The primary or supplemental feed id. If CSS Product already
103
+ # exists and feed id provided is different, then the CSS Product will be
104
+ # moved to a new feed. Note: For now, CSSs do not need to provide feed ids as
105
+ # we create feeds on the fly. We do not have supplemental feed support for
106
+ # CSS Products yet.
107
+ class InsertCssProductInputRequest
108
+ include ::Google::Protobuf::MessageExts
109
+ extend ::Google::Protobuf::MessageExts::ClassMethods
110
+ end
111
+
112
+ # Request message for the DeleteCssProductInput method.
113
+ # @!attribute [rw] name
114
+ # @return [::String]
115
+ # Required. The name of the CSS product input resource to delete.
116
+ # Format: accounts/\\{account}/cssProductInputs/\\{css_product_input}
117
+ # @!attribute [rw] supplemental_feed_id
118
+ # @return [::Integer]
119
+ # The Content API Supplemental Feed ID.
120
+ # The field must not be set if the action applies to a primary feed.
121
+ # If the field is set, then product action applies to a supplemental feed
122
+ # instead of primary Content API feed.
123
+ class DeleteCssProductInputRequest
124
+ include ::Google::Protobuf::MessageExts
125
+ extend ::Google::Protobuf::MessageExts::ClassMethods
126
+ end
127
+ end
128
+ end
129
+ end
130
+ end