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
@@ -7,8 +7,29 @@ require 'google/protobuf'
7
7
 
8
8
  descriptor_data = "\n!google/type/calendar_period.proto\x12\x0bgoogle.type*\x7f\n\x0e\x43\x61lendarPeriod\x12\x1f\n\x1b\x43\x41LENDAR_PERIOD_UNSPECIFIED\x10\x00\x12\x07\n\x03\x44\x41Y\x10\x01\x12\x08\n\x04WEEK\x10\x02\x12\r\n\tFORTNIGHT\x10\x03\x12\t\n\x05MONTH\x10\x04\x12\x0b\n\x07QUARTER\x10\x05\x12\x08\n\x04HALF\x10\x06\x12\x08\n\x04YEAR\x10\x07\x42x\n\x0f\x63om.google.typeB\x13\x43\x61lendarPeriodProtoP\x01ZHgoogle.golang.org/genproto/googleapis/type/calendarperiod;calendarperiod\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/calendar_period.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.
@@ -7,10 +7,32 @@ require 'google/protobuf'
7
7
  require 'google/protobuf/wrappers_pb'
8
8
 
9
9
 
10
- descriptor_data = "\n\x17google/type/color.proto\x12\x0bgoogle.type\x1a\x1egoogle/protobuf/wrappers.proto\"]\n\x05\x43olor\x12\x0b\n\x03red\x18\x01 \x01(\x02\x12\r\n\x05green\x18\x02 \x01(\x02\x12\x0c\n\x04\x62lue\x18\x03 \x01(\x02\x12*\n\x05\x61lpha\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.FloatValueB`\n\x0f\x63om.google.typeB\nColorProtoP\x01Z6google.golang.org/genproto/googleapis/type/color;color\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
10
+ descriptor_data = "\n\x17google/type/color.proto\x12\x0bgoogle.type\x1a\x1egoogle/protobuf/wrappers.proto\"]\n\x05\x43olor\x12\x0b\n\x03red\x18\x01 \x01(\x02\x12\r\n\x05green\x18\x02 \x01(\x02\x12\x0c\n\x04\x62lue\x18\x03 \x01(\x02\x12*\n\x05\x61lpha\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.FloatValueB]\n\x0f\x63om.google.typeB\nColorProtoP\x01Z6google.golang.org/genproto/googleapis/type/color;color\xa2\x02\x03GTPb\x06proto3"
11
11
 
12
- pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
- pool.add_serialized_file(descriptor_data)
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.FloatValue", "google/protobuf/wrappers.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
14
36
 
15
37
  module Google
16
38
  module Type
@@ -20,7 +42,7 @@ end
20
42
 
21
43
  #### Source proto file: google/type/color.proto ####
22
44
  #
23
- # // Copyright 2025 Google LLC
45
+ # // Copyright 2026 Google LLC
24
46
  # //
25
47
  # // Licensed under the Apache License, Version 2.0 (the "License");
26
48
  # // you may not use this file except in compliance with the License.
@@ -40,7 +62,6 @@ end
40
62
  #
41
63
  # import "google/protobuf/wrappers.proto";
42
64
  #
43
- # option cc_enable_arenas = true;
44
65
  # option go_package = "google.golang.org/genproto/googleapis/type/color;color";
45
66
  # option java_multiple_files = true;
46
67
  # option java_outer_classname = "ColorProto";
@@ -48,22 +69,22 @@ end
48
69
  # option objc_class_prefix = "GTP";
49
70
  #
50
71
  # // Represents a color in the RGBA color space. This representation is designed
51
- # // for simplicity of conversion to/from color representations in various
72
+ # // for simplicity of conversion to and from color representations in various
52
73
  # // languages over compactness. For example, the fields of this representation
53
74
  # // can be trivially provided to the constructor of `java.awt.Color` in Java; it
54
75
  # // can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
55
76
  # // method in iOS; and, with just a little work, it can be easily formatted into
56
77
  # // a CSS `rgba()` string in JavaScript.
57
78
  # //
