googleapis-common-protos-types 1.22.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/lib/google/api/annotations_pb.rb +24 -2
  4. data/lib/google/api/auth_pb.rb +25 -3
  5. data/lib/google/api/backend_pb.rb +36 -4
  6. data/lib/google/api/billing_pb.rb +24 -3
  7. data/lib/google/api/client_pb.rb +194 -56
  8. data/lib/google/api/config_change_pb.rb +24 -3
  9. data/lib/google/api/consumer_pb.rb +23 -2
  10. data/lib/google/api/context_pb.rb +24 -3
  11. data/lib/google/api/control_pb.rb +27 -5
  12. data/lib/google/api/distribution_pb.rb +26 -3
  13. data/lib/google/api/documentation_pb.rb +24 -3
  14. data/lib/google/api/endpoint_pb.rb +24 -3
  15. data/lib/google/api/error_reason_pb.rb +210 -4
  16. data/lib/google/api/field_behavior_pb.rb +24 -3
  17. data/lib/google/api/field_info_pb.rb +24 -3
  18. data/lib/google/api/http_pb.rb +24 -3
  19. data/lib/google/api/httpbody_pb.rb +25 -3
  20. data/lib/google/api/label_pb.rb +24 -3
  21. data/lib/google/api/launch_stage_pb.rb +24 -3
  22. data/lib/google/api/log_pb.rb +25 -3
  23. data/lib/google/api/logging_pb.rb +24 -3
  24. data/lib/google/api/metric_pb.rb +26 -3
  25. data/lib/google/api/monitored_resource_pb.rb +26 -3
  26. data/lib/google/api/monitoring_pb.rb +24 -3
  27. data/lib/google/api/policy_pb.rb +24 -3
  28. data/lib/google/api/quota_pb.rb +24 -3
  29. data/lib/google/api/resource_pb.rb +24 -3
  30. data/lib/google/api/routing_pb.rb +31 -6
  31. data/lib/google/api/service_pb.rb +46 -5
  32. data/lib/google/api/source_info_pb.rb +25 -3
  33. data/lib/google/api/system_parameter_pb.rb +24 -3
  34. data/lib/google/api/usage_pb.rb +30 -29
  35. data/lib/google/api/visibility_pb.rb +24 -3
  36. data/lib/google/logging/type/http_request_pb.rb +24 -2
  37. data/lib/google/logging/type/log_severity_pb.rb +23 -2
  38. data/lib/google/longrunning/operations_pb.rb +26 -2
  39. data/lib/google/rpc/code_pb.rb +24 -3
  40. data/lib/google/rpc/context/attribute_context_pb.rb +35 -5
  41. data/lib/google/rpc/context/audit_context_pb.rb +25 -3
  42. data/lib/google/rpc/error_details_pb.rb +29 -7
  43. data/lib/google/rpc/http_pb.rb +24 -3
  44. data/lib/google/rpc/status_pb.rb +26 -5
  45. data/lib/google/type/calendar_period_pb.rb +24 -3
  46. data/lib/google/type/color_pb.rb +34 -13
  47. data/lib/google/type/date_pb.rb +35 -12
  48. data/lib/google/type/datetime_pb.rb +42 -20
  49. data/lib/google/type/dayofweek_pb.rb +24 -3
  50. data/lib/google/type/decimal_pb.rb +35 -16
  51. data/lib/google/type/expr_pb.rb +24 -3
  52. data/lib/google/type/fraction_pb.rb +24 -3
  53. data/lib/google/type/interval_pb.rb +26 -5
  54. data/lib/google/type/latlng_pb.rb +28 -8
  55. data/lib/google/type/localized_text_pb.rb +27 -6
  56. data/lib/google/type/money_pb.rb +25 -5
  57. data/lib/google/type/month_pb.rb +24 -3
  58. data/lib/google/type/phone_number_pb.rb +44 -18
  59. data/lib/google/type/postal_address_pb.rb +63 -42
  60. data/lib/google/type/quaternion_pb.rb +28 -7
  61. data/lib/google/type/timeofday_pb.rb +35 -11
  62. data/lib/googleapis/common/protos/types/version.rb +1 -1
  63. metadata +2 -2
@@ -5,10 +5,31 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
 
