google-shopping-merchant-products-v1beta 0.a → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +143 -8
  5. data/lib/google/shopping/merchant/products/v1beta/product_inputs_service/client.rb +547 -0
  6. data/lib/google/shopping/merchant/products/v1beta/product_inputs_service/credentials.rb +49 -0
  7. data/lib/google/shopping/merchant/products/v1beta/product_inputs_service/paths.rb +66 -0
  8. data/lib/google/shopping/merchant/products/v1beta/product_inputs_service/rest/client.rb +507 -0
  9. data/lib/google/shopping/merchant/products/v1beta/product_inputs_service/rest/service_stub.rb +190 -0
  10. data/lib/google/shopping/merchant/products/v1beta/product_inputs_service/rest.rb +55 -0
  11. data/lib/google/shopping/merchant/products/v1beta/product_inputs_service.rb +58 -0
  12. data/lib/google/shopping/merchant/products/v1beta/productinputs_pb.rb +56 -0
  13. data/lib/google/shopping/merchant/products/v1beta/productinputs_services_pb.rb +58 -0
  14. data/lib/google/shopping/merchant/products/v1beta/products_common_pb.rb +75 -0
  15. data/lib/google/shopping/merchant/products/v1beta/products_pb.rb +56 -0
  16. data/lib/google/shopping/merchant/products/v1beta/products_service/client.rb +552 -0
  17. data/lib/google/shopping/merchant/products/v1beta/products_service/credentials.rb +49 -0
  18. data/lib/google/shopping/merchant/products/v1beta/products_service/paths.rb +66 -0
  19. data/lib/google/shopping/merchant/products/v1beta/products_service/rest/client.rb +512 -0
  20. data/lib/google/shopping/merchant/products/v1beta/products_service/rest/service_stub.rb +189 -0
  21. data/lib/google/shopping/merchant/products/v1beta/products_service/rest.rb +55 -0
  22. data/lib/google/shopping/merchant/products/v1beta/products_service.rb +58 -0
  23. data/lib/google/shopping/merchant/products/v1beta/products_services_pb.rb +58 -0
  24. data/lib/google/shopping/merchant/products/v1beta/rest.rb +40 -0
  25. data/lib/google/shopping/merchant/products/v1beta/version.rb +7 -2
  26. data/lib/google/shopping/merchant/products/v1beta.rb +48 -0
  27. data/lib/google-shopping-merchant-products-v1beta.rb +21 -0
  28. data/proto_docs/README.md +4 -0
  29. data/proto_docs/google/api/client.rb +420 -0
  30. data/proto_docs/google/api/field_behavior.rb +85 -0
  31. data/proto_docs/google/api/launch_stage.rb +71 -0
  32. data/proto_docs/google/api/resource.rb +227 -0
  33. data/proto_docs/google/protobuf/duration.rb +98 -0
  34. data/proto_docs/google/protobuf/empty.rb +34 -0
  35. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  36. data/proto_docs/google/shopping/merchant/products/v1beta/productinputs.rb +152 -0
  37. data/proto_docs/google/shopping/merchant/products/v1beta/products.rb +152 -0
  38. data/proto_docs/google/shopping/merchant/products/v1beta/products_common.rb +899 -0
  39. data/proto_docs/google/shopping/type/types.rb +210 -0
  40. data/proto_docs/google/type/interval.rb +45 -0
  41. metadata +100 -10