58
- # // This reference page doesn't carry information about the absolute color
59
- # // space
60
- # // that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
61
- # // DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color
79
+ # // This reference page doesn't have information about the absolute color
80
+ # // space that should be used to interpret the RGB value—for example, sRGB,
81
+ # // Adobe RGB,
82
+ # // DCI-P3, and BT.2020. By default, applications should assume the sRGB color
62
83
  # // space.
63
84
  # //
64
- # // When color equality needs to be decided, implementations, unless
65
- # // documented otherwise, treat two colors as equal if all their red,
66
- # // green, blue, and alpha values each differ by at most 1e-5.
85
+ # // When color equality needs to be decided, implementations, unless documented
86
+ # // otherwise, treat two colors as equal if all their red, green, blue, and alpha
87
+ # // values each differ by at most `1e-5`.
67
88
  # //
68
89
  # // Example (Java):
69
90
  # //
@@ -5,10 +5,31 @@
5
5
  require 'google/protobuf'
6
6
 
7
7
 
8
- descriptor_data = "\n\x16google/type/date.proto\x12\x0bgoogle.type\"0\n\x04\x44\x61te\x12\x0c\n\x04year\x18\x01 \x01(\x05\x12\r\n\x05month\x18\x02 \x01(\x05\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x05\x42]\n\x0f\x63om.google.typeB\tDateProtoP\x01Z4google.golang.org/genproto/googleapis/type/date;date\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
8
+ descriptor_data = "\n\x16google/type/date.proto\x12\x0bgoogle.type\"0\n\x04\x44\x61te\x12\x0c\n\x04year\x18\x01 \x01(\x05\x12\r\n\x05month\x18\x02 \x01(\x05\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x05\x42Z\n\x0f\x63om.google.typeB\tDateProtoP\x01Z4google.golang.org/genproto/googleapis/type/date;date\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/date.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/date;date";
41
61
  # option java_multiple_files = true;
42
62
  # option java_outer_classname = "DateProto";
@@ -48,14 +68,17 @@ end
48
68
  # // date is relative to the Gregorian Calendar. This can represent one of the
49
69
  # // following:
50
70
  # //
51
- # // * A full date, with non-zero year, month, and day values
52
- # // * A month and day value, with a zero year, such as an anniversary
53
- # // * A year on its own, with zero month and day values
54
- # // * A year and month value, with a zero day, such as a credit card expiration
55
- # // date
71
+ # // * A full date, with non-zero year, month, and day values.
72
+ # // * A month and day, with a zero year (for example, an anniversary).
73
+ # // * A year on its own, with a zero month and a zero day.
74
+ # // * A year and month, with a zero day (for example, a credit card expiration
75
+ # // date).
76
+ # //
77
+ # // Related types:
56
78
  # //
57
- # // Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
58
- # // `google.protobuf.Timestamp`.
79
+ # // * [google.type.TimeOfDay][google.type.TimeOfDay]
80
+ # // * [google.type.DateTime][google.type.DateTime]
81
+ # // * [google.protobuf.Timestamp][google.protobuf.Timestamp]
59
82
  # message Date {
60
83
  # // Year of the date. Must be from 1 to 9999, or 0 to specify a date without
61
84
  # // a year.
@@ -7,10 +7,32 @@ require 'google/protobuf'
7
7
  require 'google/protobuf/duration_pb'
8
8
 
9
9
 