8
- descriptor_data = "\n\x18google/type/latlng.proto\x12\x0bgoogle.type\"-\n\x06LatLng\x12\x10\n\x08latitude\x18\x01 \x01(\x01\x12\x11\n\tlongitude\x18\x02 \x01(\x01\x42\x63\n\x0f\x63om.google.typeB\x0bLatLngProtoP\x01Z8google.golang.org/genproto/googleapis/type/latlng;latlng\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
8
+ descriptor_data = "\n\x18google/type/latlng.proto\x12\x0bgoogle.type\"-\n\x06LatLng\x12\x10\n\x08latitude\x18\x01 \x01(\x01\x12\x11\n\tlongitude\x18\x02 \x01(\x01\x42`\n\x0f\x63om.google.typeB\x0bLatLngProtoP\x01Z8google.golang.org/genproto/googleapis/type/latlng;latlng\xa2\x02\x03GTPb\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 Type
@@ -18,7 +39,7 @@ end
18
39
 
19
40
  #### Source proto file: google/type/latlng.proto ####
20
41
  #
21
- # // Copyright 2025 Google LLC
42
+ # // Copyright 2026 Google LLC
22
43
  # //
23
44
  # // Licensed under the Apache License, Version 2.0 (the "License");
24
45
  # // you may not use this file except in compliance with the License.
@@ -36,7 +57,6 @@ end
36
57
  #
37
58
  # package google.type;
38
59
  #
39
- # option cc_enable_arenas = true;
40
60
  # option go_package = "google.golang.org/genproto/googleapis/type/latlng;latlng";
41
61
  # option java_multiple_files = true;
42
62
  # option java_outer_classname = "LatLngProto";
@@ -45,9 +65,9 @@ end
45
65
  #
46
66
  # // An object that represents a latitude/longitude pair. This is expressed as a
47
67
  # // pair of doubles to represent degrees latitude and degrees longitude. Unless
48
- # // specified otherwise, this must conform to the
49
- # // <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
50
- # // standard</a>. Values must be within normalized ranges.
68
+ # // specified otherwise, this object must conform to the
69
+ # // <a href="https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version">
70
+ # // WGS84 standard</a>. Values must be within normalized ranges.
51
71
  # message LatLng {
52
72
  # // The latitude in degrees. It must be in the range [-90.0, +90.0].
53
73
  # double latitude = 1;
@@ -5,10 +5,31 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
 
8
- descriptor_data = "\n google/type/localized_text.proto\x12\x0bgoogle.type\"4\n\rLocalizedText\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tBz\n\x0f\x63om.google.typeB\x12LocalizedTextProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/localized_text;localized_text\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
8
+ descriptor_data = "\n google/type/localized_text.proto\x12\x0bgoogle.type\"4\n\rLocalizedText\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\tBw\n\x0f\x63om.google.typeB\x12LocalizedTextProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/localized_text;localized_text\xa2\x02\x03GTPb\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 Type
@@ -18,7 +39,7 @@ end
18
39
 
19
40
  #### Source proto file: google/type/localized_text.proto ####
20
41
  #
21
- # // Copyright 2025 Google LLC
42
+ # // Copyright 2026 Google LLC
22
43
  # //
23
44
  # // Licensed under the Apache License, Version 2.0 (the "License");
24
45
  # // you may not use this file except in compliance with the License.
@@ -36,7 +57,6 @@ end
36
57
  #
37
58
  # package google.type;
38
59
  #
39
- # option cc_enable_arenas = true;
40
60
  # option go_package = "google.golang.org/genproto/googleapis/type/localized_text;localized_text";
41
61
  # option java_multiple_files = true;
42
62
  # option java_outer_classname = "LocalizedTextProto";
@@ -45,7 +65,8 @@ end
45
65
  #
46
66
  # // Localized variant of a text in a particular language.
47
67
  # message LocalizedText {
48
- # // Localized string in the language corresponding to `language_code' below.
68
+ # // Localized string in the language corresponding to
69
+ # // [language_code][google.type.LocalizedText.language_code] below.
49
70
  # string text = 1;
50
71
  #
51
72
  # // The text's BCP-47 language code, such as "en-US" or "sr-Latn".
@@ -5,10 +5,31 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
 
