google-shopping-type 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d2dda38698f4dd18c6157f549feb8351b328278816721161f8556bdc16c8131
4
- data.tar.gz: f4bcccf366614a176b00b9d3bc7e19967c6c161ed7b805e3360d354599425b53
3
+ metadata.gz: 50ae0fe4fc48e24c3b51224fcc902a38841abfc39d98a1a48db64b9ba956f66e
4
+ data.tar.gz: 7c2b30485ebde90ea8228fd7aa4e6bb798229f15da7bcff337683f98025c36b9
5
5
  SHA512:
6
- metadata.gz: fdf8700f420833d0fe6da11ef3eef2c675f5ec5ff92bd6e1790cd958c1b8c9c43228c701b70f486b1dd3a6d5a265b84e7f1213c71e19c84837a41d63115641e3
7
- data.tar.gz: 518c8fb442c1a91e7338f4ee4547d94019f327564d8204ebcd6967fcbe8e75ab954193ff7382c21130f7425845ed19eadd2dca9d1902d4b4f9cff3706edbf701
6
+ metadata.gz: d39d5013795ded8980b58f7926c17ca181d750ea09790f0fbdfb27a463948220059181440c73b21f06193934fb556410d355d91cbff7b888637ef29f6e94d9f3
7
+ data.tar.gz: 3c3c61f4eca5220c5963cf40ad9bc0f8dba1f913682ef809a4b78f40f5cfa3cbf50dce9591e137e1dc1c6e60017258d1ef6198a4fe4e6de9fd680b6c8800c10f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ### 0.5.0 (2024-05-20)
4
+
5
+ #### Features
6
+
7
+ * Added Google::Shopping::Type::Weight
8
+
9
+ ### 0.4.0 (2024-04-14)
10
+
11
+ #### Features
12
+
13
+ * Recommend DEMAND_GEN_ADS over deprecated DISCOVERY_ADS in google-shopping-type ([#269](https://github.com/googleapis/common-protos-ruby/issues/269))
14
+
3
15
  ### 0.3.0 (2024-02-23)
4
16
 
5
17
  #### Features
@@ -5,7 +5,7 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
 
8
- descriptor_data = "\n google/shopping/type/types.proto\x12\x14google.shopping.type\"c\n\x05Price\x12\x1a\n\ramount_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x10\n\x0e_amount_microsB\x10\n\x0e_currency_code\"\x88\x01\n\x0f\x43ustomAttribute\x12\x11\n\x04name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05value\x18\x02 \x01(\tH\x01\x88\x01\x01\x12;\n\x0cgroup_values\x18\x03 \x03(\x0b\x32%.google.shopping.type.CustomAttributeB\x07\n\x05_nameB\x08\n\x06_value\"\xc1\x01\n\x0b\x44\x65stination\"\xb1\x01\n\x0f\x44\x65stinationEnum\x12 \n\x1c\x44\x45STINATION_ENUM_UNSPECIFIED\x10\x00\x12\x10\n\x0cSHOPPING_ADS\x10\x01\x12\x0f\n\x0b\x44ISPLAY_ADS\x10\x02\x12\x17\n\x13LOCAL_INVENTORY_ADS\x10\x03\x12\x11\n\rFREE_LISTINGS\x10\x04\x12\x17\n\x13\x46REE_LOCAL_LISTINGS\x10\x05\x12\x14\n\x10YOUTUBE_SHOPPING\x10\x06\"\xd9\x02\n\x10ReportingContext\"\xc4\x02\n\x14ReportingContextEnum\x12&\n\"REPORTING_CONTEXT_ENUM_UNSPECIFIED\x10\x00\x12\x10\n\x0cSHOPPING_ADS\x10\x01\x12\x11\n\rDISCOVERY_ADS\x10\x02\x12\r\n\tVIDEO_ADS\x10\x03\x12\x0f\n\x0b\x44ISPLAY_ADS\x10\x04\x12\x17\n\x13LOCAL_INVENTORY_ADS\x10\x05\x12\x19\n\x15VEHICLE_INVENTORY_ADS\x10\x06\x12\x11\n\rFREE_LISTINGS\x10\x07\x12\x17\n\x13\x46REE_LOCAL_LISTINGS\x10\x08\x12\x1f\n\x1b\x46REE_LOCAL_VEHICLE_LISTINGS\x10\t\x12\x14\n\x10YOUTUBE_SHOPPING\x10\n\x12\x10\n\x0c\x43LOUD_RETAIL\x10\x0b\x12\x16\n\x12LOCAL_CLOUD_RETAIL\x10\x0c\"M\n\x07\x43hannel\"B\n\x0b\x43hannelEnum\x12\x1c\n\x18\x43HANNEL_ENUM_UNSPECIFIED\x10\x00\x12\n\n\x06ONLINE\x10\x01\x12\t\n\x05LOCAL\x10\x02\x42p\n\x18\x63om.google.shopping.typeB\nTypesProtoP\x01Z/cloud.google.com/go/shopping/type/typepb;typepb\xaa\x02\x14Google.Shopping.Typeb\x06proto3"
8
+ descriptor_data = "\n google/shopping/type/types.proto\x12\x14google.shopping.type\"\xb1\x01\n\x06Weight\x12\x1a\n\ramount_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\x35\n\x04unit\x18\x02 \x01(\x0e\x32\'.google.shopping.type.Weight.WeightUnit\"B\n\nWeightUnit\x12\x1b\n\x17WEIGHT_UNIT_UNSPECIFIED\x10\x00\x12\t\n\x05POUND\x10\x01\x12\x0c\n\x08KILOGRAM\x10\x02\x42\x10\n\x0e_amount_micros\"c\n\x05Price\x12\x1a\n\ramount_micros\x18\x01 \x01(\x03H\x00\x88\x01\x01\x12\x1a\n\rcurrency_code\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x10\n\x0e_amount_microsB\x10\n\x0e_currency_code\"\x88\x01\n\x0f\x43ustomAttribute\x12\x11\n\x04name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05value\x18\x02 \x01(\tH\x01\x88\x01\x01\x12;\n\x0cgroup_values\x18\x03 \x03(\x0b\x32%.google.shopping.type.CustomAttributeB\x07\n\x05_nameB\x08\n\x06_value\"\xc1\x01\n\x0b\x44\x65stination\"\xb1\x01\n\x0f\x44\x65stinationEnum\x12 \n\x1c\x44\x45STINATION_ENUM_UNSPECIFIED\x10\x00\x12\x10\n\x0cSHOPPING_ADS\x10\x01\x12\x0f\n\x0b\x44ISPLAY_ADS\x10\x02\x12\x17\n\x13LOCAL_INVENTORY_ADS\x10\x03\x12\x11\n\rFREE_LISTINGS\x10\x04\x12\x17\n\x13\x46REE_LOCAL_LISTINGS\x10\x05\x12\x14\n\x10YOUTUBE_SHOPPING\x10\x06\"\x96\x03\n\x10ReportingContext\"\x81\x03\n\x14ReportingContextEnum\x12&\n\"REPORTING_CONTEXT_ENUM_UNSPECIFIED\x10\x00\x12\x10\n\x0cSHOPPING_ADS\x10\x01\x12\x15\n\rDISCOVERY_ADS\x10\x02\x1a\x02\x08\x01\x12\x12\n\x0e\x44\x45MAND_GEN_ADS\x10\r\x12#\n\x1f\x44\x45MAND_GEN_ADS_DISCOVER_SURFACE\x10\x0e\x12\r\n\tVIDEO_ADS\x10\x03\x12\x0f\n\x0b\x44ISPLAY_ADS\x10\x04\x12\x17\n\x13LOCAL_INVENTORY_ADS\x10\x05\x12\x19\n\x15VEHICLE_INVENTORY_ADS\x10\x06\x12\x11\n\rFREE_LISTINGS\x10\x07\x12\x17\n\x13\x46REE_LOCAL_LISTINGS\x10\x08\x12\x1f\n\x1b\x46REE_LOCAL_VEHICLE_LISTINGS\x10\t\x12\x14\n\x10YOUTUBE_SHOPPING\x10\n\x12\x10\n\x0c\x43LOUD_RETAIL\x10\x0b\x12\x16\n\x12LOCAL_CLOUD_RETAIL\x10\x0c\"M\n\x07\x43hannel\"B\n\x0b\x43hannelEnum\x12\x1c\n\x18\x43HANNEL_ENUM_UNSPECIFIED\x10\x00\x12\n\n\x06ONLINE\x10\x01\x12\t\n\x05LOCAL\x10\x02\x42p\n\x18\x63om.google.shopping.typeB\nTypesProtoP\x01Z/cloud.google.com/go/shopping/type/typepb;typepb\xaa\x02\x14Google.Shopping.Typeb\x06proto3"
9
9
 
10
10
  pool = Google::Protobuf::DescriptorPool.generated_pool
11
11
 
@@ -34,6 +34,8 @@ end
34
34
  module Google
35
35
  module Shopping
36
36
  module Type
37
+ Weight = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.type.Weight").msgclass
38
+ Weight::WeightUnit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.type.Weight.WeightUnit").enummodule
37
39
  Price = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.type.Price").msgclass
38
40
  CustomAttribute = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.type.CustomAttribute").msgclass
39
41
  Destination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.type.Destination").msgclass
@@ -48,7 +50,7 @@ end
48
50
 
49
51
  #### Source proto file: google/shopping/type/types.proto ####
50
52
  #
51
- # // Copyright 2023 Google LLC
53
+ # // Copyright 2024 Google LLC
52
54
  # //
53
55
  # // Licensed under the Apache License, Version 2.0 (the "License");
54
56
  # // you may not use this file except in compliance with the License.
@@ -72,13 +74,37 @@ end
72
74
  # option java_outer_classname = "TypesProto";
73
75
  # option java_package = "com.google.shopping.type";
74
76
  #
77
+ # // The weight represented as the value in string and the unit.
78
+ # message Weight {
79
+ # // The weight unit.
80
+ # enum WeightUnit {
81
+ # // unit unspecified
82
+ # WEIGHT_UNIT_UNSPECIFIED = 0;
83
+ #
84
+ # // lb unit.
85
+ # POUND = 1;
86
+ #
87
+ # // kg unit.
88
+ # KILOGRAM = 2;
89
+ # }
90
+ #
91
+ # // Required. The weight represented as a number in micros (1 million micros is
92
+ # // an equivalent to one's currency standard unit, for example, 1 kg = 1000000
93
+ # // micros).
94
+ # // This field can also be set as infinity by setting to -1.
95
+ # // This field only support -1 and positive value.
96
+ # optional int64 amount_micros = 1;
97
+ #
98
+ # // Required. The weight unit.
99
+ # // Acceptable values are: kg and lb
100
+ # WeightUnit unit = 2;
101
+ # }
102
+ #
75
103
  # // The price represented as a number and currency.
76
104
  # message Price {
77
105
  # // The price represented as a number in micros (1 million micros is an
78
106
  # // equivalent to one's currency standard unit, for example, 1 USD = 1000000
79
107
  # // micros).
80
- # // This field can also be set as infinity by setting to -1.
81
- # // This field only support -1 and positive value.
82
108
  # optional int64 amount_micros = 1;
83
109
  #
84
110
  # // The currency of the price using three-letter acronyms according to [ISO
@@ -139,7 +165,7 @@ end
139
165
  # // Reporting contexts are groups of surfaces and formats for product results on
140
166
  # // Google. They can represent the entire destination (for example, [Shopping
141
167
  # // ads](https://support.google.com/merchants/answer/6149970)) or a subset of
142
- # // formats within a destination (for example, [Discovery
168
+ # // formats within a destination (for example, [Demand Gen
143
169
  # // ads](https://support.google.com/merchants/answer/13389785)).
144
170
  # //
145
171
  # message ReportingContext {
@@ -151,9 +177,17 @@ end
151
177
  # // [Shopping ads](https://support.google.com/merchants/answer/6149970).
152
178
  # SHOPPING_ADS = 1;
153
179
  #
180
+ # // Deprecated: Use `DEMAND_GEN_ADS` instead.
154
181
  # // [Discovery and Demand Gen
155
182
  # // ads](https://support.google.com/merchants/answer/13389785).
156
- # DISCOVERY_ADS = 2;
183
+ # DISCOVERY_ADS = 2 [deprecated = true];
184
+ #
185
+ # // [Demand Gen ads](https://support.google.com/merchants/answer/13389785).
186
+ # DEMAND_GEN_ADS = 13;
187
+ #
188
+ # // [Demand Gen ads on Discover
189
+ # // surface](https://support.google.com/merchants/answer/13389785).
190
+ # DEMAND_GEN_ADS_DISCOVER_SURFACE = 14;
157
191
  #
158
192
  # // [Video ads](https://support.google.com/google-ads/answer/6340491).
159
193
  # VIDEO_ADS = 3;
@@ -17,7 +17,7 @@
17
17
  module Google
18
18
  module Shopping
19
19
  module Type
20
- VERSION = "0.3.0".freeze
20
+ VERSION = "0.5.0".freeze
21
21
  end
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-shopping-type
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.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: 2024-02-23 00:00:00.000000000 Z
11
+ date: 2024-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf