@googlemaps/routeoptimization 0.5.1 → 0.6.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 -0
- package/build/protos/google/maps/routeoptimization/v1/route_optimization_service.proto +497 -13
- package/build/protos/protos.d.ts +983 -21
- package/build/protos/protos.js +5338 -2753
- package/build/protos/protos.json +405 -2
- package/build/src/v1/gapic_metadata.json +20 -0
- package/build/src/v1/route_optimization_client.d.ts +312 -0
- package/build/src/v1/route_optimization_client.js +104 -2
- package/build/src/v1/route_optimization_client.js.map +1 -1
- package/build/src/v1/route_optimization_client_config.json +8 -0
- package/package.json +1 -1
package/build/protos/protos.d.ts
CHANGED
|
@@ -73,6 +73,34 @@ export namespace google {
|
|
|
73
73
|
* @returns Promise
|
|
74
74
|
*/
|
|
75
75
|
public batchOptimizeTours(request: google.maps.routeoptimization.v1.IBatchOptimizeToursRequest): Promise<google.longrunning.Operation>;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Calls OptimizeToursLongRunning.
|
|
79
|
+
* @param request OptimizeToursRequest message or plain object
|
|
80
|
+
* @param callback Node-style callback called with the error, if any, and Operation
|
|
81
|
+
*/
|
|
82
|
+
public optimizeToursLongRunning(request: google.maps.routeoptimization.v1.IOptimizeToursRequest, callback: google.maps.routeoptimization.v1.RouteOptimization.OptimizeToursLongRunningCallback): void;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Calls OptimizeToursLongRunning.
|
|
86
|
+
* @param request OptimizeToursRequest message or plain object
|
|
87
|
+
* @returns Promise
|
|
88
|
+
*/
|
|
89
|
+
public optimizeToursLongRunning(request: google.maps.routeoptimization.v1.IOptimizeToursRequest): Promise<google.longrunning.Operation>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Calls OptimizeToursUri.
|
|
93
|
+
* @param request OptimizeToursUriRequest message or plain object
|
|
94
|
+
* @param callback Node-style callback called with the error, if any, and Operation
|
|
95
|
+
*/
|
|
96
|
+
public optimizeToursUri(request: google.maps.routeoptimization.v1.IOptimizeToursUriRequest, callback: google.maps.routeoptimization.v1.RouteOptimization.OptimizeToursUriCallback): void;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Calls OptimizeToursUri.
|
|
100
|
+
* @param request OptimizeToursUriRequest message or plain object
|
|
101
|
+
* @returns Promise
|
|
102
|
+
*/
|
|
103
|
+
public optimizeToursUri(request: google.maps.routeoptimization.v1.IOptimizeToursUriRequest): Promise<google.longrunning.Operation>;
|
|
76
104
|
}
|
|
77
105
|
|
|
78
106
|
namespace RouteOptimization {
|
|
@@ -90,6 +118,414 @@ export namespace google {
|
|
|
90
118
|
* @param [response] Operation
|
|
91
119
|
*/
|
|
92
120
|
type BatchOptimizeToursCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Callback as used by {@link google.maps.routeoptimization.v1.RouteOptimization|optimizeToursLongRunning}.
|
|
124
|
+
* @param error Error, if any
|
|
125
|
+
* @param [response] Operation
|
|
126
|
+
*/
|
|
127
|
+
type OptimizeToursLongRunningCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Callback as used by {@link google.maps.routeoptimization.v1.RouteOptimization|optimizeToursUri}.
|
|
131
|
+
* @param error Error, if any
|
|
132
|
+
* @param [response] Operation
|
|
133
|
+
*/
|
|
134
|
+
type OptimizeToursUriCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/** Properties of an Uri. */
|
|
138
|
+
interface IUri {
|
|
139
|
+
|
|
140
|
+
/** Uri uri */
|
|
141
|
+
uri?: (string|null);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** Represents an Uri. */
|
|
145
|
+
class Uri implements IUri {
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Constructs a new Uri.
|
|
149
|
+
* @param [properties] Properties to set
|
|
150
|
+
*/
|
|
151
|
+
constructor(properties?: google.maps.routeoptimization.v1.IUri);
|
|
152
|
+
|
|
153
|
+
/** Uri uri. */
|
|
154
|
+
public uri: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Creates a new Uri instance using the specified properties.
|
|
158
|
+
* @param [properties] Properties to set
|
|
159
|
+
* @returns Uri instance
|
|
160
|
+
*/
|
|
161
|
+
public static create(properties?: google.maps.routeoptimization.v1.IUri): google.maps.routeoptimization.v1.Uri;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Encodes the specified Uri message. Does not implicitly {@link google.maps.routeoptimization.v1.Uri.verify|verify} messages.
|
|
165
|
+
* @param message Uri message or plain object to encode
|
|
166
|
+
* @param [writer] Writer to encode to
|
|
167
|
+
* @returns Writer
|
|
168
|
+
*/
|
|
169
|
+
public static encode(message: google.maps.routeoptimization.v1.IUri, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Encodes the specified Uri message, length delimited. Does not implicitly {@link google.maps.routeoptimization.v1.Uri.verify|verify} messages.
|
|
173
|
+
* @param message Uri message or plain object to encode
|
|
174
|
+
* @param [writer] Writer to encode to
|
|
175
|
+
* @returns Writer
|
|
176
|
+
*/
|
|
177
|
+
public static encodeDelimited(message: google.maps.routeoptimization.v1.IUri, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Decodes an Uri message from the specified reader or buffer.
|
|
181
|
+
* @param reader Reader or buffer to decode from
|
|
182
|
+
* @param [length] Message length if known beforehand
|
|
183
|
+
* @returns Uri
|
|
184
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
185
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
186
|
+
*/
|
|
187
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routeoptimization.v1.Uri;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Decodes an Uri message from the specified reader or buffer, length delimited.
|
|
191
|
+
* @param reader Reader or buffer to decode from
|
|
192
|
+
* @returns Uri
|
|
193
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
194
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
195
|
+
*/
|
|
196
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routeoptimization.v1.Uri;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Verifies an Uri message.
|
|
200
|
+
* @param message Plain object to verify
|
|
201
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
202
|
+
*/
|
|
203
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Creates an Uri message from a plain object. Also converts values to their respective internal types.
|
|
207
|
+
* @param object Plain object
|
|
208
|
+
* @returns Uri
|
|
209
|
+
*/
|
|
210
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routeoptimization.v1.Uri;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Creates a plain object from an Uri message. Also converts values to other types if specified.
|
|
214
|
+
* @param message Uri
|
|
215
|
+
* @param [options] Conversion options
|
|
216
|
+
* @returns Plain object
|
|
217
|
+
*/
|
|
218
|
+
public static toObject(message: google.maps.routeoptimization.v1.Uri, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Converts this Uri to JSON.
|
|
222
|
+
* @returns JSON object
|
|
223
|
+
*/
|
|
224
|
+
public toJSON(): { [k: string]: any };
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Gets the default type url for Uri
|
|
228
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
229
|
+
* @returns The default type url
|
|
230
|
+
*/
|
|
231
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** Properties of an OptimizeToursUriRequest. */
|
|
235
|
+
interface IOptimizeToursUriRequest {
|
|
236
|
+
|
|
237
|
+
/** OptimizeToursUriRequest parent */
|
|
238
|
+
parent?: (string|null);
|
|
239
|
+
|
|
240
|
+
/** OptimizeToursUriRequest input */
|
|
241
|
+
input?: (google.maps.routeoptimization.v1.IUri|null);
|
|
242
|
+
|
|
243
|
+
/** OptimizeToursUriRequest output */
|
|
244
|
+
output?: (google.maps.routeoptimization.v1.IUri|null);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/** Represents an OptimizeToursUriRequest. */
|
|
248
|
+
class OptimizeToursUriRequest implements IOptimizeToursUriRequest {
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Constructs a new OptimizeToursUriRequest.
|
|
252
|
+
* @param [properties] Properties to set
|
|
253
|
+
*/
|
|
254
|
+
constructor(properties?: google.maps.routeoptimization.v1.IOptimizeToursUriRequest);
|
|
255
|
+
|
|
256
|
+
/** OptimizeToursUriRequest parent. */
|
|
257
|
+
public parent: string;
|
|
258
|
+
|
|
259
|
+
/** OptimizeToursUriRequest input. */
|
|
260
|
+
public input?: (google.maps.routeoptimization.v1.IUri|null);
|
|
261
|
+
|
|
262
|
+
/** OptimizeToursUriRequest output. */
|
|
263
|
+
public output?: (google.maps.routeoptimization.v1.IUri|null);
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Creates a new OptimizeToursUriRequest instance using the specified properties.
|
|
267
|
+
* @param [properties] Properties to set
|
|
268
|
+
* @returns OptimizeToursUriRequest instance
|
|
269
|
+
*/
|
|
270
|
+
public static create(properties?: google.maps.routeoptimization.v1.IOptimizeToursUriRequest): google.maps.routeoptimization.v1.OptimizeToursUriRequest;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Encodes the specified OptimizeToursUriRequest message. Does not implicitly {@link google.maps.routeoptimization.v1.OptimizeToursUriRequest.verify|verify} messages.
|
|
274
|
+
* @param message OptimizeToursUriRequest message or plain object to encode
|
|
275
|
+
* @param [writer] Writer to encode to
|
|
276
|
+
* @returns Writer
|
|
277
|
+
*/
|
|
278
|
+
public static encode(message: google.maps.routeoptimization.v1.IOptimizeToursUriRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Encodes the specified OptimizeToursUriRequest message, length delimited. Does not implicitly {@link google.maps.routeoptimization.v1.OptimizeToursUriRequest.verify|verify} messages.
|
|
282
|
+
* @param message OptimizeToursUriRequest message or plain object to encode
|
|
283
|
+
* @param [writer] Writer to encode to
|
|
284
|
+
* @returns Writer
|
|
285
|
+
*/
|
|
286
|
+
public static encodeDelimited(message: google.maps.routeoptimization.v1.IOptimizeToursUriRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Decodes an OptimizeToursUriRequest message from the specified reader or buffer.
|
|
290
|
+
* @param reader Reader or buffer to decode from
|
|
291
|
+
* @param [length] Message length if known beforehand
|
|
292
|
+
* @returns OptimizeToursUriRequest
|
|
293
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
294
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
295
|
+
*/
|
|
296
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routeoptimization.v1.OptimizeToursUriRequest;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Decodes an OptimizeToursUriRequest message from the specified reader or buffer, length delimited.
|
|
300
|
+
* @param reader Reader or buffer to decode from
|
|
301
|
+
* @returns OptimizeToursUriRequest
|
|
302
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
303
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
304
|
+
*/
|
|
305
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routeoptimization.v1.OptimizeToursUriRequest;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Verifies an OptimizeToursUriRequest message.
|
|
309
|
+
* @param message Plain object to verify
|
|
310
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
311
|
+
*/
|
|
312
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Creates an OptimizeToursUriRequest message from a plain object. Also converts values to their respective internal types.
|
|
316
|
+
* @param object Plain object
|
|
317
|
+
* @returns OptimizeToursUriRequest
|
|
318
|
+
*/
|
|
319
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routeoptimization.v1.OptimizeToursUriRequest;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Creates a plain object from an OptimizeToursUriRequest message. Also converts values to other types if specified.
|
|
323
|
+
* @param message OptimizeToursUriRequest
|
|
324
|
+
* @param [options] Conversion options
|
|
325
|
+
* @returns Plain object
|
|
326
|
+
*/
|
|
327
|
+
public static toObject(message: google.maps.routeoptimization.v1.OptimizeToursUriRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Converts this OptimizeToursUriRequest to JSON.
|
|
331
|
+
* @returns JSON object
|
|
332
|
+
*/
|
|
333
|
+
public toJSON(): { [k: string]: any };
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Gets the default type url for OptimizeToursUriRequest
|
|
337
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
338
|
+
* @returns The default type url
|
|
339
|
+
*/
|
|
340
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/** Properties of an OptimizeToursUriResponse. */
|
|
344
|
+
interface IOptimizeToursUriResponse {
|
|
345
|
+
|
|
346
|
+
/** OptimizeToursUriResponse output */
|
|
347
|
+
output?: (google.maps.routeoptimization.v1.IUri|null);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
/** Represents an OptimizeToursUriResponse. */
|
|
351
|
+
class OptimizeToursUriResponse implements IOptimizeToursUriResponse {
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Constructs a new OptimizeToursUriResponse.
|
|
355
|
+
* @param [properties] Properties to set
|
|
356
|
+
*/
|
|
357
|
+
constructor(properties?: google.maps.routeoptimization.v1.IOptimizeToursUriResponse);
|
|
358
|
+
|
|
359
|
+
/** OptimizeToursUriResponse output. */
|
|
360
|
+
public output?: (google.maps.routeoptimization.v1.IUri|null);
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Creates a new OptimizeToursUriResponse instance using the specified properties.
|
|
364
|
+
* @param [properties] Properties to set
|
|
365
|
+
* @returns OptimizeToursUriResponse instance
|
|
366
|
+
*/
|
|
367
|
+
public static create(properties?: google.maps.routeoptimization.v1.IOptimizeToursUriResponse): google.maps.routeoptimization.v1.OptimizeToursUriResponse;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Encodes the specified OptimizeToursUriResponse message. Does not implicitly {@link google.maps.routeoptimization.v1.OptimizeToursUriResponse.verify|verify} messages.
|
|
371
|
+
* @param message OptimizeToursUriResponse message or plain object to encode
|
|
372
|
+
* @param [writer] Writer to encode to
|
|
373
|
+
* @returns Writer
|
|
374
|
+
*/
|
|
375
|
+
public static encode(message: google.maps.routeoptimization.v1.IOptimizeToursUriResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Encodes the specified OptimizeToursUriResponse message, length delimited. Does not implicitly {@link google.maps.routeoptimization.v1.OptimizeToursUriResponse.verify|verify} messages.
|
|
379
|
+
* @param message OptimizeToursUriResponse message or plain object to encode
|
|
380
|
+
* @param [writer] Writer to encode to
|
|
381
|
+
* @returns Writer
|
|
382
|
+
*/
|
|
383
|
+
public static encodeDelimited(message: google.maps.routeoptimization.v1.IOptimizeToursUriResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Decodes an OptimizeToursUriResponse message from the specified reader or buffer.
|
|
387
|
+
* @param reader Reader or buffer to decode from
|
|
388
|
+
* @param [length] Message length if known beforehand
|
|
389
|
+
* @returns OptimizeToursUriResponse
|
|
390
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
391
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
392
|
+
*/
|
|
393
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routeoptimization.v1.OptimizeToursUriResponse;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Decodes an OptimizeToursUriResponse message from the specified reader or buffer, length delimited.
|
|
397
|
+
* @param reader Reader or buffer to decode from
|
|
398
|
+
* @returns OptimizeToursUriResponse
|
|
399
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
400
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
401
|
+
*/
|
|
402
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routeoptimization.v1.OptimizeToursUriResponse;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Verifies an OptimizeToursUriResponse message.
|
|
406
|
+
* @param message Plain object to verify
|
|
407
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
408
|
+
*/
|
|
409
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Creates an OptimizeToursUriResponse message from a plain object. Also converts values to their respective internal types.
|
|
413
|
+
* @param object Plain object
|
|
414
|
+
* @returns OptimizeToursUriResponse
|
|
415
|
+
*/
|
|
416
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routeoptimization.v1.OptimizeToursUriResponse;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Creates a plain object from an OptimizeToursUriResponse message. Also converts values to other types if specified.
|
|
420
|
+
* @param message OptimizeToursUriResponse
|
|
421
|
+
* @param [options] Conversion options
|
|
422
|
+
* @returns Plain object
|
|
423
|
+
*/
|
|
424
|
+
public static toObject(message: google.maps.routeoptimization.v1.OptimizeToursUriResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Converts this OptimizeToursUriResponse to JSON.
|
|
428
|
+
* @returns JSON object
|
|
429
|
+
*/
|
|
430
|
+
public toJSON(): { [k: string]: any };
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Gets the default type url for OptimizeToursUriResponse
|
|
434
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
435
|
+
* @returns The default type url
|
|
436
|
+
*/
|
|
437
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/** Properties of an OptimizeToursUriMetadata. */
|
|
441
|
+
interface IOptimizeToursUriMetadata {
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/** Represents an OptimizeToursUriMetadata. */
|
|
445
|
+
class OptimizeToursUriMetadata implements IOptimizeToursUriMetadata {
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Constructs a new OptimizeToursUriMetadata.
|
|
449
|
+
* @param [properties] Properties to set
|
|
450
|
+
*/
|
|
451
|
+
constructor(properties?: google.maps.routeoptimization.v1.IOptimizeToursUriMetadata);
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Creates a new OptimizeToursUriMetadata instance using the specified properties.
|
|
455
|
+
* @param [properties] Properties to set
|
|
456
|
+
* @returns OptimizeToursUriMetadata instance
|
|
457
|
+
*/
|
|
458
|
+
public static create(properties?: google.maps.routeoptimization.v1.IOptimizeToursUriMetadata): google.maps.routeoptimization.v1.OptimizeToursUriMetadata;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Encodes the specified OptimizeToursUriMetadata message. Does not implicitly {@link google.maps.routeoptimization.v1.OptimizeToursUriMetadata.verify|verify} messages.
|
|
462
|
+
* @param message OptimizeToursUriMetadata message or plain object to encode
|
|
463
|
+
* @param [writer] Writer to encode to
|
|
464
|
+
* @returns Writer
|
|
465
|
+
*/
|
|
466
|
+
public static encode(message: google.maps.routeoptimization.v1.IOptimizeToursUriMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Encodes the specified OptimizeToursUriMetadata message, length delimited. Does not implicitly {@link google.maps.routeoptimization.v1.OptimizeToursUriMetadata.verify|verify} messages.
|
|
470
|
+
* @param message OptimizeToursUriMetadata message or plain object to encode
|
|
471
|
+
* @param [writer] Writer to encode to
|
|
472
|
+
* @returns Writer
|
|
473
|
+
*/
|
|
474
|
+
public static encodeDelimited(message: google.maps.routeoptimization.v1.IOptimizeToursUriMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Decodes an OptimizeToursUriMetadata message from the specified reader or buffer.
|
|
478
|
+
* @param reader Reader or buffer to decode from
|
|
479
|
+
* @param [length] Message length if known beforehand
|
|
480
|
+
* @returns OptimizeToursUriMetadata
|
|
481
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
482
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
483
|
+
*/
|
|
484
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routeoptimization.v1.OptimizeToursUriMetadata;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Decodes an OptimizeToursUriMetadata message from the specified reader or buffer, length delimited.
|
|
488
|
+
* @param reader Reader or buffer to decode from
|
|
489
|
+
* @returns OptimizeToursUriMetadata
|
|
490
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
491
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
492
|
+
*/
|
|
493
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routeoptimization.v1.OptimizeToursUriMetadata;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Verifies an OptimizeToursUriMetadata message.
|
|
497
|
+
* @param message Plain object to verify
|
|
498
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
499
|
+
*/
|
|
500
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Creates an OptimizeToursUriMetadata message from a plain object. Also converts values to their respective internal types.
|
|
504
|
+
* @param object Plain object
|
|
505
|
+
* @returns OptimizeToursUriMetadata
|
|
506
|
+
*/
|
|
507
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routeoptimization.v1.OptimizeToursUriMetadata;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Creates a plain object from an OptimizeToursUriMetadata message. Also converts values to other types if specified.
|
|
511
|
+
* @param message OptimizeToursUriMetadata
|
|
512
|
+
* @param [options] Conversion options
|
|
513
|
+
* @returns Plain object
|
|
514
|
+
*/
|
|
515
|
+
public static toObject(message: google.maps.routeoptimization.v1.OptimizeToursUriMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Converts this OptimizeToursUriMetadata to JSON.
|
|
519
|
+
* @returns JSON object
|
|
520
|
+
*/
|
|
521
|
+
public toJSON(): { [k: string]: any };
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* Gets the default type url for OptimizeToursUriMetadata
|
|
525
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
526
|
+
* @returns The default type url
|
|
527
|
+
*/
|
|
528
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
93
529
|
}
|
|
94
530
|
|
|
95
531
|
/** Properties of a BatchOptimizeToursRequest. */
|
|
@@ -424,65 +860,156 @@ export namespace google {
|
|
|
424
860
|
* @param [writer] Writer to encode to
|
|
425
861
|
* @returns Writer
|
|
426
862
|
*/
|
|
427
|
-
public static encode(message: google.maps.routeoptimization.v1.IBatchOptimizeToursMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
863
|
+
public static encode(message: google.maps.routeoptimization.v1.IBatchOptimizeToursMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* Encodes the specified BatchOptimizeToursMetadata message, length delimited. Does not implicitly {@link google.maps.routeoptimization.v1.BatchOptimizeToursMetadata.verify|verify} messages.
|
|
867
|
+
* @param message BatchOptimizeToursMetadata message or plain object to encode
|
|
868
|
+
* @param [writer] Writer to encode to
|
|
869
|
+
* @returns Writer
|
|
870
|
+
*/
|
|
871
|
+
public static encodeDelimited(message: google.maps.routeoptimization.v1.IBatchOptimizeToursMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Decodes a BatchOptimizeToursMetadata message from the specified reader or buffer.
|
|
875
|
+
* @param reader Reader or buffer to decode from
|
|
876
|
+
* @param [length] Message length if known beforehand
|
|
877
|
+
* @returns BatchOptimizeToursMetadata
|
|
878
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
879
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
880
|
+
*/
|
|
881
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routeoptimization.v1.BatchOptimizeToursMetadata;
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* Decodes a BatchOptimizeToursMetadata message from the specified reader or buffer, length delimited.
|
|
885
|
+
* @param reader Reader or buffer to decode from
|
|
886
|
+
* @returns BatchOptimizeToursMetadata
|
|
887
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
888
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
889
|
+
*/
|
|
890
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routeoptimization.v1.BatchOptimizeToursMetadata;
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Verifies a BatchOptimizeToursMetadata message.
|
|
894
|
+
* @param message Plain object to verify
|
|
895
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
896
|
+
*/
|
|
897
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* Creates a BatchOptimizeToursMetadata message from a plain object. Also converts values to their respective internal types.
|
|
901
|
+
* @param object Plain object
|
|
902
|
+
* @returns BatchOptimizeToursMetadata
|
|
903
|
+
*/
|
|
904
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routeoptimization.v1.BatchOptimizeToursMetadata;
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Creates a plain object from a BatchOptimizeToursMetadata message. Also converts values to other types if specified.
|
|
908
|
+
* @param message BatchOptimizeToursMetadata
|
|
909
|
+
* @param [options] Conversion options
|
|
910
|
+
* @returns Plain object
|
|
911
|
+
*/
|
|
912
|
+
public static toObject(message: google.maps.routeoptimization.v1.BatchOptimizeToursMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Converts this BatchOptimizeToursMetadata to JSON.
|
|
916
|
+
* @returns JSON object
|
|
917
|
+
*/
|
|
918
|
+
public toJSON(): { [k: string]: any };
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Gets the default type url for BatchOptimizeToursMetadata
|
|
922
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
923
|
+
* @returns The default type url
|
|
924
|
+
*/
|
|
925
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
/** Properties of an OptimizeToursLongRunningMetadata. */
|
|
929
|
+
interface IOptimizeToursLongRunningMetadata {
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
/** Represents an OptimizeToursLongRunningMetadata. */
|
|
933
|
+
class OptimizeToursLongRunningMetadata implements IOptimizeToursLongRunningMetadata {
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Constructs a new OptimizeToursLongRunningMetadata.
|
|
937
|
+
* @param [properties] Properties to set
|
|
938
|
+
*/
|
|
939
|
+
constructor(properties?: google.maps.routeoptimization.v1.IOptimizeToursLongRunningMetadata);
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* Creates a new OptimizeToursLongRunningMetadata instance using the specified properties.
|
|
943
|
+
* @param [properties] Properties to set
|
|
944
|
+
* @returns OptimizeToursLongRunningMetadata instance
|
|
945
|
+
*/
|
|
946
|
+
public static create(properties?: google.maps.routeoptimization.v1.IOptimizeToursLongRunningMetadata): google.maps.routeoptimization.v1.OptimizeToursLongRunningMetadata;
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* Encodes the specified OptimizeToursLongRunningMetadata message. Does not implicitly {@link google.maps.routeoptimization.v1.OptimizeToursLongRunningMetadata.verify|verify} messages.
|
|
950
|
+
* @param message OptimizeToursLongRunningMetadata message or plain object to encode
|
|
951
|
+
* @param [writer] Writer to encode to
|
|
952
|
+
* @returns Writer
|
|
953
|
+
*/
|
|
954
|
+
public static encode(message: google.maps.routeoptimization.v1.IOptimizeToursLongRunningMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
428
955
|
|
|
429
956
|
/**
|
|
430
|
-
* Encodes the specified
|
|
431
|
-
* @param message
|
|
957
|
+
* Encodes the specified OptimizeToursLongRunningMetadata message, length delimited. Does not implicitly {@link google.maps.routeoptimization.v1.OptimizeToursLongRunningMetadata.verify|verify} messages.
|
|
958
|
+
* @param message OptimizeToursLongRunningMetadata message or plain object to encode
|
|
432
959
|
* @param [writer] Writer to encode to
|
|
433
960
|
* @returns Writer
|
|
434
961
|
*/
|
|
435
|
-
public static encodeDelimited(message: google.maps.routeoptimization.v1.
|
|
962
|
+
public static encodeDelimited(message: google.maps.routeoptimization.v1.IOptimizeToursLongRunningMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
436
963
|
|
|
437
964
|
/**
|
|
438
|
-
* Decodes
|
|
965
|
+
* Decodes an OptimizeToursLongRunningMetadata message from the specified reader or buffer.
|
|
439
966
|
* @param reader Reader or buffer to decode from
|
|
440
967
|
* @param [length] Message length if known beforehand
|
|
441
|
-
* @returns
|
|
968
|
+
* @returns OptimizeToursLongRunningMetadata
|
|
442
969
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
443
970
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
444
971
|
*/
|
|
445
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routeoptimization.v1.
|
|
972
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routeoptimization.v1.OptimizeToursLongRunningMetadata;
|
|
446
973
|
|
|
447
974
|
/**
|
|
448
|
-
* Decodes
|
|
975
|
+
* Decodes an OptimizeToursLongRunningMetadata message from the specified reader or buffer, length delimited.
|
|
449
976
|
* @param reader Reader or buffer to decode from
|
|
450
|
-
* @returns
|
|
977
|
+
* @returns OptimizeToursLongRunningMetadata
|
|
451
978
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
452
979
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
453
980
|
*/
|
|
454
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routeoptimization.v1.
|
|
981
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routeoptimization.v1.OptimizeToursLongRunningMetadata;
|
|
455
982
|
|
|
456
983
|
/**
|
|
457
|
-
* Verifies
|
|
984
|
+
* Verifies an OptimizeToursLongRunningMetadata message.
|
|
458
985
|
* @param message Plain object to verify
|
|
459
986
|
* @returns `null` if valid, otherwise the reason why it is not
|
|
460
987
|
*/
|
|
461
988
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
462
989
|
|
|
463
990
|
/**
|
|
464
|
-
* Creates
|
|
991
|
+
* Creates an OptimizeToursLongRunningMetadata message from a plain object. Also converts values to their respective internal types.
|
|
465
992
|
* @param object Plain object
|
|
466
|
-
* @returns
|
|
993
|
+
* @returns OptimizeToursLongRunningMetadata
|
|
467
994
|
*/
|
|
468
|
-
public static fromObject(object: { [k: string]: any }): google.maps.routeoptimization.v1.
|
|
995
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routeoptimization.v1.OptimizeToursLongRunningMetadata;
|
|
469
996
|
|
|
470
997
|
/**
|
|
471
|
-
* Creates a plain object from
|
|
472
|
-
* @param message
|
|
998
|
+
* Creates a plain object from an OptimizeToursLongRunningMetadata message. Also converts values to other types if specified.
|
|
999
|
+
* @param message OptimizeToursLongRunningMetadata
|
|
473
1000
|
* @param [options] Conversion options
|
|
474
1001
|
* @returns Plain object
|
|
475
1002
|
*/
|
|
476
|
-
public static toObject(message: google.maps.routeoptimization.v1.
|
|
1003
|
+
public static toObject(message: google.maps.routeoptimization.v1.OptimizeToursLongRunningMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
477
1004
|
|
|
478
1005
|
/**
|
|
479
|
-
* Converts this
|
|
1006
|
+
* Converts this OptimizeToursLongRunningMetadata to JSON.
|
|
480
1007
|
* @returns JSON object
|
|
481
1008
|
*/
|
|
482
1009
|
public toJSON(): { [k: string]: any };
|
|
483
1010
|
|
|
484
1011
|
/**
|
|
485
|
-
* Gets the default type url for
|
|
1012
|
+
* Gets the default type url for OptimizeToursLongRunningMetadata
|
|
486
1013
|
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
487
1014
|
* @returns The default type url
|
|
488
1015
|
*/
|
|
@@ -688,7 +1215,8 @@ export namespace google {
|
|
|
688
1215
|
enum SolvingMode {
|
|
689
1216
|
DEFAULT_SOLVE = 0,
|
|
690
1217
|
VALIDATE_ONLY = 1,
|
|
691
|
-
DETECT_SOME_INFEASIBLE_SHIPMENTS = 2
|
|
1218
|
+
DETECT_SOME_INFEASIBLE_SHIPMENTS = 2,
|
|
1219
|
+
TRANSFORM_AND_RETURN_REQUEST = 3
|
|
692
1220
|
}
|
|
693
1221
|
|
|
694
1222
|
/** SearchMode enum. */
|
|
@@ -714,6 +1242,9 @@ export namespace google {
|
|
|
714
1242
|
/** OptimizeToursResponse validationErrors */
|
|
715
1243
|
validationErrors?: (google.maps.routeoptimization.v1.IOptimizeToursValidationError[]|null);
|
|
716
1244
|
|
|
1245
|
+
/** OptimizeToursResponse processedRequest */
|
|
1246
|
+
processedRequest?: (google.maps.routeoptimization.v1.IOptimizeToursRequest|null);
|
|
1247
|
+
|
|
717
1248
|
/** OptimizeToursResponse metrics */
|
|
718
1249
|
metrics?: (google.maps.routeoptimization.v1.OptimizeToursResponse.IMetrics|null);
|
|
719
1250
|
}
|
|
@@ -739,6 +1270,9 @@ export namespace google {
|
|
|
739
1270
|
/** OptimizeToursResponse validationErrors. */
|
|
740
1271
|
public validationErrors: google.maps.routeoptimization.v1.IOptimizeToursValidationError[];
|
|
741
1272
|
|
|
1273
|
+
/** OptimizeToursResponse processedRequest. */
|
|
1274
|
+
public processedRequest?: (google.maps.routeoptimization.v1.IOptimizeToursRequest|null);
|
|
1275
|
+
|
|
742
1276
|
/** OptimizeToursResponse metrics. */
|
|
743
1277
|
public metrics?: (google.maps.routeoptimization.v1.OptimizeToursResponse.IMetrics|null);
|
|
744
1278
|
|
|
@@ -965,6 +1499,9 @@ export namespace google {
|
|
|
965
1499
|
/** ShipmentModel vehicles */
|
|
966
1500
|
vehicles?: (google.maps.routeoptimization.v1.IVehicle[]|null);
|
|
967
1501
|
|
|
1502
|
+
/** ShipmentModel objectives */
|
|
1503
|
+
objectives?: (google.maps.routeoptimization.v1.ShipmentModel.IObjective[]|null);
|
|
1504
|
+
|
|
968
1505
|
/** ShipmentModel maxActiveVehicles */
|
|
969
1506
|
maxActiveVehicles?: (number|null);
|
|
970
1507
|
|
|
@@ -1014,6 +1551,9 @@ export namespace google {
|
|
|
1014
1551
|
/** ShipmentModel vehicles. */
|
|
1015
1552
|
public vehicles: google.maps.routeoptimization.v1.IVehicle[];
|
|
1016
1553
|
|
|
1554
|
+
/** ShipmentModel objectives. */
|
|
1555
|
+
public objectives: google.maps.routeoptimization.v1.ShipmentModel.IObjective[];
|
|
1556
|
+
|
|
1017
1557
|
/** ShipmentModel maxActiveVehicles. */
|
|
1018
1558
|
public maxActiveVehicles?: (number|null);
|
|
1019
1559
|
|
|
@@ -1127,6 +1667,121 @@ export namespace google {
|
|
|
1127
1667
|
|
|
1128
1668
|
namespace ShipmentModel {
|
|
1129
1669
|
|
|
1670
|
+
/** Properties of an Objective. */
|
|
1671
|
+
interface IObjective {
|
|
1672
|
+
|
|
1673
|
+
/** Objective type */
|
|
1674
|
+
type?: (google.maps.routeoptimization.v1.ShipmentModel.Objective.Type|keyof typeof google.maps.routeoptimization.v1.ShipmentModel.Objective.Type|null);
|
|
1675
|
+
|
|
1676
|
+
/** Objective weight */
|
|
1677
|
+
weight?: (number|null);
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
/** Represents an Objective. */
|
|
1681
|
+
class Objective implements IObjective {
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* Constructs a new Objective.
|
|
1685
|
+
* @param [properties] Properties to set
|
|
1686
|
+
*/
|
|
1687
|
+
constructor(properties?: google.maps.routeoptimization.v1.ShipmentModel.IObjective);
|
|
1688
|
+
|
|
1689
|
+
/** Objective type. */
|
|
1690
|
+
public type?: (google.maps.routeoptimization.v1.ShipmentModel.Objective.Type|keyof typeof google.maps.routeoptimization.v1.ShipmentModel.Objective.Type|null);
|
|
1691
|
+
|
|
1692
|
+
/** Objective weight. */
|
|
1693
|
+
public weight?: (number|null);
|
|
1694
|
+
|
|
1695
|
+
/**
|
|
1696
|
+
* Creates a new Objective instance using the specified properties.
|
|
1697
|
+
* @param [properties] Properties to set
|
|
1698
|
+
* @returns Objective instance
|
|
1699
|
+
*/
|
|
1700
|
+
public static create(properties?: google.maps.routeoptimization.v1.ShipmentModel.IObjective): google.maps.routeoptimization.v1.ShipmentModel.Objective;
|
|
1701
|
+
|
|
1702
|
+
/**
|
|
1703
|
+
* Encodes the specified Objective message. Does not implicitly {@link google.maps.routeoptimization.v1.ShipmentModel.Objective.verify|verify} messages.
|
|
1704
|
+
* @param message Objective message or plain object to encode
|
|
1705
|
+
* @param [writer] Writer to encode to
|
|
1706
|
+
* @returns Writer
|
|
1707
|
+
*/
|
|
1708
|
+
public static encode(message: google.maps.routeoptimization.v1.ShipmentModel.IObjective, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* Encodes the specified Objective message, length delimited. Does not implicitly {@link google.maps.routeoptimization.v1.ShipmentModel.Objective.verify|verify} messages.
|
|
1712
|
+
* @param message Objective message or plain object to encode
|
|
1713
|
+
* @param [writer] Writer to encode to
|
|
1714
|
+
* @returns Writer
|
|
1715
|
+
*/
|
|
1716
|
+
public static encodeDelimited(message: google.maps.routeoptimization.v1.ShipmentModel.IObjective, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1717
|
+
|
|
1718
|
+
/**
|
|
1719
|
+
* Decodes an Objective message from the specified reader or buffer.
|
|
1720
|
+
* @param reader Reader or buffer to decode from
|
|
1721
|
+
* @param [length] Message length if known beforehand
|
|
1722
|
+
* @returns Objective
|
|
1723
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1724
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1725
|
+
*/
|
|
1726
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routeoptimization.v1.ShipmentModel.Objective;
|
|
1727
|
+
|
|
1728
|
+
/**
|
|
1729
|
+
* Decodes an Objective message from the specified reader or buffer, length delimited.
|
|
1730
|
+
* @param reader Reader or buffer to decode from
|
|
1731
|
+
* @returns Objective
|
|
1732
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1733
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1734
|
+
*/
|
|
1735
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routeoptimization.v1.ShipmentModel.Objective;
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* Verifies an Objective message.
|
|
1739
|
+
* @param message Plain object to verify
|
|
1740
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1741
|
+
*/
|
|
1742
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* Creates an Objective message from a plain object. Also converts values to their respective internal types.
|
|
1746
|
+
* @param object Plain object
|
|
1747
|
+
* @returns Objective
|
|
1748
|
+
*/
|
|
1749
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routeoptimization.v1.ShipmentModel.Objective;
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
* Creates a plain object from an Objective message. Also converts values to other types if specified.
|
|
1753
|
+
* @param message Objective
|
|
1754
|
+
* @param [options] Conversion options
|
|
1755
|
+
* @returns Plain object
|
|
1756
|
+
*/
|
|
1757
|
+
public static toObject(message: google.maps.routeoptimization.v1.ShipmentModel.Objective, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1758
|
+
|
|
1759
|
+
/**
|
|
1760
|
+
* Converts this Objective to JSON.
|
|
1761
|
+
* @returns JSON object
|
|
1762
|
+
*/
|
|
1763
|
+
public toJSON(): { [k: string]: any };
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* Gets the default type url for Objective
|
|
1767
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1768
|
+
* @returns The default type url
|
|
1769
|
+
*/
|
|
1770
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
namespace Objective {
|
|
1774
|
+
|
|
1775
|
+
/** Type enum. */
|
|
1776
|
+
enum Type {
|
|
1777
|
+
DEFAULT = 0,
|
|
1778
|
+
MIN_DISTANCE = 10,
|
|
1779
|
+
MIN_WORKING_TIME = 11,
|
|
1780
|
+
MIN_TRAVEL_TIME = 12,
|
|
1781
|
+
MIN_NUM_VEHICLES = 13
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1130
1785
|
/** Properties of a DurationDistanceMatrix. */
|
|
1131
1786
|
interface IDurationDistanceMatrix {
|
|
1132
1787
|
|
|
@@ -1670,6 +2325,9 @@ export namespace google {
|
|
|
1670
2325
|
|
|
1671
2326
|
/** VisitRequest label */
|
|
1672
2327
|
label?: (string|null);
|
|
2328
|
+
|
|
2329
|
+
/** VisitRequest avoidUTurns */
|
|
2330
|
+
avoidUTurns?: (boolean|null);
|
|
1673
2331
|
}
|
|
1674
2332
|
|
|
1675
2333
|
/** Represents a VisitRequest. */
|
|
@@ -1714,6 +2372,9 @@ export namespace google {
|
|
|
1714
2372
|
/** VisitRequest label. */
|
|
1715
2373
|
public label: string;
|
|
1716
2374
|
|
|
2375
|
+
/** VisitRequest avoidUTurns. */
|
|
2376
|
+
public avoidUTurns?: (boolean|null);
|
|
2377
|
+
|
|
1717
2378
|
/**
|
|
1718
2379
|
* Creates a new VisitRequest instance using the specified properties.
|
|
1719
2380
|
* @param [properties] Properties to set
|
|
@@ -2518,6 +3179,12 @@ export namespace google {
|
|
|
2518
3179
|
|
|
2519
3180
|
/** LoadLimit endLoadInterval */
|
|
2520
3181
|
endLoadInterval?: (google.maps.routeoptimization.v1.Vehicle.LoadLimit.IInterval|null);
|
|
3182
|
+
|
|
3183
|
+
/** LoadLimit costPerKilometer */
|
|
3184
|
+
costPerKilometer?: (google.maps.routeoptimization.v1.Vehicle.LoadLimit.ILoadCost|null);
|
|
3185
|
+
|
|
3186
|
+
/** LoadLimit costPerTraveledHour */
|
|
3187
|
+
costPerTraveledHour?: (google.maps.routeoptimization.v1.Vehicle.LoadLimit.ILoadCost|null);
|
|
2521
3188
|
}
|
|
2522
3189
|
|
|
2523
3190
|
/** Represents a LoadLimit. */
|
|
@@ -2544,6 +3211,12 @@ export namespace google {
|
|
|
2544
3211
|
/** LoadLimit endLoadInterval. */
|
|
2545
3212
|
public endLoadInterval?: (google.maps.routeoptimization.v1.Vehicle.LoadLimit.IInterval|null);
|
|
2546
3213
|
|
|
3214
|
+
/** LoadLimit costPerKilometer. */
|
|
3215
|
+
public costPerKilometer?: (google.maps.routeoptimization.v1.Vehicle.LoadLimit.ILoadCost|null);
|
|
3216
|
+
|
|
3217
|
+
/** LoadLimit costPerTraveledHour. */
|
|
3218
|
+
public costPerTraveledHour?: (google.maps.routeoptimization.v1.Vehicle.LoadLimit.ILoadCost|null);
|
|
3219
|
+
|
|
2547
3220
|
/**
|
|
2548
3221
|
* Creates a new LoadLimit instance using the specified properties.
|
|
2549
3222
|
* @param [properties] Properties to set
|
|
@@ -2726,6 +3399,115 @@ export namespace google {
|
|
|
2726
3399
|
*/
|
|
2727
3400
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
2728
3401
|
}
|
|
3402
|
+
|
|
3403
|
+
/** Properties of a LoadCost. */
|
|
3404
|
+
interface ILoadCost {
|
|
3405
|
+
|
|
3406
|
+
/** LoadCost loadThreshold */
|
|
3407
|
+
loadThreshold?: (number|Long|string|null);
|
|
3408
|
+
|
|
3409
|
+
/** LoadCost costPerUnitBelowThreshold */
|
|
3410
|
+
costPerUnitBelowThreshold?: (number|null);
|
|
3411
|
+
|
|
3412
|
+
/** LoadCost costPerUnitAboveThreshold */
|
|
3413
|
+
costPerUnitAboveThreshold?: (number|null);
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3416
|
+
/** Represents a LoadCost. */
|
|
3417
|
+
class LoadCost implements ILoadCost {
|
|
3418
|
+
|
|
3419
|
+
/**
|
|
3420
|
+
* Constructs a new LoadCost.
|
|
3421
|
+
* @param [properties] Properties to set
|
|
3422
|
+
*/
|
|
3423
|
+
constructor(properties?: google.maps.routeoptimization.v1.Vehicle.LoadLimit.ILoadCost);
|
|
3424
|
+
|
|
3425
|
+
/** LoadCost loadThreshold. */
|
|
3426
|
+
public loadThreshold?: (number|Long|string|null);
|
|
3427
|
+
|
|
3428
|
+
/** LoadCost costPerUnitBelowThreshold. */
|
|
3429
|
+
public costPerUnitBelowThreshold?: (number|null);
|
|
3430
|
+
|
|
3431
|
+
/** LoadCost costPerUnitAboveThreshold. */
|
|
3432
|
+
public costPerUnitAboveThreshold?: (number|null);
|
|
3433
|
+
|
|
3434
|
+
/**
|
|
3435
|
+
* Creates a new LoadCost instance using the specified properties.
|
|
3436
|
+
* @param [properties] Properties to set
|
|
3437
|
+
* @returns LoadCost instance
|
|
3438
|
+
*/
|
|
3439
|
+
public static create(properties?: google.maps.routeoptimization.v1.Vehicle.LoadLimit.ILoadCost): google.maps.routeoptimization.v1.Vehicle.LoadLimit.LoadCost;
|
|
3440
|
+
|
|
3441
|
+
/**
|
|
3442
|
+
* Encodes the specified LoadCost message. Does not implicitly {@link google.maps.routeoptimization.v1.Vehicle.LoadLimit.LoadCost.verify|verify} messages.
|
|
3443
|
+
* @param message LoadCost message or plain object to encode
|
|
3444
|
+
* @param [writer] Writer to encode to
|
|
3445
|
+
* @returns Writer
|
|
3446
|
+
*/
|
|
3447
|
+
public static encode(message: google.maps.routeoptimization.v1.Vehicle.LoadLimit.ILoadCost, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3448
|
+
|
|
3449
|
+
/**
|
|
3450
|
+
* Encodes the specified LoadCost message, length delimited. Does not implicitly {@link google.maps.routeoptimization.v1.Vehicle.LoadLimit.LoadCost.verify|verify} messages.
|
|
3451
|
+
* @param message LoadCost message or plain object to encode
|
|
3452
|
+
* @param [writer] Writer to encode to
|
|
3453
|
+
* @returns Writer
|
|
3454
|
+
*/
|
|
3455
|
+
public static encodeDelimited(message: google.maps.routeoptimization.v1.Vehicle.LoadLimit.ILoadCost, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3456
|
+
|
|
3457
|
+
/**
|
|
3458
|
+
* Decodes a LoadCost message from the specified reader or buffer.
|
|
3459
|
+
* @param reader Reader or buffer to decode from
|
|
3460
|
+
* @param [length] Message length if known beforehand
|
|
3461
|
+
* @returns LoadCost
|
|
3462
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3463
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3464
|
+
*/
|
|
3465
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routeoptimization.v1.Vehicle.LoadLimit.LoadCost;
|
|
3466
|
+
|
|
3467
|
+
/**
|
|
3468
|
+
* Decodes a LoadCost message from the specified reader or buffer, length delimited.
|
|
3469
|
+
* @param reader Reader or buffer to decode from
|
|
3470
|
+
* @returns LoadCost
|
|
3471
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3472
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3473
|
+
*/
|
|
3474
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routeoptimization.v1.Vehicle.LoadLimit.LoadCost;
|
|
3475
|
+
|
|
3476
|
+
/**
|
|
3477
|
+
* Verifies a LoadCost message.
|
|
3478
|
+
* @param message Plain object to verify
|
|
3479
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3480
|
+
*/
|
|
3481
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3482
|
+
|
|
3483
|
+
/**
|
|
3484
|
+
* Creates a LoadCost message from a plain object. Also converts values to their respective internal types.
|
|
3485
|
+
* @param object Plain object
|
|
3486
|
+
* @returns LoadCost
|
|
3487
|
+
*/
|
|
3488
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routeoptimization.v1.Vehicle.LoadLimit.LoadCost;
|
|
3489
|
+
|
|
3490
|
+
/**
|
|
3491
|
+
* Creates a plain object from a LoadCost message. Also converts values to other types if specified.
|
|
3492
|
+
* @param message LoadCost
|
|
3493
|
+
* @param [options] Conversion options
|
|
3494
|
+
* @returns Plain object
|
|
3495
|
+
*/
|
|
3496
|
+
public static toObject(message: google.maps.routeoptimization.v1.Vehicle.LoadLimit.LoadCost, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3497
|
+
|
|
3498
|
+
/**
|
|
3499
|
+
* Converts this LoadCost to JSON.
|
|
3500
|
+
* @returns JSON object
|
|
3501
|
+
*/
|
|
3502
|
+
public toJSON(): { [k: string]: any };
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
* Gets the default type url for LoadCost
|
|
3506
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3507
|
+
* @returns The default type url
|
|
3508
|
+
*/
|
|
3509
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3510
|
+
}
|
|
2729
3511
|
}
|
|
2730
3512
|
|
|
2731
3513
|
/** Properties of a DurationLimit. */
|
|
@@ -3242,6 +4024,9 @@ export namespace google {
|
|
|
3242
4024
|
|
|
3243
4025
|
/** Waypoint sideOfRoad */
|
|
3244
4026
|
sideOfRoad?: (boolean|null);
|
|
4027
|
+
|
|
4028
|
+
/** Waypoint vehicleStopover */
|
|
4029
|
+
vehicleStopover?: (boolean|null);
|
|
3245
4030
|
}
|
|
3246
4031
|
|
|
3247
4032
|
/** Represents a Waypoint. */
|
|
@@ -3262,6 +4047,9 @@ export namespace google {
|
|
|
3262
4047
|
/** Waypoint sideOfRoad. */
|
|
3263
4048
|
public sideOfRoad: boolean;
|
|
3264
4049
|
|
|
4050
|
+
/** Waypoint vehicleStopover. */
|
|
4051
|
+
public vehicleStopover: boolean;
|
|
4052
|
+
|
|
3265
4053
|
/** Waypoint locationType. */
|
|
3266
4054
|
public locationType?: ("location"|"placeId");
|
|
3267
4055
|
|
|
@@ -3797,6 +4585,9 @@ export namespace google {
|
|
|
3797
4585
|
/** ShipmentRoute metrics */
|
|
3798
4586
|
metrics?: (google.maps.routeoptimization.v1.IAggregatedMetrics|null);
|
|
3799
4587
|
|
|
4588
|
+
/** ShipmentRoute vehicleFullness */
|
|
4589
|
+
vehicleFullness?: (google.maps.routeoptimization.v1.IVehicleFullness|null);
|
|
4590
|
+
|
|
3800
4591
|
/** ShipmentRoute routeCosts */
|
|
3801
4592
|
routeCosts?: ({ [k: string]: number }|null);
|
|
3802
4593
|
|
|
@@ -3843,6 +4634,9 @@ export namespace google {
|
|
|
3843
4634
|
/** ShipmentRoute metrics. */
|
|
3844
4635
|
public metrics?: (google.maps.routeoptimization.v1.IAggregatedMetrics|null);
|
|
3845
4636
|
|
|
4637
|
+
/** ShipmentRoute vehicleFullness. */
|
|
4638
|
+
public vehicleFullness?: (google.maps.routeoptimization.v1.IVehicleFullness|null);
|
|
4639
|
+
|
|
3846
4640
|
/** ShipmentRoute routeCosts. */
|
|
3847
4641
|
public routeCosts: { [k: string]: number };
|
|
3848
4642
|
|
|
@@ -3955,6 +4749,9 @@ export namespace google {
|
|
|
3955
4749
|
|
|
3956
4750
|
/** Visit visitLabel */
|
|
3957
4751
|
visitLabel?: (string|null);
|
|
4752
|
+
|
|
4753
|
+
/** Visit injectedSolutionLocationToken */
|
|
4754
|
+
injectedSolutionLocationToken?: (number|null);
|
|
3958
4755
|
}
|
|
3959
4756
|
|
|
3960
4757
|
/** Represents a Visit. */
|
|
@@ -3990,6 +4787,9 @@ export namespace google {
|
|
|
3990
4787
|
/** Visit visitLabel. */
|
|
3991
4788
|
public visitLabel: string;
|
|
3992
4789
|
|
|
4790
|
+
/** Visit injectedSolutionLocationToken. */
|
|
4791
|
+
public injectedSolutionLocationToken?: (number|null);
|
|
4792
|
+
|
|
3993
4793
|
/**
|
|
3994
4794
|
* Creates a new Visit instance using the specified properties.
|
|
3995
4795
|
* @param [properties] Properties to set
|
|
@@ -4532,6 +5332,12 @@ export namespace google {
|
|
|
4532
5332
|
/** SkippedShipment label */
|
|
4533
5333
|
label?: (string|null);
|
|
4534
5334
|
|
|
5335
|
+
/** SkippedShipment penaltyCost */
|
|
5336
|
+
penaltyCost?: (number|null);
|
|
5337
|
+
|
|
5338
|
+
/** SkippedShipment estimatedIncompatibleVehicleRatio */
|
|
5339
|
+
estimatedIncompatibleVehicleRatio?: (number|null);
|
|
5340
|
+
|
|
4535
5341
|
/** SkippedShipment reasons */
|
|
4536
5342
|
reasons?: (google.maps.routeoptimization.v1.SkippedShipment.IReason[]|null);
|
|
4537
5343
|
}
|
|
@@ -4551,6 +5357,12 @@ export namespace google {
|
|
|
4551
5357
|
/** SkippedShipment label. */
|
|
4552
5358
|
public label: string;
|
|
4553
5359
|
|
|
5360
|
+
/** SkippedShipment penaltyCost. */
|
|
5361
|
+
public penaltyCost?: (number|null);
|
|
5362
|
+
|
|
5363
|
+
/** SkippedShipment estimatedIncompatibleVehicleRatio. */
|
|
5364
|
+
public estimatedIncompatibleVehicleRatio?: (number|null);
|
|
5365
|
+
|
|
4554
5366
|
/** SkippedShipment reasons. */
|
|
4555
5367
|
public reasons: google.maps.routeoptimization.v1.SkippedShipment.IReason[];
|
|
4556
5368
|
|
|
@@ -4643,6 +5455,9 @@ export namespace google {
|
|
|
4643
5455
|
/** Reason exampleVehicleIndex */
|
|
4644
5456
|
exampleVehicleIndex?: (number|null);
|
|
4645
5457
|
|
|
5458
|
+
/** Reason exampleVehicleIndices */
|
|
5459
|
+
exampleVehicleIndices?: (number[]|null);
|
|
5460
|
+
|
|
4646
5461
|
/** Reason exampleExceededCapacityType */
|
|
4647
5462
|
exampleExceededCapacityType?: (string|null);
|
|
4648
5463
|
}
|
|
@@ -4662,6 +5477,9 @@ export namespace google {
|
|
|
4662
5477
|
/** Reason exampleVehicleIndex. */
|
|
4663
5478
|
public exampleVehicleIndex?: (number|null);
|
|
4664
5479
|
|
|
5480
|
+
/** Reason exampleVehicleIndices. */
|
|
5481
|
+
public exampleVehicleIndices: number[];
|
|
5482
|
+
|
|
4665
5483
|
/** Reason exampleExceededCapacityType. */
|
|
4666
5484
|
public exampleExceededCapacityType: string;
|
|
4667
5485
|
|
|
@@ -4754,7 +5572,12 @@ export namespace google {
|
|
|
4754
5572
|
CANNOT_BE_PERFORMED_WITHIN_VEHICLE_DURATION_LIMIT = 4,
|
|
4755
5573
|
CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TRAVEL_DURATION_LIMIT = 5,
|
|
4756
5574
|
CANNOT_BE_PERFORMED_WITHIN_VEHICLE_TIME_WINDOWS = 6,
|
|
4757
|
-
VEHICLE_NOT_ALLOWED = 7
|
|
5575
|
+
VEHICLE_NOT_ALLOWED = 7,
|
|
5576
|
+
VEHICLE_IGNORED = 8,
|
|
5577
|
+
SHIPMENT_IGNORED = 9,
|
|
5578
|
+
SKIPPED_IN_INJECTED_SOLUTION_CONSTRAINT = 10,
|
|
5579
|
+
VEHICLE_ROUTE_IS_FULLY_SEQUENCE_CONSTRAINED = 11,
|
|
5580
|
+
ZERO_PENALTY_COST = 13
|
|
4758
5581
|
}
|
|
4759
5582
|
}
|
|
4760
5583
|
}
|
|
@@ -4765,6 +5588,12 @@ export namespace google {
|
|
|
4765
5588
|
/** AggregatedMetrics performedShipmentCount */
|
|
4766
5589
|
performedShipmentCount?: (number|null);
|
|
4767
5590
|
|
|
5591
|
+
/** AggregatedMetrics performedMandatoryShipmentCount */
|
|
5592
|
+
performedMandatoryShipmentCount?: (number|null);
|
|
5593
|
+
|
|
5594
|
+
/** AggregatedMetrics performedShipmentPenaltyCostSum */
|
|
5595
|
+
performedShipmentPenaltyCostSum?: (number|null);
|
|
5596
|
+
|
|
4768
5597
|
/** AggregatedMetrics travelDuration */
|
|
4769
5598
|
travelDuration?: (google.protobuf.IDuration|null);
|
|
4770
5599
|
|
|
@@ -4802,6 +5631,12 @@ export namespace google {
|
|
|
4802
5631
|
/** AggregatedMetrics performedShipmentCount. */
|
|
4803
5632
|
public performedShipmentCount: number;
|
|
4804
5633
|
|
|
5634
|
+
/** AggregatedMetrics performedMandatoryShipmentCount. */
|
|
5635
|
+
public performedMandatoryShipmentCount?: (number|null);
|
|
5636
|
+
|
|
5637
|
+
/** AggregatedMetrics performedShipmentPenaltyCostSum. */
|
|
5638
|
+
public performedShipmentPenaltyCostSum?: (number|null);
|
|
5639
|
+
|
|
4805
5640
|
/** AggregatedMetrics travelDuration. */
|
|
4806
5641
|
public travelDuration?: (google.protobuf.IDuration|null);
|
|
4807
5642
|
|
|
@@ -4904,6 +5739,133 @@ export namespace google {
|
|
|
4904
5739
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4905
5740
|
}
|
|
4906
5741
|
|
|
5742
|
+
/** Properties of a VehicleFullness. */
|
|
5743
|
+
interface IVehicleFullness {
|
|
5744
|
+
|
|
5745
|
+
/** VehicleFullness maxFullness */
|
|
5746
|
+
maxFullness?: (number|null);
|
|
5747
|
+
|
|
5748
|
+
/** VehicleFullness distance */
|
|
5749
|
+
distance?: (number|null);
|
|
5750
|
+
|
|
5751
|
+
/** VehicleFullness travelDuration */
|
|
5752
|
+
travelDuration?: (number|null);
|
|
5753
|
+
|
|
5754
|
+
/** VehicleFullness activeDuration */
|
|
5755
|
+
activeDuration?: (number|null);
|
|
5756
|
+
|
|
5757
|
+
/** VehicleFullness maxLoad */
|
|
5758
|
+
maxLoad?: (number|null);
|
|
5759
|
+
|
|
5760
|
+
/** VehicleFullness activeSpan */
|
|
5761
|
+
activeSpan?: (number|null);
|
|
5762
|
+
}
|
|
5763
|
+
|
|
5764
|
+
/** Represents a VehicleFullness. */
|
|
5765
|
+
class VehicleFullness implements IVehicleFullness {
|
|
5766
|
+
|
|
5767
|
+
/**
|
|
5768
|
+
* Constructs a new VehicleFullness.
|
|
5769
|
+
* @param [properties] Properties to set
|
|
5770
|
+
*/
|
|
5771
|
+
constructor(properties?: google.maps.routeoptimization.v1.IVehicleFullness);
|
|
5772
|
+
|
|
5773
|
+
/** VehicleFullness maxFullness. */
|
|
5774
|
+
public maxFullness?: (number|null);
|
|
5775
|
+
|
|
5776
|
+
/** VehicleFullness distance. */
|
|
5777
|
+
public distance?: (number|null);
|
|
5778
|
+
|
|
5779
|
+
/** VehicleFullness travelDuration. */
|
|
5780
|
+
public travelDuration?: (number|null);
|
|
5781
|
+
|
|
5782
|
+
/** VehicleFullness activeDuration. */
|
|
5783
|
+
public activeDuration?: (number|null);
|
|
5784
|
+
|
|
5785
|
+
/** VehicleFullness maxLoad. */
|
|
5786
|
+
public maxLoad?: (number|null);
|
|
5787
|
+
|
|
5788
|
+
/** VehicleFullness activeSpan. */
|
|
5789
|
+
public activeSpan?: (number|null);
|
|
5790
|
+
|
|
5791
|
+
/**
|
|
5792
|
+
* Creates a new VehicleFullness instance using the specified properties.
|
|
5793
|
+
* @param [properties] Properties to set
|
|
5794
|
+
* @returns VehicleFullness instance
|
|
5795
|
+
*/
|
|
5796
|
+
public static create(properties?: google.maps.routeoptimization.v1.IVehicleFullness): google.maps.routeoptimization.v1.VehicleFullness;
|
|
5797
|
+
|
|
5798
|
+
/**
|
|
5799
|
+
* Encodes the specified VehicleFullness message. Does not implicitly {@link google.maps.routeoptimization.v1.VehicleFullness.verify|verify} messages.
|
|
5800
|
+
* @param message VehicleFullness message or plain object to encode
|
|
5801
|
+
* @param [writer] Writer to encode to
|
|
5802
|
+
* @returns Writer
|
|
5803
|
+
*/
|
|
5804
|
+
public static encode(message: google.maps.routeoptimization.v1.IVehicleFullness, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5805
|
+
|
|
5806
|
+
/**
|
|
5807
|
+
* Encodes the specified VehicleFullness message, length delimited. Does not implicitly {@link google.maps.routeoptimization.v1.VehicleFullness.verify|verify} messages.
|
|
5808
|
+
* @param message VehicleFullness message or plain object to encode
|
|
5809
|
+
* @param [writer] Writer to encode to
|
|
5810
|
+
* @returns Writer
|
|
5811
|
+
*/
|
|
5812
|
+
public static encodeDelimited(message: google.maps.routeoptimization.v1.IVehicleFullness, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5813
|
+
|
|
5814
|
+
/**
|
|
5815
|
+
* Decodes a VehicleFullness message from the specified reader or buffer.
|
|
5816
|
+
* @param reader Reader or buffer to decode from
|
|
5817
|
+
* @param [length] Message length if known beforehand
|
|
5818
|
+
* @returns VehicleFullness
|
|
5819
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5820
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5821
|
+
*/
|
|
5822
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routeoptimization.v1.VehicleFullness;
|
|
5823
|
+
|
|
5824
|
+
/**
|
|
5825
|
+
* Decodes a VehicleFullness message from the specified reader or buffer, length delimited.
|
|
5826
|
+
* @param reader Reader or buffer to decode from
|
|
5827
|
+
* @returns VehicleFullness
|
|
5828
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5829
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5830
|
+
*/
|
|
5831
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routeoptimization.v1.VehicleFullness;
|
|
5832
|
+
|
|
5833
|
+
/**
|
|
5834
|
+
* Verifies a VehicleFullness message.
|
|
5835
|
+
* @param message Plain object to verify
|
|
5836
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5837
|
+
*/
|
|
5838
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5839
|
+
|
|
5840
|
+
/**
|
|
5841
|
+
* Creates a VehicleFullness message from a plain object. Also converts values to their respective internal types.
|
|
5842
|
+
* @param object Plain object
|
|
5843
|
+
* @returns VehicleFullness
|
|
5844
|
+
*/
|
|
5845
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routeoptimization.v1.VehicleFullness;
|
|
5846
|
+
|
|
5847
|
+
/**
|
|
5848
|
+
* Creates a plain object from a VehicleFullness message. Also converts values to other types if specified.
|
|
5849
|
+
* @param message VehicleFullness
|
|
5850
|
+
* @param [options] Conversion options
|
|
5851
|
+
* @returns Plain object
|
|
5852
|
+
*/
|
|
5853
|
+
public static toObject(message: google.maps.routeoptimization.v1.VehicleFullness, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5854
|
+
|
|
5855
|
+
/**
|
|
5856
|
+
* Converts this VehicleFullness to JSON.
|
|
5857
|
+
* @returns JSON object
|
|
5858
|
+
*/
|
|
5859
|
+
public toJSON(): { [k: string]: any };
|
|
5860
|
+
|
|
5861
|
+
/**
|
|
5862
|
+
* Gets the default type url for VehicleFullness
|
|
5863
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5864
|
+
* @returns The default type url
|
|
5865
|
+
*/
|
|
5866
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5867
|
+
}
|
|
5868
|
+
|
|
4907
5869
|
/** Properties of an InjectedSolutionConstraint. */
|
|
4908
5870
|
interface IInjectedSolutionConstraint {
|
|
4909
5871
|
|