@googlemaps/fleetengine-delivery 0.4.1 → 0.5.0
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/README.md +2 -2
- package/build/protos/protos.d.ts +15 -6
- package/build/protos/protos.js +339 -102
- package/build/protos/protos.json +64 -16
- package/build/src/v1/delivery_service_client.d.ts +97 -97
- package/build/src/v1/delivery_service_client.js +155 -203
- package/build/src/v1/delivery_service_client.js.map +1 -1
- package/package.json +4 -4
- package/CHANGELOG.md +0 -54
package/build/protos/protos.json
CHANGED
|
@@ -1565,7 +1565,10 @@
|
|
|
1565
1565
|
"rule": "repeated",
|
|
1566
1566
|
"type": "google.api.FieldBehavior",
|
|
1567
1567
|
"id": 1052,
|
|
1568
|
-
"extend": "google.protobuf.FieldOptions"
|
|
1568
|
+
"extend": "google.protobuf.FieldOptions",
|
|
1569
|
+
"options": {
|
|
1570
|
+
"packed": false
|
|
1571
|
+
}
|
|
1569
1572
|
},
|
|
1570
1573
|
"FieldBehavior": {
|
|
1571
1574
|
"values": {
|
|
@@ -1683,6 +1686,11 @@
|
|
|
1683
1686
|
"id": 1050,
|
|
1684
1687
|
"extend": "google.protobuf.ServiceOptions"
|
|
1685
1688
|
},
|
|
1689
|
+
"apiVersion": {
|
|
1690
|
+
"type": "string",
|
|
1691
|
+
"id": 525000001,
|
|
1692
|
+
"extend": "google.protobuf.ServiceOptions"
|
|
1693
|
+
},
|
|
1686
1694
|
"CommonLanguageSettings": {
|
|
1687
1695
|
"fields": {
|
|
1688
1696
|
"referenceDocsUri": {
|
|
@@ -1791,6 +1799,10 @@
|
|
|
1791
1799
|
"protoReferenceDocumentationUri": {
|
|
1792
1800
|
"type": "string",
|
|
1793
1801
|
"id": 110
|
|
1802
|
+
},
|
|
1803
|
+
"restReferenceDocumentationUri": {
|
|
1804
|
+
"type": "string",
|
|
1805
|
+
"id": 111
|
|
1794
1806
|
}
|
|
1795
1807
|
}
|
|
1796
1808
|
},
|
|
@@ -2079,6 +2091,7 @@
|
|
|
2079
2091
|
},
|
|
2080
2092
|
"nested": {
|
|
2081
2093
|
"FileDescriptorSet": {
|
|
2094
|
+
"edition": "proto2",
|
|
2082
2095
|
"fields": {
|
|
2083
2096
|
"file": {
|
|
2084
2097
|
"rule": "repeated",
|
|
@@ -2088,6 +2101,7 @@
|
|
|
2088
2101
|
}
|
|
2089
2102
|
},
|
|
2090
2103
|
"Edition": {
|
|
2104
|
+
"edition": "proto2",
|
|
2091
2105
|
"values": {
|
|
2092
2106
|
"EDITION_UNKNOWN": 0,
|
|
2093
2107
|
"EDITION_PROTO2": 998,
|
|
@@ -2103,6 +2117,7 @@
|
|
|
2103
2117
|
}
|
|
2104
2118
|
},
|
|
2105
2119
|
"FileDescriptorProto": {
|
|
2120
|
+
"edition": "proto2",
|
|
2106
2121
|
"fields": {
|
|
2107
2122
|
"name": {
|
|
2108
2123
|
"type": "string",
|
|
@@ -2120,18 +2135,12 @@
|
|
|
2120
2135
|
"publicDependency": {
|
|
2121
2136
|
"rule": "repeated",
|
|
2122
2137
|
"type": "int32",
|
|
2123
|
-
"id": 10
|
|
2124
|
-
"options": {
|
|
2125
|
-
"packed": false
|
|
2126
|
-
}
|
|
2138
|
+
"id": 10
|
|
2127
2139
|
},
|
|
2128
2140
|
"weakDependency": {
|
|
2129
2141
|
"rule": "repeated",
|
|
2130
2142
|
"type": "int32",
|
|
2131
|
-
"id": 11
|
|
2132
|
-
"options": {
|
|
2133
|
-
"packed": false
|
|
2134
|
-
}
|
|
2143
|
+
"id": 11
|
|
2135
2144
|
},
|
|
2136
2145
|
"messageType": {
|
|
2137
2146
|
"rule": "repeated",
|
|
@@ -2172,6 +2181,7 @@
|
|
|
2172
2181
|
}
|
|
2173
2182
|
},
|
|
2174
2183
|
"DescriptorProto": {
|
|
2184
|
+
"edition": "proto2",
|
|
2175
2185
|
"fields": {
|
|
2176
2186
|
"name": {
|
|
2177
2187
|
"type": "string",
|
|
@@ -2254,6 +2264,7 @@
|
|
|
2254
2264
|
}
|
|
2255
2265
|
},
|
|
2256
2266
|
"ExtensionRangeOptions": {
|
|
2267
|
+
"edition": "proto2",
|
|
2257
2268
|
"fields": {
|
|
2258
2269
|
"uninterpretedOption": {
|
|
2259
2270
|
"rule": "repeated",
|
|
@@ -2327,6 +2338,7 @@
|
|
|
2327
2338
|
}
|
|
2328
2339
|
},
|
|
2329
2340
|
"FieldDescriptorProto": {
|
|
2341
|
+
"edition": "proto2",
|
|
2330
2342
|
"fields": {
|
|
2331
2343
|
"name": {
|
|
2332
2344
|
"type": "string",
|
|
@@ -2406,6 +2418,7 @@
|
|
|
2406
2418
|
}
|
|
2407
2419
|
},
|
|
2408
2420
|
"OneofDescriptorProto": {
|
|
2421
|
+
"edition": "proto2",
|
|
2409
2422
|
"fields": {
|
|
2410
2423
|
"name": {
|
|
2411
2424
|
"type": "string",
|
|
@@ -2418,6 +2431,7 @@
|
|
|
2418
2431
|
}
|
|
2419
2432
|
},
|
|
2420
2433
|
"EnumDescriptorProto": {
|
|
2434
|
+
"edition": "proto2",
|
|
2421
2435
|
"fields": {
|
|
2422
2436
|
"name": {
|
|
2423
2437
|
"type": "string",
|
|
@@ -2459,6 +2473,7 @@
|
|
|
2459
2473
|
}
|
|
2460
2474
|
},
|
|
2461
2475
|
"EnumValueDescriptorProto": {
|
|
2476
|
+
"edition": "proto2",
|
|
2462
2477
|
"fields": {
|
|
2463
2478
|
"name": {
|
|
2464
2479
|
"type": "string",
|
|
@@ -2475,6 +2490,7 @@
|
|
|
2475
2490
|
}
|
|
2476
2491
|
},
|
|
2477
2492
|
"ServiceDescriptorProto": {
|
|
2493
|
+
"edition": "proto2",
|
|
2478
2494
|
"fields": {
|
|
2479
2495
|
"name": {
|
|
2480
2496
|
"type": "string",
|
|
@@ -2492,6 +2508,7 @@
|
|
|
2492
2508
|
}
|
|
2493
2509
|
},
|
|
2494
2510
|
"MethodDescriptorProto": {
|
|
2511
|
+
"edition": "proto2",
|
|
2495
2512
|
"fields": {
|
|
2496
2513
|
"name": {
|
|
2497
2514
|
"type": "string",
|
|
@@ -2526,6 +2543,7 @@
|
|
|
2526
2543
|
}
|
|
2527
2544
|
},
|
|
2528
2545
|
"FileOptions": {
|
|
2546
|
+
"edition": "proto2",
|
|
2529
2547
|
"fields": {
|
|
2530
2548
|
"javaPackage": {
|
|
2531
2549
|
"type": "string",
|
|
@@ -2667,6 +2685,7 @@
|
|
|
2667
2685
|
}
|
|
2668
2686
|
},
|
|
2669
2687
|
"MessageOptions": {
|
|
2688
|
+
"edition": "proto2",
|
|
2670
2689
|
"fields": {
|
|
2671
2690
|
"messageSetWireFormat": {
|
|
2672
2691
|
"type": "bool",
|
|
@@ -2740,6 +2759,7 @@
|
|
|
2740
2759
|
]
|
|
2741
2760
|
},
|
|
2742
2761
|
"FieldOptions": {
|
|
2762
|
+
"edition": "proto2",
|
|
2743
2763
|
"fields": {
|
|
2744
2764
|
"ctype": {
|
|
2745
2765
|
"type": "CType",
|
|
@@ -2801,10 +2821,7 @@
|
|
|
2801
2821
|
"targets": {
|
|
2802
2822
|
"rule": "repeated",
|
|
2803
2823
|
"type": "OptionTargetType",
|
|
2804
|
-
"id": 19
|
|
2805
|
-
"options": {
|
|
2806
|
-
"packed": false
|
|
2807
|
-
}
|
|
2824
|
+
"id": 19
|
|
2808
2825
|
},
|
|
2809
2826
|
"editionDefaults": {
|
|
2810
2827
|
"rule": "repeated",
|
|
@@ -2888,6 +2905,7 @@
|
|
|
2888
2905
|
}
|
|
2889
2906
|
},
|
|
2890
2907
|
"OneofOptions": {
|
|
2908
|
+
"edition": "proto2",
|
|
2891
2909
|
"fields": {
|
|
2892
2910
|
"features": {
|
|
2893
2911
|
"type": "FeatureSet",
|
|
@@ -2907,6 +2925,7 @@
|
|
|
2907
2925
|
]
|
|
2908
2926
|
},
|
|
2909
2927
|
"EnumOptions": {
|
|
2928
|
+
"edition": "proto2",
|
|
2910
2929
|
"fields": {
|
|
2911
2930
|
"allowAlias": {
|
|
2912
2931
|
"type": "bool",
|
|
@@ -2950,6 +2969,7 @@
|
|
|
2950
2969
|
]
|
|
2951
2970
|
},
|
|
2952
2971
|
"EnumValueOptions": {
|
|
2972
|
+
"edition": "proto2",
|
|
2953
2973
|
"fields": {
|
|
2954
2974
|
"deprecated": {
|
|
2955
2975
|
"type": "bool",
|
|
@@ -2983,6 +3003,7 @@
|
|
|
2983
3003
|
]
|
|
2984
3004
|
},
|
|
2985
3005
|
"ServiceOptions": {
|
|
3006
|
+
"edition": "proto2",
|
|
2986
3007
|
"fields": {
|
|
2987
3008
|
"features": {
|
|
2988
3009
|
"type": "FeatureSet",
|
|
@@ -3009,6 +3030,7 @@
|
|
|
3009
3030
|
]
|
|
3010
3031
|
},
|
|
3011
3032
|
"MethodOptions": {
|
|
3033
|
+
"edition": "proto2",
|
|
3012
3034
|
"fields": {
|
|
3013
3035
|
"deprecated": {
|
|
3014
3036
|
"type": "bool",
|
|
@@ -3051,6 +3073,7 @@
|
|
|
3051
3073
|
}
|
|
3052
3074
|
},
|
|
3053
3075
|
"UninterpretedOption": {
|
|
3076
|
+
"edition": "proto2",
|
|
3054
3077
|
"fields": {
|
|
3055
3078
|
"name": {
|
|
3056
3079
|
"rule": "repeated",
|
|
@@ -3100,6 +3123,7 @@
|
|
|
3100
3123
|
}
|
|
3101
3124
|
},
|
|
3102
3125
|
"FeatureSet": {
|
|
3126
|
+
"edition": "proto2",
|
|
3103
3127
|
"fields": {
|
|
3104
3128
|
"fieldPresence": {
|
|
3105
3129
|
"type": "FieldPresence",
|
|
@@ -3171,9 +3195,21 @@
|
|
|
3171
3195
|
1001,
|
|
3172
3196
|
1001
|
|
3173
3197
|
],
|
|
3198
|
+
[
|
|
3199
|
+
1002,
|
|
3200
|
+
1002
|
|
3201
|
+
],
|
|
3202
|
+
[
|
|
3203
|
+
9990,
|
|
3204
|
+
9990
|
|
3205
|
+
],
|
|
3174
3206
|
[
|
|
3175
3207
|
9995,
|
|
3176
3208
|
9999
|
|
3209
|
+
],
|
|
3210
|
+
[
|
|
3211
|
+
10000,
|
|
3212
|
+
10000
|
|
3177
3213
|
]
|
|
3178
3214
|
],
|
|
3179
3215
|
"reserved": [
|
|
@@ -3229,6 +3265,7 @@
|
|
|
3229
3265
|
}
|
|
3230
3266
|
},
|
|
3231
3267
|
"FeatureSetDefaults": {
|
|
3268
|
+
"edition": "proto2",
|
|
3232
3269
|
"fields": {
|
|
3233
3270
|
"defaults": {
|
|
3234
3271
|
"rule": "repeated",
|
|
@@ -3260,6 +3297,7 @@
|
|
|
3260
3297
|
}
|
|
3261
3298
|
},
|
|
3262
3299
|
"SourceCodeInfo": {
|
|
3300
|
+
"edition": "proto2",
|
|
3263
3301
|
"fields": {
|
|
3264
3302
|
"location": {
|
|
3265
3303
|
"rule": "repeated",
|
|
@@ -3273,12 +3311,18 @@
|
|
|
3273
3311
|
"path": {
|
|
3274
3312
|
"rule": "repeated",
|
|
3275
3313
|
"type": "int32",
|
|
3276
|
-
"id": 1
|
|
3314
|
+
"id": 1,
|
|
3315
|
+
"options": {
|
|
3316
|
+
"packed": true
|
|
3317
|
+
}
|
|
3277
3318
|
},
|
|
3278
3319
|
"span": {
|
|
3279
3320
|
"rule": "repeated",
|
|
3280
3321
|
"type": "int32",
|
|
3281
|
-
"id": 2
|
|
3322
|
+
"id": 2,
|
|
3323
|
+
"options": {
|
|
3324
|
+
"packed": true
|
|
3325
|
+
}
|
|
3282
3326
|
},
|
|
3283
3327
|
"leadingComments": {
|
|
3284
3328
|
"type": "string",
|
|
@@ -3298,6 +3342,7 @@
|
|
|
3298
3342
|
}
|
|
3299
3343
|
},
|
|
3300
3344
|
"GeneratedCodeInfo": {
|
|
3345
|
+
"edition": "proto2",
|
|
3301
3346
|
"fields": {
|
|
3302
3347
|
"annotation": {
|
|
3303
3348
|
"rule": "repeated",
|
|
@@ -3311,7 +3356,10 @@
|
|
|
3311
3356
|
"path": {
|
|
3312
3357
|
"rule": "repeated",
|
|
3313
3358
|
"type": "int32",
|
|
3314
|
-
"id": 1
|
|
3359
|
+
"id": 1,
|
|
3360
|
+
"options": {
|
|
3361
|
+
"packed": true
|
|
3362
|
+
}
|
|
3315
3363
|
},
|
|
3316
3364
|
"sourceFile": {
|
|
3317
3365
|
"type": "string",
|
|
@@ -156,7 +156,7 @@ export declare class DeliveryServiceClient {
|
|
|
156
156
|
*/
|
|
157
157
|
createDeliveryVehicle(request?: protos.maps.fleetengine.delivery.v1.ICreateDeliveryVehicleRequest, options?: CallOptions): Promise<[
|
|
158
158
|
protos.maps.fleetengine.delivery.v1.IDeliveryVehicle,
|
|
159
|
-
|
|
159
|
+
protos.maps.fleetengine.delivery.v1.ICreateDeliveryVehicleRequest | undefined,
|
|
160
160
|
{} | undefined
|
|
161
161
|
]>;
|
|
162
162
|
createDeliveryVehicle(request: protos.maps.fleetengine.delivery.v1.ICreateDeliveryVehicleRequest, options: CallOptions, callback: Callback<protos.maps.fleetengine.delivery.v1.IDeliveryVehicle, protos.maps.fleetengine.delivery.v1.ICreateDeliveryVehicleRequest | null | undefined, {} | null | undefined>): void;
|
|
@@ -184,7 +184,7 @@ export declare class DeliveryServiceClient {
|
|
|
184
184
|
*/
|
|
185
185
|
getDeliveryVehicle(request?: protos.maps.fleetengine.delivery.v1.IGetDeliveryVehicleRequest, options?: CallOptions): Promise<[
|
|
186
186
|
protos.maps.fleetengine.delivery.v1.IDeliveryVehicle,
|
|
187
|
-
|
|
187
|
+
protos.maps.fleetengine.delivery.v1.IGetDeliveryVehicleRequest | undefined,
|
|
188
188
|
{} | undefined
|
|
189
189
|
]>;
|
|
190
190
|
getDeliveryVehicle(request: protos.maps.fleetengine.delivery.v1.IGetDeliveryVehicleRequest, options: CallOptions, callback: Callback<protos.maps.fleetengine.delivery.v1.IDeliveryVehicle, protos.maps.fleetengine.delivery.v1.IGetDeliveryVehicleRequest | null | undefined, {} | null | undefined>): void;
|
|
@@ -215,7 +215,7 @@ export declare class DeliveryServiceClient {
|
|
|
215
215
|
*/
|
|
216
216
|
deleteDeliveryVehicle(request?: protos.maps.fleetengine.delivery.v1.IDeleteDeliveryVehicleRequest, options?: CallOptions): Promise<[
|
|
217
217
|
protos.google.protobuf.IEmpty,
|
|
218
|
-
|
|
218
|
+
protos.maps.fleetengine.delivery.v1.IDeleteDeliveryVehicleRequest | undefined,
|
|
219
219
|
{} | undefined
|
|
220
220
|
]>;
|
|
221
221
|
deleteDeliveryVehicle(request: protos.maps.fleetengine.delivery.v1.IDeleteDeliveryVehicleRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.maps.fleetengine.delivery.v1.IDeleteDeliveryVehicleRequest | null | undefined, {} | null | undefined>): void;
|
|
@@ -253,7 +253,7 @@ export declare class DeliveryServiceClient {
|
|
|
253
253
|
*/
|
|
254
254
|
updateDeliveryVehicle(request?: protos.maps.fleetengine.delivery.v1.IUpdateDeliveryVehicleRequest, options?: CallOptions): Promise<[
|
|
255
255
|
protos.maps.fleetengine.delivery.v1.IDeliveryVehicle,
|
|
256
|
-
|
|
256
|
+
protos.maps.fleetengine.delivery.v1.IUpdateDeliveryVehicleRequest | undefined,
|
|
257
257
|
{} | undefined
|
|
258
258
|
]>;
|
|
259
259
|
updateDeliveryVehicle(request: protos.maps.fleetengine.delivery.v1.IUpdateDeliveryVehicleRequest, options: CallOptions, callback: Callback<protos.maps.fleetengine.delivery.v1.IDeliveryVehicle, protos.maps.fleetengine.delivery.v1.IUpdateDeliveryVehicleRequest | null | undefined, {} | null | undefined>): void;
|
|
@@ -477,50 +477,50 @@ export declare class DeliveryServiceClient {
|
|
|
477
477
|
*/
|
|
478
478
|
getTaskTrackingInfo(request?: protos.maps.fleetengine.delivery.v1.IGetTaskTrackingInfoRequest, options?: CallOptions): Promise<[
|
|
479
479
|
protos.maps.fleetengine.delivery.v1.ITaskTrackingInfo,
|
|
480
|
-
|
|
480
|
+
protos.maps.fleetengine.delivery.v1.IGetTaskTrackingInfoRequest | undefined,
|
|
481
481
|
{} | undefined
|
|
482
482
|
]>;
|
|
483
483
|
getTaskTrackingInfo(request: protos.maps.fleetengine.delivery.v1.IGetTaskTrackingInfoRequest, options: CallOptions, callback: Callback<protos.maps.fleetengine.delivery.v1.ITaskTrackingInfo, protos.maps.fleetengine.delivery.v1.IGetTaskTrackingInfoRequest | null | undefined, {} | null | undefined>): void;
|
|
484
484
|
getTaskTrackingInfo(request: protos.maps.fleetengine.delivery.v1.IGetTaskTrackingInfoRequest, callback: Callback<protos.maps.fleetengine.delivery.v1.ITaskTrackingInfo, protos.maps.fleetengine.delivery.v1.IGetTaskTrackingInfoRequest | null | undefined, {} | null | undefined>): void;
|
|
485
485
|
/**
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
486
|
+
* Gets all `Task`s that meet the specified filtering criteria.
|
|
487
|
+
*
|
|
488
|
+
* @param {Object} request
|
|
489
|
+
* The request object that will be sent.
|
|
490
|
+
* @param {maps.fleetengine.delivery.v1.DeliveryRequestHeader} [request.header]
|
|
491
|
+
* Optional. The standard Delivery API request header.
|
|
492
|
+
* @param {string} request.parent
|
|
493
|
+
* Required. Must be in the format `providers/{provider}`.
|
|
494
|
+
* The `provider` must be the Google Cloud Project ID. For example,
|
|
495
|
+
* `sample-cloud-project`.
|
|
496
|
+
* @param {number} [request.pageSize]
|
|
497
|
+
* Optional. The maximum number of Tasks to return. The service may return
|
|
498
|
+
* fewer than this value. If you don't specify this value, then the server
|
|
499
|
+
* determines the number of results to return.
|
|
500
|
+
* @param {string} [request.pageToken]
|
|
501
|
+
* Optional. A page token received from a previous `ListTasks` call.
|
|
502
|
+
* You can provide this to retrieve the subsequent page.
|
|
503
|
+
*
|
|
504
|
+
* When paginating, all other parameters provided to `ListTasks` must match
|
|
505
|
+
* the call that provided the page token.
|
|
506
|
+
* @param {string} [request.filter]
|
|
507
|
+
* Optional. A filter query to apply when listing Tasks. See
|
|
508
|
+
* http://aip.dev/160 for examples of filter syntax. If you don't specify a
|
|
509
|
+
* value, or if you filter on an empty string, then all Tasks are returned.
|
|
510
|
+
* For information about the Task properties that you can filter on, see [List
|
|
511
|
+
* tasks](https://developers.google.com/maps/documentation/mobility/fleet-engine/journeys/tasks/find-tasks#filter_listed_tasks).
|
|
512
|
+
* @param {object} [options]
|
|
513
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
514
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
515
|
+
* The first element of the array is Array of {@link protos.maps.fleetengine.delivery.v1.Task|Task}.
|
|
516
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
517
|
+
* times as needed and will merge results from all the pages into this array.
|
|
518
|
+
* Note that it can affect your quota.
|
|
519
|
+
* We recommend using `listTasksAsync()`
|
|
520
|
+
* method described below for async iteration which you can stop as needed.
|
|
521
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
522
|
+
* for more details and examples.
|
|
523
|
+
*/
|
|
524
524
|
listTasks(request?: protos.maps.fleetengine.delivery.v1.IListTasksRequest, options?: CallOptions): Promise<[
|
|
525
525
|
protos.maps.fleetengine.delivery.v1.ITask[],
|
|
526
526
|
protos.maps.fleetengine.delivery.v1.IListTasksRequest | null,
|
|
@@ -608,60 +608,60 @@ export declare class DeliveryServiceClient {
|
|
|
608
608
|
*/
|
|
609
609
|
listTasksAsync(request?: protos.maps.fleetengine.delivery.v1.IListTasksRequest, options?: CallOptions): AsyncIterable<protos.maps.fleetengine.delivery.v1.ITask>;
|
|
610
610
|
/**
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
611
|
+
* Gets all `DeliveryVehicle`s that meet the specified filtering criteria.
|
|
612
|
+
*
|
|
613
|
+
* @param {Object} request
|
|
614
|
+
* The request object that will be sent.
|
|
615
|
+
* @param {maps.fleetengine.delivery.v1.DeliveryRequestHeader} [request.header]
|
|
616
|
+
* Optional. The standard Delivery API request header.
|
|
617
|
+
* @param {string} request.parent
|
|
618
|
+
* Required. Must be in the format `providers/{provider}`.
|
|
619
|
+
* The `provider` must be the Google Cloud Project ID.
|
|
620
|
+
* For example, `sample-cloud-project`.
|
|
621
|
+
* @param {number} [request.pageSize]
|
|
622
|
+
* Optional. The maximum number of vehicles to return. The service may return
|
|
623
|
+
* fewer than this number. If you don't specify this number, then the server
|
|
624
|
+
* determines the number of results to return.
|
|
625
|
+
* @param {string} [request.pageToken]
|
|
626
|
+
* Optional. A page token, received from a previous `ListDeliveryVehicles`
|
|
627
|
+
* call. You must provide this in order to retrieve the subsequent page.
|
|
628
|
+
*
|
|
629
|
+
* When paginating, all other parameters provided to `ListDeliveryVehicles`
|
|
630
|
+
* must match the call that provided the page token.
|
|
631
|
+
* @param {string} [request.filter]
|
|
632
|
+
* Optional. A filter query to apply when listing delivery vehicles. See
|
|
633
|
+
* http://aip.dev/160 for examples of the filter syntax. If you don't specify
|
|
634
|
+
* a value, or if you specify an empty string for the filter, then all
|
|
635
|
+
* delivery vehicles are returned.
|
|
636
|
+
*
|
|
637
|
+
* Note that the only queries supported for `ListDeliveryVehicles` are
|
|
638
|
+
* on vehicle attributes (for example, `attributes.<key> = <value>` or
|
|
639
|
+
* `attributes.<key1> = <value1> AND attributes.<key2> = <value2>`). Also, all
|
|
640
|
+
* attributes are stored as strings, so the only supported comparisons against
|
|
641
|
+
* attributes are string comparisons. In order to compare against number or
|
|
642
|
+
* boolean values, the values must be explicitly quoted to be treated as
|
|
643
|
+
* strings (for example, `attributes.<key> = "10"` or
|
|
644
|
+
* `attributes.<key> = "true"`).
|
|
645
|
+
*
|
|
646
|
+
* The maximum number of restrictions allowed in a filter query is 50. A
|
|
647
|
+
* restriction is a part of the query of the form
|
|
648
|
+
* `attribute.<KEY> <COMPARATOR> <VALUE>`, for example `attributes.foo = bar`
|
|
649
|
+
* is 1 restriction.
|
|
650
|
+
* @param {google.geo.type.Viewport} [request.viewport]
|
|
651
|
+
* Optional. A filter that limits the vehicles returned to those whose last
|
|
652
|
+
* known location was in the rectangular area defined by the viewport.
|
|
653
|
+
* @param {object} [options]
|
|
654
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
655
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
656
|
+
* The first element of the array is Array of {@link protos.maps.fleetengine.delivery.v1.DeliveryVehicle|DeliveryVehicle}.
|
|
657
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
658
|
+
* times as needed and will merge results from all the pages into this array.
|
|
659
|
+
* Note that it can affect your quota.
|
|
660
|
+
* We recommend using `listDeliveryVehiclesAsync()`
|
|
661
|
+
* method described below for async iteration which you can stop as needed.
|
|
662
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
663
|
+
* for more details and examples.
|
|
664
|
+
*/
|
|
665
665
|
listDeliveryVehicles(request?: protos.maps.fleetengine.delivery.v1.IListDeliveryVehiclesRequest, options?: CallOptions): Promise<[
|
|
666
666
|
protos.maps.fleetengine.delivery.v1.IDeliveryVehicle[],
|
|
667
667
|
protos.maps.fleetengine.delivery.v1.IListDeliveryVehiclesRequest | null,
|