diff --git a/CommonProtos/metadata/Api/Backend.php b/CommonProtos/metadata/Api/Backend.php index ff0a49db79c..9808979ecdb 100644 --- a/CommonProtos/metadata/Api/Backend.php +++ b/CommonProtos/metadata/Api/Backend.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\x86\x06\x0A\x18google/api/backend.proto\x12\x0Agoogle.api\"1\x0A\x07Backend\x12&\x0A\x05rules\x18\x01 \x03(\x0B2\x17.google.api.BackendRule\"\xB2\x04\x0A\x0BBackendRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0F\x0A\x07address\x18\x02 \x01(\x09\x12\x10\x0A\x08deadline\x18\x03 \x01(\x01\x12\x18\x0A\x0Cmin_deadline\x18\x04 \x01(\x01B\x02\x18\x01\x12\x1A\x0A\x12operation_deadline\x18\x05 \x01(\x01\x12A\x0A\x10path_translation\x18\x06 \x01(\x0E2'.google.api.BackendRule.PathTranslation\x12\x16\x0A\x0Cjwt_audience\x18\x07 \x01(\x09H\x00\x12\x16\x0A\x0Cdisable_auth\x18\x08 \x01(\x08H\x00\x12\x10\x0A\x08protocol\x18\x09 \x01(\x09\x12^\x0A\x1Doverrides_by_request_protocol\x18\x0A \x03(\x0B27.google.api.BackendRule.OverridesByRequestProtocolEntry\x1AZ\x0A\x1FOverridesByRequestProtocolEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12&\x0A\x05value\x18\x02 \x01(\x0B2\x17.google.api.BackendRule:\x028\x01\"e\x0A\x0FPathTranslation\x12 \x0A\x1CPATH_TRANSLATION_UNSPECIFIED\x10\x00\x12\x14\x0A\x10CONSTANT_ADDRESS\x10\x01\x12\x1A\x0A\x16APPEND_PATH_TO_ADDRESS\x10\x02B\x10\x0A\x0EauthenticationBn\x0A\x0Ecom.google.apiB\x0CBackendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" + "\x0A\xA5\x06\x0A\x18google/api/backend.proto\x12\x0Agoogle.api\"1\x0A\x07Backend\x12&\x0A\x05rules\x18\x01 \x03(\x0B2\x17.google.api.BackendRule\"\xD1\x04\x0A\x0BBackendRule\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12\x0F\x0A\x07address\x18\x02 \x01(\x09\x12\x10\x0A\x08deadline\x18\x03 \x01(\x01\x12\x18\x0A\x0Cmin_deadline\x18\x04 \x01(\x01B\x02\x18\x01\x12\x1A\x0A\x12operation_deadline\x18\x05 \x01(\x01\x12A\x0A\x10path_translation\x18\x06 \x01(\x0E2'.google.api.BackendRule.PathTranslation\x12\x16\x0A\x0Cjwt_audience\x18\x07 \x01(\x09H\x00\x12\x16\x0A\x0Cdisable_auth\x18\x08 \x01(\x08H\x00\x12\x10\x0A\x08protocol\x18\x09 \x01(\x09\x12^\x0A\x1Doverrides_by_request_protocol\x18\x0A \x03(\x0B27.google.api.BackendRule.OverridesByRequestProtocolEntry\x12\x1D\x0A\x15load_balancing_policy\x18\x0B \x01(\x09\x1AZ\x0A\x1FOverridesByRequestProtocolEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12&\x0A\x05value\x18\x02 \x01(\x0B2\x17.google.api.BackendRule:\x028\x01\"e\x0A\x0FPathTranslation\x12 \x0A\x1CPATH_TRANSLATION_UNSPECIFIED\x10\x00\x12\x14\x0A\x10CONSTANT_ADDRESS\x10\x01\x12\x1A\x0A\x16APPEND_PATH_TO_ADDRESS\x10\x02B\x10\x0A\x0EauthenticationBn\x0A\x0Ecom.google.apiB\x0CBackendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xA2\x02\x04GAPIb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Api/Client.php b/CommonProtos/metadata/Api/Client.php index b9bfd8c7658..40704b602b2 100644 --- a/CommonProtos/metadata/Api/Client.php +++ b/CommonProtos/metadata/Api/Client.php @@ -17,7 +17,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\LaunchStage::initOnce(); \GPBMetadata\Google\Protobuf\Duration::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xF9\x1A\x0A\x17google/api/client.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xBE\x01\x0A\x16CommonLanguageSettings\x12\x1E\x0A\x12reference_docs_uri\x18\x01 \x01(\x09B\x02\x18\x01\x12:\x0A\x0Cdestinations\x18\x02 \x03(\x0E2\$.google.api.ClientLibraryDestination\x12H\x0A\x1Aselective_gapic_generation\x18\x03 \x01(\x0B2\$.google.api.SelectiveGapicGeneration\"\xFB\x03\x0A\x15ClientLibrarySettings\x12\x0F\x0A\x07version\x18\x01 \x01(\x09\x12-\x0A\x0Claunch_stage\x18\x02 \x01(\x0E2\x17.google.api.LaunchStage\x12\x1A\x0A\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\x0A\x0Djava_settings\x18\x15 \x01(\x0B2\x18.google.api.JavaSettings\x12-\x0A\x0Ccpp_settings\x18\x16 \x01(\x0B2\x17.google.api.CppSettings\x12-\x0A\x0Cphp_settings\x18\x17 \x01(\x0B2\x17.google.api.PhpSettings\x123\x0A\x0Fpython_settings\x18\x18 \x01(\x0B2\x1A.google.api.PythonSettings\x12/\x0A\x0Dnode_settings\x18\x19 \x01(\x0B2\x18.google.api.NodeSettings\x123\x0A\x0Fdotnet_settings\x18\x1A \x01(\x0B2\x1A.google.api.DotnetSettings\x12/\x0A\x0Druby_settings\x18\x1B \x01(\x0B2\x18.google.api.RubySettings\x12+\x0A\x0Bgo_settings\x18\x1C \x01(\x0B2\x16.google.api.GoSettings\"\xA8\x03\x0A\x0APublishing\x123\x0A\x0Fmethod_settings\x18\x02 \x03(\x0B2\x1A.google.api.MethodSettings\x12\x15\x0A\x0Dnew_issue_uri\x18e \x01(\x09\x12\x19\x0A\x11documentation_uri\x18f \x01(\x09\x12\x16\x0A\x0Eapi_short_name\x18g \x01(\x09\x12\x14\x0A\x0Cgithub_label\x18h \x01(\x09\x12\x1E\x0A\x16codeowner_github_teams\x18i \x03(\x09\x12\x16\x0A\x0Edoc_tag_prefix\x18j \x01(\x09\x12;\x0A\x0Corganization\x18k \x01(\x0E2%.google.api.ClientLibraryOrganization\x12;\x0A\x10library_settings\x18m \x03(\x0B2!.google.api.ClientLibrarySettings\x12)\x0A!proto_reference_documentation_uri\x18n \x01(\x09\x12(\x0A rest_reference_documentation_uri\x18o \x01(\x09\"\xE3\x01\x0A\x0CJavaSettings\x12\x17\x0A\x0Flibrary_package\x18\x01 \x01(\x09\x12L\x0A\x13service_class_names\x18\x02 \x03(\x0B2/.google.api.JavaSettings.ServiceClassNamesEntry\x122\x0A\x06common\x18\x03 \x01(\x0B2\".google.api.CommonLanguageSettings\x1A8\x0A\x16ServiceClassNamesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"A\x0A\x0BCppSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"A\x0A\x0BPhpSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\x9B\x02\x0A\x0EPythonSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12N\x0A\x15experimental_features\x18\x02 \x01(\x0B2/.google.api.PythonSettings.ExperimentalFeatures\x1A\x84\x01\x0A\x14ExperimentalFeatures\x12\x1D\x0A\x15rest_async_io_enabled\x18\x01 \x01(\x08\x12'\x0A\x1Fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08\x12\$\x0A\x1Cunversioned_package_disabled\x18\x03 \x01(\x08\"B\x0A\x0CNodeSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xAA\x03\x0A\x0EDotnetSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12I\x0A\x10renamed_services\x18\x02 \x03(\x0B2/.google.api.DotnetSettings.RenamedServicesEntry\x12K\x0A\x11renamed_resources\x18\x03 \x03(\x0B20.google.api.DotnetSettings.RenamedResourcesEntry\x12\x19\x0A\x11ignored_resources\x18\x04 \x03(\x09\x12 \x0A\x18forced_namespace_aliases\x18\x05 \x03(\x09\x12\x1E\x0A\x16handwritten_signatures\x18\x06 \x03(\x09\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A7\x0A\x15RenamedResourcesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"B\x0A\x0CRubySettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xBF\x01\x0A\x0AGoSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12E\x0A\x10renamed_services\x18\x02 \x03(\x0B2+.google.api.GoSettings.RenamedServicesEntry\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\xCF\x02\x0A\x0EMethodSettings\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12<\x0A\x0Clong_running\x18\x02 \x01(\x0B2&.google.api.MethodSettings.LongRunning\x12\x1D\x0A\x15auto_populated_fields\x18\x03 \x03(\x09\x1A\xCD\x01\x0A\x0BLongRunning\x125\x0A\x12initial_poll_delay\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1D\x0A\x15poll_delay_multiplier\x18\x02 \x01(\x02\x121\x0A\x0Emax_poll_delay\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x125\x0A\x12total_poll_timeout\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\"Q\x0A\x18SelectiveGapicGeneration\x12\x0F\x0A\x07methods\x18\x01 \x03(\x09\x12\$\x0A\x1Cgenerate_omitted_as_internal\x18\x02 \x01(\x08*\xA3\x01\x0A\x19ClientLibraryOrganization\x12+\x0A'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\x09\x0A\x05CLOUD\x10\x01\x12\x07\x0A\x03ADS\x10\x02\x12\x0A\x0A\x06PHOTOS\x10\x03\x12\x0F\x0A\x0BSTREET_VIEW\x10\x04\x12\x0C\x0A\x08SHOPPING\x10\x05\x12\x07\x0A\x03GEO\x10\x06\x12\x11\x0A\x0DGENERATIVE_AI\x10\x07*g\x0A\x18ClientLibraryDestination\x12*\x0A&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GITHUB\x10\x0A\x12\x13\x0A\x0FPACKAGE_MANAGER\x10\x14Bi\x0A\x0Ecom.google.apiB\x0BClientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" + "\x0A\x95!\x0A\x17google/api/client.proto\x12\x0Agoogle.api\x1A google/protobuf/descriptor.proto\x1A\x1Egoogle/protobuf/duration.proto\"\xBE\x01\x0A\x16CommonLanguageSettings\x12\x1E\x0A\x12reference_docs_uri\x18\x01 \x01(\x09B\x02\x18\x01\x12:\x0A\x0Cdestinations\x18\x02 \x03(\x0E2\$.google.api.ClientLibraryDestination\x12H\x0A\x1Aselective_gapic_generation\x18\x03 \x01(\x0B2\$.google.api.SelectiveGapicGeneration\"\xFB\x03\x0A\x15ClientLibrarySettings\x12\x0F\x0A\x07version\x18\x01 \x01(\x09\x12-\x0A\x0Claunch_stage\x18\x02 \x01(\x0E2\x17.google.api.LaunchStage\x12\x1A\x0A\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\x0A\x0Djava_settings\x18\x15 \x01(\x0B2\x18.google.api.JavaSettings\x12-\x0A\x0Ccpp_settings\x18\x16 \x01(\x0B2\x17.google.api.CppSettings\x12-\x0A\x0Cphp_settings\x18\x17 \x01(\x0B2\x17.google.api.PhpSettings\x123\x0A\x0Fpython_settings\x18\x18 \x01(\x0B2\x1A.google.api.PythonSettings\x12/\x0A\x0Dnode_settings\x18\x19 \x01(\x0B2\x18.google.api.NodeSettings\x123\x0A\x0Fdotnet_settings\x18\x1A \x01(\x0B2\x1A.google.api.DotnetSettings\x12/\x0A\x0Druby_settings\x18\x1B \x01(\x0B2\x18.google.api.RubySettings\x12+\x0A\x0Bgo_settings\x18\x1C \x01(\x0B2\x16.google.api.GoSettings\"\xA8\x03\x0A\x0APublishing\x123\x0A\x0Fmethod_settings\x18\x02 \x03(\x0B2\x1A.google.api.MethodSettings\x12\x15\x0A\x0Dnew_issue_uri\x18e \x01(\x09\x12\x19\x0A\x11documentation_uri\x18f \x01(\x09\x12\x16\x0A\x0Eapi_short_name\x18g \x01(\x09\x12\x14\x0A\x0Cgithub_label\x18h \x01(\x09\x12\x1E\x0A\x16codeowner_github_teams\x18i \x03(\x09\x12\x16\x0A\x0Edoc_tag_prefix\x18j \x01(\x09\x12;\x0A\x0Corganization\x18k \x01(\x0E2%.google.api.ClientLibraryOrganization\x12;\x0A\x10library_settings\x18m \x03(\x0B2!.google.api.ClientLibrarySettings\x12)\x0A!proto_reference_documentation_uri\x18n \x01(\x09\x12(\x0A rest_reference_documentation_uri\x18o \x01(\x09\"\xE3\x01\x0A\x0CJavaSettings\x12\x17\x0A\x0Flibrary_package\x18\x01 \x01(\x09\x12L\x0A\x13service_class_names\x18\x02 \x03(\x0B2/.google.api.JavaSettings.ServiceClassNamesEntry\x122\x0A\x06common\x18\x03 \x01(\x0B2\".google.api.CommonLanguageSettings\x1A8\x0A\x16ServiceClassNamesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"A\x0A\x0BCppSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"Z\x0A\x0BPhpSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12\x17\x0A\x0Flibrary_package\x18\x02 \x01(\x09\"\x9B\x02\x0A\x0EPythonSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12N\x0A\x15experimental_features\x18\x02 \x01(\x0B2/.google.api.PythonSettings.ExperimentalFeatures\x1A\x84\x01\x0A\x14ExperimentalFeatures\x12\x1D\x0A\x15rest_async_io_enabled\x18\x01 \x01(\x08\x12'\x0A\x1Fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08\x12\$\x0A\x1Cunversioned_package_disabled\x18\x03 \x01(\x08\"B\x0A\x0CNodeSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xAA\x03\x0A\x0EDotnetSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12I\x0A\x10renamed_services\x18\x02 \x03(\x0B2/.google.api.DotnetSettings.RenamedServicesEntry\x12K\x0A\x11renamed_resources\x18\x03 \x03(\x0B20.google.api.DotnetSettings.RenamedResourcesEntry\x12\x19\x0A\x11ignored_resources\x18\x04 \x03(\x09\x12 \x0A\x18forced_namespace_aliases\x18\x05 \x03(\x09\x12\x1E\x0A\x16handwritten_signatures\x18\x06 \x03(\x09\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\x1A7\x0A\x15RenamedResourcesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"B\x0A\x0CRubySettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\"\xBF\x01\x0A\x0AGoSettings\x122\x0A\x06common\x18\x01 \x01(\x0B2\".google.api.CommonLanguageSettings\x12E\x0A\x10renamed_services\x18\x02 \x03(\x0B2+.google.api.GoSettings.RenamedServicesEntry\x1A6\x0A\x14RenamedServicesEntry\x12\x0B\x0A\x03key\x18\x01 \x01(\x09\x12\x0D\x0A\x05value\x18\x02 \x01(\x09:\x028\x01\"\x82\x03\x0A\x0EMethodSettings\x12\x10\x0A\x08selector\x18\x01 \x01(\x09\x12<\x0A\x0Clong_running\x18\x02 \x01(\x0B2&.google.api.MethodSettings.LongRunning\x12\x1D\x0A\x15auto_populated_fields\x18\x03 \x03(\x09\x121\x0A\x08batching\x18\x04 \x01(\x0B2\x1F.google.api.BatchingConfigProto\x1A\xCD\x01\x0A\x0BLongRunning\x125\x0A\x12initial_poll_delay\x18\x01 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1D\x0A\x15poll_delay_multiplier\x18\x02 \x01(\x02\x121\x0A\x0Emax_poll_delay\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x125\x0A\x12total_poll_timeout\x18\x04 \x01(\x0B2\x19.google.protobuf.Duration\"Q\x0A\x18SelectiveGapicGeneration\x12\x0F\x0A\x07methods\x18\x01 \x03(\x09\x12\$\x0A\x1Cgenerate_omitted_as_internal\x18\x02 \x01(\x08\"\x8B\x01\x0A\x13BatchingConfigProto\x125\x0A\x0Athresholds\x18\x01 \x01(\x0B2!.google.api.BatchingSettingsProto\x12=\x0A\x10batch_descriptor\x18\x02 \x01(\x0B2#.google.api.BatchingDescriptorProto\"\xEB\x02\x0A\x15BatchingSettingsProto\x12\x1F\x0A\x17element_count_threshold\x18\x01 \x01(\x05\x12\x1E\x0A\x16request_byte_threshold\x18\x02 \x01(\x03\x122\x0A\x0Fdelay_threshold\x18\x03 \x01(\x0B2\x19.google.protobuf.Duration\x12\x1B\x0A\x13element_count_limit\x18\x04 \x01(\x05\x12\x1A\x0A\x12request_byte_limit\x18\x05 \x01(\x05\x12\"\x0A\x1Aflow_control_element_limit\x18\x06 \x01(\x05\x12\x1F\x0A\x17flow_control_byte_limit\x18\x07 \x01(\x05\x12_\x0A\$flow_control_limit_exceeded_behavior\x18\x08 \x01(\x0E21.google.api.FlowControlLimitExceededBehaviorProto\"i\x0A\x17BatchingDescriptorProto\x12\x15\x0A\x0Dbatched_field\x18\x01 \x01(\x09\x12\x1C\x0A\x14discriminator_fields\x18\x02 \x03(\x09\x12\x19\x0A\x11subresponse_field\x18\x03 \x01(\x09*\xA3\x01\x0A\x19ClientLibraryOrganization\x12+\x0A'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\x09\x0A\x05CLOUD\x10\x01\x12\x07\x0A\x03ADS\x10\x02\x12\x0A\x0A\x06PHOTOS\x10\x03\x12\x0F\x0A\x0BSTREET_VIEW\x10\x04\x12\x0C\x0A\x08SHOPPING\x10\x05\x12\x07\x0A\x03GEO\x10\x06\x12\x11\x0A\x0DGENERATIVE_AI\x10\x07*g\x0A\x18ClientLibraryDestination\x12*\x0A&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06GITHUB\x10\x0A\x12\x13\x0A\x0FPACKAGE_MANAGER\x10\x14*g\x0A%FlowControlLimitExceededBehaviorProto\x12\x12\x0A\x0EUNSET_BEHAVIOR\x10\x00\x12\x13\x0A\x0FTHROW_EXCEPTION\x10\x01\x12\x09\x0A\x05BLOCK\x10\x02\x12\x0A\x0A\x06IGNORE\x10\x03Bi\x0A\x0Ecom.google.apiB\x0BClientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xA2\x02\x04GAPIb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/metadata/Api/ErrorReason.php b/CommonProtos/metadata/Api/ErrorReason.php index cf1a058fd5c..d38f6fcc5c4 100644 --- a/CommonProtos/metadata/Api/ErrorReason.php +++ b/CommonProtos/metadata/Api/ErrorReason.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\xE2\x08\x0A\x1Dgoogle/api/error_reason.proto\x12\x0Agoogle.api*\xBA\x07\x0A\x0BErrorReason\x12\x1C\x0A\x18ERROR_REASON_UNSPECIFIED\x10\x00\x12\x14\x0A\x10SERVICE_DISABLED\x10\x01\x12\x14\x0A\x10BILLING_DISABLED\x10\x02\x12\x13\x0A\x0FAPI_KEY_INVALID\x10\x03\x12\x1B\x0A\x17API_KEY_SERVICE_BLOCKED\x10\x04\x12!\x0A\x1DAPI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1E\x0A\x1AAPI_KEY_IP_ADDRESS_BLOCKED\x10\x08\x12\x1F\x0A\x1BAPI_KEY_ANDROID_APP_BLOCKED\x10\x09\x12\x1B\x0A\x17API_KEY_IOS_APP_BLOCKED\x10\x0D\x12\x17\x0A\x13RATE_LIMIT_EXCEEDED\x10\x05\x12\x1B\x0A\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12 \x0A\x1CLOCATION_TAX_POLICY_VIOLATED\x10\x0A\x12\x17\x0A\x13USER_PROJECT_DENIED\x10\x0B\x12\x16\x0A\x12CONSUMER_SUSPENDED\x10\x0C\x12\x14\x0A\x10CONSUMER_INVALID\x10\x0E\x12\x1C\x0A\x18SECURITY_POLICY_VIOLATED\x10\x0F\x12\x18\x0A\x14ACCESS_TOKEN_EXPIRED\x10\x10\x12#\x0A\x1FACCESS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\x12\x19\x0A\x15ACCOUNT_STATE_INVALID\x10\x12\x12!\x0A\x1DACCESS_TOKEN_TYPE_UNSUPPORTED\x10\x13\x12\x17\x0A\x13CREDENTIALS_MISSING\x10\x14\x12\x1C\x0A\x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1A\x0A\x16SESSION_COOKIE_INVALID\x10\x17\x12\x19\x0A\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12'\x0A#RESOURCE_USAGE_RESTRICTION_VIOLATED\x10\x19\x12 \x0A\x1CSYSTEM_PARAMETER_UNSUPPORTED\x10\x1A\x12\x1D\x0A\x19ORG_RESTRICTION_VIOLATION\x10\x1B\x12\"\x0A\x1EORG_RESTRICTION_HEADER_INVALID\x10\x1C\x12\x17\x0A\x13SERVICE_NOT_VISIBLE\x10\x1D\x12\x11\x0A\x0DGCP_SUSPENDED\x10\x1E\x12\x1C\x0A\x18LOCATION_POLICY_VIOLATED\x10\x1F\x12\x12\x0A\x0EMISSING_ORIGIN\x10!\x12\x1A\x0A\x16OVERLOADED_CREDENTIALS\x10\"Bp\x0A\x0Ecom.google.apiB\x10ErrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xA2\x02\x04GAPIb\x06proto3" + "\x0A\xBA\x0B\x0A\x1Dgoogle/api/error_reason.proto\x12\x0Agoogle.api*\x92\x0A\x0A\x0BErrorReason\x12\x1C\x0A\x18ERROR_REASON_UNSPECIFIED\x10\x00\x12\x14\x0A\x10SERVICE_DISABLED\x10\x01\x12\x14\x0A\x10BILLING_DISABLED\x10\x02\x12\x13\x0A\x0FAPI_KEY_INVALID\x10\x03\x12\x1B\x0A\x17API_KEY_SERVICE_BLOCKED\x10\x04\x12!\x0A\x1DAPI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1E\x0A\x1AAPI_KEY_IP_ADDRESS_BLOCKED\x10\x08\x12\x1F\x0A\x1BAPI_KEY_ANDROID_APP_BLOCKED\x10\x09\x12\x1B\x0A\x17API_KEY_IOS_APP_BLOCKED\x10\x0D\x12\x17\x0A\x13RATE_LIMIT_EXCEEDED\x10\x05\x12\x1B\x0A\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12 \x0A\x1CLOCATION_TAX_POLICY_VIOLATED\x10\x0A\x12\x17\x0A\x13USER_PROJECT_DENIED\x10\x0B\x12\x16\x0A\x12CONSUMER_SUSPENDED\x10\x0C\x12\x14\x0A\x10CONSUMER_INVALID\x10\x0E\x12\x1C\x0A\x18SECURITY_POLICY_VIOLATED\x10\x0F\x12\x18\x0A\x14ACCESS_TOKEN_EXPIRED\x10\x10\x12#\x0A\x1FACCESS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\x12\x19\x0A\x15ACCOUNT_STATE_INVALID\x10\x12\x12!\x0A\x1DACCESS_TOKEN_TYPE_UNSUPPORTED\x10\x13\x12\x17\x0A\x13CREDENTIALS_MISSING\x10\x14\x12\x1C\x0A\x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1A\x0A\x16SESSION_COOKIE_INVALID\x10\x17\x12\x19\x0A\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12'\x0A#RESOURCE_USAGE_RESTRICTION_VIOLATED\x10\x19\x12 \x0A\x1CSYSTEM_PARAMETER_UNSUPPORTED\x10\x1A\x12\x1D\x0A\x19ORG_RESTRICTION_VIOLATION\x10\x1B\x12\"\x0A\x1EORG_RESTRICTION_HEADER_INVALID\x10\x1C\x12\x17\x0A\x13SERVICE_NOT_VISIBLE\x10\x1D\x12\x11\x0A\x0DGCP_SUSPENDED\x10\x1E\x12\x1C\x0A\x18LOCATION_POLICY_VIOLATED\x10\x1F\x12\x12\x0A\x0EMISSING_ORIGIN\x10!\x12\x1A\x0A\x16OVERLOADED_CREDENTIALS\x10\"\x12 \x0A\x1CLOCATION_ORG_POLICY_VIOLATED\x10#\x12\x1B\x0A\x17TLS_ORG_POLICY_VIOLATED\x10\$\x12\x1B\x0A\x17EMULATOR_QUOTA_EXCEEDED\x10&\x12\"\x0A\x1ECREDENTIAL_ANDROID_APP_INVALID\x10'\x12\x19\x0A\x15IAM_PERMISSION_DENIED\x10)\x12\x15\x0A\x11JWT_TOKEN_INVALID\x10*\x12\x1F\x0A\x1BCREDENTIAL_TYPE_UNSUPPORTED\x10+\x12\x1C\x0A\x18ACCOUNT_TYPE_UNSUPPORTED\x10,\x12'\x0A#ENDPOINT_USAGE_RESTRICTION_VIOLATED\x10-\x12#\x0A\x1FTLS_CIPHER_RESTRICTION_VIOLATED\x10.\x12\x17\x0A\x13MCP_SERVER_DISABLED\x10/Bp\x0A\x0Ecom.google.apiB\x10ErrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xA2\x02\x04GAPIb\x06proto3" , true); static::$is_initialized = true; diff --git a/CommonProtos/src/Api/BackendRule.php b/CommonProtos/src/Api/BackendRule.php index 374c824bc39..63770f4953b 100644 --- a/CommonProtos/src/Api/BackendRule.php +++ b/CommonProtos/src/Api/BackendRule.php @@ -65,6 +65,11 @@ class BackendRule extends \Google\Protobuf\Internal\Message */ protected $operation_deadline = 0.0; /** + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; */ protected $path_translation = 0; @@ -95,6 +100,15 @@ class BackendRule extends \Google\Protobuf\Internal\Message * Generated from protobuf field map overrides_by_request_protocol = 10; */ private $overrides_by_request_protocol; + /** + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * + * Generated from protobuf field string load_balancing_policy = 11; + */ + protected $load_balancing_policy = ''; protected $authentication; /** @@ -132,6 +146,10 @@ class BackendRule extends \Google\Protobuf\Internal\Message * The number of seconds to wait for the completion of a long running * operation. The default is no deadline. * @type int $path_translation + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. * @type string $jwt_audience * The JWT audience is used when generating a JWT ID token for the backend. * This ID token will be added in the HTTP "authorization" header, and sent @@ -160,6 +178,11 @@ class BackendRule extends \Google\Protobuf\Internal\Message * for more details on the supported values. * @type array|\Google\Protobuf\Internal\MapField $overrides_by_request_protocol * The map between request protocol and the backend address. + * @type string $load_balancing_policy + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". * } */ public function __construct($data = NULL) { @@ -340,6 +363,11 @@ public function setOperationDeadline($var) } /** + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; * @return int */ @@ -349,6 +377,11 @@ public function getPathTranslation() } /** + * Path translation specifies how to combine the backend address with the + * request path in order to produce the appropriate forwarding URL for the + * request. See [PathTranslation][google.api.BackendRule.PathTranslation] for + * more details. + * * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; * @param int $var * @return $this @@ -515,6 +548,38 @@ public function setOverridesByRequestProtocol($var) return $this; } + /** + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * + * Generated from protobuf field string load_balancing_policy = 11; + * @return string + */ + public function getLoadBalancingPolicy() + { + return $this->load_balancing_policy; + } + + /** + * The load balancing policy used for connection to the application backend. + * Defined as an arbitrary string to accomondate custom load balancing + * policies supported by the underlying channel, but suggest most users use + * one of the standard policies, such as the default, "RoundRobin". + * + * Generated from protobuf field string load_balancing_policy = 11; + * @param string $var + * @return $this + */ + public function setLoadBalancingPolicy($var) + { + GPBUtil::checkString($var, True); + $this->load_balancing_policy = $var; + + return $this; + } + /** * @return string */ diff --git a/CommonProtos/src/Api/BatchingConfigProto.php b/CommonProtos/src/Api/BatchingConfigProto.php new file mode 100644 index 00000000000..a89814d51f0 --- /dev/null +++ b/CommonProtos/src/Api/BatchingConfigProto.php @@ -0,0 +1,121 @@ +google.api.BatchingConfigProto + */ +class BatchingConfigProto extends \Google\Protobuf\Internal\Message +{ + /** + * The thresholds which trigger a batched request to be sent. + * + * Generated from protobuf field .google.api.BatchingSettingsProto thresholds = 1; + */ + protected $thresholds = null; + /** + * The request and response fields used in batching. + * + * Generated from protobuf field .google.api.BatchingDescriptorProto batch_descriptor = 2; + */ + protected $batch_descriptor = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Api\BatchingSettingsProto $thresholds + * The thresholds which trigger a batched request to be sent. + * @type \Google\Api\BatchingDescriptorProto $batch_descriptor + * The request and response fields used in batching. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The thresholds which trigger a batched request to be sent. + * + * Generated from protobuf field .google.api.BatchingSettingsProto thresholds = 1; + * @return \Google\Api\BatchingSettingsProto|null + */ + public function getThresholds() + { + return $this->thresholds; + } + + public function hasThresholds() + { + return isset($this->thresholds); + } + + public function clearThresholds() + { + unset($this->thresholds); + } + + /** + * The thresholds which trigger a batched request to be sent. + * + * Generated from protobuf field .google.api.BatchingSettingsProto thresholds = 1; + * @param \Google\Api\BatchingSettingsProto $var + * @return $this + */ + public function setThresholds($var) + { + GPBUtil::checkMessage($var, \Google\Api\BatchingSettingsProto::class); + $this->thresholds = $var; + + return $this; + } + + /** + * The request and response fields used in batching. + * + * Generated from protobuf field .google.api.BatchingDescriptorProto batch_descriptor = 2; + * @return \Google\Api\BatchingDescriptorProto|null + */ + public function getBatchDescriptor() + { + return $this->batch_descriptor; + } + + public function hasBatchDescriptor() + { + return isset($this->batch_descriptor); + } + + public function clearBatchDescriptor() + { + unset($this->batch_descriptor); + } + + /** + * The request and response fields used in batching. + * + * Generated from protobuf field .google.api.BatchingDescriptorProto batch_descriptor = 2; + * @param \Google\Api\BatchingDescriptorProto $var + * @return $this + */ + public function setBatchDescriptor($var) + { + GPBUtil::checkMessage($var, \Google\Api\BatchingDescriptorProto::class); + $this->batch_descriptor = $var; + + return $this; + } + +} + diff --git a/CommonProtos/src/Api/BatchingDescriptorProto.php b/CommonProtos/src/Api/BatchingDescriptorProto.php new file mode 100644 index 00000000000..96179ad0f31 --- /dev/null +++ b/CommonProtos/src/Api/BatchingDescriptorProto.php @@ -0,0 +1,157 @@ +google.api.BatchingDescriptorProto + */ +class BatchingDescriptorProto extends \Google\Protobuf\Internal\Message +{ + /** + * The repeated field in the request message to be aggregated by batching. + * + * Generated from protobuf field string batched_field = 1; + */ + protected $batched_field = ''; + /** + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + * + * Generated from protobuf field repeated string discriminator_fields = 2; + */ + private $discriminator_fields; + /** + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + * + * Generated from protobuf field string subresponse_field = 3; + */ + protected $subresponse_field = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $batched_field + * The repeated field in the request message to be aggregated by batching. + * @type string[] $discriminator_fields + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + * @type string $subresponse_field + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The repeated field in the request message to be aggregated by batching. + * + * Generated from protobuf field string batched_field = 1; + * @return string + */ + public function getBatchedField() + { + return $this->batched_field; + } + + /** + * The repeated field in the request message to be aggregated by batching. + * + * Generated from protobuf field string batched_field = 1; + * @param string $var + * @return $this + */ + public function setBatchedField($var) + { + GPBUtil::checkString($var, True); + $this->batched_field = $var; + + return $this; + } + + /** + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + * + * Generated from protobuf field repeated string discriminator_fields = 2; + * @return RepeatedField + */ + public function getDiscriminatorFields() + { + return $this->discriminator_fields; + } + + /** + * A list of the fields in the request message. Two requests will be batched + * together only if the values of every field specified in + * `request_discriminator_fields` is equal between the two requests. + * + * Generated from protobuf field repeated string discriminator_fields = 2; + * @param string[] $var + * @return $this + */ + public function setDiscriminatorFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->discriminator_fields = $arr; + + return $this; + } + + /** + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + * + * Generated from protobuf field string subresponse_field = 3; + * @return string + */ + public function getSubresponseField() + { + return $this->subresponse_field; + } + + /** + * Optional. When present, indicates the field in the response message to be + * used to demultiplex the response into multiple response messages, in + * correspondence with the multiple request messages originally batched + * together. + * + * Generated from protobuf field string subresponse_field = 3; + * @param string $var + * @return $this + */ + public function setSubresponseField($var) + { + GPBUtil::checkString($var, True); + $this->subresponse_field = $var; + + return $this; + } + +} + diff --git a/CommonProtos/src/Api/BatchingSettingsProto.php b/CommonProtos/src/Api/BatchingSettingsProto.php new file mode 100644 index 00000000000..35716d7235b --- /dev/null +++ b/CommonProtos/src/Api/BatchingSettingsProto.php @@ -0,0 +1,337 @@ +google.api.BatchingSettingsProto + */ +class BatchingSettingsProto extends \Google\Protobuf\Internal\Message +{ + /** + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + * + * Generated from protobuf field int32 element_count_threshold = 1; + */ + protected $element_count_threshold = 0; + /** + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + * + * Generated from protobuf field int64 request_byte_threshold = 2; + */ + protected $request_byte_threshold = 0; + /** + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + * + * Generated from protobuf field .google.protobuf.Duration delay_threshold = 3; + */ + protected $delay_threshold = null; + /** + * The maximum number of elements collected in a batch that could be accepted + * by server. + * + * Generated from protobuf field int32 element_count_limit = 4; + */ + protected $element_count_limit = 0; + /** + * The maximum size of the request that could be accepted by server. + * + * Generated from protobuf field int32 request_byte_limit = 5; + */ + protected $request_byte_limit = 0; + /** + * The maximum number of elements allowed by flow control. + * + * Generated from protobuf field int32 flow_control_element_limit = 6; + */ + protected $flow_control_element_limit = 0; + /** + * The maximum size of data allowed by flow control. + * + * Generated from protobuf field int32 flow_control_byte_limit = 7; + */ + protected $flow_control_byte_limit = 0; + /** + * The behavior to take when the flow control limit is exceeded. + * + * Generated from protobuf field .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8; + */ + protected $flow_control_limit_exceeded_behavior = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $element_count_threshold + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + * @type int|string $request_byte_threshold + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + * @type \Google\Protobuf\Duration $delay_threshold + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + * @type int $element_count_limit + * The maximum number of elements collected in a batch that could be accepted + * by server. + * @type int $request_byte_limit + * The maximum size of the request that could be accepted by server. + * @type int $flow_control_element_limit + * The maximum number of elements allowed by flow control. + * @type int $flow_control_byte_limit + * The maximum size of data allowed by flow control. + * @type int $flow_control_limit_exceeded_behavior + * The behavior to take when the flow control limit is exceeded. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Api\Client::initOnce(); + parent::__construct($data); + } + + /** + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + * + * Generated from protobuf field int32 element_count_threshold = 1; + * @return int + */ + public function getElementCountThreshold() + { + return $this->element_count_threshold; + } + + /** + * The number of elements of a field collected into a batch which, if + * exceeded, causes the batch to be sent. + * + * Generated from protobuf field int32 element_count_threshold = 1; + * @param int $var + * @return $this + */ + public function setElementCountThreshold($var) + { + GPBUtil::checkInt32($var); + $this->element_count_threshold = $var; + + return $this; + } + + /** + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + * + * Generated from protobuf field int64 request_byte_threshold = 2; + * @return int|string + */ + public function getRequestByteThreshold() + { + return $this->request_byte_threshold; + } + + /** + * The aggregated size of the batched field which, if exceeded, causes the + * batch to be sent. This size is computed by aggregating the sizes of the + * request field to be batched, not of the entire request message. + * + * Generated from protobuf field int64 request_byte_threshold = 2; + * @param int|string $var + * @return $this + */ + public function setRequestByteThreshold($var) + { + GPBUtil::checkInt64($var); + $this->request_byte_threshold = $var; + + return $this; + } + + /** + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + * + * Generated from protobuf field .google.protobuf.Duration delay_threshold = 3; + * @return \Google\Protobuf\Duration|null + */ + public function getDelayThreshold() + { + return $this->delay_threshold; + } + + public function hasDelayThreshold() + { + return isset($this->delay_threshold); + } + + public function clearDelayThreshold() + { + unset($this->delay_threshold); + } + + /** + * The duration after which a batch should be sent, starting from the addition + * of the first message to that batch. + * + * Generated from protobuf field .google.protobuf.Duration delay_threshold = 3; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setDelayThreshold($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->delay_threshold = $var; + + return $this; + } + + /** + * The maximum number of elements collected in a batch that could be accepted + * by server. + * + * Generated from protobuf field int32 element_count_limit = 4; + * @return int + */ + public function getElementCountLimit() + { + return $this->element_count_limit; + } + + /** + * The maximum number of elements collected in a batch that could be accepted + * by server. + * + * Generated from protobuf field int32 element_count_limit = 4; + * @param int $var + * @return $this + */ + public function setElementCountLimit($var) + { + GPBUtil::checkInt32($var); + $this->element_count_limit = $var; + + return $this; + } + + /** + * The maximum size of the request that could be accepted by server. + * + * Generated from protobuf field int32 request_byte_limit = 5; + * @return int + */ + public function getRequestByteLimit() + { + return $this->request_byte_limit; + } + + /** + * The maximum size of the request that could be accepted by server. + * + * Generated from protobuf field int32 request_byte_limit = 5; + * @param int $var + * @return $this + */ + public function setRequestByteLimit($var) + { + GPBUtil::checkInt32($var); + $this->request_byte_limit = $var; + + return $this; + } + + /** + * The maximum number of elements allowed by flow control. + * + * Generated from protobuf field int32 flow_control_element_limit = 6; + * @return int + */ + public function getFlowControlElementLimit() + { + return $this->flow_control_element_limit; + } + + /** + * The maximum number of elements allowed by flow control. + * + * Generated from protobuf field int32 flow_control_element_limit = 6; + * @param int $var + * @return $this + */ + public function setFlowControlElementLimit($var) + { + GPBUtil::checkInt32($var); + $this->flow_control_element_limit = $var; + + return $this; + } + + /** + * The maximum size of data allowed by flow control. + * + * Generated from protobuf field int32 flow_control_byte_limit = 7; + * @return int + */ + public function getFlowControlByteLimit() + { + return $this->flow_control_byte_limit; + } + + /** + * The maximum size of data allowed by flow control. + * + * Generated from protobuf field int32 flow_control_byte_limit = 7; + * @param int $var + * @return $this + */ + public function setFlowControlByteLimit($var) + { + GPBUtil::checkInt32($var); + $this->flow_control_byte_limit = $var; + + return $this; + } + + /** + * The behavior to take when the flow control limit is exceeded. + * + * Generated from protobuf field .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8; + * @return int + */ + public function getFlowControlLimitExceededBehavior() + { + return $this->flow_control_limit_exceeded_behavior; + } + + /** + * The behavior to take when the flow control limit is exceeded. + * + * Generated from protobuf field .google.api.FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior = 8; + * @param int $var + * @return $this + */ + public function setFlowControlLimitExceededBehavior($var) + { + GPBUtil::checkEnum($var, \Google\Api\FlowControlLimitExceededBehaviorProto::class); + $this->flow_control_limit_exceeded_behavior = $var; + + return $this; + } + +} + diff --git a/CommonProtos/src/Api/Control.php b/CommonProtos/src/Api/Control.php index b076b32efd9..834a57015bf 100644 --- a/CommonProtos/src/Api/Control.php +++ b/CommonProtos/src/Api/Control.php @@ -20,8 +20,8 @@ class Control extends \Google\Protobuf\Internal\Message { /** * The service controller environment to use. If empty, no control plane - * feature (like quota and billing) will be enabled. The recommended value for - * most services is servicecontrol.googleapis.com + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. * * Generated from protobuf field string environment = 1; */ @@ -41,8 +41,8 @@ class Control extends \Google\Protobuf\Internal\Message * * @type string $environment * The service controller environment to use. If empty, no control plane - * feature (like quota and billing) will be enabled. The recommended value for - * most services is servicecontrol.googleapis.com + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. * @type \Google\Api\MethodPolicy[] $method_policies * Defines policies applying to the API methods of the service. * } @@ -54,8 +54,8 @@ public function __construct($data = NULL) { /** * The service controller environment to use. If empty, no control plane - * feature (like quota and billing) will be enabled. The recommended value for - * most services is servicecontrol.googleapis.com + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. * * Generated from protobuf field string environment = 1; * @return string @@ -67,8 +67,8 @@ public function getEnvironment() /** * The service controller environment to use. If empty, no control plane - * feature (like quota and billing) will be enabled. The recommended value for - * most services is servicecontrol.googleapis.com + * features (like quota and billing) will be enabled. The recommended value + * for most services is servicecontrol.googleapis.com. * * Generated from protobuf field string environment = 1; * @param string $var diff --git a/CommonProtos/src/Api/ErrorReason.php b/CommonProtos/src/Api/ErrorReason.php index f70bb4392a1..5457fb4ca9b 100644 --- a/CommonProtos/src/Api/ErrorReason.php +++ b/CommonProtos/src/Api/ErrorReason.php @@ -630,6 +630,200 @@ class ErrorReason * Generated from protobuf enum OVERLOADED_CREDENTIALS = 34; */ const OVERLOADED_CREDENTIALS = 34; + /** + * The request whose associated location violates the location org policy + * restrictions when creating resources in the restricted region. + * Example of an ErrorInfo when creating the Cloud Storage Bucket in the + * container "projects/123" under a restricted region + * "locations/asia-northeast3": + * { + * "reason": "LOCATION_ORG_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "resource": "projects/123", + * "location": "locations/asia-northeast3" + * } + * } + * This response indicates creating the Cloud Storage Bucket in + * "locations/asia-northeast3" violates the location org policy restriction. + * + * Generated from protobuf enum LOCATION_ORG_POLICY_VIOLATED = 35; + */ + const LOCATION_ORG_POLICY_VIOLATED = 35; + /** + * The request is denied because it access data of regulated customers using + * TLS 1.0 and 1.1. + * Example of an ErrorInfo when accessing a GCP resource "projects/123" that + * is restricted by TLS Version Restriction for "pubsub.googleapis.com" + * service. + * { + * "reason": "TLS_ORG_POLICY_VIOLATED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * "resource": "projects/123", + * "policyName": "constraints/gcp.restrictTLSVersion", + * "tlsVersion": "TLS_VERSION_1" + * } + * } + * + * Generated from protobuf enum TLS_ORG_POLICY_VIOLATED = 36; + */ + const TLS_ORG_POLICY_VIOLATED = 36; + /** + * The request is denied because the associated project has exceeded the + * emulator quota limit. + * Example of an ErrorInfo when the associated "projects/123" has exceeded the + * emulator quota limit. + * { + * "reason": "EMULATOR_QUOTA_EXCEEDED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * "consumer": "projects/123" + * } + * } + * + * Generated from protobuf enum EMULATOR_QUOTA_EXCEEDED = 38; + */ + const EMULATOR_QUOTA_EXCEEDED = 38; + /** + * The request is denied because the associated application credential header + * is invalid for an Android applications. + * Example of an ErrorInfo when the request from an Android application to the + * "pubsub.googleapis.com" with an invalid application credential header. + * { + * "reason": "CREDENTIAL_ANDROID_APP_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "pubsub.googleapis.com" + * } + * } + * + * Generated from protobuf enum CREDENTIAL_ANDROID_APP_INVALID = 39; + */ + const CREDENTIAL_ANDROID_APP_INVALID = 39; + /** + * The request is denied because IAM permission on resource is denied. + * Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list` + * is denied on resource `projects/123`. + * { + * "reason": "IAM_PERMISSION_DENIED", + * "domain": "googleapis.com", + * "metadata": { + * "resource": "projects/123" + * "permission": "aiplatform.datasets.list" + * } + * } + * + * Generated from protobuf enum IAM_PERMISSION_DENIED = 41; + */ + const IAM_PERMISSION_DENIED = 41; + /** + * The request is denied because it contains the invalid JWT token. + * Example of an ErrorInfo when the request contains an invalid JWT token for + * service `storage.googleapis.com`. + * { + * "reason": "JWT_TOKEN_INVALID", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum JWT_TOKEN_INVALID = 42; + */ + const JWT_TOKEN_INVALID = 42; + /** + * The request is denied because it contains credential with type that is + * unsupported. + * Example of an ErrorInfo when the request contains an unsupported credential + * type for service `storage.googleapis.com`. + * { + * "reason": "CREDENTIAL_TYPE_UNSUPPORTED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum CREDENTIAL_TYPE_UNSUPPORTED = 43; + */ + const CREDENTIAL_TYPE_UNSUPPORTED = 43; + /** + * The request is denied because it contains unsupported account type. + * Example of an ErrorInfo when the request contains an unsupported account + * type for service `storage.googleapis.com`. + * { + * "reason": "ACCOUNT_TYPE_UNSUPPORTED", + * "domain": "googleapis.com", + * "metadata": { + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum ACCOUNT_TYPE_UNSUPPORTED = 44; + */ + const ACCOUNT_TYPE_UNSUPPORTED = 44; + /** + * The request is denied because the API endpoint is restricted by + * administrators according to the organization policy constraint. + * For more information see + * https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage. + * Example of an ErrorInfo when access to Google Cloud Storage service is + * restricted by Restrict Endpoint Usage policy: + * { + * "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED", + * "domain": "googleapis.com/policies/endpointUsageRestriction", + * "metadata": { + * "policy_name": "constraints/gcp.restrictEndpointUsage", + * "checked_value": "storage.googleapis.com" + * "consumer": "organization/123" + * "service": "storage.googleapis.com" + * } + * } + * + * Generated from protobuf enum ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45; + */ + const ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45; + /** + * The request is denied because the TLS Cipher Suite is restricted by + * administrators according to the organization policy constraint. + * For more information see + * https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites + * Example of an ErrorInfo when access to Google Cloud BigQuery service is + * restricted by Restrict TLS Cipher Suites policy: + * { + * "reason": "TLS_CIPHER_RESTRICTION_VIOLATED", + * "domain": "googleapis.com/policies/tlsCipherRestriction", + * "metadata": { + * "policy_name": "constraints/gcp.restrictTLSCipherSuites", + * "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 + * "consumer": "organization/123" + * "service": "bigquery.googleapis.com" + * } + * } + * + * Generated from protobuf enum TLS_CIPHER_RESTRICTION_VIOLATED = 46; + */ + const TLS_CIPHER_RESTRICTION_VIOLATED = 46; + /** + * The request is denied because the MCP activation check fails. + * Example of an ErrorInfo when the container "projects/123" contacting + * "pubsub.googleapis.com" service which is disabled by MCP: + * { "reason": "MCP_SERVER_DISABLED", + * "domain": "googleapis.com", + * "metadata": { + * "consumer": "projects/123", + * "service": "pubsub.googleapis.com" + * } + * } + * This response indicates the "pubsub.googleapis.com" has been disabled in + * "projects/123" for MCP. + * + * Generated from protobuf enum MCP_SERVER_DISABLED = 47; + */ + const MCP_SERVER_DISABLED = 47; private static $valueToName = [ self::ERROR_REASON_UNSPECIFIED => 'ERROR_REASON_UNSPECIFIED', @@ -665,6 +859,17 @@ class ErrorReason self::LOCATION_POLICY_VIOLATED => 'LOCATION_POLICY_VIOLATED', self::MISSING_ORIGIN => 'MISSING_ORIGIN', self::OVERLOADED_CREDENTIALS => 'OVERLOADED_CREDENTIALS', + self::LOCATION_ORG_POLICY_VIOLATED => 'LOCATION_ORG_POLICY_VIOLATED', + self::TLS_ORG_POLICY_VIOLATED => 'TLS_ORG_POLICY_VIOLATED', + self::EMULATOR_QUOTA_EXCEEDED => 'EMULATOR_QUOTA_EXCEEDED', + self::CREDENTIAL_ANDROID_APP_INVALID => 'CREDENTIAL_ANDROID_APP_INVALID', + self::IAM_PERMISSION_DENIED => 'IAM_PERMISSION_DENIED', + self::JWT_TOKEN_INVALID => 'JWT_TOKEN_INVALID', + self::CREDENTIAL_TYPE_UNSUPPORTED => 'CREDENTIAL_TYPE_UNSUPPORTED', + self::ACCOUNT_TYPE_UNSUPPORTED => 'ACCOUNT_TYPE_UNSUPPORTED', + self::ENDPOINT_USAGE_RESTRICTION_VIOLATED => 'ENDPOINT_USAGE_RESTRICTION_VIOLATED', + self::TLS_CIPHER_RESTRICTION_VIOLATED => 'TLS_CIPHER_RESTRICTION_VIOLATED', + self::MCP_SERVER_DISABLED => 'MCP_SERVER_DISABLED', ]; public static function name($value) diff --git a/CommonProtos/src/Api/FlowControlLimitExceededBehaviorProto.php b/CommonProtos/src/Api/FlowControlLimitExceededBehaviorProto.php new file mode 100644 index 00000000000..a1457d9f7e4 --- /dev/null +++ b/CommonProtos/src/Api/FlowControlLimitExceededBehaviorProto.php @@ -0,0 +1,68 @@ +google.api.FlowControlLimitExceededBehaviorProto + */ +class FlowControlLimitExceededBehaviorProto +{ + /** + * Default behavior, system-defined. + * + * Generated from protobuf enum UNSET_BEHAVIOR = 0; + */ + const UNSET_BEHAVIOR = 0; + /** + * Stop operation, raise error. + * + * Generated from protobuf enum THROW_EXCEPTION = 1; + */ + const THROW_EXCEPTION = 1; + /** + * Pause operation until limit clears. + * + * Generated from protobuf enum BLOCK = 2; + */ + const BLOCK = 2; + /** + * Continue operation, disregard limit. + * + * Generated from protobuf enum IGNORE = 3; + */ + const IGNORE = 3; + + private static $valueToName = [ + self::UNSET_BEHAVIOR => 'UNSET_BEHAVIOR', + self::THROW_EXCEPTION => 'THROW_EXCEPTION', + self::BLOCK => 'BLOCK', + self::IGNORE => 'IGNORE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/CommonProtos/src/Api/GoSettings.php b/CommonProtos/src/Api/GoSettings.php index efff4b80aa8..2a406b74d47 100644 --- a/CommonProtos/src/Api/GoSettings.php +++ b/CommonProtos/src/Api/GoSettings.php @@ -25,10 +25,11 @@ class GoSettings extends \Google\Protobuf\Internal\Message * Map of service names to renamed services. Keys are the package relative * service names and values are the name to be used for the service client * and call options. - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin * * Generated from protobuf field map renamed_services = 2; */ @@ -46,10 +47,11 @@ class GoSettings extends \Google\Protobuf\Internal\Message * Map of service names to renamed services. Keys are the package relative * service names and values are the name to be used for the service client * and call options. - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin * } */ public function __construct($data = NULL) { @@ -97,10 +99,11 @@ public function setCommon($var) * Map of service names to renamed services. Keys are the package relative * service names and values are the name to be used for the service client * and call options. - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin * * Generated from protobuf field map renamed_services = 2; * @return \Google\Protobuf\Internal\MapField @@ -114,10 +117,11 @@ public function getRenamedServices() * Map of service names to renamed services. Keys are the package relative * service names and values are the name to be used for the service client * and call options. - * publishing: - * go_settings: - * renamed_services: - * Publisher: TopicAdmin + * Example: + * publishing: + * go_settings: + * renamed_services: + * Publisher: TopicAdmin * * Generated from protobuf field map renamed_services = 2; * @param array|\Google\Protobuf\Internal\MapField $var diff --git a/CommonProtos/src/Api/JavaSettings.php b/CommonProtos/src/Api/JavaSettings.php index 52b10f645e4..7b05e075005 100644 --- a/CommonProtos/src/Api/JavaSettings.php +++ b/CommonProtos/src/Api/JavaSettings.php @@ -22,9 +22,10 @@ class JavaSettings extends \Google\Protobuf\Internal\Message * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * Example of a YAML configuration:: - * publishing: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 * * Generated from protobuf field string library_package = 1; */ @@ -37,11 +38,11 @@ class JavaSettings extends \Google\Protobuf\Internal\Message * teams should otherwise use the service name as it appears in the * protobuf. * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin * * Generated from protobuf field map service_class_names = 2; */ @@ -66,9 +67,10 @@ class JavaSettings extends \Google\Protobuf\Internal\Message * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * Example of a YAML configuration:: - * publishing: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 * @type array|\Google\Protobuf\Internal\MapField $service_class_names * Configure the Java class name to use instead of the service's for its * corresponding generated GAPIC client. Keys are fully-qualified @@ -77,11 +79,11 @@ class JavaSettings extends \Google\Protobuf\Internal\Message * teams should otherwise use the service name as it appears in the * protobuf. * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin * @type \Google\Api\CommonLanguageSettings $common * Some settings. * } @@ -98,9 +100,10 @@ public function __construct($data = NULL) { * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * Example of a YAML configuration:: - * publishing: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 * * Generated from protobuf field string library_package = 1; * @return string @@ -117,9 +120,10 @@ public function getLibraryPackage() * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * Example of a YAML configuration:: - * publishing: - * java_settings: - * library_package: com.google.cloud.pubsub.v1 + * publishing: + * library_settings: + * java_settings: + * library_package: com.google.cloud.pubsub.v1 * * Generated from protobuf field string library_package = 1; * @param string $var @@ -141,11 +145,11 @@ public function setLibraryPackage($var) * teams should otherwise use the service name as it appears in the * protobuf. * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin * * Generated from protobuf field map service_class_names = 2; * @return \Google\Protobuf\Internal\MapField @@ -163,11 +167,11 @@ public function getServiceClassNames() * teams should otherwise use the service name as it appears in the * protobuf. * Example of a YAML configuration:: - * publishing: - * java_settings: - * service_class_names: - * - google.pubsub.v1.Publisher: TopicAdmin - * - google.pubsub.v1.Subscriber: SubscriptionAdmin + * publishing: + * java_settings: + * service_class_names: + * - google.pubsub.v1.Publisher: TopicAdmin + * - google.pubsub.v1.Subscriber: SubscriptionAdmin * * Generated from protobuf field map service_class_names = 2; * @param array|\Google\Protobuf\Internal\MapField $var diff --git a/CommonProtos/src/Api/MethodSettings.php b/CommonProtos/src/Api/MethodSettings.php index eecf2370066..1669fc575fe 100644 --- a/CommonProtos/src/Api/MethodSettings.php +++ b/CommonProtos/src/Api/MethodSettings.php @@ -19,10 +19,10 @@ class MethodSettings extends \Google\Protobuf\Internal\Message * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... * * Generated from protobuf field string selector = 1; */ @@ -32,14 +32,14 @@ class MethodSettings extends \Google\Protobuf\Internal\Message * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes * * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; */ @@ -49,15 +49,29 @@ class MethodSettings extends \Google\Protobuf\Internal\Message * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id * * Generated from protobuf field repeated string auto_populated_fields = 3; */ private $auto_populated_fields; + /** + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * + * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; + */ + protected $batching = null; /** * Constructor. @@ -69,33 +83,43 @@ class MethodSettings extends \Google\Protobuf\Internal\Message * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... * @type \Google\Api\MethodSettings\LongRunning $long_running * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes * @type string[] $auto_populated_fields * List of top-level fields of the request message, that should be * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id + * @type \Google\Api\BatchingConfigProto $batching + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 * } */ public function __construct($data = NULL) { @@ -107,10 +131,10 @@ public function __construct($data = NULL) { * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... * * Generated from protobuf field string selector = 1; * @return string @@ -124,10 +148,10 @@ public function getSelector() * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * Example: - * publishing: - * method_settings: - * - selector: google.storage.control.v2.StorageControl.CreateFolder - * # method settings for CreateFolder... + * publishing: + * method_settings: + * - selector: google.storage.control.v2.StorageControl.CreateFolder + * # method settings for CreateFolder... * * Generated from protobuf field string selector = 1; * @param string $var @@ -146,14 +170,14 @@ public function setSelector($var) * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes * * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; * @return \Google\Api\MethodSettings\LongRunning|null @@ -178,14 +202,14 @@ public function clearLongRunning() * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * Example of a YAML configuration:: - * publishing: - * method_settings: - * - selector: google.cloud.speech.v2.Speech.BatchRecognize - * long_running: - * initial_poll_delay: 60s # 1 minute - * poll_delay_multiplier: 1.5 - * max_poll_delay: 360s # 6 minutes - * total_poll_timeout: 54000s # 90 minutes + * publishing: + * method_settings: + * - selector: google.cloud.speech.v2.Speech.BatchRecognize + * long_running: + * initial_poll_delay: 60s # 1 minute + * poll_delay_multiplier: 1.5 + * max_poll_delay: 360s # 6 minutes + * total_poll_timeout: 54000s # 90 minutes * * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; * @param \Google\Api\MethodSettings\LongRunning $var @@ -204,11 +228,11 @@ public function setLongRunning($var) * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id * * Generated from protobuf field repeated string auto_populated_fields = 3; * @return RepeatedField @@ -223,11 +247,11 @@ public function getAutoPopulatedFields() * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * Example of a YAML configuration: - * publishing: - * method_settings: - * - selector: google.example.v1.ExampleService.CreateExample - * auto_populated_fields: - * - request_id + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.CreateExample + * auto_populated_fields: + * - request_id * * Generated from protobuf field repeated string auto_populated_fields = 3; * @param string[] $var @@ -241,5 +265,57 @@ public function setAutoPopulatedFields($var) return $this; } + /** + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * + * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; + * @return \Google\Api\BatchingConfigProto|null + */ + public function getBatching() + { + return $this->batching; + } + + public function hasBatching() + { + return isset($this->batching); + } + + public function clearBatching() + { + unset($this->batching); + } + + /** + * Batching configuration for an API method in client libraries. + * Example of a YAML configuration: + * publishing: + * method_settings: + * - selector: google.example.v1.ExampleService.BatchCreateExample + * batching: + * element_count_threshold: 1000 + * request_byte_threshold: 100000000 + * delay_threshold_millis: 10 + * + * Generated from protobuf field .google.api.BatchingConfigProto batching = 4; + * @param \Google\Api\BatchingConfigProto $var + * @return $this + */ + public function setBatching($var) + { + GPBUtil::checkMessage($var, \Google\Api\BatchingConfigProto::class); + $this->batching = $var; + + return $this; + } + } diff --git a/CommonProtos/src/Api/PhpSettings.php b/CommonProtos/src/Api/PhpSettings.php index a98437ce1ba..38cbabd68af 100644 --- a/CommonProtos/src/Api/PhpSettings.php +++ b/CommonProtos/src/Api/PhpSettings.php @@ -21,6 +21,21 @@ class PhpSettings extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; */ protected $common = null; + /** + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * + * Generated from protobuf field string library_package = 2; + */ + protected $library_package = ''; /** * Constructor. @@ -30,6 +45,17 @@ class PhpSettings extends \Google\Protobuf\Internal\Message * * @type \Google\Api\CommonLanguageSettings $common * Some settings. + * @type string $library_package + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 * } */ public function __construct($data = NULL) { @@ -73,5 +99,49 @@ public function setCommon($var) return $this; } + /** + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * + * Generated from protobuf field string library_package = 2; + * @return string + */ + public function getLibraryPackage() + { + return $this->library_package; + } + + /** + * The package name to use in Php. Clobbers the php_namespace option + * set in the protobuf. This should be used **only** by APIs + * who have already set the language_settings.php.package_name" field + * in gapic.yaml. API teams should use the protobuf php_namespace option + * where possible. + * Example of a YAML configuration:: + * publishing: + * library_settings: + * php_settings: + * library_package: Google\Cloud\PubSub\V1 + * + * Generated from protobuf field string library_package = 2; + * @param string $var + * @return $this + */ + public function setLibraryPackage($var) + { + GPBUtil::checkString($var, True); + $this->library_package = $var; + + return $this; + } + } diff --git a/CommonProtos/src/Api/RoutingRule.php b/CommonProtos/src/Api/RoutingRule.php index b2c00a6fa2f..b6f939a5263 100644 --- a/CommonProtos/src/Api/RoutingRule.php +++ b/CommonProtos/src/Api/RoutingRule.php @@ -32,9 +32,12 @@ * table_name: projects/proj_foo/instances/instance_bar/table/table_baz, * app_profile_id: profiles/prof_qux * } - * The routing header consists of one or multiple key-value pairs. Every key - * and value must be percent-encoded, and joined together in the format of - * `key1=value1&key2=value2`. + * The routing header consists of one or multiple key-value pairs. The order of + * the key-value pairs is undefined, the order of the `routing_parameters` in + * the `RoutingRule` only matters for the evaluation order of the path + * templates when `field` is the same. See the examples below for more details. + * Every key and value in the routing header must be percent-encoded, + * and joined together in the following format: `key1=value1&key2=value2`. * The examples below skip the percent-encoding for readability. * Example 1 * Extracting a field from the request to put into the routing header diff --git a/CommonProtos/src/Api/Service.php b/CommonProtos/src/Api/Service.php index 61c3d3fc1de..a5bbee008b0 100644 --- a/CommonProtos/src/Api/Service.php +++ b/CommonProtos/src/Api/Service.php @@ -177,8 +177,7 @@ class Service extends \Google\Protobuf\Internal\Message private $metrics; /** * Defines the monitored resources used by this service. This is required - * by the [Service.monitoring][google.api.Service.monitoring] and - * [Service.logging][google.api.Service.logging] configurations. + * by the `Service.monitoring` and `Service.logging` configurations. * * Generated from protobuf field repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ @@ -298,8 +297,7 @@ class Service extends \Google\Protobuf\Internal\Message * Defines the metrics used by this service. * @type \Google\Api\MonitoredResourceDescriptor[] $monitored_resources * Defines the monitored resources used by this service. This is required - * by the [Service.monitoring][google.api.Service.monitoring] and - * [Service.logging][google.api.Service.logging] configurations. + * by the `Service.monitoring` and `Service.logging` configurations. * @type \Google\Api\Billing $billing * Billing configuration. * @type \Google\Api\Logging $logging @@ -923,8 +921,7 @@ public function setMetrics($var) /** * Defines the monitored resources used by this service. This is required - * by the [Service.monitoring][google.api.Service.monitoring] and - * [Service.logging][google.api.Service.logging] configurations. + * by the `Service.monitoring` and `Service.logging` configurations. * * Generated from protobuf field repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; * @return RepeatedField<\Google\Api\MonitoredResourceDescriptor> @@ -936,8 +933,7 @@ public function getMonitoredResources() /** * Defines the monitored resources used by this service. This is required - * by the [Service.monitoring][google.api.Service.monitoring] and - * [Service.logging][google.api.Service.logging] configurations. + * by the `Service.monitoring` and `Service.logging` configurations. * * Generated from protobuf field repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; * @param \Google\Api\MonitoredResourceDescriptor[] $var diff --git a/CommonProtos/src/Api/UsageRule.php b/CommonProtos/src/Api/UsageRule.php index 38a45ec7990..73fac2210f6 100644 --- a/CommonProtos/src/Api/UsageRule.php +++ b/CommonProtos/src/Api/UsageRule.php @@ -10,23 +10,6 @@ /** * Usage configuration rules for the service. - * NOTE: Under development. - * Use this rule to configure unregistered calls for the service. Unregistered - * calls are calls that do not contain consumer project identity. - * (Example: calls that do not contain an API key). - * By default, API methods do not allow unregistered calls, and each method call - * must be identified by a consumer project identity. Use this rule to - * allow/disallow unregistered calls. - * Example of an API that wants to allow unregistered calls for entire service. - * usage: - * rules: - * - selector: "*" - * allow_unregistered_calls: true - * Example of a method that wants to allow unregistered calls. - * usage: - * rules: - * - selector: "google.example.library.v1.LibraryService.CreateBook" - * allow_unregistered_calls: true * * Generated from protobuf message google.api.UsageRule */ @@ -42,8 +25,11 @@ class UsageRule extends \Google\Protobuf\Internal\Message */ protected $selector = ''; /** - * If true, the selected method allows unregistered calls, e.g. calls - * that don't identify any user or application. + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. * * Generated from protobuf field bool allow_unregistered_calls = 2; */ @@ -70,8 +56,11 @@ class UsageRule extends \Google\Protobuf\Internal\Message * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * @type bool $allow_unregistered_calls - * If true, the selected method allows unregistered calls, e.g. calls - * that don't identify any user or application. + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. * @type bool $skip_service_control * If true, the selected method should skip service control and the control * plane features, such as quota and billing, will not be available. @@ -117,8 +106,11 @@ public function setSelector($var) } /** - * If true, the selected method allows unregistered calls, e.g. calls - * that don't identify any user or application. + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. * * Generated from protobuf field bool allow_unregistered_calls = 2; * @return bool @@ -129,8 +121,11 @@ public function getAllowUnregisteredCalls() } /** - * If true, the selected method allows unregistered calls, e.g. calls - * that don't identify any user or application. + * Use this rule to configure unregistered calls for the service. Unregistered + * calls are calls that do not contain consumer project identity. + * (Example: calls that do not contain an API key). + * WARNING: By default, API methods do not allow unregistered calls, and each + * method call must be identified by a consumer project identity. * * Generated from protobuf field bool allow_unregistered_calls = 2; * @param bool $var