Skip to content

Commit

Permalink
fix: make request optional in all cases (#917)
Browse files Browse the repository at this point in the history
... 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: googleapis/googleapis-gen@27e4c88
  • Loading branch information
gcf-owl-bot[bot] authored Jun 22, 2021
1 parent eef618e commit 0196bb5
Show file tree
Hide file tree
Showing 8 changed files with 138 additions and 138 deletions.
16 changes: 8 additions & 8 deletions packages/google-cloud-vision/src/v1/image_annotator_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export class ImageAnnotatorClient {
// -- Service calls --
// -------------------
batchAnnotateImages(
request: protos.google.cloud.vision.v1.IBatchAnnotateImagesRequest,
request?: protos.google.cloud.vision.v1.IBatchAnnotateImagesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -407,7 +407,7 @@ export class ImageAnnotatorClient {
* const [response] = await client.batchAnnotateImages(request);
*/
batchAnnotateImages(
request: protos.google.cloud.vision.v1.IBatchAnnotateImagesRequest,
request?: protos.google.cloud.vision.v1.IBatchAnnotateImagesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -450,7 +450,7 @@ export class ImageAnnotatorClient {
return this.innerApiCalls.batchAnnotateImages(request, options, callback);
}
batchAnnotateFiles(
request: protos.google.cloud.vision.v1.IBatchAnnotateFilesRequest,
request?: protos.google.cloud.vision.v1.IBatchAnnotateFilesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -518,7 +518,7 @@ export class ImageAnnotatorClient {
* const [response] = await client.batchAnnotateFiles(request);
*/
batchAnnotateFiles(
request: protos.google.cloud.vision.v1.IBatchAnnotateFilesRequest,
request?: protos.google.cloud.vision.v1.IBatchAnnotateFilesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -562,7 +562,7 @@ export class ImageAnnotatorClient {
}

asyncBatchAnnotateImages(
request: protos.google.cloud.vision.v1.IAsyncBatchAnnotateImagesRequest,
request?: protos.google.cloud.vision.v1.IAsyncBatchAnnotateImagesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -641,7 +641,7 @@ export class ImageAnnotatorClient {
* const [response] = await operation.promise();
*/
asyncBatchAnnotateImages(
request: protos.google.cloud.vision.v1.IAsyncBatchAnnotateImagesRequest,
request?: protos.google.cloud.vision.v1.IAsyncBatchAnnotateImagesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down Expand Up @@ -730,7 +730,7 @@ export class ImageAnnotatorClient {
>;
}
asyncBatchAnnotateFiles(
request: protos.google.cloud.vision.v1.IAsyncBatchAnnotateFilesRequest,
request?: protos.google.cloud.vision.v1.IAsyncBatchAnnotateFilesRequest,
options?: CallOptions
): Promise<
[
Expand Down Expand Up @@ -804,7 +804,7 @@ export class ImageAnnotatorClient {
* const [response] = await operation.promise();
*/
asyncBatchAnnotateFiles(
request: protos.google.cloud.vision.v1.IAsyncBatchAnnotateFilesRequest,
request?: protos.google.cloud.vision.v1.IAsyncBatchAnnotateFilesRequest,
optionsOrCallback?:
| CallOptions
| Callback<
Expand Down
Loading

0 comments on commit 0196bb5

Please sign in to comment.