10
- descriptor_data = "\n\x1agoogle/type/datetime.proto\x12\x0bgoogle.type\x1a\x1egoogle/protobuf/duration.proto\"\xe0\x01\n\x08\x44\x61teTime\x12\x0c\n\x04year\x18\x01 \x01(\x05\x12\r\n\x05month\x18\x02 \x01(\x05\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x05\x12\r\n\x05hours\x18\x04 \x01(\x05\x12\x0f\n\x07minutes\x18\x05 \x01(\x05\x12\x0f\n\x07seconds\x18\x06 \x01(\x05\x12\r\n\x05nanos\x18\x07 \x01(\x05\x12/\n\nutc_offset\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12*\n\ttime_zone\x18\t \x01(\x0b\x32\x15.google.type.TimeZoneH\x00\x42\r\n\x0btime_offset\"\'\n\x08TimeZone\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\tBi\n\x0f\x63om.google.typeB\rDateTimeProtoP\x01Z<google.golang.org/genproto/googleapis/type/datetime;datetime\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
10
+ descriptor_data = "\n\x1agoogle/type/datetime.proto\x12\x0bgoogle.type\x1a\x1egoogle/protobuf/duration.proto\"\xe0\x01\n\x08\x44\x61teTime\x12\x0c\n\x04year\x18\x01 \x01(\x05\x12\r\n\x05month\x18\x02 \x01(\x05\x12\x0b\n\x03\x64\x61y\x18\x03 \x01(\x05\x12\r\n\x05hours\x18\x04 \x01(\x05\x12\x0f\n\x07minutes\x18\x05 \x01(\x05\x12\x0f\n\x07seconds\x18\x06 \x01(\x05\x12\r\n\x05nanos\x18\x07 \x01(\x05\x12/\n\nutc_offset\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00\x12*\n\ttime_zone\x18\t \x01(\x0b\x32\x15.google.type.TimeZoneH\x00\x42\r\n\x0btime_offset\"\'\n\x08TimeZone\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\tBf\n\x0f\x63om.google.typeB\rDateTimeProtoP\x01Z<google.golang.org/genproto/googleapis/type/datetime;datetime\xa2\x02\x03GTPb\x06proto3"
11
11
 
12
- pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
- pool.add_serialized_file(descriptor_data)
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
14
36
 
15
37
  module Google
16
38
  module Type
@@ -21,7 +43,7 @@ end
21
43
 
22
44
  #### Source proto file: google/type/datetime.proto ####
23
45
  #
24
- # // Copyright 2025 Google LLC
46
+ # // Copyright 2026 Google LLC
25
47
  # //
26
48
  # // Licensed under the Apache License, Version 2.0 (the "License");
27
49
  # // you may not use this file except in compliance with the License.
@@ -41,7 +63,6 @@ end
41
63
  #
42
64
  # import "google/protobuf/duration.proto";
43
65
  #
44
- # option cc_enable_arenas = true;
45
66
  # option go_package = "google.golang.org/genproto/googleapis/type/datetime;datetime";
46
67
  # option java_multiple_files = true;
47
68
  # option java_outer_classname = "DateTimeProto";
@@ -61,8 +82,8 @@ end
61
82
  # //
62
83
  # // The date is relative to the Proleptic Gregorian Calendar.
63
84
  # //
64
- # // If year is 0, the DateTime is considered not to have a specific year. month
65
- # // and day must have valid, non-zero values.
85
+ # // If year, month, or day are 0, the DateTime is considered not to have a
86
+ # // specific year, month, or day respectively.
66
87
  # //
67
88
  # // This type may also be used to represent a physical time if all the date and
68
89
  # // time fields are set and either case of the `time_offset` oneof is set.
@@ -77,27 +98,28 @@ end
77
98
  # // datetime without a year.
78
99
  # int32 year = 1;
79
100
  #
80
- # // Required. Month of year. Must be from 1 to 12.
101
+ # // Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
102
+ # // datetime without a month.
81
103
  # int32 month = 2;
82
104
  #
83
- # // Required. Day of month. Must be from 1 to 31 and valid for the year and
84
- # // month.
105
+ # // Optional. Day of month. Must be from 1 to 31 and valid for the year and
106
+ # // month, or 0 if specifying a datetime without a day.
85
107
  # int32 day = 3;
86
108
  #
87
- # // Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
88
- # // may choose to allow the value "24:00:00" for scenarios like business
89
- # // closing time.
109
+ # // Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults
110
+ # // to 0 (midnight). An API may choose to allow the value "24:00:00" for
111
+ # // scenarios like business closing time.
90
112
  # int32 hours = 4;
91
113
  #
92
- # // Required. Minutes of hour of day. Must be from 0 to 59.
114
+ # // Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
93
115
  # int32 minutes = 5;
94
116
  #
95
- # // Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
96
- # // API may allow the value 60 if it allows leap-seconds.
117
+ # // Optional. Seconds of minutes of the time. Must normally be from 0 to 59,
118
+ # // defaults to 0. An API may allow the value 60 if it allows leap-seconds.
97
119
  # int32 seconds = 6;
