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

Commit d301b79

Browse files
fix: make request optional in all cases (#917)
... 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 4174bb0 commit d301b79

File tree

8 files changed

+138
-138
lines changed

8 files changed

+138
-138
lines changed

src/v1/image_annotator_client.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export class ImageAnnotatorClient {
346346
// -- Service calls --
347347
// -------------------
348348
batchAnnotateImages(
349-
request: protos.google.cloud.vision.v1.IBatchAnnotateImagesRequest,
349+
request?: protos.google.cloud.vision.v1.IBatchAnnotateImagesRequest,
350350
options?: CallOptions
351351
): Promise<
352352
[
@@ -407,7 +407,7 @@ export class ImageAnnotatorClient {
407407
* const [response] = await client.batchAnnotateImages(request);
408408
*/
409409
batchAnnotateImages(
410-
request: protos.google.cloud.vision.v1.IBatchAnnotateImagesRequest,
410+
request?: protos.google.cloud.vision.v1.IBatchAnnotateImagesRequest,
411411
optionsOrCallback?:
412412
| CallOptions
413413
| Callback<
@@ -450,7 +450,7 @@ export class ImageAnnotatorClient {
450450
return this.innerApiCalls.batchAnnotateImages(request, options, callback);
451451
}
452452
batchAnnotateFiles(
453-
request: protos.google.cloud.vision.v1.IBatchAnnotateFilesRequest,
453+
request?: protos.google.cloud.vision.v1.IBatchAnnotateFilesRequest,
454454
options?: CallOptions
455455
): Promise<
456456
[
@@ -518,7 +518,7 @@ export class ImageAnnotatorClient {
518518
* const [response] = await client.batchAnnotateFiles(request);
519519
*/
520520
batchAnnotateFiles(
521-
request: protos.google.cloud.vision.v1.IBatchAnnotateFilesRequest,
521+
request?: protos.google.cloud.vision.v1.IBatchAnnotateFilesRequest,
522522
optionsOrCallback?:
523523
| CallOptions
524524
| Callback<
@@ -562,7 +562,7 @@ export class ImageAnnotatorClient {
562562
}
563563

564564
asyncBatchAnnotateImages(
565-
request: protos.google.cloud.vision.v1.IAsyncBatchAnnotateImagesRequest,
565+
request?: protos.google.cloud.vision.v1.IAsyncBatchAnnotateImagesRequest,
566566
options?: CallOptions
567567
): Promise<
568568
[
@@ -641,7 +641,7 @@ export class ImageAnnotatorClient {
641641
* const [response] = await operation.promise();
642642
*/
643643
asyncBatchAnnotateImages(
644-
request: protos.google.cloud.vision.v1.IAsyncBatchAnnotateImagesRequest,
644+
request?: protos.google.cloud.vision.v1.IAsyncBatchAnnotateImagesRequest,
645645
optionsOrCallback?:
646646
| CallOptions
647647
| Callback<
@@ -730,7 +730,7 @@ export class ImageAnnotatorClient {
730730
>;
731731
}
732732
asyncBatchAnnotateFiles(
733-
request: protos.google.cloud.vision.v1.IAsyncBatchAnnotateFilesRequest,
733+
request?: protos.google.cloud.vision.v1.IAsyncBatchAnnotateFilesRequest,
734734
options?: CallOptions
735735
): Promise<
736736
[
@@ -804,7 +804,7 @@ export class ImageAnnotatorClient {
804804
* const [response] = await operation.promise();
805805
*/
806806
asyncBatchAnnotateFiles(
807-
request: protos.google.cloud.vision.v1.IAsyncBatchAnnotateFilesRequest,
807+
request?: protos.google.cloud.vision.v1.IAsyncBatchAnnotateFilesRequest,
808808
optionsOrCallback?:
809809
| CallOptions
810810
| Callback<

0 commit comments

Comments
 (0)