From c08dcec05ce1c181bcdbce59cabba36e0e541ff6 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 6 May 2020 14:13:20 -0700 Subject: [PATCH] chore: enable gapic v2 and proto annotation for bigquery/storage/v1 API. committer: @xiaozhenliu-gg5 PiperOrigin-RevId: 310225059 --- .../v1/bigquerystorage_gapic.legacy.yaml | 84 +++++++++++++++++++ .../storage/v1/bigquerystorage_gapic.yaml | 16 +--- 2 files changed, 85 insertions(+), 15 deletions(-) create mode 100644 google/cloud/bigquery/storage/v1/bigquerystorage_gapic.legacy.yaml diff --git a/google/cloud/bigquery/storage/v1/bigquerystorage_gapic.legacy.yaml b/google/cloud/bigquery/storage/v1/bigquerystorage_gapic.legacy.yaml new file mode 100644 index 0000000000000..3f7d04aa371b4 --- /dev/null +++ b/google/cloud/bigquery/storage/v1/bigquerystorage_gapic.legacy.yaml @@ -0,0 +1,84 @@ +type: com.google.api.codegen.ConfigProto +config_schema_version: 1.0.0 +# The settings of generated code in a specific language. +language_settings: + java: + package_name: com.google.cloud.bigquery.storage.v1 + interface_names: + google.cloud.bigquery.storage.v1.BigQueryRead: BaseBigQueryRead + python: + package_name: google.cloud.bigquery_storage_v1.gapic + go: + package_name: cloud.google.com/go/bigquery/storage/apiv1 + csharp: + package_name: Google.Cloud.BigQuery.Storage.V1 + ruby: + package_name: Google::Cloud::Bigquery::Storage::V1 + php: + package_name: Google\Cloud\BigQuery\Storage\V1 + nodejs: + package_name: storage.v1 +# A list of API interface configurations. +interfaces: +# The fully qualified name of the API interface. +- name: google.cloud.bigquery.storage.v1.BigQueryRead + collections: [] + # Definition for retryable codes. + retry_codes_def: + - name: idempotent + retry_codes: + - DEADLINE_EXCEEDED + - UNAVAILABLE + - name: unary_streaming + retry_codes: + - UNAVAILABLE + # 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: 20000 + rpc_timeout_multiplier: 1 + max_rpc_timeout_millis: 20000 + total_timeout_millis: 600000 + - name: create_read_session + initial_retry_delay_millis: 100 + retry_delay_multiplier: 1.3 + max_retry_delay_millis: 60000 + initial_rpc_timeout_millis: 120000 + rpc_timeout_multiplier: 1 + max_rpc_timeout_millis: 120000 + total_timeout_millis: 600000 + - name: read_rows + initial_retry_delay_millis: 100 + retry_delay_multiplier: 1.3 + max_retry_delay_millis: 60000 + initial_rpc_timeout_millis: 86400000 + rpc_timeout_multiplier: 1 + max_rpc_timeout_millis: 86400000 + total_timeout_millis: 86400000 + methods: + - name: CreateReadSession + flattening: + groups: + - parameters: + - parent + - read_session + - max_stream_count + retry_codes_name: idempotent + retry_params_name: create_read_session + timeout_millis: 60000 + - name: ReadRows + flattening: + groups: + - parameters: + - read_stream + - offset + retry_codes_name: unary_streaming + retry_params_name: read_rows + timeout_millis: 86400000 + - name: SplitReadStream + retry_codes_name: idempotent + retry_params_name: default + timeout_millis: 60000 diff --git a/google/cloud/bigquery/storage/v1/bigquerystorage_gapic.yaml b/google/cloud/bigquery/storage/v1/bigquerystorage_gapic.yaml index 3f7d04aa371b4..9162b1677779a 100644 --- a/google/cloud/bigquery/storage/v1/bigquerystorage_gapic.yaml +++ b/google/cloud/bigquery/storage/v1/bigquerystorage_gapic.yaml @@ -1,5 +1,5 @@ type: com.google.api.codegen.ConfigProto -config_schema_version: 1.0.0 +config_schema_version: 2.0.0 # The settings of generated code in a specific language. language_settings: java: @@ -22,7 +22,6 @@ language_settings: interfaces: # The fully qualified name of the API interface. - name: google.cloud.bigquery.storage.v1.BigQueryRead - collections: [] # Definition for retryable codes. retry_codes_def: - name: idempotent @@ -60,25 +59,12 @@ interfaces: total_timeout_millis: 86400000 methods: - name: CreateReadSession - flattening: - groups: - - parameters: - - parent - - read_session - - max_stream_count retry_codes_name: idempotent retry_params_name: create_read_session - timeout_millis: 60000 - name: ReadRows - flattening: - groups: - - parameters: - - read_stream - - offset retry_codes_name: unary_streaming retry_params_name: read_rows timeout_millis: 86400000 - name: SplitReadStream retry_codes_name: idempotent retry_params_name: default - timeout_millis: 60000