8
- descriptor_data = "\n\x17google/type/money.proto\x12\x0bgoogle.type\"<\n\x05Money\x12\x15\n\rcurrency_code\x18\x01 \x01(\t\x12\r\n\x05units\x18\x02 \x01(\x03\x12\r\n\x05nanos\x18\x03 \x01(\x05\x42`\n\x0f\x63om.google.typeB\nMoneyProtoP\x01Z6google.golang.org/genproto/googleapis/type/money;money\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
8
+ descriptor_data = "\n\x17google/type/money.proto\x12\x0bgoogle.type\"<\n\x05Money\x12\x15\n\rcurrency_code\x18\x01 \x01(\t\x12\r\n\x05units\x18\x02 \x01(\x03\x12\r\n\x05nanos\x18\x03 \x01(\x05\x42]\n\x0f\x63om.google.typeB\nMoneyProtoP\x01Z6google.golang.org/genproto/googleapis/type/money;money\xa2\x02\x03GTPb\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 Type
@@ -18,7 +39,7 @@ end
18
39
 
19
40
  #### Source proto file: google/type/money.proto ####
20
41
  #
21
- # // Copyright 2025 Google LLC
42
+ # // Copyright 2026 Google LLC
22
43
  # //
23
44
  # // Licensed under the Apache License, Version 2.0 (the "License");
24
45
  # // you may not use this file except in compliance with the License.
@@ -36,7 +57,6 @@ end
36
57
  #
37
58
  # package google.type;
38
59
  #
39
- # option cc_enable_arenas = true;
40
60
  # option go_package = "google.golang.org/genproto/googleapis/type/money;money";
41
61
  # option java_multiple_files = true;
42
62
  # option java_outer_classname = "MoneyProto";
@@ -7,8 +7,29 @@ require 'google/protobuf'
7
7
 
8
8
  descriptor_data = "\n\x17google/type/month.proto\x12\x0bgoogle.type*\xb0\x01\n\x05Month\x12\x15\n\x11MONTH_UNSPECIFIED\x10\x00\x12\x0b\n\x07JANUARY\x10\x01\x12\x0c\n\x08\x46\x45\x42RUARY\x10\x02\x12\t\n\x05MARCH\x10\x03\x12\t\n\x05\x41PRIL\x10\x04\x12\x07\n\x03MAY\x10\x05\x12\x08\n\x04JUNE\x10\x06\x12\x08\n\x04JULY\x10\x07\x12\n\n\x06\x41UGUST\x10\x08\x12\r\n\tSEPTEMBER\x10\t\x12\x0b\n\x07OCTOBER\x10\n\x12\x0c\n\x08NOVEMBER\x10\x0b\x12\x0c\n\x08\x44\x45\x43\x45MBER\x10\x0c\x42]\n\x0f\x63om.google.typeB\nMonthProtoP\x01Z6google.golang.org/genproto/googleapis/type/month;month\xa2\x02\x03GTPb\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 Type
@@ -18,7 +39,7 @@ end
18
39
 
19
40
  #### Source proto file: google/type/month.proto ####
20
41
  #
21
- # // Copyright 2025 Google LLC
42
+ # // Copyright 2026 Google LLC
22
43
  # //
23
44
  # // Licensed under the Apache License, Version 2.0 (the "License");
24
45
  # // you may not use this file except in compliance with the License.
@@ -5,10 +5,31 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
 
8
- descriptor_data = "\n\x1egoogle/type/phone_number.proto\x12\x0bgoogle.type\"\xab\x01\n\x0bPhoneNumber\x12\x15\n\x0b\x65\x31\x36\x34_number\x18\x01 \x01(\tH\x00\x12\x38\n\nshort_code\x18\x02 \x01(\x0b\x32\".google.type.PhoneNumber.ShortCodeH\x00\x12\x11\n\textension\x18\x03 \x01(\t\x1a\x30\n\tShortCode\x12\x13\n\x0bregion_code\x18\x01 \x01(\t\x12\x0e\n\x06number\x18\x02 \x01(\tB\x06\n\x04kindBt\n\x0f\x63om.google.typeB\x10PhoneNumberProtoP\x01ZDgoogle.golang.org/genproto/googleapis/type/phone_number;phone_number\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
8
+ descriptor_data = "\n\x1egoogle/type/phone_number.proto\x12\x0bgoogle.type\"\xab\x01\n\x0bPhoneNumber\x12\x15\n\x0b\x65\x31\x36\x34_number\x18\x01 \x01(\tH\x00\x12\x38\n\nshort_code\x18\x02 \x01(\x0b\x32\".google.type.PhoneNumber.ShortCodeH\x00\x12\x11\n\textension\x18\x03 \x01(\t\x1a\x30\n\tShortCode\x12\x13\n\x0bregion_code\x18\x01 \x01(\t\x12\x0e\n\x06number\x18\x02 \x01(\tB\x06\n\x04kindBq\n\x0f\x63om.google.typeB\x10PhoneNumberProtoP\x01ZDgoogle.golang.org/genproto/googleapis/type/phone_number;phone_number\xa2\x02\x03GTPb\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 Type
@@ -19,7 +40,7 @@ end
19
40
 
