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

Commit 256f21b

Browse files
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: googleapis/googleapis@076f7e9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/27e4c88b4048e5f56508d4e1aa417d60a3380892
1 parent a9d1d41 commit 256f21b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/v1/text_to_speech_client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export class TextToSpeechClient {
267267
// -- Service calls --
268268
// -------------------
269269
listVoices(
270-
request: protos.google.cloud.texttospeech.v1.IListVoicesRequest,
270+
request?: protos.google.cloud.texttospeech.v1.IListVoicesRequest,
271271
options?: CallOptions
272272
): Promise<
273273
[
@@ -318,7 +318,7 @@ export class TextToSpeechClient {
318318
* const [response] = await client.listVoices(request);
319319
*/
320320
listVoices(
321-
request: protos.google.cloud.texttospeech.v1.IListVoicesRequest,
321+
request?: protos.google.cloud.texttospeech.v1.IListVoicesRequest,
322322
optionsOrCallback?:
323323
| CallOptions
324324
| Callback<
@@ -353,7 +353,7 @@ export class TextToSpeechClient {
353353
return this.innerApiCalls.listVoices(request, options, callback);
354354
}
355355
synthesizeSpeech(
356-
request: protos.google.cloud.texttospeech.v1.ISynthesizeSpeechRequest,
356+
request?: protos.google.cloud.texttospeech.v1.ISynthesizeSpeechRequest,
357357
options?: CallOptions
358358
): Promise<
359359
[
@@ -406,7 +406,7 @@ export class TextToSpeechClient {
406406
* const [response] = await client.synthesizeSpeech(request);
407407
*/
408408
synthesizeSpeech(
409-
request: protos.google.cloud.texttospeech.v1.ISynthesizeSpeechRequest,
409+
request?: protos.google.cloud.texttospeech.v1.ISynthesizeSpeechRequest,
410410
optionsOrCallback?:
411411
| CallOptions
412412
| Callback<

src/v1beta1/text_to_speech_client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export class TextToSpeechClient {
267267
// -- Service calls --
268268
// -------------------
269269
listVoices(
270-
request: protos.google.cloud.texttospeech.v1beta1.IListVoicesRequest,
270+
request?: protos.google.cloud.texttospeech.v1beta1.IListVoicesRequest,
271271
options?: CallOptions
272272
): Promise<
273273
[
@@ -323,7 +323,7 @@ export class TextToSpeechClient {
323323
* const [response] = await client.listVoices(request);
324324
*/
325325
listVoices(
326-
request: protos.google.cloud.texttospeech.v1beta1.IListVoicesRequest,
326+
request?: protos.google.cloud.texttospeech.v1beta1.IListVoicesRequest,
327327
optionsOrCallback?:
328328
| CallOptions
329329
| Callback<
@@ -360,7 +360,7 @@ export class TextToSpeechClient {
360360
return this.innerApiCalls.listVoices(request, options, callback);
361361
}
362362
synthesizeSpeech(
363-
request: protos.google.cloud.texttospeech.v1beta1.ISynthesizeSpeechRequest,
363+
request?: protos.google.cloud.texttospeech.v1beta1.ISynthesizeSpeechRequest,
364364
options?: CallOptions
365365
): Promise<
366366
[
@@ -418,7 +418,7 @@ export class TextToSpeechClient {
418418
* const [response] = await client.synthesizeSpeech(request);
419419
*/
420420
synthesizeSpeech(
421-
request: protos.google.cloud.texttospeech.v1beta1.ISynthesizeSpeechRequest,
421+
request?: protos.google.cloud.texttospeech.v1beta1.ISynthesizeSpeechRequest,
422422
optionsOrCallback?:
423423
| CallOptions
424424
| Callback<

0 commit comments

Comments
 (0)