98
120
  #
99
- # // Required. Fractions of seconds in nanoseconds. Must be from 0 to
100
- # // 999,999,999.
121
+ # // Optional. Fractions of seconds in nanoseconds. Must be from 0 to
122
+ # // 999,999,999, defaults to 0.
101
123
  # int32 nanos = 7;
102
124
  #
103
125
  # // Optional. Specifies either the UTC offset or the time zone of the DateTime.
@@ -119,9 +141,9 @@ end
119
141
  # // Represents a time zone from the
120
142
  # // [IANA Time Zone Database](https://www.iana.org/time-zones).
121
143
  # message TimeZone {
122
- # // IANA Time Zone Database time zone, e.g. "America/New_York".
144
+ # // IANA Time Zone Database time zone. For example "America/New_York".
123
145
  # string id = 1;
124
146
  #
125
- # // Optional. IANA Time Zone Database version number, e.g. "2019a".
147
+ # // Optional. IANA Time Zone Database version number. For example "2019a".
126
148
  # string version = 2;
127
149
  # }
@@ -7,8 +7,29 @@ require 'google/protobuf'
7
7
 
8
8
  descriptor_data = "\n\x1bgoogle/type/dayofweek.proto\x12\x0bgoogle.type*\x84\x01\n\tDayOfWeek\x12\x1b\n\x17\x44\x41Y_OF_WEEK_UNSPECIFIED\x10\x00\x12\n\n\x06MONDAY\x10\x01\x12\x0b\n\x07TUESDAY\x10\x02\x12\r\n\tWEDNESDAY\x10\x03\x12\x0c\n\x08THURSDAY\x10\x04\x12\n\n\x06\x46RIDAY\x10\x05\x12\x0c\n\x08SATURDAY\x10\x06\x12\n\n\x06SUNDAY\x10\x07\x42i\n\x0f\x63om.google.typeB\x0e\x44\x61yOfWeekProtoP\x01Z>google.golang.org/genproto/googleapis/type/dayofweek;dayofweek\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/dayofweek.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\x19google/type/decimal.proto\x12\x0bgoogle.type\"\x18\n\x07\x44\x65\x63imal\x12\r\n\x05value\x18\x01 \x01(\tBf\n\x0f\x63om.google.typeB\x0c\x44\x65\x63imalProtoP\x01Z:google.golang.org/genproto/googleapis/type/decimal;decimal\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
8
+ descriptor_data = "\n\x19google/type/decimal.proto\x12\x0bgoogle.type\"\x18\n\x07\x44\x65\x63imal\x12\r\n\x05value\x18\x01 \x01(\tBc\n\x0f\x63om.google.typeB\x0c\x44\x65\x63imalProtoP\x01Z:google.golang.org/genproto/googleapis/type/decimal;decimal\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/decimal.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/decimal;decimal";
41
61
  # option java_multiple_files = true;
42
62
  # option java_outer_classname = "DecimalProto";
@@ -44,19 +64,17 @@ end
44
64
  # option objc_class_prefix = "GTP";
45
65
  #
46
66
  # // A representation of a decimal value, such as 2.5. Clients may convert values
47
- # // into language-native decimal formats, such as Java's [BigDecimal][] or
48
- # // Python's [decimal.Decimal][].
49
- # //
50
- # // [BigDecimal]:
51
- # // https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html
52
- # // [decimal.Decimal]: https://docs.python.org/3/library/decimal.html
67
+ # // into language-native decimal formats, such as Java's
68
+ # // [BigDecimal](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html)
69
+ # // or Python's
70
+ # // [decimal.Decimal](https://docs.python.org/3/library/decimal.html).
53
71
  # message Decimal {
54
72
  # // The decimal value, as a string.
55
73
  # //
56
74
  # // The string representation consists of an optional sign, `+` (`U+002B`)
57
75
  # // or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
58
76
  # // ("the integer"), optionally followed by a fraction, optionally followed
59
- # // by an exponent.
77
+ # // by an exponent. An empty string **should** be interpreted as `0`.
60
78
  # //
61
79
  # // The fraction consists of a decimal point followed by zero or more decimal
