From faa8c61c0a6792eb30e8451941bea289052c14c2 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 22 Jun 2021 20:22:40 +0000 Subject: [PATCH] fix: make request optional in all cases (#179) ... chore: update gapic-generator-ruby to the latest commit chore: release gapic-generator-typescript 1.5.0 Committer: @miraleung PiperOrigin-RevId: 380641501 Source-Link: https://github.com/googleapis/googleapis/commit/076f7e9f0b258bdb54338895d7251b202e8f0de3 Source-Link: https://github.com/googleapis/googleapis-gen/commit/27e4c88b4048e5f56508d4e1aa417d60a3380892 --- .../src/v1/big_query_read_client.ts | 8 ++++---- .../src/v1beta1/big_query_storage_client.ts | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/google-cloud-bigquery-storage/src/v1/big_query_read_client.ts b/packages/google-cloud-bigquery-storage/src/v1/big_query_read_client.ts index ceeb38bd118..6083fd59502 100644 --- a/packages/google-cloud-bigquery-storage/src/v1/big_query_read_client.ts +++ b/packages/google-cloud-bigquery-storage/src/v1/big_query_read_client.ts @@ -301,7 +301,7 @@ export class BigQueryReadClient { // -- Service calls -- // ------------------- createReadSession( - request: protos.google.cloud.bigquery.storage.v1.ICreateReadSessionRequest, + request?: protos.google.cloud.bigquery.storage.v1.ICreateReadSessionRequest, options?: CallOptions ): Promise< [ @@ -382,7 +382,7 @@ export class BigQueryReadClient { * const [response] = await client.createReadSession(request); */ createReadSession( - request: protos.google.cloud.bigquery.storage.v1.ICreateReadSessionRequest, + request?: protos.google.cloud.bigquery.storage.v1.ICreateReadSessionRequest, optionsOrCallback?: | CallOptions | Callback< @@ -428,7 +428,7 @@ export class BigQueryReadClient { return this.innerApiCalls.createReadSession(request, options, callback); } splitReadStream( - request: protos.google.cloud.bigquery.storage.v1.ISplitReadStreamRequest, + request?: protos.google.cloud.bigquery.storage.v1.ISplitReadStreamRequest, options?: CallOptions ): Promise< [ @@ -498,7 +498,7 @@ export class BigQueryReadClient { * const [response] = await client.splitReadStream(request); */ splitReadStream( - request: protos.google.cloud.bigquery.storage.v1.ISplitReadStreamRequest, + request?: protos.google.cloud.bigquery.storage.v1.ISplitReadStreamRequest, optionsOrCallback?: | CallOptions | Callback< diff --git a/packages/google-cloud-bigquery-storage/src/v1beta1/big_query_storage_client.ts b/packages/google-cloud-bigquery-storage/src/v1beta1/big_query_storage_client.ts index 125c0224618..3168b16488b 100644 --- a/packages/google-cloud-bigquery-storage/src/v1beta1/big_query_storage_client.ts +++ b/packages/google-cloud-bigquery-storage/src/v1beta1/big_query_storage_client.ts @@ -304,7 +304,7 @@ export class BigQueryStorageClient { // -- Service calls -- // ------------------- createReadSession( - request: protos.google.cloud.bigquery.storage.v1beta1.ICreateReadSessionRequest, + request?: protos.google.cloud.bigquery.storage.v1beta1.ICreateReadSessionRequest, options?: CallOptions ): Promise< [ @@ -387,7 +387,7 @@ export class BigQueryStorageClient { * const [response] = await client.createReadSession(request); */ createReadSession( - request: protos.google.cloud.bigquery.storage.v1beta1.ICreateReadSessionRequest, + request?: protos.google.cloud.bigquery.storage.v1beta1.ICreateReadSessionRequest, optionsOrCallback?: | CallOptions | Callback< @@ -434,7 +434,7 @@ export class BigQueryStorageClient { return this.innerApiCalls.createReadSession(request, options, callback); } batchCreateReadSessionStreams( - request: protos.google.cloud.bigquery.storage.v1beta1.IBatchCreateReadSessionStreamsRequest, + request?: protos.google.cloud.bigquery.storage.v1beta1.IBatchCreateReadSessionStreamsRequest, options?: CallOptions ): Promise< [ @@ -492,7 +492,7 @@ export class BigQueryStorageClient { * const [response] = await client.batchCreateReadSessionStreams(request); */ batchCreateReadSessionStreams( - request: protos.google.cloud.bigquery.storage.v1beta1.IBatchCreateReadSessionStreamsRequest, + request?: protos.google.cloud.bigquery.storage.v1beta1.IBatchCreateReadSessionStreamsRequest, optionsOrCallback?: | CallOptions | Callback< @@ -542,7 +542,7 @@ export class BigQueryStorageClient { ); } finalizeStream( - request: protos.google.cloud.bigquery.storage.v1beta1.IFinalizeStreamRequest, + request?: protos.google.cloud.bigquery.storage.v1beta1.IFinalizeStreamRequest, options?: CallOptions ): Promise< [ @@ -606,7 +606,7 @@ export class BigQueryStorageClient { * const [response] = await client.finalizeStream(request); */ finalizeStream( - request: protos.google.cloud.bigquery.storage.v1beta1.IFinalizeStreamRequest, + request?: protos.google.cloud.bigquery.storage.v1beta1.IFinalizeStreamRequest, optionsOrCallback?: | CallOptions | Callback< @@ -652,7 +652,7 @@ export class BigQueryStorageClient { return this.innerApiCalls.finalizeStream(request, options, callback); } splitReadStream( - request: protos.google.cloud.bigquery.storage.v1beta1.ISplitReadStreamRequest, + request?: protos.google.cloud.bigquery.storage.v1beta1.ISplitReadStreamRequest, options?: CallOptions ): Promise< [ @@ -723,7 +723,7 @@ export class BigQueryStorageClient { * const [response] = await client.splitReadStream(request); */ splitReadStream( - request: protos.google.cloud.bigquery.storage.v1beta1.ISplitReadStreamRequest, + request?: protos.google.cloud.bigquery.storage.v1beta1.ISplitReadStreamRequest, optionsOrCallback?: | CallOptions | Callback<