google-shopping-css-v1 0.8.1 → 0.9.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_labels_pb.rb +3 -24
- data/lib/google/shopping/css/v1/accounts_pb.rb +2 -23
- data/lib/google/shopping/css/v1/css_product_common_pb.rb +3 -26
- data/lib/google/shopping/css/v1/css_product_inputs_pb.rb +3 -28
- data/lib/google/shopping/css/v1/css_products_pb.rb +2 -25
- data/lib/google/shopping/css/v1/css_products_service/client.rb +1 -0
- data/lib/google/shopping/css/v1/css_products_service/rest/client.rb +1 -0
- data/lib/google/shopping/css/v1/quota_pb.rb +2 -23
- data/lib/google/shopping/css/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +145 -29
- data/proto_docs/google/shopping/css/v1/accounts_labels.rb +1 -1
- data/proto_docs/google/shopping/css/v1/css_product_common.rb +26 -1
- data/proto_docs/google/shopping/css/v1/css_product_inputs.rb +1 -1
- data/proto_docs/google/shopping/css/v1/css_products.rb +1 -0
- data/proto_docs/google/shopping/type/types.rb +38 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f27d0afc8d5cc33b0a0dd322b87f4bcae6e8099f67631057b0fbe77bb019c7fa
|
|
4
|
+
data.tar.gz: 6307a52212cc028e089a9907899cf03c981da72a80322cf67020f4b4a323f717
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c20399d20168efbe00929b48d4ccd23d31b90490d657e4746859307f6640f2354d9239b0893df65c09d94654ae7d6ea58576907023e5d8fb90bd602bbdc29886
|
|
7
|
+
data.tar.gz: e5484f4eb2a3da15dec11e30d783c3b871523e88705e9208352471f908a7b3afe38fd29cad42bd71ccfa360c510f906e25f5162b3e92dc9cd149d760aa48492a
|
|
@@ -11,31 +11,10 @@ require 'google/api/resource_pb'
|
|
|
11
11
|
require 'google/protobuf/empty_pb'
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
descriptor_data = "\n,google/shopping/css/v1/accounts_labels.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\"\
|
|
14
|
+
descriptor_data = "\n,google/shopping/css/v1/accounts_labels.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\"\x9a\x03\n\x0c\x41\x63\x63ountLabel\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x15\n\x08label_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x17\n\naccount_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tH\x01\x88\x01\x01\x12G\n\nlabel_type\x18\x06 \x01(\x0e\x32..google.shopping.css.v1.AccountLabel.LabelTypeB\x03\xe0\x41\x03\"B\n\tLabelType\x12\x1a\n\x16LABEL_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06MANUAL\x10\x01\x12\r\n\tAUTOMATIC\x10\x02:d\xea\x41\x61\n\x1f\x63ss.googleapis.com/AccountLabel\x12!accounts/{account}/labels/{label}*\raccountLabels2\x0c\x61\x63\x63ountLabelB\x0f\n\r_display_nameB\x0e\n\x0c_description\"z\n\x18ListAccountLabelsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63ss.googleapis.com/AccountLabel\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"r\n\x19ListAccountLabelsResponse\x12<\n\x0e\x61\x63\x63ount_labels\x18\x01 \x03(\x0b\x32$.google.shopping.css.v1.AccountLabel\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x96\x01\n\x19\x43reateAccountLabelRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63ss.googleapis.com/AccountLabel\x12@\n\raccount_label\x18\x02 \x01(\x0b\x32$.google.shopping.css.v1.AccountLabelB\x03\xe0\x41\x02\"]\n\x19UpdateAccountLabelRequest\x12@\n\raccount_label\x18\x01 \x01(\x0b\x32$.google.shopping.css.v1.AccountLabelB\x03\xe0\x41\x02\"R\n\x19\x44\x65leteAccountLabelRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63ss.googleapis.com/AccountLabel2\x97\x06\n\x14\x41\x63\x63ountLabelsService\x12\xa9\x01\n\x11ListAccountLabels\x12\x30.google.shopping.css.v1.ListAccountLabelsRequest\x1a\x31.google.shopping.css.v1.ListAccountLabelsResponse\"/\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=accounts/*}/labels\x12\xbb\x01\n\x12\x43reateAccountLabel\x12\x31.google.shopping.css.v1.CreateAccountLabelRequest\x1a$.google.shopping.css.v1.AccountLabel\"L\xda\x41\x14parent,account_label\x82\xd3\xe4\x93\x02/\"\x1e/v1/{parent=accounts/*}/labels:\raccount_label\x12\xc2\x01\n\x12UpdateAccountLabel\x12\x31.google.shopping.css.v1.UpdateAccountLabelRequest\x1a$.google.shopping.css.v1.AccountLabel\"S\xda\x41\raccount_label\x82\xd3\xe4\x93\x02=2,/v1/{account_label.name=accounts/*/labels/*}:\raccount_label\x12\x8e\x01\n\x12\x44\x65leteAccountLabel\x12\x31.google.shopping.css.v1.DeleteAccountLabelRequest\x1a\x16.google.protobuf.Empty\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/v1/{name=accounts/*/labels/*}\x1a?\xca\x41\x12\x63ss.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xb5\x01\n\x1a\x63om.google.shopping.css.v1B\x13\x41\x63\x63ountsLabelsProtoP\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"
|
|
15
15
|
|
|
16
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
-
|
|
18
|
-
begin
|
|
19
|
-
pool.add_serialized_file(descriptor_data)
|
|
20
|
-
rescue TypeError
|
|
21
|
-
# Compatibility code: will be removed in the next major version.
|
|
22
|
-
require 'google/protobuf/descriptor_pb'
|
|
23
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
24
|
-
parsed.clear_dependency
|
|
25
|
-
serialized = parsed.class.encode(parsed)
|
|
26
|
-
file = pool.add_serialized_file(serialized)
|
|
27
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
28
|
-
imports = [
|
|
29
|
-
]
|
|
30
|
-
imports.each do |type_name, expected_filename|
|
|
31
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
32
|
-
if import_file.name != expected_filename
|
|
33
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
37
|
-
warn "This will become an error in the next major version."
|
|
38
|
-
end
|
|
16
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
|
39
18
|
|
|
40
19
|
module Google
|
|
41
20
|
module Shopping
|
|
@@ -12,29 +12,8 @@ require 'google/api/resource_pb'
|
|
|
12
12
|
|
|
13
13
|
descriptor_data = "\n%google/shopping/css/v1/accounts.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\"\xc9\x01\n\x18ListChildAccountsRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63ss.googleapis.com/Account\x12\x15\n\x08label_id\x18\x02 \x01(\x03H\x00\x88\x01\x01\x12\x16\n\tfull_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\x42\x0b\n\t_label_idB\x0c\n\n_full_name\"g\n\x19ListChildAccountsResponse\x12\x31\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x1f.google.shopping.css.v1.Account\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x89\x01\n\x11GetAccountRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63ss.googleapis.com/Account\x12\x37\n\x06parent\x18\x02 \x01(\tB\"\xe0\x41\x01\xfa\x41\x1c\n\x1a\x63ss.googleapis.com/AccountH\x00\x88\x01\x01\x42\t\n\x07_parent\"\xa5\x01\n\x1aUpdateAccountLabelsRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1a\x63ss.googleapis.com/Account\x12\x11\n\tlabel_ids\x18\x02 \x03(\x03\x12\x37\n\x06parent\x18\x03 \x01(\tB\"\xe0\x41\x01\xfa\x41\x1c\n\x1a\x63ss.googleapis.com/AccountH\x00\x88\x01\x01\x42\t\n\x07_parent\"\xbb\x04\n\x07\x41\x63\x63ount\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\tfull_name\x18\x02 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tH\x00\x88\x01\x01\x12!\n\x0chomepage_uri\x18\x04 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05H\x01\x88\x01\x01\x12\x13\n\x06parent\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x11\n\tlabel_ids\x18\x06 \x03(\x03\x12\x1b\n\x13\x61utomatic_label_ids\x18\x07 \x03(\x03\x12\x46\n\x0c\x61\x63\x63ount_type\x18\x08 \x01(\x0e\x32+.google.shopping.css.v1.Account.AccountTypeB\x03\xe0\x41\x03\"\xc6\x01\n\x0b\x41\x63\x63ountType\x12\x1c\n\x18\x41\x43\x43OUNT_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tCSS_GROUP\x10\x01\x12\x0e\n\nCSS_DOMAIN\x10\x02\x12\x16\n\x12MC_PRIMARY_CSS_MCA\x10\x03\x12\x0e\n\nMC_CSS_MCA\x10\x04\x12\x16\n\x12MC_MARKETPLACE_MCA\x10\x05\x12\x10\n\x0cMC_OTHER_MCA\x10\x06\x12\x11\n\rMC_STANDALONE\x10\x07\x12\x15\n\x11MC_MCA_SUBACCOUNT\x10\x08:F\xea\x41\x43\n\x1a\x63ss.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}*\x08\x61\x63\x63ounts2\x07\x61\x63\x63ountB\x0f\n\r_display_nameB\x0f\n\r_homepage_uriB\t\n\x07_parent2\xa5\x04\n\x0f\x41\x63\x63ountsService\x12\xb4\x01\n\x11ListChildAccounts\x12\x30.google.shopping.css.v1.ListChildAccountsRequest\x1a\x31.google.shopping.css.v1.ListChildAccountsResponse\":\xda\x41\x06parent\x82\xd3\xe4\x93\x02+\x12)/v1/{parent=accounts/*}:listChildAccounts\x12~\n\nGetAccount\x12).google.shopping.css.v1.GetAccountRequest\x1a\x1f.google.shopping.css.v1.Account\"$\xda\x41\x04name\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/{name=accounts/*}\x12\x99\x01\n\x0cUpdateLabels\x12\x32.google.shopping.css.v1.UpdateAccountLabelsRequest\x1a\x1f.google.shopping.css.v1.Account\"4\xda\x41\x04name\x82\xd3\xe4\x93\x02\'\"\"/v1/{name=accounts/*}:updateLabels:\x01*\x1a?\xca\x41\x12\x63ss.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xaf\x01\n\x1a\x63om.google.shopping.css.v1B\rAccountsProtoP\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"
|
|
14
14
|
|
|
15
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
-
|
|
17
|
-
begin
|
|
18
|
-
pool.add_serialized_file(descriptor_data)
|
|
19
|
-
rescue TypeError
|
|
20
|
-
# Compatibility code: will be removed in the next major version.
|
|
21
|
-
require 'google/protobuf/descriptor_pb'
|
|
22
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
23
|
-
parsed.clear_dependency
|
|
24
|
-
serialized = parsed.class.encode(parsed)
|
|
25
|
-
file = pool.add_serialized_file(serialized)
|
|
26
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
27
|
-
imports = [
|
|
28
|
-
]
|
|
29
|
-
imports.each do |type_name, expected_filename|
|
|
30
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
31
|
-
if import_file.name != expected_filename
|
|
32
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
36
|
-
warn "This will become an error in the next major version."
|
|
37
|
-
end
|
|
15
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
|
38
17
|
|
|
39
18
|
module Google
|
|
40
19
|
module Shopping
|
|
@@ -9,33 +9,10 @@ require 'google/protobuf/timestamp_pb'
|
|
|
9
9
|
require 'google/shopping/type/types_pb'
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
descriptor_data = "\n/google/shopping/css/v1/css_product_common.proto\x12\x16google.shopping.css.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a google/shopping/type/types.proto\"\
|
|
12
|
+
descriptor_data = "\n/google/shopping/css/v1/css_product_common.proto\x12\x16google.shopping.css.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a google/shopping/type/types.proto\"\xbc\x13\n\nAttributes\x12\x15\n\x08\x63pp_link\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63pp_mobile_link\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x10\x63pp_ads_redirect\x18* \x01(\tH\x02\x88\x01\x01\x12.\n\tlow_price\x18\x03 \x01(\x0b\x32\x1b.google.shopping.type.Price\x12/\n\nhigh_price\x18\x04 \x01(\x0b\x32\x1b.google.shopping.type.Price\x12\x1d\n\x10number_of_offers\x18\x05 \x01(\x03H\x03\x88\x01\x01\x12%\n\x18headline_offer_condition\x18\x06 \x01(\tH\x04\x88\x01\x01\x12\x39\n\x14headline_offer_price\x18\x07 \x01(\x0b\x32\x1b.google.shopping.type.Price\x12 \n\x13headline_offer_link\x18\x08 \x01(\tH\x05\x88\x01\x01\x12\'\n\x1aheadline_offer_mobile_link\x18\t \x01(\tH\x06\x88\x01\x01\x12\x42\n\x1dheadline_offer_shipping_price\x18) \x01(\x0b\x32\x1b.google.shopping.type.Price\x12\x12\n\x05title\x18\n \x01(\tH\x07\x88\x01\x01\x12\x17\n\nimage_link\x18\x0b \x01(\tH\x08\x88\x01\x01\x12\x1e\n\x16\x61\x64\x64itional_image_links\x18\x0c \x03(\t\x12\x18\n\x0b\x64\x65scription\x18\r \x01(\tH\t\x88\x01\x01\x12\x12\n\x05\x62rand\x18\x0e \x01(\tH\n\x88\x01\x01\x12\x10\n\x03mpn\x18\x0f \x01(\tH\x0b\x88\x01\x01\x12\x11\n\x04gtin\x18\x10 \x01(\tH\x0c\x88\x01\x01\x12\x15\n\rproduct_types\x18$ \x03(\t\x12$\n\x17google_product_category\x18\x11 \x01(\tH\r\x88\x01\x01\x12\x12\n\x05\x61\x64ult\x18\x12 \x01(\x08H\x0e\x88\x01\x01\x12\x16\n\tmultipack\x18\x13 \x01(\x03H\x0f\x88\x01\x01\x12\x16\n\tis_bundle\x18\x14 \x01(\x08H\x10\x88\x01\x01\x12\x16\n\tage_group\x18\x15 \x01(\tH\x11\x88\x01\x01\x12\x12\n\x05\x63olor\x18\x16 \x01(\tH\x12\x88\x01\x01\x12\x13\n\x06gender\x18\x17 \x01(\tH\x13\x88\x01\x01\x12\x15\n\x08material\x18\x18 \x01(\tH\x14\x88\x01\x01\x12\x14\n\x07pattern\x18\x19 \x01(\tH\x15\x88\x01\x01\x12\x11\n\x04size\x18\x1a \x01(\tH\x16\x88\x01\x01\x12\x18\n\x0bsize_system\x18\x1b \x01(\tH\x17\x88\x01\x01\x12\x12\n\nsize_types\x18\x1c \x03(\t\x12\x1a\n\ritem_group_id\x18\x1d \x01(\tH\x18\x88\x01\x01\x12>\n\x0fproduct_details\x18\x1e \x03(\x0b\x32%.google.shopping.css.v1.ProductDetail\x12=\n\x0eproduct_weight\x18\x1f \x01(\x0b\x32%.google.shopping.css.v1.ProductWeight\x12@\n\x0eproduct_length\x18 \x01(\x0b\x32(.google.shopping.css.v1.ProductDimension\x12?\n\rproduct_width\x18! \x01(\x0b\x32(.google.shopping.css.v1.ProductDimension\x12@\n\x0eproduct_height\x18\" \x01(\x0b\x32(.google.shopping.css.v1.ProductDimension\x12\x1a\n\x12product_highlights\x18# \x03(\t\x12=\n\x0e\x63\x65rtifications\x18\' \x03(\x0b\x32%.google.shopping.css.v1.Certification\x12\x33\n\x0f\x65xpiration_date\x18( \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x15included_destinations\x18+ \x03(\t\x12\x1d\n\x15\x65xcluded_destinations\x18, \x03(\t\x12\x12\n\x05pause\x18- \x01(\tH\x19\x88\x01\x01\x12\x1b\n\x0e\x63ustom_label_0\x18. \x01(\tH\x1a\x88\x01\x01\x12\x1b\n\x0e\x63ustom_label_1\x18/ \x01(\tH\x1b\x88\x01\x01\x12\x1b\n\x0e\x63ustom_label_2\x18\x30 \x01(\tH\x1c\x88\x01\x01\x12\x1b\n\x0e\x63ustom_label_3\x18\x31 \x01(\tH\x1d\x88\x01\x01\x12\x1b\n\x0e\x63ustom_label_4\x18\x32 \x01(\tH\x1e\x88\x01\x01\x12T\n\x1aheadline_offer_installment\x18\x33 \x01(\x0b\x32\x30.google.shopping.css.v1.HeadlineOfferInstallment\x12_\n headline_offer_subscription_cost\x18\x34 \x01(\x0b\x32\x35.google.shopping.css.v1.HeadlineOfferSubscriptionCost\x12\x19\n\x0creview_count\x18\x36 \x01(\x03H\x1f\x88\x01\x01\x12\x17\n\nmin_rating\x18\x37 \x01(\x03H \x88\x01\x01\x12\x17\n\nmax_rating\x18\x38 \x01(\x03H!\x88\x01\x01\x12\x13\n\x06rating\x18\x39 \x01(\x01H\"\x88\x01\x01\x42\x0b\n\t_cpp_linkB\x12\n\x10_cpp_mobile_linkB\x13\n\x11_cpp_ads_redirectB\x13\n\x11_number_of_offersB\x1b\n\x19_headline_offer_conditionB\x16\n\x14_headline_offer_linkB\x1d\n\x1b_headline_offer_mobile_linkB\x08\n\x06_titleB\r\n\x0b_image_linkB\x0e\n\x0c_descriptionB\x08\n\x06_brandB\x06\n\x04_mpnB\x07\n\x05_gtinB\x1a\n\x18_google_product_categoryB\x08\n\x06_adultB\x0c\n\n_multipackB\x0c\n\n_is_bundleB\x0c\n\n_age_groupB\x08\n\x06_colorB\t\n\x07_genderB\x0b\n\t_materialB\n\n\x08_patternB\x07\n\x05_sizeB\x0e\n\x0c_size_systemB\x10\n\x0e_item_group_idB\x08\n\x06_pauseB\x11\n\x0f_custom_label_0B\x11\n\x0f_custom_label_1B\x11\n\x0f_custom_label_2B\x11\n\x0f_custom_label_3B\x11\n\x0f_custom_label_4B\x0f\n\r_review_countB\r\n\x0b_min_ratingB\r\n\x0b_max_ratingB\t\n\x07_rating\">\n\rCertification\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tauthority\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\t\"V\n\rProductDetail\x12\x14\n\x0csection_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61ttribute_name\x18\x02 \x01(\t\x12\x17\n\x0f\x61ttribute_value\x18\x03 \x01(\t\"9\n\x10ProductDimension\x12\x12\n\x05value\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x12\x11\n\x04unit\x18\x02 \x01(\tB\x03\xe0\x41\x02\"6\n\rProductWeight\x12\x12\n\x05value\x18\x01 \x01(\x01\x42\x03\xe0\x41\x02\x12\x11\n\x04unit\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\xb1\x05\n\x10\x43ssProductStatus\x12X\n\x14\x64\x65stination_statuses\x18\x03 \x03(\x0b\x32:.google.shopping.css.v1.CssProductStatus.DestinationStatus\x12R\n\x11item_level_issues\x18\x04 \x03(\x0b\x32\x37.google.shopping.css.v1.CssProductStatus.ItemLevelIssue\x12\x31\n\rcreation_date\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10last_update_date\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12:\n\x16google_expiration_date\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a~\n\x11\x44\x65stinationStatus\x12\x13\n\x0b\x64\x65stination\x18\x01 \x01(\t\x12\x1a\n\x12\x61pproved_countries\x18\x02 \x03(\t\x12\x19\n\x11pending_countries\x18\x03 \x03(\t\x12\x1d\n\x15\x64isapproved_countries\x18\x04 \x03(\t\x1a\xc9\x01\n\x0eItemLevelIssue\x12\x0c\n\x04\x63ode\x18\x01 \x01(\t\x12\x13\n\x0bservability\x18\x02 \x01(\t\x12\x12\n\nresolution\x18\x03 \x01(\t\x12\x11\n\tattribute\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65stination\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x0e\n\x06\x64\x65tail\x18\x07 \x01(\t\x12\x15\n\rdocumentation\x18\x08 \x01(\t\x12\x1c\n\x14\x61pplicable_countries\x18\t \x03(\t\"\x9f\x01\n\x1dHeadlineOfferSubscriptionCost\x12:\n\x06period\x18\x01 \x01(\x0e\x32*.google.shopping.css.v1.SubscriptionPeriod\x12\x15\n\rperiod_length\x18\x02 \x01(\x03\x12+\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x1b.google.shopping.type.Price\"\x89\x01\n\x18HeadlineOfferInstallment\x12\x0e\n\x06months\x18\x01 \x01(\x03\x12+\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x1b.google.shopping.type.Price\x12\x30\n\x0b\x64ownpayment\x18\x03 \x01(\x0b\x32\x1b.google.shopping.type.Price*N\n\x12SubscriptionPeriod\x12#\n\x1fSUBSCRIPTION_PERIOD_UNSPECIFIED\x10\x00\x12\t\n\x05MONTH\x10\x01\x12\x08\n\x04YEAR\x10\x02\x42\xb7\x01\n\x1a\x63om.google.shopping.css.v1B\x15\x43ssProductCommonProtoP\x01Z2cloud.google.com/go/shopping/css/apiv1/csspb;csspb\xaa\x02\x16Google.Shopping.Css.V1\xca\x02\x16Google\\Shopping\\Css\\V1\xea\x02\x19Google::Shopping::Css::V1b\x06proto3"
|
|
13
13
|
|
|
14
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
-
|
|
16
|
-
begin
|
|
17
|
-
pool.add_serialized_file(descriptor_data)
|
|
18
|
-
rescue TypeError
|
|
19
|
-
# Compatibility code: will be removed in the next major version.
|
|
20
|
-
require 'google/protobuf/descriptor_pb'
|
|
21
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
22
|
-
parsed.clear_dependency
|
|
23
|
-
serialized = parsed.class.encode(parsed)
|
|
24
|
-
file = pool.add_serialized_file(serialized)
|
|
25
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
26
|
-
imports = [
|
|
27
|
-
["google.shopping.type.Price", "google/shopping/type/types.proto"],
|
|
28
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
29
|
-
]
|
|
30
|
-
imports.each do |type_name, expected_filename|
|
|
31
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
32
|
-
if import_file.name != expected_filename
|
|
33
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
37
|
-
warn "This will become an error in the next major version."
|
|
38
|
-
end
|
|
14
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
39
16
|
|
|
40
17
|
module Google
|
|
41
18
|
module Shopping
|
|
@@ -15,35 +15,10 @@ require 'google/shopping/css/v1/css_product_common_pb'
|
|
|
15
15
|
require 'google/shopping/type/types_pb'
|
|
16
16
|
|
|
17
17
|
|
|
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\"\
|
|
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\"\xa7\x03\n\x0f\x43ssProductInput\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\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"
|
|
19
19
|
|
|
20
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
21
|
-
|
|
22
|
-
begin
|
|
23
|
-
pool.add_serialized_file(descriptor_data)
|
|
24
|
-
rescue TypeError
|
|
25
|
-
# Compatibility code: will be removed in the next major version.
|
|
26
|
-
require 'google/protobuf/descriptor_pb'
|
|
27
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
28
|
-
parsed.clear_dependency
|
|
29
|
-
serialized = parsed.class.encode(parsed)
|
|
30
|
-
file = pool.add_serialized_file(serialized)
|
|
31
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
32
|
-
imports = [
|
|
33
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
34
|
-
["google.shopping.css.v1.Attributes", "google/shopping/css/v1/css_product_common.proto"],
|
|
35
|
-
["google.shopping.type.CustomAttribute", "google/shopping/type/types.proto"],
|
|
36
|
-
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
|
37
|
-
]
|
|
38
|
-
imports.each do |type_name, expected_filename|
|
|
39
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
40
|
-
if import_file.name != expected_filename
|
|
41
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
42
|
-
end
|
|
43
|
-
end
|
|
44
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
45
|
-
warn "This will become an error in the next major version."
|
|
46
|
-
end
|
|
20
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
|
47
22
|
|
|
48
23
|
module Google
|
|
49
24
|
module Shopping
|
|
@@ -14,31 +14,8 @@ require 'google/shopping/type/types_pb'
|
|
|
14
14
|
|
|
15
15
|
descriptor_data = "\n)google/shopping/css/v1/css_products.proto\x12\x16google.shopping.css.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a/google/shopping/css/v1/css_product_common.proto\x1a google/shopping/type/types.proto\"K\n\x14GetCssProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x63ss.googleapis.com/CssProduct\"\xaa\x03\n\nCssProduct\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0fraw_provided_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x63ontent_language\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12;\n\nattributes\x18\x05 \x01(\x0b\x32\".google.shopping.css.v1.AttributesB\x03\xe0\x41\x03\x12\x45\n\x11\x63ustom_attributes\x18\x06 \x03(\x0b\x32%.google.shopping.type.CustomAttributeB\x03\xe0\x41\x03\x12I\n\x12\x63ss_product_status\x18\x08 \x01(\x0b\x32(.google.shopping.css.v1.CssProductStatusB\x03\xe0\x41\x03:i\xea\x41\x66\n\x1d\x63ss.googleapis.com/CssProduct\x12,accounts/{account}/cssProducts/{css_product}*\x0b\x63ssProducts2\ncssProduct\"v\n\x16ListCssProductsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x63ss.googleapis.com/CssProduct\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"l\n\x17ListCssProductsResponse\x12\x38\n\x0c\x63ss_products\x18\x01 \x03(\x0b\x32\".google.shopping.css.v1.CssProduct\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x98\x03\n\x12\x43ssProductsService\x12\x95\x01\n\rGetCssProduct\x12,.google.shopping.css.v1.GetCssProductRequest\x1a\".google.shopping.css.v1.CssProduct\"2\xda\x41\x04name\x82\xd3\xe4\x93\x02%\x12#/v1/{name=accounts/*/cssProducts/*}\x12\xa8\x01\n\x0fListCssProducts\x12..google.shopping.css.v1.ListCssProductsRequest\x1a/.google.shopping.css.v1.ListCssProductsResponse\"4\xda\x41\x06parent\x82\xd3\xe4\x93\x02%\x12#/v1/{parent=accounts/*}/cssProducts\x1a?\xca\x41\x12\x63ss.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xb2\x01\n\x1a\x63om.google.shopping.css.v1B\x10\x43ssProductsProtoP\x01Z2cloud.google.com/go/shopping/css/apiv1/csspb;csspb\xaa\x02\x16Google.Shopping.Css.V1\xca\x02\x16Google\\Shopping\\Css\\V1\xea\x02\x19Google::Shopping::Css::V1b\x06proto3"
|
|
16
16
|
|
|
17
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
-
|
|
19
|
-
begin
|
|
20
|
-
pool.add_serialized_file(descriptor_data)
|
|
21
|
-
rescue TypeError
|
|
22
|
-
# Compatibility code: will be removed in the next major version.
|
|
23
|
-
require 'google/protobuf/descriptor_pb'
|
|
24
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
25
|
-
parsed.clear_dependency
|
|
26
|
-
serialized = parsed.class.encode(parsed)
|
|
27
|
-
file = pool.add_serialized_file(serialized)
|
|
28
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
29
|
-
imports = [
|
|
30
|
-
["google.shopping.css.v1.Attributes", "google/shopping/css/v1/css_product_common.proto"],
|
|
31
|
-
["google.shopping.type.CustomAttribute", "google/shopping/type/types.proto"],
|
|
32
|
-
]
|
|
33
|
-
imports.each do |type_name, expected_filename|
|
|
34
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
35
|
-
if import_file.name != expected_filename
|
|
36
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
40
|
-
warn "This will become an error in the next major version."
|
|
41
|
-
end
|
|
17
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
42
19
|
|
|
43
20
|
module Google
|
|
44
21
|
module Shopping
|
|
@@ -216,6 +216,7 @@ module Google
|
|
|
216
216
|
#
|
|
217
217
|
# @param name [::String]
|
|
218
218
|
# Required. The name of the CSS product to retrieve.
|
|
219
|
+
# Format: `accounts/{account}/cssProducts/{css_product}`
|
|
219
220
|
#
|
|
220
221
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
221
222
|
# @yieldparam response [::Google::Shopping::Css::V1::CssProduct]
|
|
@@ -209,6 +209,7 @@ module Google
|
|
|
209
209
|
#
|
|
210
210
|
# @param name [::String]
|
|
211
211
|
# Required. The name of the CSS product to retrieve.
|
|
212
|
+
# Format: `accounts/{account}/cssProducts/{css_product}`
|
|
212
213
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
213
214
|
# @yieldparam result [::Google::Shopping::Css::V1::CssProduct]
|
|
214
215
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -12,29 +12,8 @@ require 'google/api/resource_pb'
|
|
|
12
12
|
|
|
13
13
|
descriptor_data = "\n\"google/shopping/css/v1/quota.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\"\xa3\x02\n\nQuotaGroup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x18\n\x0bquota_usage\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x18\n\x0bquota_limit\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1f\n\x12quota_minute_limit\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x42\n\x0emethod_details\x18\x04 \x03(\x0b\x32%.google.shopping.css.v1.MethodDetailsB\x03\xe0\x41\x03:i\xea\x41\x66\n\x1d\x63ss.googleapis.com/QuotaGroup\x12,accounts/{account}/quotaGroups/{quota_group}*\x0bquotaGroups2\nquotaGroup\"b\n\rMethodDetails\x12\x13\n\x06method\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07version\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x13\n\x06subapi\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04path\x18\x04 \x01(\tB\x03\xe0\x41\x03\"\x80\x01\n\x16ListQuotaGroupsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x63ss.googleapis.com/QuotaGroup\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\"l\n\x17ListQuotaGroupsResponse\x12\x38\n\x0cquota_groups\x18\x01 \x03(\x0b\x32\".google.shopping.css.v1.QuotaGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xf5\x01\n\x0cQuotaService\x12\xa3\x01\n\x0fListQuotaGroups\x12..google.shopping.css.v1.ListQuotaGroupsRequest\x1a/.google.shopping.css.v1.ListQuotaGroupsResponse\"/\xda\x41\x06parent\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{parent=accounts/*}/quotas\x1a?\xca\x41\x12\x63ss.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xac\x01\n\x1a\x63om.google.shopping.css.v1B\nQuotaProtoP\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"
|
|
14
14
|
|
|
15
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
-
|
|
17
|
-
begin
|
|
18
|
-
pool.add_serialized_file(descriptor_data)
|
|
19
|
-
rescue TypeError
|
|
20
|
-
# Compatibility code: will be removed in the next major version.
|
|
21
|
-
require 'google/protobuf/descriptor_pb'
|
|
22
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
23
|
-
parsed.clear_dependency
|
|
24
|
-
serialized = parsed.class.encode(parsed)
|
|
25
|
-
file = pool.add_serialized_file(serialized)
|
|
26
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
27
|
-
imports = [
|
|
28
|
-
]
|
|
29
|
-
imports.each do |type_name, expected_filename|
|
|
30
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
31
|
-
if import_file.name != expected_filename
|
|
32
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
36
|
-
warn "This will become an error in the next major version."
|
|
37
|
-
end
|
|
15
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
|
38
17
|
|
|
39
18
|
module Google
|
|
40
19
|
module Shopping
|
|
@@ -141,9 +141,10 @@ module Google
|
|
|
141
141
|
#
|
|
142
142
|
# Example of a YAML configuration::
|
|
143
143
|
#
|
|
144
|
-
#
|
|
145
|
-
#
|
|
146
|
-
#
|
|
144
|
+
# publishing:
|
|
145
|
+
# library_settings:
|
|
146
|
+
# java_settings:
|
|
147
|
+
# library_package: com.google.cloud.pubsub.v1
|
|
147
148
|
# @!attribute [rw] service_class_names
|
|
148
149
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
149
150
|
# Configure the Java class name to use instead of the service's for its
|
|
@@ -155,11 +156,11 @@ module Google
|
|
|
155
156
|
#
|
|
156
157
|
# Example of a YAML configuration::
|
|
157
158
|
#
|
|
158
|
-
#
|
|
159
|
-
#
|
|
160
|
-
#
|
|
161
|
-
#
|
|
162
|
-
#
|
|
159
|
+
# publishing:
|
|
160
|
+
# java_settings:
|
|
161
|
+
# service_class_names:
|
|
162
|
+
# - google.pubsub.v1.Publisher: TopicAdmin
|
|
163
|
+
# - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
|
163
164
|
# @!attribute [rw] common
|
|
164
165
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
165
166
|
# Some settings.
|
|
@@ -190,6 +191,20 @@ module Google
|
|
|
190
191
|
# @!attribute [rw] common
|
|
191
192
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
192
193
|
# Some settings.
|
|
194
|
+
# @!attribute [rw] library_package
|
|
195
|
+
# @return [::String]
|
|
196
|
+
# The package name to use in Php. Clobbers the php_namespace option
|
|
197
|
+
# set in the protobuf. This should be used **only** by APIs
|
|
198
|
+
# who have already set the language_settings.php.package_name" field
|
|
199
|
+
# in gapic.yaml. API teams should use the protobuf php_namespace option
|
|
200
|
+
# where possible.
|
|
201
|
+
#
|
|
202
|
+
# Example of a YAML configuration::
|
|
203
|
+
#
|
|
204
|
+
# publishing:
|
|
205
|
+
# library_settings:
|
|
206
|
+
# php_settings:
|
|
207
|
+
# library_package: Google\Cloud\PubSub\V1
|
|
193
208
|
class PhpSettings
|
|
194
209
|
include ::Google::Protobuf::MessageExts
|
|
195
210
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -318,10 +333,12 @@ module Google
|
|
|
318
333
|
# service names and values are the name to be used for the service client
|
|
319
334
|
# and call options.
|
|
320
335
|
#
|
|
321
|
-
#
|
|
322
|
-
#
|
|
323
|
-
#
|
|
324
|
-
#
|
|
336
|
+
# Example:
|
|
337
|
+
#
|
|
338
|
+
# publishing:
|
|
339
|
+
# go_settings:
|
|
340
|
+
# renamed_services:
|
|
341
|
+
# Publisher: TopicAdmin
|
|
325
342
|
class GoSettings
|
|
326
343
|
include ::Google::Protobuf::MessageExts
|
|
327
344
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -344,10 +361,10 @@ module Google
|
|
|
344
361
|
#
|
|
345
362
|
# Example:
|
|
346
363
|
#
|
|
347
|
-
#
|
|
348
|
-
#
|
|
349
|
-
#
|
|
350
|
-
#
|
|
364
|
+
# publishing:
|
|
365
|
+
# method_settings:
|
|
366
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
|
367
|
+
# # method settings for CreateFolder...
|
|
351
368
|
# @!attribute [rw] long_running
|
|
352
369
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
|
353
370
|
# Describes settings to use for long-running operations when generating
|
|
@@ -356,14 +373,14 @@ module Google
|
|
|
356
373
|
#
|
|
357
374
|
# Example of a YAML configuration::
|
|
358
375
|
#
|
|
359
|
-
#
|
|
360
|
-
#
|
|
361
|
-
#
|
|
362
|
-
#
|
|
363
|
-
#
|
|
364
|
-
#
|
|
365
|
-
#
|
|
366
|
-
#
|
|
376
|
+
# publishing:
|
|
377
|
+
# method_settings:
|
|
378
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
|
379
|
+
# long_running:
|
|
380
|
+
# initial_poll_delay: 60s # 1 minute
|
|
381
|
+
# poll_delay_multiplier: 1.5
|
|
382
|
+
# max_poll_delay: 360s # 6 minutes
|
|
383
|
+
# total_poll_timeout: 54000s # 90 minutes
|
|
367
384
|
# @!attribute [rw] auto_populated_fields
|
|
368
385
|
# @return [::Array<::String>]
|
|
369
386
|
# List of top-level fields of the request message, that should be
|
|
@@ -372,11 +389,24 @@ module Google
|
|
|
372
389
|
#
|
|
373
390
|
# Example of a YAML configuration:
|
|
374
391
|
#
|
|
375
|
-
#
|
|
376
|
-
#
|
|
377
|
-
#
|
|
378
|
-
#
|
|
379
|
-
#
|
|
392
|
+
# publishing:
|
|
393
|
+
# method_settings:
|
|
394
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
|
395
|
+
# auto_populated_fields:
|
|
396
|
+
# - request_id
|
|
397
|
+
# @!attribute [rw] batching
|
|
398
|
+
# @return [::Google::Api::BatchingConfigProto]
|
|
399
|
+
# Batching configuration for an API method in client libraries.
|
|
400
|
+
#
|
|
401
|
+
# Example of a YAML configuration:
|
|
402
|
+
#
|
|
403
|
+
# publishing:
|
|
404
|
+
# method_settings:
|
|
405
|
+
# - selector: google.example.v1.ExampleService.BatchCreateExample
|
|
406
|
+
# batching:
|
|
407
|
+
# element_count_threshold: 1000
|
|
408
|
+
# request_byte_threshold: 100000000
|
|
409
|
+
# delay_threshold_millis: 10
|
|
380
410
|
class MethodSettings
|
|
381
411
|
include ::Google::Protobuf::MessageExts
|
|
382
412
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -428,6 +458,77 @@ module Google
|
|
|
428
458
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
429
459
|
end
|
|
430
460
|
|
|
461
|
+
# `BatchingConfigProto` defines the batching configuration for an API method.
|
|
462
|
+
# @!attribute [rw] thresholds
|
|
463
|
+
# @return [::Google::Api::BatchingSettingsProto]
|
|
464
|
+
# The thresholds which trigger a batched request to be sent.
|
|
465
|
+
# @!attribute [rw] batch_descriptor
|
|
466
|
+
# @return [::Google::Api::BatchingDescriptorProto]
|
|
467
|
+
# The request and response fields used in batching.
|
|
468
|
+
class BatchingConfigProto
|
|
469
|
+
include ::Google::Protobuf::MessageExts
|
|
470
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of
|
|
474
|
+
# which acts as a trigger to send a batch of messages as a request. At least
|
|
475
|
+
# one threshold must be positive nonzero.
|
|
476
|
+
# @!attribute [rw] element_count_threshold
|
|
477
|
+
# @return [::Integer]
|
|
478
|
+
# The number of elements of a field collected into a batch which, if
|
|
479
|
+
# exceeded, causes the batch to be sent.
|
|
480
|
+
# @!attribute [rw] request_byte_threshold
|
|
481
|
+
# @return [::Integer]
|
|
482
|
+
# The aggregated size of the batched field which, if exceeded, causes the
|
|
483
|
+
# batch to be sent. This size is computed by aggregating the sizes of the
|
|
484
|
+
# request field to be batched, not of the entire request message.
|
|
485
|
+
# @!attribute [rw] delay_threshold
|
|
486
|
+
# @return [::Google::Protobuf::Duration]
|
|
487
|
+
# The duration after which a batch should be sent, starting from the addition
|
|
488
|
+
# of the first message to that batch.
|
|
489
|
+
# @!attribute [rw] element_count_limit
|
|
490
|
+
# @return [::Integer]
|
|
491
|
+
# The maximum number of elements collected in a batch that could be accepted
|
|
492
|
+
# by server.
|
|
493
|
+
# @!attribute [rw] request_byte_limit
|
|
494
|
+
# @return [::Integer]
|
|
495
|
+
# The maximum size of the request that could be accepted by server.
|
|
496
|
+
# @!attribute [rw] flow_control_element_limit
|
|
497
|
+
# @return [::Integer]
|
|
498
|
+
# The maximum number of elements allowed by flow control.
|
|
499
|
+
# @!attribute [rw] flow_control_byte_limit
|
|
500
|
+
# @return [::Integer]
|
|
501
|
+
# The maximum size of data allowed by flow control.
|
|
502
|
+
# @!attribute [rw] flow_control_limit_exceeded_behavior
|
|
503
|
+
# @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
|
|
504
|
+
# The behavior to take when the flow control limit is exceeded.
|
|
505
|
+
class BatchingSettingsProto
|
|
506
|
+
include ::Google::Protobuf::MessageExts
|
|
507
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
# `BatchingDescriptorProto` specifies the fields of the request message to be
|
|
511
|
+
# used for batching, and, optionally, the fields of the response message to be
|
|
512
|
+
# used for demultiplexing.
|
|
513
|
+
# @!attribute [rw] batched_field
|
|
514
|
+
# @return [::String]
|
|
515
|
+
# The repeated field in the request message to be aggregated by batching.
|
|
516
|
+
# @!attribute [rw] discriminator_fields
|
|
517
|
+
# @return [::Array<::String>]
|
|
518
|
+
# A list of the fields in the request message. Two requests will be batched
|
|
519
|
+
# together only if the values of every field specified in
|
|
520
|
+
# `request_discriminator_fields` is equal between the two requests.
|
|
521
|
+
# @!attribute [rw] subresponse_field
|
|
522
|
+
# @return [::String]
|
|
523
|
+
# Optional. When present, indicates the field in the response message to be
|
|
524
|
+
# used to demultiplex the response into multiple response messages, in
|
|
525
|
+
# correspondence with the multiple request messages originally batched
|
|
526
|
+
# together.
|
|
527
|
+
class BatchingDescriptorProto
|
|
528
|
+
include ::Google::Protobuf::MessageExts
|
|
529
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
530
|
+
end
|
|
531
|
+
|
|
431
532
|
# The organization for which the client libraries are being published.
|
|
432
533
|
# Affects the url where generated docs are published, etc.
|
|
433
534
|
module ClientLibraryOrganization
|
|
@@ -469,5 +570,20 @@ module Google
|
|
|
469
570
|
# Publish the library to package managers like nuget.org and npmjs.com.
|
|
470
571
|
PACKAGE_MANAGER = 20
|
|
471
572
|
end
|
|
573
|
+
|
|
574
|
+
# The behavior to take when the flow control limit is exceeded.
|
|
575
|
+
module FlowControlLimitExceededBehaviorProto
|
|
576
|
+
# Default behavior, system-defined.
|
|
577
|
+
UNSET_BEHAVIOR = 0
|
|
578
|
+
|
|
579
|
+
# Stop operation, raise error.
|
|
580
|
+
THROW_EXCEPTION = 1
|
|
581
|
+
|
|
582
|
+
# Pause operation until limit clears.
|
|
583
|
+
BLOCK = 2
|
|
584
|
+
|
|
585
|
+
# Continue operation, disregard limit.
|
|
586
|
+
IGNORE = 3
|
|
587
|
+
end
|
|
472
588
|
end
|
|
473
589
|
end
|
|
@@ -24,7 +24,7 @@ module Google
|
|
|
24
24
|
# Label assigned by CSS domain or CSS group to one of its sub-accounts.
|
|
25
25
|
# @!attribute [rw] name
|
|
26
26
|
# @return [::String]
|
|
27
|
-
# The resource name of the label.
|
|
27
|
+
# Identifier. The resource name of the label.
|
|
28
28
|
# Format: accounts/\\{account}/labels/\\{label}
|
|
29
29
|
# @!attribute [r] label_id
|
|
30
30
|
# @return [::Integer]
|
|
@@ -131,7 +131,7 @@ module Google
|
|
|
131
131
|
# @return [::Array<::String>]
|
|
132
132
|
# The cut of the item. It can be used to represent combined size types for
|
|
133
133
|
# apparel items. Maximum two of size types can be provided (see
|
|
134
|
-
# [https://support.google.com/merchants/answer/6324497
|
|
134
|
+
# [size type](https://support.google.com/merchants/answer/6324497).
|
|
135
135
|
# @!attribute [rw] item_group_id
|
|
136
136
|
# @return [::String]
|
|
137
137
|
# Shared identifier for all variants of the same product.
|
|
@@ -205,6 +205,31 @@ module Google
|
|
|
205
205
|
# @return [::Google::Shopping::Css::V1::HeadlineOfferSubscriptionCost]
|
|
206
206
|
# Number of periods (months or years) and amount of payment per period
|
|
207
207
|
# for an item with an associated subscription contract.
|
|
208
|
+
# @!attribute [rw] review_count
|
|
209
|
+
# @return [::Integer]
|
|
210
|
+
# Number of reviews of the product. Required if
|
|
211
|
+
# {::Google::Shopping::Css::V1::Attributes#rating `rating`} is provided.
|
|
212
|
+
# This field is for an upcoming feature and is not yet used.
|
|
213
|
+
# @!attribute [rw] min_rating
|
|
214
|
+
# @return [::Integer]
|
|
215
|
+
# Minimum rating score of the product. Required if
|
|
216
|
+
# {::Google::Shopping::Css::V1::Attributes#rating `rating`} is provided.
|
|
217
|
+
# This field is for an upcoming feature and is not yet used.
|
|
218
|
+
# @!attribute [rw] max_rating
|
|
219
|
+
# @return [::Integer]
|
|
220
|
+
# Maximum rating score of the product. Required if
|
|
221
|
+
# {::Google::Shopping::Css::V1::Attributes#rating `rating`} is provided.
|
|
222
|
+
# This field is for an upcoming feature and is not yet used.
|
|
223
|
+
# @!attribute [rw] rating
|
|
224
|
+
# @return [::Float]
|
|
225
|
+
# Average rating score of the product. The value must be within the
|
|
226
|
+
# range of [`min_rating`, `max_rating`], inclusive. When displayed on the
|
|
227
|
+
# product page, this rating is normalized to a scale of [1, 5] with one
|
|
228
|
+
# decimal place. If provided,
|
|
229
|
+
# {::Google::Shopping::Css::V1::Attributes#review_count `review_count`},
|
|
230
|
+
# {::Google::Shopping::Css::V1::Attributes#min_rating `min_rating`}, and
|
|
231
|
+
# {::Google::Shopping::Css::V1::Attributes#max_rating `max_rating`} are also
|
|
232
|
+
# required. This field is for an upcoming feature and is not yet used.
|
|
208
233
|
class Attributes
|
|
209
234
|
include ::Google::Protobuf::MessageExts
|
|
210
235
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# across Google surfaces.
|
|
27
27
|
# @!attribute [rw] name
|
|
28
28
|
# @return [::String]
|
|
29
|
-
# The name of the CSS Product input.
|
|
29
|
+
# Identifier. The name of the CSS Product input.
|
|
30
30
|
# Format:
|
|
31
31
|
# `accounts/{account}/cssProductInputs/{css_product_input}`, where the
|
|
32
32
|
# last section `css_product_input` consists of 3 parts:
|
|
@@ -25,6 +25,7 @@ module Google
|
|
|
25
25
|
# @!attribute [rw] name
|
|
26
26
|
# @return [::String]
|
|
27
27
|
# Required. The name of the CSS product to retrieve.
|
|
28
|
+
# Format: `accounts/{account}/cssProducts/{css_product}`
|
|
28
29
|
class GetCssProductRequest
|
|
29
30
|
include ::Google::Protobuf::MessageExts
|
|
30
31
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -114,6 +114,25 @@ module Google
|
|
|
114
114
|
|
|
115
115
|
# [YouTube Shopping](https://support.google.com/merchants/answer/12362804).
|
|
116
116
|
YOUTUBE_SHOPPING = 6
|
|
117
|
+
|
|
118
|
+
# Youtube shopping checkout.
|
|
119
|
+
YOUTUBE_SHOPPING_CHECKOUT = 7
|
|
120
|
+
|
|
121
|
+
# [Youtube Affiliate](https://support.google.com/youtube/answer/13376398).
|
|
122
|
+
YOUTUBE_AFFILIATE = 8
|
|
123
|
+
|
|
124
|
+
# [Free vehicle
|
|
125
|
+
# listings](https://support.google.com/merchants/answer/11189169).
|
|
126
|
+
FREE_VEHICLE_LISTINGS = 9
|
|
127
|
+
|
|
128
|
+
# [Vehicle ads](https://support.google.com/merchants/answer/11189169).
|
|
129
|
+
VEHICLE_ADS = 10
|
|
130
|
+
|
|
131
|
+
# [Cloud retail](https://cloud.google.com/solutions/retail).
|
|
132
|
+
CLOUD_RETAIL = 11
|
|
133
|
+
|
|
134
|
+
# [Local cloud retail](https://cloud.google.com/solutions/retail).
|
|
135
|
+
LOCAL_CLOUD_RETAIL = 12
|
|
117
136
|
end
|
|
118
137
|
end
|
|
119
138
|
|
|
@@ -166,6 +185,10 @@ module Google
|
|
|
166
185
|
# listings](https://support.google.com/merchants/answer/9199328).
|
|
167
186
|
FREE_LISTINGS = 7
|
|
168
187
|
|
|
188
|
+
# [Free product listings on UCP
|
|
189
|
+
# checkout](https://developers.google.com/merchant/ucp).
|
|
190
|
+
FREE_LISTINGS_UCP_CHECKOUT = 19
|
|
191
|
+
|
|
169
192
|
# [Free local product
|
|
170
193
|
# listings](https://support.google.com/merchants/answer/9825611).
|
|
171
194
|
FREE_LOCAL_LISTINGS = 8
|
|
@@ -174,6 +197,9 @@ module Google
|
|
|
174
197
|
# listings](https://support.google.com/merchants/answer/11544533).
|
|
175
198
|
FREE_LOCAL_VEHICLE_LISTINGS = 9
|
|
176
199
|
|
|
200
|
+
# [Youtube Affiliate](https://support.google.com/youtube/answer/13376398).
|
|
201
|
+
YOUTUBE_AFFILIATE = 18
|
|
202
|
+
|
|
177
203
|
# [YouTube
|
|
178
204
|
# Shopping](https://support.google.com/merchants/answer/13478370).
|
|
179
205
|
YOUTUBE_SHOPPING = 10
|
|
@@ -183,6 +209,18 @@ module Google
|
|
|
183
209
|
|
|
184
210
|
# [Local cloud retail](https://cloud.google.com/solutions/retail).
|
|
185
211
|
LOCAL_CLOUD_RETAIL = 12
|
|
212
|
+
|
|
213
|
+
# [Product
|
|
214
|
+
# Reviews](https://support.google.com/merchants/answer/14620732).
|
|
215
|
+
PRODUCT_REVIEWS = 15
|
|
216
|
+
|
|
217
|
+
# [Merchant
|
|
218
|
+
# Reviews](https://developers.google.com/merchant-review-feeds).
|
|
219
|
+
MERCHANT_REVIEWS = 16
|
|
220
|
+
|
|
221
|
+
# YouTube Checkout
|
|
222
|
+
# .
|
|
223
|
+
YOUTUBE_CHECKOUT = 17
|
|
186
224
|
end
|
|
187
225
|
end
|
|
188
226
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -147,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
147
147
|
requirements:
|
|
148
148
|
- - ">="
|
|
149
149
|
- !ruby/object:Gem::Version
|
|
150
|
-
version: '3.
|
|
150
|
+
version: '3.2'
|
|
151
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
152
|
requirements:
|
|
153
153
|
- - ">="
|