20
41
  #### Source proto file: google/type/phone_number.proto ####
21
42
  #
22
- # // Copyright 2025 Google LLC
43
+ # // Copyright 2026 Google LLC
23
44
  # //
24
45
  # // Licensed under the Apache License, Version 2.0 (the "License");
25
46
  # // you may not use this file except in compliance with the License.
@@ -37,7 +58,6 @@ end
37
58
  #
38
59
  # package google.type;
39
60
  #
40
- # option cc_enable_arenas = true;
41
61
  # option go_package = "google.golang.org/genproto/googleapis/type/phone_number;phone_number";
42
62
  # option java_multiple_files = true;
43
63
  # option java_outer_classname = "PhoneNumberProto";
@@ -60,13 +80,13 @@ end
60
80
  # //
61
81
  # // For instance, in Java this would be:
62
82
  # //
63
- # // com.google.type.PhoneNumber wireProto =
64
- # // com.google.type.PhoneNumber.newBuilder().build();
65
- # // com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber =
66
- # // PhoneNumberUtil.getInstance().parse(wireProto.getE164Number(), "ZZ");
67
- # // if (!wireProto.getExtension().isEmpty()) {
68
- # // phoneNumber.setExtension(wireProto.getExtension());
69
- # // }
83
+ # // com.google.type.PhoneNumber wireProto =
84
+ # // com.google.type.PhoneNumber.newBuilder().build();
85
+ # // com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber =
86
+ # // PhoneNumberUtil.getInstance().parse(wireProto.getE164Number(), "ZZ");
87
+ # // if (!wireProto.getExtension().isEmpty()) {
88
+ # // phoneNumber.setExtension(wireProto.getExtension());
89
+ # // }
70
90
  # //
71
91
  # // Reference(s):
72
92
  # // - https://github.com/google/libphonenumber
@@ -74,12 +94,13 @@ end
74
94
  # // An object representing a short code, which is a phone number that is
75
95
  # // typically much shorter than regular phone numbers and can be used to
76
96
  # // address messages in MMS and SMS systems, as well as for abbreviated dialing
77
- # // (e.g. "Text 611 to see how many minutes you have remaining on your plan.").
97
+ # // (For example "Text 611 to see how many minutes you have remaining on your
98
+ # // plan.").
78
99
  # //
79
100
  # // Short codes are restricted to a region and are not internationally
80
101
  # // dialable, which means the same short code can exist in different regions,
81
102
  # // with different usage and pricing, even if those regions share the same
82
- # // country calling code (e.g. US and CA).
103
+ # // country calling code (For example: US and CA).
83
104
  # message ShortCode {
84
105
  # // Required. The BCP-47 region code of the location where calls to this
85
106
  # // short code can be made, such as "US" and "BB".
@@ -89,7 +110,7 @@ end
89
110
  # string region_code = 1;
90
111
  #
91
112
  # // Required. The short code digits, without a leading plus ('+') or country
92
- # // calling code, e.g. "611".
113
+ # // calling code. For example "611".
93
114
  # string number = 2;
94
115
  # }
95
116
  #
@@ -100,24 +121,29 @@ end
100
121
  # // The phone number, represented as a leading plus sign ('+'), followed by a
101
122
  # // phone number that uses a relaxed ITU E.164 format consisting of the
102
123
  # // country calling code (1 to 3 digits) and the subscriber number, with no
103
- # // additional spaces or formatting, e.g.:
124
+ # // additional spaces or formatting. For example:
125
+ # //
104
126
  # // - correct: "+15552220123"
105
- # // - incorrect: "+1 (555) 222-01234 x123".
127
+ # //
128
+ # // - incorrect: "+1 (555) 222-01234 x123"
106
129
  # //
107
130
  # // The ITU E.164 format limits the latter to 12 digits, but in practice not
108
131
  # // all countries respect that, so we relax that restriction here.
109
132
  # // National-only numbers are not allowed.
110
133
  # //
111
134
  # // References:
135
+ # //
112
136
  # // - https://www.itu.int/rec/T-REC-E.164-201011-I
137
+ # //
113
138
  # // - https://en.wikipedia.org/wiki/E.164.
139
+ # //
114
140
  # // - https://en.wikipedia.org/wiki/List_of_country_calling_codes
115
141
  # string e164_number = 1;
116
142
  #
117
143
  # // A short code.
118
144
  # //
119
145
  # // Reference(s):
120
- # // - https://en.wikipedia.org/wiki/Short_code
146
+ # // - https://wikipedia.org/wiki/Short_code
121
147
  # ShortCode short_code = 2;
122
148
  # }
123
149
  #
@@ -5,10 +5,31 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
 
8
- descriptor_data = "\n google/type/postal_address.proto\x12\x0bgoogle.type\"\xfd\x01\n\rPostalAddress\x12\x10\n\x08revision\x18\x01 \x01(\x05\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\x12\x13\n\x0bpostal_code\x18\x04 \x01(\t\x12\x14\n\x0csorting_code\x18\x05 \x01(\t\x12\x1b\n\x13\x61\x64ministrative_area\x18\x06 \x01(\t\x12\x10\n\x08locality\x18\x07 \x01(\t\x12\x13\n\x0bsublocality\x18\x08 \x01(\t\x12\x15\n\raddress_lines\x18\t \x03(\t\x12\x12\n\nrecipients\x18\n \x03(\t\x12\x14\n\x0corganization\x18\x0b \x01(\tBx\n\x0f\x63om.google.typeB\x12PostalAddressProtoP\x01ZFgoogle.golang.org/genproto/googleapis/type/postaladdress;postaladdress\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
8
+ descriptor_data = "\n google/type/postal_address.proto\x12\x0bgoogle.type\"\xfd\x01\n\rPostalAddress\x12\x10\n\x08revision\x18\x01 \x01(\x05\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\x12\x13\n\x0bpostal_code\x18\x04 \x01(\t\x12\x14\n\x0csorting_code\x18\x05 \x01(\t\x12\x1b\n\x13\x61\x64ministrative_area\x18\x06 \x01(\t\x12\x10\n\x08locality\x18\x07 \x01(\t\x12\x13\n\x0bsublocality\x18\x08 \x01(\t\x12\x15\n\raddress_lines\x18\t \x03(\t\x12\x12\n\nrecipients\x18\n \x03(\t\x12\x14\n\x0corganization\x18\x0b \x01(\tBu\n\x0f\x63om.google.typeB\x12PostalAddressProtoP\x01ZFgoogle.golang.org/genproto/googleapis/type/postaladdress;postaladdress\xa2\x02\x03GTPb\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 Type
@@ -18,7 +39,7 @@ end
18
39
 
19
40
  #### Source proto file: google/type/postal_address.proto ####
20
41
  #
21
- # // Copyright 2025 Google LLC
42
+ # // Copyright 2026 Google LLC
22
43
  # //
23
44
  # // Licensed under the Apache License, Version 2.0 (the "License");
24
45
  # // you may not use this file except in compliance with the License.
@@ -36,30 +57,29 @@ end
36
57
  #
37
58
  # package google.type;
38
59
  #
39
- # option cc_enable_arenas = true;
40
60
  # option go_package = "google.golang.org/genproto/googleapis/type/postaladdress;postaladdress";
41
61
  # option java_multiple_files = true;
42
62
  # option java_outer_classname = "PostalAddressProto";
43
63
  # option java_package = "com.google.type";
44
64
  # option objc_class_prefix = "GTP";
45
65
  #
46
- # // Represents a postal address, e.g. for postal delivery or payments addresses.
47
- # // Given a postal address, a postal service can deliver items to a premise, P.O.
48
- # // Box or similar.
49
- # // It is not intended to model geographical locations (roads, towns,
50
- # // mountains).
66
+ # // Represents a postal address, such as for postal delivery or payments
67
+ # // addresses. With a postal address, a postal service can deliver items to a
68
+ # // premise, P.O. box, or similar. A postal address is not intended to model
69
+ # // geographical locations like roads, towns, or mountains.
51
70
  # //
52
- # // In typical usage an address would be created via user input or from importing
71
+ # // In typical usage, an address would be created by user input or from importing
53
72
  # // existing data, depending on the type of process.
54
73
  # //
