Skip to content

Commit

Permalink
chore: enable gapic v2 and proto annotation for bigquery/storage/v1 API.
Browse files Browse the repository at this point in the history
committer: @xiaozhenliu-gg5
PiperOrigin-RevId: 310225059
  • Loading branch information
Google APIs authored and Copybara-Service committed May 6, 2020
1 parent 30cfca0 commit c08dcec
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 15 deletions.
84 changes: 84 additions & 0 deletions 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
16 changes: 1 addition & 15 deletions 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:
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit c08dcec

Please sign in to comment.