@googlemaps/routing 0.5.1 → 1.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.
@@ -1428,6 +1428,109 @@ export namespace google {
1428
1428
  public static getTypeUrl(typeUrlPrefix?: string): string;
1429
1429
  }
1430
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
+
1431
1534
  /** Properties of a FileDescriptorSet. */
1432
1535
  interface IFileDescriptorSet {
1433
1536
 
@@ -4812,109 +4915,6 @@ export namespace google {
4812
4915
  }
4813
4916
  }
4814
4917
  }
4815
-
4816
- /** Properties of a Timestamp. */
4817
- interface ITimestamp {
4818
-
4819
- /** Timestamp seconds */
4820
- seconds?: (number|Long|string|null);
4821
-
4822
- /** Timestamp nanos */
4823
- nanos?: (number|null);
4824
- }
4825
-
4826
- /** Represents a Timestamp. */
4827
- class Timestamp implements ITimestamp {
4828
-
4829
- /**
4830
- * Constructs a new Timestamp.
4831
- * @param [properties] Properties to set
4832
- */
4833
- constructor(properties?: google.protobuf.ITimestamp);
4834
-
4835
- /** Timestamp seconds. */
4836
- public seconds: (number|Long|string);
4837
-
4838
- /** Timestamp nanos. */
4839
- public nanos: number;
4840
-
4841
- /**
4842
- * Creates a new Timestamp instance using the specified properties.
4843
- * @param [properties] Properties to set
4844
- * @returns Timestamp instance
4845
- */
4846
- public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp;
4847
-
4848
- /**
4849
- * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
4850
- * @param message Timestamp message or plain object to encode
4851
- * @param [writer] Writer to encode to
4852
- * @returns Writer
4853
- */
4854
- public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
4855
-
4856
- /**
4857
- * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
4858
- * @param message Timestamp message or plain object to encode
4859
- * @param [writer] Writer to encode to
4860
- * @returns Writer
4861
- */
4862
- public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer;
4863
-
4864
- /**
4865
- * Decodes a Timestamp message from the specified reader or buffer.
4866
- * @param reader Reader or buffer to decode from
4867
- * @param [length] Message length if known beforehand
4868
- * @returns Timestamp
4869
- * @throws {Error} If the payload is not a reader or valid buffer
4870
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
4871
- */
4872
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp;
4873
-
4874
- /**
4875
- * Decodes a Timestamp message from the specified reader or buffer, length delimited.
4876
- * @param reader Reader or buffer to decode from
4877
- * @returns Timestamp
4878
- * @throws {Error} If the payload is not a reader or valid buffer
4879
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
4880
- */
4881
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp;
4882
-
4883
- /**
4884
- * Verifies a Timestamp message.
4885
- * @param message Plain object to verify
4886
- * @returns `null` if valid, otherwise the reason why it is not
4887
- */
4888
- public static verify(message: { [k: string]: any }): (string|null);
4889
-
4890
- /**
4891
- * Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
4892
- * @param object Plain object
4893
- * @returns Timestamp
4894
- */
4895
- public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp;
4896
-
4897
- /**
4898
- * Creates a plain object from a Timestamp message. Also converts values to other types if specified.
4899
- * @param message Timestamp
4900
- * @param [options] Conversion options
4901
- * @returns Plain object
4902
- */
4903
- public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any };
4904
-
4905
- /**
4906
- * Converts this Timestamp to JSON.
4907
- * @returns JSON object
4908
- */
4909
- public toJSON(): { [k: string]: any };
4910
-
4911
- /**
4912
- * Gets the default type url for Timestamp
4913
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4914
- * @returns The default type url
4915
- */
4916
- public static getTypeUrl(typeUrlPrefix?: string): string;
4917
- }
4918
4918
  }
4919
4919
 
4920
4920
  /** Namespace geo. */
@@ -5134,120 +5134,223 @@ export namespace google {
5134
5134
  public static getTypeUrl(typeUrlPrefix?: string): string;
5135
5135
  }
5136
5136
 
