googleapis-common-protos-types 1.15.0 → 1.23.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 +56 -0
  3. data/lib/google/api/annotations_pb.rb +3 -25
  4. data/lib/google/api/auth_pb.rb +4 -24
  5. data/lib/google/api/backend_pb.rb +15 -25
  6. data/lib/google/api/billing_pb.rb +3 -24
  7. data/lib/google/api/client_pb.rb +228 -73
  8. data/lib/google/api/config_change_pb.rb +3 -24
  9. data/lib/google/api/consumer_pb.rb +3 -24
  10. data/lib/google/api/context_pb.rb +7 -26
  11. data/lib/google/api/control_pb.rb +5 -27
  12. data/lib/google/api/distribution_pb.rb +3 -26
  13. data/lib/google/api/documentation_pb.rb +6 -27
  14. data/lib/google/api/endpoint_pb.rb +8 -33
  15. data/lib/google/api/error_reason_pb.rb +222 -25
  16. data/lib/google/api/field_behavior_pb.rb +3 -24
  17. data/lib/google/api/field_info_pb.rb +38 -31
  18. data/lib/google/api/http_pb.rb +24 -54
  19. data/lib/google/api/httpbody_pb.rb +4 -27
  20. data/lib/google/api/label_pb.rb +4 -26
  21. data/lib/google/api/launch_stage_pb.rb +3 -24
  22. data/lib/google/api/log_pb.rb +3 -25
  23. data/lib/google/api/logging_pb.rb +3 -24
  24. data/lib/google/api/metric_pb.rb +24 -27
  25. data/lib/google/api/monitored_resource_pb.rb +4 -28
  26. data/lib/google/api/monitoring_pb.rb +3 -24
  27. data/lib/google/api/policy_pb.rb +6 -30
  28. data/lib/google/api/quota_pb.rb +5 -26
  29. data/lib/google/api/resource_pb.rb +11 -28
  30. data/lib/google/api/routing_pb.rb +11 -28
  31. data/lib/google/api/service_pb.rb +4 -47
  32. data/lib/google/api/source_info_pb.rb +3 -25
  33. data/lib/google/api/system_parameter_pb.rb +3 -24
  34. data/lib/google/api/usage_pb.rb +9 -50
  35. data/lib/google/api/visibility_pb.rb +4 -26
  36. data/lib/google/logging/type/http_request_pb.rb +3 -25
  37. data/lib/google/logging/type/log_severity_pb.rb +3 -24
  38. data/lib/google/longrunning/operations_pb.rb +59 -64
  39. data/lib/google/rpc/code_pb.rb +3 -24
  40. data/lib/google/rpc/context/attribute_context_pb.rb +12 -31
  41. data/lib/google/rpc/context/audit_context_pb.rb +4 -27
  42. data/lib/google/rpc/error_details_pb.rb +89 -33
  43. data/lib/google/rpc/http_pb.rb +3 -24
  44. data/lib/google/rpc/status_pb.rb +4 -27
  45. data/lib/google/type/calendar_period_pb.rb +3 -24
  46. data/lib/google/type/color_pb.rb +12 -35
  47. data/lib/google/type/date_pb.rb +14 -33
  48. data/lib/google/type/datetime_pb.rb +20 -42
  49. data/lib/google/type/dayofweek_pb.rb +3 -24
  50. data/lib/google/type/decimal_pb.rb +14 -37
  51. data/lib/google/type/expr_pb.rb +3 -24
  52. data/lib/google/type/fraction_pb.rb +3 -24
  53. data/lib/google/type/interval_pb.rb +4 -27
  54. data/lib/google/type/latlng_pb.rb +7 -29
  55. data/lib/google/type/localized_text_pb.rb +6 -27
  56. data/lib/google/type/money_pb.rb +4 -26
  57. data/lib/google/type/month_pb.rb +3 -24
  58. data/lib/google/type/phone_number_pb.rb +23 -39
  59. data/lib/google/type/postal_address_pb.rb +42 -63
  60. data/lib/google/type/quaternion_pb.rb +7 -28
  61. data/lib/google/type/timeofday_pb.rb +14 -32
  62. data/lib/googleapis/common/protos/types/version.rb +1 -1
  63. metadata +8 -17
@@ -9,32 +9,10 @@ require 'google/protobuf/descriptor_pb'
9
9
  require 'google/protobuf/duration_pb'
10
10
 
11
11
 
