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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service/client.rb +956 -0
  6. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service/credentials.rb +49 -0
  7. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service/paths.rb +66 -0
  8. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service/rest/client.rb +888 -0
  9. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service/rest/service_stub.rb +452 -0
  10. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service/rest.rb +54 -0
  11. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service.rb +57 -0
  12. data/lib/google/shopping/merchant/conversions/v1/conversionsources_pb.rb +68 -0
  13. data/lib/google/shopping/merchant/conversions/v1/conversionsources_services_pb.rb +62 -0
  14. data/lib/google/shopping/merchant/conversions/v1/rest.rb +39 -0
  15. data/lib/google/shopping/merchant/conversions/v1/version.rb +7 -2
  16. data/lib/google/shopping/merchant/conversions/v1.rb +47 -0
  17. data/lib/google-shopping-merchant-conversions-v1.rb +21 -0
  18. data/proto_docs/README.md +4 -0
  19. data/proto_docs/google/api/client.rb +473 -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 +227 -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/v1/conversionsources.rb +289 -0
  28. metadata +72 -9
@@ -0,0 +1,452 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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/v1/conversionsources_pb"
20
+
21
+ module Google
22
+ module Shopping
23
+ module Merchant
24
+ module Conversions
25
+ module V1
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
+ # @private
35
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
36
+ # These require statements are intentionally placed here to initialize
37
+ # the REST modules only when it's required.
38
+ require "gapic/rest"
39
+
40
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
41
+ endpoint_template: endpoint_template,
42
+ universe_domain: universe_domain,
43
+ credentials: credentials,
44
+ numeric_enums: true,
45
+ service_name: self.class,
46
+ raise_faraday_errors: false,
47
+ logger: logger
48
+ end
49
+
50
+ ##
51
+ # The effective universe domain
52
+ #
53
+ # @return [String]
54
+ #
55
+ def universe_domain
56
+ @client_stub.universe_domain
57
+ end
58
+
59
+ ##
60
+ # The effective endpoint
61
+ #
62
+ # @return [String]
63
+ #
64
+ def endpoint
65
+ @client_stub.endpoint
66
+ end
67
+
68
+ ##
69
+ # The logger used for request/response debug logging.
70
+ #
71
+ # @return [Logger]
72
+ #
73
+ def logger stub: false
74
+ stub ? @client_stub.stub_logger : @client_stub.logger
75
+ end
76
+
77
+ ##
78
+ # Baseline implementation for the create_conversion_source REST call
79
+ #
80
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1::CreateConversionSourceRequest]
81
+ # A request object representing the call parameters. Required.
82
+ # @param options [::Gapic::CallOptions]
83
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
84
+ #
85
+ # @yield [result, operation] Access the result along with the TransportOperation object
86
+ # @yieldparam result [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
87
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
88
+ #
89
+ # @return [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
90
+ # A result object deserialized from the server's reply
91
+ def create_conversion_source request_pb, options = nil
92
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
93
+
94
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_conversion_source_request request_pb
95
+ query_string_params = if query_string_params.any?
96
+ query_string_params.to_h { |p| p.split "=", 2 }
97
+ else
98
+ {}
99
+ end
100
+
101
+ response = @client_stub.make_http_request(
102
+ verb,
103
+ uri: uri,
104
+ body: body || "",
105
+ params: query_string_params,
106
+ method_name: "create_conversion_source",
107
+ options: options
108
+ )
109
+ operation = ::Gapic::Rest::TransportOperation.new response
110
+ result = ::Google::Shopping::Merchant::Conversions::V1::ConversionSource.decode_json response.body, ignore_unknown_fields: true
111
+ catch :response do
112
+ yield result, operation if block_given?
113
+ result
114
+ end
115
+ end
116
+
117
+ ##
118
+ # Baseline implementation for the update_conversion_source REST call
119
+ #
120
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1::UpdateConversionSourceRequest]
121
+ # A request object representing the call parameters. Required.
122
+ # @param options [::Gapic::CallOptions]
123
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
124
+ #
125
+ # @yield [result, operation] Access the result along with the TransportOperation object
126
+ # @yieldparam result [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
127
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
128
+ #
129
+ # @return [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
130
+ # A result object deserialized from the server's reply
131
+ def update_conversion_source request_pb, options = nil
132
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
133
+
134
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_conversion_source_request request_pb
135
+ query_string_params = if query_string_params.any?
136
+ query_string_params.to_h { |p| p.split "=", 2 }
137
+ else
138
+ {}
139
+ end
140
+
141
+ response = @client_stub.make_http_request(
142
+ verb,
143
+ uri: uri,
144
+ body: body || "",
145
+ params: query_string_params,
146
+ method_name: "update_conversion_source",
147
+ options: options
148
+ )
149
+ operation = ::Gapic::Rest::TransportOperation.new response
150
+ result = ::Google::Shopping::Merchant::Conversions::V1::ConversionSource.decode_json response.body, ignore_unknown_fields: true
151
+ catch :response do
152
+ yield result, operation if block_given?
153
+ result
154
+ end
155
+ end
156
+
157
+ ##
158
+ # Baseline implementation for the delete_conversion_source REST call
159
+ #
160
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1::DeleteConversionSourceRequest]
161
+ # A request object representing the call parameters. Required.
162
+ # @param options [::Gapic::CallOptions]
163
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
164
+ #
165
+ # @yield [result, operation] Access the result along with the TransportOperation object
166
+ # @yieldparam result [::Google::Protobuf::Empty]
167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
168
+ #
169
+ # @return [::Google::Protobuf::Empty]
170
+ # A result object deserialized from the server's reply
171
+ def delete_conversion_source request_pb, options = nil
172
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
173
+
174
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_conversion_source_request request_pb
175
+ query_string_params = if query_string_params.any?
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
+ else
178
+ {}
179
+ end
180
+
181
+ response = @client_stub.make_http_request(
182
+ verb,
183
+ uri: uri,
184
+ body: body || "",
185
+ params: query_string_params,
186
+ method_name: "delete_conversion_source",
187
+ options: options
188
+ )
189
+ operation = ::Gapic::Rest::TransportOperation.new response
190
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
191
+ catch :response do
192
+ yield result, operation if block_given?
193
+ result
194
+ end
195
+ end
196
+
197
+ ##
198
+ # Baseline implementation for the undelete_conversion_source REST call
199
+ #
200
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1::UndeleteConversionSourceRequest]
201
+ # A request object representing the call parameters. Required.
202
+ # @param options [::Gapic::CallOptions]
203
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
204
+ #
205
+ # @yield [result, operation] Access the result along with the TransportOperation object
206
+ # @yieldparam result [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
207
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
208
+ #
209
+ # @return [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
210
+ # A result object deserialized from the server's reply
211
+ def undelete_conversion_source request_pb, options = nil
212
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
213
+
214
+ verb, uri, query_string_params, body = ServiceStub.transcode_undelete_conversion_source_request request_pb
215
+ query_string_params = if query_string_params.any?
216
+ query_string_params.to_h { |p| p.split "=", 2 }
217
+ else
218
+ {}
219
+ end
220
+
221
+ response = @client_stub.make_http_request(
222
+ verb,
223
+ uri: uri,
224
+ body: body || "",
225
+ params: query_string_params,
226
+ method_name: "undelete_conversion_source",
227
+ options: options
228
+ )
229
+ operation = ::Gapic::Rest::TransportOperation.new response
230
+ result = ::Google::Shopping::Merchant::Conversions::V1::ConversionSource.decode_json response.body, ignore_unknown_fields: true
231
+ catch :response do
232
+ yield result, operation if block_given?
233
+ result
234
+ end
235
+ end
236
+
237
+ ##
238
+ # Baseline implementation for the get_conversion_source REST call
239
+ #
240
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1::GetConversionSourceRequest]
241
+ # A request object representing the call parameters. Required.
242
+ # @param options [::Gapic::CallOptions]
243
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
244
+ #
245
+ # @yield [result, operation] Access the result along with the TransportOperation object
246
+ # @yieldparam result [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
247
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
248
+ #
249
+ # @return [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
250
+ # A result object deserialized from the server's reply
251
+ def get_conversion_source request_pb, options = nil
252
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
253
+
254
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_conversion_source_request request_pb
255
+ query_string_params = if query_string_params.any?
256
+ query_string_params.to_h { |p| p.split "=", 2 }
257
+ else
258
+ {}
259
+ end
260
+
261
+ response = @client_stub.make_http_request(
262
+ verb,
263
+ uri: uri,
264
+ body: body || "",
265
+ params: query_string_params,
266
+ method_name: "get_conversion_source",
267
+ options: options
268
+ )
269
+ operation = ::Gapic::Rest::TransportOperation.new response
270
+ result = ::Google::Shopping::Merchant::Conversions::V1::ConversionSource.decode_json response.body, ignore_unknown_fields: true
271
+ catch :response do
272
+ yield result, operation if block_given?
273
+ result
274
+ end
275
+ end
276
+
277
+ ##
278
+ # Baseline implementation for the list_conversion_sources REST call
279
+ #
280
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1::ListConversionSourcesRequest]
281
+ # A request object representing the call parameters. Required.
282
+ # @param options [::Gapic::CallOptions]
283
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
284
+ #
285
+ # @yield [result, operation] Access the result along with the TransportOperation object
286
+ # @yieldparam result [::Google::Shopping::Merchant::Conversions::V1::ListConversionSourcesResponse]
287
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
288
+ #
289
+ # @return [::Google::Shopping::Merchant::Conversions::V1::ListConversionSourcesResponse]
290
+ # A result object deserialized from the server's reply
291
+ def list_conversion_sources request_pb, options = nil
292
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
293
+
294
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_conversion_sources_request request_pb
295
+ query_string_params = if query_string_params.any?
296
+ query_string_params.to_h { |p| p.split "=", 2 }
297
+ else
298
+ {}
299
+ end
300
+
301
+ response = @client_stub.make_http_request(
302
+ verb,
303
+ uri: uri,
304
+ body: body || "",
305
+ params: query_string_params,
306
+ method_name: "list_conversion_sources",
307
+ options: options
308
+ )
309
+ operation = ::Gapic::Rest::TransportOperation.new response
310
+ result = ::Google::Shopping::Merchant::Conversions::V1::ListConversionSourcesResponse.decode_json response.body, ignore_unknown_fields: true
311
+ catch :response do
312
+ yield result, operation if block_given?
313
+ result
314
+ end
315
+ end
316
+
317
+ ##
318
+ # @private
319
+ #
320
+ # GRPC transcoding helper method for the create_conversion_source REST call
321
+ #
322
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1::CreateConversionSourceRequest]
323
+ # A request object representing the call parameters. Required.
324
+ # @return [Array(String, [String, nil], Hash{String => String})]
325
+ # Uri, Body, Query string parameters
326
+ def self.transcode_create_conversion_source_request request_pb
327
+ transcoder = Gapic::Rest::GrpcTranscoder.new
328
+ .with_bindings(
329
+ uri_method: :post,
330
+ uri_template: "/conversions/v1/{parent}/conversionSources",
331
+ body: "conversion_source",
332
+ matches: [
333
+ ["parent", %r{^accounts/[^/]+/?$}, false]
334
+ ]
335
+ )
336
+ transcoder.transcode request_pb
337
+ end
338
+
339
+ ##
340
+ # @private
341
+ #
342
+ # GRPC transcoding helper method for the update_conversion_source REST call
343
+ #
344
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1::UpdateConversionSourceRequest]
345
+ # A request object representing the call parameters. Required.
346
+ # @return [Array(String, [String, nil], Hash{String => String})]
347
+ # Uri, Body, Query string parameters
348
+ def self.transcode_update_conversion_source_request request_pb
349
+ transcoder = Gapic::Rest::GrpcTranscoder.new
350
+ .with_bindings(
351
+ uri_method: :patch,
352
+ uri_template: "/conversions/v1/{conversion_source.name}",
353
+ body: "conversion_source",
354
+ matches: [
355
+ ["conversion_source.name", %r{^accounts/[^/]+/conversionSources/[^/]+/?$}, false]
356
+ ]
357
+ )
358
+ transcoder.transcode request_pb
359
+ end
360
+
361
+ ##
362
+ # @private
363
+ #
364
+ # GRPC transcoding helper method for the delete_conversion_source REST call
365
+ #
366
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1::DeleteConversionSourceRequest]
367
+ # A request object representing the call parameters. Required.
368
+ # @return [Array(String, [String, nil], Hash{String => String})]
369
+ # Uri, Body, Query string parameters
370
+ def self.transcode_delete_conversion_source_request request_pb
371
+ transcoder = Gapic::Rest::GrpcTranscoder.new
372
+ .with_bindings(
373
+ uri_method: :delete,
374
+ uri_template: "/conversions/v1/{name}",
375
+ matches: [
376
+ ["name", %r{^accounts/[^/]+/conversionSources/[^/]+/?$}, false]
377
+ ]
378
+ )
379
+ transcoder.transcode request_pb
380
+ end
381
+
382
+ ##
383
+ # @private
384
+ #
385
+ # GRPC transcoding helper method for the undelete_conversion_source REST call
386
+ #
387
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1::UndeleteConversionSourceRequest]
388
+ # A request object representing the call parameters. Required.
389
+ # @return [Array(String, [String, nil], Hash{String => String})]
390
+ # Uri, Body, Query string parameters
391
+ def self.transcode_undelete_conversion_source_request request_pb
392
+ transcoder = Gapic::Rest::GrpcTranscoder.new
393
+ .with_bindings(
394
+ uri_method: :post,
395
+ uri_template: "/conversions/v1/{name}:undelete",
396
+ body: "*",
397
+ matches: [
398
+ ["name", %r{^accounts/[^/]+/conversionSources/[^/]+/?$}, false]
399
+ ]
400
+ )
401
+ transcoder.transcode request_pb
402
+ end
403
+
404
+ ##
405
+ # @private
406
+ #
407
+ # GRPC transcoding helper method for the get_conversion_source REST call
408
+ #
409
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1::GetConversionSourceRequest]
410
+ # A request object representing the call parameters. Required.
411
+ # @return [Array(String, [String, nil], Hash{String => String})]
412
+ # Uri, Body, Query string parameters
413
+ def self.transcode_get_conversion_source_request request_pb
414
+ transcoder = Gapic::Rest::GrpcTranscoder.new
415
+ .with_bindings(
416
+ uri_method: :get,
417
+ uri_template: "/conversions/v1/{name}",
418
+ matches: [
419
+ ["name", %r{^accounts/[^/]+/conversionSources/[^/]+/?$}, false]
420
+ ]
421
+ )
422
+ transcoder.transcode request_pb
423
+ end
424
+
425
+ ##
426
+ # @private
427
+ #
428
+ # GRPC transcoding helper method for the list_conversion_sources REST call
429
+ #
430
+ # @param request_pb [::Google::Shopping::Merchant::Conversions::V1::ListConversionSourcesRequest]
431
+ # A request object representing the call parameters. Required.
432
+ # @return [Array(String, [String, nil], Hash{String => String})]
433
+ # Uri, Body, Query string parameters
434
+ def self.transcode_list_conversion_sources_request request_pb
435
+ transcoder = Gapic::Rest::GrpcTranscoder.new
436
+ .with_bindings(
437
+ uri_method: :get,
438
+ uri_template: "/conversions/v1/{parent}/conversionSources",
439
+ matches: [
440
+ ["parent", %r{^accounts/[^/]+/?$}, false]
441
+ ]
442
+ )
443
+ transcoder.transcode request_pb
444
+ end
445
+ end
446
+ end
447
+ end
448
+ end
449
+ end
450
+ end
451
+ end
452
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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/v1/version"
24
+
25
+ require "google/shopping/merchant/conversions/v1/conversion_sources_service/credentials"
26
+ require "google/shopping/merchant/conversions/v1/conversion_sources_service/paths"
27
+ require "google/shopping/merchant/conversions/v1/conversion_sources_service/rest/client"
28
+
29
+ module Google
30
+ module Shopping
31
+ module Merchant
32
+ module Conversions
33
+ module V1
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/v1/conversion_sources_service/rest"
40
+ # client = ::Google::Shopping::Merchant::Conversions::V1::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/v1/conversion_sources_service/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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/v1/version"
24
+
25
+ require "google/shopping/merchant/conversions/v1/conversion_sources_service/credentials"
26
+ require "google/shopping/merchant/conversions/v1/conversion_sources_service/paths"
27
+ require "google/shopping/merchant/conversions/v1/conversion_sources_service/client"
28
+ require "google/shopping/merchant/conversions/v1/conversion_sources_service/rest"
29
+
30
+ module Google
31
+ module Shopping
32
+ module Merchant
33
+ module Conversions
34
+ module V1
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/v1/conversion_sources_service"
41
+ # client = ::Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client.new
42
+ #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/shopping/merchant/conversions/v1/conversion_sources_service/rest"
46
+ # client = ::Google::Shopping::Merchant::Conversions::V1::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/v1/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/v1/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 = "\n?google/shopping/merchant/conversions/v1/conversionsources.proto\x12\'google.shopping.merchant.conversions.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 google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9a\x06\n\x10\x43onversionSource\x12\x62\n\x15google_analytics_link\x18\x03 \x01(\x0b\x32<.google.shopping.merchant.conversions.v1.GoogleAnalyticsLinkB\x03\xe0\x41\x05H\x00\x12i\n\x1bmerchant_center_destination\x18\x04 \x01(\x0b\x32\x42.google.shopping.merchant.conversions.v1.MerchantCenterDestinationH\x00\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x08\x12S\n\x05state\x18\x05 \x01(\x0e\x32?.google.shopping.merchant.conversions.v1.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]\n\ncontroller\x18\x07 \x01(\x0e\x32\x44.google.shopping.merchant.conversions.v1.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\"\xe7\x04\n\x13\x41ttributionSettings\x12-\n attribution_lookback_window_days\x18\x01 \x01(\x05\x42\x03\xe0\x41\x02\x12m\n\x11\x61ttribution_model\x18\x02 \x01(\x0e\x32M.google.shopping.merchant.conversions.v1.AttributionSettings.AttributionModelB\x03\xe0\x41\x02\x12l\n\x0f\x63onversion_type\x18\x03 \x03(\x0b\x32K.google.shopping.merchant.conversions.v1.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\"\xaa\x01\n\x13GoogleAnalyticsLink\x12\x1b\n\x0bproperty_id\x18\x01 \x01(\x03\x42\x06\xe0\x41\x02\xe0\x41\x05\x12_\n\x14\x61ttribution_settings\x18\x02 \x01(\x0b\x32<.google.shopping.merchant.conversions.v1.AttributionSettingsB\x03\xe0\x41\x03\x12\x15\n\x08property\x18\x03 \x01(\tB\x03\xe0\x41\x03\"\xcd\x01\n\x19MerchantCenterDestination\x12\x18\n\x0b\x64\x65stination\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12_\n\x14\x61ttribution_settings\x18\x02 \x01(\x0b\x32<.google.shopping.merchant.conversions.v1.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\"\xbf\x01\n\x1d\x43reateConversionSourceRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\x12+merchantapi.googleapis.com/ConversionSource\x12Y\n\x11\x63onversion_source\x18\x02 \x01(\x0b\x32\x39.google.shopping.merchant.conversions.v1.ConversionSourceB\x03\xe0\x41\x02\"\xb0\x01\n\x1dUpdateConversionSourceRequest\x12Y\n\x11\x63onversion_source\x18\x01 \x01(\x0b\x32\x39.google.shopping.merchant.conversions.v1.ConversionSourceB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"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\"\x8f\x01\n\x1dListConversionSourcesResponse\x12U\n\x12\x63onversion_sources\x18\x01 \x03(\x0b\x32\x39.google.shopping.merchant.conversions.v1.ConversionSource\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x8e\x0c\n\x18\x43onversionSourcesService\x12\x88\x02\n\x16\x43reateConversionSource\x12\x46.google.shopping.merchant.conversions.v1.CreateConversionSourceRequest\x1a\x39.google.shopping.merchant.conversions.v1.ConversionSource\"k\xda\x41\x18parent,conversion_source\x82\xd3\xe4\x93\x02J\"5/conversions/v1/{parent=accounts/*}/conversionSources:\x11\x63onversion_source\x12\xa0\x02\n\x16UpdateConversionSource\x12\x46.google.shopping.merchant.conversions.v1.UpdateConversionSourceRequest\x1a\x39.google.shopping.merchant.conversions.v1.ConversionSource\"\x82\x01\xda\x41\x1d\x63onversion_source,update_mask\x82\xd3\xe4\x93\x02\\2G/conversions/v1/{conversion_source.name=accounts/*/conversionSources/*}:\x11\x63onversion_source\x12\xbe\x01\n\x16\x44\x65leteConversionSource\x12\x46.google.shopping.merchant.conversions.v1.DeleteConversionSourceRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/conversions/v1/{name=accounts/*/conversionSources/*}\x12\xea\x01\n\x18UndeleteConversionSource\x12H.google.shopping.merchant.conversions.v1.UndeleteConversionSourceRequest\x1a\x39.google.shopping.merchant.conversions.v1.ConversionSource\"I\x82\xd3\xe4\x93\x02\x43\">/conversions/v1/{name=accounts/*/conversionSources/*}:undelete:\x01*\x12\xdb\x01\n\x13GetConversionSource\x12\x43.google.shopping.merchant.conversions.v1.GetConversionSourceRequest\x1a\x39.google.shopping.merchant.conversions.v1.ConversionSource\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/conversions/v1/{name=accounts/*/conversionSources/*}\x12\xee\x01\n\x15ListConversionSources\x12\x45.google.shopping.merchant.conversions.v1.ListConversionSourcesRequest\x1a\x46.google.shopping.merchant.conversions.v1.ListConversionSourcesResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/conversions/v1/{parent=accounts/*}/conversionSources\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xd9\x02\n+com.google.shopping.merchant.conversions.v1B\x16\x43onversionSourcesProtoP\x01ZScloud.google.com/go/shopping/merchant/conversions/apiv1/conversionspb;conversionspb\xaa\x02\'Google.Shopping.Merchant.Conversions.V1\xca\x02\'Google\\Shopping\\Merchant\\Conversions\\V1\xea\x02+Google::Shopping::Merchant::Conversions::V1\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 V1
49
+ ConversionSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.ConversionSource").msgclass
50
+ ConversionSource::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.ConversionSource.State").enummodule
51
+ ConversionSource::Controller = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.ConversionSource.Controller").enummodule
52
+ AttributionSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.AttributionSettings").msgclass
53
+ AttributionSettings::ConversionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.AttributionSettings.ConversionType").msgclass
54
+ AttributionSettings::AttributionModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.AttributionSettings.AttributionModel").enummodule
55
+ GoogleAnalyticsLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.GoogleAnalyticsLink").msgclass
56
+ MerchantCenterDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.MerchantCenterDestination").msgclass
57
+ CreateConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.CreateConversionSourceRequest").msgclass
58
+ UpdateConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.UpdateConversionSourceRequest").msgclass
59
+ DeleteConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.DeleteConversionSourceRequest").msgclass
60
+ UndeleteConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.UndeleteConversionSourceRequest").msgclass
61
+ GetConversionSourceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.GetConversionSourceRequest").msgclass
62
+ ListConversionSourcesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.ListConversionSourcesRequest").msgclass
63
+ ListConversionSourcesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.conversions.v1.ListConversionSourcesResponse").msgclass
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end