google-shopping-merchant-conversions-v1beta 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) 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/merchant/conversions/v1beta/conversion_sources_service/client.rb +919 -0
  6. data/lib/google/shopping/merchant/conversions/v1beta/conversion_sources_service/credentials.rb +49 -0
  7. data/lib/google/shopping/merchant/conversions/v1beta/conversion_sources_service/paths.rb +66 -0
  8. data/lib/google/shopping/merchant/conversions/v1beta/conversion_sources_service/rest/client.rb +851 -0
  9. data/lib/google/shopping/merchant/conversions/v1beta/conversion_sources_service/rest/service_stub.rb +428 -0
  10. data/lib/google/shopping/merchant/conversions/v1beta/conversion_sources_service/rest.rb +54 -0
  11. data/lib/google/shopping/merchant/conversions/v1beta/conversion_sources_service.rb +57 -0
  12. data/lib/google/shopping/merchant/conversions/v1beta/conversionsources_pb.rb +68 -0
  13. data/lib/google/shopping/merchant/conversions/v1beta/conversionsources_services_pb.rb +62 -0
  14. data/lib/google/shopping/merchant/conversions/v1beta/rest.rb +39 -0
  15. data/lib/google/shopping/merchant/conversions/v1beta/version.rb +7 -2
  16. data/lib/google/shopping/merchant/conversions/v1beta.rb +47 -0
  17. data/lib/google-shopping-merchant-conversions-v1beta.rb +21 -0
  18. data/proto_docs/README.md +4 -0
  19. data/proto_docs/google/api/client.rb +399 -0
  20. data/proto_docs/google/api/field_behavior.rb +85 -0
  21. data/proto_docs/google/api/launch_stage.rb +71 -0
  22. data/proto_docs/google/api/resource.rb +222 -0
  23. data/proto_docs/google/protobuf/duration.rb +98 -0
  24. data/proto_docs/google/protobuf/empty.rb +34 -0
  25. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  26. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  27. data/proto_docs/google/shopping/merchant/conversions/v1beta/conversionsources.rb +286 -0
  28. metadata +67 -10
