google-shopping-css-v1 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/shopping/css/v1/accounts_service/client.rb +2 -2
- data/lib/google/shopping/css/v1/accounts_service/rest/client.rb +2 -2
- data/lib/google/shopping/css/v1/css_product_inputs_pb.rb +4 -1
- data/lib/google/shopping/css/v1/css_product_inputs_service/client.rb +122 -5
- data/lib/google/shopping/css/v1/css_product_inputs_service/rest/client.rb +115 -5
- data/lib/google/shopping/css/v1/css_product_inputs_service/rest/service_stub.rb +62 -0
- data/lib/google/shopping/css/v1/css_product_inputs_services_pb.rb +5 -0
- data/lib/google/shopping/css/v1/version.rb +1 -1
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/shopping/css/v1/accounts.rb +2 -2
- data/proto_docs/google/shopping/css/v1/css_product_common.rb +10 -10
- data/proto_docs/google/shopping/css/v1/css_product_inputs.rb +38 -5
- data/proto_docs/google/shopping/css/v1/css_products.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74e07f8af0e05f619c3cbf836670f92333732648d9cfe477326c016561b21aaf
|
4
|
+
data.tar.gz: 755475619e401b0041e55f58cd585ffc9321b8a2e22622e9a8fbcd3143fbfc65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff70dc1139a76630602a3525ea5f4482c6f26b5e06ac1ce6cabeffbd59145404a2de5f94ebb980d77c26db4f1c8e9b5f187fb1f52c59d5fa656e998907232c74
|
7
|
+
data.tar.gz: 514fd167c5375f08e9a7e6c347d6b96d229f2258d0e7e63cd8bdd08fb08340a16c7fc57476b7dd0322c675c129e9cc76ccf888b9145b738977a94e640c58329a
|
@@ -225,8 +225,8 @@ module Google
|
|
225
225
|
# @param page_size [::Integer]
|
226
226
|
# Optional. The maximum number of accounts to return. The service may return
|
227
227
|
# fewer than this value. If unspecified, at most 50 accounts will be
|
228
|
-
# returned. The maximum value is
|
229
|
-
#
|
228
|
+
# returned. The maximum value is 100; values above 100 will be coerced to
|
229
|
+
# 100.
|
230
230
|
# @param page_token [::String]
|
231
231
|
# Optional. A page token, received from a previous `ListChildAccounts` call.
|
232
232
|
# Provide this to retrieve the subsequent page.
|
@@ -218,8 +218,8 @@ module Google
|
|
218
218
|
# @param page_size [::Integer]
|
219
219
|
# Optional. The maximum number of accounts to return. The service may return
|
220
220
|
# fewer than this value. If unspecified, at most 50 accounts will be
|
221
|
-
# returned. The maximum value is
|
222
|
-
#
|
221
|
+
# returned. The maximum value is 100; values above 100 will be coerced to
|
222
|
+
# 100.
|
223
223
|
# @param page_token [::String]
|
224
224
|
# Optional. A page token, received from a previous `ListChildAccounts` call.
|
225
225
|
# Provide this to retrieve the subsequent page.
|
@@ -9,12 +9,13 @@ require 'google/api/client_pb'
|
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
10
|
require 'google/api/resource_pb'
|
11
11
|
require 'google/protobuf/empty_pb'
|
12
|
+
require 'google/protobuf/field_mask_pb'
|
12
13
|
require 'google/protobuf/timestamp_pb'
|
13
14
|
require 'google/shopping/css/v1/css_product_common_pb'
|
14
15
|
require 'google/shopping/type/types_pb'
|
15
16
|
|
16
17
|
|
17
|
-
descriptor_data = "\n/google/shopping/css/v1/css_product_inputs.proto\x12\x16google.shopping.css.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a/google/shopping/css/v1/css_product_common.proto\x1a google/shopping/type/types.proto\"\
|
18
|
+
descriptor_data = "\n/google/shopping/css/v1/css_product_inputs.proto\x12\x16google.shopping.css.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a/google/shopping/css/v1/css_product_common.proto\x1a google/shopping/type/types.proto\"\xa2\x03\n\x0f\x43ssProductInput\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x17\n\nfinal_name\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fraw_provided_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10\x63ontent_language\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nfeed_label\x18\x05 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x0e\x66reshness_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01\x12\x36\n\nattributes\x18\x07 \x01(\x0b\x32\".google.shopping.css.v1.Attributes\x12@\n\x11\x63ustom_attributes\x18\x08 \x03(\x0b\x32%.google.shopping.type.CustomAttribute:`\xea\x41]\n\"css.googleapis.com/CssProductInput\x12\x37\x61\x63\x63ounts/{account}/cssProductInputs/{css_product_input}\"\xbb\x01\n\x1cInsertCssProductInputRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"css.googleapis.com/CssProductInput\x12G\n\x11\x63ss_product_input\x18\x02 \x01(\x0b\x32\'.google.shopping.css.v1.CssProductInputB\x03\xe0\x41\x02\x12\x16\n\x07\x66\x65\x65\x64_id\x18\x03 \x01(\x03\x42\x05\x18\x01\xe0\x41\x01\"\x98\x01\n\x1cUpdateCssProductInputRequest\x12G\n\x11\x63ss_product_input\x18\x01 \x01(\x0b\x32\'.google.shopping.css.v1.CssProductInputB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x94\x01\n\x1c\x44\x65leteCssProductInputRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"css.googleapis.com/CssProductInput\x12!\n\x14supplemental_feed_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x17\n\x15_supplemental_feed_id2\xb0\x05\n\x17\x43ssProductInputsService\x12\xc2\x01\n\x15InsertCssProductInput\x12\x34.google.shopping.css.v1.InsertCssProductInputRequest\x1a\'.google.shopping.css.v1.CssProductInput\"J\x82\xd3\xe4\x93\x02\x44\"//v1/{parent=accounts/*}/cssProductInputs:insert:\x11\x63ss_product_input\x12\xed\x01\n\x15UpdateCssProductInput\x12\x34.google.shopping.css.v1.UpdateCssProductInputRequest\x1a\'.google.shopping.css.v1.CssProductInput\"u\xda\x41\x1d\x63ss_product_input,update_mask\x82\xd3\xe4\x93\x02O2:/v1/{css_product_input.name=accounts/*/cssProductInputs/*}:\x11\x63ss_product_input\x12\x9e\x01\n\x15\x44\x65leteCssProductInput\x12\x34.google.shopping.css.v1.DeleteCssProductInputRequest\x1a\x16.google.protobuf.Empty\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02**(/v1/{name=accounts/*/cssProductInputs/*}\x1a?\xca\x41\x12\x63ss.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xb7\x01\n\x1a\x63om.google.shopping.css.v1B\x15\x43ssProductInputsProtoP\x01Z2cloud.google.com/go/shopping/css/apiv1/csspb;csspb\xaa\x02\x16Google.Shopping.Css.V1\xca\x02\x16Google\\Shopping\\Css\\V1\xea\x02\x19Google::Shopping::Css::V1b\x06proto3"
|
18
19
|
|
19
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
21
|
|
@@ -32,6 +33,7 @@ rescue TypeError
|
|
32
33
|
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
33
34
|
["google.shopping.css.v1.Attributes", "google/shopping/css/v1/css_product_common.proto"],
|
34
35
|
["google.shopping.type.CustomAttribute", "google/shopping/type/types.proto"],
|
36
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
35
37
|
]
|
36
38
|
imports.each do |type_name, expected_filename|
|
37
39
|
import_file = pool.lookup(type_name).file_descriptor
|
@@ -49,6 +51,7 @@ module Google
|
|
49
51
|
module V1
|
50
52
|
CssProductInput = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.CssProductInput").msgclass
|
51
53
|
InsertCssProductInputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.InsertCssProductInputRequest").msgclass
|
54
|
+
UpdateCssProductInputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.UpdateCssProductInputRequest").msgclass
|
52
55
|
DeleteCssProductInputRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.css.v1.DeleteCssProductInputRequest").msgclass
|
53
56
|
end
|
54
57
|
end
|
@@ -73,6 +73,8 @@ module Google
|
|
73
73
|
|
74
74
|
default_config.rpcs.insert_css_product_input.timeout = 60.0
|
75
75
|
|
76
|
+
default_config.rpcs.update_css_product_input.timeout = 60.0
|
77
|
+
|
76
78
|
default_config.rpcs.delete_css_product_input.timeout = 60.0
|
77
79
|
|
78
80
|
default_config
|
@@ -217,11 +219,13 @@ module Google
|
|
217
219
|
# @param css_product_input [::Google::Shopping::Css::V1::CssProductInput, ::Hash]
|
218
220
|
# Required. The CSS Product Input to insert.
|
219
221
|
# @param feed_id [::Integer]
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
222
|
+
# Optional. DEPRECATED. Feed id is not required for CSS Products.
|
223
|
+
# The primary or supplemental feed id. If CSS Product already exists and
|
224
|
+
# feed id provided is different, then the CSS Product will be moved to a
|
225
|
+
# new feed.
|
226
|
+
# Note: For now, CSSs do not need to provide feed ids as we create
|
227
|
+
# feeds on the fly.
|
228
|
+
# We do not have supplemental feed support for CSS Products yet.
|
225
229
|
#
|
226
230
|
# @yield [response, operation] Access the result along with the RPC operation
|
227
231
|
# @yieldparam response [::Google::Shopping::Css::V1::CssProductInput]
|
@@ -287,6 +291,112 @@ module Google
|
|
287
291
|
raise ::Google::Cloud::Error.from_error(e)
|
288
292
|
end
|
289
293
|
|
294
|
+
##
|
295
|
+
# Updates the existing Css Product input in your CSS Center account.
|
296
|
+
#
|
297
|
+
# After inserting, updating, or deleting a CSS Product input, it may take
|
298
|
+
# several minutes before the processed Css Product can be retrieved.
|
299
|
+
#
|
300
|
+
# @overload update_css_product_input(request, options = nil)
|
301
|
+
# Pass arguments to `update_css_product_input` via a request object, either of type
|
302
|
+
# {::Google::Shopping::Css::V1::UpdateCssProductInputRequest} or an equivalent Hash.
|
303
|
+
#
|
304
|
+
# @param request [::Google::Shopping::Css::V1::UpdateCssProductInputRequest, ::Hash]
|
305
|
+
# A request object representing the call parameters. Required. To specify no
|
306
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
307
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
308
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
309
|
+
#
|
310
|
+
# @overload update_css_product_input(css_product_input: nil, update_mask: nil)
|
311
|
+
# Pass arguments to `update_css_product_input` via keyword arguments. Note that at
|
312
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
313
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
314
|
+
#
|
315
|
+
# @param css_product_input [::Google::Shopping::Css::V1::CssProductInput, ::Hash]
|
316
|
+
# Required. The CSS product input resource to update. Information you submit
|
317
|
+
# will be applied to the processed CSS product as well.
|
318
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
319
|
+
# The list of CSS product attributes to be updated.
|
320
|
+
#
|
321
|
+
# If the update mask is omitted, then it is treated as implied field mask
|
322
|
+
# equivalent to all fields that are populated (have a non-empty value).
|
323
|
+
#
|
324
|
+
# Attributes specified in the update mask without a value specified in the
|
325
|
+
# body will be deleted from the CSS product.
|
326
|
+
#
|
327
|
+
# Update mask can only be specified for top level fields in
|
328
|
+
# attributes and custom attributes.
|
329
|
+
#
|
330
|
+
# To specify the update mask for custom attributes you need to add the
|
331
|
+
# `custom_attribute.` prefix.
|
332
|
+
#
|
333
|
+
# Providing special "*" value for full CSS product replacement is not
|
334
|
+
# supported.
|
335
|
+
#
|
336
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
337
|
+
# @yieldparam response [::Google::Shopping::Css::V1::CssProductInput]
|
338
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
339
|
+
#
|
340
|
+
# @return [::Google::Shopping::Css::V1::CssProductInput]
|
341
|
+
#
|
342
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
343
|
+
#
|
344
|
+
# @example Basic example
|
345
|
+
# require "google/shopping/css/v1"
|
346
|
+
#
|
347
|
+
# # Create a client object. The client can be reused for multiple calls.
|
348
|
+
# client = Google::Shopping::Css::V1::CssProductInputsService::Client.new
|
349
|
+
#
|
350
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
351
|
+
# request = Google::Shopping::Css::V1::UpdateCssProductInputRequest.new
|
352
|
+
#
|
353
|
+
# # Call the update_css_product_input method.
|
354
|
+
# result = client.update_css_product_input request
|
355
|
+
#
|
356
|
+
# # The returned object is of type Google::Shopping::Css::V1::CssProductInput.
|
357
|
+
# p result
|
358
|
+
#
|
359
|
+
def update_css_product_input request, options = nil
|
360
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
361
|
+
|
362
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Css::V1::UpdateCssProductInputRequest
|
363
|
+
|
364
|
+
# Converts hash and nil to an options object
|
365
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
366
|
+
|
367
|
+
# Customize the options with defaults
|
368
|
+
metadata = @config.rpcs.update_css_product_input.metadata.to_h
|
369
|
+
|
370
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
371
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
372
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
373
|
+
gapic_version: ::Google::Shopping::Css::V1::VERSION
|
374
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
375
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
376
|
+
|
377
|
+
header_params = {}
|
378
|
+
if request.css_product_input&.name
|
379
|
+
header_params["css_product_input.name"] = request.css_product_input.name
|
380
|
+
end
|
381
|
+
|
382
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
383
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
384
|
+
|
385
|
+
options.apply_defaults timeout: @config.rpcs.update_css_product_input.timeout,
|
386
|
+
metadata: metadata,
|
387
|
+
retry_policy: @config.rpcs.update_css_product_input.retry_policy
|
388
|
+
|
389
|
+
options.apply_defaults timeout: @config.timeout,
|
390
|
+
metadata: @config.metadata,
|
391
|
+
retry_policy: @config.retry_policy
|
392
|
+
|
393
|
+
@css_product_inputs_service_stub.call_rpc :update_css_product_input, request, options: options do |response, operation|
|
394
|
+
yield response, operation if block_given?
|
395
|
+
end
|
396
|
+
rescue ::GRPC::BadStatus => e
|
397
|
+
raise ::Google::Cloud::Error.from_error(e)
|
398
|
+
end
|
399
|
+
|
290
400
|
##
|
291
401
|
# Deletes a CSS Product input from your CSS Center account.
|
292
402
|
#
|
@@ -546,6 +656,11 @@ module Google
|
|
546
656
|
#
|
547
657
|
attr_reader :insert_css_product_input
|
548
658
|
##
|
659
|
+
# RPC-specific configuration for `update_css_product_input`
|
660
|
+
# @return [::Gapic::Config::Method]
|
661
|
+
#
|
662
|
+
attr_reader :update_css_product_input
|
663
|
+
##
|
549
664
|
# RPC-specific configuration for `delete_css_product_input`
|
550
665
|
# @return [::Gapic::Config::Method]
|
551
666
|
#
|
@@ -555,6 +670,8 @@ module Google
|
|
555
670
|
def initialize parent_rpcs = nil
|
556
671
|
insert_css_product_input_config = parent_rpcs.insert_css_product_input if parent_rpcs.respond_to? :insert_css_product_input
|
557
672
|
@insert_css_product_input = ::Gapic::Config::Method.new insert_css_product_input_config
|
673
|
+
update_css_product_input_config = parent_rpcs.update_css_product_input if parent_rpcs.respond_to? :update_css_product_input
|
674
|
+
@update_css_product_input = ::Gapic::Config::Method.new update_css_product_input_config
|
558
675
|
delete_css_product_input_config = parent_rpcs.delete_css_product_input if parent_rpcs.respond_to? :delete_css_product_input
|
559
676
|
@delete_css_product_input = ::Gapic::Config::Method.new delete_css_product_input_config
|
560
677
|
|
@@ -75,6 +75,8 @@ module Google
|
|
75
75
|
|
76
76
|
default_config.rpcs.insert_css_product_input.timeout = 60.0
|
77
77
|
|
78
|
+
default_config.rpcs.update_css_product_input.timeout = 60.0
|
79
|
+
|
78
80
|
default_config.rpcs.delete_css_product_input.timeout = 60.0
|
79
81
|
|
80
82
|
default_config
|
@@ -210,11 +212,13 @@ module Google
|
|
210
212
|
# @param css_product_input [::Google::Shopping::Css::V1::CssProductInput, ::Hash]
|
211
213
|
# Required. The CSS Product Input to insert.
|
212
214
|
# @param feed_id [::Integer]
|
213
|
-
#
|
214
|
-
#
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
215
|
+
# Optional. DEPRECATED. Feed id is not required for CSS Products.
|
216
|
+
# The primary or supplemental feed id. If CSS Product already exists and
|
217
|
+
# feed id provided is different, then the CSS Product will be moved to a
|
218
|
+
# new feed.
|
219
|
+
# Note: For now, CSSs do not need to provide feed ids as we create
|
220
|
+
# feeds on the fly.
|
221
|
+
# We do not have supplemental feed support for CSS Products yet.
|
218
222
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
219
223
|
# @yieldparam result [::Google::Shopping::Css::V1::CssProductInput]
|
220
224
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -273,6 +277,105 @@ module Google
|
|
273
277
|
raise ::Google::Cloud::Error.from_error(e)
|
274
278
|
end
|
275
279
|
|
280
|
+
##
|
281
|
+
# Updates the existing Css Product input in your CSS Center account.
|
282
|
+
#
|
283
|
+
# After inserting, updating, or deleting a CSS Product input, it may take
|
284
|
+
# several minutes before the processed Css Product can be retrieved.
|
285
|
+
#
|
286
|
+
# @overload update_css_product_input(request, options = nil)
|
287
|
+
# Pass arguments to `update_css_product_input` via a request object, either of type
|
288
|
+
# {::Google::Shopping::Css::V1::UpdateCssProductInputRequest} or an equivalent Hash.
|
289
|
+
#
|
290
|
+
# @param request [::Google::Shopping::Css::V1::UpdateCssProductInputRequest, ::Hash]
|
291
|
+
# A request object representing the call parameters. Required. To specify no
|
292
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
293
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
294
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
295
|
+
#
|
296
|
+
# @overload update_css_product_input(css_product_input: nil, update_mask: nil)
|
297
|
+
# Pass arguments to `update_css_product_input` via keyword arguments. Note that at
|
298
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
299
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
300
|
+
#
|
301
|
+
# @param css_product_input [::Google::Shopping::Css::V1::CssProductInput, ::Hash]
|
302
|
+
# Required. The CSS product input resource to update. Information you submit
|
303
|
+
# will be applied to the processed CSS product as well.
|
304
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
305
|
+
# The list of CSS product attributes to be updated.
|
306
|
+
#
|
307
|
+
# If the update mask is omitted, then it is treated as implied field mask
|
308
|
+
# equivalent to all fields that are populated (have a non-empty value).
|
309
|
+
#
|
310
|
+
# Attributes specified in the update mask without a value specified in the
|
311
|
+
# body will be deleted from the CSS product.
|
312
|
+
#
|
313
|
+
# Update mask can only be specified for top level fields in
|
314
|
+
# attributes and custom attributes.
|
315
|
+
#
|
316
|
+
# To specify the update mask for custom attributes you need to add the
|
317
|
+
# `custom_attribute.` prefix.
|
318
|
+
#
|
319
|
+
# Providing special "*" value for full CSS product replacement is not
|
320
|
+
# supported.
|
321
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
322
|
+
# @yieldparam result [::Google::Shopping::Css::V1::CssProductInput]
|
323
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
324
|
+
#
|
325
|
+
# @return [::Google::Shopping::Css::V1::CssProductInput]
|
326
|
+
#
|
327
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
328
|
+
#
|
329
|
+
# @example Basic example
|
330
|
+
# require "google/shopping/css/v1"
|
331
|
+
#
|
332
|
+
# # Create a client object. The client can be reused for multiple calls.
|
333
|
+
# client = Google::Shopping::Css::V1::CssProductInputsService::Rest::Client.new
|
334
|
+
#
|
335
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
336
|
+
# request = Google::Shopping::Css::V1::UpdateCssProductInputRequest.new
|
337
|
+
#
|
338
|
+
# # Call the update_css_product_input method.
|
339
|
+
# result = client.update_css_product_input request
|
340
|
+
#
|
341
|
+
# # The returned object is of type Google::Shopping::Css::V1::CssProductInput.
|
342
|
+
# p result
|
343
|
+
#
|
344
|
+
def update_css_product_input request, options = nil
|
345
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
346
|
+
|
347
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Css::V1::UpdateCssProductInputRequest
|
348
|
+
|
349
|
+
# Converts hash and nil to an options object
|
350
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
351
|
+
|
352
|
+
# Customize the options with defaults
|
353
|
+
call_metadata = @config.rpcs.update_css_product_input.metadata.to_h
|
354
|
+
|
355
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
356
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
357
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
358
|
+
gapic_version: ::Google::Shopping::Css::V1::VERSION,
|
359
|
+
transports_version_send: [:rest]
|
360
|
+
|
361
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
362
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
363
|
+
|
364
|
+
options.apply_defaults timeout: @config.rpcs.update_css_product_input.timeout,
|
365
|
+
metadata: call_metadata,
|
366
|
+
retry_policy: @config.rpcs.update_css_product_input.retry_policy
|
367
|
+
|
368
|
+
options.apply_defaults timeout: @config.timeout,
|
369
|
+
metadata: @config.metadata,
|
370
|
+
retry_policy: @config.retry_policy
|
371
|
+
|
372
|
+
@css_product_inputs_service_stub.update_css_product_input request, options do |result, operation|
|
373
|
+
yield result, operation if block_given?
|
374
|
+
end
|
375
|
+
rescue ::Gapic::Rest::Error => e
|
376
|
+
raise ::Google::Cloud::Error.from_error(e)
|
377
|
+
end
|
378
|
+
|
276
379
|
##
|
277
380
|
# Deletes a CSS Product input from your CSS Center account.
|
278
381
|
#
|
@@ -505,6 +608,11 @@ module Google
|
|
505
608
|
#
|
506
609
|
attr_reader :insert_css_product_input
|
507
610
|
##
|
611
|
+
# RPC-specific configuration for `update_css_product_input`
|
612
|
+
# @return [::Gapic::Config::Method]
|
613
|
+
#
|
614
|
+
attr_reader :update_css_product_input
|
615
|
+
##
|
508
616
|
# RPC-specific configuration for `delete_css_product_input`
|
509
617
|
# @return [::Gapic::Config::Method]
|
510
618
|
#
|
@@ -514,6 +622,8 @@ module Google
|
|
514
622
|
def initialize parent_rpcs = nil
|
515
623
|
insert_css_product_input_config = parent_rpcs.insert_css_product_input if parent_rpcs.respond_to? :insert_css_product_input
|
516
624
|
@insert_css_product_input = ::Gapic::Config::Method.new insert_css_product_input_config
|
625
|
+
update_css_product_input_config = parent_rpcs.update_css_product_input if parent_rpcs.respond_to? :update_css_product_input
|
626
|
+
@update_css_product_input = ::Gapic::Config::Method.new update_css_product_input_config
|
517
627
|
delete_css_product_input_config = parent_rpcs.delete_css_product_input if parent_rpcs.respond_to? :delete_css_product_input
|
518
628
|
@delete_css_product_input = ::Gapic::Config::Method.new delete_css_product_input_config
|
519
629
|
|
@@ -113,6 +113,46 @@ module Google
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
+
##
|
117
|
+
# Baseline implementation for the update_css_product_input REST call
|
118
|
+
#
|
119
|
+
# @param request_pb [::Google::Shopping::Css::V1::UpdateCssProductInputRequest]
|
120
|
+
# A request object representing the call parameters. Required.
|
121
|
+
# @param options [::Gapic::CallOptions]
|
122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
123
|
+
#
|
124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
125
|
+
# @yieldparam result [::Google::Shopping::Css::V1::CssProductInput]
|
126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
127
|
+
#
|
128
|
+
# @return [::Google::Shopping::Css::V1::CssProductInput]
|
129
|
+
# A result object deserialized from the server's reply
|
130
|
+
def update_css_product_input request_pb, options = nil
|
131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
132
|
+
|
133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_update_css_product_input_request request_pb
|
134
|
+
query_string_params = if query_string_params.any?
|
135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
136
|
+
else
|
137
|
+
{}
|
138
|
+
end
|
139
|
+
|
140
|
+
response = @client_stub.make_http_request(
|
141
|
+
verb,
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "update_css_product_input",
|
146
|
+
options: options
|
147
|
+
)
|
148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
149
|
+
result = ::Google::Shopping::Css::V1::CssProductInput.decode_json response.body, ignore_unknown_fields: true
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
116
156
|
##
|
117
157
|
# Baseline implementation for the delete_css_product_input REST call
|
118
158
|
#
|
@@ -175,6 +215,28 @@ module Google
|
|
175
215
|
transcoder.transcode request_pb
|
176
216
|
end
|
177
217
|
|
218
|
+
##
|
219
|
+
# @private
|
220
|
+
#
|
221
|
+
# GRPC transcoding helper method for the update_css_product_input REST call
|
222
|
+
#
|
223
|
+
# @param request_pb [::Google::Shopping::Css::V1::UpdateCssProductInputRequest]
|
224
|
+
# A request object representing the call parameters. Required.
|
225
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
226
|
+
# Uri, Body, Query string parameters
|
227
|
+
def self.transcode_update_css_product_input_request request_pb
|
228
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
229
|
+
.with_bindings(
|
230
|
+
uri_method: :patch,
|
231
|
+
uri_template: "/v1/{css_product_input.name}",
|
232
|
+
body: "css_product_input",
|
233
|
+
matches: [
|
234
|
+
["css_product_input.name", %r{^accounts/[^/]+/cssProductInputs/[^/]+/?$}, false]
|
235
|
+
]
|
236
|
+
)
|
237
|
+
transcoder.transcode request_pb
|
238
|
+
end
|
239
|
+
|
178
240
|
##
|
179
241
|
# @private
|
180
242
|
#
|
@@ -41,6 +41,11 @@ module Google
|
|
41
41
|
# After inserting, updating, or deleting a CSS Product input, it may
|
42
42
|
# take several minutes before the processed CSS Product can be retrieved.
|
43
43
|
rpc :InsertCssProductInput, ::Google::Shopping::Css::V1::InsertCssProductInputRequest, ::Google::Shopping::Css::V1::CssProductInput
|
44
|
+
# Updates the existing Css Product input in your CSS Center account.
|
45
|
+
#
|
46
|
+
# After inserting, updating, or deleting a CSS Product input, it may take
|
47
|
+
# several minutes before the processed Css Product can be retrieved.
|
48
|
+
rpc :UpdateCssProductInput, ::Google::Shopping::Css::V1::UpdateCssProductInputRequest, ::Google::Shopping::Css::V1::CssProductInput
|
44
49
|
# Deletes a CSS Product input from your CSS Center account.
|
45
50
|
#
|
46
51
|
# After a delete it may take several minutes until the input is no longer
|
@@ -0,0 +1,229 @@
|
|
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
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# `FieldMask` represents a set of symbolic field paths, for example:
|
23
|
+
#
|
24
|
+
# paths: "f.a"
|
25
|
+
# paths: "f.b.d"
|
26
|
+
#
|
27
|
+
# Here `f` represents a field in some root message, `a` and `b`
|
28
|
+
# fields in the message found in `f`, and `d` a field found in the
|
29
|
+
# message in `f.b`.
|
30
|
+
#
|
31
|
+
# Field masks are used to specify a subset of fields that should be
|
32
|
+
# returned by a get operation or modified by an update operation.
|
33
|
+
# Field masks also have a custom JSON encoding (see below).
|
34
|
+
#
|
35
|
+
# # Field Masks in Projections
|
36
|
+
#
|
37
|
+
# When used in the context of a projection, a response message or
|
38
|
+
# sub-message is filtered by the API to only contain those fields as
|
39
|
+
# specified in the mask. For example, if the mask in the previous
|
40
|
+
# example is applied to a response message as follows:
|
41
|
+
#
|
42
|
+
# f {
|
43
|
+
# a : 22
|
44
|
+
# b {
|
45
|
+
# d : 1
|
46
|
+
# x : 2
|
47
|
+
# }
|
48
|
+
# y : 13
|
49
|
+
# }
|
50
|
+
# z: 8
|
51
|
+
#
|
52
|
+
# The result will not contain specific values for fields x,y and z
|
53
|
+
# (their value will be set to the default, and omitted in proto text
|
54
|
+
# output):
|
55
|
+
#
|
56
|
+
#
|
57
|
+
# f {
|
58
|
+
# a : 22
|
59
|
+
# b {
|
60
|
+
# d : 1
|
61
|
+
# }
|
62
|
+
# }
|
63
|
+
#
|
64
|
+
# A repeated field is not allowed except at the last position of a
|
65
|
+
# paths string.
|
66
|
+
#
|
67
|
+
# If a FieldMask object is not present in a get operation, the
|
68
|
+
# operation applies to all fields (as if a FieldMask of all fields
|
69
|
+
# had been specified).
|
70
|
+
#
|
71
|
+
# Note that a field mask does not necessarily apply to the
|
72
|
+
# top-level response message. In case of a REST get operation, the
|
73
|
+
# field mask applies directly to the response, but in case of a REST
|
74
|
+
# list operation, the mask instead applies to each individual message
|
75
|
+
# in the returned resource list. In case of a REST custom method,
|
76
|
+
# other definitions may be used. Where the mask applies will be
|
77
|
+
# clearly documented together with its declaration in the API. In
|
78
|
+
# any case, the effect on the returned resource/resources is required
|
79
|
+
# behavior for APIs.
|
80
|
+
#
|
81
|
+
# # Field Masks in Update Operations
|
82
|
+
#
|
83
|
+
# A field mask in update operations specifies which fields of the
|
84
|
+
# targeted resource are going to be updated. The API is required
|
85
|
+
# to only change the values of the fields as specified in the mask
|
86
|
+
# and leave the others untouched. If a resource is passed in to
|
87
|
+
# describe the updated values, the API ignores the values of all
|
88
|
+
# fields not covered by the mask.
|
89
|
+
#
|
90
|
+
# If a repeated field is specified for an update operation, new values will
|
91
|
+
# be appended to the existing repeated field in the target resource. Note that
|
92
|
+
# a repeated field is only allowed in the last position of a `paths` string.
|
93
|
+
#
|
94
|
+
# If a sub-message is specified in the last position of the field mask for an
|
95
|
+
# update operation, then new value will be merged into the existing sub-message
|
96
|
+
# in the target resource.
|
97
|
+
#
|
98
|
+
# For example, given the target message:
|
99
|
+
#
|
100
|
+
# f {
|
101
|
+
# b {
|
102
|
+
# d: 1
|
103
|
+
# x: 2
|
104
|
+
# }
|
105
|
+
# c: [1]
|
106
|
+
# }
|
107
|
+
#
|
108
|
+
# And an update message:
|
109
|
+
#
|
110
|
+
# f {
|
111
|
+
# b {
|
112
|
+
# d: 10
|
113
|
+
# }
|
114
|
+
# c: [2]
|
115
|
+
# }
|
116
|
+
#
|
117
|
+
# then if the field mask is:
|
118
|
+
#
|
119
|
+
# paths: ["f.b", "f.c"]
|
120
|
+
#
|
121
|
+
# then the result will be:
|
122
|
+
#
|
123
|
+
# f {
|
124
|
+
# b {
|
125
|
+
# d: 10
|
126
|
+
# x: 2
|
127
|
+
# }
|
128
|
+
# c: [1, 2]
|
129
|
+
# }
|
130
|
+
#
|
131
|
+
# An implementation may provide options to override this default behavior for
|
132
|
+
# repeated and message fields.
|
133
|
+
#
|
134
|
+
# In order to reset a field's value to the default, the field must
|
135
|
+
# be in the mask and set to the default value in the provided resource.
|
136
|
+
# Hence, in order to reset all fields of a resource, provide a default
|
137
|
+
# instance of the resource and set all fields in the mask, or do
|
138
|
+
# not provide a mask as described below.
|
139
|
+
#
|
140
|
+
# If a field mask is not present on update, the operation applies to
|
141
|
+
# all fields (as if a field mask of all fields has been specified).
|
142
|
+
# Note that in the presence of schema evolution, this may mean that
|
143
|
+
# fields the client does not know and has therefore not filled into
|
144
|
+
# the request will be reset to their default. If this is unwanted
|
145
|
+
# behavior, a specific service may require a client to always specify
|
146
|
+
# a field mask, producing an error if not.
|
147
|
+
#
|
148
|
+
# As with get operations, the location of the resource which
|
149
|
+
# describes the updated values in the request message depends on the
|
150
|
+
# operation kind. In any case, the effect of the field mask is
|
151
|
+
# required to be honored by the API.
|
152
|
+
#
|
153
|
+
# ## Considerations for HTTP REST
|
154
|
+
#
|
155
|
+
# The HTTP kind of an update operation which uses a field mask must
|
156
|
+
# be set to PATCH instead of PUT in order to satisfy HTTP semantics
|
157
|
+
# (PUT must only be used for full updates).
|
158
|
+
#
|
159
|
+
# # JSON Encoding of Field Masks
|
160
|
+
#
|
161
|
+
# In JSON, a field mask is encoded as a single string where paths are
|
162
|
+
# separated by a comma. Fields name in each path are converted
|
163
|
+
# to/from lower-camel naming conventions.
|
164
|
+
#
|
165
|
+
# As an example, consider the following message declarations:
|
166
|
+
#
|
167
|
+
# message Profile {
|
168
|
+
# User user = 1;
|
169
|
+
# Photo photo = 2;
|
170
|
+
# }
|
171
|
+
# message User {
|
172
|
+
# string display_name = 1;
|
173
|
+
# string address = 2;
|
174
|
+
# }
|
175
|
+
#
|
176
|
+
# In proto a field mask for `Profile` may look as such:
|
177
|
+
#
|
178
|
+
# mask {
|
179
|
+
# paths: "user.display_name"
|
180
|
+
# paths: "photo"
|
181
|
+
# }
|
182
|
+
#
|
183
|
+
# In JSON, the same mask is represented as below:
|
184
|
+
#
|
185
|
+
# {
|
186
|
+
# mask: "user.displayName,photo"
|
187
|
+
# }
|
188
|
+
#
|
189
|
+
# # Field Masks and Oneof Fields
|
190
|
+
#
|
191
|
+
# Field masks treat fields in oneofs just as regular fields. Consider the
|
192
|
+
# following message:
|
193
|
+
#
|
194
|
+
# message SampleMessage {
|
195
|
+
# oneof test_oneof {
|
196
|
+
# string name = 4;
|
197
|
+
# SubMessage sub_message = 9;
|
198
|
+
# }
|
199
|
+
# }
|
200
|
+
#
|
201
|
+
# The field mask can be:
|
202
|
+
#
|
203
|
+
# mask {
|
204
|
+
# paths: "name"
|
205
|
+
# }
|
206
|
+
#
|
207
|
+
# Or:
|
208
|
+
#
|
209
|
+
# mask {
|
210
|
+
# paths: "sub_message"
|
211
|
+
# }
|
212
|
+
#
|
213
|
+
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
214
|
+
# paths.
|
215
|
+
#
|
216
|
+
# ## Field Mask Verification
|
217
|
+
#
|
218
|
+
# The implementation of any API method which has a FieldMask type field in the
|
219
|
+
# request should verify the included field paths, and return an
|
220
|
+
# `INVALID_ARGUMENT` error if any path is unmappable.
|
221
|
+
# @!attribute [rw] paths
|
222
|
+
# @return [::Array<::String>]
|
223
|
+
# The set of field mask paths.
|
224
|
+
class FieldMask
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
@@ -37,8 +37,8 @@ module Google
|
|
37
37
|
# @return [::Integer]
|
38
38
|
# Optional. The maximum number of accounts to return. The service may return
|
39
39
|
# fewer than this value. If unspecified, at most 50 accounts will be
|
40
|
-
# returned. The maximum value is
|
41
|
-
#
|
40
|
+
# returned. The maximum value is 100; values above 100 will be coerced to
|
41
|
+
# 100.
|
42
42
|
# @!attribute [rw] page_token
|
43
43
|
# @return [::String]
|
44
44
|
# Optional. A page token, received from a previous `ListChildAccounts` call.
|
@@ -34,19 +34,19 @@ module Google
|
|
34
34
|
# within the context of Product Ads.
|
35
35
|
# @!attribute [rw] low_price
|
36
36
|
# @return [::Google::Shopping::Type::Price]
|
37
|
-
# Low Price of the
|
37
|
+
# Low Price of the CSS Product.
|
38
38
|
# @!attribute [rw] high_price
|
39
39
|
# @return [::Google::Shopping::Type::Price]
|
40
|
-
# High Price of the
|
40
|
+
# High Price of the CSS Product.
|
41
41
|
# @!attribute [rw] number_of_offers
|
42
42
|
# @return [::Integer]
|
43
|
-
# The number of
|
43
|
+
# The number of CSS Products.
|
44
44
|
# @!attribute [rw] headline_offer_condition
|
45
45
|
# @return [::String]
|
46
46
|
# Condition of the headline offer.
|
47
47
|
# @!attribute [rw] headline_offer_price
|
48
48
|
# @return [::Google::Shopping::Type::Price]
|
49
|
-
# Headline Price of the
|
49
|
+
# Headline Price of the CSS Product.
|
50
50
|
# @!attribute [rw] headline_offer_link
|
51
51
|
# @return [::String]
|
52
52
|
# Link to the headline offer.
|
@@ -55,7 +55,7 @@ module Google
|
|
55
55
|
# Mobile Link to the headline offer.
|
56
56
|
# @!attribute [rw] headline_offer_shipping_price
|
57
57
|
# @return [::Google::Shopping::Type::Price]
|
58
|
-
# Headline Price of the
|
58
|
+
# Headline Price of the CSS Product.
|
59
59
|
# @!attribute [rw] title
|
60
60
|
# @return [::String]
|
61
61
|
# Title of the item.
|
@@ -311,15 +311,15 @@ module Google
|
|
311
311
|
# The name of the destination
|
312
312
|
# @!attribute [rw] approved_countries
|
313
313
|
# @return [::Array<::String>]
|
314
|
-
# List of country codes (ISO 3166-1 alpha-2) where the
|
314
|
+
# List of country codes (ISO 3166-1 alpha-2) where the CSS Product is
|
315
315
|
# approved.
|
316
316
|
# @!attribute [rw] pending_countries
|
317
317
|
# @return [::Array<::String>]
|
318
|
-
# List of country codes (ISO 3166-1 alpha-2) where the
|
318
|
+
# List of country codes (ISO 3166-1 alpha-2) where the CSS Product is
|
319
319
|
# pending approval.
|
320
320
|
# @!attribute [rw] disapproved_countries
|
321
321
|
# @return [::Array<::String>]
|
322
|
-
# List of country codes (ISO 3166-1 alpha-2) where the
|
322
|
+
# List of country codes (ISO 3166-1 alpha-2) where the CSS Product is
|
323
323
|
# disapproved.
|
324
324
|
class DestinationStatus
|
325
325
|
include ::Google::Protobuf::MessageExts
|
@@ -332,7 +332,7 @@ module Google
|
|
332
332
|
# The error code of the issue.
|
333
333
|
# @!attribute [rw] servability
|
334
334
|
# @return [::String]
|
335
|
-
# How this issue affects serving of the
|
335
|
+
# How this issue affects serving of the CSS Product.
|
336
336
|
# @!attribute [rw] resolution
|
337
337
|
# @return [::String]
|
338
338
|
# Whether the issue can be resolved by the merchant.
|
@@ -354,7 +354,7 @@ module Google
|
|
354
354
|
# @!attribute [rw] applicable_countries
|
355
355
|
# @return [::Array<::String>]
|
356
356
|
# List of country codes (ISO 3166-1 alpha-2) where issue applies to the
|
357
|
-
#
|
357
|
+
# CSS Product.
|
358
358
|
class ItemLevelIssue
|
359
359
|
include ::Google::Protobuf::MessageExts
|
360
360
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -55,7 +55,9 @@ module Google
|
|
55
55
|
# Feed Label is synonymous to "target country" and hence should always be a
|
56
56
|
# valid region code. For example: 'DE' for Germany, 'FR' for France.
|
57
57
|
# @!attribute [rw] freshness_time
|
58
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
58
59
|
# @return [::Google::Protobuf::Timestamp]
|
60
|
+
# DEPRECATED. Use expiration_date instead.
|
59
61
|
# Represents the existing version (freshness) of the CSS Product, which
|
60
62
|
# can be used to preserve the right order when multiple updates are done at
|
61
63
|
# the same time.
|
@@ -98,17 +100,48 @@ module Google
|
|
98
100
|
# @return [::Google::Shopping::Css::V1::CssProductInput]
|
99
101
|
# Required. The CSS Product Input to insert.
|
100
102
|
# @!attribute [rw] feed_id
|
103
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
101
104
|
# @return [::Integer]
|
102
|
-
#
|
103
|
-
#
|
104
|
-
#
|
105
|
-
#
|
106
|
-
#
|
105
|
+
# Optional. DEPRECATED. Feed id is not required for CSS Products.
|
106
|
+
# The primary or supplemental feed id. If CSS Product already exists and
|
107
|
+
# feed id provided is different, then the CSS Product will be moved to a
|
108
|
+
# new feed.
|
109
|
+
# Note: For now, CSSs do not need to provide feed ids as we create
|
110
|
+
# feeds on the fly.
|
111
|
+
# We do not have supplemental feed support for CSS Products yet.
|
107
112
|
class InsertCssProductInputRequest
|
108
113
|
include ::Google::Protobuf::MessageExts
|
109
114
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
110
115
|
end
|
111
116
|
|
117
|
+
# Request message for the UpdateCssProductInput method.
|
118
|
+
# @!attribute [rw] css_product_input
|
119
|
+
# @return [::Google::Shopping::Css::V1::CssProductInput]
|
120
|
+
# Required. The CSS product input resource to update. Information you submit
|
121
|
+
# will be applied to the processed CSS product as well.
|
122
|
+
# @!attribute [rw] update_mask
|
123
|
+
# @return [::Google::Protobuf::FieldMask]
|
124
|
+
# The list of CSS product attributes to be updated.
|
125
|
+
#
|
126
|
+
# If the update mask is omitted, then it is treated as implied field mask
|
127
|
+
# equivalent to all fields that are populated (have a non-empty value).
|
128
|
+
#
|
129
|
+
# Attributes specified in the update mask without a value specified in the
|
130
|
+
# body will be deleted from the CSS product.
|
131
|
+
#
|
132
|
+
# Update mask can only be specified for top level fields in
|
133
|
+
# attributes and custom attributes.
|
134
|
+
#
|
135
|
+
# To specify the update mask for custom attributes you need to add the
|
136
|
+
# `custom_attribute.` prefix.
|
137
|
+
#
|
138
|
+
# Providing special "*" value for full CSS product replacement is not
|
139
|
+
# supported.
|
140
|
+
class UpdateCssProductInputRequest
|
141
|
+
include ::Google::Protobuf::MessageExts
|
142
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
143
|
+
end
|
144
|
+
|
112
145
|
# Request message for the DeleteCssProductInput method.
|
113
146
|
# @!attribute [rw] name
|
114
147
|
# @return [::String]
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
31
31
|
end
|
32
32
|
|
33
|
-
# The processed CSS Product
|
33
|
+
# The processed CSS Product.
|
34
34
|
# @!attribute [rw] name
|
35
35
|
# @return [::String]
|
36
36
|
# The name of the CSS Product.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-shopping-css-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- proto_docs/google/api/resource.rb
|
126
126
|
- proto_docs/google/protobuf/duration.rb
|
127
127
|
- proto_docs/google/protobuf/empty.rb
|
128
|
+
- proto_docs/google/protobuf/field_mask.rb
|
128
129
|
- proto_docs/google/protobuf/timestamp.rb
|
129
130
|
- proto_docs/google/shopping/css/v1/accounts.rb
|
130
131
|
- proto_docs/google/shopping/css/v1/accounts_labels.rb
|