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.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +144 -8
- data/lib/google/shopping/css/v1/account_labels_service/client.rb +736 -0
- data/lib/google/shopping/css/v1/account_labels_service/credentials.rb +47 -0
- data/lib/google/shopping/css/v1/account_labels_service/paths.rb +64 -0
- data/lib/google/shopping/css/v1/account_labels_service/rest/client.rb +682 -0
- data/lib/google/shopping/css/v1/account_labels_service/rest/service_stub.rb +307 -0
- data/lib/google/shopping/css/v1/account_labels_service/rest.rb +52 -0
- data/lib/google/shopping/css/v1/account_labels_service.rb +55 -0
- data/lib/google/shopping/css/v1/accounts_labels_pb.rb +54 -0
- data/lib/google/shopping/css/v1/accounts_labels_services_pb.rb +51 -0
- data/lib/google/shopping/css/v1/accounts_pb.rb +52 -0
- data/lib/google/shopping/css/v1/accounts_service/client.rb +659 -0
- data/lib/google/shopping/css/v1/accounts_service/credentials.rb +47 -0
- data/lib/google/shopping/css/v1/accounts_service/paths.rb +47 -0
- data/lib/google/shopping/css/v1/accounts_service/rest/client.rb +612 -0
- data/lib/google/shopping/css/v1/accounts_service/rest/service_stub.rb +247 -0
- data/lib/google/shopping/css/v1/accounts_service/rest.rb +52 -0
- data/lib/google/shopping/css/v1/accounts_service.rb +55 -0
- data/lib/google/shopping/css/v1/accounts_services_pb.rb +50 -0
- data/lib/google/shopping/css/v1/css_product_common_pb.rb +55 -0
- data/lib/google/shopping/css/v1/css_product_inputs_pb.rb +56 -0
- data/lib/google/shopping/css/v1/css_product_inputs_service/client.rb +546 -0
- data/lib/google/shopping/css/v1/css_product_inputs_service/credentials.rb +47 -0
- data/lib/google/shopping/css/v1/css_product_inputs_service/paths.rb +64 -0
- data/lib/google/shopping/css/v1/css_product_inputs_service/rest/client.rb +506 -0
- data/lib/google/shopping/css/v1/css_product_inputs_service/rest/service_stub.rb +188 -0
- data/lib/google/shopping/css/v1/css_product_inputs_service/rest.rb +53 -0
- data/lib/google/shopping/css/v1/css_product_inputs_service.rb +56 -0
- data/lib/google/shopping/css/v1/css_product_inputs_services_pb.rb +56 -0
- data/lib/google/shopping/css/v1/css_products_pb.rb +54 -0
- data/lib/google/shopping/css/v1/css_products_service/client.rb +554 -0
- data/lib/google/shopping/css/v1/css_products_service/credentials.rb +47 -0
- data/lib/google/shopping/css/v1/css_products_service/paths.rb +64 -0
- data/lib/google/shopping/css/v1/css_products_service/rest/client.rb +514 -0
- data/lib/google/shopping/css/v1/css_products_service/rest/service_stub.rb +187 -0
- data/lib/google/shopping/css/v1/css_products_service/rest.rb +53 -0
- data/lib/google/shopping/css/v1/css_products_service.rb +56 -0
- data/lib/google/shopping/css/v1/css_products_services_pb.rb +56 -0
- data/lib/google/shopping/css/v1/rest.rb +40 -0
- data/lib/google/shopping/css/v1/version.rb +8 -3
- data/lib/google/shopping/css/v1.rb +48 -0
- data/lib/google-shopping-css-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +399 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/shopping/css/v1/accounts.rb +168 -0
- data/proto_docs/google/shopping/css/v1/accounts_labels.rb +131 -0
- data/proto_docs/google/shopping/css/v1/css_product_common.rb +352 -0
- data/proto_docs/google/shopping/css/v1/css_product_inputs.rb +130 -0
- data/proto_docs/google/shopping/css/v1/css_products.rb +109 -0
- data/proto_docs/google/shopping/type/types.rb +210 -0
- metadata +123 -13
@@ -0,0 +1,247 @@
|
|
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_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Shopping
|
23
|
+
module Css
|
24
|
+
module V1
|
25
|
+
module AccountsService
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the AccountsService 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_child_accounts REST call
|
66
|
+
#
|
67
|
+
# @param request_pb [::Google::Shopping::Css::V1::ListChildAccountsRequest]
|
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::ListChildAccountsResponse]
|
74
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
75
|
+
#
|
76
|
+
# @return [::Google::Shopping::Css::V1::ListChildAccountsResponse]
|
77
|
+
# A result object deserialized from the server's reply
|
78
|
+
def list_child_accounts 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_child_accounts_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::ListChildAccountsResponse.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 get_account REST call
|
104
|
+
#
|
105
|
+
# @param request_pb [::Google::Shopping::Css::V1::GetAccountRequest]
|
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::Account]
|
112
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
113
|
+
#
|
114
|
+
# @return [::Google::Shopping::Css::V1::Account]
|
115
|
+
# A result object deserialized from the server's reply
|
116
|
+
def get_account 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_get_account_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::Account.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_labels REST call
|
142
|
+
#
|
143
|
+
# @param request_pb [::Google::Shopping::Css::V1::UpdateAccountLabelsRequest]
|
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::Account]
|
150
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
151
|
+
#
|
152
|
+
# @return [::Google::Shopping::Css::V1::Account]
|
153
|
+
# A result object deserialized from the server's reply
|
154
|
+
def update_labels 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_labels_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::Account.decode_json response.body, ignore_unknown_fields: true
|
173
|
+
|
174
|
+
yield result, operation if block_given?
|
175
|
+
result
|
176
|
+
end
|
177
|
+
|
178
|
+
##
|
179
|
+
# @private
|
180
|
+
#
|
181
|
+
# GRPC transcoding helper method for the list_child_accounts REST call
|
182
|
+
#
|
183
|
+
# @param request_pb [::Google::Shopping::Css::V1::ListChildAccountsRequest]
|
184
|
+
# A request object representing the call parameters. Required.
|
185
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
186
|
+
# Uri, Body, Query string parameters
|
187
|
+
def self.transcode_list_child_accounts_request request_pb
|
188
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
189
|
+
.with_bindings(
|
190
|
+
uri_method: :get,
|
191
|
+
uri_template: "/v1/{parent}:listChildAccounts",
|
192
|
+
matches: [
|
193
|
+
["parent", %r{^accounts/[^/]+/?$}, false]
|
194
|
+
]
|
195
|
+
)
|
196
|
+
transcoder.transcode request_pb
|
197
|
+
end
|
198
|
+
|
199
|
+
##
|
200
|
+
# @private
|
201
|
+
#
|
202
|
+
# GRPC transcoding helper method for the get_account REST call
|
203
|
+
#
|
204
|
+
# @param request_pb [::Google::Shopping::Css::V1::GetAccountRequest]
|
205
|
+
# A request object representing the call parameters. Required.
|
206
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
207
|
+
# Uri, Body, Query string parameters
|
208
|
+
def self.transcode_get_account_request request_pb
|
209
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
210
|
+
.with_bindings(
|
211
|
+
uri_method: :get,
|
212
|
+
uri_template: "/v1/{name}",
|
213
|
+
matches: [
|
214
|
+
["name", %r{^accounts/[^/]+/?$}, false]
|
215
|
+
]
|
216
|
+
)
|
217
|
+
transcoder.transcode request_pb
|
218
|
+
end
|
219
|
+
|
220
|
+
##
|
221
|
+
# @private
|
222
|
+
#
|
223
|
+
# GRPC transcoding helper method for the update_labels REST call
|
224
|
+
#
|
225
|
+
# @param request_pb [::Google::Shopping::Css::V1::UpdateAccountLabelsRequest]
|
226
|
+
# A request object representing the call parameters. Required.
|
227
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
228
|
+
# Uri, Body, Query string parameters
|
229
|
+
def self.transcode_update_labels_request request_pb
|
230
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
231
|
+
.with_bindings(
|
232
|
+
uri_method: :post,
|
233
|
+
uri_template: "/v1/{name}:updateLabels",
|
234
|
+
body: "*",
|
235
|
+
matches: [
|
236
|
+
["name", %r{^accounts/[^/]+/?$}, false]
|
237
|
+
]
|
238
|
+
)
|
239
|
+
transcoder.transcode request_pb
|
240
|
+
end
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
246
|
+
end
|
247
|
+
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/accounts_service/credentials"
|
26
|
+
require "google/shopping/css/v1/accounts_service/paths"
|
27
|
+
require "google/shopping/css/v1/accounts_service/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Shopping
|
31
|
+
module Css
|
32
|
+
module V1
|
33
|
+
##
|
34
|
+
# Service for managing CSS/MC account information.
|
35
|
+
#
|
36
|
+
# To load this service and instantiate a REST client:
|
37
|
+
#
|
38
|
+
# require "google/shopping/css/v1/accounts_service/rest"
|
39
|
+
# client = ::Google::Shopping::Css::V1::AccountsService::Rest::Client.new
|
40
|
+
#
|
41
|
+
module AccountsService
|
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/accounts_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/accounts_service/credentials"
|
26
|
+
require "google/shopping/css/v1/accounts_service/paths"
|
27
|
+
require "google/shopping/css/v1/accounts_service/client"
|
28
|
+
require "google/shopping/css/v1/accounts_service/rest"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Shopping
|
32
|
+
module Css
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# Service for managing CSS/MC account information.
|
36
|
+
#
|
37
|
+
# @example Load this service and instantiate a gRPC client
|
38
|
+
#
|
39
|
+
# require "google/shopping/css/v1/accounts_service"
|
40
|
+
# client = ::Google::Shopping::Css::V1::AccountsService::Client.new
|
41
|
+
#
|
42
|
+
# @example Load this service and instantiate a REST client
|
43
|
+
#
|
44
|
+
# require "google/shopping/css/v1/accounts_service/rest"
|
45
|
+
# client = ::Google::Shopping::Css::V1::AccountsService::Rest::Client.new
|
46
|
+
#
|
47
|
+
module AccountsService
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
helper_path = ::File.join __dir__, "accounts_service", "helpers.rb"
|
55
|
+
require "google/shopping/css/v1/accounts_service/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/shopping/css/v1/accounts.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_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Shopping
|
24
|
+
module Css
|
25
|
+
module V1
|
26
|
+
module AccountsService
|
27
|
+
# Service for managing CSS/MC account information.
|
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.AccountsService'
|
35
|
+
|
36
|
+
# Lists all the accounts under the specified CSS account ID, and
|
37
|
+
# optionally filters by label ID and account name.
|
38
|
+
rpc :ListChildAccounts, ::Google::Shopping::Css::V1::ListChildAccountsRequest, ::Google::Shopping::Css::V1::ListChildAccountsResponse
|
39
|
+
# Retrieves a single CSS/MC account by ID.
|
40
|
+
rpc :GetAccount, ::Google::Shopping::Css::V1::GetAccountRequest, ::Google::Shopping::Css::V1::Account
|
41
|
+
# Updates labels assigned to CSS/MC accounts by a CSS domain.
|
42
|
+
rpc :UpdateLabels, ::Google::Shopping::Css::V1::UpdateAccountLabelsRequest, ::Google::Shopping::Css::V1::Account
|
43
|
+
end
|
44
|
+
|
45
|
+
Stub = Service.rpc_stub_class
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/shopping/css/v1/css_product_common.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
require 'google/protobuf/timestamp_pb'
|
9
|
+
require 'google/shopping/type/types_pb'
|
10
|
+
|
11
|
+
|
12
|
+
descriptor_data = "\n/google/shopping/css/v1/css_product_common.proto\x12\x16google.shopping.css.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a google/shopping/type/types.proto\"\xe9\x10\n\nAttributes\x12\x15\n\x08\x63pp_link\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63pp_mobile_link\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10\x63pp_ads_redirect\x18* \x01(\tH\x02\x88\x01\x01\x12.\n\tlow_price\x18\x03 \x01(\x0b\x32\x1b.google.shopping.type.Price\x12/\n\nhigh_price\x18\x04 \x01(\x0b\x32\x1b.google.shopping.type.Price\x12\x1d\n\x10number_of_offers\x18\x05 \x01(\x03H\x03\x88\x01\x01\x12%\n\x18headline_offer_condition\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x39\n\x14headline_offer_price\x18\x07 \x01(\x0b\x32\x1b.google.shopping.type.Price\x12 \n\x13headline_offer_link\x18\x08 \x01(\tH\x05\x88\x01\x01\x12\'\n\x1aheadline_offer_mobile_link\x18\t \x01(\tH\x06\x88\x01\x01\x12\x42\n\x1dheadline_offer_shipping_price\x18) \x01(\x0b\x32\x1b.google.shopping.type.Price\x12\x12\n\x05title\x18\n \x01(\tH\x07\x88\x01\x01\x12\x17\n\nimage_link\x18\x0b \x01(\tH\x08\x88\x01\x01\x12\x1e\n\x16\x61\x64\x64itional_image_links\x18\x0c \x03(\t\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\t\x88\x01\x01\x12\x12\n\x05\x62rand\x18\x0e \x01(\tH\n\x88\x01\x01\x12\x10\n\x03mpn\x18\x0f \x01(\tH\x0b\x88\x01\x01\x12\x11\n\x04gtin\x18\x10 \x01(\tH\x0c\x88\x01\x01\x12\x15\n\rproduct_types\x18$ \x03(\t\x12$\n\x17google_product_category\x18\x11 \x01(\tH\r\x88\x01\x01\x12\x12\n\x05\x61\x64ult\x18\x12 \x01(\x08H\x0e\x88\x01\x01\x12\x16\n\tmultipack\x18\x13 \x01(\x03H\x0f\x88\x01\x01\x12\x16\n\tis_bundle\x18\x14 \x01(\x08H\x10\x88\x01\x01\x12\x16\n\tage_group\x18\x15 \x01(\tH\x11\x88\x01\x01\x12\x12\n\x05\x63olor\x18\x16 \x01(\tH\x12\x88\x01\x01\x12\x13\n\x06gender\x18\x17 \x01(\tH\x13\x88\x01\x01\x12\x15\n\x08material\x18\x18 \x01(\tH\x14\x88\x01\x01\x12\x14\n\x07pattern\x18\x19 \x01(\tH\x15\x88\x01\x01\x12\x11\n\x04size\x18\x1a \x01(\tH\x16\x88\x01\x01\x12\x18\n\x0bsize_system\x18\x1b \x01(\tH\x17\x88\x01\x01\x12\x12\n\nsize_types\x18\x1c \x03(\t\x12\x1a\n\ritem_group_id\x18\x1d \x01(\tH\x18\x88\x01\x01\x12>\n\x0fproduct_details\x18\x1e \x03(\x0b\x32%.google.shopping.css.v1.ProductDetail\x12=\n\x0eproduct_weight\x18\x1f \x01(\x0b\x32%.google.shopping.css.v1.ProductWeight\x12@\n\x0eproduct_length\x18 \x01(\x0b\x32(.google.shopping.css.v1.ProductDimension\x12?\n\rproduct_width\x18! \x01(\x0b\x32(.google.shopping.css.v1.ProductDimension\x12@\n\x0eproduct_height\x18\" \x01(\x0b\x32(.google.shopping.css.v1.ProductDimension\x12\x1a\n\x12product_highlights\x18# \x03(\t\x12=\n\x0e\x63\x65rtifications\x18\' \x03(\x0b\x32%.google.shopping.css.v1.Certification\x12\x33\n\x0f\x65xpiration_date\x18( \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x15included_destinations\x18+ \x03(\t\x12\x1d\n\x15\x65xcluded_destinations\x18, \x03(\t\x12\x12\n\x05pause\x18- \x01(\tH\x19\x88\x01\x01\x12\x1b\n\x0e\x63ustom_label_0\x18. \x01(\tH\x1a\x88\x01\x01\x12\x1b\n\x0e\x63ustom_label_1\x18/ \x01(\tH\x1b\x88\x01\x01\x12\x1b\n\x0e\x63ustom_label_2\x18\x30 \x01(\tH\x1c\x88\x01\x01\x12\x1b\n\x0e\x63ustom_label_3\x18\x31 \x01(\tH\x1d\x88\x01\x01\x12\x1b\n\x0e\x63ustom_label_4\x18\x32 \x01(\tH\x1e\x88\x01\x01\x42\x0b\n\t_cpp_linkB\x12\n\x10_cpp_mobile_linkB\x13\n\x11_cpp_ads_redirectB\x13\n\x11_number_of_offersB\x1b\n\x19_headline_offer_conditionB\x16\n\x14_headline_offer_linkB\x1d\n\x1b_headline_offer_mobile_linkB\x08\n\x06_titleB\r\n\x0b_image_linkB\x0e\n\x0c_descriptionB\x08\n\x06_brandB\x06\n\x04_mpnB\x07\n\x05_gtinB\x1a\n\x18_google_product_categoryB\x08\n\x06_adultB\x0c\n\n_multipackB\x0c\n\n_is_bundleB\x0c\n\n_age_groupB\x08\n\x06_colorB\t\n\x07_genderB\x0b\n\t_materialB\n\n\x08_patternB\x07\n\x05_sizeB\x0e\n\x0c_size_systemB\x10\n\x0e_item_group_idB\x08\n\x06_pauseB\x11\n\x0f_custom_label_0B\x11\n\x0f_custom_label_1B\x11\n\x0f_custom_label_2B\x11\n\x0f_custom_label_3B\x11\n\x0f_custom_label_4\">\n\rCertification\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tauthority\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\"V\n\rProductDetail\x12\x14\n\x0csection_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61ttribute_name\x18\x02 \x01(\t\x12\x17\n\x0f\x61ttribute_value\x18\x03 \x01(\t\"9\n\x10ProductDimension\x12\x12\n\x05value\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x12\x11\n\x04unit\x18\x02 \x01(\tB\x03\xe0\x41\x02\"6\n\rProductWeight\x12\x12\n\x05value\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x12\x11\n\x04unit\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xb1\x05\n\x10\x43ssProductStatus\x12X\n\x14\x64\x65stination_statuses\x18\x03 \x03(\x0b\x32:.google.shopping.css.v1.CssProductStatus.DestinationStatus\x12R\n\x11item_level_issues\x18\x04 \x03(\x0b\x32\x37.google.shopping.css.v1.CssProductStatus.ItemLevelIssue\x12\x31\n\rcreation_date\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10last_update_date\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x16google_expiration_date\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a~\n\x11\x44\x65stinationStatus\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\t\x12\x1a\n\x12\x61pproved_countries\x18\x02 \x03(\t\x12\x19\n\x11pending_countries\x18\x03 \x03(\t\x12\x1d\n\x15\x64isapproved_countries\x18\x04 \x03(\t\x1a\xc9\x01\n\x0eItemLevelIssue\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\x13\n\x0bservability\x18\x02 \x01(\t\x12\x12\n\nresolution\x18\x03 \x01(\t\x12\x11\n\tattribute\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65stination\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x0e\n\x06\x64\x65tail\x18\x07 \x01(\t\x12\x15\n\rdocumentation\x18\x08 \x01(\t\x12\x1c\n\x14\x61pplicable_countries\x18\t \x03(\tB\xb7\x01\n\x1a\x63om.google.shopping.css.v1B\x15\x43ssProductCommonProtoP\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"
|
13
|
+
|
14
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
|
+
|
16
|
+
begin
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
18
|
+
rescue TypeError
|
19
|
+
# Compatibility code: will be removed in the next major version.
|
20
|
+
require 'google/protobuf/descriptor_pb'
|
21
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
22
|
+
parsed.clear_dependency
|
23
|
+
serialized = parsed.class.encode(parsed)
|
24
|
+
file = pool.add_serialized_file(serialized)
|
25
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
26
|
+
imports = [
|
27
|
+
["google.shopping.type.Price", "google/shopping/type/types.proto"],
|
28
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
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
|
+
Attributes = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.Attributes").msgclass
|
45
|
+
Certification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.Certification").msgclass
|
46
|
+
ProductDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.ProductDetail").msgclass
|
47
|
+
ProductDimension = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.ProductDimension").msgclass
|
48
|
+
ProductWeight = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.ProductWeight").msgclass
|
49
|
+
CssProductStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.CssProductStatus").msgclass
|
50
|
+
CssProductStatus::DestinationStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.CssProductStatus.DestinationStatus").msgclass
|
51
|
+
CssProductStatus::ItemLevelIssue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.CssProductStatus.ItemLevelIssue").msgclass
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/shopping/css/v1/css_product_inputs.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
|
+
require 'google/protobuf/timestamp_pb'
|
13
|
+
require 'google/shopping/css/v1/css_product_common_pb'
|
14
|
+
require 'google/shopping/type/types_pb'
|
15
|
+
|
16
|
+
|
17
|
+
descriptor_data = "\n/google/shopping/css/v1/css_product_inputs.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\x1a\x1fgoogle/protobuf/timestamp.proto\x1a/google/shopping/css/v1/css_product_common.proto\x1a google/shopping/type/types.proto\"\x9e\x03\n\x0f\x43ssProductInput\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\nfinal_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fraw_provided_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10\x63ontent_language\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nfeed_label\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x32\n\x0e\x66reshness_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\nattributes\x18\x07 \x01(\x0b\x32\".google.shopping.css.v1.Attributes\x12@\n\x11\x63ustom_attributes\x18\x08 \x03(\x0b\x32%.google.shopping.type.CustomAttribute:`\xea\x41]\n\"css.googleapis.com/CssProductInput\x12\x37\x61\x63\x63ounts/{account}/cssProductInputs/{css_product_input}\"\xb9\x01\n\x1cInsertCssProductInputRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"css.googleapis.com/CssProductInput\x12G\n\x11\x63ss_product_input\x18\x02 \x01(\x0b\x32\'.google.shopping.css.v1.CssProductInputB\x03\xe0\x41\x02\x12\x14\n\x07\x66\x65\x65\x64_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x02\"\x94\x01\n\x1c\x44\x65leteCssProductInputRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"css.googleapis.com/CssProductInput\x12!\n\x14supplemental_feed_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x17\n\x15_supplemental_feed_id2\xc0\x03\n\x17\x43ssProductInputsService\x12\xc2\x01\n\x15InsertCssProductInput\x12\x34.google.shopping.css.v1.InsertCssProductInputRequest\x1a\'.google.shopping.css.v1.CssProductInput\"J\x82\xd3\xe4\x93\x02\x44\"//v1/{parent=accounts/*}/cssProductInputs:insert:\x11\x63ss_product_input\x12\x9e\x01\n\x15\x44\x65leteCssProductInput\x12\x34.google.shopping.css.v1.DeleteCssProductInputRequest\x1a\x16.google.protobuf.Empty\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02**(/v1/{name=accounts/*/cssProductInputs/*}\x1a?\xca\x41\x12\x63ss.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xb7\x01\n\x1a\x63om.google.shopping.css.v1B\x15\x43ssProductInputsProtoP\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"
|
18
|
+
|
19
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
|
+
|
21
|
+
begin
|
22
|
+
pool.add_serialized_file(descriptor_data)
|
23
|
+
rescue TypeError
|
24
|
+
# Compatibility code: will be removed in the next major version.
|
25
|
+
require 'google/protobuf/descriptor_pb'
|
26
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
27
|
+
parsed.clear_dependency
|
28
|
+
serialized = parsed.class.encode(parsed)
|
29
|
+
file = pool.add_serialized_file(serialized)
|
30
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
31
|
+
imports = [
|
32
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
33
|
+
["google.shopping.css.v1.Attributes", "google/shopping/css/v1/css_product_common.proto"],
|
34
|
+
["google.shopping.type.CustomAttribute", "google/shopping/type/types.proto"],
|
35
|
+
]
|
36
|
+
imports.each do |type_name, expected_filename|
|
37
|
+
import_file = pool.lookup(type_name).file_descriptor
|
38
|
+
if import_file.name != expected_filename
|
39
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
43
|
+
warn "This will become an error in the next major version."
|
44
|
+
end
|
45
|
+
|
46
|
+
module Google
|
47
|
+
module Shopping
|
48
|
+
module Css
|
49
|
+
module V1
|
50
|
+
CssProductInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.CssProductInput").msgclass
|
51
|
+
InsertCssProductInputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.InsertCssProductInputRequest").msgclass
|
52
|
+
DeleteCssProductInputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.DeleteCssProductInputRequest").msgclass
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|