55
- # // Advice on address input / editing:
56
- # // - Use an i18n-ready address widget such as
57
- # // https://github.com/google/libaddressinput)
58
- # // - Users should not be presented with UI elements for input or editing of
59
- # // fields outside countries where that field is used.
74
+ # // Advice on address input or editing:
75
+ # //
76
+ # // - Use an internationalization-ready address widget such as
77
+ # // https://github.com/google/libaddressinput.
78
+ # // - Users should not be presented with UI elements for input or editing of
79
+ # // fields outside countries where that field is used.
60
80
  # //
61
- # // For more guidance on how to use this schema, please see:
62
- # // https://support.google.com/business/answer/6397478
81
+ # // For more guidance on how to use this schema, see:
82
+ # // https://support.google.com/business/answer/6397478.
63
83
  # message PostalAddress {
64
84
  # // The schema revision of the `PostalAddress`. This must be set to 0, which is
65
85
  # // the latest revision.
@@ -69,8 +89,8 @@ end
69
89
  #
70
90
  # // Required. CLDR region code of the country/region of the address. This
71
91
  # // is never inferred and it is up to the user to ensure the value is
72
- # // correct. See http://cldr.unicode.org/ and
73
- # // http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
92
+ # // correct. See https://cldr.unicode.org/ and
93
+ # // https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
74
94
  # // for details. Example: "CH" for Switzerland.
75
95
  # string region_code = 2;
76
96
  #
@@ -90,55 +110,56 @@ end
90
110
  #
91
111
  # // Optional. Postal code of the address. Not all countries use or require
92
112
  # // postal codes to be present, but where they are used, they may trigger
93
- # // additional validation with other parts of the address (e.g. state/zip
94
- # // validation in the U.S.A.).
113
+ # // additional validation with other parts of the address (for example,
114
+ # // state or zip code validation in the United States).
95
115
  # string postal_code = 4;
96
116
  #
97
117
  # // Optional. Additional, country-specific, sorting code. This is not used
98
118
  # // in most regions. Where it is used, the value is either a string like
99
- # // "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
100
- # // alone, representing the "sector code" (Jamaica), "delivery area indicator"
101
- # // (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
119
+ # // "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
120
+ # // a number alone, representing the "sector code" (Jamaica), "delivery area
121
+ # // indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
102
122
  # string sorting_code = 5;
103
123
  #
104
124
  # // Optional. Highest administrative subdivision which is used for postal
105
125
  # // addresses of a country or region.
106
126
  # // For example, this can be a state, a province, an oblast, or a prefecture.
107
- # // Specifically, for Spain this is the province and not the autonomous
108
- # // community (e.g. "Barcelona" and not "Catalonia").
109
- # // Many countries don't use an administrative area in postal addresses. E.g.
110
- # // in Switzerland this should be left unpopulated.
127
+ # // For Spain, this is the province and not the autonomous
128
+ # // community (for example, "Barcelona" and not "Catalonia").
129
+ # // Many countries don't use an administrative area in postal addresses. For
130
+ # // example, in Switzerland, this should be left unpopulated.
111
131
  # string administrative_area = 6;
112
132
  #
113
- # // Optional. Generally refers to the city/town portion of the address.
133
+ # // Optional. Generally refers to the city or town portion of the address.
114
134
  # // Examples: US city, IT comune, UK post town.
115
135
  # // In regions of the world where localities are not well defined or do not fit
116
- # // into this structure well, leave locality empty and use address_lines.
136
+ # // into this structure well, leave `locality` empty and use `address_lines`.
117
137
  # string locality = 7;
118
138
  #
119
139
  # // Optional. Sublocality of the address.
120
- # // For example, this can be neighborhoods, boroughs, districts.
140
+ # // For example, this can be a neighborhood, borough, or district.
121
141
  # string sublocality = 8;
122
142
  #
123
143
  # // Unstructured address lines describing the lower levels of an address.
124
144
  # //
125
- # // Because values in address_lines do not have type information and may
126
- # // sometimes contain multiple values in a single field (e.g.
145
+ # // Because values in `address_lines` do not have type information and may
146
+ # // sometimes contain multiple values in a single field (for example,
127
147
  # // "Austin, TX"), it is important that the line order is clear. The order of