@@ -0,0 +1,152 @@
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 Merchant
23
+ module Products
24
+ module V1beta
25
+ # The processed product, built from multiple [product
26
+ # inputs][[google.shopping.content.bundles.Products.ProductInput] after
27
+ # applying rules and supplemental data sources. This processed product matches
28
+ # what is shown in your Merchant Center account and in Shopping ads and other
29
+ # surfaces across Google. Each product is built from exactly one primary
30
+ # data source product input, and multiple supplemental data source inputs.
31
+ # After inserting, updating, or deleting a product input, it may take
32
+ # several minutes before the updated processed product can be retrieved.
33
+ #
34
+ # All fields in the processed product and its sub-messages match the name of
35
+ # their corresponding attribute in the [Product data
36
+ # specification](https://support.google.com/merchants/answer/7052112) with some
37
+ # exceptions.
38
+ # @!attribute [rw] name
39
+ # @return [::String]
40
+ # The name of the product.
41
+ # Format:
42
+ # `"{product.name=accounts/{account}/products/{product}}"`
43
+ # @!attribute [r] channel
44
+ # @return [::Google::Shopping::Type::Channel::ChannelEnum]
45
+ # Output only. The
46
+ # [channel](https://support.google.com/merchants/answer/7361332) of the
47
+ # product.
48
+ # @!attribute [r] offer_id
49
+ # @return [::String]
50
+ # Output only. Your unique identifier for the product. This is the same for
51
+ # the product input and processed product. Leading and trailing whitespaces
52
+ # are stripped and multiple whitespaces are replaced by a single whitespace
53
+ # upon submission. See the [product data
54
+ # specification](https://support.google.com/merchants/answer/188494#id) for
55
+ # details.
56
+ # @!attribute [r] content_language
57
+ # @return [::String]
58
+ # Output only. The two-letter [ISO
59
+ # 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
60
+ # product.
61
+ # @!attribute [r] feed_label
62
+ # @return [::String]
63
+ # Output only. The feed label for the product.
64
+ # @!attribute [r] data_source
65
+ # @return [::String]
66
+ # Output only. The primary data source of the product.
67
+ # @!attribute [r] version_number
68
+ # @return [::Integer]
69
+ # Output only. Represents the existing version (freshness) of the product,
70
+ # which can be used to preserve the right order when multiple updates are
71
+ # done at the same time.
72
+ #
73
+ # If set, the insertion is prevented when version number is lower than
74
+ # the current version number of the existing product. Re-insertion (for
75
+ # example, product refresh after 30 days) can be performed with the current
76
+ # `version_number`.
77
+ #
78
+ # Only supported for insertions into primary data sources.
79
+ #
80
+ # If the operation is prevented, the aborted exception will be
81
+ # thrown.
82
+ # @!attribute [r] attributes
83
+ # @return [::Google::Shopping::Merchant::Products::V1beta::Attributes]
84
+ # Output only. A list of product attributes.
85
+ # @!attribute [r] custom_attributes
86
+ # @return [::Array<::Google::Shopping::Type::CustomAttribute>]
87
+ # Output only. A list of custom (merchant-provided) attributes. It can also
88
+ # be used to submit any attribute of the data specification in its generic
89
+ # form (for example,
90
+ # `{ "name": "size type", "value": "regular" }`).
91
+ # This is useful for submitting attributes not explicitly exposed by the
92
+ # API, such as additional attributes used for Buy on Google.
93
+ # @!attribute [r] product_status
94
+ # @return [::Google::Shopping::Merchant::Products::V1beta::ProductStatus]
95
+ # Output only. The status of a product, data validation issues, that is,
96
+ # information about a product computed asynchronously.
97
+ class Product
98
+ include ::Google::Protobuf::MessageExts
99
+ extend ::Google::Protobuf::MessageExts::ClassMethods
100
+ end
101
+
102
+ # Request message for the GetProduct method.
103
+ # @!attribute [rw] name
104
+ # @return [::String]
105
+ # Required. The name of the product to retrieve.
106
+ # Format: `accounts/{account}/products/{product}`
107
+ class GetProductRequest
108
+ include ::Google::Protobuf::MessageExts
109
+ extend ::Google::Protobuf::MessageExts::ClassMethods
110
+ end
111
+
112
+ # Request message for the ListProducts method.
113
+ # @!attribute [rw] parent
114
+ # @return [::String]
115
+ # Required. The account to list processed products for.
116
+ # Format: accounts/\\{account}
117
+ # @!attribute [rw] page_size
118
+ # @return [::Integer]
119
+ # The maximum number of products to return. The service may return fewer than
120
+ # this value.
121
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
122
+ # If unspecified, the maximum number of products will be returned.
123
+ # @!attribute [rw] page_token
124
+ # @return [::String]
125
+ # A page token, received from a previous `ListProducts` call.
126
+ # Provide this to retrieve the subsequent page.
127
+ #
128
+ # When paginating, all other parameters provided to `ListProducts` must
129
+ # match the call that provided the page token.
130
+ class ListProductsRequest
131
+ include ::Google::Protobuf::MessageExts
132
+ extend ::Google::Protobuf::MessageExts::ClassMethods
133
+ end
134
+
135
+ # Response message for the ListProducts method.
136
+ # @!attribute [rw] products
137
+ # @return [::Array<::Google::Shopping::Merchant::Products::V1beta::Product>]
138
+ # The processed products from the specified account. These are your processed
139
+ # products after applying rules and supplemental data sources.
140
+ # @!attribute [rw] next_page_token
141
+ # @return [::String]
142
+ # A token, which can be sent as `page_token` to retrieve the next page.
143
+ # If this field is omitted, there are no subsequent pages.
144
+ class ListProductsResponse
145
+ include ::Google::Protobuf::MessageExts
146
+ extend ::Google::Protobuf::MessageExts::ClassMethods
147
+ end
148
+ end
149
+ end
150
+ end
151
+ end
152
+ end