62
80
  # // digits. The string must contain at least one digit in either the integer
@@ -70,12 +88,13 @@ end
70
88
  # //
71
89
  # // - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
72
90
  # // - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
73
- # // - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
74
- # // - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
91
+ # // - Coercing the exponent character to upper-case, with explicit sign
92
+ # // (`2.5e8` -> `2.5E+8`).
93
+ # // - Removing an explicitly-provided zero exponent (`2.5E0` -> `2.5`).
75
94
  # //
76
95
  # // Services **may** perform additional normalization based on its own needs
77
96
  # // and the internal decimal implementation selected, such as shifting the
78
- # // decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
97
+ # // decimal point and exponent value together (example: `2.5E-1` <-> `0.25`).
79
98
  # // Additionally, services **may** preserve trailing zeroes in the fraction
80
99
  # // to indicate increased precision, but are not required to do so.
81
100
  # //
@@ -87,7 +106,7 @@ end
87
106
  # // The ENBF grammar is:
88
107
  # //
89
108
  # // DecimalString =
90
- # // [Sign] Significand [Exponent];
109
+ # // '' | [Sign] Significand [Exponent];
91
110
  # //
92
111
  # // Sign = '+' | '-';
93
112
  # //
@@ -7,8 +7,29 @@ require 'google/protobuf'
7
7
 
8
8
  descriptor_data = "\n\x16google/type/expr.proto\x12\x0bgoogle.type\"P\n\x04\x45xpr\x12\x12\n\nexpression\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x08location\x18\x04 \x01(\tBZ\n\x0f\x63om.google.typeB\tExprProtoP\x01Z4google.golang.org/genproto/googleapis/type/expr;expr\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/expr.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.
@@ -7,8 +7,29 @@ require 'google/protobuf'
7
7
 
8
8
  descriptor_data = "\n\x1agoogle/type/fraction.proto\x12\x0bgoogle.type\"2\n\x08\x46raction\x12\x11\n\tnumerator\x18\x01 \x01(\x03\x12\x13\n\x0b\x64\x65nominator\x18\x02 \x01(\x03\x42\x66\n\x0f\x63om.google.typeB\rFractionProtoP\x01Z<google.golang.org/genproto/googleapis/type/fraction;fraction\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/fraction.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.
@@ -7,10 +7,32 @@ require 'google/protobuf'
7
7
  require 'google/protobuf/timestamp_pb'
8
8
 
9
9
 
10
- descriptor_data = "\n\x1agoogle/type/interval.proto\x12\x0bgoogle.type\x1a\x1fgoogle/protobuf/timestamp.proto\"h\n\x08Interval\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampBi\n\x0f\x63om.google.typeB\rIntervalProtoP\x01Z<google.golang.org/genproto/googleapis/type/interval;interval\xf8\x01\x01\xa2\x02\x03GTPb\x06proto3"
10
+ descriptor_data = "\n\x1agoogle/type/interval.proto\x12\x0bgoogle.type\x1a\x1fgoogle/protobuf/timestamp.proto\"h\n\x08Interval\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampBf\n\x0f\x63om.google.typeB\rIntervalProtoP\x01Z<google.golang.org/genproto/googleapis/type/interval;interval\xa2\x02\x03GTPb\x06proto3"
11
11
 
12
- pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
- pool.add_serialized_file(descriptor_data)
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
14
36
 
15
37
  module Google
16
38
  module Type
@@ -20,7 +42,7 @@ end
20
42
 
21
43
  #### Source proto file: google/type/interval.proto ####
22
44
  #
23
- # // Copyright 2025 Google LLC
45
+ # // Copyright 2026 Google LLC
24
46
  # //
25
47
  # // Licensed under the Apache License, Version 2.0 (the "License");
26
48
  # // you may not use this file except in compliance with the License.
@@ -40,7 +62,6 @@ end
40
62
  #
41
63
  # import "google/protobuf/timestamp.proto";
42
64
  #
43
- # option cc_enable_arenas = true;
44
65
  # option go_package = "google.golang.org/genproto/googleapis/type/interval;interval";
45
66
  # option java_multiple_files = true;
46
67
  # option java_outer_classname = "IntervalProto";