Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

fix: make request optional in all cases #525

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/v1/text_to_speech_client.ts
Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down
8 changes: 4 additions & 4 deletions src/v1beta1/text_to_speech_client.ts
Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down Expand Up @@ -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<
[
Expand Down Expand Up @@ -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<
Expand Down