@@ -0,0 +1,428 @@
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/merchant/conversions/v1beta/conversionsources_pb"
20
+
21
+ module Google
22
+ module Shopping
23
+ module Merchant
24
+ module Conversions
25
+ module V1beta
26
+ module ConversionSourcesService
27
+ module Rest
28
+ ##
29
+ # REST service stub for the ConversionSourcesService service.
30
+ # Service stub contains baseline method implementations
31
+ # including transcoding, making the REST call, and deserialing the response.
32
+ #
33
+ class ServiceStub
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
35
+ # These require statements are intentionally placed here to initialize
36
+ # the REST modules only when it's required.
37
+ require "gapic/rest"
38
+
39
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
40
+ endpoint_template: endpoint_template,
41
+ universe_domain: universe_domain,
42
+ credentials: credentials,
43
+ numeric_enums: true,
44
+ raise_faraday_errors: false
45
+ end
46
+
47
+ ##
48
+ # The effective universe domain
49
+ #
50
+ # @return [String]
51
+ #
52
+ def universe_domain
53
+ @client_stub.universe_domain
54
+ end
55
+
56
+ ##
57
+ # The effective endpoint
58
+ #
59
+ # @return [String]
60
+ #
61
+ def endpoint
62
+ @client_stub.endpoint
63
+ end
64
+
65
+ ##
66
+ # Baseline implementation for the create_conversion_source REST call
67
+ #
68
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1beta::CreateConversionSourceRequest]
69
+ # A request object representing the call parameters. Required.
70
+ # @param options [::Gapic::CallOptions]
71
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
72
+ #
73
+ # @yield [result, operation] Access the result along with the TransportOperation object
74
+ # @yieldparam result [::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource]
75
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
76
+ #
77
+ # @return [::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource]
78
+ # A result object deserialized from the server's reply
79
+ def create_conversion_source request_pb, options = nil
80
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
81
+
82
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_conversion_source_request request_pb
83
+ query_string_params = if query_string_params.any?
84
+ query_string_params.to_h { |p| p.split "=", 2 }
85
+ else
86
+ {}
87
+ end
88
+
89
+ response = @client_stub.make_http_request(
90
+ verb,
91
+ uri: uri,
92
+ body: body || "",
93
+ params: query_string_params,
94
+ options: options
95
+ )
96
+ operation = ::Gapic::Rest::TransportOperation.new response
97
+ result = ::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource.decode_json response.body, ignore_unknown_fields: true
98
+
99
+ yield result, operation if block_given?
100
+ result
101
+ end
102
+
103
+ ##
104
+ # Baseline implementation for the update_conversion_source REST call
105
+ #
106
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1beta::UpdateConversionSourceRequest]
107
+ # A request object representing the call parameters. Required.
108
+ # @param options [::Gapic::CallOptions]
109
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
110
+ #
111
+ # @yield [result, operation] Access the result along with the TransportOperation object
112
+ # @yieldparam result [::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource]
113
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
114
+ #
115
+ # @return [::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource]
116
+ # A result object deserialized from the server's reply
117
+ def update_conversion_source request_pb, options = nil
118
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
119
+
120
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_conversion_source_request request_pb
121
+ query_string_params = if query_string_params.any?
122
+ query_string_params.to_h { |p| p.split "=", 2 }
123
+ else
124
+ {}
125
+ end
126
+
127
+ response = @client_stub.make_http_request(
128
+ verb,
129
+ uri: uri,
130
+ body: body || "",
131
+ params: query_string_params,
132
+ options: options
133
+ )
134
+ operation = ::Gapic::Rest::TransportOperation.new response
135
+ result = ::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource.decode_json response.body, ignore_unknown_fields: true
136
+
137
+ yield result, operation if block_given?
138
+ result
139
+ end
140
+
141
+ ##
142
+ # Baseline implementation for the delete_conversion_source REST call
143
+ #
144
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1beta::DeleteConversionSourceRequest]
145
+ # A request object representing the call parameters. Required.
146
+ # @param options [::Gapic::CallOptions]
147
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
148
+ #
149
+ # @yield [result, operation] Access the result along with the TransportOperation object
150
+ # @yieldparam result [::Google::Protobuf::Empty]
151
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
152
+ #
153
+ # @return [::Google::Protobuf::Empty]
154
+ # A result object deserialized from the server's reply
155
+ def delete_conversion_source request_pb, options = nil
156
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
157
+
158
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_conversion_source_request request_pb
159
+ query_string_params = if query_string_params.any?
160
+ query_string_params.to_h { |p| p.split "=", 2 }
161
+ else
162
+ {}
163
+ end
164
+
165
+ response = @client_stub.make_http_request(
166
+ verb,
167
+ uri: uri,
168
+ body: body || "",
169
+ params: query_string_params,
170
+ options: options
171
+ )
172
+ operation = ::Gapic::Rest::TransportOperation.new response
173
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
174
+
175
+ yield result, operation if block_given?
176
+ result
177
+ end
178
+
179
+ ##
180
+ # Baseline implementation for the undelete_conversion_source REST call
181
+ #
182
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1beta::UndeleteConversionSourceRequest]
183
+ # A request object representing the call parameters. Required.
184
+ # @param options [::Gapic::CallOptions]
185
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
186
+ #
187
+ # @yield [result, operation] Access the result along with the TransportOperation object
188
+ # @yieldparam result [::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource]
189
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
190
+ #
191
+ # @return [::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource]
192
+ # A result object deserialized from the server's reply
193
+ def undelete_conversion_source request_pb, options = nil
194
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
195
+
196
+ verb, uri, query_string_params, body = ServiceStub.transcode_undelete_conversion_source_request request_pb
197
+ query_string_params = if query_string_params.any?
198
+ query_string_params.to_h { |p| p.split "=", 2 }
199
+ else
200
+ {}
201
+ end
202
+
203
+ response = @client_stub.make_http_request(
204
+ verb,
205
+ uri: uri,
206
+ body: body || "",
207
+ params: query_string_params,
208
+ options: options
209
+ )
210
+ operation = ::Gapic::Rest::TransportOperation.new response
211
+ result = ::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource.decode_json response.body, ignore_unknown_fields: true
212
+
213
+ yield result, operation if block_given?
214
+ result
215
+ end
216
+
217
+ ##
218
+ # Baseline implementation for the get_conversion_source REST call
219
+ #
220
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1beta::GetConversionSourceRequest]
221
+ # A request object representing the call parameters. Required.
222
+ # @param options [::Gapic::CallOptions]
223
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
224
+ #
225
+ # @yield [result, operation] Access the result along with the TransportOperation object
226
+ # @yieldparam result [::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource]
227
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
228
+ #
229
+ # @return [::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource]
230
+ # A result object deserialized from the server's reply
231
+ def get_conversion_source request_pb, options = nil
232
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
233
+
234
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_conversion_source_request request_pb
235
+ query_string_params = if query_string_params.any?
236
+ query_string_params.to_h { |p| p.split "=", 2 }
237
+ else
238
+ {}
239
+ end
240
+
241
+ response = @client_stub.make_http_request(
242
+ verb,
243
+ uri: uri,
244
+ body: body || "",
245
+ params: query_string_params,
246
+ options: options
247
+ )
248
+ operation = ::Gapic::Rest::TransportOperation.new response
249
+ result = ::Google::Shopping::Merchant::Conversions::V1beta::ConversionSource.decode_json response.body, ignore_unknown_fields: true
250
+
251
+ yield result, operation if block_given?
252
+ result
253
+ end
254
+
255
+ ##
256
+ # Baseline implementation for the list_conversion_sources REST call
257
+ #
258
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1beta::ListConversionSourcesRequest]
259
+ # A request object representing the call parameters. Required.
260
+ # @param options [::Gapic::CallOptions]
261
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
262
+ #
263
+ # @yield [result, operation] Access the result along with the TransportOperation object
264
+ # @yieldparam result [::Google::Shopping::Merchant::Conversions::V1beta::ListConversionSourcesResponse]
265
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
266
+ #
267
+ # @return [::Google::Shopping::Merchant::Conversions::V1beta::ListConversionSourcesResponse]
268
+ # A result object deserialized from the server's reply
269
+ def list_conversion_sources request_pb, options = nil
270
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
271
+
272
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_conversion_sources_request request_pb
273
+ query_string_params = if query_string_params.any?
274
+ query_string_params.to_h { |p| p.split "=", 2 }
275
+ else
276
+ {}
277
+ end
278
+
279
+ response = @client_stub.make_http_request(
280
+ verb,
281
+ uri: uri,
282
+ body: body || "",
283
+ params: query_string_params,
284
+ options: options
285
+ )
286
+ operation = ::Gapic::Rest::TransportOperation.new response
287
+ result = ::Google::Shopping::Merchant::Conversions::V1beta::ListConversionSourcesResponse.decode_json response.body, ignore_unknown_fields: true
288
+
289
+ yield result, operation if block_given?
290
+ result
291
+ end
292
+
293
+ ##
294
+ # @private
295
+ #
296
+ # GRPC transcoding helper method for the create_conversion_source REST call
297
+ #
298
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1beta::CreateConversionSourceRequest]
299
+ # A request object representing the call parameters. Required.
300
+ # @return [Array(String, [String, nil], Hash{String => String})]
301
+ # Uri, Body, Query string parameters
302
+ def self.transcode_create_conversion_source_request request_pb
303
+ transcoder = Gapic::Rest::GrpcTranscoder.new
304
+ .with_bindings(
305
+ uri_method: :post,
306
+ uri_template: "/conversions/v1beta/{parent}/conversionSources",
307
+ body: "conversion_source",
308
+ matches: [
309
+ ["parent", %r{^accounts/[^/]+/?$}, false]
310
+ ]
311
+ )
312
+ transcoder.transcode request_pb
313
+ end
314
+
315
+ ##
316
+ # @private
317
+ #
318
+ # GRPC transcoding helper method for the update_conversion_source REST call
319
+ #
320
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1beta::UpdateConversionSourceRequest]
321
+ # A request object representing the call parameters. Required.
322
+ # @return [Array(String, [String, nil], Hash{String => String})]
323
+ # Uri, Body, Query string parameters
324
+ def self.transcode_update_conversion_source_request request_pb
325
+ transcoder = Gapic::Rest::GrpcTranscoder.new
326
+ .with_bindings(
327
+ uri_method: :patch,
328
+ uri_template: "/conversions/v1beta/{conversion_source.name}",
329
+ body: "conversion_source",
330
+ matches: [
331
+ ["conversion_source.name", %r{^accounts/[^/]+/conversionSources/[^/]+/?$}, false]
332
+ ]
333
+ )
334
+ transcoder.transcode request_pb
335
+ end
336
+
337
+ ##
338
+ # @private
339
+ #
340
+ # GRPC transcoding helper method for the delete_conversion_source REST call
341
+ #
342
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1beta::DeleteConversionSourceRequest]
343
+ # A request object representing the call parameters. Required.
344
+ # @return [Array(String, [String, nil], Hash{String => String})]
345
+ # Uri, Body, Query string parameters
346
+ def self.transcode_delete_conversion_source_request request_pb
347
+ transcoder = Gapic::Rest::GrpcTranscoder.new
348
+ .with_bindings(
349
+ uri_method: :delete,
350
+ uri_template: "/conversions/v1beta/{name}",
351
+ matches: [
352
+ ["name", %r{^accounts/[^/]+/conversionSources/[^/]+/?$}, false]
353
+ ]
354
+ )
355
+ transcoder.transcode request_pb
356
+ end
357
+
358
+ ##
359
+ # @private
360
+ #
361
+ # GRPC transcoding helper method for the undelete_conversion_source REST call
362
+ #
363
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1beta::UndeleteConversionSourceRequest]
364
+ # A request object representing the call parameters. Required.
365
+ # @return [Array(String, [String, nil], Hash{String => String})]
366
+ # Uri, Body, Query string parameters
367
+ def self.transcode_undelete_conversion_source_request request_pb
368
+ transcoder = Gapic::Rest::GrpcTranscoder.new
369
+ .with_bindings(
370
+ uri_method: :post,
371
+ uri_template: "/conversions/v1beta/{name}:undelete",
372
+ body: "*",
373
+ matches: [
374
+ ["name", %r{^accounts/[^/]+/conversionSources/[^/]+/?$}, false]
375
+ ]
376
+ )
377
+ transcoder.transcode request_pb
378
+ end
379
+
380
+ ##
381
+ # @private
382
+ #
383
+ # GRPC transcoding helper method for the get_conversion_source REST call
384
+ #
385
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1beta::GetConversionSourceRequest]
386
+ # A request object representing the call parameters. Required.
387
+ # @return [Array(String, [String, nil], Hash{String => String})]
388
+ # Uri, Body, Query string parameters
389
+ def self.transcode_get_conversion_source_request request_pb
390
+ transcoder = Gapic::Rest::GrpcTranscoder.new
391
+ .with_bindings(
392
+ uri_method: :get,
393
+ uri_template: "/conversions/v1beta/{name}",
394
+ matches: [
395
+ ["name", %r{^accounts/[^/]+/conversionSources/[^/]+/?$}, false]
396
+ ]
397
+ )
398
+ transcoder.transcode request_pb
399
+ end
400
+
401
+ ##
402
+ # @private
403
+ #
404
+ # GRPC transcoding helper method for the list_conversion_sources REST call
405
+ #
406
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1beta::ListConversionSourcesRequest]
407
+ # A request object representing the call parameters. Required.
408
+ # @return [Array(String, [String, nil], Hash{String => String})]
409
+ # Uri, Body, Query string parameters
410
+ def self.transcode_list_conversion_sources_request request_pb
411
+ transcoder = Gapic::Rest::GrpcTranscoder.new
412
+ .with_bindings(
413
+ uri_method: :get,
414
+ uri_template: "/conversions/v1beta/{parent}/conversionSources",
415
+ matches: [
416
+ ["parent", %r{^accounts/[^/]+/?$}, false]
417
+ ]
418
+ )
419
+ transcoder.transcode request_pb
420
+ end
421
+ end
422
+ end
423
+ end
424
+ end
425
+ end
426
+ end
427
+ end
428
+ end
@@ -0,0 +1,54 @@
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/merchant/conversions/v1beta/version"
24
+
25
+ require "google/shopping/merchant/conversions/v1beta/conversion_sources_service/credentials"
26
+ require "google/shopping/merchant/conversions/v1beta/conversion_sources_service/paths"
27
+ require "google/shopping/merchant/conversions/v1beta/conversion_sources_service/rest/client"
28
+
29
+ module Google
30
+ module Shopping
31
+ module Merchant
32
+ module Conversions
33
+ module V1beta
34
+ ##
35
+ # Service for managing conversion sources for a merchant account.
36
+ #
37
+ # To load this service and instantiate a REST client:
38
+ #
39
+ # require "google/shopping/merchant/conversions/v1beta/conversion_sources_service/rest"
40
+ # client = ::Google::Shopping::Merchant::Conversions::V1beta::ConversionSourcesService::Rest::Client.new
41
+ #
42
+ module ConversionSourcesService
43
+ # Client for the REST transport
44
+ module Rest
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+
53
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
54
+ require "google/shopping/merchant/conversions/v1beta/conversion_sources_service/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,57 @@
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/merchant/conversions/v1beta/version"
24
+
25
+ require "google/shopping/merchant/conversions/v1beta/conversion_sources_service/credentials"
26
+ require "google/shopping/merchant/conversions/v1beta/conversion_sources_service/paths"
27
+ require "google/shopping/merchant/conversions/v1beta/conversion_sources_service/client"
28
+ require "google/shopping/merchant/conversions/v1beta/conversion_sources_service/rest"
29
+
30
+ module Google
31
+ module Shopping
32
+ module Merchant
33
+ module Conversions
34
+ module V1beta
35
+ ##
36
+ # Service for managing conversion sources for a merchant account.
37
+ #
38
+ # @example Load this service and instantiate a gRPC client
39
+ #
40
+ # require "google/shopping/merchant/conversions/v1beta/conversion_sources_service"
41
+ # client = ::Google::Shopping::Merchant::Conversions::V1beta::ConversionSourcesService::Client.new
42
+ #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/shopping/merchant/conversions/v1beta/conversion_sources_service/rest"
46
+ # client = ::Google::Shopping::Merchant::Conversions::V1beta::ConversionSourcesService::Rest::Client.new
47
+ #
48
+ module ConversionSourcesService
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+
56
+ helper_path = ::File.join __dir__, "conversion_sources_service", "helpers.rb"
57
+ require "google/shopping/merchant/conversions/v1beta/conversion_sources_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,68 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/shopping/merchant/conversions/v1beta/conversionsources.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/field_mask_pb'
13
+ require 'google/protobuf/timestamp_pb'
14
+
15
+
16
+ descriptor_data = "\nCgoogle/shopping/merchant/conversions/v1beta/conversionsources.proto\x12+google.shopping.merchant.conversions.v1beta\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 google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xaa\x06\n\x10\x43onversionSource\x12\x66\n\x15google_analytics_link\x18\x03 \x01(\x0b\x32@.google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLinkB\x03\xe0\x41\x05H\x00\x12m\n\x1bmerchant_center_destination\x18\x04 \x01(\x0b\x32\x46.google.shopping.merchant.conversions.v1beta.MerchantCenterDestinationH\x00\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x08\x12W\n\x05state\x18\x05 \x01(\x0e\x32\x43.google.shopping.merchant.conversions.v1beta.ConversionSource.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x61\n\ncontroller\x18\x07 \x01(\x0e\x32H.google.shopping.merchant.conversions.v1beta.ConversionSource.ControllerB\x03\xe0\x41\x03\"E\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0c\n\x08\x41RCHIVED\x10\x02\x12\x0b\n\x07PENDING\x10\x03\"N\n\nController\x12\x1a\n\x16\x43ONTROLLER_UNSPECIFIED\x10\x00\x12\x0c\n\x08MERCHANT\x10\x01\x12\x16\n\x12YOUTUBE_AFFILIATES\x10\x02:\x90\x01\xea\x41\x8c\x01\n+merchantapi.googleapis.com/ConversionSource\x12\x38\x61\x63\x63ounts/{account}/conversionSources/{conversion_source}*\x11\x63onversionSources2\x10\x63onversionSourceB\r\n\x0bsource_data\"\xef\x04\n\x13\x41ttributionSettings\x12-\n attribution_lookback_window_days\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12q\n\x11\x61ttribution_model\x18\x02 \x01(\x0e\x32Q.google.shopping.merchant.conversions.v1beta.AttributionSettings.AttributionModelB\x03\xe0\x41\x02\x12p\n\x0f\x63onversion_type\x18\x03 \x03(\x0b\x32O.google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionTypeB\x06\xe0\x41\x06\xe0\x41\x05\x1a\x38\n\x0e\x43onversionType\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06report\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\"\x89\x02\n\x10\x41ttributionModel\x12!\n\x1d\x41TTRIBUTION_MODEL_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x43ROSS_CHANNEL_LAST_CLICK\x10\x01\x12\x1c\n\x18\x41\x44S_PREFERRED_LAST_CLICK\x10\x02\x12\x1d\n\x19\x43ROSS_CHANNEL_DATA_DRIVEN\x10\x05\x12\x1d\n\x19\x43ROSS_CHANNEL_FIRST_CLICK\x10\x06\x12\x18\n\x14\x43ROSS_CHANNEL_LINEAR\x10\x07\x12 \n\x1c\x43ROSS_CHANNEL_POSITION_BASED\x10\x08\x12\x1c\n\x18\x43ROSS_CHANNEL_TIME_DECAY\x10\t\"\xae\x01\n\x13GoogleAnalyticsLink\x12\x1b\n\x0bproperty_id\x18\x01 \x01(\x03\x42\x06\xe0\x41\x02\xe0\x41\x05\x12\x63\n\x14\x61ttribution_settings\x18\x02 \x01(\x0b\x32@.google.shopping.merchant.conversions.v1beta.AttributionSettingsB\x03\xe0\x41\x03\x12\x15\n\x08property\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xd1\x01\n\x19MerchantCenterDestination\x12\x18\n\x0b\x64\x65stination\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x63\n\x14\x61ttribution_settings\x18\x02 \x01(\x0b\x32@.google.shopping.merchant.conversions.v1beta.AttributionSettingsB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rcurrency_code\x18\x04 \x01(\tB\x03\xe0\x41\x02\"\xc3\x01\n\x1d\x43reateConversionSourceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+merchantapi.googleapis.com/ConversionSource\x12]\n\x11\x63onversion_source\x18\x02 \x01(\x0b\x32=.google.shopping.merchant.conversions.v1beta.ConversionSourceB\x03\xe0\x41\x02\"\xb4\x01\n\x1dUpdateConversionSourceRequest\x12]\n\x11\x63onversion_source\x18\x01 \x01(\x0b\x32=.google.shopping.merchant.conversions.v1beta.ConversionSourceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"b\n\x1d\x44\x65leteConversionSourceRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+merchantapi.googleapis.com/ConversionSource\"d\n\x1fUndeleteConversionSourceRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+merchantapi.googleapis.com/ConversionSource\"_\n\x1aGetConversionSourceRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+merchantapi.googleapis.com/ConversionSource\"\xaf\x01\n\x1cListConversionSourcesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+merchantapi.googleapis.com/ConversionSource\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cshow_deleted\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x93\x01\n\x1dListConversionSourcesResponse\x12Y\n\x12\x63onversion_sources\x18\x01 \x03(\x0b\x32=.google.shopping.merchant.conversions.v1beta.ConversionSource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xd2\x0c\n\x18\x43onversionSourcesService\x12\x94\x02\n\x16\x43reateConversionSource\x12J.google.shopping.merchant.conversions.v1beta.CreateConversionSourceRequest\x1a=.google.shopping.merchant.conversions.v1beta.ConversionSource\"o\xda\x41\x18parent,conversion_source\x82\xd3\xe4\x93\x02N\"9/conversions/v1beta/{parent=accounts/*}/conversionSources:\x11\x63onversion_source\x12\xac\x02\n\x16UpdateConversionSource\x12J.google.shopping.merchant.conversions.v1beta.UpdateConversionSourceRequest\x1a=.google.shopping.merchant.conversions.v1beta.ConversionSource\"\x86\x01\xda\x41\x1d\x63onversion_source,update_mask\x82\xd3\xe4\x93\x02`2K/conversions/v1beta/{conversion_source.name=accounts/*/conversionSources/*}:\x11\x63onversion_source\x12\xc6\x01\n\x16\x44\x65leteConversionSource\x12J.google.shopping.merchant.conversions.v1beta.DeleteConversionSourceRequest\x1a\x16.google.protobuf.Empty\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/conversions/v1beta/{name=accounts/*/conversionSources/*}\x12\xf6\x01\n\x18UndeleteConversionSource\x12L.google.shopping.merchant.conversions.v1beta.UndeleteConversionSourceRequest\x1a=.google.shopping.merchant.conversions.v1beta.ConversionSource\"M\x82\xd3\xe4\x93\x02G\"B/conversions/v1beta/{name=accounts/*/conversionSources/*}:undelete:\x01*\x12\xe7\x01\n\x13GetConversionSource\x12G.google.shopping.merchant.conversions.v1beta.GetConversionSourceRequest\x1a=.google.shopping.merchant.conversions.v1beta.ConversionSource\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/conversions/v1beta/{name=accounts/*/conversionSources/*}\x12\xfa\x01\n\x15ListConversionSources\x12I.google.shopping.merchant.conversions.v1beta.ListConversionSourcesRequest\x1aJ.google.shopping.merchant.conversions.v1beta.ListConversionSourcesResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/conversions/v1beta/{parent=accounts/*}/conversionSources\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xdf\x01\n/com.google.shopping.merchant.conversions.v1betaB\x16\x43onversionSourcesProtoP\x01ZWcloud.google.com/go/shopping/merchant/conversions/apiv1beta/conversionspb;conversionspb\xea\x41\x38\n\"merchantapi.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}b\x06proto3"
17
+
18
+ pool = Google::Protobuf::DescriptorPool.generated_pool
19
+
20
+ begin
21
+ pool.add_serialized_file(descriptor_data)
22
+ rescue TypeError
23
+ # Compatibility code: will be removed in the next major version.
24
+ require 'google/protobuf/descriptor_pb'
25
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
+ parsed.clear_dependency
27
+ serialized = parsed.class.encode(parsed)
28
+ file = pool.add_serialized_file(serialized)
29
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
+ imports = [
31
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
32
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
33
+ ]
34
+ imports.each do |type_name, expected_filename|
35
+ import_file = pool.lookup(type_name).file_descriptor
36
+ if import_file.name != expected_filename
37
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
38
+ end
39
+ end
40
+ warn "Each proto file must use a consistent fully-qualified name."
41
+ warn "This will become an error in the next major version."
42
+ end
43
+
44
+ module Google
45
+ module Shopping
46
+ module Merchant
47
+ module Conversions
48
+ module V1beta
49
+ ConversionSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.ConversionSource").msgclass
50
+ ConversionSource::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.ConversionSource.State").enummodule
51
+ ConversionSource::Controller = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.ConversionSource.Controller").enummodule
52
+ AttributionSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.AttributionSettings").msgclass
53
+ AttributionSettings::ConversionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.AttributionSettings.ConversionType").msgclass
54
+ AttributionSettings::AttributionModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.AttributionSettings.AttributionModel").enummodule
55
+ GoogleAnalyticsLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.GoogleAnalyticsLink").msgclass
56
+ MerchantCenterDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.MerchantCenterDestination").msgclass
57
+ CreateConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.CreateConversionSourceRequest").msgclass
58
+ UpdateConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.UpdateConversionSourceRequest").msgclass
59
+ DeleteConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.DeleteConversionSourceRequest").msgclass
60
+ UndeleteConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.UndeleteConversionSourceRequest").msgclass
61
+ GetConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.GetConversionSourceRequest").msgclass
62
+ ListConversionSourcesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.ListConversionSourcesRequest").msgclass
63
+ ListConversionSourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1beta.ListConversionSourcesResponse").msgclass
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end