diff --git a/packages/google-cloud-texttospeech/src/v1/text_to_speech_client.ts b/packages/google-cloud-texttospeech/src/v1/text_to_speech_client.ts index b7d655e633b..81afe573f0d 100644 --- a/packages/google-cloud-texttospeech/src/v1/text_to_speech_client.ts +++ b/packages/google-cloud-texttospeech/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/packages/google-cloud-texttospeech/src/v1beta1/text_to_speech_client.ts b/packages/google-cloud-texttospeech/src/v1beta1/text_to_speech_client.ts index 56094247afa..ef11f945c59 100644 --- a/packages/google-cloud-texttospeech/src/v1beta1/text_to_speech_client.ts +++ b/packages/google-cloud-texttospeech/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<