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\x1egoogle/api/config_change.proto\x12\ngoogle.api\"\x97\x01\n\x0c\x43onfigChange\x12\x0f\n\x07\x65lement\x18\x01 \x01(\t\x12\x11\n\told_value\x18\x02 \x01(\t\x12\x11\n\tnew_value\x18\x03 \x01(\t\x12+\n\x0b\x63hange_type\x18\x04 \x01(\x0e\x32\x16.google.api.ChangeType\x12#\n\x07\x61\x64vices\x18\x05 \x03(\x0b\x32\x12.google.api.Advice\"\x1d\n\x06\x41\x64vice\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t*O\n\nChangeType\x12\x1b\n\x17\x43HANGE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x01\x12\x0b\n\x07REMOVED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03\x42q\n\x0e\x63om.google.apiB\x11\x43onfigChangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/configchange;configchange\xa2\x02\x04GAPIb\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 Api
@@ -20,7 +41,7 @@ end
20
41
 
21
42
  #### Source proto file: google/api/config_change.proto ####
22
43
  #
23
- # // Copyright 2025 Google LLC
44
+ # // Copyright 2026 Google LLC
24
45
  # //
25
46
  # // Licensed under the Apache License, Version 2.0 (the "License");
26
47
  # // 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\x19google/api/consumer.proto\x12\ngoogle.api\"=\n\x11ProjectProperties\x12(\n\nproperties\x18\x01 \x03(\x0b\x32\x14.google.api.Property\"\xac\x01\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x04type\x18\x02 \x01(\x0e\x32!.google.api.Property.PropertyType\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"L\n\x0cPropertyType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\t\n\x05INT64\x10\x01\x12\x08\n\x04\x42OOL\x10\x02\x12\n\n\x06STRING\x10\x03\x12\n\n\x06\x44OUBLE\x10\x04\x42h\n\x0e\x63om.google.apiB\rConsumerProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfigb\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 Api
@@ -7,8 +7,29 @@ require 'google/protobuf'
7
7
 
8
8
  descriptor_data = "\n\x18google/api/context.proto\x12\ngoogle.api\"1\n\x07\x43ontext\x12&\n\x05rules\x18\x01 \x03(\x0b\x32\x17.google.api.ContextRule\"\x8d\x01\n\x0b\x43ontextRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\x11\n\trequested\x18\x02 \x03(\t\x12\x10\n\x08provided\x18\x03 \x03(\t\x12\"\n\x1a\x61llowed_request_extensions\x18\x04 \x03(\t\x12#\n\x1b\x61llowed_response_extensions\x18\x05 \x03(\tBn\n\x0e\x63om.google.apiB\x0c\x43ontextProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\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 Api
@@ -19,7 +40,7 @@ end
19
40
 
20
41
  #### Source proto file: google/api/context.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.
@@ -9,8 +9,30 @@ require 'google/api/policy_pb'
9
9
 
10
10
  descriptor_data = "\n\x18google/api/control.proto\x12\ngoogle.api\x1a\x17google/api/policy.proto\"Q\n\x07\x43ontrol\x12\x13\n\x0b\x65nvironment\x18\x01 \x01(\t\x12\x31\n\x0fmethod_policies\x18\x04 \x03(\x0b\x32\x18.google.api.MethodPolicyBn\n\x0e\x63om.google.apiB\x0c\x43ontrolProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\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.api.MethodPolicy", "google/api/policy.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 Api
@@ -20,7 +42,7 @@ end
20
42
 
21
43
  #### Source proto file: google/api/control.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.
@@ -54,8 +76,8 @@ end
54
76
  # // environment: servicecontrol.googleapis.com
55
77
  # message Control {
56
78
  # // The service controller environment to use. If empty, no control plane
57
- # // feature (like quota and billing) will be enabled. The recommended value for
58
- # // most services is servicecontrol.googleapis.com
79
+ # // features (like quota and billing) will be enabled. The recommended value
80
+ # // for most services is servicecontrol.googleapis.com.
59
81
  # string environment = 1;
60
82
  #
61
83
  # // Defines policies applying to the API methods of the service.
