@googlemaps/routing 1.3.0 → 2.0.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/CHANGELOG.md +24 -0
- package/build/protos/google/geo/type/viewport.proto +1 -1
- package/build/protos/google/maps/routing/v2/fallback_info.proto +1 -2
- package/build/protos/google/maps/routing/v2/geocoding_results.proto +1 -2
- package/build/protos/google/maps/routing/v2/localized_time.proto +1 -2
- package/build/protos/google/maps/routing/v2/location.proto +1 -2
- package/build/protos/google/maps/routing/v2/maneuver.proto +1 -2
- package/build/protos/google/maps/routing/v2/navigation_instruction.proto +1 -2
- package/build/protos/google/maps/routing/v2/polyline.proto +1 -2
- package/build/protos/google/maps/routing/v2/polyline_details.proto +84 -0
- package/build/protos/google/maps/routing/v2/route.proto +21 -14
- package/build/protos/google/maps/routing/v2/route_label.proto +4 -2
- package/build/protos/google/maps/routing/v2/route_modifiers.proto +1 -2
- package/build/protos/google/maps/routing/v2/route_travel_mode.proto +1 -2
- package/build/protos/google/maps/routing/v2/routes_service.proto +36 -5
- package/build/protos/google/maps/routing/v2/routing_preference.proto +1 -2
- package/build/protos/google/maps/routing/v2/speed_reading_interval.proto +1 -2
- package/build/protos/google/maps/routing/v2/toll_info.proto +1 -1
- package/build/protos/google/maps/routing/v2/toll_passes.proto +1 -2
- package/build/protos/google/maps/routing/v2/traffic_model.proto +1 -2
- package/build/protos/google/maps/routing/v2/transit.proto +1 -2
- package/build/protos/google/maps/routing/v2/transit_preferences.proto +1 -2
- package/build/protos/google/maps/routing/v2/units.proto +1 -2
- package/build/protos/google/maps/routing/v2/vehicle_emission_type.proto +1 -2
- package/build/protos/google/maps/routing/v2/vehicle_info.proto +1 -1
- package/build/protos/google/maps/routing/v2/waypoint.proto +1 -2
- package/build/protos/protos.d.ts +691 -253
- package/build/protos/protos.js +1623 -511
- package/build/protos/protos.json +141 -50
- package/build/src/index.js +1 -1
- package/build/src/v2/gapic_metadata.json +38 -0
- package/build/src/v2/index.js +1 -1
- package/build/src/v2/routes_client.d.ts +6 -2
- package/build/src/v2/routes_client.js +52 -21
- package/build/src/v2/routes_proto_list.json +27 -0
- package/package.json +16 -16
package/build/protos/protos.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2025 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -1325,212 +1325,6 @@ export namespace google {
|
|
|
1325
1325
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
|
-
/** Properties of a Duration. */
|
|
1329
|
-
interface IDuration {
|
|
1330
|
-
|
|
1331
|
-
/** Duration seconds */
|
|
1332
|
-
seconds?: (number|Long|string|null);
|
|
1333
|
-
|
|
1334
|
-
/** Duration nanos */
|
|
1335
|
-
nanos?: (number|null);
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
/** Represents a Duration. */
|
|
1339
|
-
class Duration implements IDuration {
|
|
1340
|
-
|
|
1341
|
-
/**
|
|
1342
|
-
* Constructs a new Duration.
|
|
1343
|
-
* @param [properties] Properties to set
|
|
1344
|
-
*/
|
|
1345
|
-
constructor(properties?: google.protobuf.IDuration);
|
|
1346
|
-
|
|
1347
|
-
/** Duration seconds. */
|
|
1348
|
-
public seconds: (number|Long|string);
|
|
1349
|
-
|
|
1350
|
-
/** Duration nanos. */
|
|
1351
|
-
public nanos: number;
|
|
1352
|
-
|
|
1353
|
-
/**
|
|
1354
|
-
* Creates a new Duration instance using the specified properties.
|
|
1355
|
-
* @param [properties] Properties to set
|
|
1356
|
-
* @returns Duration instance
|
|
1357
|
-
*/
|
|
1358
|
-
public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
|
|
1359
|
-
|
|
1360
|
-
/**
|
|
1361
|
-
* Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
|
1362
|
-
* @param message Duration message or plain object to encode
|
|
1363
|
-
* @param [writer] Writer to encode to
|
|
1364
|
-
* @returns Writer
|
|
1365
|
-
*/
|
|
1366
|
-
public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1367
|
-
|
|
1368
|
-
/**
|
|
1369
|
-
* Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
|
1370
|
-
* @param message Duration message or plain object to encode
|
|
1371
|
-
* @param [writer] Writer to encode to
|
|
1372
|
-
* @returns Writer
|
|
1373
|
-
*/
|
|
1374
|
-
public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1375
|
-
|
|
1376
|
-
/**
|
|
1377
|
-
* Decodes a Duration message from the specified reader or buffer.
|
|
1378
|
-
* @param reader Reader or buffer to decode from
|
|
1379
|
-
* @param [length] Message length if known beforehand
|
|
1380
|
-
* @returns Duration
|
|
1381
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1382
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1383
|
-
*/
|
|
1384
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
|
|
1385
|
-
|
|
1386
|
-
/**
|
|
1387
|
-
* Decodes a Duration message from the specified reader or buffer, length delimited.
|
|
1388
|
-
* @param reader Reader or buffer to decode from
|
|
1389
|
-
* @returns Duration
|
|
1390
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1391
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1392
|
-
*/
|
|
1393
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
|
|
1394
|
-
|
|
1395
|
-
/**
|
|
1396
|
-
* Verifies a Duration message.
|
|
1397
|
-
* @param message Plain object to verify
|
|
1398
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
1399
|
-
*/
|
|
1400
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
1401
|
-
|
|
1402
|
-
/**
|
|
1403
|
-
* Creates a Duration message from a plain object. Also converts values to their respective internal types.
|
|
1404
|
-
* @param object Plain object
|
|
1405
|
-
* @returns Duration
|
|
1406
|
-
*/
|
|
1407
|
-
public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
|
|
1408
|
-
|
|
1409
|
-
/**
|
|
1410
|
-
* Creates a plain object from a Duration message. Also converts values to other types if specified.
|
|
1411
|
-
* @param message Duration
|
|
1412
|
-
* @param [options] Conversion options
|
|
1413
|
-
* @returns Plain object
|
|
1414
|
-
*/
|
|
1415
|
-
public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1416
|
-
|
|
1417
|
-
/**
|
|
1418
|
-
* Converts this Duration to JSON.
|
|
1419
|
-
* @returns JSON object
|
|
1420
|
-
*/
|
|
1421
|
-
public toJSON(): { [k: string]: any };
|
|
1422
|
-
|
|
1423
|
-
/**
|
|
1424
|
-
* Gets the default type url for Duration
|
|
1425
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1426
|
-
* @returns The default type url
|
|
1427
|
-
*/
|
|
1428
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
/** Properties of a Timestamp. */
|
|
1432
|
-
interface ITimestamp {
|
|
1433
|
-
|
|
1434
|
-
/** Timestamp seconds */
|
|
1435
|
-
seconds?: (number|Long|string|null);
|
|
1436
|
-
|
|
1437
|
-
/** Timestamp nanos */
|
|
1438
|
-
nanos?: (number|null);
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
/** Represents a Timestamp. */
|
|
1442
|
-
class Timestamp implements ITimestamp {
|
|
1443
|
-
|
|
1444
|
-
/**
|
|
1445
|
-
* Constructs a new Timestamp.
|
|
1446
|
-
* @param [properties] Properties to set
|
|
1447
|
-
*/
|
|
1448
|
-
constructor(properties?: google.protobuf.ITimestamp);
|
|
1449
|
-
|
|
1450
|
-
/** Timestamp seconds. */
|
|
1451
|
-
public seconds: (number|Long|string);
|
|
1452
|
-
|
|
1453
|
-
/** Timestamp nanos. */
|
|
1454
|
-
public nanos: number;
|
|
1455
|
-
|
|
1456
|
-
/**
|
|
1457
|
-
* Creates a new Timestamp instance using the specified properties.
|
|
1458
|
-
* @param [properties] Properties to set
|
|
1459
|
-
* @returns Timestamp instance
|
|
1460
|
-
*/
|
|
1461
|
-
public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
|
|
1462
|
-
|
|
1463
|
-
/**
|
|
1464
|
-
* Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
|
1465
|
-
* @param message Timestamp message or plain object to encode
|
|
1466
|
-
* @param [writer] Writer to encode to
|
|
1467
|
-
* @returns Writer
|
|
1468
|
-
*/
|
|
1469
|
-
public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1470
|
-
|
|
1471
|
-
/**
|
|
1472
|
-
* Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
|
1473
|
-
* @param message Timestamp message or plain object to encode
|
|
1474
|
-
* @param [writer] Writer to encode to
|
|
1475
|
-
* @returns Writer
|
|
1476
|
-
*/
|
|
1477
|
-
public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1478
|
-
|
|
1479
|
-
/**
|
|
1480
|
-
* Decodes a Timestamp message from the specified reader or buffer.
|
|
1481
|
-
* @param reader Reader or buffer to decode from
|
|
1482
|
-
* @param [length] Message length if known beforehand
|
|
1483
|
-
* @returns Timestamp
|
|
1484
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1485
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1486
|
-
*/
|
|
1487
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
|
|
1488
|
-
|
|
1489
|
-
/**
|
|
1490
|
-
* Decodes a Timestamp message from the specified reader or buffer, length delimited.
|
|
1491
|
-
* @param reader Reader or buffer to decode from
|
|
1492
|
-
* @returns Timestamp
|
|
1493
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1494
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1495
|
-
*/
|
|
1496
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
|
|
1497
|
-
|
|
1498
|
-
/**
|
|
1499
|
-
* Verifies a Timestamp message.
|
|
1500
|
-
* @param message Plain object to verify
|
|
1501
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
1502
|
-
*/
|
|
1503
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
1504
|
-
|
|
1505
|
-
/**
|
|
1506
|
-
* Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
|
|
1507
|
-
* @param object Plain object
|
|
1508
|
-
* @returns Timestamp
|
|
1509
|
-
*/
|
|
1510
|
-
public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
|
|
1511
|
-
|
|
1512
|
-
/**
|
|
1513
|
-
* Creates a plain object from a Timestamp message. Also converts values to other types if specified.
|
|
1514
|
-
* @param message Timestamp
|
|
1515
|
-
* @param [options] Conversion options
|
|
1516
|
-
* @returns Plain object
|
|
1517
|
-
*/
|
|
1518
|
-
public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1519
|
-
|
|
1520
|
-
/**
|
|
1521
|
-
* Converts this Timestamp to JSON.
|
|
1522
|
-
* @returns JSON object
|
|
1523
|
-
*/
|
|
1524
|
-
public toJSON(): { [k: string]: any };
|
|
1525
|
-
|
|
1526
|
-
/**
|
|
1527
|
-
* Gets the default type url for Timestamp
|
|
1528
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1529
|
-
* @returns The default type url
|
|
1530
|
-
*/
|
|
1531
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
1328
|
/** Properties of a FileDescriptorSet. */
|
|
1535
1329
|
interface IFileDescriptorSet {
|
|
1536
1330
|
|
|
@@ -5623,6 +5417,212 @@ export namespace google {
|
|
|
5623
5417
|
}
|
|
5624
5418
|
}
|
|
5625
5419
|
}
|
|
5420
|
+
|
|
5421
|
+
/** Properties of a Duration. */
|
|
5422
|
+
interface IDuration {
|
|
5423
|
+
|
|
5424
|
+
/** Duration seconds */
|
|
5425
|
+
seconds?: (number|Long|string|null);
|
|
5426
|
+
|
|
5427
|
+
/** Duration nanos */
|
|
5428
|
+
nanos?: (number|null);
|
|
5429
|
+
}
|
|
5430
|
+
|
|
5431
|
+
/** Represents a Duration. */
|
|
5432
|
+
class Duration implements IDuration {
|
|
5433
|
+
|
|
5434
|
+
/**
|
|
5435
|
+
* Constructs a new Duration.
|
|
5436
|
+
* @param [properties] Properties to set
|
|
5437
|
+
*/
|
|
5438
|
+
constructor(properties?: google.protobuf.IDuration);
|
|
5439
|
+
|
|
5440
|
+
/** Duration seconds. */
|
|
5441
|
+
public seconds: (number|Long|string);
|
|
5442
|
+
|
|
5443
|
+
/** Duration nanos. */
|
|
5444
|
+
public nanos: number;
|
|
5445
|
+
|
|
5446
|
+
/**
|
|
5447
|
+
* Creates a new Duration instance using the specified properties.
|
|
5448
|
+
* @param [properties] Properties to set
|
|
5449
|
+
* @returns Duration instance
|
|
5450
|
+
*/
|
|
5451
|
+
public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration;
|
|
5452
|
+
|
|
5453
|
+
/**
|
|
5454
|
+
* Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
|
5455
|
+
* @param message Duration message or plain object to encode
|
|
5456
|
+
* @param [writer] Writer to encode to
|
|
5457
|
+
* @returns Writer
|
|
5458
|
+
*/
|
|
5459
|
+
public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5460
|
+
|
|
5461
|
+
/**
|
|
5462
|
+
* Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
|
5463
|
+
* @param message Duration message or plain object to encode
|
|
5464
|
+
* @param [writer] Writer to encode to
|
|
5465
|
+
* @returns Writer
|
|
5466
|
+
*/
|
|
5467
|
+
public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5468
|
+
|
|
5469
|
+
/**
|
|
5470
|
+
* Decodes a Duration message from the specified reader or buffer.
|
|
5471
|
+
* @param reader Reader or buffer to decode from
|
|
5472
|
+
* @param [length] Message length if known beforehand
|
|
5473
|
+
* @returns Duration
|
|
5474
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5475
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5476
|
+
*/
|
|
5477
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Duration;
|
|
5478
|
+
|
|
5479
|
+
/**
|
|
5480
|
+
* Decodes a Duration message from the specified reader or buffer, length delimited.
|
|
5481
|
+
* @param reader Reader or buffer to decode from
|
|
5482
|
+
* @returns Duration
|
|
5483
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5484
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5485
|
+
*/
|
|
5486
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Duration;
|
|
5487
|
+
|
|
5488
|
+
/**
|
|
5489
|
+
* Verifies a Duration message.
|
|
5490
|
+
* @param message Plain object to verify
|
|
5491
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5492
|
+
*/
|
|
5493
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5494
|
+
|
|
5495
|
+
/**
|
|
5496
|
+
* Creates a Duration message from a plain object. Also converts values to their respective internal types.
|
|
5497
|
+
* @param object Plain object
|
|
5498
|
+
* @returns Duration
|
|
5499
|
+
*/
|
|
5500
|
+
public static fromObject(object: { [k: string]: any }): google.protobuf.Duration;
|
|
5501
|
+
|
|
5502
|
+
/**
|
|
5503
|
+
* Creates a plain object from a Duration message. Also converts values to other types if specified.
|
|
5504
|
+
* @param message Duration
|
|
5505
|
+
* @param [options] Conversion options
|
|
5506
|
+
* @returns Plain object
|
|
5507
|
+
*/
|
|
5508
|
+
public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5509
|
+
|
|
5510
|
+
/**
|
|
5511
|
+
* Converts this Duration to JSON.
|
|
5512
|
+
* @returns JSON object
|
|
5513
|
+
*/
|
|
5514
|
+
public toJSON(): { [k: string]: any };
|
|
5515
|
+
|
|
5516
|
+
/**
|
|
5517
|
+
* Gets the default type url for Duration
|
|
5518
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5519
|
+
* @returns The default type url
|
|
5520
|
+
*/
|
|
5521
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5522
|
+
}
|
|
5523
|
+
|
|
5524
|
+
/** Properties of a Timestamp. */
|
|
5525
|
+
interface ITimestamp {
|
|
5526
|
+
|
|
5527
|
+
/** Timestamp seconds */
|
|
5528
|
+
seconds?: (number|Long|string|null);
|
|
5529
|
+
|
|
5530
|
+
/** Timestamp nanos */
|
|
5531
|
+
nanos?: (number|null);
|
|
5532
|
+
}
|
|
5533
|
+
|
|
5534
|
+
/** Represents a Timestamp. */
|
|
5535
|
+
class Timestamp implements ITimestamp {
|
|
5536
|
+
|
|
5537
|
+
/**
|
|
5538
|
+
* Constructs a new Timestamp.
|
|
5539
|
+
* @param [properties] Properties to set
|
|
5540
|
+
*/
|
|
5541
|
+
constructor(properties?: google.protobuf.ITimestamp);
|
|
5542
|
+
|
|
5543
|
+
/** Timestamp seconds. */
|
|
5544
|
+
public seconds: (number|Long|string);
|
|
5545
|
+
|
|
5546
|
+
/** Timestamp nanos. */
|
|
5547
|
+
public nanos: number;
|
|
5548
|
+
|
|
5549
|
+
/**
|
|
5550
|
+
* Creates a new Timestamp instance using the specified properties.
|
|
5551
|
+
* @param [properties] Properties to set
|
|
5552
|
+
* @returns Timestamp instance
|
|
5553
|
+
*/
|
|
5554
|
+
public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
|
|
5555
|
+
|
|
5556
|
+
/**
|
|
5557
|
+
* Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
|
5558
|
+
* @param message Timestamp message or plain object to encode
|
|
5559
|
+
* @param [writer] Writer to encode to
|
|
5560
|
+
* @returns Writer
|
|
5561
|
+
*/
|
|
5562
|
+
public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5563
|
+
|
|
5564
|
+
/**
|
|
5565
|
+
* Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
|
5566
|
+
* @param message Timestamp message or plain object to encode
|
|
5567
|
+
* @param [writer] Writer to encode to
|
|
5568
|
+
* @returns Writer
|
|
5569
|
+
*/
|
|
5570
|
+
public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5571
|
+
|
|
5572
|
+
/**
|
|
5573
|
+
* Decodes a Timestamp message from the specified reader or buffer.
|
|
5574
|
+
* @param reader Reader or buffer to decode from
|
|
5575
|
+
* @param [length] Message length if known beforehand
|
|
5576
|
+
* @returns Timestamp
|
|
5577
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5578
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5579
|
+
*/
|
|
5580
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
|
|
5581
|
+
|
|
5582
|
+
/**
|
|
5583
|
+
* Decodes a Timestamp message from the specified reader or buffer, length delimited.
|
|
5584
|
+
* @param reader Reader or buffer to decode from
|
|
5585
|
+
* @returns Timestamp
|
|
5586
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5587
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5588
|
+
*/
|
|
5589
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
|
|
5590
|
+
|
|
5591
|
+
/**
|
|
5592
|
+
* Verifies a Timestamp message.
|
|
5593
|
+
* @param message Plain object to verify
|
|
5594
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5595
|
+
*/
|
|
5596
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5597
|
+
|
|
5598
|
+
/**
|
|
5599
|
+
* Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
|
|
5600
|
+
* @param object Plain object
|
|
5601
|
+
* @returns Timestamp
|
|
5602
|
+
*/
|
|
5603
|
+
public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
|
|
5604
|
+
|
|
5605
|
+
/**
|
|
5606
|
+
* Creates a plain object from a Timestamp message. Also converts values to other types if specified.
|
|
5607
|
+
* @param message Timestamp
|
|
5608
|
+
* @param [options] Conversion options
|
|
5609
|
+
* @returns Plain object
|
|
5610
|
+
*/
|
|
5611
|
+
public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5612
|
+
|
|
5613
|
+
/**
|
|
5614
|
+
* Converts this Timestamp to JSON.
|
|
5615
|
+
* @returns JSON object
|
|
5616
|
+
*/
|
|
5617
|
+
public toJSON(): { [k: string]: any };
|
|
5618
|
+
|
|
5619
|
+
/**
|
|
5620
|
+
* Gets the default type url for Timestamp
|
|
5621
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5622
|
+
* @returns The default type url
|
|
5623
|
+
*/
|
|
5624
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5625
|
+
}
|
|
5626
5626
|
}
|
|
5627
5627
|
|
|
5628
5628
|
/** Namespace geo. */
|
|
@@ -6789,83 +6789,511 @@ export namespace google {
|
|
|
6789
6789
|
* @param [writer] Writer to encode to
|
|
6790
6790
|
* @returns Writer
|
|
6791
6791
|
*/
|
|
6792
|
-
public static encode(message: google.maps.routing.v2.IPolyline, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
6792
|
+
public static encode(message: google.maps.routing.v2.IPolyline, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
6793
|
+
|
|
6794
|
+
/**
|
|
6795
|
+
* Encodes the specified Polyline message, length delimited. Does not implicitly {@link google.maps.routing.v2.Polyline.verify|verify} messages.
|
|
6796
|
+
* @param message Polyline message or plain object to encode
|
|
6797
|
+
* @param [writer] Writer to encode to
|
|
6798
|
+
* @returns Writer
|
|
6799
|
+
*/
|
|
6800
|
+
public static encodeDelimited(message: google.maps.routing.v2.IPolyline, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
6801
|
+
|
|
6802
|
+
/**
|
|
6803
|
+
* Decodes a Polyline message from the specified reader or buffer.
|
|
6804
|
+
* @param reader Reader or buffer to decode from
|
|
6805
|
+
* @param [length] Message length if known beforehand
|
|
6806
|
+
* @returns Polyline
|
|
6807
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6808
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6809
|
+
*/
|
|
6810
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.Polyline;
|
|
6811
|
+
|
|
6812
|
+
/**
|
|
6813
|
+
* Decodes a Polyline message from the specified reader or buffer, length delimited.
|
|
6814
|
+
* @param reader Reader or buffer to decode from
|
|
6815
|
+
* @returns Polyline
|
|
6816
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6817
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6818
|
+
*/
|
|
6819
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.Polyline;
|
|
6820
|
+
|
|
6821
|
+
/**
|
|
6822
|
+
* Verifies a Polyline message.
|
|
6823
|
+
* @param message Plain object to verify
|
|
6824
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
6825
|
+
*/
|
|
6826
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
6827
|
+
|
|
6828
|
+
/**
|
|
6829
|
+
* Creates a Polyline message from a plain object. Also converts values to their respective internal types.
|
|
6830
|
+
* @param object Plain object
|
|
6831
|
+
* @returns Polyline
|
|
6832
|
+
*/
|
|
6833
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.Polyline;
|
|
6834
|
+
|
|
6835
|
+
/**
|
|
6836
|
+
* Creates a plain object from a Polyline message. Also converts values to other types if specified.
|
|
6837
|
+
* @param message Polyline
|
|
6838
|
+
* @param [options] Conversion options
|
|
6839
|
+
* @returns Plain object
|
|
6840
|
+
*/
|
|
6841
|
+
public static toObject(message: google.maps.routing.v2.Polyline, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
6842
|
+
|
|
6843
|
+
/**
|
|
6844
|
+
* Converts this Polyline to JSON.
|
|
6845
|
+
* @returns JSON object
|
|
6846
|
+
*/
|
|
6847
|
+
public toJSON(): { [k: string]: any };
|
|
6848
|
+
|
|
6849
|
+
/**
|
|
6850
|
+
* Gets the default type url for Polyline
|
|
6851
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
6852
|
+
* @returns The default type url
|
|
6853
|
+
*/
|
|
6854
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
6855
|
+
}
|
|
6856
|
+
|
|
6857
|
+
/** PolylineQuality enum. */
|
|
6858
|
+
enum PolylineQuality {
|
|
6859
|
+
POLYLINE_QUALITY_UNSPECIFIED = 0,
|
|
6860
|
+
HIGH_QUALITY = 1,
|
|
6861
|
+
OVERVIEW = 2
|
|
6862
|
+
}
|
|
6863
|
+
|
|
6864
|
+
/** PolylineEncoding enum. */
|
|
6865
|
+
enum PolylineEncoding {
|
|
6866
|
+
POLYLINE_ENCODING_UNSPECIFIED = 0,
|
|
6867
|
+
ENCODED_POLYLINE = 1,
|
|
6868
|
+
GEO_JSON_LINESTRING = 2
|
|
6869
|
+
}
|
|
6870
|
+
|
|
6871
|
+
/** Properties of a PolylineDetails. */
|
|
6872
|
+
interface IPolylineDetails {
|
|
6873
|
+
|
|
6874
|
+
/** PolylineDetails flyoverInfo */
|
|
6875
|
+
flyoverInfo?: (google.maps.routing.v2.PolylineDetails.IFlyoverInfo[]|null);
|
|
6876
|
+
|
|
6877
|
+
/** PolylineDetails narrowRoadInfo */
|
|
6878
|
+
narrowRoadInfo?: (google.maps.routing.v2.PolylineDetails.INarrowRoadInfo[]|null);
|
|
6879
|
+
}
|
|
6880
|
+
|
|
6881
|
+
/** Represents a PolylineDetails. */
|
|
6882
|
+
class PolylineDetails implements IPolylineDetails {
|
|
6883
|
+
|
|
6884
|
+
/**
|
|
6885
|
+
* Constructs a new PolylineDetails.
|
|
6886
|
+
* @param [properties] Properties to set
|
|
6887
|
+
*/
|
|
6888
|
+
constructor(properties?: google.maps.routing.v2.IPolylineDetails);
|
|
6889
|
+
|
|
6890
|
+
/** PolylineDetails flyoverInfo. */
|
|
6891
|
+
public flyoverInfo: google.maps.routing.v2.PolylineDetails.IFlyoverInfo[];
|
|
6892
|
+
|
|
6893
|
+
/** PolylineDetails narrowRoadInfo. */
|
|
6894
|
+
public narrowRoadInfo: google.maps.routing.v2.PolylineDetails.INarrowRoadInfo[];
|
|
6895
|
+
|
|
6896
|
+
/**
|
|
6897
|
+
* Creates a new PolylineDetails instance using the specified properties.
|
|
6898
|
+
* @param [properties] Properties to set
|
|
6899
|
+
* @returns PolylineDetails instance
|
|
6900
|
+
*/
|
|
6901
|
+
public static create(properties?: google.maps.routing.v2.IPolylineDetails): google.maps.routing.v2.PolylineDetails;
|
|
6902
|
+
|
|
6903
|
+
/**
|
|
6904
|
+
* Encodes the specified PolylineDetails message. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.verify|verify} messages.
|
|
6905
|
+
* @param message PolylineDetails message or plain object to encode
|
|
6906
|
+
* @param [writer] Writer to encode to
|
|
6907
|
+
* @returns Writer
|
|
6908
|
+
*/
|
|
6909
|
+
public static encode(message: google.maps.routing.v2.IPolylineDetails, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
6793
6910
|
|
|
6794
6911
|
/**
|
|
6795
|
-
* Encodes the specified
|
|
6796
|
-
* @param message
|
|
6912
|
+
* Encodes the specified PolylineDetails message, length delimited. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.verify|verify} messages.
|
|
6913
|
+
* @param message PolylineDetails message or plain object to encode
|
|
6797
6914
|
* @param [writer] Writer to encode to
|
|
6798
6915
|
* @returns Writer
|
|
6799
6916
|
*/
|
|
6800
|
-
public static encodeDelimited(message: google.maps.routing.v2.
|
|
6917
|
+
public static encodeDelimited(message: google.maps.routing.v2.IPolylineDetails, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
6801
6918
|
|
|
6802
6919
|
/**
|
|
6803
|
-
* Decodes a
|
|
6920
|
+
* Decodes a PolylineDetails message from the specified reader or buffer.
|
|
6804
6921
|
* @param reader Reader or buffer to decode from
|
|
6805
6922
|
* @param [length] Message length if known beforehand
|
|
6806
|
-
* @returns
|
|
6923
|
+
* @returns PolylineDetails
|
|
6807
6924
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6808
6925
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6809
6926
|
*/
|
|
6810
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.
|
|
6927
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.PolylineDetails;
|
|
6811
6928
|
|
|
6812
6929
|
/**
|
|
6813
|
-
* Decodes a
|
|
6930
|
+
* Decodes a PolylineDetails message from the specified reader or buffer, length delimited.
|
|
6814
6931
|
* @param reader Reader or buffer to decode from
|
|
6815
|
-
* @returns
|
|
6932
|
+
* @returns PolylineDetails
|
|
6816
6933
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6817
6934
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6818
6935
|
*/
|
|
6819
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.
|
|
6936
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.PolylineDetails;
|
|
6820
6937
|
|
|
6821
6938
|
/**
|
|
6822
|
-
* Verifies a
|
|
6939
|
+
* Verifies a PolylineDetails message.
|
|
6823
6940
|
* @param message Plain object to verify
|
|
6824
6941
|
* @returns `null` if valid, otherwise the reason why it is not
|
|
6825
6942
|
*/
|
|
6826
6943
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
6827
6944
|
|
|
6828
6945
|
/**
|
|
6829
|
-
* Creates a
|
|
6946
|
+
* Creates a PolylineDetails message from a plain object. Also converts values to their respective internal types.
|
|
6830
6947
|
* @param object Plain object
|
|
6831
|
-
* @returns
|
|
6948
|
+
* @returns PolylineDetails
|
|
6832
6949
|
*/
|
|
6833
|
-
public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.
|
|
6950
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.PolylineDetails;
|
|
6834
6951
|
|
|
6835
6952
|
/**
|
|
6836
|
-
* Creates a plain object from a
|
|
6837
|
-
* @param message
|
|
6953
|
+
* Creates a plain object from a PolylineDetails message. Also converts values to other types if specified.
|
|
6954
|
+
* @param message PolylineDetails
|
|
6838
6955
|
* @param [options] Conversion options
|
|
6839
6956
|
* @returns Plain object
|
|
6840
6957
|
*/
|
|
6841
|
-
public static toObject(message: google.maps.routing.v2.
|
|
6958
|
+
public static toObject(message: google.maps.routing.v2.PolylineDetails, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
6842
6959
|
|
|
6843
6960
|
/**
|
|
6844
|
-
* Converts this
|
|
6961
|
+
* Converts this PolylineDetails to JSON.
|
|
6845
6962
|
* @returns JSON object
|
|
6846
6963
|
*/
|
|
6847
6964
|
public toJSON(): { [k: string]: any };
|
|
6848
6965
|
|
|
6849
6966
|
/**
|
|
6850
|
-
* Gets the default type url for
|
|
6967
|
+
* Gets the default type url for PolylineDetails
|
|
6851
6968
|
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
6852
6969
|
* @returns The default type url
|
|
6853
6970
|
*/
|
|
6854
6971
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
6855
6972
|
}
|
|
6856
6973
|
|
|
6857
|
-
|
|
6858
|
-
enum PolylineQuality {
|
|
6859
|
-
POLYLINE_QUALITY_UNSPECIFIED = 0,
|
|
6860
|
-
HIGH_QUALITY = 1,
|
|
6861
|
-
OVERVIEW = 2
|
|
6862
|
-
}
|
|
6974
|
+
namespace PolylineDetails {
|
|
6863
6975
|
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6976
|
+
/** Properties of a PolylinePointIndex. */
|
|
6977
|
+
interface IPolylinePointIndex {
|
|
6978
|
+
|
|
6979
|
+
/** PolylinePointIndex startIndex */
|
|
6980
|
+
startIndex?: (number|null);
|
|
6981
|
+
|
|
6982
|
+
/** PolylinePointIndex endIndex */
|
|
6983
|
+
endIndex?: (number|null);
|
|
6984
|
+
}
|
|
6985
|
+
|
|
6986
|
+
/** Represents a PolylinePointIndex. */
|
|
6987
|
+
class PolylinePointIndex implements IPolylinePointIndex {
|
|
6988
|
+
|
|
6989
|
+
/**
|
|
6990
|
+
* Constructs a new PolylinePointIndex.
|
|
6991
|
+
* @param [properties] Properties to set
|
|
6992
|
+
*/
|
|
6993
|
+
constructor(properties?: google.maps.routing.v2.PolylineDetails.IPolylinePointIndex);
|
|
6994
|
+
|
|
6995
|
+
/** PolylinePointIndex startIndex. */
|
|
6996
|
+
public startIndex?: (number|null);
|
|
6997
|
+
|
|
6998
|
+
/** PolylinePointIndex endIndex. */
|
|
6999
|
+
public endIndex?: (number|null);
|
|
7000
|
+
|
|
7001
|
+
/** PolylinePointIndex _startIndex. */
|
|
7002
|
+
public _startIndex?: "startIndex";
|
|
7003
|
+
|
|
7004
|
+
/** PolylinePointIndex _endIndex. */
|
|
7005
|
+
public _endIndex?: "endIndex";
|
|
7006
|
+
|
|
7007
|
+
/**
|
|
7008
|
+
* Creates a new PolylinePointIndex instance using the specified properties.
|
|
7009
|
+
* @param [properties] Properties to set
|
|
7010
|
+
* @returns PolylinePointIndex instance
|
|
7011
|
+
*/
|
|
7012
|
+
public static create(properties?: google.maps.routing.v2.PolylineDetails.IPolylinePointIndex): google.maps.routing.v2.PolylineDetails.PolylinePointIndex;
|
|
7013
|
+
|
|
7014
|
+
/**
|
|
7015
|
+
* Encodes the specified PolylinePointIndex message. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.PolylinePointIndex.verify|verify} messages.
|
|
7016
|
+
* @param message PolylinePointIndex message or plain object to encode
|
|
7017
|
+
* @param [writer] Writer to encode to
|
|
7018
|
+
* @returns Writer
|
|
7019
|
+
*/
|
|
7020
|
+
public static encode(message: google.maps.routing.v2.PolylineDetails.IPolylinePointIndex, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7021
|
+
|
|
7022
|
+
/**
|
|
7023
|
+
* Encodes the specified PolylinePointIndex message, length delimited. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.PolylinePointIndex.verify|verify} messages.
|
|
7024
|
+
* @param message PolylinePointIndex message or plain object to encode
|
|
7025
|
+
* @param [writer] Writer to encode to
|
|
7026
|
+
* @returns Writer
|
|
7027
|
+
*/
|
|
7028
|
+
public static encodeDelimited(message: google.maps.routing.v2.PolylineDetails.IPolylinePointIndex, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7029
|
+
|
|
7030
|
+
/**
|
|
7031
|
+
* Decodes a PolylinePointIndex message from the specified reader or buffer.
|
|
7032
|
+
* @param reader Reader or buffer to decode from
|
|
7033
|
+
* @param [length] Message length if known beforehand
|
|
7034
|
+
* @returns PolylinePointIndex
|
|
7035
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7036
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7037
|
+
*/
|
|
7038
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.PolylineDetails.PolylinePointIndex;
|
|
7039
|
+
|
|
7040
|
+
/**
|
|
7041
|
+
* Decodes a PolylinePointIndex message from the specified reader or buffer, length delimited.
|
|
7042
|
+
* @param reader Reader or buffer to decode from
|
|
7043
|
+
* @returns PolylinePointIndex
|
|
7044
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7045
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7046
|
+
*/
|
|
7047
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.PolylineDetails.PolylinePointIndex;
|
|
7048
|
+
|
|
7049
|
+
/**
|
|
7050
|
+
* Verifies a PolylinePointIndex message.
|
|
7051
|
+
* @param message Plain object to verify
|
|
7052
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7053
|
+
*/
|
|
7054
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7055
|
+
|
|
7056
|
+
/**
|
|
7057
|
+
* Creates a PolylinePointIndex message from a plain object. Also converts values to their respective internal types.
|
|
7058
|
+
* @param object Plain object
|
|
7059
|
+
* @returns PolylinePointIndex
|
|
7060
|
+
*/
|
|
7061
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.PolylineDetails.PolylinePointIndex;
|
|
7062
|
+
|
|
7063
|
+
/**
|
|
7064
|
+
* Creates a plain object from a PolylinePointIndex message. Also converts values to other types if specified.
|
|
7065
|
+
* @param message PolylinePointIndex
|
|
7066
|
+
* @param [options] Conversion options
|
|
7067
|
+
* @returns Plain object
|
|
7068
|
+
*/
|
|
7069
|
+
public static toObject(message: google.maps.routing.v2.PolylineDetails.PolylinePointIndex, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7070
|
+
|
|
7071
|
+
/**
|
|
7072
|
+
* Converts this PolylinePointIndex to JSON.
|
|
7073
|
+
* @returns JSON object
|
|
7074
|
+
*/
|
|
7075
|
+
public toJSON(): { [k: string]: any };
|
|
7076
|
+
|
|
7077
|
+
/**
|
|
7078
|
+
* Gets the default type url for PolylinePointIndex
|
|
7079
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7080
|
+
* @returns The default type url
|
|
7081
|
+
*/
|
|
7082
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
7083
|
+
}
|
|
7084
|
+
|
|
7085
|
+
/** RoadFeatureState enum. */
|
|
7086
|
+
enum RoadFeatureState {
|
|
7087
|
+
ROAD_FEATURE_STATE_UNSPECIFIED = 0,
|
|
7088
|
+
EXISTS = 1,
|
|
7089
|
+
DOES_NOT_EXIST = 2
|
|
7090
|
+
}
|
|
7091
|
+
|
|
7092
|
+
/** Properties of a FlyoverInfo. */
|
|
7093
|
+
interface IFlyoverInfo {
|
|
7094
|
+
|
|
7095
|
+
/** FlyoverInfo flyoverPresence */
|
|
7096
|
+
flyoverPresence?: (google.maps.routing.v2.PolylineDetails.RoadFeatureState|keyof typeof google.maps.routing.v2.PolylineDetails.RoadFeatureState|null);
|
|
7097
|
+
|
|
7098
|
+
/** FlyoverInfo polylinePointIndex */
|
|
7099
|
+
polylinePointIndex?: (google.maps.routing.v2.PolylineDetails.IPolylinePointIndex|null);
|
|
7100
|
+
}
|
|
7101
|
+
|
|
7102
|
+
/** Represents a FlyoverInfo. */
|
|
7103
|
+
class FlyoverInfo implements IFlyoverInfo {
|
|
7104
|
+
|
|
7105
|
+
/**
|
|
7106
|
+
* Constructs a new FlyoverInfo.
|
|
7107
|
+
* @param [properties] Properties to set
|
|
7108
|
+
*/
|
|
7109
|
+
constructor(properties?: google.maps.routing.v2.PolylineDetails.IFlyoverInfo);
|
|
7110
|
+
|
|
7111
|
+
/** FlyoverInfo flyoverPresence. */
|
|
7112
|
+
public flyoverPresence: (google.maps.routing.v2.PolylineDetails.RoadFeatureState|keyof typeof google.maps.routing.v2.PolylineDetails.RoadFeatureState);
|
|
7113
|
+
|
|
7114
|
+
/** FlyoverInfo polylinePointIndex. */
|
|
7115
|
+
public polylinePointIndex?: (google.maps.routing.v2.PolylineDetails.IPolylinePointIndex|null);
|
|
7116
|
+
|
|
7117
|
+
/**
|
|
7118
|
+
* Creates a new FlyoverInfo instance using the specified properties.
|
|
7119
|
+
* @param [properties] Properties to set
|
|
7120
|
+
* @returns FlyoverInfo instance
|
|
7121
|
+
*/
|
|
7122
|
+
public static create(properties?: google.maps.routing.v2.PolylineDetails.IFlyoverInfo): google.maps.routing.v2.PolylineDetails.FlyoverInfo;
|
|
7123
|
+
|
|
7124
|
+
/**
|
|
7125
|
+
* Encodes the specified FlyoverInfo message. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.FlyoverInfo.verify|verify} messages.
|
|
7126
|
+
* @param message FlyoverInfo message or plain object to encode
|
|
7127
|
+
* @param [writer] Writer to encode to
|
|
7128
|
+
* @returns Writer
|
|
7129
|
+
*/
|
|
7130
|
+
public static encode(message: google.maps.routing.v2.PolylineDetails.IFlyoverInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7131
|
+
|
|
7132
|
+
/**
|
|
7133
|
+
* Encodes the specified FlyoverInfo message, length delimited. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.FlyoverInfo.verify|verify} messages.
|
|
7134
|
+
* @param message FlyoverInfo message or plain object to encode
|
|
7135
|
+
* @param [writer] Writer to encode to
|
|
7136
|
+
* @returns Writer
|
|
7137
|
+
*/
|
|
7138
|
+
public static encodeDelimited(message: google.maps.routing.v2.PolylineDetails.IFlyoverInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7139
|
+
|
|
7140
|
+
/**
|
|
7141
|
+
* Decodes a FlyoverInfo message from the specified reader or buffer.
|
|
7142
|
+
* @param reader Reader or buffer to decode from
|
|
7143
|
+
* @param [length] Message length if known beforehand
|
|
7144
|
+
* @returns FlyoverInfo
|
|
7145
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7146
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7147
|
+
*/
|
|
7148
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.PolylineDetails.FlyoverInfo;
|
|
7149
|
+
|
|
7150
|
+
/**
|
|
7151
|
+
* Decodes a FlyoverInfo message from the specified reader or buffer, length delimited.
|
|
7152
|
+
* @param reader Reader or buffer to decode from
|
|
7153
|
+
* @returns FlyoverInfo
|
|
7154
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7155
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7156
|
+
*/
|
|
7157
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.PolylineDetails.FlyoverInfo;
|
|
7158
|
+
|
|
7159
|
+
/**
|
|
7160
|
+
* Verifies a FlyoverInfo message.
|
|
7161
|
+
* @param message Plain object to verify
|
|
7162
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7163
|
+
*/
|
|
7164
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7165
|
+
|
|
7166
|
+
/**
|
|
7167
|
+
* Creates a FlyoverInfo message from a plain object. Also converts values to their respective internal types.
|
|
7168
|
+
* @param object Plain object
|
|
7169
|
+
* @returns FlyoverInfo
|
|
7170
|
+
*/
|
|
7171
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.PolylineDetails.FlyoverInfo;
|
|
7172
|
+
|
|
7173
|
+
/**
|
|
7174
|
+
* Creates a plain object from a FlyoverInfo message. Also converts values to other types if specified.
|
|
7175
|
+
* @param message FlyoverInfo
|
|
7176
|
+
* @param [options] Conversion options
|
|
7177
|
+
* @returns Plain object
|
|
7178
|
+
*/
|
|
7179
|
+
public static toObject(message: google.maps.routing.v2.PolylineDetails.FlyoverInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7180
|
+
|
|
7181
|
+
/**
|
|
7182
|
+
* Converts this FlyoverInfo to JSON.
|
|
7183
|
+
* @returns JSON object
|
|
7184
|
+
*/
|
|
7185
|
+
public toJSON(): { [k: string]: any };
|
|
7186
|
+
|
|
7187
|
+
/**
|
|
7188
|
+
* Gets the default type url for FlyoverInfo
|
|
7189
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7190
|
+
* @returns The default type url
|
|
7191
|
+
*/
|
|
7192
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
7193
|
+
}
|
|
7194
|
+
|
|
7195
|
+
/** Properties of a NarrowRoadInfo. */
|
|
7196
|
+
interface INarrowRoadInfo {
|
|
7197
|
+
|
|
7198
|
+
/** NarrowRoadInfo narrowRoadPresence */
|
|
7199
|
+
narrowRoadPresence?: (google.maps.routing.v2.PolylineDetails.RoadFeatureState|keyof typeof google.maps.routing.v2.PolylineDetails.RoadFeatureState|null);
|
|
7200
|
+
|
|
7201
|
+
/** NarrowRoadInfo polylinePointIndex */
|
|
7202
|
+
polylinePointIndex?: (google.maps.routing.v2.PolylineDetails.IPolylinePointIndex|null);
|
|
7203
|
+
}
|
|
7204
|
+
|
|
7205
|
+
/** Represents a NarrowRoadInfo. */
|
|
7206
|
+
class NarrowRoadInfo implements INarrowRoadInfo {
|
|
7207
|
+
|
|
7208
|
+
/**
|
|
7209
|
+
* Constructs a new NarrowRoadInfo.
|
|
7210
|
+
* @param [properties] Properties to set
|
|
7211
|
+
*/
|
|
7212
|
+
constructor(properties?: google.maps.routing.v2.PolylineDetails.INarrowRoadInfo);
|
|
7213
|
+
|
|
7214
|
+
/** NarrowRoadInfo narrowRoadPresence. */
|
|
7215
|
+
public narrowRoadPresence: (google.maps.routing.v2.PolylineDetails.RoadFeatureState|keyof typeof google.maps.routing.v2.PolylineDetails.RoadFeatureState);
|
|
7216
|
+
|
|
7217
|
+
/** NarrowRoadInfo polylinePointIndex. */
|
|
7218
|
+
public polylinePointIndex?: (google.maps.routing.v2.PolylineDetails.IPolylinePointIndex|null);
|
|
7219
|
+
|
|
7220
|
+
/**
|
|
7221
|
+
* Creates a new NarrowRoadInfo instance using the specified properties.
|
|
7222
|
+
* @param [properties] Properties to set
|
|
7223
|
+
* @returns NarrowRoadInfo instance
|
|
7224
|
+
*/
|
|
7225
|
+
public static create(properties?: google.maps.routing.v2.PolylineDetails.INarrowRoadInfo): google.maps.routing.v2.PolylineDetails.NarrowRoadInfo;
|
|
7226
|
+
|
|
7227
|
+
/**
|
|
7228
|
+
* Encodes the specified NarrowRoadInfo message. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.verify|verify} messages.
|
|
7229
|
+
* @param message NarrowRoadInfo message or plain object to encode
|
|
7230
|
+
* @param [writer] Writer to encode to
|
|
7231
|
+
* @returns Writer
|
|
7232
|
+
*/
|
|
7233
|
+
public static encode(message: google.maps.routing.v2.PolylineDetails.INarrowRoadInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7234
|
+
|
|
7235
|
+
/**
|
|
7236
|
+
* Encodes the specified NarrowRoadInfo message, length delimited. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.NarrowRoadInfo.verify|verify} messages.
|
|
7237
|
+
* @param message NarrowRoadInfo message or plain object to encode
|
|
7238
|
+
* @param [writer] Writer to encode to
|
|
7239
|
+
* @returns Writer
|
|
7240
|
+
*/
|
|
7241
|
+
public static encodeDelimited(message: google.maps.routing.v2.PolylineDetails.INarrowRoadInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7242
|
+
|
|
7243
|
+
/**
|
|
7244
|
+
* Decodes a NarrowRoadInfo message from the specified reader or buffer.
|
|
7245
|
+
* @param reader Reader or buffer to decode from
|
|
7246
|
+
* @param [length] Message length if known beforehand
|
|
7247
|
+
* @returns NarrowRoadInfo
|
|
7248
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7249
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7250
|
+
*/
|
|
7251
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.PolylineDetails.NarrowRoadInfo;
|
|
7252
|
+
|
|
7253
|
+
/**
|
|
7254
|
+
* Decodes a NarrowRoadInfo message from the specified reader or buffer, length delimited.
|
|
7255
|
+
* @param reader Reader or buffer to decode from
|
|
7256
|
+
* @returns NarrowRoadInfo
|
|
7257
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7258
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7259
|
+
*/
|
|
7260
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.PolylineDetails.NarrowRoadInfo;
|
|
7261
|
+
|
|
7262
|
+
/**
|
|
7263
|
+
* Verifies a NarrowRoadInfo message.
|
|
7264
|
+
* @param message Plain object to verify
|
|
7265
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7266
|
+
*/
|
|
7267
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7268
|
+
|
|
7269
|
+
/**
|
|
7270
|
+
* Creates a NarrowRoadInfo message from a plain object. Also converts values to their respective internal types.
|
|
7271
|
+
* @param object Plain object
|
|
7272
|
+
* @returns NarrowRoadInfo
|
|
7273
|
+
*/
|
|
7274
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.PolylineDetails.NarrowRoadInfo;
|
|
7275
|
+
|
|
7276
|
+
/**
|
|
7277
|
+
* Creates a plain object from a NarrowRoadInfo message. Also converts values to other types if specified.
|
|
7278
|
+
* @param message NarrowRoadInfo
|
|
7279
|
+
* @param [options] Conversion options
|
|
7280
|
+
* @returns Plain object
|
|
7281
|
+
*/
|
|
7282
|
+
public static toObject(message: google.maps.routing.v2.PolylineDetails.NarrowRoadInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7283
|
+
|
|
7284
|
+
/**
|
|
7285
|
+
* Converts this NarrowRoadInfo to JSON.
|
|
7286
|
+
* @returns JSON object
|
|
7287
|
+
*/
|
|
7288
|
+
public toJSON(): { [k: string]: any };
|
|
7289
|
+
|
|
7290
|
+
/**
|
|
7291
|
+
* Gets the default type url for NarrowRoadInfo
|
|
7292
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7293
|
+
* @returns The default type url
|
|
7294
|
+
*/
|
|
7295
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
7296
|
+
}
|
|
6869
7297
|
}
|
|
6870
7298
|
|
|
6871
7299
|
/** Properties of a Route. */
|
|
@@ -6909,6 +7337,9 @@ export namespace google {
|
|
|
6909
7337
|
|
|
6910
7338
|
/** Route routeToken */
|
|
6911
7339
|
routeToken?: (string|null);
|
|
7340
|
+
|
|
7341
|
+
/** Route polylineDetails */
|
|
7342
|
+
polylineDetails?: (google.maps.routing.v2.IPolylineDetails|null);
|
|
6912
7343
|
}
|
|
6913
7344
|
|
|
6914
7345
|
/** Represents a Route. */
|
|
@@ -6959,6 +7390,9 @@ export namespace google {
|
|
|
6959
7390
|
/** Route routeToken. */
|
|
6960
7391
|
public routeToken: string;
|
|
6961
7392
|
|
|
7393
|
+
/** Route polylineDetails. */
|
|
7394
|
+
public polylineDetails?: (google.maps.routing.v2.IPolylineDetails|null);
|
|
7395
|
+
|
|
6962
7396
|
/**
|
|
6963
7397
|
* Creates a new Route instance using the specified properties.
|
|
6964
7398
|
* @param [properties] Properties to set
|
|
@@ -8576,7 +9010,8 @@ export namespace google {
|
|
|
8576
9010
|
ROUTE_LABEL_UNSPECIFIED = 0,
|
|
8577
9011
|
DEFAULT_ROUTE = 1,
|
|
8578
9012
|
DEFAULT_ROUTE_ALTERNATE = 2,
|
|
8579
|
-
FUEL_EFFICIENT = 3
|
|
9013
|
+
FUEL_EFFICIENT = 3,
|
|
9014
|
+
SHORTER_DISTANCE = 4
|
|
8580
9015
|
}
|
|
8581
9016
|
|
|
8582
9017
|
/** RouteTravelMode enum. */
|
|
@@ -9919,7 +10354,8 @@ export namespace google {
|
|
|
9919
10354
|
/** ReferenceRoute enum. */
|
|
9920
10355
|
enum ReferenceRoute {
|
|
9921
10356
|
REFERENCE_ROUTE_UNSPECIFIED = 0,
|
|
9922
|
-
FUEL_EFFICIENT = 1
|
|
10357
|
+
FUEL_EFFICIENT = 1,
|
|
10358
|
+
SHORTER_DISTANCE = 2
|
|
9923
10359
|
}
|
|
9924
10360
|
|
|
9925
10361
|
/** ExtraComputation enum. */
|
|
@@ -9928,7 +10364,9 @@ export namespace google {
|
|
|
9928
10364
|
TOLLS = 1,
|
|
9929
10365
|
FUEL_CONSUMPTION = 2,
|
|
9930
10366
|
TRAFFIC_ON_POLYLINE = 3,
|
|
9931
|
-
HTML_FORMATTED_NAVIGATION_INSTRUCTIONS = 4
|
|
10367
|
+
HTML_FORMATTED_NAVIGATION_INSTRUCTIONS = 4,
|
|
10368
|
+
FLYOVER_INFO_ON_POLYLINE = 7,
|
|
10369
|
+
NARROW_ROAD_INFO_ON_POLYLINE = 8
|
|
9932
10370
|
}
|
|
9933
10371
|
}
|
|
9934
10372
|
|
|
@@ -11090,6 +11528,19 @@ export namespace google {
|
|
|
11090
11528
|
/** Namespace api. */
|
|
11091
11529
|
namespace api {
|
|
11092
11530
|
|
|
11531
|
+
/** FieldBehavior enum. */
|
|
11532
|
+
enum FieldBehavior {
|
|
11533
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0,
|
|
11534
|
+
OPTIONAL = 1,
|
|
11535
|
+
REQUIRED = 2,
|
|
11536
|
+
OUTPUT_ONLY = 3,
|
|
11537
|
+
INPUT_ONLY = 4,
|
|
11538
|
+
IMMUTABLE = 5,
|
|
11539
|
+
UNORDERED_LIST = 6,
|
|
11540
|
+
NON_EMPTY_DEFAULT = 7,
|
|
11541
|
+
IDENTIFIER = 8
|
|
11542
|
+
}
|
|
11543
|
+
|
|
11093
11544
|
/** Properties of a Http. */
|
|
11094
11545
|
interface IHttp {
|
|
11095
11546
|
|
|
@@ -12936,18 +13387,5 @@ export namespace google {
|
|
|
12936
13387
|
GA = 4,
|
|
12937
13388
|
DEPRECATED = 5
|
|
12938
13389
|
}
|
|
12939
|
-
|
|
12940
|
-
/** FieldBehavior enum. */
|
|
12941
|
-
enum FieldBehavior {
|
|
12942
|
-
FIELD_BEHAVIOR_UNSPECIFIED = 0,
|
|
12943
|
-
OPTIONAL = 1,
|
|
12944
|
-
REQUIRED = 2,
|
|
12945
|
-
OUTPUT_ONLY = 3,
|
|
12946
|
-
INPUT_ONLY = 4,
|
|
12947
|
-
IMMUTABLE = 5,
|
|
12948
|
-
UNORDERED_LIST = 6,
|
|
12949
|
-
NON_EMPTY_DEFAULT = 7,
|
|
12950
|
-
IDENTIFIER = 8
|
|
12951
|
-
}
|
|
12952
13390
|
}
|
|
12953
13391
|
}
|