128
- # // address lines should be "envelope order" for the country/region of the
129
- # // address. In places where this can vary (e.g. Japan), address_language is
130
- # // used to make it explicit (e.g. "ja" for large-to-small ordering and
131
- # // "ja-Latn" or "en" for small-to-large). This way, the most specific line of
132
- # // an address can be selected based on the language.
148
+ # // address lines should be "envelope order" for the country or region of the
149
+ # // address. In places where this can vary (for example, Japan),
150
+ # // `address_language` is used to make it explicit (for example, "ja" for
151
+ # // large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
152
+ # // way, the most specific line of an address can be selected based on the
153
+ # // language.
133
154
  # //
134
155
  # // The minimum permitted structural representation of an address consists
135
- # // of a region_code with all remaining information placed in the
136
- # // address_lines. It would be possible to format such an address very
156
+ # // of a `region_code` with all remaining information placed in the
157
+ # // `address_lines`. It would be possible to format such an address very
137
158
  # // approximately without geocoding, but no semantic reasoning could be
138
159
  # // made about any of the address components until it was at least
139
160
  # // partially resolved.
140
161
  # //
141
- # // Creating an address only containing a region_code and address_lines, and
162
+ # // Creating an address only containing a `region_code` and `address_lines` and
142
163
  # // then geocoding is the recommended way to handle completely unstructured
143
164
  # // addresses (as opposed to guessing which parts of the address should be
144
165
  # // localities or administrative areas).
@@ -5,10 +5,31 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
 
8
- descriptor_data = "\n\x1cgoogle/type/quaternion.proto\x12\x0bgoogle.type\"8\n\nQuaternion\x12\t\n\x01x\x18\x01 \x01(\x01\x12\t\n\x01y\x18\x02 \x01(\x01\x12\t\n\x01z\x18\x03 \x01(\x01\x12\t\n\x01w\x18\x04 \x01(\x01\x42o\n\x0f\x63om.google.typeB\x0fQuaternionProtoP\x01Z@google.golang.org/genproto/googleapis/type/quaternion;quaternion\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
8
+ descriptor_data = "\n\x1cgoogle/type/quaternion.proto\x12\x0bgoogle.type\"8\n\nQuaternion\x12\t\n\x01x\x18\x01 \x01(\x01\x12\t\n\x01y\x18\x02 \x01(\x01\x12\t\n\x01z\x18\x03 \x01(\x01\x12\t\n\x01w\x18\x04 \x01(\x01\x42l\n\x0f\x63om.google.typeB\x0fQuaternionProtoP\x01Z@google.golang.org/genproto/googleapis/type/quaternion;quaternion\xa2\x02\x03GTPb\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 Type
@@ -18,7 +39,7 @@ end
18
39
 
19
40
  #### Source proto file: google/type/quaternion.proto ####
20
41
  #
21
- # // Copyright 2025 Google LLC
42
+ # // Copyright 2026 Google LLC
22
43
  # //
23
44
  # // Licensed under the Apache License, Version 2.0 (the "License");
24
45
  # // you may not use this file except in compliance with the License.
@@ -36,13 +57,14 @@ end
36
57
  #
37
58
  # package google.type;
38
59
  #
39
- # option cc_enable_arenas = true;
40
60
  # option go_package = "google.golang.org/genproto/googleapis/type/quaternion;quaternion";
41
61
  # option java_multiple_files = true;
42
62
  # option java_outer_classname = "QuaternionProto";
43
63
  # option java_package = "com.google.type";
44
64
  # option objc_class_prefix = "GTP";
45
65
  #
66
+ # // A quaternion, represented by four 64-bit floating point values.
67
+ # //
46
68
  # // A quaternion is defined as the quotient of two directed lines in a
47
69
  # // three-dimensional space or equivalently as the quotient of two Euclidean
48
70
  # // vectors (https://en.wikipedia.org/wiki/Quaternion).
@@ -60,7 +82,7 @@ end
60
82
  # // where x, y, z, and w are real numbers, and i, j, and k are three imaginary
61
83
  # // numbers.
62
84
  # //
63
- # // Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
85
+ # // The naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
64
86
  # // those interested in the geometric properties of the quaternion in the 3D
65
87
  # // Cartesian space. Other texts often use alternative names or subscripts, such
66
88
  # // as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps
@@ -98,7 +120,6 @@ end
98
120
  # // it would produce a unique representation. It is thus recommended that `w` be
99
121
  # // kept positive, which can be achieved by changing all the signs when `w` is
100
122
  # // negative.
101
- # //
102
123
  # message Quaternion {
103
124
  # // The x component.
104
125
  # double x = 1;