@@ -10,8 +10,31 @@ require 'google/protobuf/timestamp_pb'
10
10
 
11
11
  descriptor_data = "\n\x1dgoogle/api/distribution.proto\x12\ngoogle.api\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd9\x06\n\x0c\x44istribution\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x0c\n\x04mean\x18\x02 \x01(\x01\x12 \n\x18sum_of_squared_deviation\x18\x03 \x01(\x01\x12-\n\x05range\x18\x04 \x01(\x0b\x32\x1e.google.api.Distribution.Range\x12>\n\x0e\x62ucket_options\x18\x06 \x01(\x0b\x32&.google.api.Distribution.BucketOptions\x12\x15\n\rbucket_counts\x18\x07 \x03(\x03\x12\x34\n\texemplars\x18\n \x03(\x0b\x32!.google.api.Distribution.Exemplar\x1a!\n\x05Range\x12\x0b\n\x03min\x18\x01 \x01(\x01\x12\x0b\n\x03max\x18\x02 \x01(\x01\x1a\xb5\x03\n\rBucketOptions\x12G\n\x0elinear_buckets\x18\x01 \x01(\x0b\x32-.google.api.Distribution.BucketOptions.LinearH\x00\x12Q\n\x13\x65xponential_buckets\x18\x02 \x01(\x0b\x32\x32.google.api.Distribution.BucketOptions.ExponentialH\x00\x12K\n\x10\x65xplicit_buckets\x18\x03 \x01(\x0b\x32/.google.api.Distribution.BucketOptions.ExplicitH\x00\x1a\x43\n\x06Linear\x12\x1a\n\x12num_finite_buckets\x18\x01 \x01(\x05\x12\r\n\x05width\x18\x02 \x01(\x01\x12\x0e\n\x06offset\x18\x03 \x01(\x01\x1aO\n\x0b\x45xponential\x12\x1a\n\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x15\n\rgrowth_factor\x18\x02 \x01(\x01\x12\r\n\x05scale\x18\x03 \x01(\x01\x1a\x1a\n\x08\x45xplicit\x12\x0e\n\x06\x62ounds\x18\x01 \x03(\x01\x42\t\n\x07options\x1as\n\x08\x45xemplar\x12\r\n\x05value\x18\x01 \x01(\x01\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12)\n\x0b\x61ttachments\x18\x03 \x03(\x0b\x32\x14.google.protobuf.AnyBq\n\x0e\x63om.google.apiB\x11\x44istributionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/distribution;distribution\xa2\x02\x04GAPIb\x06proto3"
12
12
 
13
- pool = ::Google::Protobuf::DescriptorPool.generated_pool
14
- pool.add_serialized_file(descriptor_data)
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
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
38
 
16
39
  module Google
17
40
  module Api
@@ -27,7 +50,7 @@ end
27
50
 
28
51
  #### Source proto file: google/api/distribution.proto ####
29
52
  #
30
- # // Copyright 2025 Google LLC
53
+ # // Copyright 2026 Google LLC
31
54
  # //
32
55
  # // Licensed under the Apache License, Version 2.0 (the "License");
33
56
  # // 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\x1egoogle/api/documentation.proto\x12\ngoogle.api\"\xbb\x01\n\rDocumentation\x12\x0f\n\x07summary\x18\x01 \x01(\t\x12\x1f\n\x05pages\x18\x05 \x03(\x0b\x32\x10.google.api.Page\x12,\n\x05rules\x18\x03 \x03(\x0b\x32\x1d.google.api.DocumentationRule\x12\x1e\n\x16\x64ocumentation_root_url\x18\x04 \x01(\t\x12\x18\n\x10service_root_url\x18\x06 \x01(\t\x12\x10\n\x08overview\x18\x02 \x01(\t\"[\n\x11\x44ocumentationRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1f\n\x17\x64\x65precation_description\x18\x03 \x01(\t\"I\n\x04Page\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x12\"\n\x08subpages\x18\x03 \x03(\x0b\x32\x10.google.api.PageBt\n\x0e\x63om.google.apiB\x12\x44ocumentationProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\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 Api
@@ -20,7 +41,7 @@ end
20
41
 
21
42
  #### Source proto file: google/api/documentation.proto ####
22
43
  #
23
- # // Copyright 2025 Google LLC
44
+ # // Copyright 2026 Google LLC
24
45
  # //
25
46
  # // Licensed under the Apache License, Version 2.0 (the "License");
26
47
  # // 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\x19google/api/endpoint.proto\x12\ngoogle.api\"M\n\x08\x45ndpoint\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x61liases\x18\x02 \x03(\t\x12\x0e\n\x06target\x18\x65 \x01(\t\x12\x12\n\nallow_cors\x18\x05 \x01(\x08\x42o\n\x0e\x63om.google.apiB\rEndpointProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\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 Api
@@ -18,7 +39,7 @@ end
18
39
 
19
40
  #### Source proto file: google/api/endpoint.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\x1dgoogle/api/error_reason.proto\x12\ngoogle.api*\xba\x07\n\x0b\x45rrorReason\x12\x1c\n\x18\x45RROR_REASON_UNSPECIFIED\x10\x00\x12\x14\n\x10SERVICE_DISABLED\x10\x01\x12\x14\n\x10\x42ILLING_DISABLED\x10\x02\x12\x13\n\x0f\x41PI_KEY_INVALID\x10\x03\x12\x1b\n\x17\x41PI_KEY_SERVICE_BLOCKED\x10\x04\x12!\n\x1d\x41PI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1e\n\x1a\x41PI_KEY_IP_ADDRESS_BLOCKED\x10\x08\x12\x1f\n\x1b\x41PI_KEY_ANDROID_APP_BLOCKED\x10\t\x12\x1b\n\x17\x41PI_KEY_IOS_APP_BLOCKED\x10\r\x12\x17\n\x13RATE_LIMIT_EXCEEDED\x10\x05\x12\x1b\n\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12 \n\x1cLOCATION_TAX_POLICY_VIOLATED\x10\n\x12\x17\n\x13USER_PROJECT_DENIED\x10\x0b\x12\x16\n\x12\x43ONSUMER_SUSPENDED\x10\x0c\x12\x14\n\x10\x43ONSUMER_INVALID\x10\x0e\x12\x1c\n\x18SECURITY_POLICY_VIOLATED\x10\x0f\x12\x18\n\x14\x41\x43\x43\x45SS_TOKEN_EXPIRED\x10\x10\x12#\n\x1f\x41\x43\x43\x45SS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\x12\x19\n\x15\x41\x43\x43OUNT_STATE_INVALID\x10\x12\x12!\n\x1d\x41\x43\x43\x45SS_TOKEN_TYPE_UNSUPPORTED\x10\x13\x12\x17\n\x13\x43REDENTIALS_MISSING\x10\x14\x12\x1c\n\x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1a\n\x16SESSION_COOKIE_INVALID\x10\x17\x12\x19\n\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12\'\n#RESOURCE_USAGE_RESTRICTION_VIOLATED\x10\x19\x12 \n\x1cSYSTEM_PARAMETER_UNSUPPORTED\x10\x1a\x12\x1d\n\x19ORG_RESTRICTION_VIOLATION\x10\x1b\x12\"\n\x1eORG_RESTRICTION_HEADER_INVALID\x10\x1c\x12\x17\n\x13SERVICE_NOT_VISIBLE\x10\x1d\x12\x11\n\rGCP_SUSPENDED\x10\x1e\x12\x1c\n\x18LOCATION_POLICY_VIOLATED\x10\x1f\x12\x12\n\x0eMISSING_ORIGIN\x10!\x12\x1a\n\x16OVERLOADED_CREDENTIALS\x10\"Bp\n\x0e\x63om.google.apiB\x10\x45rrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xa2\x02\x04GAPIb\x06proto3"
8
+ descriptor_data = "\n\x1dgoogle/api/error_reason.proto\x12\ngoogle.api*\x92\n\n\x0b\x45rrorReason\x12\x1c\n\x18\x45RROR_REASON_UNSPECIFIED\x10\x00\x12\x14\n\x10SERVICE_DISABLED\x10\x01\x12\x14\n\x10\x42ILLING_DISABLED\x10\x02\x12\x13\n\x0f\x41PI_KEY_INVALID\x10\x03\x12\x1b\n\x17\x41PI_KEY_SERVICE_BLOCKED\x10\x04\x12!\n\x1d\x41PI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1e\n\x1a\x41PI_KEY_IP_ADDRESS_BLOCKED\x10\x08\x12\x1f\n\x1b\x41PI_KEY_ANDROID_APP_BLOCKED\x10\t\x12\x1b\n\x17\x41PI_KEY_IOS_APP_BLOCKED\x10\r\x12\x17\n\x13RATE_LIMIT_EXCEEDED\x10\x05\x12\x1b\n\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12 \n\x1cLOCATION_TAX_POLICY_VIOLATED\x10\n\x12\x17\n\x13USER_PROJECT_DENIED\x10\x0b\x12\x16\n\x12\x43ONSUMER_SUSPENDED\x10\x0c\x12\x14\n\x10\x43ONSUMER_INVALID\x10\x0e\x12\x1c\n\x18SECURITY_POLICY_VIOLATED\x10\x0f\x12\x18\n\x14\x41\x43\x43\x45SS_TOKEN_EXPIRED\x10\x10\x12#\n\x1f\x41\x43\x43\x45SS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\x12\x19\n\x15\x41\x43\x43OUNT_STATE_INVALID\x10\x12\x12!\n\x1d\x41\x43\x43\x45SS_TOKEN_TYPE_UNSUPPORTED\x10\x13\x12\x17\n\x13\x43REDENTIALS_MISSING\x10\x14\x12\x1c\n\x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1a\n\x16SESSION_COOKIE_INVALID\x10\x17\x12\x19\n\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12\'\n#RESOURCE_USAGE_RESTRICTION_VIOLATED\x10\x19\x12 \n\x1cSYSTEM_PARAMETER_UNSUPPORTED\x10\x1a\x12\x1d\n\x19ORG_RESTRICTION_VIOLATION\x10\x1b\x12\"\n\x1eORG_RESTRICTION_HEADER_INVALID\x10\x1c\x12\x17\n\x13SERVICE_NOT_VISIBLE\x10\x1d\x12\x11\n\rGCP_SUSPENDED\x10\x1e\x12\x1c\n\x18LOCATION_POLICY_VIOLATED\x10\x1f\x12\x12\n\x0eMISSING_ORIGIN\x10!\x12\x1a\n\x16OVERLOADED_CREDENTIALS\x10\"\x12 \n\x1cLOCATION_ORG_POLICY_VIOLATED\x10#\x12\x1b\n\x17TLS_ORG_POLICY_VIOLATED\x10$\x12\x1b\n\x17\x45MULATOR_QUOTA_EXCEEDED\x10&\x12\"\n\x1e\x43REDENTIAL_ANDROID_APP_INVALID\x10\'\x12\x19\n\x15IAM_PERMISSION_DENIED\x10)\x12\x15\n\x11JWT_TOKEN_INVALID\x10*\x12\x1f\n\x1b\x43REDENTIAL_TYPE_UNSUPPORTED\x10+\x12\x1c\n\x18\x41\x43\x43OUNT_TYPE_UNSUPPORTED\x10,\x12\'\n#ENDPOINT_USAGE_RESTRICTION_VIOLATED\x10-\x12#\n\x1fTLS_CIPHER_RESTRICTION_VIOLATED\x10.\x12\x17\n\x13MCP_SERVER_DISABLED\x10/Bp\n\x0e\x63om.google.apiB\x10\x45rrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xa2\x02\x04GAPIb\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 Api
@@ -18,7 +39,7 @@ end
18
39
 
19
40
  #### Source proto file: google/api/error_reason.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.
@@ -639,4 +660,189 @@ end
639
660
  # // }
640
661
  # // }
641
662
  # OVERLOADED_CREDENTIALS = 34;
663
+ #
664
+ # // The request whose associated location violates the location org policy
665
+ # // restrictions when creating resources in the restricted region.
666
+ # //
667
+ # // Example of an ErrorInfo when creating the Cloud Storage Bucket in the
668
+ # // container "projects/123" under a restricted region
669
+ # // "locations/asia-northeast3":
670
+ # //
671
+ # // {
672
+ # // "reason": "LOCATION_ORG_POLICY_VIOLATED",
673
+ # // "domain": "googleapis.com",
674
+ # // "metadata": {
675
+ # // "resource": "projects/123",
676
+ # // "location": "locations/asia-northeast3"
677
+ # // }
678
+ # // }
679
+ # //
680
+ # // This response indicates creating the Cloud Storage Bucket in
681
+ # // "locations/asia-northeast3" violates the location org policy restriction.
682
+ # LOCATION_ORG_POLICY_VIOLATED = 35;
683
+ #
684
+ # // The request is denied because it access data of regulated customers using
685
+ # // TLS 1.0 and 1.1.
686
+ # //
687
+ # // Example of an ErrorInfo when accessing a GCP resource "projects/123" that
688
+ # // is restricted by TLS Version Restriction for "pubsub.googleapis.com"
689
+ # // service.
690
+ # //
691
+ # // {
692
+ # // "reason": "TLS_ORG_POLICY_VIOLATED",
693
+ # // "domain": "googleapis.com",
694
+ # // "metadata": {
695
+ # // "service": "pubsub.googleapis.com"
696
+ # // "resource": "projects/123",
697
+ # // "policyName": "constraints/gcp.restrictTLSVersion",
698
+ # // "tlsVersion": "TLS_VERSION_1"
699
+ # // }
700
+ # // }
701
+ # TLS_ORG_POLICY_VIOLATED = 36;
702
+ #
703
+ # // The request is denied because the associated project has exceeded the
704
+ # // emulator quota limit.
705
+ # //
706
+ # // Example of an ErrorInfo when the associated "projects/123" has exceeded the
707
+ # // emulator quota limit.
708
+ # //
709
+ # // {
710
+ # // "reason": "EMULATOR_QUOTA_EXCEEDED",
711
+ # // "domain": "googleapis.com",
712
+ # // "metadata": {
713
+ # // "service": "pubsub.googleapis.com"
714
+ # // "consumer": "projects/123"
715
+ # // }
716
+ # // }
717
+ # EMULATOR_QUOTA_EXCEEDED = 38;
718
+ #
719
+ # // The request is denied because the associated application credential header
720
+ # // is invalid for an Android applications.
721
+ # //
722
+ # // Example of an ErrorInfo when the request from an Android application to the
723
+ # // "pubsub.googleapis.com" with an invalid application credential header.
724
+ # //
725
+ # // {
726
+ # // "reason": "CREDENTIAL_ANDROID_APP_INVALID",
727
+ # // "domain": "googleapis.com",
728
+ # // "metadata": {
729
+ # // "service": "pubsub.googleapis.com"
730
+ # // }
731
+ # // }
732
+ # CREDENTIAL_ANDROID_APP_INVALID = 39;
733
+ #
734
+ # // The request is denied because IAM permission on resource is denied.
735
+ # //
736
+ # // Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list`
737
+ # // is denied on resource `projects/123`.
738
+ # //
739
+ # // {
740
+ # // "reason": "IAM_PERMISSION_DENIED",
741
+ # // "domain": "googleapis.com",
742
+ # // "metadata": {
743
+ # // "resource": "projects/123"
744
+ # // "permission": "aiplatform.datasets.list"
745
+ # // }
746
+ # // }
747
+ # IAM_PERMISSION_DENIED = 41;
748
+ #
749
+ # // The request is denied because it contains the invalid JWT token.
750
+ # //
751
+ # // Example of an ErrorInfo when the request contains an invalid JWT token for
752
+ # // service `storage.googleapis.com`.
753
+ # //
754
+ # // {
755
+ # // "reason": "JWT_TOKEN_INVALID",
756
+ # // "domain": "googleapis.com",
757
+ # // "metadata": {
758
+ # // "service": "storage.googleapis.com"
759
+ # // }
760
+ # // }
761
+ # JWT_TOKEN_INVALID = 42;
762
+ #
763
+ # // The request is denied because it contains credential with type that is
764
+ # // unsupported.
765
+ # //
766
+ # // Example of an ErrorInfo when the request contains an unsupported credential
767
+ # // type for service `storage.googleapis.com`.
768
+ # //
769
+ # // {
770
+ # // "reason": "CREDENTIAL_TYPE_UNSUPPORTED",
771
+ # // "domain": "googleapis.com",
772
+ # // "metadata": {
773
+ # // "service": "storage.googleapis.com"
774
+ # // }
775
+ # // }
776
+ # CREDENTIAL_TYPE_UNSUPPORTED = 43;
777
+ #
778
+ # // The request is denied because it contains unsupported account type.
779
+ # //
780
+ # // Example of an ErrorInfo when the request contains an unsupported account
781
+ # // type for service `storage.googleapis.com`.
782
+ # //
783
+ # // {
784
+ # // "reason": "ACCOUNT_TYPE_UNSUPPORTED",
785
+ # // "domain": "googleapis.com",
786
+ # // "metadata": {
787
+ # // "service": "storage.googleapis.com"
788
+ # // }
789
+ # // }
790
+ # ACCOUNT_TYPE_UNSUPPORTED = 44;
791
+ #
792
+ # // The request is denied because the API endpoint is restricted by
793
+ # // administrators according to the organization policy constraint.
794
+ # // For more information see
795
+ # // https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage.
796
+ # //
797
+ # // Example of an ErrorInfo when access to Google Cloud Storage service is
798
+ # // restricted by Restrict Endpoint Usage policy:
799
+ # //
800
+ # // {
801
+ # // "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED",
802
+ # // "domain": "googleapis.com/policies/endpointUsageRestriction",
803
+ # // "metadata": {
804
+ # // "policy_name": "constraints/gcp.restrictEndpointUsage",
805
+ # // "checked_value": "storage.googleapis.com"
806
+ # // "consumer": "organization/123"
807
+ # // "service": "storage.googleapis.com"
808
+ # // }
809
+ # // }
810
+ # ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45;
811
+ #
812
+ # // The request is denied because the TLS Cipher Suite is restricted by
813
+ # // administrators according to the organization policy constraint.
814
+ # // For more information see
815
+ # // https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites
816
+ # //
817
+ # // Example of an ErrorInfo when access to Google Cloud BigQuery service is
818
+ # // restricted by Restrict TLS Cipher Suites policy:
819
+ # //
820
+ # // {
821
+ # // "reason": "TLS_CIPHER_RESTRICTION_VIOLATED",
822
+ # // "domain": "googleapis.com/policies/tlsCipherRestriction",
823
+ # // "metadata": {
824
+ # // "policy_name": "constraints/gcp.restrictTLSCipherSuites",
825
+ # // "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
826
+ # // "consumer": "organization/123"
827
+ # // "service": "bigquery.googleapis.com"
828
+ # // }
829
+ # // }
830
+ # TLS_CIPHER_RESTRICTION_VIOLATED = 46;
831
+ #
832
+ # // The request is denied because the MCP activation check fails.
833
+ # //
834
+ # // Example of an ErrorInfo when the container "projects/123" contacting
835
+ # // "pubsub.googleapis.com" service which is disabled by MCP:
836
+ # //
837
+ # // { "reason": "MCP_SERVER_DISABLED",
838
+ # // "domain": "googleapis.com",
839
+ # // "metadata": {
840
+ # // "consumer": "projects/123",
841
+ # // "service": "pubsub.googleapis.com"
842
+ # // }
843
+ # // }
844
+ # //
845
+ # // This response indicates the "pubsub.googleapis.com" has been disabled in
846
+ # // "projects/123" for MCP.
847
+ # MCP_SERVER_DISABLED = 47;
642
848
  # }
@@ -9,8 +9,29 @@ require 'google/protobuf/descriptor_pb'
9
9
 
10
10
  descriptor_data = "\n\x1fgoogle/api/field_behavior.proto\x12\ngoogle.api\x1a google/protobuf/descriptor.proto*\xb6\x01\n\rFieldBehavior\x12\x1e\n\x1a\x46IELD_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08OPTIONAL\x10\x01\x12\x0c\n\x08REQUIRED\x10\x02\x12\x0f\n\x0bOUTPUT_ONLY\x10\x03\x12\x0e\n\nINPUT_ONLY\x10\x04\x12\r\n\tIMMUTABLE\x10\x05\x12\x12\n\x0eUNORDERED_LIST\x10\x06\x12\x15\n\x11NON_EMPTY_DEFAULT\x10\x07\x12\x0e\n\nIDENTIFIER\x10\x08:U\n\x0e\x66ield_behavior\x12\x1d.google.protobuf.FieldOptions\x18\x9c\x08 \x03(\x0e\x32\x19.google.api.FieldBehaviorB\x02\x10\x00\x42p\n\x0e\x63om.google.apiB\x12\x46ieldBehaviorProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\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
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
+ end
31
+ end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
34
+ end
14
35
 
15
36
  module Google
16
37
  module Api
@@ -20,7 +41,7 @@ end
20
41
 
21
42
  #### Source proto file: google/api/field_behavior.proto ####
22
43
  #
23
- # // Copyright 2025 Google LLC
44
+ # // Copyright 2026 Google LLC
24
45
  # //
25
46
  # // Licensed under the Apache License, Version 2.0 (the "License");
26
47
  # // you may not use this file except in compliance with the License.
@@ -9,8 +9,29 @@ require 'google/protobuf/descriptor_pb'
9
9
 
10
10
  descriptor_data = "\n\x1bgoogle/api/field_info.proto\x12\ngoogle.api\x1a google/protobuf/descriptor.proto\"\xc1\x01\n\tFieldInfo\x12,\n\x06\x66ormat\x18\x01 \x01(\x0e\x32\x1c.google.api.FieldInfo.Format\x12\x33\n\x10referenced_types\x18\x02 \x03(\x0b\x32\x19.google.api.TypeReference\"Q\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\t\n\x05UUID4\x10\x01\x12\x08\n\x04IPV4\x10\x02\x12\x08\n\x04IPV6\x10\x03\x12\x10\n\x0cIPV4_OR_IPV6\x10\x04\"\"\n\rTypeReference\x12\x11\n\ttype_name\x18\x01 \x01(\t:L\n\nfield_info\x12\x1d.google.protobuf.FieldOptions\x18\xcc\xf1\xf9\x8a\x01 \x01(\x0b\x32\x15.google.api.FieldInfoBl\n\x0e\x63om.google.apiB\x0e\x46ieldInfoProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\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
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
30
+ end
31
+ end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
34
+ end
14
35
 
15
36
  module Google
16
37
  module Api
@@ -22,7 +43,7 @@ end
22
43
 
23
44
  #### Source proto file: google/api/field_info.proto ####
24
45
  #
25
- # // Copyright 2025 Google LLC
46
+ # // Copyright 2026 Google LLC
26
47
  # //
27
48
  # // Licensed under the Apache License, Version 2.0 (the "License");
28
49
  # // 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\x15google/api/http.proto\x12\ngoogle.api\"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08\"\x81\x02\n\x08HttpRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\r\n\x03get\x18\x02 \x01(\tH\x00\x12\r\n\x03put\x18\x03 \x01(\tH\x00\x12\x0e\n\x04post\x18\x04 \x01(\tH\x00\x12\x10\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00\x12\x0f\n\x05patch\x18\x06 \x01(\tH\x00\x12/\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00\x12\x0c\n\x04\x62ody\x18\x07 \x01(\t\x12\x15\n\rresponse_body\x18\x0c \x01(\t\x12\x31\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleB\t\n\x07pattern\"/\n\x11\x43ustomHttpPattern\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\tBg\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\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 Api
@@ -20,7 +41,7 @@ end
20
41
 
21
42
  #### Source proto file: google/api/http.proto ####
22
43
  #
23
- # // Copyright 2025 Google LLC
44
+ # // Copyright 2026 Google LLC
24
45
  # //
25
46
  # // Licensed under the Apache License, Version 2.0 (the "License");
26
47
  # // you may not use this file except in compliance with the License.