12
- descriptor_data = "\n\x17google/api/client.proto\x12\ngoogle.api\x1a\x1dgoogle/api/launch_stage.proto\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\"t\n\x16\x43ommonLanguageSettings\x12\x1e\n\x12reference_docs_uri\x18\x01 \x01(\tB\x02\x18\x01\x12:\n\x0c\x64\x65stinations\x18\x02 \x03(\x0e\x32$.google.api.ClientLibraryDestination\"\xfb\x03\n\x15\x43lientLibrarySettings\x12\x0f\n\x07version\x18\x01 \x01(\t\x12-\n\x0claunch_stage\x18\x02 \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x1a\n\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\n\rjava_settings\x18\x15 \x01(\x0b\x32\x18.google.api.JavaSettings\x12-\n\x0c\x63pp_settings\x18\x16 \x01(\x0b\x32\x17.google.api.CppSettings\x12-\n\x0cphp_settings\x18\x17 \x01(\x0b\x32\x17.google.api.PhpSettings\x12\x33\n\x0fpython_settings\x18\x18 \x01(\x0b\x32\x1a.google.api.PythonSettings\x12/\n\rnode_settings\x18\x19 \x01(\x0b\x32\x18.google.api.NodeSettings\x12\x33\n\x0f\x64otnet_settings\x18\x1a \x01(\x0b\x32\x1a.google.api.DotnetSettings\x12/\n\rruby_settings\x18\x1b \x01(\x0b\x32\x18.google.api.RubySettings\x12+\n\x0bgo_settings\x18\x1c \x01(\x0b\x32\x16.google.api.GoSettings\"\xa8\x03\n\nPublishing\x12\x33\n\x0fmethod_settings\x18\x02 \x03(\x0b\x32\x1a.google.api.MethodSettings\x12\x15\n\rnew_issue_uri\x18\x65 \x01(\t\x12\x19\n\x11\x64ocumentation_uri\x18\x66 \x01(\t\x12\x16\n\x0e\x61pi_short_name\x18g \x01(\t\x12\x14\n\x0cgithub_label\x18h \x01(\t\x12\x1e\n\x16\x63odeowner_github_teams\x18i \x03(\t\x12\x16\n\x0e\x64oc_tag_prefix\x18j \x01(\t\x12;\n\x0corganization\x18k \x01(\x0e\x32%.google.api.ClientLibraryOrganization\x12;\n\x10library_settings\x18m \x03(\x0b\x32!.google.api.ClientLibrarySettings\x12)\n!proto_reference_documentation_uri\x18n \x01(\t\x12(\n rest_reference_documentation_uri\x18o \x01(\t\"\xe3\x01\n\x0cJavaSettings\x12\x17\n\x0flibrary_package\x18\x01 \x01(\t\x12L\n\x13service_class_names\x18\x02 \x03(\x0b\x32/.google.api.JavaSettings.ServiceClassNamesEntry\x12\x32\n\x06\x63ommon\x18\x03 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x1a\x38\n\x16ServiceClassNamesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\x0b\x43ppSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"A\n\x0bPhpSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"D\n\x0ePythonSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"B\n\x0cNodeSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"\xaa\x03\n\x0e\x44otnetSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x12I\n\x10renamed_services\x18\x02 \x03(\x0b\x32/.google.api.DotnetSettings.RenamedServicesEntry\x12K\n\x11renamed_resources\x18\x03 \x03(\x0b\x32\x30.google.api.DotnetSettings.RenamedResourcesEntry\x12\x19\n\x11ignored_resources\x18\x04 \x03(\t\x12 \n\x18\x66orced_namespace_aliases\x18\x05 \x03(\t\x12\x1e\n\x16handwritten_signatures\x18\x06 \x03(\t\x1a\x36\n\x14RenamedServicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x37\n\x15RenamedResourcesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"B\n\x0cRubySettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"@\n\nGoSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"\xcf\x02\n\x0eMethodSettings\x12\x10\n\x08selector\x18\x01 \x01(\t\x12<\n\x0clong_running\x18\x02 \x01(\x0b\x32&.google.api.MethodSettings.LongRunning\x12\x1d\n\x15\x61uto_populated_fields\x18\x03 \x03(\t\x1a\xcd\x01\n\x0bLongRunning\x12\x35\n\x12initial_poll_delay\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1d\n\x15poll_delay_multiplier\x18\x02 \x01(\x02\x12\x31\n\x0emax_poll_delay\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\x12total_poll_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration*\xa3\x01\n\x19\x43lientLibraryOrganization\x12+\n\'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\t\n\x05\x43LOUD\x10\x01\x12\x07\n\x03\x41\x44S\x10\x02\x12\n\n\x06PHOTOS\x10\x03\x12\x0f\n\x0bSTREET_VIEW\x10\x04\x12\x0c\n\x08SHOPPING\x10\x05\x12\x07\n\x03GEO\x10\x06\x12\x11\n\rGENERATIVE_AI\x10\x07*g\n\x18\x43lientLibraryDestination\x12*\n&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\n\n\x06GITHUB\x10\n\x12\x13\n\x0fPACKAGE_MANAGER\x10\x14:9\n\x10method_signature\x12\x1e.google.protobuf.MethodOptions\x18\x9b\x08 \x03(\t:6\n\x0c\x64\x65\x66\x61ult_host\x12\x1f.google.protobuf.ServiceOptions\x18\x99\x08 \x01(\t:6\n\x0coauth_scopes\x12\x1f.google.protobuf.ServiceOptions\x18\x9a\x08 \x01(\t:8\n\x0b\x61pi_version\x12\x1f.google.protobuf.ServiceOptions\x18\xc1\xba\xab\xfa\x01 \x01(\tBi\n\x0e\x63om.google.apiB\x0b\x43lientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3"
12
+ descriptor_data = "\n\x17google/api/client.proto\x12\ngoogle.api\x1a\x1dgoogle/api/launch_stage.proto\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\"\xbe\x01\n\x16\x43ommonLanguageSettings\x12\x1e\n\x12reference_docs_uri\x18\x01 \x01(\tB\x02\x18\x01\x12:\n\x0c\x64\x65stinations\x18\x02 \x03(\x0e\x32$.google.api.ClientLibraryDestination\x12H\n\x1aselective_gapic_generation\x18\x03 \x01(\x0b\x32$.google.api.SelectiveGapicGeneration\"\xfb\x03\n\x15\x43lientLibrarySettings\x12\x0f\n\x07version\x18\x01 \x01(\t\x12-\n\x0claunch_stage\x18\x02 \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x1a\n\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\n\rjava_settings\x18\x15 \x01(\x0b\x32\x18.google.api.JavaSettings\x12-\n\x0c\x63pp_settings\x18\x16 \x01(\x0b\x32\x17.google.api.CppSettings\x12-\n\x0cphp_settings\x18\x17 \x01(\x0b\x32\x17.google.api.PhpSettings\x12\x33\n\x0fpython_settings\x18\x18 \x01(\x0b\x32\x1a.google.api.PythonSettings\x12/\n\rnode_settings\x18\x19 \x01(\x0b\x32\x18.google.api.NodeSettings\x12\x33\n\x0f\x64otnet_settings\x18\x1a \x01(\x0b\x32\x1a.google.api.DotnetSettings\x12/\n\rruby_settings\x18\x1b \x01(\x0b\x32\x18.google.api.RubySettings\x12+\n\x0bgo_settings\x18\x1c \x01(\x0b\x32\x16.google.api.GoSettings\"\xa8\x03\n\nPublishing\x12\x33\n\x0fmethod_settings\x18\x02 \x03(\x0b\x32\x1a.google.api.MethodSettings\x12\x15\n\rnew_issue_uri\x18\x65 \x01(\t\x12\x19\n\x11\x64ocumentation_uri\x18\x66 \x01(\t\x12\x16\n\x0e\x61pi_short_name\x18g \x01(\t\x12\x14\n\x0cgithub_label\x18h \x01(\t\x12\x1e\n\x16\x63odeowner_github_teams\x18i \x03(\t\x12\x16\n\x0e\x64oc_tag_prefix\x18j \x01(\t\x12;\n\x0corganization\x18k \x01(\x0e\x32%.google.api.ClientLibraryOrganization\x12;\n\x10library_settings\x18m \x03(\x0b\x32!.google.api.ClientLibrarySettings\x12)\n!proto_reference_documentation_uri\x18n \x01(\t\x12(\n rest_reference_documentation_uri\x18o \x01(\t\"\xe3\x01\n\x0cJavaSettings\x12\x17\n\x0flibrary_package\x18\x01 \x01(\t\x12L\n\x13service_class_names\x18\x02 \x03(\x0b\x32/.google.api.JavaSettings.ServiceClassNamesEntry\x12\x32\n\x06\x63ommon\x18\x03 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x1a\x38\n\x16ServiceClassNamesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\x0b\x43ppSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"Z\n\x0bPhpSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x12\x17\n\x0flibrary_package\x18\x02 \x01(\t\"\x9b\x02\n\x0ePythonSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x12N\n\x15\x65xperimental_features\x18\x02 \x01(\x0b\x32/.google.api.PythonSettings.ExperimentalFeatures\x1a\x84\x01\n\x14\x45xperimentalFeatures\x12\x1d\n\x15rest_async_io_enabled\x18\x01 \x01(\x08\x12\'\n\x1fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08\x12$\n\x1cunversioned_package_disabled\x18\x03 \x01(\x08\"B\n\x0cNodeSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"\xaa\x03\n\x0e\x44otnetSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x12I\n\x10renamed_services\x18\x02 \x03(\x0b\x32/.google.api.DotnetSettings.RenamedServicesEntry\x12K\n\x11renamed_resources\x18\x03 \x03(\x0b\x32\x30.google.api.DotnetSettings.RenamedResourcesEntry\x12\x19\n\x11ignored_resources\x18\x04 \x03(\t\x12 \n\x18\x66orced_namespace_aliases\x18\x05 \x03(\t\x12\x1e\n\x16handwritten_signatures\x18\x06 \x03(\t\x1a\x36\n\x14RenamedServicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x37\n\x15RenamedResourcesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"B\n\x0cRubySettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"\xbf\x01\n\nGoSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x12\x45\n\x10renamed_services\x18\x02 \x03(\x0b\x32+.google.api.GoSettings.RenamedServicesEntry\x1a\x36\n\x14RenamedServicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x82\x03\n\x0eMethodSettings\x12\x10\n\x08selector\x18\x01 \x01(\t\x12<\n\x0clong_running\x18\x02 \x01(\x0b\x32&.google.api.MethodSettings.LongRunning\x12\x1d\n\x15\x61uto_populated_fields\x18\x03 \x03(\t\x12\x31\n\x08\x62\x61tching\x18\x04 \x01(\x0b\x32\x1f.google.api.BatchingConfigProto\x1a\xcd\x01\n\x0bLongRunning\x12\x35\n\x12initial_poll_delay\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1d\n\x15poll_delay_multiplier\x18\x02 \x01(\x02\x12\x31\n\x0emax_poll_delay\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\x12total_poll_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\"Q\n\x18SelectiveGapicGeneration\x12\x0f\n\x07methods\x18\x01 \x03(\t\x12$\n\x1cgenerate_omitted_as_internal\x18\x02 \x01(\x08\"\x8b\x01\n\x13\x42\x61tchingConfigProto\x12\x35\n\nthresholds\x18\x01 \x01(\x0b\x32!.google.api.BatchingSettingsProto\x12=\n\x10\x62\x61tch_descriptor\x18\x02 \x01(\x0b\x32#.google.api.BatchingDescriptorProto\"\xeb\x02\n\x15\x42\x61tchingSettingsProto\x12\x1f\n\x17\x65lement_count_threshold\x18\x01 \x01(\x05\x12\x1e\n\x16request_byte_threshold\x18\x02 \x01(\x03\x12\x32\n\x0f\x64\x65lay_threshold\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x65lement_count_limit\x18\x04 \x01(\x05\x12\x1a\n\x12request_byte_limit\x18\x05 \x01(\x05\x12\"\n\x1a\x66low_control_element_limit\x18\x06 \x01(\x05\x12\x1f\n\x17\x66low_control_byte_limit\x18\x07 \x01(\x05\x12_\n$flow_control_limit_exceeded_behavior\x18\x08 \x01(\x0e\x32\x31.google.api.FlowControlLimitExceededBehaviorProto\"i\n\x17\x42\x61tchingDescriptorProto\x12\x15\n\rbatched_field\x18\x01 \x01(\t\x12\x1c\n\x14\x64iscriminator_fields\x18\x02 \x03(\t\x12\x19\n\x11subresponse_field\x18\x03 \x01(\t*\xa3\x01\n\x19\x43lientLibraryOrganization\x12+\n\'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\t\n\x05\x43LOUD\x10\x01\x12\x07\n\x03\x41\x44S\x10\x02\x12\n\n\x06PHOTOS\x10\x03\x12\x0f\n\x0bSTREET_VIEW\x10\x04\x12\x0c\n\x08SHOPPING\x10\x05\x12\x07\n\x03GEO\x10\x06\x12\x11\n\rGENERATIVE_AI\x10\x07*g\n\x18\x43lientLibraryDestination\x12*\n&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\n\n\x06GITHUB\x10\n\x12\x13\n\x0fPACKAGE_MANAGER\x10\x14*g\n%FlowControlLimitExceededBehaviorProto\x12\x12\n\x0eUNSET_BEHAVIOR\x10\x00\x12\x13\n\x0fTHROW_EXCEPTION\x10\x01\x12\t\n\x05\x42LOCK\x10\x02\x12\n\n\x06IGNORE\x10\x03:9\n\x10method_signature\x12\x1e.google.protobuf.MethodOptions\x18\x9b\x08 \x03(\t:6\n\x0c\x64\x65\x66\x61ult_host\x12\x1f.google.protobuf.ServiceOptions\x18\x99\x08 \x01(\t:6\n\x0coauth_scopes\x12\x1f.google.protobuf.ServiceOptions\x18\x9a\x08 \x01(\t:8\n\x0b\x61pi_version\x12\x1f.google.protobuf.ServiceOptions\x18\xc1\xba\xab\xfa\x01 \x01(\tBi\n\x0e\x63om.google.apiB\x0b\x43lientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3"
13
13
 
14
- pool = Google::Protobuf::DescriptorPool.generated_pool
15
-
16
- begin
17
- pool.add_serialized_file(descriptor_data)
18
- rescue TypeError
19
- # Compatibility code: will be removed in the next major version.
20
- require 'google/protobuf/descriptor_pb'
21
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
22
- parsed.clear_dependency
23
- serialized = parsed.class.encode(parsed)
24
- file = pool.add_serialized_file(serialized)
25
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
26
- imports = [
27
- ["google.protobuf.Duration", "google/protobuf/duration.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
14
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
15
+ pool.add_serialized_file(descriptor_data)
38
16
 
39
17
  module Google
40
18
  module Api
@@ -45,20 +23,26 @@ module Google
45
23
  CppSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.CppSettings").msgclass
46
24
  PhpSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.PhpSettings").msgclass
47
25
  PythonSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.PythonSettings").msgclass
26
+ PythonSettings::ExperimentalFeatures = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.PythonSettings.ExperimentalFeatures").msgclass
48
27
  NodeSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.NodeSettings").msgclass
49
28
  DotnetSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.DotnetSettings").msgclass
50
29
  RubySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.RubySettings").msgclass
51
30
  GoSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.GoSettings").msgclass
52
31
  MethodSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MethodSettings").msgclass
53
32
  MethodSettings::LongRunning = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MethodSettings.LongRunning").msgclass
33
+ SelectiveGapicGeneration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SelectiveGapicGeneration").msgclass
34
+ BatchingConfigProto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BatchingConfigProto").msgclass
35
+ BatchingSettingsProto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BatchingSettingsProto").msgclass
36
+ BatchingDescriptorProto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BatchingDescriptorProto").msgclass
54
37
  ClientLibraryOrganization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ClientLibraryOrganization").enummodule
55
38
  ClientLibraryDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ClientLibraryDestination").enummodule
39
+ FlowControlLimitExceededBehaviorProto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.FlowControlLimitExceededBehaviorProto").enummodule
56
40
  end
57
41
  end
58
42
 
59
43
  #### Source proto file: google/api/client.proto ####
60
44
  #
61
- # // Copyright 2024 Google LLC
45
+ # // Copyright 2026 Google LLC
62
46
  # //
63
47
  # // Licensed under the Apache License, Version 2.0 (the "License");
64
48
  # // you may not use this file except in compliance with the License.
@@ -101,15 +85,15 @@ end
101
85
  # //
102
86
  # // For example, the proto RPC and annotation:
103
87
  # //
104
- # // rpc CreateSubscription(CreateSubscriptionRequest)
105
- # // returns (Subscription) {
106
- # // option (google.api.method_signature) = "name,topic";
107
- # // }
88
+ # // rpc CreateSubscription(CreateSubscriptionRequest)
89
+ # // returns (Subscription) {
90
+ # // option (google.api.method_signature) = "name,topic";
91
+ # // }
108
92
  # //
109
93
  # // Would add the following Java overload (in addition to the method accepting
110
94
  # // the request object):
111
95
  # //
112
- # // public final Subscription createSubscription(String name, String topic)
96
+ # // public final Subscription createSubscription(String name, String topic)
113
97
  # //
114
98
  # // The following backwards-compatibility guidelines apply:
115
99
  # //
@@ -131,32 +115,32 @@ end
131
115
  # //
132
116
  # // Example:
133
117
  # //
134
- # // service Foo {
135
- # // option (google.api.default_host) = "foo.googleapi.com";
136
- # // ...
137
- # // }
118
+ # // service Foo {
119
+ # // option (google.api.default_host) = "foo.googleapi.com";
120
+ # // ...
121
+ # // }
138
122
  # string default_host = 1049;
139
123
  #
140
124
  # // OAuth scopes needed for the client.
141
125
  # //
142
126
  # // Example:
143
127
  # //
144
- # // service Foo {
145
- # // option (google.api.oauth_scopes) = \
146
- # // "https://www.googleapis.com/auth/cloud-platform";
147
- # // ...
148
- # // }
128
+ # // service Foo {
129
+ # // option (google.api.oauth_scopes) = \
130
+ # // "https://www.googleapis.com/auth/cloud-platform";
131
+ # // ...
132
+ # // }
149
133
  # //
150
134
  # // If there is more than one scope, use a comma-separated string:
151
135
  # //
152
136
  # // Example:
153
137
  # //
154
- # // service Foo {
155
- # // option (google.api.oauth_scopes) = \
156
- # // "https://www.googleapis.com/auth/cloud-platform,"
157
- # // "https://www.googleapis.com/auth/monitoring";
158
- # // ...
159
- # // }
138
+ # // service Foo {
139
+ # // option (google.api.oauth_scopes) = \
140
+ # // "https://www.googleapis.com/auth/cloud-platform,"
141
+ # // "https://www.googleapis.com/auth/monitoring";
142
+ # // ...
143
+ # // }
160
144
  # string oauth_scopes = 1050;
161
145
  #
162
146
  # // The API version of this service, which should be sent by version-aware
@@ -170,9 +154,9 @@ end
170
154
  # //
171
155
  # // Example:
172
156
  # //
173
- # // service Foo {
174
- # // option (google.api.api_version) = "v1_20230821_preview";
175
- # // }
157
+ # // service Foo {
158
+ # // option (google.api.api_version) = "v1_20230821_preview";
159
+ # // }
176
160
  # string api_version = 525000001;
177
161
  # }
178
162
  #
@@ -184,6 +168,11 @@ end
184
168
  #
185
169
  # // The destination where API teams want this client library to be published.
186
170
  # repeated ClientLibraryDestination destinations = 2;
171
+ #
172
+ # // Configuration for which RPCs should be generated in the GAPIC client.
173
+ # //
174
+ # // Note: This field should not be used in most cases.
175
+ # SelectiveGapicGeneration selective_gapic_generation = 3;
187
176
  # }
188
177
  #
189
178
  # // Details about how and where to publish client libraries.
@@ -284,9 +273,10 @@ end
284
273
  # //
285
274
  # // Example of a YAML configuration::
286
275
  # //
287
- # // publishing:
288
- # // java_settings:
289
- # // library_package: com.google.cloud.pubsub.v1
276
+ # // publishing:
277
+ # // library_settings:
278
+ # // java_settings:
279
+ # // library_package: com.google.cloud.pubsub.v1
290
280
  # string library_package = 1;
291
281
  #
292
282
  # // Configure the Java class name to use instead of the service's for its
@@ -298,11 +288,11 @@ end
298
288
  # //
299
289
  # // Example of a YAML configuration::
300
290
  # //
301
- # // publishing:
302
- # // java_settings:
303
- # // service_class_names:
304
- # // - google.pubsub.v1.Publisher: TopicAdmin
305
- # // - google.pubsub.v1.Subscriber: SubscriptionAdmin
291
+ # // publishing:
292
+ # // java_settings:
293
+ # // service_class_names:
294
+ # // - google.pubsub.v1.Publisher: TopicAdmin
295
+ # // - google.pubsub.v1.Subscriber: SubscriptionAdmin
306
296
  # map<string, string> service_class_names = 2;
307
297
  #
308
298
  # // Some settings.
@@ -319,12 +309,52 @@ end
319
309
  # message PhpSettings {
320
310
  # // Some settings.
321
311
  # CommonLanguageSettings common = 1;
312
+ #
313
+ # // The package name to use in Php. Clobbers the php_namespace option
314
+ # // set in the protobuf. This should be used **only** by APIs
315
+ # // who have already set the language_settings.php.package_name" field
316
+ # // in gapic.yaml. API teams should use the protobuf php_namespace option
317
+ # // where possible.
318
+ # //
319
+ # // Example of a YAML configuration::
320
+ # //
321
+ # // publishing:
322
+ # // library_settings:
323
+ # // php_settings:
324
+ # // library_package: Google\Cloud\PubSub\V1
325
+ # string library_package = 2;
322
326
  # }
323
327
  #
324
328
  # // Settings for Python client libraries.
325
329
  # message PythonSettings {
330
+ # // Experimental features to be included during client library generation.
331
+ # // These fields will be deprecated once the feature graduates and is enabled
332
+ # // by default.
333
+ # message ExperimentalFeatures {
334
+ # // Enables generation of asynchronous REST clients if `rest` transport is
335
+ # // enabled. By default, asynchronous REST clients will not be generated.
336
+ # // This feature will be enabled by default 1 month after launching the
337
+ # // feature in preview packages.
338
+ # bool rest_async_io_enabled = 1;
339
+ #
340
+ # // Enables generation of protobuf code using new types that are more
341
+ # // Pythonic which are included in `protobuf>=5.29.x`. This feature will be
342
+ # // enabled by default 1 month after launching the feature in preview
343
+ # // packages.
344
+ # bool protobuf_pythonic_types_enabled = 2;
345
+ #
346
+ # // Disables generation of an unversioned Python package for this client
347
+ # // library. This means that the module names will need to be versioned in
348
+ # // import statements. For example `import google.cloud.library_v2` instead
349
+ # // of `import google.cloud.library`.
350
+ # bool unversioned_package_disabled = 3;
351
+ # }
352
+ #
326
353
  # // Some settings.
327
354
  # CommonLanguageSettings common = 1;
355
+ #
356
+ # // Experimental features to be included during client library generation.
357
+ # ExperimentalFeatures experimental_features = 2;
328
358
  # }
329
359
  #
330
360
  # // Settings for Node client libraries.
@@ -379,6 +409,18 @@ end
379
409
  # message GoSettings {
380
410
  # // Some settings.
381
411
  # CommonLanguageSettings common = 1;
412
+ #
413
+ # // Map of service names to renamed services. Keys are the package relative
414
+ # // service names and values are the name to be used for the service client
415
+ # // and call options.
416
+ # //
417
+ # // Example:
418
+ # //
419
+ # // publishing:
420
+ # // go_settings:
421
+ # // renamed_services:
422
+ # // Publisher: TopicAdmin
423
+ # map<string, string> renamed_services = 2;
382
424
  # }
383
425
  #
384
426
  # // Describes the generator configuration for a method.
@@ -409,6 +451,13 @@ end
409
451
  #
410
452
  # // The fully qualified name of the method, for which the options below apply.
411
453
  # // This is used to find the method to apply the options.
454
+ # //
455
+ # // Example:
456
+ # //
457
+ # // publishing:
458
+ # // method_settings:
459
+ # // - selector: google.storage.control.v2.StorageControl.CreateFolder
460
+ # // # method settings for CreateFolder...
412
461
  # string selector = 1;
413
462
  #
414
463
  # // Describes settings to use for long-running operations when generating
@@ -417,17 +466,14 @@ end
417
466
  # //
418
467
  # // Example of a YAML configuration::
419
468
  # //
420
- # // publishing:
421
- # // method_settings:
422
- # // - selector: google.cloud.speech.v2.Speech.BatchRecognize
423
- # // long_running:
424
- # // initial_poll_delay:
425
- # // seconds: 60 # 1 minute
426
- # // poll_delay_multiplier: 1.5
427
- # // max_poll_delay:
428
- # // seconds: 360 # 6 minutes
429
- # // total_poll_timeout:
430
- # // seconds: 54000 # 90 minutes
469
+ # // publishing:
470
+ # // method_settings:
471
+ # // - selector: google.cloud.speech.v2.Speech.BatchRecognize
472
+ # // long_running:
473
+ # // initial_poll_delay: 60s # 1 minute
474
+ # // poll_delay_multiplier: 1.5
475
+ # // max_poll_delay: 360s # 6 minutes
476
+ # // total_poll_timeout: 54000s # 90 minutes
431
477
  # LongRunning long_running = 2;
432
478
  #
433
479
  # // List of top-level fields of the request message, that should be
@@ -436,12 +482,25 @@ end
436
482
  # //
437
483
  # // Example of a YAML configuration:
438
484
  # //
439
- # // publishing:
440
- # // method_settings:
441
- # // - selector: google.example.v1.ExampleService.CreateExample
442
- # // auto_populated_fields:
443
- # // - request_id
485
+ # // publishing:
486
+ # // method_settings:
487
+ # // - selector: google.example.v1.ExampleService.CreateExample
488
+ # // auto_populated_fields:
489
+ # // - request_id
444
490
  # repeated string auto_populated_fields = 3;
491
+ #
492
+ # // Batching configuration for an API method in client libraries.
493
+ # //
494
+ # // Example of a YAML configuration:
495
+ # //
496
+ # // publishing:
497
+ # // method_settings:
498
+ # // - selector: google.example.v1.ExampleService.BatchCreateExample
499
+ # // batching:
500
+ # // element_count_threshold: 1000
501
+ # // request_byte_threshold: 100000000
502
+ # // delay_threshold_millis: 10
503
+ # BatchingConfigProto batching = 4;
445
504
  # }
446
505
  #
447
506
  # // The organization for which the client libraries are being published.
@@ -485,3 +544,99 @@ end
485
544
  # // Publish the library to package managers like nuget.org and npmjs.com.
486
545
  # PACKAGE_MANAGER = 20;
487
546
  # }
547
+ #
548
+ # // This message is used to configure the generation of a subset of the RPCs in
549
+ # // a service for client libraries.
550
+ # //
551
+ # // Note: This feature should not be used in most cases.
552
+ # message SelectiveGapicGeneration {
553
+ # // An allowlist of the fully qualified names of RPCs that should be included
554
+ # // on public client surfaces.
555
+ # repeated string methods = 1;
556
+ #
557
+ # // Setting this to true indicates to the client generators that methods
558
+ # // that would be excluded from the generation should instead be generated
559
+ # // in a way that indicates these methods should not be consumed by
560
+ # // end users. How this is expressed is up to individual language
561
+ # // implementations to decide. Some examples may be: added annotations,
562
+ # // obfuscated identifiers, or other language idiomatic patterns.
563
+ # bool generate_omitted_as_internal = 2;
564
+ # }
565
+ #
566
+ # // `BatchingConfigProto` defines the batching configuration for an API method.
567
+ # message BatchingConfigProto {
568
+ # // The thresholds which trigger a batched request to be sent.
569
+ # BatchingSettingsProto thresholds = 1;
570
+ #
571
+ # // The request and response fields used in batching.
572
+ # BatchingDescriptorProto batch_descriptor = 2;
573
+ # }
574
+ #
575
+ # // `BatchingSettingsProto` specifies a set of batching thresholds, each of
576
+ # // which acts as a trigger to send a batch of messages as a request. At least
577
+ # // one threshold must be positive nonzero.
578
+ # message BatchingSettingsProto {
579
+ # // The number of elements of a field collected into a batch which, if
580
+ # // exceeded, causes the batch to be sent.
581
+ # int32 element_count_threshold = 1;
582
+ #
583
+ # // The aggregated size of the batched field which, if exceeded, causes the
584
+ # // batch to be sent. This size is computed by aggregating the sizes of the
585
+ # // request field to be batched, not of the entire request message.
586
+ # int64 request_byte_threshold = 2;
587
+ #
588
+ # // The duration after which a batch should be sent, starting from the addition
589
+ # // of the first message to that batch.
590
+ # google.protobuf.Duration delay_threshold = 3;
591
+ #
592
+ # // The maximum number of elements collected in a batch that could be accepted
593
+ # // by server.
594
+ # int32 element_count_limit = 4;
595
+ #
596
+ # // The maximum size of the request that could be accepted by server.
597
+ # int32 request_byte_limit = 5;
598
+ #
599
+ # // The maximum number of elements allowed by flow control.
600
+ # int32 flow_control_element_limit = 6;
601
+ #
602
+ # // The maximum size of data allowed by flow control.
603
+ # int32 flow_control_byte_limit = 7;
604
+ #
605
+ # // The behavior to take when the flow control limit is exceeded.
606
+ # FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior =
607
+ # 8;
608
+ # }
609
+ #
610
+ # // The behavior to take when the flow control limit is exceeded.
611
+ # enum FlowControlLimitExceededBehaviorProto {
612
+ # // Default behavior, system-defined.
613
+ # UNSET_BEHAVIOR = 0;
614
+ #
615
+ # // Stop operation, raise error.
616
+ # THROW_EXCEPTION = 1;
617
+ #
618
+ # // Pause operation until limit clears.
619
+ # BLOCK = 2;
620
+ #
621
+ # // Continue operation, disregard limit.
622
+ # IGNORE = 3;
623
+ # }
624
+ #
625
+ # // `BatchingDescriptorProto` specifies the fields of the request message to be
626
+ # // used for batching, and, optionally, the fields of the response message to be
627
+ # // used for demultiplexing.
628
+ # message BatchingDescriptorProto {
629
+ # // The repeated field in the request message to be aggregated by batching.
630
+ # string batched_field = 1;
631
+ #
632
+ # // A list of the fields in the request message. Two requests will be batched
633
+ # // together only if the values of every field specified in
634
+ # // `request_discriminator_fields` is equal between the two requests.
635
+ # repeated string discriminator_fields = 2;
636
+ #
637
+ # // Optional. When present, indicates the field in the response message to be
638
+ # // used to demultiplex the response into multiple response messages, in
639
+ # // correspondence with the multiple request messages originally batched
640
+ # // together.
641
+ # string subresponse_field = 3;
642
+ # }
@@ -7,29 +7,8 @@ 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
-
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
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Google
35
14
  module Api
@@ -41,7 +20,7 @@ end
41
20
 
42
21
  #### Source proto file: google/api/config_change.proto ####
43
22
  #
44
- # // Copyright 2024 Google LLC
23
+ # // Copyright 2026 Google LLC
45
24
  # //
46
25
  # // Licensed under the Apache License, Version 2.0 (the "License");
47
26
  # // you may not use this file except in compliance with the License.
@@ -7,29 +7,8 @@ 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
-
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
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Google
35
14
  module Api
@@ -41,7 +20,7 @@ end
41
20
 
42
21
  #### Source proto file: google/api/consumer.proto ####
43
22
  #
44
- # // Copyright 2024 Google LLC
23
+ # // Copyright 2025 Google LLC
45
24
  # //
46
25
  # // Licensed under the Apache License, Version 2.0 (the "License");
47
26
  # // you may not use this file except in compliance with the License.
@@ -7,29 +7,8 @@ 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
-
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
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
33
12
 
34
13
  module Google
35
14
  module Api
@@ -40,7 +19,7 @@ end
40
19
 
41
20
  #### Source proto file: google/api/context.proto ####
42
21
  #
43
- # // Copyright 2024 Google LLC
22
+ # // Copyright 2026 Google LLC
44
23
  # //
45
24
  # // Licensed under the Apache License, Version 2.0 (the "License");
46
25
  # // you may not use this file except in compliance with the License.
@@ -116,10 +95,12 @@ end
116
95
  # // details.
117
96
  # string selector = 1;
118
97
  #
119
- # // A list of full type names of requested contexts.
98
+ # // A list of full type names of requested contexts, only the requested context
99
+ # // will be made available to the backend.
120
100
  # repeated string requested = 2;
121
101
  #
122
- # // A list of full type names of provided contexts.
102
+ # // A list of full type names of provided contexts. It is used to support
103
+ # // propagating HTTP headers and ETags from the response extension.
123
104
  # repeated string provided = 3;
124
105
  #
125
106
  # // A list of full type names or extension IDs of extensions allowed in grpc
@@ -9,30 +9,8 @@ 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
-
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
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
36
14
 
37
15
  module Google
38
16
  module Api
@@ -42,7 +20,7 @@ end
42
20
 
43
21
  #### Source proto file: google/api/control.proto ####
44
22
  #
45
- # // Copyright 2024 Google LLC
23
+ # // Copyright 2026 Google LLC
46
24
  # //
47
25
  # // Licensed under the Apache License, Version 2.0 (the "License");
48
26
  # // you may not use this file except in compliance with the License.
@@ -76,8 +54,8 @@ end
76
54
  # // environment: servicecontrol.googleapis.com
77
55
  # message Control {
78
56
  # // The service controller environment to use. If empty, no control plane
79
- # // feature (like quota and billing) will be enabled. The recommended value for
80
- # // most services is servicecontrol.googleapis.com
57
+ # // features (like quota and billing) will be enabled. The recommended value
58
+ # // for most services is servicecontrol.googleapis.com.
81
59
  # string environment = 1;
82
60
  #
83
61
  # // Defines policies applying to the API methods of the service.