@googleapis/vision 1.5.2 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -1008,7 +1008,7 @@ export namespace vision_v1 {
1008
1008
  underExposedLikelihood?: string | null;
1009
1009
  }
1010
1010
  /**
1011
- * A face-specific landmark (for example, a face feature).
1011
+ * A face-specific landmark (for example, a face feature). Landmark positions may fall outside the bounds of the image if the face is near one or more edges of the image. Therefore it is NOT guaranteed that `0 <= x < width` or `0 <= y < height`.
1012
1012
  */
1013
1013
  export interface Schema$GoogleCloudVisionV1p1beta1FaceAnnotationLandmark {
1014
1014
  /**
@@ -1870,7 +1870,7 @@ export namespace vision_v1 {
1870
1870
  underExposedLikelihood?: string | null;
1871
1871
  }
1872
1872
  /**
1873
- * A face-specific landmark (for example, a face feature).
1873
+ * A face-specific landmark (for example, a face feature). Landmark positions may fall outside the bounds of the image if the face is near one or more edges of the image. Therefore it is NOT guaranteed that `0 <= x < width` or `0 <= y < height`.
1874
1874
  */
1875
1875
  export interface Schema$GoogleCloudVisionV1p2beta1FaceAnnotationLandmark {
1876
1876
  /**
@@ -2749,7 +2749,7 @@ export namespace vision_v1 {
2749
2749
  underExposedLikelihood?: string | null;
2750
2750
  }
2751
2751
  /**
2752
- * A face-specific landmark (for example, a face feature).
2752
+ * A face-specific landmark (for example, a face feature). Landmark positions may fall outside the bounds of the image if the face is near one or more edges of the image. Therefore it is NOT guaranteed that `0 <= x < width` or `0 <= y < height`.
2753
2753
  */
2754
2754
  export interface Schema$GoogleCloudVisionV1p3beta1FaceAnnotationLandmark {
2755
2755
  /**
@@ -3697,7 +3697,7 @@ export namespace vision_v1 {
3697
3697
  underExposedLikelihood?: string | null;
3698
3698
  }
3699
3699
  /**
3700
- * A face-specific landmark (for example, a face feature).
3700
+ * A face-specific landmark (for example, a face feature). Landmark positions may fall outside the bounds of the image if the face is near one or more edges of the image. Therefore it is NOT guaranteed that `0 <= x < width` or `0 <= y < height`.
3701
3701
  */
3702
3702
  export interface Schema$GoogleCloudVisionV1p4beta1FaceAnnotationLandmark {
3703
3703
  /**
@@ -4470,7 +4470,7 @@ export namespace vision_v1 {
4470
4470
  value?: string | null;
4471
4471
  }
4472
4472
  /**
4473
- * A face-specific landmark (for example, a face feature).
4473
+ * A face-specific landmark (for example, a face feature). Landmark positions may fall outside the bounds of the image if the face is near one or more edges of the image. Therefore it is NOT guaranteed that `0 <= x < width` or `0 <= y < height`.
4474
4474
  */
4475
4475
  export interface Schema$Landmark {
4476
4476
  /**
@@ -5193,11 +5193,11 @@ export namespace vision_v1 {
5193
5193
  annotate(
5194
5194
  params: Params$Resource$Files$Annotate,
5195
5195
  options: StreamMethodOptions
5196
- ): GaxiosPromise<Readable>;
5196
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5197
5197
  annotate(
5198
5198
  params?: Params$Resource$Files$Annotate,
5199
5199
  options?: MethodOptions
5200
- ): GaxiosPromise<Schema$BatchAnnotateFilesResponse>;
5200
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BatchAnnotateFilesResponse>>;
5201
5201
  annotate(
5202
5202
  params: Params$Resource$Files$Annotate,
5203
5203
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5232,8 +5232,8 @@ export namespace vision_v1 {
5232
5232
  | BodyResponseCallback<Readable>
5233
5233
  ):
5234
5234
  | void
5235
- | GaxiosPromise<Schema$BatchAnnotateFilesResponse>
5236
- | GaxiosPromise<Readable> {
5235
+ | Promise<GaxiosResponseWithHTTP2<Schema$BatchAnnotateFilesResponse>>
5236
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5237
5237
  let params = (paramsOrCallback || {}) as Params$Resource$Files$Annotate;
5238
5238
  let options = (optionsOrCallback || {}) as MethodOptions;
5239
5239
 
@@ -5284,11 +5284,11 @@ export namespace vision_v1 {
5284
5284
  asyncBatchAnnotate(
5285
5285
  params: Params$Resource$Files$Asyncbatchannotate,
5286
5286
  options: StreamMethodOptions
5287
- ): GaxiosPromise<Readable>;
5287
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5288
5288
  asyncBatchAnnotate(
5289
5289
  params?: Params$Resource$Files$Asyncbatchannotate,
5290
5290
  options?: MethodOptions
5291
- ): GaxiosPromise<Schema$Operation>;
5291
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5292
5292
  asyncBatchAnnotate(
5293
5293
  params: Params$Resource$Files$Asyncbatchannotate,
5294
5294
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5317,7 +5317,10 @@ export namespace vision_v1 {
5317
5317
  callback?:
5318
5318
  | BodyResponseCallback<Schema$Operation>
5319
5319
  | BodyResponseCallback<Readable>
5320
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
5320
+ ):
5321
+ | void
5322
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5323
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5321
5324
  let params = (paramsOrCallback ||
5322
5325
  {}) as Params$Resource$Files$Asyncbatchannotate;
5323
5326
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5393,11 +5396,11 @@ export namespace vision_v1 {
5393
5396
  annotate(
5394
5397
  params: Params$Resource$Images$Annotate,
5395
5398
  options: StreamMethodOptions
5396
- ): GaxiosPromise<Readable>;
5399
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5397
5400
  annotate(
5398
5401
  params?: Params$Resource$Images$Annotate,
5399
5402
  options?: MethodOptions
5400
- ): GaxiosPromise<Schema$BatchAnnotateImagesResponse>;
5403
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BatchAnnotateImagesResponse>>;
5401
5404
  annotate(
5402
5405
  params: Params$Resource$Images$Annotate,
5403
5406
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5432,8 +5435,8 @@ export namespace vision_v1 {
5432
5435
  | BodyResponseCallback<Readable>
5433
5436
  ):
5434
5437
  | void
5435
- | GaxiosPromise<Schema$BatchAnnotateImagesResponse>
5436
- | GaxiosPromise<Readable> {
5438
+ | Promise<GaxiosResponseWithHTTP2<Schema$BatchAnnotateImagesResponse>>
5439
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5437
5440
  let params = (paramsOrCallback || {}) as Params$Resource$Images$Annotate;
5438
5441
  let options = (optionsOrCallback || {}) as MethodOptions;
5439
5442
 
@@ -5487,11 +5490,11 @@ export namespace vision_v1 {
5487
5490
  asyncBatchAnnotate(
5488
5491
  params: Params$Resource$Images$Asyncbatchannotate,
5489
5492
  options: StreamMethodOptions
5490
- ): GaxiosPromise<Readable>;
5493
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5491
5494
  asyncBatchAnnotate(
5492
5495
  params?: Params$Resource$Images$Asyncbatchannotate,
5493
5496
  options?: MethodOptions
5494
- ): GaxiosPromise<Schema$Operation>;
5497
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5495
5498
  asyncBatchAnnotate(
5496
5499
  params: Params$Resource$Images$Asyncbatchannotate,
5497
5500
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5520,7 +5523,10 @@ export namespace vision_v1 {
5520
5523
  callback?:
5521
5524
  | BodyResponseCallback<Schema$Operation>
5522
5525
  | BodyResponseCallback<Readable>
5523
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
5526
+ ):
5527
+ | void
5528
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5529
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5524
5530
  let params = (paramsOrCallback ||
5525
5531
  {}) as Params$Resource$Images$Asyncbatchannotate;
5526
5532
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5605,11 +5611,11 @@ export namespace vision_v1 {
5605
5611
  get(
5606
5612
  params: Params$Resource$Locations$Operations$Get,
5607
5613
  options: StreamMethodOptions
5608
- ): GaxiosPromise<Readable>;
5614
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5609
5615
  get(
5610
5616
  params?: Params$Resource$Locations$Operations$Get,
5611
5617
  options?: MethodOptions
5612
- ): GaxiosPromise<Schema$Operation>;
5618
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5613
5619
  get(
5614
5620
  params: Params$Resource$Locations$Operations$Get,
5615
5621
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5638,7 +5644,10 @@ export namespace vision_v1 {
5638
5644
  callback?:
5639
5645
  | BodyResponseCallback<Schema$Operation>
5640
5646
  | BodyResponseCallback<Readable>
5641
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
5647
+ ):
5648
+ | void
5649
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5650
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5642
5651
  let params = (paramsOrCallback ||
5643
5652
  {}) as Params$Resource$Locations$Operations$Get;
5644
5653
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5695,7 +5704,7 @@ export namespace vision_v1 {
5695
5704
  }
5696
5705
 
5697
5706
  /**
5698
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
5707
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
5699
5708
  *
5700
5709
  * @param params - Parameters for request
5701
5710
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5705,11 +5714,11 @@ export namespace vision_v1 {
5705
5714
  cancel(
5706
5715
  params: Params$Resource$Operations$Cancel,
5707
5716
  options: StreamMethodOptions
5708
- ): GaxiosPromise<Readable>;
5717
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5709
5718
  cancel(
5710
5719
  params?: Params$Resource$Operations$Cancel,
5711
5720
  options?: MethodOptions
5712
- ): GaxiosPromise<Schema$Empty>;
5721
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
5713
5722
  cancel(
5714
5723
  params: Params$Resource$Operations$Cancel,
5715
5724
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5738,7 +5747,10 @@ export namespace vision_v1 {
5738
5747
  callback?:
5739
5748
  | BodyResponseCallback<Schema$Empty>
5740
5749
  | BodyResponseCallback<Readable>
5741
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
5750
+ ):
5751
+ | void
5752
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
5753
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5742
5754
  let params = (paramsOrCallback ||
5743
5755
  {}) as Params$Resource$Operations$Cancel;
5744
5756
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5790,11 +5802,11 @@ export namespace vision_v1 {
5790
5802
  delete(
5791
5803
  params: Params$Resource$Operations$Delete,
5792
5804
  options: StreamMethodOptions
5793
- ): GaxiosPromise<Readable>;
5805
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5794
5806
  delete(
5795
5807
  params?: Params$Resource$Operations$Delete,
5796
5808
  options?: MethodOptions
5797
- ): GaxiosPromise<Schema$Empty>;
5809
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
5798
5810
  delete(
5799
5811
  params: Params$Resource$Operations$Delete,
5800
5812
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5823,7 +5835,10 @@ export namespace vision_v1 {
5823
5835
  callback?:
5824
5836
  | BodyResponseCallback<Schema$Empty>
5825
5837
  | BodyResponseCallback<Readable>
5826
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
5838
+ ):
5839
+ | void
5840
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
5841
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5827
5842
  let params = (paramsOrCallback ||
5828
5843
  {}) as Params$Resource$Operations$Delete;
5829
5844
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -5875,11 +5890,11 @@ export namespace vision_v1 {
5875
5890
  get(
5876
5891
  params: Params$Resource$Operations$Get,
5877
5892
  options: StreamMethodOptions
5878
- ): GaxiosPromise<Readable>;
5893
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5879
5894
  get(
5880
5895
  params?: Params$Resource$Operations$Get,
5881
5896
  options?: MethodOptions
5882
- ): GaxiosPromise<Schema$Operation>;
5897
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5883
5898
  get(
5884
5899
  params: Params$Resource$Operations$Get,
5885
5900
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5908,7 +5923,10 @@ export namespace vision_v1 {
5908
5923
  callback?:
5909
5924
  | BodyResponseCallback<Schema$Operation>
5910
5925
  | BodyResponseCallback<Readable>
5911
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
5926
+ ):
5927
+ | void
5928
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5929
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5912
5930
  let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get;
5913
5931
  let options = (optionsOrCallback || {}) as MethodOptions;
5914
5932
 
@@ -5959,11 +5977,11 @@ export namespace vision_v1 {
5959
5977
  list(
5960
5978
  params: Params$Resource$Operations$List,
5961
5979
  options: StreamMethodOptions
5962
- ): GaxiosPromise<Readable>;
5980
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5963
5981
  list(
5964
5982
  params?: Params$Resource$Operations$List,
5965
5983
  options?: MethodOptions
5966
- ): GaxiosPromise<Schema$ListOperationsResponse>;
5984
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>;
5967
5985
  list(
5968
5986
  params: Params$Resource$Operations$List,
5969
5987
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -5996,8 +6014,8 @@ export namespace vision_v1 {
5996
6014
  | BodyResponseCallback<Readable>
5997
6015
  ):
5998
6016
  | void
5999
- | GaxiosPromise<Schema$ListOperationsResponse>
6000
- | GaxiosPromise<Readable> {
6017
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListOperationsResponse>>
6018
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6001
6019
  let params = (paramsOrCallback || {}) as Params$Resource$Operations$List;
6002
6020
  let options = (optionsOrCallback || {}) as MethodOptions;
6003
6021
 
@@ -6114,11 +6132,11 @@ export namespace vision_v1 {
6114
6132
  annotate(
6115
6133
  params: Params$Resource$Projects$Files$Annotate,
6116
6134
  options: StreamMethodOptions
6117
- ): GaxiosPromise<Readable>;
6135
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6118
6136
  annotate(
6119
6137
  params?: Params$Resource$Projects$Files$Annotate,
6120
6138
  options?: MethodOptions
6121
- ): GaxiosPromise<Schema$BatchAnnotateFilesResponse>;
6139
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BatchAnnotateFilesResponse>>;
6122
6140
  annotate(
6123
6141
  params: Params$Resource$Projects$Files$Annotate,
6124
6142
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6153,8 +6171,8 @@ export namespace vision_v1 {
6153
6171
  | BodyResponseCallback<Readable>
6154
6172
  ):
6155
6173
  | void
6156
- | GaxiosPromise<Schema$BatchAnnotateFilesResponse>
6157
- | GaxiosPromise<Readable> {
6174
+ | Promise<GaxiosResponseWithHTTP2<Schema$BatchAnnotateFilesResponse>>
6175
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6158
6176
  let params = (paramsOrCallback ||
6159
6177
  {}) as Params$Resource$Projects$Files$Annotate;
6160
6178
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6209,11 +6227,11 @@ export namespace vision_v1 {
6209
6227
  asyncBatchAnnotate(
6210
6228
  params: Params$Resource$Projects$Files$Asyncbatchannotate,
6211
6229
  options: StreamMethodOptions
6212
- ): GaxiosPromise<Readable>;
6230
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6213
6231
  asyncBatchAnnotate(
6214
6232
  params?: Params$Resource$Projects$Files$Asyncbatchannotate,
6215
6233
  options?: MethodOptions
6216
- ): GaxiosPromise<Schema$Operation>;
6234
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6217
6235
  asyncBatchAnnotate(
6218
6236
  params: Params$Resource$Projects$Files$Asyncbatchannotate,
6219
6237
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6242,7 +6260,10 @@ export namespace vision_v1 {
6242
6260
  callback?:
6243
6261
  | BodyResponseCallback<Schema$Operation>
6244
6262
  | BodyResponseCallback<Readable>
6245
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
6263
+ ):
6264
+ | void
6265
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
6266
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6246
6267
  let params = (paramsOrCallback ||
6247
6268
  {}) as Params$Resource$Projects$Files$Asyncbatchannotate;
6248
6269
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6329,11 +6350,11 @@ export namespace vision_v1 {
6329
6350
  annotate(
6330
6351
  params: Params$Resource$Projects$Images$Annotate,
6331
6352
  options: StreamMethodOptions
6332
- ): GaxiosPromise<Readable>;
6353
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6333
6354
  annotate(
6334
6355
  params?: Params$Resource$Projects$Images$Annotate,
6335
6356
  options?: MethodOptions
6336
- ): GaxiosPromise<Schema$BatchAnnotateImagesResponse>;
6357
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BatchAnnotateImagesResponse>>;
6337
6358
  annotate(
6338
6359
  params: Params$Resource$Projects$Images$Annotate,
6339
6360
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6368,8 +6389,8 @@ export namespace vision_v1 {
6368
6389
  | BodyResponseCallback<Readable>
6369
6390
  ):
6370
6391
  | void
6371
- | GaxiosPromise<Schema$BatchAnnotateImagesResponse>
6372
- | GaxiosPromise<Readable> {
6392
+ | Promise<GaxiosResponseWithHTTP2<Schema$BatchAnnotateImagesResponse>>
6393
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6373
6394
  let params = (paramsOrCallback ||
6374
6395
  {}) as Params$Resource$Projects$Images$Annotate;
6375
6396
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6424,11 +6445,11 @@ export namespace vision_v1 {
6424
6445
  asyncBatchAnnotate(
6425
6446
  params: Params$Resource$Projects$Images$Asyncbatchannotate,
6426
6447
  options: StreamMethodOptions
6427
- ): GaxiosPromise<Readable>;
6448
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6428
6449
  asyncBatchAnnotate(
6429
6450
  params?: Params$Resource$Projects$Images$Asyncbatchannotate,
6430
6451
  options?: MethodOptions
6431
- ): GaxiosPromise<Schema$Operation>;
6452
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6432
6453
  asyncBatchAnnotate(
6433
6454
  params: Params$Resource$Projects$Images$Asyncbatchannotate,
6434
6455
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6457,7 +6478,10 @@ export namespace vision_v1 {
6457
6478
  callback?:
6458
6479
  | BodyResponseCallback<Schema$Operation>
6459
6480
  | BodyResponseCallback<Readable>
6460
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
6481
+ ):
6482
+ | void
6483
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
6484
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6461
6485
  let params = (paramsOrCallback ||
6462
6486
  {}) as Params$Resource$Projects$Images$Asyncbatchannotate;
6463
6487
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6565,11 +6589,11 @@ export namespace vision_v1 {
6565
6589
  annotate(
6566
6590
  params: Params$Resource$Projects$Locations$Files$Annotate,
6567
6591
  options: StreamMethodOptions
6568
- ): GaxiosPromise<Readable>;
6592
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6569
6593
  annotate(
6570
6594
  params?: Params$Resource$Projects$Locations$Files$Annotate,
6571
6595
  options?: MethodOptions
6572
- ): GaxiosPromise<Schema$BatchAnnotateFilesResponse>;
6596
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BatchAnnotateFilesResponse>>;
6573
6597
  annotate(
6574
6598
  params: Params$Resource$Projects$Locations$Files$Annotate,
6575
6599
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6604,8 +6628,8 @@ export namespace vision_v1 {
6604
6628
  | BodyResponseCallback<Readable>
6605
6629
  ):
6606
6630
  | void
6607
- | GaxiosPromise<Schema$BatchAnnotateFilesResponse>
6608
- | GaxiosPromise<Readable> {
6631
+ | Promise<GaxiosResponseWithHTTP2<Schema$BatchAnnotateFilesResponse>>
6632
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6609
6633
  let params = (paramsOrCallback ||
6610
6634
  {}) as Params$Resource$Projects$Locations$Files$Annotate;
6611
6635
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6660,11 +6684,11 @@ export namespace vision_v1 {
6660
6684
  asyncBatchAnnotate(
6661
6685
  params: Params$Resource$Projects$Locations$Files$Asyncbatchannotate,
6662
6686
  options: StreamMethodOptions
6663
- ): GaxiosPromise<Readable>;
6687
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6664
6688
  asyncBatchAnnotate(
6665
6689
  params?: Params$Resource$Projects$Locations$Files$Asyncbatchannotate,
6666
6690
  options?: MethodOptions
6667
- ): GaxiosPromise<Schema$Operation>;
6691
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6668
6692
  asyncBatchAnnotate(
6669
6693
  params: Params$Resource$Projects$Locations$Files$Asyncbatchannotate,
6670
6694
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6693,7 +6717,10 @@ export namespace vision_v1 {
6693
6717
  callback?:
6694
6718
  | BodyResponseCallback<Schema$Operation>
6695
6719
  | BodyResponseCallback<Readable>
6696
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
6720
+ ):
6721
+ | void
6722
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
6723
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6697
6724
  let params = (paramsOrCallback ||
6698
6725
  {}) as Params$Resource$Projects$Locations$Files$Asyncbatchannotate;
6699
6726
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6781,11 +6808,11 @@ export namespace vision_v1 {
6781
6808
  annotate(
6782
6809
  params: Params$Resource$Projects$Locations$Images$Annotate,
6783
6810
  options: StreamMethodOptions
6784
- ): GaxiosPromise<Readable>;
6811
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6785
6812
  annotate(
6786
6813
  params?: Params$Resource$Projects$Locations$Images$Annotate,
6787
6814
  options?: MethodOptions
6788
- ): GaxiosPromise<Schema$BatchAnnotateImagesResponse>;
6815
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BatchAnnotateImagesResponse>>;
6789
6816
  annotate(
6790
6817
  params: Params$Resource$Projects$Locations$Images$Annotate,
6791
6818
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6820,8 +6847,8 @@ export namespace vision_v1 {
6820
6847
  | BodyResponseCallback<Readable>
6821
6848
  ):
6822
6849
  | void
6823
- | GaxiosPromise<Schema$BatchAnnotateImagesResponse>
6824
- | GaxiosPromise<Readable> {
6850
+ | Promise<GaxiosResponseWithHTTP2<Schema$BatchAnnotateImagesResponse>>
6851
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6825
6852
  let params = (paramsOrCallback ||
6826
6853
  {}) as Params$Resource$Projects$Locations$Images$Annotate;
6827
6854
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6876,11 +6903,11 @@ export namespace vision_v1 {
6876
6903
  asyncBatchAnnotate(
6877
6904
  params: Params$Resource$Projects$Locations$Images$Asyncbatchannotate,
6878
6905
  options: StreamMethodOptions
6879
- ): GaxiosPromise<Readable>;
6906
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6880
6907
  asyncBatchAnnotate(
6881
6908
  params?: Params$Resource$Projects$Locations$Images$Asyncbatchannotate,
6882
6909
  options?: MethodOptions
6883
- ): GaxiosPromise<Schema$Operation>;
6910
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6884
6911
  asyncBatchAnnotate(
6885
6912
  params: Params$Resource$Projects$Locations$Images$Asyncbatchannotate,
6886
6913
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -6909,7 +6936,10 @@ export namespace vision_v1 {
6909
6936
  callback?:
6910
6937
  | BodyResponseCallback<Schema$Operation>
6911
6938
  | BodyResponseCallback<Readable>
6912
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
6939
+ ):
6940
+ | void
6941
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
6942
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6913
6943
  let params = (paramsOrCallback ||
6914
6944
  {}) as Params$Resource$Projects$Locations$Images$Asyncbatchannotate;
6915
6945
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -6997,11 +7027,11 @@ export namespace vision_v1 {
6997
7027
  get(
6998
7028
  params: Params$Resource$Projects$Locations$Operations$Get,
6999
7029
  options: StreamMethodOptions
7000
- ): GaxiosPromise<Readable>;
7030
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7001
7031
  get(
7002
7032
  params?: Params$Resource$Projects$Locations$Operations$Get,
7003
7033
  options?: MethodOptions
7004
- ): GaxiosPromise<Schema$Operation>;
7034
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
7005
7035
  get(
7006
7036
  params: Params$Resource$Projects$Locations$Operations$Get,
7007
7037
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7030,7 +7060,10 @@ export namespace vision_v1 {
7030
7060
  callback?:
7031
7061
  | BodyResponseCallback<Schema$Operation>
7032
7062
  | BodyResponseCallback<Readable>
7033
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
7063
+ ):
7064
+ | void
7065
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
7066
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7034
7067
  let params = (paramsOrCallback ||
7035
7068
  {}) as Params$Resource$Projects$Locations$Operations$Get;
7036
7069
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7100,11 +7133,11 @@ export namespace vision_v1 {
7100
7133
  create(
7101
7134
  params: Params$Resource$Projects$Locations$Products$Create,
7102
7135
  options: StreamMethodOptions
7103
- ): GaxiosPromise<Readable>;
7136
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7104
7137
  create(
7105
7138
  params?: Params$Resource$Projects$Locations$Products$Create,
7106
7139
  options?: MethodOptions
7107
- ): GaxiosPromise<Schema$Product>;
7140
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Product>>;
7108
7141
  create(
7109
7142
  params: Params$Resource$Projects$Locations$Products$Create,
7110
7143
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7133,7 +7166,10 @@ export namespace vision_v1 {
7133
7166
  callback?:
7134
7167
  | BodyResponseCallback<Schema$Product>
7135
7168
  | BodyResponseCallback<Readable>
7136
- ): void | GaxiosPromise<Schema$Product> | GaxiosPromise<Readable> {
7169
+ ):
7170
+ | void
7171
+ | Promise<GaxiosResponseWithHTTP2<Schema$Product>>
7172
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7137
7173
  let params = (paramsOrCallback ||
7138
7174
  {}) as Params$Resource$Projects$Locations$Products$Create;
7139
7175
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7188,11 +7224,11 @@ export namespace vision_v1 {
7188
7224
  delete(
7189
7225
  params: Params$Resource$Projects$Locations$Products$Delete,
7190
7226
  options: StreamMethodOptions
7191
- ): GaxiosPromise<Readable>;
7227
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7192
7228
  delete(
7193
7229
  params?: Params$Resource$Projects$Locations$Products$Delete,
7194
7230
  options?: MethodOptions
7195
- ): GaxiosPromise<Schema$Empty>;
7231
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
7196
7232
  delete(
7197
7233
  params: Params$Resource$Projects$Locations$Products$Delete,
7198
7234
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7221,7 +7257,10 @@ export namespace vision_v1 {
7221
7257
  callback?:
7222
7258
  | BodyResponseCallback<Schema$Empty>
7223
7259
  | BodyResponseCallback<Readable>
7224
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
7260
+ ):
7261
+ | void
7262
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
7263
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7225
7264
  let params = (paramsOrCallback ||
7226
7265
  {}) as Params$Resource$Projects$Locations$Products$Delete;
7227
7266
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7273,11 +7312,11 @@ export namespace vision_v1 {
7273
7312
  get(
7274
7313
  params: Params$Resource$Projects$Locations$Products$Get,
7275
7314
  options: StreamMethodOptions
7276
- ): GaxiosPromise<Readable>;
7315
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7277
7316
  get(
7278
7317
  params?: Params$Resource$Projects$Locations$Products$Get,
7279
7318
  options?: MethodOptions
7280
- ): GaxiosPromise<Schema$Product>;
7319
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Product>>;
7281
7320
  get(
7282
7321
  params: Params$Resource$Projects$Locations$Products$Get,
7283
7322
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7306,7 +7345,10 @@ export namespace vision_v1 {
7306
7345
  callback?:
7307
7346
  | BodyResponseCallback<Schema$Product>
7308
7347
  | BodyResponseCallback<Readable>
7309
- ): void | GaxiosPromise<Schema$Product> | GaxiosPromise<Readable> {
7348
+ ):
7349
+ | void
7350
+ | Promise<GaxiosResponseWithHTTP2<Schema$Product>>
7351
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7310
7352
  let params = (paramsOrCallback ||
7311
7353
  {}) as Params$Resource$Projects$Locations$Products$Get;
7312
7354
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7358,11 +7400,11 @@ export namespace vision_v1 {
7358
7400
  list(
7359
7401
  params: Params$Resource$Projects$Locations$Products$List,
7360
7402
  options: StreamMethodOptions
7361
- ): GaxiosPromise<Readable>;
7403
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7362
7404
  list(
7363
7405
  params?: Params$Resource$Projects$Locations$Products$List,
7364
7406
  options?: MethodOptions
7365
- ): GaxiosPromise<Schema$ListProductsResponse>;
7407
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListProductsResponse>>;
7366
7408
  list(
7367
7409
  params: Params$Resource$Projects$Locations$Products$List,
7368
7410
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7395,8 +7437,8 @@ export namespace vision_v1 {
7395
7437
  | BodyResponseCallback<Readable>
7396
7438
  ):
7397
7439
  | void
7398
- | GaxiosPromise<Schema$ListProductsResponse>
7399
- | GaxiosPromise<Readable> {
7440
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListProductsResponse>>
7441
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7400
7442
  let params = (paramsOrCallback ||
7401
7443
  {}) as Params$Resource$Projects$Locations$Products$List;
7402
7444
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7451,11 +7493,11 @@ export namespace vision_v1 {
7451
7493
  patch(
7452
7494
  params: Params$Resource$Projects$Locations$Products$Patch,
7453
7495
  options: StreamMethodOptions
7454
- ): GaxiosPromise<Readable>;
7496
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7455
7497
  patch(
7456
7498
  params?: Params$Resource$Projects$Locations$Products$Patch,
7457
7499
  options?: MethodOptions
7458
- ): GaxiosPromise<Schema$Product>;
7500
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Product>>;
7459
7501
  patch(
7460
7502
  params: Params$Resource$Projects$Locations$Products$Patch,
7461
7503
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7484,7 +7526,10 @@ export namespace vision_v1 {
7484
7526
  callback?:
7485
7527
  | BodyResponseCallback<Schema$Product>
7486
7528
  | BodyResponseCallback<Readable>
7487
- ): void | GaxiosPromise<Schema$Product> | GaxiosPromise<Readable> {
7529
+ ):
7530
+ | void
7531
+ | Promise<GaxiosResponseWithHTTP2<Schema$Product>>
7532
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7488
7533
  let params = (paramsOrCallback ||
7489
7534
  {}) as Params$Resource$Projects$Locations$Products$Patch;
7490
7535
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7536,11 +7581,11 @@ export namespace vision_v1 {
7536
7581
  purge(
7537
7582
  params: Params$Resource$Projects$Locations$Products$Purge,
7538
7583
  options: StreamMethodOptions
7539
- ): GaxiosPromise<Readable>;
7584
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7540
7585
  purge(
7541
7586
  params?: Params$Resource$Projects$Locations$Products$Purge,
7542
7587
  options?: MethodOptions
7543
- ): GaxiosPromise<Schema$Operation>;
7588
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
7544
7589
  purge(
7545
7590
  params: Params$Resource$Projects$Locations$Products$Purge,
7546
7591
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7569,7 +7614,10 @@ export namespace vision_v1 {
7569
7614
  callback?:
7570
7615
  | BodyResponseCallback<Schema$Operation>
7571
7616
  | BodyResponseCallback<Readable>
7572
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
7617
+ ):
7618
+ | void
7619
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
7620
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7573
7621
  let params = (paramsOrCallback ||
7574
7622
  {}) as Params$Resource$Projects$Locations$Products$Purge;
7575
7623
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7705,11 +7753,11 @@ export namespace vision_v1 {
7705
7753
  create(
7706
7754
  params: Params$Resource$Projects$Locations$Products$Referenceimages$Create,
7707
7755
  options: StreamMethodOptions
7708
- ): GaxiosPromise<Readable>;
7756
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7709
7757
  create(
7710
7758
  params?: Params$Resource$Projects$Locations$Products$Referenceimages$Create,
7711
7759
  options?: MethodOptions
7712
- ): GaxiosPromise<Schema$ReferenceImage>;
7760
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ReferenceImage>>;
7713
7761
  create(
7714
7762
  params: Params$Resource$Projects$Locations$Products$Referenceimages$Create,
7715
7763
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7738,7 +7786,10 @@ export namespace vision_v1 {
7738
7786
  callback?:
7739
7787
  | BodyResponseCallback<Schema$ReferenceImage>
7740
7788
  | BodyResponseCallback<Readable>
7741
- ): void | GaxiosPromise<Schema$ReferenceImage> | GaxiosPromise<Readable> {
7789
+ ):
7790
+ | void
7791
+ | Promise<GaxiosResponseWithHTTP2<Schema$ReferenceImage>>
7792
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7742
7793
  let params = (paramsOrCallback ||
7743
7794
  {}) as Params$Resource$Projects$Locations$Products$Referenceimages$Create;
7744
7795
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7794,11 +7845,11 @@ export namespace vision_v1 {
7794
7845
  delete(
7795
7846
  params: Params$Resource$Projects$Locations$Products$Referenceimages$Delete,
7796
7847
  options: StreamMethodOptions
7797
- ): GaxiosPromise<Readable>;
7848
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7798
7849
  delete(
7799
7850
  params?: Params$Resource$Projects$Locations$Products$Referenceimages$Delete,
7800
7851
  options?: MethodOptions
7801
- ): GaxiosPromise<Schema$Empty>;
7852
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
7802
7853
  delete(
7803
7854
  params: Params$Resource$Projects$Locations$Products$Referenceimages$Delete,
7804
7855
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7827,7 +7878,10 @@ export namespace vision_v1 {
7827
7878
  callback?:
7828
7879
  | BodyResponseCallback<Schema$Empty>
7829
7880
  | BodyResponseCallback<Readable>
7830
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
7881
+ ):
7882
+ | void
7883
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
7884
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7831
7885
  let params = (paramsOrCallback ||
7832
7886
  {}) as Params$Resource$Projects$Locations$Products$Referenceimages$Delete;
7833
7887
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7880,11 +7934,11 @@ export namespace vision_v1 {
7880
7934
  get(
7881
7935
  params: Params$Resource$Projects$Locations$Products$Referenceimages$Get,
7882
7936
  options: StreamMethodOptions
7883
- ): GaxiosPromise<Readable>;
7937
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7884
7938
  get(
7885
7939
  params?: Params$Resource$Projects$Locations$Products$Referenceimages$Get,
7886
7940
  options?: MethodOptions
7887
- ): GaxiosPromise<Schema$ReferenceImage>;
7941
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ReferenceImage>>;
7888
7942
  get(
7889
7943
  params: Params$Resource$Projects$Locations$Products$Referenceimages$Get,
7890
7944
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -7913,7 +7967,10 @@ export namespace vision_v1 {
7913
7967
  callback?:
7914
7968
  | BodyResponseCallback<Schema$ReferenceImage>
7915
7969
  | BodyResponseCallback<Readable>
7916
- ): void | GaxiosPromise<Schema$ReferenceImage> | GaxiosPromise<Readable> {
7970
+ ):
7971
+ | void
7972
+ | Promise<GaxiosResponseWithHTTP2<Schema$ReferenceImage>>
7973
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
7917
7974
  let params = (paramsOrCallback ||
7918
7975
  {}) as Params$Resource$Projects$Locations$Products$Referenceimages$Get;
7919
7976
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -7966,11 +8023,11 @@ export namespace vision_v1 {
7966
8023
  list(
7967
8024
  params: Params$Resource$Projects$Locations$Products$Referenceimages$List,
7968
8025
  options: StreamMethodOptions
7969
- ): GaxiosPromise<Readable>;
8026
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
7970
8027
  list(
7971
8028
  params?: Params$Resource$Projects$Locations$Products$Referenceimages$List,
7972
8029
  options?: MethodOptions
7973
- ): GaxiosPromise<Schema$ListReferenceImagesResponse>;
8030
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListReferenceImagesResponse>>;
7974
8031
  list(
7975
8032
  params: Params$Resource$Projects$Locations$Products$Referenceimages$List,
7976
8033
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8005,8 +8062,8 @@ export namespace vision_v1 {
8005
8062
  | BodyResponseCallback<Readable>
8006
8063
  ):
8007
8064
  | void
8008
- | GaxiosPromise<Schema$ListReferenceImagesResponse>
8009
- | GaxiosPromise<Readable> {
8065
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListReferenceImagesResponse>>
8066
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8010
8067
  let params = (paramsOrCallback ||
8011
8068
  {}) as Params$Resource$Projects$Locations$Products$Referenceimages$List;
8012
8069
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8119,11 +8176,11 @@ export namespace vision_v1 {
8119
8176
  addProduct(
8120
8177
  params: Params$Resource$Projects$Locations$Productsets$Addproduct,
8121
8178
  options: StreamMethodOptions
8122
- ): GaxiosPromise<Readable>;
8179
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8123
8180
  addProduct(
8124
8181
  params?: Params$Resource$Projects$Locations$Productsets$Addproduct,
8125
8182
  options?: MethodOptions
8126
- ): GaxiosPromise<Schema$Empty>;
8183
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
8127
8184
  addProduct(
8128
8185
  params: Params$Resource$Projects$Locations$Productsets$Addproduct,
8129
8186
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8152,7 +8209,10 @@ export namespace vision_v1 {
8152
8209
  callback?:
8153
8210
  | BodyResponseCallback<Schema$Empty>
8154
8211
  | BodyResponseCallback<Readable>
8155
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
8212
+ ):
8213
+ | void
8214
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
8215
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8156
8216
  let params = (paramsOrCallback ||
8157
8217
  {}) as Params$Resource$Projects$Locations$Productsets$Addproduct;
8158
8218
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8208,11 +8268,11 @@ export namespace vision_v1 {
8208
8268
  create(
8209
8269
  params: Params$Resource$Projects$Locations$Productsets$Create,
8210
8270
  options: StreamMethodOptions
8211
- ): GaxiosPromise<Readable>;
8271
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8212
8272
  create(
8213
8273
  params?: Params$Resource$Projects$Locations$Productsets$Create,
8214
8274
  options?: MethodOptions
8215
- ): GaxiosPromise<Schema$ProductSet>;
8275
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ProductSet>>;
8216
8276
  create(
8217
8277
  params: Params$Resource$Projects$Locations$Productsets$Create,
8218
8278
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8241,7 +8301,10 @@ export namespace vision_v1 {
8241
8301
  callback?:
8242
8302
  | BodyResponseCallback<Schema$ProductSet>
8243
8303
  | BodyResponseCallback<Readable>
8244
- ): void | GaxiosPromise<Schema$ProductSet> | GaxiosPromise<Readable> {
8304
+ ):
8305
+ | void
8306
+ | Promise<GaxiosResponseWithHTTP2<Schema$ProductSet>>
8307
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8245
8308
  let params = (paramsOrCallback ||
8246
8309
  {}) as Params$Resource$Projects$Locations$Productsets$Create;
8247
8310
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8296,11 +8359,11 @@ export namespace vision_v1 {
8296
8359
  delete(
8297
8360
  params: Params$Resource$Projects$Locations$Productsets$Delete,
8298
8361
  options: StreamMethodOptions
8299
- ): GaxiosPromise<Readable>;
8362
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8300
8363
  delete(
8301
8364
  params?: Params$Resource$Projects$Locations$Productsets$Delete,
8302
8365
  options?: MethodOptions
8303
- ): GaxiosPromise<Schema$Empty>;
8366
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
8304
8367
  delete(
8305
8368
  params: Params$Resource$Projects$Locations$Productsets$Delete,
8306
8369
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8329,7 +8392,10 @@ export namespace vision_v1 {
8329
8392
  callback?:
8330
8393
  | BodyResponseCallback<Schema$Empty>
8331
8394
  | BodyResponseCallback<Readable>
8332
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
8395
+ ):
8396
+ | void
8397
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
8398
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8333
8399
  let params = (paramsOrCallback ||
8334
8400
  {}) as Params$Resource$Projects$Locations$Productsets$Delete;
8335
8401
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8381,11 +8447,11 @@ export namespace vision_v1 {
8381
8447
  get(
8382
8448
  params: Params$Resource$Projects$Locations$Productsets$Get,
8383
8449
  options: StreamMethodOptions
8384
- ): GaxiosPromise<Readable>;
8450
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8385
8451
  get(
8386
8452
  params?: Params$Resource$Projects$Locations$Productsets$Get,
8387
8453
  options?: MethodOptions
8388
- ): GaxiosPromise<Schema$ProductSet>;
8454
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ProductSet>>;
8389
8455
  get(
8390
8456
  params: Params$Resource$Projects$Locations$Productsets$Get,
8391
8457
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8414,7 +8480,10 @@ export namespace vision_v1 {
8414
8480
  callback?:
8415
8481
  | BodyResponseCallback<Schema$ProductSet>
8416
8482
  | BodyResponseCallback<Readable>
8417
- ): void | GaxiosPromise<Schema$ProductSet> | GaxiosPromise<Readable> {
8483
+ ):
8484
+ | void
8485
+ | Promise<GaxiosResponseWithHTTP2<Schema$ProductSet>>
8486
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8418
8487
  let params = (paramsOrCallback ||
8419
8488
  {}) as Params$Resource$Projects$Locations$Productsets$Get;
8420
8489
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8466,11 +8535,11 @@ export namespace vision_v1 {
8466
8535
  import(
8467
8536
  params: Params$Resource$Projects$Locations$Productsets$Import,
8468
8537
  options: StreamMethodOptions
8469
- ): GaxiosPromise<Readable>;
8538
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8470
8539
  import(
8471
8540
  params?: Params$Resource$Projects$Locations$Productsets$Import,
8472
8541
  options?: MethodOptions
8473
- ): GaxiosPromise<Schema$Operation>;
8542
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
8474
8543
  import(
8475
8544
  params: Params$Resource$Projects$Locations$Productsets$Import,
8476
8545
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8499,7 +8568,10 @@ export namespace vision_v1 {
8499
8568
  callback?:
8500
8569
  | BodyResponseCallback<Schema$Operation>
8501
8570
  | BodyResponseCallback<Readable>
8502
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
8571
+ ):
8572
+ | void
8573
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
8574
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8503
8575
  let params = (paramsOrCallback ||
8504
8576
  {}) as Params$Resource$Projects$Locations$Productsets$Import;
8505
8577
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8554,11 +8626,11 @@ export namespace vision_v1 {
8554
8626
  list(
8555
8627
  params: Params$Resource$Projects$Locations$Productsets$List,
8556
8628
  options: StreamMethodOptions
8557
- ): GaxiosPromise<Readable>;
8629
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8558
8630
  list(
8559
8631
  params?: Params$Resource$Projects$Locations$Productsets$List,
8560
8632
  options?: MethodOptions
8561
- ): GaxiosPromise<Schema$ListProductSetsResponse>;
8633
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ListProductSetsResponse>>;
8562
8634
  list(
8563
8635
  params: Params$Resource$Projects$Locations$Productsets$List,
8564
8636
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8591,8 +8663,8 @@ export namespace vision_v1 {
8591
8663
  | BodyResponseCallback<Readable>
8592
8664
  ):
8593
8665
  | void
8594
- | GaxiosPromise<Schema$ListProductSetsResponse>
8595
- | GaxiosPromise<Readable> {
8666
+ | Promise<GaxiosResponseWithHTTP2<Schema$ListProductSetsResponse>>
8667
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8596
8668
  let params = (paramsOrCallback ||
8597
8669
  {}) as Params$Resource$Projects$Locations$Productsets$List;
8598
8670
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8647,11 +8719,11 @@ export namespace vision_v1 {
8647
8719
  patch(
8648
8720
  params: Params$Resource$Projects$Locations$Productsets$Patch,
8649
8721
  options: StreamMethodOptions
8650
- ): GaxiosPromise<Readable>;
8722
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8651
8723
  patch(
8652
8724
  params?: Params$Resource$Projects$Locations$Productsets$Patch,
8653
8725
  options?: MethodOptions
8654
- ): GaxiosPromise<Schema$ProductSet>;
8726
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ProductSet>>;
8655
8727
  patch(
8656
8728
  params: Params$Resource$Projects$Locations$Productsets$Patch,
8657
8729
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8680,7 +8752,10 @@ export namespace vision_v1 {
8680
8752
  callback?:
8681
8753
  | BodyResponseCallback<Schema$ProductSet>
8682
8754
  | BodyResponseCallback<Readable>
8683
- ): void | GaxiosPromise<Schema$ProductSet> | GaxiosPromise<Readable> {
8755
+ ):
8756
+ | void
8757
+ | Promise<GaxiosResponseWithHTTP2<Schema$ProductSet>>
8758
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8684
8759
  let params = (paramsOrCallback ||
8685
8760
  {}) as Params$Resource$Projects$Locations$Productsets$Patch;
8686
8761
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8732,11 +8807,11 @@ export namespace vision_v1 {
8732
8807
  removeProduct(
8733
8808
  params: Params$Resource$Projects$Locations$Productsets$Removeproduct,
8734
8809
  options: StreamMethodOptions
8735
- ): GaxiosPromise<Readable>;
8810
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8736
8811
  removeProduct(
8737
8812
  params?: Params$Resource$Projects$Locations$Productsets$Removeproduct,
8738
8813
  options?: MethodOptions
8739
- ): GaxiosPromise<Schema$Empty>;
8814
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Empty>>;
8740
8815
  removeProduct(
8741
8816
  params: Params$Resource$Projects$Locations$Productsets$Removeproduct,
8742
8817
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8765,7 +8840,10 @@ export namespace vision_v1 {
8765
8840
  callback?:
8766
8841
  | BodyResponseCallback<Schema$Empty>
8767
8842
  | BodyResponseCallback<Readable>
8768
- ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
8843
+ ):
8844
+ | void
8845
+ | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
8846
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8769
8847
  let params = (paramsOrCallback ||
8770
8848
  {}) as Params$Resource$Projects$Locations$Productsets$Removeproduct;
8771
8849
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -8926,11 +9004,13 @@ export namespace vision_v1 {
8926
9004
  list(
8927
9005
  params: Params$Resource$Projects$Locations$Productsets$Products$List,
8928
9006
  options: StreamMethodOptions
8929
- ): GaxiosPromise<Readable>;
9007
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
8930
9008
  list(
8931
9009
  params?: Params$Resource$Projects$Locations$Productsets$Products$List,
8932
9010
  options?: MethodOptions
8933
- ): GaxiosPromise<Schema$ListProductsInProductSetResponse>;
9011
+ ): Promise<
9012
+ GaxiosResponseWithHTTP2<Schema$ListProductsInProductSetResponse>
9013
+ >;
8934
9014
  list(
8935
9015
  params: Params$Resource$Projects$Locations$Productsets$Products$List,
8936
9016
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -8965,8 +9045,10 @@ export namespace vision_v1 {
8965
9045
  | BodyResponseCallback<Readable>
8966
9046
  ):
8967
9047
  | void
8968
- | GaxiosPromise<Schema$ListProductsInProductSetResponse>
8969
- | GaxiosPromise<Readable> {
9048
+ | Promise<
9049
+ GaxiosResponseWithHTTP2<Schema$ListProductsInProductSetResponse>
9050
+ >
9051
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
8970
9052
  let params = (paramsOrCallback ||
8971
9053
  {}) as Params$Resource$Projects$Locations$Productsets$Products$List;
8972
9054
  let options = (optionsOrCallback || {}) as MethodOptions;
@@ -9047,11 +9129,11 @@ export namespace vision_v1 {
9047
9129
  get(
9048
9130
  params: Params$Resource$Projects$Operations$Get,
9049
9131
  options: StreamMethodOptions
9050
- ): GaxiosPromise<Readable>;
9132
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
9051
9133
  get(
9052
9134
  params?: Params$Resource$Projects$Operations$Get,
9053
9135
  options?: MethodOptions
9054
- ): GaxiosPromise<Schema$Operation>;
9136
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
9055
9137
  get(
9056
9138
  params: Params$Resource$Projects$Operations$Get,
9057
9139
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -9080,7 +9162,10 @@ export namespace vision_v1 {
9080
9162
  callback?:
9081
9163
  | BodyResponseCallback<Schema$Operation>
9082
9164
  | BodyResponseCallback<Readable>
9083
- ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
9165
+ ):
9166
+ | void
9167
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
9168
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
9084
9169
  let params = (paramsOrCallback ||
9085
9170
  {}) as Params$Resource$Projects$Operations$Get;
9086
9171
  let options = (optionsOrCallback || {}) as MethodOptions;