google-shopping-type 1.2.0 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9de64149e71f46aae9d35283579853e44c2f1086d40404bd582c3ca2e54be53
4
- data.tar.gz: 1e04bc18dc0e093b2ec3bdac1a8cf35932da7f451b29b81ffb7990bc5c103546
3
+ metadata.gz: d34970b8becb673f4a8458a668d17c88fe0e60d492ed543ffbaf5742cd0aac9f
4
+ data.tar.gz: d52db1d77fd589791c53369c490b63653fba11ff7210114cc08dbbbf1734bed1
5
5
  SHA512:
6
- metadata.gz: 3bd3ee1cac3f9a8722f0307349d26c9a3b6b24c892c5af9b3dd2dcd184c284f7b13b460f0e9c9f9e7fde2efb5ac9a50ab4e3e4a4b6e040fc4be44b23271df483
7
- data.tar.gz: 5e6f808266a22ccdfb1460b9d5a89deec8d5ba9c83627b19eeef4e18964b6ffbe42cc4a0f35c88dbc5c671ec4c6d9f74e3e263fb96c4259c76e0f52188d67cea
6
+ metadata.gz: 4edf9e1ad47d7fcc9dad27f1c3546c49d439214130881a2a9d42422c2de442a43024ed2db58557e1c521d6f976223e927e9a35da35e78607df592ae479a34659
7
+ data.tar.gz: 378e442734b3a2ac523f1372272af04842eee10a71f804b3d121dcf97e18674ff75a3ffc5341f46eed83b8d834fefdf3fb5f83f51ff43502604d0b72fb3d7477
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.3.0 (2026-10-23)
4
+
5
+ #### Features
6
+
7
+ * Automated update of google-shopping-type ([#430](https://github.com/googleapis/common-protos-ruby/issues/430))
8
+
3
9
  ### 1.2.0 (2026-05-19)
4
10
 
5
11
  #### Features
@@ -7,8 +7,29 @@ require 'google/protobuf'
7
7
 
8
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\"\xcd\x02\n\x0b\x44\x65stination\"\xbd\x02\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\x12\x1d\n\x19YOUTUBE_SHOPPING_CHECKOUT\x10\x07\x12\x15\n\x11YOUTUBE_AFFILIATE\x10\x08\x12\x19\n\x15\x46REE_VEHICLE_LISTINGS\x10\t\x12\x0f\n\x0bVEHICLE_ADS\x10\n\x12\x10\n\x0c\x43LOUD_RETAIL\x10\x0b\x12\x16\n\x12LOCAL_CLOUD_RETAIL\x10\x0c\"\x8e\x04\n\x10ReportingContext\"\xf9\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\x1e\n\x1a\x46REE_LISTINGS_UCP_CHECKOUT\x10\x13\x12\x17\n\x13\x46REE_LOCAL_LISTINGS\x10\x08\x12\x1f\n\x1b\x46REE_LOCAL_VEHICLE_LISTINGS\x10\t\x12\x15\n\x11YOUTUBE_AFFILIATE\x10\x12\x12\x14\n\x10YOUTUBE_SHOPPING\x10\n\x12\x10\n\x0c\x43LOUD_RETAIL\x10\x0b\x12\x16\n\x12LOCAL_CLOUD_RETAIL\x10\x0c\x12\x13\n\x0fPRODUCT_REVIEWS\x10\x0f\x12\x14\n\x10MERCHANT_REVIEWS\x10\x10\x12\x14\n\x10YOUTUBE_CHECKOUT\x10\x11\"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
- pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
- pool.add_serialized_file(descriptor_data)
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
12
33
 
13
34
  module Google
14
35
  module Shopping
@@ -17,7 +17,7 @@
17
17
  module Google
18
18
  module Shopping
19
19
  module Type
20
- VERSION = "1.2.0".freeze
20
+ VERSION = "1.3.0".freeze
21
21
  end
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-shopping-type
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC