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.
- 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,188 @@
|
|
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/css_product_inputs_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Shopping
|
23
|
+
module Css
|
24
|
+
module V1
|
25
|
+
module CssProductInputsService
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the CssProductInputsService 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 insert_css_product_input REST call
|
66
|
+
#
|
67
|
+
# @param request_pb [::Google::Shopping::Css::V1::InsertCssProductInputRequest]
|
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::CssProductInput]
|
74
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
75
|
+
#
|
76
|
+
# @return [::Google::Shopping::Css::V1::CssProductInput]
|
77
|
+
# A result object deserialized from the server's reply
|
78
|
+
def insert_css_product_input 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_insert_css_product_input_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::CssProductInput.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 delete_css_product_input REST call
|
104
|
+
#
|
105
|
+
# @param request_pb [::Google::Shopping::Css::V1::DeleteCssProductInputRequest]
|
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::Protobuf::Empty]
|
112
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
113
|
+
#
|
114
|
+
# @return [::Google::Protobuf::Empty]
|
115
|
+
# A result object deserialized from the server's reply
|
116
|
+
def delete_css_product_input 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_delete_css_product_input_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::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
135
|
+
|
136
|
+
yield result, operation if block_given?
|
137
|
+
result
|
138
|
+
end
|
139
|
+
|
140
|
+
##
|
141
|
+
# @private
|
142
|
+
#
|
143
|
+
# GRPC transcoding helper method for the insert_css_product_input REST call
|
144
|
+
#
|
145
|
+
# @param request_pb [::Google::Shopping::Css::V1::InsertCssProductInputRequest]
|
146
|
+
# A request object representing the call parameters. Required.
|
147
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
148
|
+
# Uri, Body, Query string parameters
|
149
|
+
def self.transcode_insert_css_product_input_request request_pb
|
150
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
151
|
+
.with_bindings(
|
152
|
+
uri_method: :post,
|
153
|
+
uri_template: "/v1/{parent}/cssProductInputs:insert",
|
154
|
+
body: "css_product_input",
|
155
|
+
matches: [
|
156
|
+
["parent", %r{^accounts/[^/]+/?$}, false]
|
157
|
+
]
|
158
|
+
)
|
159
|
+
transcoder.transcode request_pb
|
160
|
+
end
|
161
|
+
|
162
|
+
##
|
163
|
+
# @private
|
164
|
+
#
|
165
|
+
# GRPC transcoding helper method for the delete_css_product_input REST call
|
166
|
+
#
|
167
|
+
# @param request_pb [::Google::Shopping::Css::V1::DeleteCssProductInputRequest]
|
168
|
+
# A request object representing the call parameters. Required.
|
169
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
170
|
+
# Uri, Body, Query string parameters
|
171
|
+
def self.transcode_delete_css_product_input_request request_pb
|
172
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
173
|
+
.with_bindings(
|
174
|
+
uri_method: :delete,
|
175
|
+
uri_template: "/v1/{name}",
|
176
|
+
matches: [
|
177
|
+
["name", %r{^accounts/[^/]+/cssProductInputs/[^/]+/?$}, false]
|
178
|
+
]
|
179
|
+
)
|
180
|
+
transcoder.transcode request_pb
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
@@ -0,0 +1,53 @@
|
|
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/css_product_inputs_service/credentials"
|
26
|
+
require "google/shopping/css/v1/css_product_inputs_service/paths"
|
27
|
+
require "google/shopping/css/v1/css_product_inputs_service/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Shopping
|
31
|
+
module Css
|
32
|
+
module V1
|
33
|
+
##
|
34
|
+
# Service to use CssProductInput resource.
|
35
|
+
# This service helps to insert/update/delete CSS Products.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a REST client:
|
38
|
+
#
|
39
|
+
# require "google/shopping/css/v1/css_product_inputs_service/rest"
|
40
|
+
# client = ::Google::Shopping::Css::V1::CssProductInputsService::Rest::Client.new
|
41
|
+
#
|
42
|
+
module CssProductInputsService
|
43
|
+
# Client for the REST transport
|
44
|
+
module Rest
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
53
|
+
require "google/shopping/css/v1/css_product_inputs_service/rest/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,56 @@
|
|
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/css_product_inputs_service/credentials"
|
26
|
+
require "google/shopping/css/v1/css_product_inputs_service/paths"
|
27
|
+
require "google/shopping/css/v1/css_product_inputs_service/client"
|
28
|
+
require "google/shopping/css/v1/css_product_inputs_service/rest"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Shopping
|
32
|
+
module Css
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# Service to use CssProductInput resource.
|
36
|
+
# This service helps to insert/update/delete CSS Products.
|
37
|
+
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
39
|
+
#
|
40
|
+
# require "google/shopping/css/v1/css_product_inputs_service"
|
41
|
+
# client = ::Google::Shopping::Css::V1::CssProductInputsService::Client.new
|
42
|
+
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/shopping/css/v1/css_product_inputs_service/rest"
|
46
|
+
# client = ::Google::Shopping::Css::V1::CssProductInputsService::Rest::Client.new
|
47
|
+
#
|
48
|
+
module CssProductInputsService
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
helper_path = ::File.join __dir__, "css_product_inputs_service", "helpers.rb"
|
56
|
+
require "google/shopping/css/v1/css_product_inputs_service/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/shopping/css/v1/css_product_inputs.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/css_product_inputs_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Shopping
|
24
|
+
module Css
|
25
|
+
module V1
|
26
|
+
module CssProductInputsService
|
27
|
+
# Service to use CssProductInput resource.
|
28
|
+
# This service helps to insert/update/delete CSS Products.
|
29
|
+
class Service
|
30
|
+
|
31
|
+
include ::GRPC::GenericService
|
32
|
+
|
33
|
+
self.marshal_class_method = :encode
|
34
|
+
self.unmarshal_class_method = :decode
|
35
|
+
self.service_name = 'google.shopping.css.v1.CssProductInputsService'
|
36
|
+
|
37
|
+
# Uploads a CssProductInput to your CSS Center account. If an
|
38
|
+
# input with the same contentLanguage, identity, feedLabel and feedId already
|
39
|
+
# exists, this method replaces that entry.
|
40
|
+
#
|
41
|
+
# After inserting, updating, or deleting a CSS Product input, it may
|
42
|
+
# take several minutes before the processed CSS Product can be retrieved.
|
43
|
+
rpc :InsertCssProductInput, ::Google::Shopping::Css::V1::InsertCssProductInputRequest, ::Google::Shopping::Css::V1::CssProductInput
|
44
|
+
# Deletes a CSS Product input from your CSS Center account.
|
45
|
+
#
|
46
|
+
# After a delete it may take several minutes until the input is no longer
|
47
|
+
# available.
|
48
|
+
rpc :DeleteCssProductInput, ::Google::Shopping::Css::V1::DeleteCssProductInputRequest, ::Google::Protobuf::Empty
|
49
|
+
end
|
50
|
+
|
51
|
+
Stub = Service.rpc_stub_class
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -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/css_products.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/shopping/css/v1/css_product_common_pb'
|
12
|
+
require 'google/shopping/type/types_pb'
|
13
|
+
|
14
|
+
|
15
|
+
descriptor_data = "\n)google/shopping/css/v1/css_products.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/google/shopping/css/v1/css_product_common.proto\x1a google/shopping/type/types.proto\"K\n\x14GetCssProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63ss.googleapis.com/CssProduct\"\xaa\x03\n\nCssProduct\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0fraw_provided_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x63ontent_language\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12;\n\nattributes\x18\x05 \x01(\x0b\x32\".google.shopping.css.v1.AttributesB\x03\xe0\x41\x03\x12\x45\n\x11\x63ustom_attributes\x18\x06 \x03(\x0b\x32%.google.shopping.type.CustomAttributeB\x03\xe0\x41\x03\x12I\n\x12\x63ss_product_status\x18\x08 \x01(\x0b\x32(.google.shopping.css.v1.CssProductStatusB\x03\xe0\x41\x03:i\xea\x41\x66\n\x1d\x63ss.googleapis.com/CssProduct\x12,accounts/{account}/cssProducts/{css_product}*\x0b\x63ssProducts2\ncssProduct\"v\n\x16ListCssProductsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x63ss.googleapis.com/CssProduct\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"l\n\x17ListCssProductsResponse\x12\x38\n\x0c\x63ss_products\x18\x01 \x03(\x0b\x32\".google.shopping.css.v1.CssProduct\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x98\x03\n\x12\x43ssProductsService\x12\x95\x01\n\rGetCssProduct\x12,.google.shopping.css.v1.GetCssProductRequest\x1a\".google.shopping.css.v1.CssProduct\"2\xda\x41\x04name\x82\xd3\xe4\x93\x02%\x12#/v1/{name=accounts/*/cssProducts/*}\x12\xa8\x01\n\x0fListCssProducts\x12..google.shopping.css.v1.ListCssProductsRequest\x1a/.google.shopping.css.v1.ListCssProductsResponse\"4\xda\x41\x06parent\x82\xd3\xe4\x93\x02%\x12#/v1/{parent=accounts/*}/cssProducts\x1a?\xca\x41\x12\x63ss.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xb2\x01\n\x1a\x63om.google.shopping.css.v1B\x10\x43ssProductsProtoP\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"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
["google.shopping.css.v1.Attributes", "google/shopping/css/v1/css_product_common.proto"],
|
31
|
+
["google.shopping.type.CustomAttribute", "google/shopping/type/types.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
41
|
+
end
|
42
|
+
|
43
|
+
module Google
|
44
|
+
module Shopping
|
45
|
+
module Css
|
46
|
+
module V1
|
47
|
+
GetCssProductRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.GetCssProductRequest").msgclass
|
48
|
+
CssProduct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.CssProduct").msgclass
|
49
|
+
ListCssProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.ListCssProductsRequest").msgclass
|
50
|
+
ListCssProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.ListCssProductsResponse").msgclass
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|