Skip to content

Commit 5b85137

Browse files
Google APIscopybara-github
authored andcommitted
fix: migrate automl/v1beta1 to grpc_service_config
PiperOrigin-RevId: 317760971
1 parent dd25bfd commit 5b85137

2 files changed

Lines changed: 3 additions & 141 deletions

File tree

google/cloud/automl/v1beta1/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ java_gapic_library(
9292
name = "automl_java_gapic",
9393
src = ":automl_proto_with_info",
9494
gapic_yaml = "automl_gapic.yaml",
95+
grpc_service_config = "automl_grpc_service_config.json",
9596
package = "google.cloud.automl.v1beta1",
9697
service_yaml = "automl_v1beta1.yaml",
9798
test_deps = [
@@ -226,6 +227,7 @@ py_gapic_library(
226227
name = "automl_py_gapic",
227228
src = ":automl_proto_with_info",
228229
gapic_yaml = "automl_gapic.yaml",
230+
grpc_service_config = "automl_grpc_service_config.json",
229231
package = "google.cloud.automl.v1beta1",
230232
service_yaml = "automl_v1beta1.yaml",
231233
deps = [
@@ -270,6 +272,7 @@ php_gapic_library(
270272
name = "automl_php_gapic",
271273
src = ":automl_proto_with_info",
272274
gapic_yaml = "automl_gapic.yaml",
275+
grpc_service_config = "automl_grpc_service_config.json",
273276
package = "google.cloud.automl.v1beta1",
274277
service_yaml = "automl_v1beta1.yaml",
275278
deps = [

google/cloud/automl/v1beta1/automl_gapic.yaml

Lines changed: 0 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -21,145 +21,4 @@ language_settings:
2121
interfaces:
2222
# The fully qualified name of the API interface.
2323
- name: google.cloud.automl.v1beta1.PredictionService
24-
# Definition for retry/backoff parameters.
25-
retry_params_def:
26-
- name: default
27-
initial_retry_delay_millis: 100
28-
retry_delay_multiplier: 1.3
29-
max_retry_delay_millis: 60000
30-
initial_rpc_timeout_millis: 60000
31-
rpc_timeout_multiplier: 1
32-
max_rpc_timeout_millis: 60000
33-
total_timeout_millis: 600000
34-
# A list of method configurations.
35-
# Common properties:
36-
#
37-
# name - The simple name of the method.
38-
#
39-
# flattening - Specifies the configuration for parameter flattening.
40-
# Describes the parameter groups for which a generator should produce method
41-
# overloads which allow a client to directly pass request message fields as
42-
# method parameters. This information may or may not be used, depending on
43-
# the target language.
44-
# Consists of groups, which each represent a list of parameters to be
45-
# flattened. Each parameter listed must be a field of the request message.
46-
#
47-
# required_fields - Fields that are always required for a request to be
48-
# valid.
49-
#
50-
# resource_name_treatment - An enum that specifies how to treat the resource
51-
# name formats defined in the field_name_patterns and
52-
# response_field_name_patterns fields.
53-
# UNSET: default value
54-
# NONE: the collection configs will not be used by the generated code.
55-
# VALIDATE: string fields will be validated by the client against the
56-
# specified resource name formats.
57-
# STATIC_TYPES: the client will use generated types for resource names.
58-
#
59-
# page_streaming - Specifies the configuration for paging.
60-
# Describes information for generating a method which transforms a paging
61-
# list RPC into a stream of resources.
62-
# Consists of a request and a response.
63-
# The request specifies request information of the list method. It defines
64-
# which fields match the paging pattern in the request. The request consists
65-
# of a page_size_field and a token_field. The page_size_field is the name of
66-
# the optional field specifying the maximum number of elements to be
67-
# returned in the response. The token_field is the name of the field in the
68-
# request containing the page token.
69-
# The response specifies response information of the list method. It defines
70-
# which fields match the paging pattern in the response. The response
71-
# consists of a token_field and a resources_field. The token_field is the
72-
# name of the field in the response containing the next page token. The
73-
# resources_field is the name of the field in the response containing the
74-
# list of resources belonging to the page.
75-
#
76-
# retry_codes_name - Specifies the configuration for retryable codes. The
77-
# name must be defined in interfaces.retry_codes_def.
78-
#
79-
# retry_params_name - Specifies the configuration for retry/backoff
80-
# parameters. The name must be defined in interfaces.retry_params_def.
81-
#
82-
# field_name_patterns - Maps the field name of the request type to
83-
# entity_name of interfaces.collections.
84-
# Specifies the string pattern that the field must follow.
85-
#
86-
# timeout_millis - Specifies the default timeout for a non-retrying call. If
87-
# the call is retrying, refer to retry_params_name instead.
88-
methods:
89-
- name: Predict
90-
retry_codes_name: non_idempotent
91-
retry_params_name: default
92-
- name: BatchPredict
93-
retry_codes_name: non_idempotent
94-
retry_params_name: default
95-
# The fully qualified name of the API interface.
9624
- name: google.cloud.automl.v1beta1.AutoMl
97-
# A list of method configurations.
98-
# Common properties:
99-
#
100-
# name - The simple name of the method.
101-
#
102-
# flattening - Specifies the configuration for parameter flattening.
103-
# Describes the parameter groups for which a generator should produce method
104-
# overloads which allow a client to directly pass request message fields as
105-
# method parameters. This information may or may not be used, depending on
106-
# the target language.
107-
# Consists of groups, which each represent a list of parameters to be
108-
# flattened. Each parameter listed must be a field of the request message.
109-
#
110-
# required_fields - Fields that are always required for a request to be
111-
# valid.
112-
#
113-
# resource_name_treatment - An enum that specifies how to treat the resource
114-
# name formats defined in the field_name_patterns and
115-
# response_field_name_patterns fields.
116-
# UNSET: default value
117-
# NONE: the collection configs will not be used by the generated code.
118-
# VALIDATE: string fields will be validated by the client against the
119-
# specified resource name formats.
120-
# STATIC_TYPES: the client will use generated types for resource names.
121-
#
122-
# page_streaming - Specifies the configuration for paging.
123-
# Describes information for generating a method which transforms a paging
124-
# list RPC into a stream of resources.
125-
# Consists of a request and a response.
126-
# The request specifies request information of the list method. It defines
127-
# which fields match the paging pattern in the request. The request consists
128-
# of a page_size_field and a token_field. The page_size_field is the name of
129-
# the optional field specifying the maximum number of elements to be
130-
# returned in the response. The token_field is the name of the field in the
131-
# request containing the page token.
132-
# The response specifies response information of the list method. It defines
133-
# which fields match the paging pattern in the response. The response
134-
# consists of a token_field and a resources_field. The token_field is the
135-
# name of the field in the response containing the next page token. The
136-
# resources_field is the name of the field in the response containing the
137-
# list of resources belonging to the page.
138-
#
139-
# retry_codes_name - Specifies the configuration for retryable codes. The
140-
# name must be defined in interfaces.retry_codes_def.
141-
#
142-
# retry_params_name - Specifies the configuration for retry/backoff
143-
# parameters. The name must be defined in interfaces.retry_params_def.
144-
#
145-
# field_name_patterns - Maps the field name of the request type to
146-
# entity_name of interfaces.collections.
147-
# Specifies the string pattern that the field must follow.
148-
#
149-
# timeout_millis - Specifies the default timeout for a non-retrying call. If
150-
# the call is retrying, refer to retry_params_name instead.
151-
methods:
152-
- name: DeleteDataset
153-
retry_codes_name: idempotent
154-
- name: ImportData
155-
retry_codes_name: non_idempotent
156-
- name: ExportData
157-
retry_codes_name: non_idempotent
158-
- name: DeleteModel
159-
retry_codes_name: idempotent
160-
- name: ExportModel
161-
retry_codes_name: non_idempotent
162-
- name: ExportEvaluatedExamples
163-
retry_codes_name: non_idempotent
164-
- name: ListModelEvaluations
165-
retry_codes_name: non_idempotent

0 commit comments

Comments
 (0)