From 256f21bada718586549f07327be2509c79da3912 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 23 Jun 2021 15:42:30 +0000 Subject: [PATCH] fix: make request optional in all cases (#525) ... 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/text_to_speech_client.ts | 8 ++++---- src/v1beta1/text_to_speech_client.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/v1/text_to_speech_client.ts b/src/v1/text_to_speech_client.ts index b7d655e6..81afe573 100644 --- a/src/v1/text_to_speech_client.ts +++ b/src/v1/text_to_speech_client.ts @@ -267,7 +267,7 @@ export class TextToSpeechClient { // -- Service calls -- // ------------------- listVoices( - request: protos.google.cloud.texttospeech.v1.IListVoicesRequest, + request?: protos.google.cloud.texttospeech.v1.IListVoicesRequest, options?: CallOptions ): Promise< [ @@ -318,7 +318,7 @@ export class TextToSpeechClient { * const [response] = await client.listVoices(request); */ listVoices( - request: protos.google.cloud.texttospeech.v1.IListVoicesRequest, + request?: protos.google.cloud.texttospeech.v1.IListVoicesRequest, optionsOrCallback?: | CallOptions | Callback< @@ -353,7 +353,7 @@ export class TextToSpeechClient { return this.innerApiCalls.listVoices(request, options, callback); } synthesizeSpeech( - request: protos.google.cloud.texttospeech.v1.ISynthesizeSpeechRequest, + request?: protos.google.cloud.texttospeech.v1.ISynthesizeSpeechRequest, options?: CallOptions ): Promise< [ @@ -406,7 +406,7 @@ export class TextToSpeechClient { * const [response] = await client.synthesizeSpeech(request); */ synthesizeSpeech( - request: protos.google.cloud.texttospeech.v1.ISynthesizeSpeechRequest, + request?: protos.google.cloud.texttospeech.v1.ISynthesizeSpeechRequest, optionsOrCallback?: | CallOptions | Callback< diff --git a/src/v1beta1/text_to_speech_client.ts b/src/v1beta1/text_to_speech_client.ts index 56094247..ef11f945 100644 --- a/src/v1beta1/text_to_speech_client.ts +++ b/src/v1beta1/text_to_speech_client.ts @@ -267,7 +267,7 @@ export class TextToSpeechClient { // -- Service calls -- // ------------------- listVoices( - request: protos.google.cloud.texttospeech.v1beta1.IListVoicesRequest, + request?: protos.google.cloud.texttospeech.v1beta1.IListVoicesRequest, options?: CallOptions ): Promise< [ @@ -323,7 +323,7 @@ export class TextToSpeechClient { * const [response] = await client.listVoices(request); */ listVoices( - request: protos.google.cloud.texttospeech.v1beta1.IListVoicesRequest, + request?: protos.google.cloud.texttospeech.v1beta1.IListVoicesRequest, optionsOrCallback?: | CallOptions | Callback< @@ -360,7 +360,7 @@ export class TextToSpeechClient { return this.innerApiCalls.listVoices(request, options, callback); } synthesizeSpeech( - request: protos.google.cloud.texttospeech.v1beta1.ISynthesizeSpeechRequest, + request?: protos.google.cloud.texttospeech.v1beta1.ISynthesizeSpeechRequest, options?: CallOptions ): Promise< [ @@ -418,7 +418,7 @@ export class TextToSpeechClient { * const [response] = await client.synthesizeSpeech(request); */ synthesizeSpeech( - request: protos.google.cloud.texttospeech.v1beta1.ISynthesizeSpeechRequest, + request?: protos.google.cloud.texttospeech.v1beta1.ISynthesizeSpeechRequest, optionsOrCallback?: | CallOptions | Callback<