5137
- /** Properties of a Money. */
5138
- interface IMoney {
5139
-
5140
- /** Money currencyCode */
5141
- currencyCode?: (string|null);
5137
+ /** Properties of a LocalizedText. */
5138
+ interface ILocalizedText {
5142
5139
 
5143
- /** Money units */
5144
- units?: (number|Long|string|null);
5140
+ /** LocalizedText text */
5141
+ text?: (string|null);
5145
5142
 
5146
- /** Money nanos */
5147
- nanos?: (number|null);
5143
+ /** LocalizedText languageCode */
5144
+ languageCode?: (string|null);
5148
5145
  }
5149
5146
 
5150
- /** Represents a Money. */
5151
- class Money implements IMoney {
5147
+ /** Represents a LocalizedText. */
5148
+ class LocalizedText implements ILocalizedText {
5152
5149
 
5153
5150
  /**
5154
- * Constructs a new Money.
5151
+ * Constructs a new LocalizedText.
5155
5152
  * @param [properties] Properties to set
5156
5153
  */
5157
- constructor(properties?: google.type.IMoney);
5158
-
5159
- /** Money currencyCode. */
5160
- public currencyCode: string;
5154
+ constructor(properties?: google.type.ILocalizedText);
5161
5155
 
5162
- /** Money units. */
5163
- public units: (number|Long|string);
5156
+ /** LocalizedText text. */
5157
+ public text: string;
5164
5158
 
5165
- /** Money nanos. */
5166
- public nanos: number;
5159
+ /** LocalizedText languageCode. */
5160
+ public languageCode: string;
5167
5161
 
5168
5162
  /**
5169
- * Creates a new Money instance using the specified properties.
5163
+ * Creates a new LocalizedText instance using the specified properties.
5170
5164
  * @param [properties] Properties to set
5171
- * @returns Money instance
5165
+ * @returns LocalizedText instance
5172
5166
  */
5173
- public static create(properties?: google.type.IMoney): google.type.Money;
5167
+ public static create(properties?: google.type.ILocalizedText): google.type.LocalizedText;
5174
5168
 
5175
5169
  /**
5176
- * Encodes the specified Money message. Does not implicitly {@link google.type.Money.verify|verify} messages.
5177
- * @param message Money message or plain object to encode
5170
+ * Encodes the specified LocalizedText message. Does not implicitly {@link google.type.LocalizedText.verify|verify} messages.
5171
+ * @param message LocalizedText message or plain object to encode
5178
5172
  * @param [writer] Writer to encode to
5179
5173
  * @returns Writer
5180
5174
  */
5181
- public static encode(message: google.type.IMoney, writer?: $protobuf.Writer): $protobuf.Writer;
5175
+ public static encode(message: google.type.ILocalizedText, writer?: $protobuf.Writer): $protobuf.Writer;
5182
5176
 
5183
5177
  /**
5184
- * Encodes the specified Money message, length delimited. Does not implicitly {@link google.type.Money.verify|verify} messages.
5185
- * @param message Money message or plain object to encode
5178
+ * Encodes the specified LocalizedText message, length delimited. Does not implicitly {@link google.type.LocalizedText.verify|verify} messages.
5179
+ * @param message LocalizedText message or plain object to encode
5186
5180
  * @param [writer] Writer to encode to
5187
5181
  * @returns Writer
5188
5182
  */
5189
- public static encodeDelimited(message: google.type.IMoney, writer?: $protobuf.Writer): $protobuf.Writer;
5183
+ public static encodeDelimited(message: google.type.ILocalizedText, writer?: $protobuf.Writer): $protobuf.Writer;
5190
5184
 
5191
5185
  /**
5192
- * Decodes a Money message from the specified reader or buffer.
5186
+ * Decodes a LocalizedText message from the specified reader or buffer.
5193
5187
  * @param reader Reader or buffer to decode from
5194
5188
  * @param [length] Message length if known beforehand
5195
- * @returns Money
5189
+ * @returns LocalizedText
5196
5190
  * @throws {Error} If the payload is not a reader or valid buffer
5197
5191
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5198
5192
  */
5199
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.Money;
5193
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.LocalizedText;
5200
5194
 
5201
5195
  /**
5202
- * Decodes a Money message from the specified reader or buffer, length delimited.
5196
+ * Decodes a LocalizedText message from the specified reader or buffer, length delimited.
5203
5197
  * @param reader Reader or buffer to decode from
5204
- * @returns Money
5198
+ * @returns LocalizedText
5205
5199
  * @throws {Error} If the payload is not a reader or valid buffer
5206
5200
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
5207
5201
  */
5208
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.Money;
5202
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.LocalizedText;
5209
5203
 
5210
5204
  /**
5211
- * Verifies a Money message.
5205
+ * Verifies a LocalizedText message.
5212
5206
  * @param message Plain object to verify
5213
5207
  * @returns `null` if valid, otherwise the reason why it is not
5214
5208
  */
5215
5209
  public static verify(message: { [k: string]: any }): (string|null);
5216
5210
 
5217
5211
  /**
5218
- * Creates a Money message from a plain object. Also converts values to their respective internal types.
5212
+ * Creates a LocalizedText message from a plain object. Also converts values to their respective internal types.
5219
5213
  * @param object Plain object
5220
- * @returns Money
5214
+ * @returns LocalizedText
5221
5215
  */
5222
- public static fromObject(object: { [k: string]: any }): google.type.Money;
5216
+ public static fromObject(object: { [k: string]: any }): google.type.LocalizedText;
5223
5217
 
5224
5218
  /**
5225
- * Creates a plain object from a Money message. Also converts values to other types if specified.
5226
- * @param message Money
5219
+ * Creates a plain object from a LocalizedText message. Also converts values to other types if specified.
5220
+ * @param message LocalizedText
5227
5221
  * @param [options] Conversion options
5228
5222
  * @returns Plain object
5229
5223
  */
5230
- public static toObject(message: google.type.Money, options?: $protobuf.IConversionOptions): { [k: string]: any };
5224
+ public static toObject(message: google.type.LocalizedText, options?: $protobuf.IConversionOptions): { [k: string]: any };
5231
5225
 
5232
5226
  /**
5233
- * Converts this Money to JSON.
5227
+ * Converts this LocalizedText to JSON.
5234
5228
  * @returns JSON object
5235
5229
  */
5236
5230
  public toJSON(): { [k: string]: any };
5237
5231
 
5238
5232
  /**
5239
- * Gets the default type url for Money
5233
+ * Gets the default type url for LocalizedText
5240
5234
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5241
5235
  * @returns The default type url
5242
5236
  */
5243
5237
  public static getTypeUrl(typeUrlPrefix?: string): string;
5244
5238
  }
5245
- }
5246
5239
 
5247
- /** Namespace maps. */
5248
- namespace maps {
5240
+ /** Properties of a Money. */
5241
+ interface IMoney {
5249
5242
 
5250
- /** Namespace routing. */
5243
+ /** Money currencyCode */
5244
+ currencyCode?: (string|null);
5245
+
5246
+ /** Money units */
5247
+ units?: (number|Long|string|null);
5248
+
5249
+ /** Money nanos */
5250
+ nanos?: (number|null);
5251
+ }
5252
+
5253
+ /** Represents a Money. */
5254
+ class Money implements IMoney {
5255
+
5256
+ /**
5257
+ * Constructs a new Money.
5258
+ * @param [properties] Properties to set
5259
+ */
5260
+ constructor(properties?: google.type.IMoney);
5261
+
5262
+ /** Money currencyCode. */
5263
+ public currencyCode: string;
5264
+
5265
+ /** Money units. */
5266
+ public units: (number|Long|string);
5267
+
5268
+ /** Money nanos. */
5269
+ public nanos: number;
5270
+
5271
+ /**
5272
+ * Creates a new Money instance using the specified properties.
5273
+ * @param [properties] Properties to set
5274
+ * @returns Money instance
5275
+ */
5276
+ public static create(properties?: google.type.IMoney): google.type.Money;
5277
+
5278
+ /**
5279
+ * Encodes the specified Money message. Does not implicitly {@link google.type.Money.verify|verify} messages.
5280
+ * @param message Money message or plain object to encode
5281
+ * @param [writer] Writer to encode to
5282
+ * @returns Writer
5283
+ */
5284
+ public static encode(message: google.type.IMoney, writer?: $protobuf.Writer): $protobuf.Writer;
5285
+
5286
+ /**
5287
+ * Encodes the specified Money message, length delimited. Does not implicitly {@link google.type.Money.verify|verify} messages.
5288
+ * @param message Money message or plain object to encode
5289
+ * @param [writer] Writer to encode to
5290
+ * @returns Writer
5291
+ */
5292
+ public static encodeDelimited(message: google.type.IMoney, writer?: $protobuf.Writer): $protobuf.Writer;
5293
+
5294
+ /**
5295
+ * Decodes a Money message from the specified reader or buffer.
5296
+ * @param reader Reader or buffer to decode from
5297
+ * @param [length] Message length if known beforehand
5298
+ * @returns Money
5299
+ * @throws {Error} If the payload is not a reader or valid buffer
5300
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5301
+ */
5302
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.Money;
5303
+
5304
+ /**
5305
+ * Decodes a Money message from the specified reader or buffer, length delimited.
5306
+ * @param reader Reader or buffer to decode from
5307
+ * @returns Money
5308
+ * @throws {Error} If the payload is not a reader or valid buffer
5309
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5310
+ */
5311
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.Money;
5312
+
5313
+ /**
5314
+ * Verifies a Money message.
5315
+ * @param message Plain object to verify
5316
+ * @returns `null` if valid, otherwise the reason why it is not
5317
+ */
5318
+ public static verify(message: { [k: string]: any }): (string|null);
5319
+
5320
+ /**
5321
+ * Creates a Money message from a plain object. Also converts values to their respective internal types.
5322
+ * @param object Plain object
5323
+ * @returns Money
5324
+ */
5325
+ public static fromObject(object: { [k: string]: any }): google.type.Money;
5326
+
5327
+ /**
5328
+ * Creates a plain object from a Money message. Also converts values to other types if specified.
5329
+ * @param message Money
5330
+ * @param [options] Conversion options
5331
+ * @returns Plain object
5332
+ */
5333
+ public static toObject(message: google.type.Money, options?: $protobuf.IConversionOptions): { [k: string]: any };
5334
+
5335
+ /**
5336
+ * Converts this Money to JSON.
5337
+ * @returns JSON object
5338
+ */
5339
+ public toJSON(): { [k: string]: any };
5340
+
5341
+ /**
5342
+ * Gets the default type url for Money
5343
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5344
+ * @returns The default type url
5345
+ */
5346
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5347
+ }
5348
+ }
5349
+
5350
+ /** Namespace maps. */
5351
+ namespace maps {
5352
+
5353
+ /** Namespace routing. */
5251
5354
  namespace routing {
5252
5355
 
5253
5356
  /** Namespace v2. */
@@ -5603,6 +5706,109 @@ export namespace google {
5603
5706
  public static getTypeUrl(typeUrlPrefix?: string): string;
5604
5707
  }
5605
5708
 
5709
+ /** Properties of a LocalizedTime. */
5710
+ interface ILocalizedTime {
5711
+
5712
+ /** LocalizedTime time */
5713
+ time?: (google.type.ILocalizedText|null);
5714
+
5715
+ /** LocalizedTime timeZone */
5716
+ timeZone?: (string|null);
5717
+ }
5718
+
5719
+ /** Represents a LocalizedTime. */
5720
+ class LocalizedTime implements ILocalizedTime {
5721
+
5722
+ /**
5723
+ * Constructs a new LocalizedTime.
5724
+ * @param [properties] Properties to set
5725
+ */
5726
+ constructor(properties?: google.maps.routing.v2.ILocalizedTime);
5727
+
5728
+ /** LocalizedTime time. */
5729
+ public time?: (google.type.ILocalizedText|null);
5730
+
5731
+ /** LocalizedTime timeZone. */
5732
+ public timeZone: string;
5733
+
5734
+ /**
5735
+ * Creates a new LocalizedTime instance using the specified properties.
5736
+ * @param [properties] Properties to set
5737
+ * @returns LocalizedTime instance
5738
+ */
5739
+ public static create(properties?: google.maps.routing.v2.ILocalizedTime): google.maps.routing.v2.LocalizedTime;
5740
+
5741
+ /**
5742
+ * Encodes the specified LocalizedTime message. Does not implicitly {@link google.maps.routing.v2.LocalizedTime.verify|verify} messages.
5743
+ * @param message LocalizedTime message or plain object to encode
5744
+ * @param [writer] Writer to encode to
5745
+ * @returns Writer
5746
+ */
5747
+ public static encode(message: google.maps.routing.v2.ILocalizedTime, writer?: $protobuf.Writer): $protobuf.Writer;
5748
+
5749
+ /**
5750
+ * Encodes the specified LocalizedTime message, length delimited. Does not implicitly {@link google.maps.routing.v2.LocalizedTime.verify|verify} messages.
5751
+ * @param message LocalizedTime message or plain object to encode
5752
+ * @param [writer] Writer to encode to
5753
+ * @returns Writer
5754
+ */
5755
+ public static encodeDelimited(message: google.maps.routing.v2.ILocalizedTime, writer?: $protobuf.Writer): $protobuf.Writer;
5756
+
5757
+ /**
5758
+ * Decodes a LocalizedTime message from the specified reader or buffer.
5759
+ * @param reader Reader or buffer to decode from
5760
+ * @param [length] Message length if known beforehand
5761
+ * @returns LocalizedTime
5762
+ * @throws {Error} If the payload is not a reader or valid buffer
5763
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5764
+ */
5765
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.LocalizedTime;
5766
+
5767
+ /**
5768
+ * Decodes a LocalizedTime message from the specified reader or buffer, length delimited.
5769
+ * @param reader Reader or buffer to decode from
5770
+ * @returns LocalizedTime
5771
+ * @throws {Error} If the payload is not a reader or valid buffer
5772
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5773
+ */
5774
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.LocalizedTime;
5775
+
5776
+ /**
5777
+ * Verifies a LocalizedTime message.
5778
+ * @param message Plain object to verify
5779
+ * @returns `null` if valid, otherwise the reason why it is not
5780
+ */
5781
+ public static verify(message: { [k: string]: any }): (string|null);
5782
+
5783
+ /**
5784
+ * Creates a LocalizedTime message from a plain object. Also converts values to their respective internal types.
5785
+ * @param object Plain object
5786
+ * @returns LocalizedTime
5787
+ */
5788
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.LocalizedTime;
5789
+
5790
+ /**
5791
+ * Creates a plain object from a LocalizedTime message. Also converts values to other types if specified.
5792
+ * @param message LocalizedTime
5793
+ * @param [options] Conversion options
5794
+ * @returns Plain object
5795
+ */
5796
+ public static toObject(message: google.maps.routing.v2.LocalizedTime, options?: $protobuf.IConversionOptions): { [k: string]: any };
5797
+
5798
+ /**
5799
+ * Converts this LocalizedTime to JSON.
5800
+ * @returns JSON object
5801
+ */
5802
+ public toJSON(): { [k: string]: any };
5803
+
5804
+ /**
5805
+ * Gets the default type url for LocalizedTime
5806
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5807
+ * @returns The default type url
5808
+ */
5809
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5810
+ }
5811
+
5606
5812
  /** Properties of a Location. */
5607
5813
  interface ILocation {
5608
5814
 
@@ -5726,7 +5932,9 @@ export namespace google {
5726
5932
  FERRY = 15,
5727
5933
  FERRY_TRAIN = 16,
5728
5934
  ROUNDABOUT_LEFT = 17,
5729
- ROUNDABOUT_RIGHT = 18
5935
+ ROUNDABOUT_RIGHT = 18,
5936
+ DEPART = 19,
5937
+ NAME_CHANGE = 20
5730
5938
  }
5731
5939
 
5732
5940
  /** Properties of a NavigationInstruction. */
@@ -5985,6 +6193,12 @@ export namespace google {
5985
6193
  /** Route travelAdvisory */
5986
6194
  travelAdvisory?: (google.maps.routing.v2.IRouteTravelAdvisory|null);
5987
6195
 
6196
+ /** Route optimizedIntermediateWaypointIndex */
6197
+ optimizedIntermediateWaypointIndex?: (number[]|null);
6198
+
6199
+ /** Route localizedValues */
6200
+ localizedValues?: (google.maps.routing.v2.Route.IRouteLocalizedValues|null);
6201
+
5988
6202
  /** Route routeToken */
5989
6203
  routeToken?: (string|null);
5990
6204
  }
@@ -6028,6 +6242,12 @@ export namespace google {
6028
6242
  /** Route travelAdvisory. */
6029
6243
  public travelAdvisory?: (google.maps.routing.v2.IRouteTravelAdvisory|null);
6030
6244
 
6245
+ /** Route optimizedIntermediateWaypointIndex. */
6246
+ public optimizedIntermediateWaypointIndex: number[];
6247
+
6248
+ /** Route localizedValues. */
6249
+ public localizedValues?: (google.maps.routing.v2.Route.IRouteLocalizedValues|null);
6250
+
6031
6251
  /** Route routeToken. */
6032
6252
  public routeToken: string;
6033
6253
 
@@ -6109,6 +6329,124 @@ export namespace google {
6109
6329
  public static getTypeUrl(typeUrlPrefix?: string): string;
6110
6330
  }
6111
6331
 
6332
+ namespace Route {
6333
+
6334
+ /** Properties of a RouteLocalizedValues. */
6335
+ interface IRouteLocalizedValues {
6336
+
6337
+ /** RouteLocalizedValues distance */
6338
+ distance?: (google.type.ILocalizedText|null);
6339
+
6340
+ /** RouteLocalizedValues duration */
6341
+ duration?: (google.type.ILocalizedText|null);
6342
+
6343
+ /** RouteLocalizedValues staticDuration */
6344
+ staticDuration?: (google.type.ILocalizedText|null);
6345
+
6346
+ /** RouteLocalizedValues transitFare */
6347
+ transitFare?: (google.type.ILocalizedText|null);
6348
+ }
6349
+
6350
+ /** Represents a RouteLocalizedValues. */
6351
+ class RouteLocalizedValues implements IRouteLocalizedValues {
6352
+
6353
+ /**
6354
+ * Constructs a new RouteLocalizedValues.
6355
+ * @param [properties] Properties to set
6356
+ */
6357
+ constructor(properties?: google.maps.routing.v2.Route.IRouteLocalizedValues);
6358
+
6359
+ /** RouteLocalizedValues distance. */
6360
+ public distance?: (google.type.ILocalizedText|null);
6361
+
6362
+ /** RouteLocalizedValues duration. */
6363
+ public duration?: (google.type.ILocalizedText|null);
6364
+
6365
+ /** RouteLocalizedValues staticDuration. */
6366
+ public staticDuration?: (google.type.ILocalizedText|null);
6367
+
6368
+ /** RouteLocalizedValues transitFare. */
6369
+ public transitFare?: (google.type.ILocalizedText|null);
6370
+
6371
+ /**
6372
+ * Creates a new RouteLocalizedValues instance using the specified properties.
6373
+ * @param [properties] Properties to set
6374
+ * @returns RouteLocalizedValues instance
6375
+ */
6376
+ public static create(properties?: google.maps.routing.v2.Route.IRouteLocalizedValues): google.maps.routing.v2.Route.RouteLocalizedValues;
6377
+
6378
+ /**
6379
+ * Encodes the specified RouteLocalizedValues message. Does not implicitly {@link google.maps.routing.v2.Route.RouteLocalizedValues.verify|verify} messages.
6380
+ * @param message RouteLocalizedValues message or plain object to encode
6381
+ * @param [writer] Writer to encode to
6382
+ * @returns Writer
6383
+ */
6384
+ public static encode(message: google.maps.routing.v2.Route.IRouteLocalizedValues, writer?: $protobuf.Writer): $protobuf.Writer;
6385
+
6386
+ /**
6387
+ * Encodes the specified RouteLocalizedValues message, length delimited. Does not implicitly {@link google.maps.routing.v2.Route.RouteLocalizedValues.verify|verify} messages.
6388
+ * @param message RouteLocalizedValues message or plain object to encode
6389
+ * @param [writer] Writer to encode to
6390
+ * @returns Writer
6391
+ */
6392
+ public static encodeDelimited(message: google.maps.routing.v2.Route.IRouteLocalizedValues, writer?: $protobuf.Writer): $protobuf.Writer;
6393
+
6394
+ /**
6395
+ * Decodes a RouteLocalizedValues message from the specified reader or buffer.
6396
+ * @param reader Reader or buffer to decode from
6397
+ * @param [length] Message length if known beforehand
6398
+ * @returns RouteLocalizedValues
6399
+ * @throws {Error} If the payload is not a reader or valid buffer
6400
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6401
+ */
6402
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.Route.RouteLocalizedValues;
6403
+
6404
+ /**
6405
+ * Decodes a RouteLocalizedValues message from the specified reader or buffer, length delimited.
6406
+ * @param reader Reader or buffer to decode from
6407
+ * @returns RouteLocalizedValues
6408
+ * @throws {Error} If the payload is not a reader or valid buffer
6409
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6410
+ */
6411
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.Route.RouteLocalizedValues;
6412
+
6413
+ /**
6414
+ * Verifies a RouteLocalizedValues message.
6415
+ * @param message Plain object to verify
6416
+ * @returns `null` if valid, otherwise the reason why it is not
6417
+ */
6418
+ public static verify(message: { [k: string]: any }): (string|null);
6419
+
6420
+ /**
6421
+ * Creates a RouteLocalizedValues message from a plain object. Also converts values to their respective internal types.
6422
+ * @param object Plain object
6423
+ * @returns RouteLocalizedValues
6424
+ */
6425
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.Route.RouteLocalizedValues;
6426
+
6427
+ /**
6428
+ * Creates a plain object from a RouteLocalizedValues message. Also converts values to other types if specified.
6429
+ * @param message RouteLocalizedValues
6430
+ * @param [options] Conversion options
6431
+ * @returns Plain object
6432
+ */
6433
+ public static toObject(message: google.maps.routing.v2.Route.RouteLocalizedValues, options?: $protobuf.IConversionOptions): { [k: string]: any };
6434
+
6435
+ /**
6436
+ * Converts this RouteLocalizedValues to JSON.
6437
+ * @returns JSON object
6438
+ */
6439
+ public toJSON(): { [k: string]: any };
6440
+
6441
+ /**
6442
+ * Gets the default type url for RouteLocalizedValues
6443
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6444
+ * @returns The default type url
6445
+ */
6446
+ public static getTypeUrl(typeUrlPrefix?: string): string;
6447
+ }
6448
+ }
6449
+
6112
6450
  /** Properties of a RouteTravelAdvisory. */
6113
6451
  interface IRouteTravelAdvisory {
6114
6452
 
@@ -6120,6 +6458,12 @@ export namespace google {
6120
6458
 
6121
6459
  /** RouteTravelAdvisory fuelConsumptionMicroliters */
6122
6460
  fuelConsumptionMicroliters?: (number|Long|string|null);
6461
+
6462
+ /** RouteTravelAdvisory routeRestrictionsPartiallyIgnored */
6463
+ routeRestrictionsPartiallyIgnored?: (boolean|null);
6464
+
6465
+ /** RouteTravelAdvisory transitFare */
6466
+ transitFare?: (google.type.IMoney|null);
6123
6467
  }
6124
6468
 
6125
6469
  /** Represents a RouteTravelAdvisory. */
@@ -6140,6 +6484,12 @@ export namespace google {
6140
6484
  /** RouteTravelAdvisory fuelConsumptionMicroliters. */
6141
6485
  public fuelConsumptionMicroliters: (number|Long|string);
6142
6486
 
6487
+ /** RouteTravelAdvisory routeRestrictionsPartiallyIgnored. */
6488
+ public routeRestrictionsPartiallyIgnored: boolean;
6489
+
6490
+ /** RouteTravelAdvisory transitFare. */
6491
+ public transitFare?: (google.type.IMoney|null);
6492
+
6143
6493
  /**
6144
6494
  * Creates a new RouteTravelAdvisory instance using the specified properties.
6145
6495
  * @param [properties] Properties to set
@@ -6444,6 +6794,12 @@ export namespace google {
6444
6794
 
6445
6795
  /** RouteLeg travelAdvisory */
6446
6796
  travelAdvisory?: (google.maps.routing.v2.IRouteLegTravelAdvisory|null);
6797
+
6798
+ /** RouteLeg localizedValues */
6799
+ localizedValues?: (google.maps.routing.v2.RouteLeg.IRouteLegLocalizedValues|null);
6800
+
6801
+ /** RouteLeg stepsOverview */
6802
+ stepsOverview?: (google.maps.routing.v2.RouteLeg.IStepsOverview|null);
6447
6803
  }
6448
6804
 
6449
6805
  /** Represents a RouteLeg. */
@@ -6479,6 +6835,12 @@ export namespace google {
6479
6835
  /** RouteLeg travelAdvisory. */
6480
6836
  public travelAdvisory?: (google.maps.routing.v2.IRouteLegTravelAdvisory|null);
6481
6837
 
6838
+ /** RouteLeg localizedValues. */
6839
+ public localizedValues?: (google.maps.routing.v2.RouteLeg.IRouteLegLocalizedValues|null);
6840
+
6841
+ /** RouteLeg stepsOverview. */
6842
+ public stepsOverview?: (google.maps.routing.v2.RouteLeg.IStepsOverview|null);
6843
+
6482
6844
  /**
6483
6845
  * Creates a new RouteLeg instance using the specified properties.
6484
6846
  * @param [properties] Properties to set
@@ -6557,6 +6919,339 @@ export namespace google {
6557
6919
  public static getTypeUrl(typeUrlPrefix?: string): string;
6558
6920
  }
6559
6921
 
6922
+ namespace RouteLeg {
6923
+
6924
+ /** Properties of a RouteLegLocalizedValues. */
6925
+ interface IRouteLegLocalizedValues {
6926
+
6927
+ /** RouteLegLocalizedValues distance */
6928
+ distance?: (google.type.ILocalizedText|null);
6929
+
6930
+ /** RouteLegLocalizedValues duration */
6931
+ duration?: (google.type.ILocalizedText|null);
6932
+
6933
+ /** RouteLegLocalizedValues staticDuration */
6934
+ staticDuration?: (google.type.ILocalizedText|null);
6935
+ }
6936
+
6937
+ /** Represents a RouteLegLocalizedValues. */
6938
+ class RouteLegLocalizedValues implements IRouteLegLocalizedValues {
6939
+
6940
+ /**
6941
+ * Constructs a new RouteLegLocalizedValues.
6942
+ * @param [properties] Properties to set
6943
+ */
6944
+ constructor(properties?: google.maps.routing.v2.RouteLeg.IRouteLegLocalizedValues);
6945
+
6946
+ /** RouteLegLocalizedValues distance. */
6947
+ public distance?: (google.type.ILocalizedText|null);
6948
+
6949
+ /** RouteLegLocalizedValues duration. */
6950
+ public duration?: (google.type.ILocalizedText|null);
6951
+
6952
+ /** RouteLegLocalizedValues staticDuration. */
6953
+ public staticDuration?: (google.type.ILocalizedText|null);
6954
+
6955
+ /**
6956
+ * Creates a new RouteLegLocalizedValues instance using the specified properties.
6957
+ * @param [properties] Properties to set
6958
+ * @returns RouteLegLocalizedValues instance
6959
+ */
6960
+ public static create(properties?: google.maps.routing.v2.RouteLeg.IRouteLegLocalizedValues): google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues;
6961
+
6962
+ /**
6963
+ * Encodes the specified RouteLegLocalizedValues message. Does not implicitly {@link google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.verify|verify} messages.
6964
+ * @param message RouteLegLocalizedValues message or plain object to encode
6965
+ * @param [writer] Writer to encode to
6966
+ * @returns Writer
6967
+ */
6968
+ public static encode(message: google.maps.routing.v2.RouteLeg.IRouteLegLocalizedValues, writer?: $protobuf.Writer): $protobuf.Writer;
6969
+
6970
+ /**
6971
+ * Encodes the specified RouteLegLocalizedValues message, length delimited. Does not implicitly {@link google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.verify|verify} messages.
6972
+ * @param message RouteLegLocalizedValues message or plain object to encode
6973
+ * @param [writer] Writer to encode to
6974
+ * @returns Writer
6975
+ */
6976
+ public static encodeDelimited(message: google.maps.routing.v2.RouteLeg.IRouteLegLocalizedValues, writer?: $protobuf.Writer): $protobuf.Writer;
6977
+
6978
+ /**
6979
+ * Decodes a RouteLegLocalizedValues message from the specified reader or buffer.
6980
+ * @param reader Reader or buffer to decode from
6981
+ * @param [length] Message length if known beforehand
6982
+ * @returns RouteLegLocalizedValues
6983
+ * @throws {Error} If the payload is not a reader or valid buffer
6984
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6985
+ */
6986
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues;
6987
+
6988
+ /**
6989
+ * Decodes a RouteLegLocalizedValues message from the specified reader or buffer, length delimited.
6990
+ * @param reader Reader or buffer to decode from
6991
+ * @returns RouteLegLocalizedValues
6992
+ * @throws {Error} If the payload is not a reader or valid buffer
6993
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6994
+ */
6995
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues;
6996
+
6997
+ /**
6998
+ * Verifies a RouteLegLocalizedValues message.
6999
+ * @param message Plain object to verify
7000
+ * @returns `null` if valid, otherwise the reason why it is not
7001
+ */
7002
+ public static verify(message: { [k: string]: any }): (string|null);
7003
+
7004
+ /**
7005
+ * Creates a RouteLegLocalizedValues message from a plain object. Also converts values to their respective internal types.
7006
+ * @param object Plain object
7007
+ * @returns RouteLegLocalizedValues
7008
+ */
7009
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues;
7010
+
7011
+ /**
7012
+ * Creates a plain object from a RouteLegLocalizedValues message. Also converts values to other types if specified.
7013
+ * @param message RouteLegLocalizedValues
7014
+ * @param [options] Conversion options
7015
+ * @returns Plain object
7016
+ */
7017
+ public static toObject(message: google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues, options?: $protobuf.IConversionOptions): { [k: string]: any };
7018
+
7019
+ /**
7020
+ * Converts this RouteLegLocalizedValues to JSON.
7021
+ * @returns JSON object
7022
+ */
7023
+ public toJSON(): { [k: string]: any };
7024
+
7025
+ /**
7026
+ * Gets the default type url for RouteLegLocalizedValues
7027
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7028
+ * @returns The default type url
7029
+ */
7030
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7031
+ }
7032
+
7033
+ /** Properties of a StepsOverview. */
7034
+ interface IStepsOverview {
7035
+
7036
+ /** StepsOverview multiModalSegments */
7037
+ multiModalSegments?: (google.maps.routing.v2.RouteLeg.StepsOverview.IMultiModalSegment[]|null);
7038
+ }
7039
+
7040
+ /** Represents a StepsOverview. */
7041
+ class StepsOverview implements IStepsOverview {
7042
+
7043
+ /**
7044
+ * Constructs a new StepsOverview.
7045
+ * @param [properties] Properties to set
7046
+ */
7047
+ constructor(properties?: google.maps.routing.v2.RouteLeg.IStepsOverview);
7048
+
7049
+ /** StepsOverview multiModalSegments. */
7050
+ public multiModalSegments: google.maps.routing.v2.RouteLeg.StepsOverview.IMultiModalSegment[];
7051
+
7052
+ /**
7053
+ * Creates a new StepsOverview instance using the specified properties.
7054
+ * @param [properties] Properties to set
7055
+ * @returns StepsOverview instance
7056
+ */
7057
+ public static create(properties?: google.maps.routing.v2.RouteLeg.IStepsOverview): google.maps.routing.v2.RouteLeg.StepsOverview;
7058
+
7059
+ /**
7060
+ * Encodes the specified StepsOverview message. Does not implicitly {@link google.maps.routing.v2.RouteLeg.StepsOverview.verify|verify} messages.
7061
+ * @param message StepsOverview message or plain object to encode
7062
+ * @param [writer] Writer to encode to
7063
+ * @returns Writer
7064
+ */
7065
+ public static encode(message: google.maps.routing.v2.RouteLeg.IStepsOverview, writer?: $protobuf.Writer): $protobuf.Writer;
7066
+
7067
+ /**
7068
+ * Encodes the specified StepsOverview message, length delimited. Does not implicitly {@link google.maps.routing.v2.RouteLeg.StepsOverview.verify|verify} messages.
7069
+ * @param message StepsOverview message or plain object to encode
7070
+ * @param [writer] Writer to encode to
7071
+ * @returns Writer
7072
+ */
7073
+ public static encodeDelimited(message: google.maps.routing.v2.RouteLeg.IStepsOverview, writer?: $protobuf.Writer): $protobuf.Writer;
7074
+
7075
+ /**
7076
+ * Decodes a StepsOverview message from the specified reader or buffer.
7077
+ * @param reader Reader or buffer to decode from
7078
+ * @param [length] Message length if known beforehand
7079
+ * @returns StepsOverview
7080
+ * @throws {Error} If the payload is not a reader or valid buffer
7081
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7082
+ */
7083
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.RouteLeg.StepsOverview;
7084
+
7085
+ /**
7086
+ * Decodes a StepsOverview message from the specified reader or buffer, length delimited.
7087
+ * @param reader Reader or buffer to decode from
7088
+ * @returns StepsOverview
7089
+ * @throws {Error} If the payload is not a reader or valid buffer
7090
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7091
+ */
7092
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.RouteLeg.StepsOverview;
7093
+
7094
+ /**
7095
+ * Verifies a StepsOverview message.
7096
+ * @param message Plain object to verify
7097
+ * @returns `null` if valid, otherwise the reason why it is not
7098
+ */
7099
+ public static verify(message: { [k: string]: any }): (string|null);
7100
+
7101
+ /**
7102
+ * Creates a StepsOverview message from a plain object. Also converts values to their respective internal types.
7103
+ * @param object Plain object
7104
+ * @returns StepsOverview
7105
+ */
7106
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.RouteLeg.StepsOverview;
7107
+
7108
+ /**
7109
+ * Creates a plain object from a StepsOverview message. Also converts values to other types if specified.
7110
+ * @param message StepsOverview
7111
+ * @param [options] Conversion options
7112
+ * @returns Plain object
7113
+ */
7114
+ public static toObject(message: google.maps.routing.v2.RouteLeg.StepsOverview, options?: $protobuf.IConversionOptions): { [k: string]: any };
7115
+
7116
+ /**
7117
+ * Converts this StepsOverview to JSON.
7118
+ * @returns JSON object
7119
+ */
7120
+ public toJSON(): { [k: string]: any };
7121
+
7122
+ /**
7123
+ * Gets the default type url for StepsOverview
7124
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7125
+ * @returns The default type url
7126
+ */
7127
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7128
+ }
7129
+
7130
+ namespace StepsOverview {
7131
+
7132
+ /** Properties of a MultiModalSegment. */
7133
+ interface IMultiModalSegment {
7134
+
7135
+ /** MultiModalSegment stepStartIndex */
7136
+ stepStartIndex?: (number|null);
7137
+
7138
+ /** MultiModalSegment stepEndIndex */
7139
+ stepEndIndex?: (number|null);
7140
+
7141
+ /** MultiModalSegment navigationInstruction */
7142
+ navigationInstruction?: (google.maps.routing.v2.INavigationInstruction|null);
7143
+
7144
+ /** MultiModalSegment travelMode */
7145
+ travelMode?: (google.maps.routing.v2.RouteTravelMode|keyof typeof google.maps.routing.v2.RouteTravelMode|null);
7146
+ }
7147
+
7148
+ /** Represents a MultiModalSegment. */
7149
+ class MultiModalSegment implements IMultiModalSegment {
7150
+
7151
+ /**
7152
+ * Constructs a new MultiModalSegment.
7153
+ * @param [properties] Properties to set
7154
+ */
7155
+ constructor(properties?: google.maps.routing.v2.RouteLeg.StepsOverview.IMultiModalSegment);
7156
+
7157
+ /** MultiModalSegment stepStartIndex. */
7158
+ public stepStartIndex?: (number|null);
7159
+
7160
+ /** MultiModalSegment stepEndIndex. */
7161
+ public stepEndIndex?: (number|null);
7162
+
7163
+ /** MultiModalSegment navigationInstruction. */
7164
+ public navigationInstruction?: (google.maps.routing.v2.INavigationInstruction|null);
7165
+
7166
+ /** MultiModalSegment travelMode. */
7167
+ public travelMode: (google.maps.routing.v2.RouteTravelMode|keyof typeof google.maps.routing.v2.RouteTravelMode);
7168
+
7169
+ /** MultiModalSegment _stepStartIndex. */
7170
+ public _stepStartIndex?: "stepStartIndex";
7171
+
7172
+ /** MultiModalSegment _stepEndIndex. */
7173
+ public _stepEndIndex?: "stepEndIndex";
7174
+
7175
+ /**
7176
+ * Creates a new MultiModalSegment instance using the specified properties.
7177
+ * @param [properties] Properties to set
7178
+ * @returns MultiModalSegment instance
7179
+ */
7180
+ public static create(properties?: google.maps.routing.v2.RouteLeg.StepsOverview.IMultiModalSegment): google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment;
7181
+
7182
+ /**
7183
+ * Encodes the specified MultiModalSegment message. Does not implicitly {@link google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.verify|verify} messages.
7184
+ * @param message MultiModalSegment message or plain object to encode
7185
+ * @param [writer] Writer to encode to
7186
+ * @returns Writer
7187
+ */
7188
+ public static encode(message: google.maps.routing.v2.RouteLeg.StepsOverview.IMultiModalSegment, writer?: $protobuf.Writer): $protobuf.Writer;
7189
+
7190
+ /**
7191
+ * Encodes the specified MultiModalSegment message, length delimited. Does not implicitly {@link google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment.verify|verify} messages.
7192
+ * @param message MultiModalSegment message or plain object to encode
7193
+ * @param [writer] Writer to encode to
7194
+ * @returns Writer
7195
+ */
7196
+ public static encodeDelimited(message: google.maps.routing.v2.RouteLeg.StepsOverview.IMultiModalSegment, writer?: $protobuf.Writer): $protobuf.Writer;
7197
+
7198
+ /**
7199
+ * Decodes a MultiModalSegment message from the specified reader or buffer.
7200
+ * @param reader Reader or buffer to decode from
7201
+ * @param [length] Message length if known beforehand
7202
+ * @returns MultiModalSegment
7203
+ * @throws {Error} If the payload is not a reader or valid buffer
7204
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7205
+ */
7206
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment;
7207
+
7208
+ /**
7209
+ * Decodes a MultiModalSegment message from the specified reader or buffer, length delimited.
7210
+ * @param reader Reader or buffer to decode from
7211
+ * @returns MultiModalSegment
7212
+ * @throws {Error} If the payload is not a reader or valid buffer
7213
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7214
+ */
7215
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment;
7216
+
7217
+ /**
7218
+ * Verifies a MultiModalSegment message.
7219
+ * @param message Plain object to verify
7220
+ * @returns `null` if valid, otherwise the reason why it is not
7221
+ */
7222
+ public static verify(message: { [k: string]: any }): (string|null);
7223
+
7224
+ /**
7225
+ * Creates a MultiModalSegment message from a plain object. Also converts values to their respective internal types.
7226
+ * @param object Plain object
7227
+ * @returns MultiModalSegment
7228
+ */
7229
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment;
7230
+
7231
+ /**
7232
+ * Creates a plain object from a MultiModalSegment message. Also converts values to other types if specified.
7233
+ * @param message MultiModalSegment
7234
+ * @param [options] Conversion options
7235
+ * @returns Plain object
7236
+ */
7237
+ public static toObject(message: google.maps.routing.v2.RouteLeg.StepsOverview.MultiModalSegment, options?: $protobuf.IConversionOptions): { [k: string]: any };
7238
+
7239
+ /**
7240
+ * Converts this MultiModalSegment to JSON.
7241
+ * @returns JSON object
7242
+ */
7243
+ public toJSON(): { [k: string]: any };
7244
+
7245
+ /**
7246
+ * Gets the default type url for MultiModalSegment
7247
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7248
+ * @returns The default type url
7249
+ */
7250
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7251
+ }
7252
+ }
7253
+ }
7254
+
6560
7255
  /** Properties of a RouteLegStep. */
6561
7256
  interface IRouteLegStep {
6562
7257
 
@@ -6580,6 +7275,15 @@ export namespace google {
6580
7275
 
6581
7276
  /** RouteLegStep travelAdvisory */
6582
7277
  travelAdvisory?: (google.maps.routing.v2.IRouteLegStepTravelAdvisory|null);
7278
+
7279
+ /** RouteLegStep localizedValues */
7280
+ localizedValues?: (google.maps.routing.v2.RouteLegStep.IRouteLegStepLocalizedValues|null);
7281
+
7282
+ /** RouteLegStep transitDetails */
7283
+ transitDetails?: (google.maps.routing.v2.IRouteLegStepTransitDetails|null);
7284
+
7285
+ /** RouteLegStep travelMode */
7286
+ travelMode?: (google.maps.routing.v2.RouteTravelMode|keyof typeof google.maps.routing.v2.RouteTravelMode|null);
6583
7287
  }
6584
7288
 
6585
7289
  /** Represents a RouteLegStep. */
@@ -6612,6 +7316,15 @@ export namespace google {
6612
7316
  /** RouteLegStep travelAdvisory. */
6613
7317
  public travelAdvisory?: (google.maps.routing.v2.IRouteLegStepTravelAdvisory|null);
6614
7318
 
7319
+ /** RouteLegStep localizedValues. */
7320
+ public localizedValues?: (google.maps.routing.v2.RouteLegStep.IRouteLegStepLocalizedValues|null);
7321
+
7322
+ /** RouteLegStep transitDetails. */
7323
+ public transitDetails?: (google.maps.routing.v2.IRouteLegStepTransitDetails|null);
7324
+
7325
+ /** RouteLegStep travelMode. */
7326
+ public travelMode: (google.maps.routing.v2.RouteTravelMode|keyof typeof google.maps.routing.v2.RouteTravelMode);
7327
+
6615
7328
  /**
6616
7329
  * Creates a new RouteLegStep instance using the specified properties.
6617
7330
  * @param [properties] Properties to set
@@ -6690,44 +7403,514 @@ export namespace google {
6690
7403
  public static getTypeUrl(typeUrlPrefix?: string): string;
6691
7404
  }
6692
7405
 
6693
- /** RouteLabel enum. */
6694
- enum RouteLabel {
6695
- ROUTE_LABEL_UNSPECIFIED = 0,
6696
- DEFAULT_ROUTE = 1,
6697
- DEFAULT_ROUTE_ALTERNATE = 2,
6698
- FUEL_EFFICIENT = 3
7406
+ namespace RouteLegStep {
7407
+
7408
+ /** Properties of a RouteLegStepLocalizedValues. */
7409
+ interface IRouteLegStepLocalizedValues {
7410
+
7411
+ /** RouteLegStepLocalizedValues distance */
7412
+ distance?: (google.type.ILocalizedText|null);
7413
+
7414
+ /** RouteLegStepLocalizedValues staticDuration */
7415
+ staticDuration?: (google.type.ILocalizedText|null);
7416
+ }
7417
+
7418
+ /** Represents a RouteLegStepLocalizedValues. */
7419
+ class RouteLegStepLocalizedValues implements IRouteLegStepLocalizedValues {
7420
+
7421
+ /**
7422
+ * Constructs a new RouteLegStepLocalizedValues.
7423
+ * @param [properties] Properties to set
7424
+ */
7425
+ constructor(properties?: google.maps.routing.v2.RouteLegStep.IRouteLegStepLocalizedValues);
7426
+
7427
+ /** RouteLegStepLocalizedValues distance. */
7428
+ public distance?: (google.type.ILocalizedText|null);
7429
+
7430
+ /** RouteLegStepLocalizedValues staticDuration. */
7431
+ public staticDuration?: (google.type.ILocalizedText|null);
7432
+
7433
+ /**
7434
+ * Creates a new RouteLegStepLocalizedValues instance using the specified properties.
7435
+ * @param [properties] Properties to set
7436
+ * @returns RouteLegStepLocalizedValues instance
7437
+ */
7438
+ public static create(properties?: google.maps.routing.v2.RouteLegStep.IRouteLegStepLocalizedValues): google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues;
7439
+
7440
+ /**
7441
+ * Encodes the specified RouteLegStepLocalizedValues message. Does not implicitly {@link google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.verify|verify} messages.
7442
+ * @param message RouteLegStepLocalizedValues message or plain object to encode
7443
+ * @param [writer] Writer to encode to
7444
+ * @returns Writer
7445
+ */
7446
+ public static encode(message: google.maps.routing.v2.RouteLegStep.IRouteLegStepLocalizedValues, writer?: $protobuf.Writer): $protobuf.Writer;
7447
+
7448
+ /**
7449
+ * Encodes the specified RouteLegStepLocalizedValues message, length delimited. Does not implicitly {@link google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues.verify|verify} messages.
7450
+ * @param message RouteLegStepLocalizedValues message or plain object to encode
7451
+ * @param [writer] Writer to encode to
7452
+ * @returns Writer
7453
+ */
7454
+ public static encodeDelimited(message: google.maps.routing.v2.RouteLegStep.IRouteLegStepLocalizedValues, writer?: $protobuf.Writer): $protobuf.Writer;
7455
+
7456
+ /**
7457
+ * Decodes a RouteLegStepLocalizedValues message from the specified reader or buffer.
7458
+ * @param reader Reader or buffer to decode from
7459
+ * @param [length] Message length if known beforehand
7460
+ * @returns RouteLegStepLocalizedValues
7461
+ * @throws {Error} If the payload is not a reader or valid buffer
7462
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7463
+ */
7464
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues;
7465
+
7466
+ /**
7467
+ * Decodes a RouteLegStepLocalizedValues message from the specified reader or buffer, length delimited.
7468
+ * @param reader Reader or buffer to decode from
7469
+ * @returns RouteLegStepLocalizedValues
7470
+ * @throws {Error} If the payload is not a reader or valid buffer
7471
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7472
+ */
7473
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues;
7474
+
7475
+ /**
7476
+ * Verifies a RouteLegStepLocalizedValues message.
7477
+ * @param message Plain object to verify
7478
+ * @returns `null` if valid, otherwise the reason why it is not
7479
+ */
7480
+ public static verify(message: { [k: string]: any }): (string|null);
7481
+
7482
+ /**
7483
+ * Creates a RouteLegStepLocalizedValues message from a plain object. Also converts values to their respective internal types.
7484
+ * @param object Plain object
7485
+ * @returns RouteLegStepLocalizedValues
7486
+ */
7487
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues;
7488
+
7489
+ /**
7490
+ * Creates a plain object from a RouteLegStepLocalizedValues message. Also converts values to other types if specified.
7491
+ * @param message RouteLegStepLocalizedValues
7492
+ * @param [options] Conversion options
7493
+ * @returns Plain object
7494
+ */
7495
+ public static toObject(message: google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues, options?: $protobuf.IConversionOptions): { [k: string]: any };
7496
+
7497
+ /**
7498
+ * Converts this RouteLegStepLocalizedValues to JSON.
7499
+ * @returns JSON object
7500
+ */
7501
+ public toJSON(): { [k: string]: any };
7502
+
7503
+ /**
7504
+ * Gets the default type url for RouteLegStepLocalizedValues
7505
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7506
+ * @returns The default type url
7507
+ */
7508
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7509
+ }
6699
7510
  }
6700
7511
 
6701
- /** Properties of a SpeedReadingInterval. */
6702
- interface ISpeedReadingInterval {
7512
+ /** Properties of a RouteLegStepTransitDetails. */
7513
+ interface IRouteLegStepTransitDetails {
6703
7514
 
6704
- /** SpeedReadingInterval startPolylinePointIndex */
6705
- startPolylinePointIndex?: (number|null);
7515
+ /** RouteLegStepTransitDetails stopDetails */
7516
+ stopDetails?: (google.maps.routing.v2.RouteLegStepTransitDetails.ITransitStopDetails|null);
6706
7517
 
6707
- /** SpeedReadingInterval endPolylinePointIndex */
6708
- endPolylinePointIndex?: (number|null);
7518
+ /** RouteLegStepTransitDetails localizedValues */
7519
+ localizedValues?: (google.maps.routing.v2.RouteLegStepTransitDetails.ITransitDetailsLocalizedValues|null);
6709
7520
 
6710
- /** SpeedReadingInterval speed */
6711
- speed?: (google.maps.routing.v2.SpeedReadingInterval.Speed|keyof typeof google.maps.routing.v2.SpeedReadingInterval.Speed|null);
7521
+ /** RouteLegStepTransitDetails headsign */
7522
+ headsign?: (string|null);
7523
+
7524
+ /** RouteLegStepTransitDetails headway */
7525
+ headway?: (google.protobuf.IDuration|null);
7526
+
7527
+ /** RouteLegStepTransitDetails transitLine */
7528
+ transitLine?: (google.maps.routing.v2.ITransitLine|null);
7529
+
7530
+ /** RouteLegStepTransitDetails stopCount */
7531
+ stopCount?: (number|null);
7532
+
7533
+ /** RouteLegStepTransitDetails tripShortText */
7534
+ tripShortText?: (string|null);
6712
7535
  }
6713
7536
 
6714
- /** Represents a SpeedReadingInterval. */
6715
- class SpeedReadingInterval implements ISpeedReadingInterval {
7537
+ /** Represents a RouteLegStepTransitDetails. */
7538
+ class RouteLegStepTransitDetails implements IRouteLegStepTransitDetails {
6716
7539
 
6717
7540
  /**
6718
- * Constructs a new SpeedReadingInterval.
7541
+ * Constructs a new RouteLegStepTransitDetails.
6719
7542
  * @param [properties] Properties to set
6720
7543
  */
6721
- constructor(properties?: google.maps.routing.v2.ISpeedReadingInterval);
7544
+ constructor(properties?: google.maps.routing.v2.IRouteLegStepTransitDetails);
6722
7545
 
6723
- /** SpeedReadingInterval startPolylinePointIndex. */
6724
- public startPolylinePointIndex?: (number|null);
7546
+ /** RouteLegStepTransitDetails stopDetails. */
7547
+ public stopDetails?: (google.maps.routing.v2.RouteLegStepTransitDetails.ITransitStopDetails|null);
6725
7548
 
6726
- /** SpeedReadingInterval endPolylinePointIndex. */
6727
- public endPolylinePointIndex?: (number|null);
7549
+ /** RouteLegStepTransitDetails localizedValues. */
7550
+ public localizedValues?: (google.maps.routing.v2.RouteLegStepTransitDetails.ITransitDetailsLocalizedValues|null);
6728
7551
 
6729
- /** SpeedReadingInterval speed. */
6730
- public speed?: (google.maps.routing.v2.SpeedReadingInterval.Speed|keyof typeof google.maps.routing.v2.SpeedReadingInterval.Speed|null);
7552
+ /** RouteLegStepTransitDetails headsign. */
7553
+ public headsign: string;
7554
+
7555
+ /** RouteLegStepTransitDetails headway. */
7556
+ public headway?: (google.protobuf.IDuration|null);
7557
+
7558
+ /** RouteLegStepTransitDetails transitLine. */
7559
+ public transitLine?: (google.maps.routing.v2.ITransitLine|null);
7560
+
7561
+ /** RouteLegStepTransitDetails stopCount. */
7562
+ public stopCount: number;
7563
+
7564
+ /** RouteLegStepTransitDetails tripShortText. */
7565
+ public tripShortText: string;
7566
+
7567
+ /**
7568
+ * Creates a new RouteLegStepTransitDetails instance using the specified properties.
7569
+ * @param [properties] Properties to set
7570
+ * @returns RouteLegStepTransitDetails instance
7571
+ */
7572
+ public static create(properties?: google.maps.routing.v2.IRouteLegStepTransitDetails): google.maps.routing.v2.RouteLegStepTransitDetails;
7573
+
7574
+ /**
7575
+ * Encodes the specified RouteLegStepTransitDetails message. Does not implicitly {@link google.maps.routing.v2.RouteLegStepTransitDetails.verify|verify} messages.
7576
+ * @param message RouteLegStepTransitDetails message or plain object to encode
7577
+ * @param [writer] Writer to encode to
7578
+ * @returns Writer
7579
+ */
7580
+ public static encode(message: google.maps.routing.v2.IRouteLegStepTransitDetails, writer?: $protobuf.Writer): $protobuf.Writer;
7581
+
7582
+ /**
7583
+ * Encodes the specified RouteLegStepTransitDetails message, length delimited. Does not implicitly {@link google.maps.routing.v2.RouteLegStepTransitDetails.verify|verify} messages.
7584
+ * @param message RouteLegStepTransitDetails message or plain object to encode
7585
+ * @param [writer] Writer to encode to
7586
+ * @returns Writer
7587
+ */
7588
+ public static encodeDelimited(message: google.maps.routing.v2.IRouteLegStepTransitDetails, writer?: $protobuf.Writer): $protobuf.Writer;
7589
+
7590
+ /**
7591
+ * Decodes a RouteLegStepTransitDetails message from the specified reader or buffer.
7592
+ * @param reader Reader or buffer to decode from
7593
+ * @param [length] Message length if known beforehand
7594
+ * @returns RouteLegStepTransitDetails
7595
+ * @throws {Error} If the payload is not a reader or valid buffer
7596
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7597
+ */
7598
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.RouteLegStepTransitDetails;
7599
+
7600
+ /**
7601
+ * Decodes a RouteLegStepTransitDetails message from the specified reader or buffer, length delimited.
7602
+ * @param reader Reader or buffer to decode from
7603
+ * @returns RouteLegStepTransitDetails
7604
+ * @throws {Error} If the payload is not a reader or valid buffer
7605
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7606
+ */
7607
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.RouteLegStepTransitDetails;
7608
+
7609
+ /**
7610
+ * Verifies a RouteLegStepTransitDetails message.
7611
+ * @param message Plain object to verify
7612
+ * @returns `null` if valid, otherwise the reason why it is not
7613
+ */
7614
+ public static verify(message: { [k: string]: any }): (string|null);
7615
+
7616
+ /**
7617
+ * Creates a RouteLegStepTransitDetails message from a plain object. Also converts values to their respective internal types.
7618
+ * @param object Plain object
7619
+ * @returns RouteLegStepTransitDetails
7620
+ */
7621
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.RouteLegStepTransitDetails;
7622
+
7623
+ /**
7624
+ * Creates a plain object from a RouteLegStepTransitDetails message. Also converts values to other types if specified.
7625
+ * @param message RouteLegStepTransitDetails
7626
+ * @param [options] Conversion options
7627
+ * @returns Plain object
7628
+ */
7629
+ public static toObject(message: google.maps.routing.v2.RouteLegStepTransitDetails, options?: $protobuf.IConversionOptions): { [k: string]: any };
7630
+
7631
+ /**
7632
+ * Converts this RouteLegStepTransitDetails to JSON.
7633
+ * @returns JSON object
7634
+ */
7635
+ public toJSON(): { [k: string]: any };
7636
+
7637
+ /**
7638
+ * Gets the default type url for RouteLegStepTransitDetails
7639
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7640
+ * @returns The default type url
7641
+ */
7642
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7643
+ }
7644
+
7645
+ namespace RouteLegStepTransitDetails {
7646
+
7647
+ /** Properties of a TransitStopDetails. */
7648
+ interface ITransitStopDetails {
7649
+
7650
+ /** TransitStopDetails arrivalStop */
7651
+ arrivalStop?: (google.maps.routing.v2.ITransitStop|null);
7652
+
7653
+ /** TransitStopDetails arrivalTime */
7654
+ arrivalTime?: (google.protobuf.ITimestamp|null);
7655
+
7656
+ /** TransitStopDetails departureStop */
7657
+ departureStop?: (google.maps.routing.v2.ITransitStop|null);
7658
+
7659
+ /** TransitStopDetails departureTime */
7660
+ departureTime?: (google.protobuf.ITimestamp|null);
7661
+ }
7662
+
7663
+ /** Represents a TransitStopDetails. */
7664
+ class TransitStopDetails implements ITransitStopDetails {
7665
+
7666
+ /**
7667
+ * Constructs a new TransitStopDetails.
7668
+ * @param [properties] Properties to set
7669
+ */
7670
+ constructor(properties?: google.maps.routing.v2.RouteLegStepTransitDetails.ITransitStopDetails);
7671
+
7672
+ /** TransitStopDetails arrivalStop. */
7673
+ public arrivalStop?: (google.maps.routing.v2.ITransitStop|null);
7674
+
7675
+ /** TransitStopDetails arrivalTime. */
7676
+ public arrivalTime?: (google.protobuf.ITimestamp|null);
7677
+
7678
+ /** TransitStopDetails departureStop. */
7679
+ public departureStop?: (google.maps.routing.v2.ITransitStop|null);
7680
+
7681
+ /** TransitStopDetails departureTime. */
7682
+ public departureTime?: (google.protobuf.ITimestamp|null);
7683
+
7684
+ /**
7685
+ * Creates a new TransitStopDetails instance using the specified properties.
7686
+ * @param [properties] Properties to set
7687
+ * @returns TransitStopDetails instance
7688
+ */
7689
+ public static create(properties?: google.maps.routing.v2.RouteLegStepTransitDetails.ITransitStopDetails): google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails;
7690
+
7691
+ /**
7692
+ * Encodes the specified TransitStopDetails message. Does not implicitly {@link google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.verify|verify} messages.
7693
+ * @param message TransitStopDetails message or plain object to encode
7694
+ * @param [writer] Writer to encode to
7695
+ * @returns Writer
7696
+ */
7697
+ public static encode(message: google.maps.routing.v2.RouteLegStepTransitDetails.ITransitStopDetails, writer?: $protobuf.Writer): $protobuf.Writer;
7698
+
7699
+ /**
7700
+ * Encodes the specified TransitStopDetails message, length delimited. Does not implicitly {@link google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails.verify|verify} messages.
7701
+ * @param message TransitStopDetails message or plain object to encode
7702
+ * @param [writer] Writer to encode to
7703
+ * @returns Writer
7704
+ */
7705
+ public static encodeDelimited(message: google.maps.routing.v2.RouteLegStepTransitDetails.ITransitStopDetails, writer?: $protobuf.Writer): $protobuf.Writer;
7706
+
7707
+ /**
7708
+ * Decodes a TransitStopDetails message from the specified reader or buffer.
7709
+ * @param reader Reader or buffer to decode from
7710
+ * @param [length] Message length if known beforehand
7711
+ * @returns TransitStopDetails
7712
+ * @throws {Error} If the payload is not a reader or valid buffer
7713
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7714
+ */
7715
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails;
7716
+
7717
+ /**
7718
+ * Decodes a TransitStopDetails message from the specified reader or buffer, length delimited.
7719
+ * @param reader Reader or buffer to decode from
7720
+ * @returns TransitStopDetails
7721
+ * @throws {Error} If the payload is not a reader or valid buffer
7722
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7723
+ */
7724
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails;
7725
+
7726
+ /**
7727
+ * Verifies a TransitStopDetails message.
7728
+ * @param message Plain object to verify
7729
+ * @returns `null` if valid, otherwise the reason why it is not
7730
+ */
7731
+ public static verify(message: { [k: string]: any }): (string|null);
7732
+
7733
+ /**
7734
+ * Creates a TransitStopDetails message from a plain object. Also converts values to their respective internal types.
7735
+ * @param object Plain object
7736
+ * @returns TransitStopDetails
7737
+ */
7738
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails;
7739
+
7740
+ /**
7741
+ * Creates a plain object from a TransitStopDetails message. Also converts values to other types if specified.
7742
+ * @param message TransitStopDetails
7743
+ * @param [options] Conversion options
7744
+ * @returns Plain object
7745
+ */
7746
+ public static toObject(message: google.maps.routing.v2.RouteLegStepTransitDetails.TransitStopDetails, options?: $protobuf.IConversionOptions): { [k: string]: any };
7747
+
7748
+ /**
7749
+ * Converts this TransitStopDetails to JSON.
7750
+ * @returns JSON object
7751
+ */
7752
+ public toJSON(): { [k: string]: any };
7753
+
7754
+ /**
7755
+ * Gets the default type url for TransitStopDetails
7756
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7757
+ * @returns The default type url
7758
+ */
7759
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7760
+ }
7761
+
7762
+ /** Properties of a TransitDetailsLocalizedValues. */
7763
+ interface ITransitDetailsLocalizedValues {
7764
+
7765
+ /** TransitDetailsLocalizedValues arrivalTime */
7766
+ arrivalTime?: (google.maps.routing.v2.ILocalizedTime|null);
7767
+
7768
+ /** TransitDetailsLocalizedValues departureTime */
7769
+ departureTime?: (google.maps.routing.v2.ILocalizedTime|null);
7770
+ }
7771
+
7772
+ /** Represents a TransitDetailsLocalizedValues. */
7773
+ class TransitDetailsLocalizedValues implements ITransitDetailsLocalizedValues {
7774
+
7775
+ /**
7776
+ * Constructs a new TransitDetailsLocalizedValues.
7777
+ * @param [properties] Properties to set
7778
+ */
7779
+ constructor(properties?: google.maps.routing.v2.RouteLegStepTransitDetails.ITransitDetailsLocalizedValues);
7780
+
7781
+ /** TransitDetailsLocalizedValues arrivalTime. */
7782
+ public arrivalTime?: (google.maps.routing.v2.ILocalizedTime|null);
7783
+
7784
+ /** TransitDetailsLocalizedValues departureTime. */
7785
+ public departureTime?: (google.maps.routing.v2.ILocalizedTime|null);
7786
+
7787
+ /**
7788
+ * Creates a new TransitDetailsLocalizedValues instance using the specified properties.
7789
+ * @param [properties] Properties to set
7790
+ * @returns TransitDetailsLocalizedValues instance
7791
+ */
7792
+ public static create(properties?: google.maps.routing.v2.RouteLegStepTransitDetails.ITransitDetailsLocalizedValues): google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues;
7793
+
7794
+ /**
7795
+ * Encodes the specified TransitDetailsLocalizedValues message. Does not implicitly {@link google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.verify|verify} messages.
7796
+ * @param message TransitDetailsLocalizedValues message or plain object to encode
7797
+ * @param [writer] Writer to encode to
7798
+ * @returns Writer
7799
+ */
7800
+ public static encode(message: google.maps.routing.v2.RouteLegStepTransitDetails.ITransitDetailsLocalizedValues, writer?: $protobuf.Writer): $protobuf.Writer;
7801
+
7802
+ /**
7803
+ * Encodes the specified TransitDetailsLocalizedValues message, length delimited. Does not implicitly {@link google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues.verify|verify} messages.
7804
+ * @param message TransitDetailsLocalizedValues message or plain object to encode
7805
+ * @param [writer] Writer to encode to
7806
+ * @returns Writer
7807
+ */
7808
+ public static encodeDelimited(message: google.maps.routing.v2.RouteLegStepTransitDetails.ITransitDetailsLocalizedValues, writer?: $protobuf.Writer): $protobuf.Writer;
7809
+
7810
+ /**
7811
+ * Decodes a TransitDetailsLocalizedValues message from the specified reader or buffer.
7812
+ * @param reader Reader or buffer to decode from
7813
+ * @param [length] Message length if known beforehand
7814
+ * @returns TransitDetailsLocalizedValues
7815
+ * @throws {Error} If the payload is not a reader or valid buffer
7816
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7817
+ */
7818
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues;
7819
+
7820
+ /**
7821
+ * Decodes a TransitDetailsLocalizedValues message from the specified reader or buffer, length delimited.
7822
+ * @param reader Reader or buffer to decode from
7823
+ * @returns TransitDetailsLocalizedValues
7824
+ * @throws {Error} If the payload is not a reader or valid buffer
7825
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7826
+ */
7827
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues;
7828
+
7829
+ /**
7830
+ * Verifies a TransitDetailsLocalizedValues message.
7831
+ * @param message Plain object to verify
7832
+ * @returns `null` if valid, otherwise the reason why it is not
7833
+ */
7834
+ public static verify(message: { [k: string]: any }): (string|null);
7835
+
7836
+ /**
7837
+ * Creates a TransitDetailsLocalizedValues message from a plain object. Also converts values to their respective internal types.
7838
+ * @param object Plain object
7839
+ * @returns TransitDetailsLocalizedValues
7840
+ */
7841
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues;
7842
+
7843
+ /**
7844
+ * Creates a plain object from a TransitDetailsLocalizedValues message. Also converts values to other types if specified.
7845
+ * @param message TransitDetailsLocalizedValues
7846
+ * @param [options] Conversion options
7847
+ * @returns Plain object
7848
+ */
7849
+ public static toObject(message: google.maps.routing.v2.RouteLegStepTransitDetails.TransitDetailsLocalizedValues, options?: $protobuf.IConversionOptions): { [k: string]: any };
7850
+
7851
+ /**
7852
+ * Converts this TransitDetailsLocalizedValues to JSON.
7853
+ * @returns JSON object
7854
+ */
7855
+ public toJSON(): { [k: string]: any };
7856
+
7857
+ /**
7858
+ * Gets the default type url for TransitDetailsLocalizedValues
7859
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7860
+ * @returns The default type url
7861
+ */
7862
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7863
+ }
7864
+ }
7865
+
7866
+ /** RouteLabel enum. */
7867
+ enum RouteLabel {
7868
+ ROUTE_LABEL_UNSPECIFIED = 0,
7869
+ DEFAULT_ROUTE = 1,
7870
+ DEFAULT_ROUTE_ALTERNATE = 2,
7871
+ FUEL_EFFICIENT = 3
7872
+ }
7873
+
7874
+ /** RouteTravelMode enum. */
7875
+ enum RouteTravelMode {
7876
+ TRAVEL_MODE_UNSPECIFIED = 0,
7877
+ DRIVE = 1,
7878
+ BICYCLE = 2,
7879
+ WALK = 3,
7880
+ TWO_WHEELER = 4,
7881
+ TRANSIT = 7
7882
+ }
7883
+
7884
+ /** Properties of a SpeedReadingInterval. */
7885
+ interface ISpeedReadingInterval {
7886
+
7887
+ /** SpeedReadingInterval startPolylinePointIndex */
7888
+ startPolylinePointIndex?: (number|null);
7889
+
7890
+ /** SpeedReadingInterval endPolylinePointIndex */
7891
+ endPolylinePointIndex?: (number|null);
7892
+
7893
+ /** SpeedReadingInterval speed */
7894
+ speed?: (google.maps.routing.v2.SpeedReadingInterval.Speed|keyof typeof google.maps.routing.v2.SpeedReadingInterval.Speed|null);
7895
+ }
7896
+
7897
+ /** Represents a SpeedReadingInterval. */
7898
+ class SpeedReadingInterval implements ISpeedReadingInterval {
7899
+
7900
+ /**
7901
+ * Constructs a new SpeedReadingInterval.
7902
+ * @param [properties] Properties to set
7903
+ */
7904
+ constructor(properties?: google.maps.routing.v2.ISpeedReadingInterval);
7905
+
7906
+ /** SpeedReadingInterval startPolylinePointIndex. */
7907
+ public startPolylinePointIndex?: (number|null);
7908
+
7909
+ /** SpeedReadingInterval endPolylinePointIndex. */
7910
+ public endPolylinePointIndex?: (number|null);
7911
+
7912
+ /** SpeedReadingInterval speed. */
7913
+ public speed?: (google.maps.routing.v2.SpeedReadingInterval.Speed|keyof typeof google.maps.routing.v2.SpeedReadingInterval.Speed|null);
6731
7914
 
6732
7915
  /** SpeedReadingInterval _startPolylinePointIndex. */
6733
7916
  public _startPolylinePointIndex?: "startPolylinePointIndex";
@@ -6924,6 +8107,498 @@ export namespace google {
6924
8107
  public static getTypeUrl(typeUrlPrefix?: string): string;
6925
8108
  }
6926
8109
 
8110
+ /** Properties of a TransitAgency. */
8111
+ interface ITransitAgency {
8112
+
8113
+ /** TransitAgency name */
8114
+ name?: (string|null);
8115
+
8116
+ /** TransitAgency phoneNumber */
8117
+ phoneNumber?: (string|null);
8118
+
8119
+ /** TransitAgency uri */
8120
+ uri?: (string|null);
8121
+ }
8122
+
8123
+ /** Represents a TransitAgency. */
8124
+ class TransitAgency implements ITransitAgency {
8125
+
8126
+ /**
8127
+ * Constructs a new TransitAgency.
8128
+ * @param [properties] Properties to set
8129
+ */
8130
+ constructor(properties?: google.maps.routing.v2.ITransitAgency);
8131
+
8132
+ /** TransitAgency name. */
8133
+ public name: string;
8134
+
8135
+ /** TransitAgency phoneNumber. */
8136
+ public phoneNumber: string;
8137
+
8138
+ /** TransitAgency uri. */
8139
+ public uri: string;
8140
+
8141
+ /**
8142
+ * Creates a new TransitAgency instance using the specified properties.
8143
+ * @param [properties] Properties to set
8144
+ * @returns TransitAgency instance
8145
+ */
8146
+ public static create(properties?: google.maps.routing.v2.ITransitAgency): google.maps.routing.v2.TransitAgency;
8147
+
8148
+ /**
8149
+ * Encodes the specified TransitAgency message. Does not implicitly {@link google.maps.routing.v2.TransitAgency.verify|verify} messages.
8150
+ * @param message TransitAgency message or plain object to encode
8151
+ * @param [writer] Writer to encode to
8152
+ * @returns Writer
8153
+ */
8154
+ public static encode(message: google.maps.routing.v2.ITransitAgency, writer?: $protobuf.Writer): $protobuf.Writer;
8155
+
8156
+ /**
8157
+ * Encodes the specified TransitAgency message, length delimited. Does not implicitly {@link google.maps.routing.v2.TransitAgency.verify|verify} messages.
8158
+ * @param message TransitAgency message or plain object to encode
8159
+ * @param [writer] Writer to encode to
8160
+ * @returns Writer
8161
+ */
8162
+ public static encodeDelimited(message: google.maps.routing.v2.ITransitAgency, writer?: $protobuf.Writer): $protobuf.Writer;
8163
+
8164
+ /**
8165
+ * Decodes a TransitAgency message from the specified reader or buffer.
8166
+ * @param reader Reader or buffer to decode from
8167
+ * @param [length] Message length if known beforehand
8168
+ * @returns TransitAgency
8169
+ * @throws {Error} If the payload is not a reader or valid buffer
8170
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8171
+ */
8172
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.TransitAgency;
8173
+
8174
+ /**
8175
+ * Decodes a TransitAgency message from the specified reader or buffer, length delimited.
8176
+ * @param reader Reader or buffer to decode from
8177
+ * @returns TransitAgency
8178
+ * @throws {Error} If the payload is not a reader or valid buffer
8179
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8180
+ */
8181
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.TransitAgency;
8182
+
8183
+ /**
8184
+ * Verifies a TransitAgency message.
8185
+ * @param message Plain object to verify
8186
+ * @returns `null` if valid, otherwise the reason why it is not
8187
+ */
8188
+ public static verify(message: { [k: string]: any }): (string|null);
8189
+
8190
+ /**
8191
+ * Creates a TransitAgency message from a plain object. Also converts values to their respective internal types.
8192
+ * @param object Plain object
8193
+ * @returns TransitAgency
8194
+ */
8195
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.TransitAgency;
8196
+
8197
+ /**
8198
+ * Creates a plain object from a TransitAgency message. Also converts values to other types if specified.
8199
+ * @param message TransitAgency
8200
+ * @param [options] Conversion options
8201
+ * @returns Plain object
8202
+ */
8203
+ public static toObject(message: google.maps.routing.v2.TransitAgency, options?: $protobuf.IConversionOptions): { [k: string]: any };
8204
+
8205
+ /**
8206
+ * Converts this TransitAgency to JSON.
8207
+ * @returns JSON object
8208
+ */
8209
+ public toJSON(): { [k: string]: any };
8210
+
8211
+ /**
8212
+ * Gets the default type url for TransitAgency
8213
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8214
+ * @returns The default type url
8215
+ */
8216
+ public static getTypeUrl(typeUrlPrefix?: string): string;
8217
+ }
8218
+
8219
+ /** Properties of a TransitLine. */
8220
+ interface ITransitLine {
8221
+
8222
+ /** TransitLine agencies */
8223
+ agencies?: (google.maps.routing.v2.ITransitAgency[]|null);
8224
+
8225
+ /** TransitLine name */
8226
+ name?: (string|null);
8227
+
8228
+ /** TransitLine uri */
8229
+ uri?: (string|null);
8230
+
8231
+ /** TransitLine color */
8232
+ color?: (string|null);
8233
+
8234
+ /** TransitLine iconUri */
8235
+ iconUri?: (string|null);
8236
+
8237
+ /** TransitLine nameShort */
8238
+ nameShort?: (string|null);
8239
+
8240
+ /** TransitLine textColor */
8241
+ textColor?: (string|null);
8242
+
8243
+ /** TransitLine vehicle */
8244
+ vehicle?: (google.maps.routing.v2.ITransitVehicle|null);
8245
+ }
8246
+
8247
+ /** Represents a TransitLine. */
8248
+ class TransitLine implements ITransitLine {
8249
+
8250
+ /**
8251
+ * Constructs a new TransitLine.
8252
+ * @param [properties] Properties to set
8253
+ */
8254
+ constructor(properties?: google.maps.routing.v2.ITransitLine);
8255
+
8256
+ /** TransitLine agencies. */
8257
+ public agencies: google.maps.routing.v2.ITransitAgency[];
8258
+
8259
+ /** TransitLine name. */
8260
+ public name: string;
8261
+
8262
+ /** TransitLine uri. */
8263
+ public uri: string;
8264
+
8265
+ /** TransitLine color. */
8266
+ public color: string;
8267
+
8268
+ /** TransitLine iconUri. */
8269
+ public iconUri: string;
8270
+
8271
+ /** TransitLine nameShort. */
8272
+ public nameShort: string;
8273
+
8274
+ /** TransitLine textColor. */
8275
+ public textColor: string;
8276
+
8277
+ /** TransitLine vehicle. */
8278
+ public vehicle?: (google.maps.routing.v2.ITransitVehicle|null);
8279
+
8280
+ /**
8281
+ * Creates a new TransitLine instance using the specified properties.
8282
+ * @param [properties] Properties to set
8283
+ * @returns TransitLine instance
8284
+ */
8285
+ public static create(properties?: google.maps.routing.v2.ITransitLine): google.maps.routing.v2.TransitLine;
8286
+
8287
+ /**
8288
+ * Encodes the specified TransitLine message. Does not implicitly {@link google.maps.routing.v2.TransitLine.verify|verify} messages.
8289
+ * @param message TransitLine message or plain object to encode
8290
+ * @param [writer] Writer to encode to
8291
+ * @returns Writer
8292
+ */
8293
+ public static encode(message: google.maps.routing.v2.ITransitLine, writer?: $protobuf.Writer): $protobuf.Writer;
8294
+
8295
+ /**
8296
+ * Encodes the specified TransitLine message, length delimited. Does not implicitly {@link google.maps.routing.v2.TransitLine.verify|verify} messages.
8297
+ * @param message TransitLine message or plain object to encode
8298
+ * @param [writer] Writer to encode to
8299
+ * @returns Writer
8300
+ */
8301
+ public static encodeDelimited(message: google.maps.routing.v2.ITransitLine, writer?: $protobuf.Writer): $protobuf.Writer;
8302
+
8303
+ /**
8304
+ * Decodes a TransitLine message from the specified reader or buffer.
8305
+ * @param reader Reader or buffer to decode from
8306
+ * @param [length] Message length if known beforehand
8307
+ * @returns TransitLine
8308
+ * @throws {Error} If the payload is not a reader or valid buffer
8309
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8310
+ */
8311
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.TransitLine;
8312
+
8313
+ /**
8314
+ * Decodes a TransitLine message from the specified reader or buffer, length delimited.
8315
+ * @param reader Reader or buffer to decode from
8316
+ * @returns TransitLine
8317
+ * @throws {Error} If the payload is not a reader or valid buffer
8318
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8319
+ */
8320
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.TransitLine;
8321
+
8322
+ /**
8323
+ * Verifies a TransitLine message.
8324
+ * @param message Plain object to verify
8325
+ * @returns `null` if valid, otherwise the reason why it is not
8326
+ */
8327
+ public static verify(message: { [k: string]: any }): (string|null);
8328
+
8329
+ /**
8330
+ * Creates a TransitLine message from a plain object. Also converts values to their respective internal types.
8331
+ * @param object Plain object
8332
+ * @returns TransitLine
8333
+ */
8334
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.TransitLine;
8335
+
8336
+ /**
8337
+ * Creates a plain object from a TransitLine message. Also converts values to other types if specified.
8338
+ * @param message TransitLine
8339
+ * @param [options] Conversion options
8340
+ * @returns Plain object
8341
+ */
8342
+ public static toObject(message: google.maps.routing.v2.TransitLine, options?: $protobuf.IConversionOptions): { [k: string]: any };
8343
+
8344
+ /**
8345
+ * Converts this TransitLine to JSON.
8346
+ * @returns JSON object
8347
+ */
8348
+ public toJSON(): { [k: string]: any };
8349
+
8350
+ /**
8351
+ * Gets the default type url for TransitLine
8352
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8353
+ * @returns The default type url
8354
+ */
8355
+ public static getTypeUrl(typeUrlPrefix?: string): string;
8356
+ }
8357
+
8358
+ /** Properties of a TransitStop. */
8359
+ interface ITransitStop {
8360
+
8361
+ /** TransitStop name */
8362
+ name?: (string|null);
8363
+
8364
+ /** TransitStop location */
8365
+ location?: (google.maps.routing.v2.ILocation|null);
8366
+ }
8367
+
8368
+ /** Represents a TransitStop. */
8369
+ class TransitStop implements ITransitStop {
8370
+
8371
+ /**
8372
+ * Constructs a new TransitStop.
8373
+ * @param [properties] Properties to set
8374
+ */
8375
+ constructor(properties?: google.maps.routing.v2.ITransitStop);
8376
+
8377
+ /** TransitStop name. */
8378
+ public name: string;
8379
+
8380
+ /** TransitStop location. */
8381
+ public location?: (google.maps.routing.v2.ILocation|null);
8382
+
8383
+ /**
8384
+ * Creates a new TransitStop instance using the specified properties.
8385
+ * @param [properties] Properties to set
8386
+ * @returns TransitStop instance
8387
+ */
8388
+ public static create(properties?: google.maps.routing.v2.ITransitStop): google.maps.routing.v2.TransitStop;
8389
+
8390
+ /**
8391
+ * Encodes the specified TransitStop message. Does not implicitly {@link google.maps.routing.v2.TransitStop.verify|verify} messages.
8392
+ * @param message TransitStop message or plain object to encode
8393
+ * @param [writer] Writer to encode to
8394
+ * @returns Writer
8395
+ */
8396
+ public static encode(message: google.maps.routing.v2.ITransitStop, writer?: $protobuf.Writer): $protobuf.Writer;
8397
+
8398
+ /**
8399
+ * Encodes the specified TransitStop message, length delimited. Does not implicitly {@link google.maps.routing.v2.TransitStop.verify|verify} messages.
8400
+ * @param message TransitStop message or plain object to encode
8401
+ * @param [writer] Writer to encode to
8402
+ * @returns Writer
8403
+ */
8404
+ public static encodeDelimited(message: google.maps.routing.v2.ITransitStop, writer?: $protobuf.Writer): $protobuf.Writer;
8405
+
8406
+ /**
8407
+ * Decodes a TransitStop message from the specified reader or buffer.
8408
+ * @param reader Reader or buffer to decode from
8409
+ * @param [length] Message length if known beforehand
8410
+ * @returns TransitStop
8411
+ * @throws {Error} If the payload is not a reader or valid buffer
8412
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8413
+ */
8414
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.TransitStop;
8415
+
8416
+ /**
8417
+ * Decodes a TransitStop message from the specified reader or buffer, length delimited.
8418
+ * @param reader Reader or buffer to decode from
8419
+ * @returns TransitStop
8420
+ * @throws {Error} If the payload is not a reader or valid buffer
8421
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8422
+ */
8423
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.TransitStop;
8424
+
8425
+ /**
8426
+ * Verifies a TransitStop message.
8427
+ * @param message Plain object to verify
8428
+ * @returns `null` if valid, otherwise the reason why it is not
8429
+ */
8430
+ public static verify(message: { [k: string]: any }): (string|null);
8431
+
8432
+ /**
8433
+ * Creates a TransitStop message from a plain object. Also converts values to their respective internal types.
8434
+ * @param object Plain object
8435
+ * @returns TransitStop
8436
+ */
8437
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.TransitStop;
8438
+
8439
+ /**
8440
+ * Creates a plain object from a TransitStop message. Also converts values to other types if specified.
8441
+ * @param message TransitStop
8442
+ * @param [options] Conversion options
8443
+ * @returns Plain object
8444
+ */
8445
+ public static toObject(message: google.maps.routing.v2.TransitStop, options?: $protobuf.IConversionOptions): { [k: string]: any };
8446
+
8447
+ /**
8448
+ * Converts this TransitStop to JSON.
8449
+ * @returns JSON object
8450
+ */
8451
+ public toJSON(): { [k: string]: any };
8452
+
8453
+ /**
8454
+ * Gets the default type url for TransitStop
8455
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8456
+ * @returns The default type url
8457
+ */
8458
+ public static getTypeUrl(typeUrlPrefix?: string): string;
8459
+ }
8460
+
8461
+ /** Properties of a TransitVehicle. */
8462
+ interface ITransitVehicle {
8463
+
8464
+ /** TransitVehicle name */
8465
+ name?: (google.type.ILocalizedText|null);
8466
+
8467
+ /** TransitVehicle type */
8468
+ type?: (google.maps.routing.v2.TransitVehicle.TransitVehicleType|keyof typeof google.maps.routing.v2.TransitVehicle.TransitVehicleType|null);
8469
+
8470
+ /** TransitVehicle iconUri */
8471
+ iconUri?: (string|null);
8472
+
8473
+ /** TransitVehicle localIconUri */
8474
+ localIconUri?: (string|null);
8475
+ }
8476
+
8477
+ /** Represents a TransitVehicle. */
8478
+ class TransitVehicle implements ITransitVehicle {
8479
+
8480
+ /**
8481
+ * Constructs a new TransitVehicle.
8482
+ * @param [properties] Properties to set
8483
+ */
8484
+ constructor(properties?: google.maps.routing.v2.ITransitVehicle);
8485
+
8486
+ /** TransitVehicle name. */
8487
+ public name?: (google.type.ILocalizedText|null);
8488
+
8489
+ /** TransitVehicle type. */
8490
+ public type: (google.maps.routing.v2.TransitVehicle.TransitVehicleType|keyof typeof google.maps.routing.v2.TransitVehicle.TransitVehicleType);
8491
+
8492
+ /** TransitVehicle iconUri. */
8493
+ public iconUri: string;
8494
+
8495
+ /** TransitVehicle localIconUri. */
8496
+ public localIconUri: string;
8497
+
8498
+ /**
8499
+ * Creates a new TransitVehicle instance using the specified properties.
8500
+ * @param [properties] Properties to set
8501
+ * @returns TransitVehicle instance
8502
+ */
8503
+ public static create(properties?: google.maps.routing.v2.ITransitVehicle): google.maps.routing.v2.TransitVehicle;
8504
+
8505
+ /**
8506
+ * Encodes the specified TransitVehicle message. Does not implicitly {@link google.maps.routing.v2.TransitVehicle.verify|verify} messages.
8507
+ * @param message TransitVehicle message or plain object to encode
8508
+ * @param [writer] Writer to encode to
8509
+ * @returns Writer
8510
+ */
8511
+ public static encode(message: google.maps.routing.v2.ITransitVehicle, writer?: $protobuf.Writer): $protobuf.Writer;
8512
+
8513
+ /**
8514
+ * Encodes the specified TransitVehicle message, length delimited. Does not implicitly {@link google.maps.routing.v2.TransitVehicle.verify|verify} messages.
8515
+ * @param message TransitVehicle message or plain object to encode
8516
+ * @param [writer] Writer to encode to
8517
+ * @returns Writer
8518
+ */
8519
+ public static encodeDelimited(message: google.maps.routing.v2.ITransitVehicle, writer?: $protobuf.Writer): $protobuf.Writer;
8520
+
8521
+ /**
8522
+ * Decodes a TransitVehicle message from the specified reader or buffer.
8523
+ * @param reader Reader or buffer to decode from
8524
+ * @param [length] Message length if known beforehand
8525
+ * @returns TransitVehicle
8526
+ * @throws {Error} If the payload is not a reader or valid buffer
8527
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8528
+ */
8529
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.TransitVehicle;
8530
+
8531
+ /**
8532
+ * Decodes a TransitVehicle message from the specified reader or buffer, length delimited.
8533
+ * @param reader Reader or buffer to decode from
8534
+ * @returns TransitVehicle
8535
+ * @throws {Error} If the payload is not a reader or valid buffer
8536
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8537
+ */
8538
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.TransitVehicle;
8539
+
8540
+ /**
8541
+ * Verifies a TransitVehicle message.
8542
+ * @param message Plain object to verify
8543
+ * @returns `null` if valid, otherwise the reason why it is not
8544
+ */
8545
+ public static verify(message: { [k: string]: any }): (string|null);
8546
+
8547
+ /**
8548
+ * Creates a TransitVehicle message from a plain object. Also converts values to their respective internal types.
8549
+ * @param object Plain object
8550
+ * @returns TransitVehicle
8551
+ */
8552
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.TransitVehicle;
8553
+
8554
+ /**
8555
+ * Creates a plain object from a TransitVehicle message. Also converts values to other types if specified.
8556
+ * @param message TransitVehicle
8557
+ * @param [options] Conversion options
8558
+ * @returns Plain object
8559
+ */
8560
+ public static toObject(message: google.maps.routing.v2.TransitVehicle, options?: $protobuf.IConversionOptions): { [k: string]: any };
8561
+
8562
+ /**
8563
+ * Converts this TransitVehicle to JSON.
8564
+ * @returns JSON object
8565
+ */
8566
+ public toJSON(): { [k: string]: any };
8567
+
8568
+ /**
8569
+ * Gets the default type url for TransitVehicle
8570
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8571
+ * @returns The default type url
8572
+ */
8573
+ public static getTypeUrl(typeUrlPrefix?: string): string;
8574
+ }
8575
+
8576
+ namespace TransitVehicle {
8577
+
8578
+ /** TransitVehicleType enum. */
8579
+ enum TransitVehicleType {
8580
+ TRANSIT_VEHICLE_TYPE_UNSPECIFIED = 0,
8581
+ BUS = 1,
8582
+ CABLE_CAR = 2,
8583
+ COMMUTER_TRAIN = 3,
8584
+ FERRY = 4,
8585
+ FUNICULAR = 5,
8586
+ GONDOLA_LIFT = 6,
8587
+ HEAVY_RAIL = 7,
8588
+ HIGH_SPEED_TRAIN = 8,
8589
+ INTERCITY_BUS = 9,
8590
+ LONG_DISTANCE_TRAIN = 10,
8591
+ METRO_RAIL = 11,
8592
+ MONORAIL = 12,
8593
+ OTHER = 13,
8594
+ RAIL = 14,
8595
+ SHARE_TAXI = 15,
8596
+ SUBWAY = 16,
8597
+ TRAM = 17,
8598
+ TROLLEYBUS = 18
8599
+ }
8600
+ }
8601
+
6927
8602
  /** Properties of a RouteModifiers. */
6928
8603
  interface IRouteModifiers {
6929
8604
 
@@ -7112,6 +8787,7 @@ export namespace google {
7112
8787
  US_MI_BCPASS = 94,
7113
8788
  US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG = 37,
7114
8789
  US_MI_IQ_PROX_CARD = 38,
8790
+ US_MI_IQ_TAG = 95,
7115
8791
  US_MI_MACKINAC_BRIDGE_MAC_PASS = 39,
7116
8792
  US_MI_NEXPRESS_TOLL = 40,
7117
8793
  US_MN_EZPASSMN = 41,
@@ -7127,6 +8803,7 @@ export namespace google {
7127
8803
  US_PA_EZPASSPA = 45,
7128
8804
  US_RI_EZPASSRI = 46,
7129
8805
  US_SC_PALPASS = 47,
8806
+ US_TX_AVI_TAG = 97,
7130
8807
  US_TX_BANCPASS = 48,
7131
8808
  US_TX_DEL_RIO_PASS = 49,
7132
8809
  US_TX_EFAST_PASS = 50,
@@ -7134,6 +8811,7 @@ export namespace google {
7134
8811
  US_TX_EPTOLL = 52,
7135
8812
  US_TX_EZ_CROSS = 53,
7136
8813
  US_TX_EZTAG = 54,
8814
+ US_TX_FUEGO_TAG = 96,
7137
8815
  US_TX_LAREDO_TRADE_TAG = 55,
7138
8816
  US_TX_PLUSPASS = 56,
7139
8817
  US_TX_TOLLTAG = 57,
@@ -7254,15 +8932,6 @@ export namespace google {
7254
8932
  DIESEL = 4
7255
8933
  }
7256
8934
 
7257
- /** RouteTravelMode enum. */
7258
- enum RouteTravelMode {
7259
- TRAVEL_MODE_UNSPECIFIED = 0,
7260
- DRIVE = 1,
7261
- BICYCLE = 2,
7262
- WALK = 3,
7263
- TWO_WHEELER = 4
7264
- }
7265
-
7266
8935
  /** Represents a Routes */
7267
8936
  class Routes extends $protobuf.rpc.Service {
7268
8937
 
@@ -7356,6 +9025,9 @@ export namespace google {
7356
9025
  /** ComputeRoutesRequest departureTime */
7357
9026
  departureTime?: (google.protobuf.ITimestamp|null);
7358
9027
 
9028
+ /** ComputeRoutesRequest arrivalTime */
9029
+ arrivalTime?: (google.protobuf.ITimestamp|null);
9030
+
7359
9031
  /** ComputeRoutesRequest computeAlternativeRoutes */
7360
9032
  computeAlternativeRoutes?: (boolean|null);
7361
9033
 
@@ -7371,11 +9043,20 @@ export namespace google {
7371
9043
  /** ComputeRoutesRequest units */
7372
9044
  units?: (google.maps.routing.v2.Units|keyof typeof google.maps.routing.v2.Units|null);
7373
9045
 
9046
+ /** ComputeRoutesRequest optimizeWaypointOrder */
9047
+ optimizeWaypointOrder?: (boolean|null);
9048
+
7374
9049
  /** ComputeRoutesRequest requestedReferenceRoutes */
7375
9050
  requestedReferenceRoutes?: (google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute[]|null);
7376
9051
 
7377
9052
  /** ComputeRoutesRequest extraComputations */
7378
9053
  extraComputations?: (google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation[]|null);
9054
+
9055
+ /** ComputeRoutesRequest trafficModel */
9056
+ trafficModel?: (google.maps.routing.v2.TrafficModel|keyof typeof google.maps.routing.v2.TrafficModel|null);
9057
+
9058
+ /** ComputeRoutesRequest transitPreferences */
9059
+ transitPreferences?: (google.maps.routing.v2.ITransitPreferences|null);
7379
9060
  }
7380
9061
 
7381
9062
  /** Represents a ComputeRoutesRequest. */
@@ -7411,6 +9092,9 @@ export namespace google {
7411
9092
  /** ComputeRoutesRequest departureTime. */
7412
9093
  public departureTime?: (google.protobuf.ITimestamp|null);
7413
9094
 
9095
+ /** ComputeRoutesRequest arrivalTime. */
9096
+ public arrivalTime?: (google.protobuf.ITimestamp|null);
9097
+
7414
9098
  /** ComputeRoutesRequest computeAlternativeRoutes. */
7415
9099
  public computeAlternativeRoutes: boolean;
7416
9100
 
@@ -7426,12 +9110,21 @@ export namespace google {
7426
9110
  /** ComputeRoutesRequest units. */
7427
9111
  public units: (google.maps.routing.v2.Units|keyof typeof google.maps.routing.v2.Units);
7428
9112
 
9113
+ /** ComputeRoutesRequest optimizeWaypointOrder. */
9114
+ public optimizeWaypointOrder: boolean;
9115
+
7429
9116
  /** ComputeRoutesRequest requestedReferenceRoutes. */
7430
9117
  public requestedReferenceRoutes: google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute[];
7431
9118
 
7432
9119
  /** ComputeRoutesRequest extraComputations. */
7433
9120
  public extraComputations: google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation[];
7434
9121
 
9122
+ /** ComputeRoutesRequest trafficModel. */
9123
+ public trafficModel: (google.maps.routing.v2.TrafficModel|keyof typeof google.maps.routing.v2.TrafficModel);
9124
+
9125
+ /** ComputeRoutesRequest transitPreferences. */
9126
+ public transitPreferences?: (google.maps.routing.v2.ITransitPreferences|null);
9127
+
7435
9128
  /**
7436
9129
  * Creates a new ComputeRoutesRequest instance using the specified properties.
7437
9130
  * @param [properties] Properties to set
@@ -7523,7 +9216,8 @@ export namespace google {
7523
9216
  EXTRA_COMPUTATION_UNSPECIFIED = 0,
7524
9217
  TOLLS = 1,
7525
9218
  FUEL_CONSUMPTION = 2,
7526
- TRAFFIC_ON_POLYLINE = 3
9219
+ TRAFFIC_ON_POLYLINE = 3,
9220
+ HTML_FORMATTED_NAVIGATION_INSTRUCTIONS = 4
7527
9221
  }
7528
9222
  }
7529
9223
 
@@ -7654,6 +9348,9 @@ export namespace google {
7654
9348
  /** ComputeRouteMatrixRequest departureTime */
7655
9349
  departureTime?: (google.protobuf.ITimestamp|null);
7656
9350
 
9351
+ /** ComputeRouteMatrixRequest arrivalTime */
9352
+ arrivalTime?: (google.protobuf.ITimestamp|null);
9353
+
7657
9354
  /** ComputeRouteMatrixRequest languageCode */
7658
9355
  languageCode?: (string|null);
7659
9356
 
@@ -7662,6 +9359,12 @@ export namespace google {
7662
9359
 
7663
9360
  /** ComputeRouteMatrixRequest extraComputations */
7664
9361
  extraComputations?: (google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[]|null);
9362
+
9363
+ /** ComputeRouteMatrixRequest trafficModel */
9364
+ trafficModel?: (google.maps.routing.v2.TrafficModel|keyof typeof google.maps.routing.v2.TrafficModel|null);
9365
+
9366
+ /** ComputeRouteMatrixRequest transitPreferences */
9367
+ transitPreferences?: (google.maps.routing.v2.ITransitPreferences|null);
7665
9368
  }
7666
9369
 
7667
9370
  /** Represents a ComputeRouteMatrixRequest. */
@@ -7688,6 +9391,9 @@ export namespace google {
7688
9391
  /** ComputeRouteMatrixRequest departureTime. */
7689
9392
  public departureTime?: (google.protobuf.ITimestamp|null);
7690
9393
 
9394
+ /** ComputeRouteMatrixRequest arrivalTime. */
9395
+ public arrivalTime?: (google.protobuf.ITimestamp|null);
9396
+
7691
9397
  /** ComputeRouteMatrixRequest languageCode. */
7692
9398
  public languageCode: string;
7693
9399
 
@@ -7697,6 +9403,12 @@ export namespace google {
7697
9403
  /** ComputeRouteMatrixRequest extraComputations. */
7698
9404
  public extraComputations: google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[];
7699
9405
 
9406
+ /** ComputeRouteMatrixRequest trafficModel. */
9407
+ public trafficModel: (google.maps.routing.v2.TrafficModel|keyof typeof google.maps.routing.v2.TrafficModel);
9408
+
9409
+ /** ComputeRouteMatrixRequest transitPreferences. */
9410
+ public transitPreferences?: (google.maps.routing.v2.ITransitPreferences|null);
9411
+
7700
9412
  /**
7701
9413
  * Creates a new ComputeRouteMatrixRequest instance using the specified properties.
7702
9414
  * @param [properties] Properties to set
@@ -8013,6 +9725,9 @@ export namespace google {
8013
9725
 
8014
9726
  /** RouteMatrixElement fallbackInfo */
8015
9727
  fallbackInfo?: (google.maps.routing.v2.IFallbackInfo|null);
9728
+
9729
+ /** RouteMatrixElement localizedValues */
9730
+ localizedValues?: (google.maps.routing.v2.RouteMatrixElement.ILocalizedValues|null);
8016
9731
  }
8017
9732
 
8018
9733
  /** Represents a RouteMatrixElement. */
@@ -8051,6 +9766,9 @@ export namespace google {
8051
9766
  /** RouteMatrixElement fallbackInfo. */
8052
9767
  public fallbackInfo?: (google.maps.routing.v2.IFallbackInfo|null);
8053
9768
 
9769
+ /** RouteMatrixElement localizedValues. */
9770
+ public localizedValues?: (google.maps.routing.v2.RouteMatrixElement.ILocalizedValues|null);
9771
+
8054
9772
  /** RouteMatrixElement _originIndex. */
8055
9773
  public _originIndex?: "originIndex";
8056
9774
 
@@ -8135,6 +9853,124 @@ export namespace google {
8135
9853
  public static getTypeUrl(typeUrlPrefix?: string): string;
8136
9854
  }
8137
9855
 
9856
+ namespace RouteMatrixElement {
9857
+
9858
+ /** Properties of a LocalizedValues. */
9859
+ interface ILocalizedValues {
9860
+
9861
+ /** LocalizedValues distance */
9862
+ distance?: (google.type.ILocalizedText|null);
9863
+
9864
+ /** LocalizedValues duration */
9865
+ duration?: (google.type.ILocalizedText|null);
9866
+
9867
+ /** LocalizedValues staticDuration */
9868
+ staticDuration?: (google.type.ILocalizedText|null);
9869
+
9870
+ /** LocalizedValues transitFare */
9871
+ transitFare?: (google.type.ILocalizedText|null);
9872
+ }
9873
+
9874
+ /** Represents a LocalizedValues. */
9875
+ class LocalizedValues implements ILocalizedValues {
9876
+
9877
+ /**
9878
+ * Constructs a new LocalizedValues.
9879
+ * @param [properties] Properties to set
9880
+ */
9881
+ constructor(properties?: google.maps.routing.v2.RouteMatrixElement.ILocalizedValues);
9882
+
9883
+ /** LocalizedValues distance. */
9884
+ public distance?: (google.type.ILocalizedText|null);
9885
+
9886
+ /** LocalizedValues duration. */
9887
+ public duration?: (google.type.ILocalizedText|null);
9888
+
9889
+ /** LocalizedValues staticDuration. */
9890
+ public staticDuration?: (google.type.ILocalizedText|null);
9891
+
9892
+ /** LocalizedValues transitFare. */
9893
+ public transitFare?: (google.type.ILocalizedText|null);
9894
+
9895
+ /**
9896
+ * Creates a new LocalizedValues instance using the specified properties.
9897
+ * @param [properties] Properties to set
9898
+ * @returns LocalizedValues instance
9899
+ */
9900
+ public static create(properties?: google.maps.routing.v2.RouteMatrixElement.ILocalizedValues): google.maps.routing.v2.RouteMatrixElement.LocalizedValues;
9901
+
9902
+ /**
9903
+ * Encodes the specified LocalizedValues message. Does not implicitly {@link google.maps.routing.v2.RouteMatrixElement.LocalizedValues.verify|verify} messages.
9904
+ * @param message LocalizedValues message or plain object to encode
9905
+ * @param [writer] Writer to encode to
9906
+ * @returns Writer
9907
+ */
9908
+ public static encode(message: google.maps.routing.v2.RouteMatrixElement.ILocalizedValues, writer?: $protobuf.Writer): $protobuf.Writer;
9909
+
9910
+ /**
9911
+ * Encodes the specified LocalizedValues message, length delimited. Does not implicitly {@link google.maps.routing.v2.RouteMatrixElement.LocalizedValues.verify|verify} messages.
9912
+ * @param message LocalizedValues message or plain object to encode
9913
+ * @param [writer] Writer to encode to
9914
+ * @returns Writer
9915
+ */
9916
+ public static encodeDelimited(message: google.maps.routing.v2.RouteMatrixElement.ILocalizedValues, writer?: $protobuf.Writer): $protobuf.Writer;
9917
+
9918
+ /**
9919
+ * Decodes a LocalizedValues message from the specified reader or buffer.
9920
+ * @param reader Reader or buffer to decode from
9921
+ * @param [length] Message length if known beforehand
9922
+ * @returns LocalizedValues
9923
+ * @throws {Error} If the payload is not a reader or valid buffer
9924
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9925
+ */
9926
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.RouteMatrixElement.LocalizedValues;
9927
+
9928
+ /**
9929
+ * Decodes a LocalizedValues message from the specified reader or buffer, length delimited.
9930
+ * @param reader Reader or buffer to decode from
9931
+ * @returns LocalizedValues
9932
+ * @throws {Error} If the payload is not a reader or valid buffer
9933
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9934
+ */
9935
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.RouteMatrixElement.LocalizedValues;
9936
+
9937
+ /**
9938
+ * Verifies a LocalizedValues message.
9939
+ * @param message Plain object to verify
9940
+ * @returns `null` if valid, otherwise the reason why it is not
9941
+ */
9942
+ public static verify(message: { [k: string]: any }): (string|null);
9943
+
9944
+ /**
9945
+ * Creates a LocalizedValues message from a plain object. Also converts values to their respective internal types.
9946
+ * @param object Plain object
9947
+ * @returns LocalizedValues
9948
+ */
9949
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.RouteMatrixElement.LocalizedValues;
9950
+
9951
+ /**
9952
+ * Creates a plain object from a LocalizedValues message. Also converts values to other types if specified.
9953
+ * @param message LocalizedValues
9954
+ * @param [options] Conversion options
9955
+ * @returns Plain object
9956
+ */
9957
+ public static toObject(message: google.maps.routing.v2.RouteMatrixElement.LocalizedValues, options?: $protobuf.IConversionOptions): { [k: string]: any };
9958
+
9959
+ /**
9960
+ * Converts this LocalizedValues to JSON.
9961
+ * @returns JSON object
9962
+ */
9963
+ public toJSON(): { [k: string]: any };
9964
+
9965
+ /**
9966
+ * Gets the default type url for LocalizedValues
9967
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9968
+ * @returns The default type url
9969
+ */
9970
+ public static getTypeUrl(typeUrlPrefix?: string): string;
9971
+ }
9972
+ }
9973
+
8138
9974
  /** RouteMatrixElementCondition enum. */
8139
9975
  enum RouteMatrixElementCondition {
8140
9976
  ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED = 0,
@@ -8150,6 +9986,137 @@ export namespace google {
8150
9986
  TRAFFIC_AWARE_OPTIMAL = 3
8151
9987
  }
8152
9988
 
9989
+ /** TrafficModel enum. */
9990
+ enum TrafficModel {
9991
+ TRAFFIC_MODEL_UNSPECIFIED = 0,
9992
+ BEST_GUESS = 1,
9993
+ PESSIMISTIC = 2,
9994
+ OPTIMISTIC = 3
9995
+ }
9996
+
9997
+ /** Properties of a TransitPreferences. */
9998
+ interface ITransitPreferences {
9999
+
10000
+ /** TransitPreferences allowedTravelModes */
10001
+ allowedTravelModes?: (google.maps.routing.v2.TransitPreferences.TransitTravelMode[]|null);
10002
+
10003
+ /** TransitPreferences routingPreference */
10004
+ routingPreference?: (google.maps.routing.v2.TransitPreferences.TransitRoutingPreference|keyof typeof google.maps.routing.v2.TransitPreferences.TransitRoutingPreference|null);
10005
+ }
10006
+
10007
+ /** Represents a TransitPreferences. */
10008
+ class TransitPreferences implements ITransitPreferences {
10009
+
10010
+ /**
10011
+ * Constructs a new TransitPreferences.
10012
+ * @param [properties] Properties to set
10013
+ */
10014
+ constructor(properties?: google.maps.routing.v2.ITransitPreferences);
10015
+
10016
+ /** TransitPreferences allowedTravelModes. */
10017
+ public allowedTravelModes: google.maps.routing.v2.TransitPreferences.TransitTravelMode[];
10018
+
10019
+ /** TransitPreferences routingPreference. */
10020
+ public routingPreference: (google.maps.routing.v2.TransitPreferences.TransitRoutingPreference|keyof typeof google.maps.routing.v2.TransitPreferences.TransitRoutingPreference);
10021
+
10022
+ /**
10023
+ * Creates a new TransitPreferences instance using the specified properties.
10024
+ * @param [properties] Properties to set
10025
+ * @returns TransitPreferences instance
10026
+ */
10027
+ public static create(properties?: google.maps.routing.v2.ITransitPreferences): google.maps.routing.v2.TransitPreferences;
10028
+
10029
+ /**
10030
+ * Encodes the specified TransitPreferences message. Does not implicitly {@link google.maps.routing.v2.TransitPreferences.verify|verify} messages.
10031
+ * @param message TransitPreferences message or plain object to encode
10032
+ * @param [writer] Writer to encode to
10033
+ * @returns Writer
10034
+ */
10035
+ public static encode(message: google.maps.routing.v2.ITransitPreferences, writer?: $protobuf.Writer): $protobuf.Writer;
10036
+
10037
+ /**
10038
+ * Encodes the specified TransitPreferences message, length delimited. Does not implicitly {@link google.maps.routing.v2.TransitPreferences.verify|verify} messages.
10039
+ * @param message TransitPreferences message or plain object to encode
10040
+ * @param [writer] Writer to encode to
10041
+ * @returns Writer
10042
+ */
10043
+ public static encodeDelimited(message: google.maps.routing.v2.ITransitPreferences, writer?: $protobuf.Writer): $protobuf.Writer;
10044
+
10045
+ /**
10046
+ * Decodes a TransitPreferences message from the specified reader or buffer.
10047
+ * @param reader Reader or buffer to decode from
10048
+ * @param [length] Message length if known beforehand
10049
+ * @returns TransitPreferences
10050
+ * @throws {Error} If the payload is not a reader or valid buffer
10051
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10052
+ */
10053
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.TransitPreferences;
10054
+
10055
+ /**
10056
+ * Decodes a TransitPreferences message from the specified reader or buffer, length delimited.
10057
+ * @param reader Reader or buffer to decode from
10058
+ * @returns TransitPreferences
10059
+ * @throws {Error} If the payload is not a reader or valid buffer
10060
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10061
+ */
10062
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.TransitPreferences;
10063
+
10064
+ /**
10065
+ * Verifies a TransitPreferences message.
10066
+ * @param message Plain object to verify
10067
+ * @returns `null` if valid, otherwise the reason why it is not
10068
+ */
10069
+ public static verify(message: { [k: string]: any }): (string|null);
10070
+
10071
+ /**
10072
+ * Creates a TransitPreferences message from a plain object. Also converts values to their respective internal types.
10073
+ * @param object Plain object
10074
+ * @returns TransitPreferences
10075
+ */
10076
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.TransitPreferences;
10077
+
10078
+ /**
10079
+ * Creates a plain object from a TransitPreferences message. Also converts values to other types if specified.
10080
+ * @param message TransitPreferences
10081
+ * @param [options] Conversion options
10082
+ * @returns Plain object
10083
+ */
10084
+ public static toObject(message: google.maps.routing.v2.TransitPreferences, options?: $protobuf.IConversionOptions): { [k: string]: any };
10085
+
10086
+ /**
10087
+ * Converts this TransitPreferences to JSON.
10088
+ * @returns JSON object
10089
+ */
10090
+ public toJSON(): { [k: string]: any };
10091
+
10092
+ /**
10093
+ * Gets the default type url for TransitPreferences
10094
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10095
+ * @returns The default type url
10096
+ */
10097
+ public static getTypeUrl(typeUrlPrefix?: string): string;
10098
+ }
10099
+
10100
+ namespace TransitPreferences {
10101
+
10102
+ /** TransitTravelMode enum. */
10103
+ enum TransitTravelMode {
10104
+ TRANSIT_TRAVEL_MODE_UNSPECIFIED = 0,
10105
+ BUS = 1,
10106
+ SUBWAY = 2,
10107
+ TRAIN = 3,
10108
+ LIGHT_RAIL = 4,
10109
+ RAIL = 5
10110
+ }
10111
+
10112
+ /** TransitRoutingPreference enum. */
10113
+ enum TransitRoutingPreference {
10114
+ TRANSIT_ROUTING_PREFERENCE_UNSPECIFIED = 0,
10115
+ LESS_WALKING = 1,
10116
+ FEWER_TRANSFERS = 2
10117
+ }
10118
+ }
10119
+
8153
10120
  /** Units enum. */
8154
10121
  enum Units {
8155
10122
  UNITS_UNSPECIFIED = 0,