From 5b85137bf6fb01dcf8a949a6a04eee6ed0c22bec Mon Sep 17 00:00:00 2001 From: Google APIs Date: Mon, 22 Jun 2020 16:41:36 -0700 Subject: [PATCH] fix: migrate automl/v1beta1 to grpc_service_config PiperOrigin-RevId: 317760971 --- google/cloud/automl/v1beta1/BUILD.bazel | 3 + google/cloud/automl/v1beta1/automl_gapic.yaml | 141 ------------------ 2 files changed, 3 insertions(+), 141 deletions(-) diff --git a/google/cloud/automl/v1beta1/BUILD.bazel b/google/cloud/automl/v1beta1/BUILD.bazel index a1cbcb2b..19c9dec6 100644 --- a/google/cloud/automl/v1beta1/BUILD.bazel +++ b/google/cloud/automl/v1beta1/BUILD.bazel @@ -92,6 +92,7 @@ java_gapic_library( name = "automl_java_gapic", src = ":automl_proto_with_info", gapic_yaml = "automl_gapic.yaml", + grpc_service_config = "automl_grpc_service_config.json", package = "google.cloud.automl.v1beta1", service_yaml = "automl_v1beta1.yaml", test_deps = [ @@ -226,6 +227,7 @@ py_gapic_library( name = "automl_py_gapic", src = ":automl_proto_with_info", gapic_yaml = "automl_gapic.yaml", + grpc_service_config = "automl_grpc_service_config.json", package = "google.cloud.automl.v1beta1", service_yaml = "automl_v1beta1.yaml", deps = [ @@ -270,6 +272,7 @@ php_gapic_library( name = "automl_php_gapic", src = ":automl_proto_with_info", gapic_yaml = "automl_gapic.yaml", + grpc_service_config = "automl_grpc_service_config.json", package = "google.cloud.automl.v1beta1", service_yaml = "automl_v1beta1.yaml", deps = [ diff --git a/google/cloud/automl/v1beta1/automl_gapic.yaml b/google/cloud/automl/v1beta1/automl_gapic.yaml index 90d99c48..bebc0b3b 100644 --- a/google/cloud/automl/v1beta1/automl_gapic.yaml +++ b/google/cloud/automl/v1beta1/automl_gapic.yaml @@ -21,145 +21,4 @@ language_settings: interfaces: # The fully qualified name of the API interface. - name: google.cloud.automl.v1beta1.PredictionService - # Definition for retry/backoff parameters. - retry_params_def: - - name: default - initial_retry_delay_millis: 100 - retry_delay_multiplier: 1.3 - max_retry_delay_millis: 60000 - initial_rpc_timeout_millis: 60000 - rpc_timeout_multiplier: 1 - max_rpc_timeout_millis: 60000 - total_timeout_millis: 600000 - # A list of method configurations. - # Common properties: - # - # name - The simple name of the method. - # - # flattening - Specifies the configuration for parameter flattening. - # Describes the parameter groups for which a generator should produce method - # overloads which allow a client to directly pass request message fields as - # method parameters. This information may or may not be used, depending on - # the target language. - # Consists of groups, which each represent a list of parameters to be - # flattened. Each parameter listed must be a field of the request message. - # - # required_fields - Fields that are always required for a request to be - # valid. - # - # resource_name_treatment - An enum that specifies how to treat the resource - # name formats defined in the field_name_patterns and - # response_field_name_patterns fields. - # UNSET: default value - # NONE: the collection configs will not be used by the generated code. - # VALIDATE: string fields will be validated by the client against the - # specified resource name formats. - # STATIC_TYPES: the client will use generated types for resource names. - # - # page_streaming - Specifies the configuration for paging. - # Describes information for generating a method which transforms a paging - # list RPC into a stream of resources. - # Consists of a request and a response. - # The request specifies request information of the list method. It defines - # which fields match the paging pattern in the request. The request consists - # of a page_size_field and a token_field. The page_size_field is the name of - # the optional field specifying the maximum number of elements to be - # returned in the response. The token_field is the name of the field in the - # request containing the page token. - # The response specifies response information of the list method. It defines - # which fields match the paging pattern in the response. The response - # consists of a token_field and a resources_field. The token_field is the - # name of the field in the response containing the next page token. The - # resources_field is the name of the field in the response containing the - # list of resources belonging to the page. - # - # retry_codes_name - Specifies the configuration for retryable codes. The - # name must be defined in interfaces.retry_codes_def. - # - # retry_params_name - Specifies the configuration for retry/backoff - # parameters. The name must be defined in interfaces.retry_params_def. - # - # field_name_patterns - Maps the field name of the request type to - # entity_name of interfaces.collections. - # Specifies the string pattern that the field must follow. - # - # timeout_millis - Specifies the default timeout for a non-retrying call. If - # the call is retrying, refer to retry_params_name instead. - methods: - - name: Predict - retry_codes_name: non_idempotent - retry_params_name: default - - name: BatchPredict - retry_codes_name: non_idempotent - retry_params_name: default - # The fully qualified name of the API interface. - name: google.cloud.automl.v1beta1.AutoMl - # A list of method configurations. - # Common properties: - # - # name - The simple name of the method. - # - # flattening - Specifies the configuration for parameter flattening. - # Describes the parameter groups for which a generator should produce method - # overloads which allow a client to directly pass request message fields as - # method parameters. This information may or may not be used, depending on - # the target language. - # Consists of groups, which each represent a list of parameters to be - # flattened. Each parameter listed must be a field of the request message. - # - # required_fields - Fields that are always required for a request to be - # valid. - # - # resource_name_treatment - An enum that specifies how to treat the resource - # name formats defined in the field_name_patterns and - # response_field_name_patterns fields. - # UNSET: default value - # NONE: the collection configs will not be used by the generated code. - # VALIDATE: string fields will be validated by the client against the - # specified resource name formats. - # STATIC_TYPES: the client will use generated types for resource names. - # - # page_streaming - Specifies the configuration for paging. - # Describes information for generating a method which transforms a paging - # list RPC into a stream of resources. - # Consists of a request and a response. - # The request specifies request information of the list method. It defines - # which fields match the paging pattern in the request. The request consists - # of a page_size_field and a token_field. The page_size_field is the name of - # the optional field specifying the maximum number of elements to be - # returned in the response. The token_field is the name of the field in the - # request containing the page token. - # The response specifies response information of the list method. It defines - # which fields match the paging pattern in the response. The response - # consists of a token_field and a resources_field. The token_field is the - # name of the field in the response containing the next page token. The - # resources_field is the name of the field in the response containing the - # list of resources belonging to the page. - # - # retry_codes_name - Specifies the configuration for retryable codes. The - # name must be defined in interfaces.retry_codes_def. - # - # retry_params_name - Specifies the configuration for retry/backoff - # parameters. The name must be defined in interfaces.retry_params_def. - # - # field_name_patterns - Maps the field name of the request type to - # entity_name of interfaces.collections. - # Specifies the string pattern that the field must follow. - # - # timeout_millis - Specifies the default timeout for a non-retrying call. If - # the call is retrying, refer to retry_params_name instead. - methods: - - name: DeleteDataset - retry_codes_name: idempotent - - name: ImportData - retry_codes_name: non_idempotent - - name: ExportData - retry_codes_name: non_idempotent - - name: DeleteModel - retry_codes_name: idempotent - - name: ExportModel - retry_codes_name: non_idempotent - - name: ExportEvaluatedExamples - retry_codes_name: non_idempotent - - name: ListModelEvaluations - retry_codes_name: non_idempotent