@googlemaps/routing 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/README.md +4 -5
- package/build/protos/google/maps/routing/v2/fallback_info.proto +6 -5
- package/build/protos/google/maps/routing/v2/geocoding_results.proto +72 -0
- package/build/protos/google/maps/routing/v2/location.proto +3 -2
- package/build/protos/google/maps/routing/v2/maneuver.proto +1 -1
- package/build/protos/google/maps/routing/v2/navigation_instruction.proto +1 -1
- package/build/protos/google/maps/routing/v2/polyline.proto +1 -1
- package/build/protos/google/maps/routing/v2/route.proto +11 -19
- package/build/protos/google/maps/routing/v2/route_label.proto +6 -5
- package/build/protos/google/maps/routing/v2/route_modifiers.proto +9 -6
- package/build/protos/google/maps/routing/v2/route_travel_mode.proto +3 -3
- package/build/protos/google/maps/routing/v2/routes_service.proto +36 -11
- package/build/protos/google/maps/routing/v2/routing_preference.proto +8 -7
- package/build/protos/google/maps/routing/v2/speed_reading_interval.proto +5 -3
- package/build/protos/google/maps/routing/v2/toll_info.proto +10 -8
- package/build/protos/google/maps/routing/v2/toll_passes.proto +4 -1
- package/build/protos/google/maps/routing/v2/units.proto +1 -1
- package/build/protos/google/maps/routing/v2/vehicle_emission_type.proto +4 -3
- package/build/protos/google/maps/routing/v2/vehicle_info.proto +2 -2
- package/build/protos/google/maps/routing/v2/waypoint.proto +17 -12
- package/build/protos/protos.d.ts +533 -266
- package/build/protos/protos.js +9070 -8303
- package/build/protos/protos.json +130 -42
- package/build/src/v2/routes_client.d.ts +23 -6
- package/build/src/v2/routes_client.js +11 -0
- package/build/src/v2/routes_client.js.map +1 -1
- package/package.json +1 -1
package/build/protos/protos.d.ts
CHANGED
|
@@ -20,6 +20,109 @@ export namespace google {
|
|
|
20
20
|
/** Namespace protobuf. */
|
|
21
21
|
namespace protobuf {
|
|
22
22
|
|
|
23
|
+
/** Properties of an Any. */
|
|
24
|
+
interface IAny {
|
|
25
|
+
|
|
26
|
+
/** Any type_url */
|
|
27
|
+
type_url?: (string|null);
|
|
28
|
+
|
|
29
|
+
/** Any value */
|
|
30
|
+
value?: (Uint8Array|string|null);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Represents an Any. */
|
|
34
|
+
class Any implements IAny {
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new Any.
|
|
38
|
+
* @param [properties] Properties to set
|
|
39
|
+
*/
|
|
40
|
+
constructor(properties?: google.protobuf.IAny);
|
|
41
|
+
|
|
42
|
+
/** Any type_url. */
|
|
43
|
+
public type_url: string;
|
|
44
|
+
|
|
45
|
+
/** Any value. */
|
|
46
|
+
public value: (Uint8Array|string);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Creates a new Any instance using the specified properties.
|
|
50
|
+
* @param [properties] Properties to set
|
|
51
|
+
* @returns Any instance
|
|
52
|
+
*/
|
|
53
|
+
public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
|
57
|
+
* @param message Any message or plain object to encode
|
|
58
|
+
* @param [writer] Writer to encode to
|
|
59
|
+
* @returns Writer
|
|
60
|
+
*/
|
|
61
|
+
public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
|
65
|
+
* @param message Any message or plain object to encode
|
|
66
|
+
* @param [writer] Writer to encode to
|
|
67
|
+
* @returns Writer
|
|
68
|
+
*/
|
|
69
|
+
public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Decodes an Any message from the specified reader or buffer.
|
|
73
|
+
* @param reader Reader or buffer to decode from
|
|
74
|
+
* @param [length] Message length if known beforehand
|
|
75
|
+
* @returns Any
|
|
76
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
77
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78
|
+
*/
|
|
79
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Decodes an Any message from the specified reader or buffer, length delimited.
|
|
83
|
+
* @param reader Reader or buffer to decode from
|
|
84
|
+
* @returns Any
|
|
85
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87
|
+
*/
|
|
88
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Verifies an Any message.
|
|
92
|
+
* @param message Plain object to verify
|
|
93
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
94
|
+
*/
|
|
95
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Creates an Any message from a plain object. Also converts values to their respective internal types.
|
|
99
|
+
* @param object Plain object
|
|
100
|
+
* @returns Any
|
|
101
|
+
*/
|
|
102
|
+
public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Creates a plain object from an Any message. Also converts values to other types if specified.
|
|
106
|
+
* @param message Any
|
|
107
|
+
* @param [options] Conversion options
|
|
108
|
+
* @returns Plain object
|
|
109
|
+
*/
|
|
110
|
+
public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Converts this Any to JSON.
|
|
114
|
+
* @returns JSON object
|
|
115
|
+
*/
|
|
116
|
+
public toJSON(): { [k: string]: any };
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Gets the default type url for Any
|
|
120
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
121
|
+
* @returns The default type url
|
|
122
|
+
*/
|
|
123
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
124
|
+
}
|
|
125
|
+
|
|
23
126
|
/** Properties of a DoubleValue. */
|
|
24
127
|
interface IDoubleValue {
|
|
25
128
|
|
|
@@ -4812,109 +4915,6 @@ export namespace google {
|
|
|
4812
4915
|
*/
|
|
4813
4916
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4814
4917
|
}
|
|
4815
|
-
|
|
4816
|
-
/** Properties of an Any. */
|
|
4817
|
-
interface IAny {
|
|
4818
|
-
|
|
4819
|
-
/** Any type_url */
|
|
4820
|
-
type_url?: (string|null);
|
|
4821
|
-
|
|
4822
|
-
/** Any value */
|
|
4823
|
-
value?: (Uint8Array|string|null);
|
|
4824
|
-
}
|
|
4825
|
-
|
|
4826
|
-
/** Represents an Any. */
|
|
4827
|
-
class Any implements IAny {
|
|
4828
|
-
|
|
4829
|
-
/**
|
|
4830
|
-
* Constructs a new Any.
|
|
4831
|
-
* @param [properties] Properties to set
|
|
4832
|
-
*/
|
|
4833
|
-
constructor(properties?: google.protobuf.IAny);
|
|
4834
|
-
|
|
4835
|
-
/** Any type_url. */
|
|
4836
|
-
public type_url: string;
|
|
4837
|
-
|
|
4838
|
-
/** Any value. */
|
|
4839
|
-
public value: (Uint8Array|string);
|
|
4840
|
-
|
|
4841
|
-
/**
|
|
4842
|
-
* Creates a new Any instance using the specified properties.
|
|
4843
|
-
* @param [properties] Properties to set
|
|
4844
|
-
* @returns Any instance
|
|
4845
|
-
*/
|
|
4846
|
-
public static create(properties?: google.protobuf.IAny): google.protobuf.Any;
|
|
4847
|
-
|
|
4848
|
-
/**
|
|
4849
|
-
* Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
|
4850
|
-
* @param message Any message or plain object to encode
|
|
4851
|
-
* @param [writer] Writer to encode to
|
|
4852
|
-
* @returns Writer
|
|
4853
|
-
*/
|
|
4854
|
-
public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4855
|
-
|
|
4856
|
-
/**
|
|
4857
|
-
* Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
|
4858
|
-
* @param message Any message or plain object to encode
|
|
4859
|
-
* @param [writer] Writer to encode to
|
|
4860
|
-
* @returns Writer
|
|
4861
|
-
*/
|
|
4862
|
-
public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4863
|
-
|
|
4864
|
-
/**
|
|
4865
|
-
* Decodes an Any 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 Any
|
|
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.Any;
|
|
4873
|
-
|
|
4874
|
-
/**
|
|
4875
|
-
* Decodes an Any message from the specified reader or buffer, length delimited.
|
|
4876
|
-
* @param reader Reader or buffer to decode from
|
|
4877
|
-
* @returns Any
|
|
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.Any;
|
|
4882
|
-
|
|
4883
|
-
/**
|
|
4884
|
-
* Verifies an Any 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 an Any message from a plain object. Also converts values to their respective internal types.
|
|
4892
|
-
* @param object Plain object
|
|
4893
|
-
* @returns Any
|
|
4894
|
-
*/
|
|
4895
|
-
public static fromObject(object: { [k: string]: any }): google.protobuf.Any;
|
|
4896
|
-
|
|
4897
|
-
/**
|
|
4898
|
-
* Creates a plain object from an Any message. Also converts values to other types if specified.
|
|
4899
|
-
* @param message Any
|
|
4900
|
-
* @param [options] Conversion options
|
|
4901
|
-
* @returns Plain object
|
|
4902
|
-
*/
|
|
4903
|
-
public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4904
|
-
|
|
4905
|
-
/**
|
|
4906
|
-
* Converts this Any to JSON.
|
|
4907
|
-
* @returns JSON object
|
|
4908
|
-
*/
|
|
4909
|
-
public toJSON(): { [k: string]: any };
|
|
4910
|
-
|
|
4911
|
-
/**
|
|
4912
|
-
* Gets the default type url for Any
|
|
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. */
|
|
@@ -5370,119 +5370,352 @@ export namespace google {
|
|
|
5370
5370
|
FALLBACK_TRAFFIC_AWARE = 2
|
|
5371
5371
|
}
|
|
5372
5372
|
|
|
5373
|
-
/** Properties of a
|
|
5374
|
-
interface
|
|
5373
|
+
/** Properties of a GeocodingResults. */
|
|
5374
|
+
interface IGeocodingResults {
|
|
5375
5375
|
|
|
5376
|
-
/**
|
|
5377
|
-
|
|
5376
|
+
/** GeocodingResults origin */
|
|
5377
|
+
origin?: (google.maps.routing.v2.IGeocodedWaypoint|null);
|
|
5378
5378
|
|
|
5379
|
-
/**
|
|
5380
|
-
|
|
5379
|
+
/** GeocodingResults destination */
|
|
5380
|
+
destination?: (google.maps.routing.v2.IGeocodedWaypoint|null);
|
|
5381
|
+
|
|
5382
|
+
/** GeocodingResults intermediates */
|
|
5383
|
+
intermediates?: (google.maps.routing.v2.IGeocodedWaypoint[]|null);
|
|
5381
5384
|
}
|
|
5382
5385
|
|
|
5383
|
-
/** Represents a
|
|
5384
|
-
class
|
|
5386
|
+
/** Represents a GeocodingResults. */
|
|
5387
|
+
class GeocodingResults implements IGeocodingResults {
|
|
5385
5388
|
|
|
5386
5389
|
/**
|
|
5387
|
-
* Constructs a new
|
|
5390
|
+
* Constructs a new GeocodingResults.
|
|
5388
5391
|
* @param [properties] Properties to set
|
|
5389
5392
|
*/
|
|
5390
|
-
constructor(properties?: google.maps.routing.v2.
|
|
5393
|
+
constructor(properties?: google.maps.routing.v2.IGeocodingResults);
|
|
5391
5394
|
|
|
5392
|
-
/**
|
|
5393
|
-
public
|
|
5395
|
+
/** GeocodingResults origin. */
|
|
5396
|
+
public origin?: (google.maps.routing.v2.IGeocodedWaypoint|null);
|
|
5394
5397
|
|
|
5395
|
-
/**
|
|
5396
|
-
public
|
|
5398
|
+
/** GeocodingResults destination. */
|
|
5399
|
+
public destination?: (google.maps.routing.v2.IGeocodedWaypoint|null);
|
|
5400
|
+
|
|
5401
|
+
/** GeocodingResults intermediates. */
|
|
5402
|
+
public intermediates: google.maps.routing.v2.IGeocodedWaypoint[];
|
|
5397
5403
|
|
|
5398
5404
|
/**
|
|
5399
|
-
* Creates a new
|
|
5405
|
+
* Creates a new GeocodingResults instance using the specified properties.
|
|
5400
5406
|
* @param [properties] Properties to set
|
|
5401
|
-
* @returns
|
|
5407
|
+
* @returns GeocodingResults instance
|
|
5402
5408
|
*/
|
|
5403
|
-
public static create(properties?: google.maps.routing.v2.
|
|
5409
|
+
public static create(properties?: google.maps.routing.v2.IGeocodingResults): google.maps.routing.v2.GeocodingResults;
|
|
5404
5410
|
|
|
5405
5411
|
/**
|
|
5406
|
-
* Encodes the specified
|
|
5407
|
-
* @param message
|
|
5412
|
+
* Encodes the specified GeocodingResults message. Does not implicitly {@link google.maps.routing.v2.GeocodingResults.verify|verify} messages.
|
|
5413
|
+
* @param message GeocodingResults message or plain object to encode
|
|
5408
5414
|
* @param [writer] Writer to encode to
|
|
5409
5415
|
* @returns Writer
|
|
5410
5416
|
*/
|
|
5411
|
-
public static encode(message: google.maps.routing.v2.
|
|
5417
|
+
public static encode(message: google.maps.routing.v2.IGeocodingResults, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5412
5418
|
|
|
5413
5419
|
/**
|
|
5414
|
-
* Encodes the specified
|
|
5415
|
-
* @param message
|
|
5420
|
+
* Encodes the specified GeocodingResults message, length delimited. Does not implicitly {@link google.maps.routing.v2.GeocodingResults.verify|verify} messages.
|
|
5421
|
+
* @param message GeocodingResults message or plain object to encode
|
|
5416
5422
|
* @param [writer] Writer to encode to
|
|
5417
5423
|
* @returns Writer
|
|
5418
5424
|
*/
|
|
5419
|
-
public static encodeDelimited(message: google.maps.routing.v2.
|
|
5425
|
+
public static encodeDelimited(message: google.maps.routing.v2.IGeocodingResults, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5420
5426
|
|
|
5421
5427
|
/**
|
|
5422
|
-
* Decodes a
|
|
5428
|
+
* Decodes a GeocodingResults message from the specified reader or buffer.
|
|
5423
5429
|
* @param reader Reader or buffer to decode from
|
|
5424
5430
|
* @param [length] Message length if known beforehand
|
|
5425
|
-
* @returns
|
|
5431
|
+
* @returns GeocodingResults
|
|
5426
5432
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5427
5433
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5428
5434
|
*/
|
|
5429
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.
|
|
5435
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.GeocodingResults;
|
|
5430
5436
|
|
|
5431
5437
|
/**
|
|
5432
|
-
* Decodes a
|
|
5438
|
+
* Decodes a GeocodingResults message from the specified reader or buffer, length delimited.
|
|
5433
5439
|
* @param reader Reader or buffer to decode from
|
|
5434
|
-
* @returns
|
|
5440
|
+
* @returns GeocodingResults
|
|
5435
5441
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5436
5442
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5437
5443
|
*/
|
|
5438
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.
|
|
5444
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.GeocodingResults;
|
|
5439
5445
|
|
|
5440
5446
|
/**
|
|
5441
|
-
* Verifies a
|
|
5447
|
+
* Verifies a GeocodingResults message.
|
|
5442
5448
|
* @param message Plain object to verify
|
|
5443
5449
|
* @returns `null` if valid, otherwise the reason why it is not
|
|
5444
5450
|
*/
|
|
5445
5451
|
public static verify(message: { [k: string]: any }): (string|null);
|
|
5446
5452
|
|
|
5447
5453
|
/**
|
|
5448
|
-
* Creates a
|
|
5454
|
+
* Creates a GeocodingResults message from a plain object. Also converts values to their respective internal types.
|
|
5449
5455
|
* @param object Plain object
|
|
5450
|
-
* @returns
|
|
5456
|
+
* @returns GeocodingResults
|
|
5451
5457
|
*/
|
|
5452
|
-
public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.
|
|
5458
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.GeocodingResults;
|
|
5453
5459
|
|
|
5454
5460
|
/**
|
|
5455
|
-
* Creates a plain object from a
|
|
5456
|
-
* @param message
|
|
5461
|
+
* Creates a plain object from a GeocodingResults message. Also converts values to other types if specified.
|
|
5462
|
+
* @param message GeocodingResults
|
|
5457
5463
|
* @param [options] Conversion options
|
|
5458
5464
|
* @returns Plain object
|
|
5459
5465
|
*/
|
|
5460
|
-
public static toObject(message: google.maps.routing.v2.
|
|
5466
|
+
public static toObject(message: google.maps.routing.v2.GeocodingResults, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5461
5467
|
|
|
5462
5468
|
/**
|
|
5463
|
-
* Converts this
|
|
5469
|
+
* Converts this GeocodingResults to JSON.
|
|
5464
5470
|
* @returns JSON object
|
|
5465
5471
|
*/
|
|
5466
5472
|
public toJSON(): { [k: string]: any };
|
|
5467
5473
|
|
|
5468
5474
|
/**
|
|
5469
|
-
* Gets the default type url for
|
|
5475
|
+
* Gets the default type url for GeocodingResults
|
|
5470
5476
|
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5471
5477
|
* @returns The default type url
|
|
5472
5478
|
*/
|
|
5473
5479
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5474
5480
|
}
|
|
5475
5481
|
|
|
5476
|
-
/**
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5482
|
+
/** Properties of a GeocodedWaypoint. */
|
|
5483
|
+
interface IGeocodedWaypoint {
|
|
5484
|
+
|
|
5485
|
+
/** GeocodedWaypoint geocoderStatus */
|
|
5486
|
+
geocoderStatus?: (google.rpc.IStatus|null);
|
|
5487
|
+
|
|
5488
|
+
/** GeocodedWaypoint intermediateWaypointRequestIndex */
|
|
5489
|
+
intermediateWaypointRequestIndex?: (number|null);
|
|
5490
|
+
|
|
5491
|
+
/** GeocodedWaypoint type */
|
|
5492
|
+
type?: (string[]|null);
|
|
5493
|
+
|
|
5494
|
+
/** GeocodedWaypoint partialMatch */
|
|
5495
|
+
partialMatch?: (boolean|null);
|
|
5496
|
+
|
|
5497
|
+
/** GeocodedWaypoint placeId */
|
|
5498
|
+
placeId?: (string|null);
|
|
5499
|
+
}
|
|
5500
|
+
|
|
5501
|
+
/** Represents a GeocodedWaypoint. */
|
|
5502
|
+
class GeocodedWaypoint implements IGeocodedWaypoint {
|
|
5503
|
+
|
|
5504
|
+
/**
|
|
5505
|
+
* Constructs a new GeocodedWaypoint.
|
|
5506
|
+
* @param [properties] Properties to set
|
|
5507
|
+
*/
|
|
5508
|
+
constructor(properties?: google.maps.routing.v2.IGeocodedWaypoint);
|
|
5509
|
+
|
|
5510
|
+
/** GeocodedWaypoint geocoderStatus. */
|
|
5511
|
+
public geocoderStatus?: (google.rpc.IStatus|null);
|
|
5512
|
+
|
|
5513
|
+
/** GeocodedWaypoint intermediateWaypointRequestIndex. */
|
|
5514
|
+
public intermediateWaypointRequestIndex?: (number|null);
|
|
5515
|
+
|
|
5516
|
+
/** GeocodedWaypoint type. */
|
|
5517
|
+
public type: string[];
|
|
5518
|
+
|
|
5519
|
+
/** GeocodedWaypoint partialMatch. */
|
|
5520
|
+
public partialMatch: boolean;
|
|
5521
|
+
|
|
5522
|
+
/** GeocodedWaypoint placeId. */
|
|
5523
|
+
public placeId: string;
|
|
5524
|
+
|
|
5525
|
+
/** GeocodedWaypoint _intermediateWaypointRequestIndex. */
|
|
5526
|
+
public _intermediateWaypointRequestIndex?: "intermediateWaypointRequestIndex";
|
|
5527
|
+
|
|
5528
|
+
/**
|
|
5529
|
+
* Creates a new GeocodedWaypoint instance using the specified properties.
|
|
5530
|
+
* @param [properties] Properties to set
|
|
5531
|
+
* @returns GeocodedWaypoint instance
|
|
5532
|
+
*/
|
|
5533
|
+
public static create(properties?: google.maps.routing.v2.IGeocodedWaypoint): google.maps.routing.v2.GeocodedWaypoint;
|
|
5534
|
+
|
|
5535
|
+
/**
|
|
5536
|
+
* Encodes the specified GeocodedWaypoint message. Does not implicitly {@link google.maps.routing.v2.GeocodedWaypoint.verify|verify} messages.
|
|
5537
|
+
* @param message GeocodedWaypoint message or plain object to encode
|
|
5538
|
+
* @param [writer] Writer to encode to
|
|
5539
|
+
* @returns Writer
|
|
5540
|
+
*/
|
|
5541
|
+
public static encode(message: google.maps.routing.v2.IGeocodedWaypoint, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5542
|
+
|
|
5543
|
+
/**
|
|
5544
|
+
* Encodes the specified GeocodedWaypoint message, length delimited. Does not implicitly {@link google.maps.routing.v2.GeocodedWaypoint.verify|verify} messages.
|
|
5545
|
+
* @param message GeocodedWaypoint message or plain object to encode
|
|
5546
|
+
* @param [writer] Writer to encode to
|
|
5547
|
+
* @returns Writer
|
|
5548
|
+
*/
|
|
5549
|
+
public static encodeDelimited(message: google.maps.routing.v2.IGeocodedWaypoint, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5550
|
+
|
|
5551
|
+
/**
|
|
5552
|
+
* Decodes a GeocodedWaypoint message from the specified reader or buffer.
|
|
5553
|
+
* @param reader Reader or buffer to decode from
|
|
5554
|
+
* @param [length] Message length if known beforehand
|
|
5555
|
+
* @returns GeocodedWaypoint
|
|
5556
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5557
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5558
|
+
*/
|
|
5559
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.GeocodedWaypoint;
|
|
5560
|
+
|
|
5561
|
+
/**
|
|
5562
|
+
* Decodes a GeocodedWaypoint message from the specified reader or buffer, length delimited.
|
|
5563
|
+
* @param reader Reader or buffer to decode from
|
|
5564
|
+
* @returns GeocodedWaypoint
|
|
5565
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5566
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5567
|
+
*/
|
|
5568
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.GeocodedWaypoint;
|
|
5569
|
+
|
|
5570
|
+
/**
|
|
5571
|
+
* Verifies a GeocodedWaypoint message.
|
|
5572
|
+
* @param message Plain object to verify
|
|
5573
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5574
|
+
*/
|
|
5575
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5576
|
+
|
|
5577
|
+
/**
|
|
5578
|
+
* Creates a GeocodedWaypoint message from a plain object. Also converts values to their respective internal types.
|
|
5579
|
+
* @param object Plain object
|
|
5580
|
+
* @returns GeocodedWaypoint
|
|
5581
|
+
*/
|
|
5582
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.GeocodedWaypoint;
|
|
5583
|
+
|
|
5584
|
+
/**
|
|
5585
|
+
* Creates a plain object from a GeocodedWaypoint message. Also converts values to other types if specified.
|
|
5586
|
+
* @param message GeocodedWaypoint
|
|
5587
|
+
* @param [options] Conversion options
|
|
5588
|
+
* @returns Plain object
|
|
5589
|
+
*/
|
|
5590
|
+
public static toObject(message: google.maps.routing.v2.GeocodedWaypoint, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5591
|
+
|
|
5592
|
+
/**
|
|
5593
|
+
* Converts this GeocodedWaypoint to JSON.
|
|
5594
|
+
* @returns JSON object
|
|
5595
|
+
*/
|
|
5596
|
+
public toJSON(): { [k: string]: any };
|
|
5597
|
+
|
|
5598
|
+
/**
|
|
5599
|
+
* Gets the default type url for GeocodedWaypoint
|
|
5600
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5601
|
+
* @returns The default type url
|
|
5602
|
+
*/
|
|
5603
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5604
|
+
}
|
|
5605
|
+
|
|
5606
|
+
/** Properties of a Location. */
|
|
5607
|
+
interface ILocation {
|
|
5608
|
+
|
|
5609
|
+
/** Location latLng */
|
|
5610
|
+
latLng?: (google.type.ILatLng|null);
|
|
5611
|
+
|
|
5612
|
+
/** Location heading */
|
|
5613
|
+
heading?: (google.protobuf.IInt32Value|null);
|
|
5614
|
+
}
|
|
5615
|
+
|
|
5616
|
+
/** Represents a Location. */
|
|
5617
|
+
class Location implements ILocation {
|
|
5618
|
+
|
|
5619
|
+
/**
|
|
5620
|
+
* Constructs a new Location.
|
|
5621
|
+
* @param [properties] Properties to set
|
|
5622
|
+
*/
|
|
5623
|
+
constructor(properties?: google.maps.routing.v2.ILocation);
|
|
5624
|
+
|
|
5625
|
+
/** Location latLng. */
|
|
5626
|
+
public latLng?: (google.type.ILatLng|null);
|
|
5627
|
+
|
|
5628
|
+
/** Location heading. */
|
|
5629
|
+
public heading?: (google.protobuf.IInt32Value|null);
|
|
5630
|
+
|
|
5631
|
+
/**
|
|
5632
|
+
* Creates a new Location instance using the specified properties.
|
|
5633
|
+
* @param [properties] Properties to set
|
|
5634
|
+
* @returns Location instance
|
|
5635
|
+
*/
|
|
5636
|
+
public static create(properties?: google.maps.routing.v2.ILocation): google.maps.routing.v2.Location;
|
|
5637
|
+
|
|
5638
|
+
/**
|
|
5639
|
+
* Encodes the specified Location message. Does not implicitly {@link google.maps.routing.v2.Location.verify|verify} messages.
|
|
5640
|
+
* @param message Location message or plain object to encode
|
|
5641
|
+
* @param [writer] Writer to encode to
|
|
5642
|
+
* @returns Writer
|
|
5643
|
+
*/
|
|
5644
|
+
public static encode(message: google.maps.routing.v2.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5645
|
+
|
|
5646
|
+
/**
|
|
5647
|
+
* Encodes the specified Location message, length delimited. Does not implicitly {@link google.maps.routing.v2.Location.verify|verify} messages.
|
|
5648
|
+
* @param message Location message or plain object to encode
|
|
5649
|
+
* @param [writer] Writer to encode to
|
|
5650
|
+
* @returns Writer
|
|
5651
|
+
*/
|
|
5652
|
+
public static encodeDelimited(message: google.maps.routing.v2.ILocation, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5653
|
+
|
|
5654
|
+
/**
|
|
5655
|
+
* Decodes a Location message from the specified reader or buffer.
|
|
5656
|
+
* @param reader Reader or buffer to decode from
|
|
5657
|
+
* @param [length] Message length if known beforehand
|
|
5658
|
+
* @returns Location
|
|
5659
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5660
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5661
|
+
*/
|
|
5662
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.Location;
|
|
5663
|
+
|
|
5664
|
+
/**
|
|
5665
|
+
* Decodes a Location message from the specified reader or buffer, length delimited.
|
|
5666
|
+
* @param reader Reader or buffer to decode from
|
|
5667
|
+
* @returns Location
|
|
5668
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5669
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5670
|
+
*/
|
|
5671
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.Location;
|
|
5672
|
+
|
|
5673
|
+
/**
|
|
5674
|
+
* Verifies a Location message.
|
|
5675
|
+
* @param message Plain object to verify
|
|
5676
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5677
|
+
*/
|
|
5678
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5679
|
+
|
|
5680
|
+
/**
|
|
5681
|
+
* Creates a Location message from a plain object. Also converts values to their respective internal types.
|
|
5682
|
+
* @param object Plain object
|
|
5683
|
+
* @returns Location
|
|
5684
|
+
*/
|
|
5685
|
+
public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.Location;
|
|
5686
|
+
|
|
5687
|
+
/**
|
|
5688
|
+
* Creates a plain object from a Location message. Also converts values to other types if specified.
|
|
5689
|
+
* @param message Location
|
|
5690
|
+
* @param [options] Conversion options
|
|
5691
|
+
* @returns Plain object
|
|
5692
|
+
*/
|
|
5693
|
+
public static toObject(message: google.maps.routing.v2.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5694
|
+
|
|
5695
|
+
/**
|
|
5696
|
+
* Converts this Location to JSON.
|
|
5697
|
+
* @returns JSON object
|
|
5698
|
+
*/
|
|
5699
|
+
public toJSON(): { [k: string]: any };
|
|
5700
|
+
|
|
5701
|
+
/**
|
|
5702
|
+
* Gets the default type url for Location
|
|
5703
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5704
|
+
* @returns The default type url
|
|
5705
|
+
*/
|
|
5706
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5707
|
+
}
|
|
5708
|
+
|
|
5709
|
+
/** Maneuver enum. */
|
|
5710
|
+
enum Maneuver {
|
|
5711
|
+
MANEUVER_UNSPECIFIED = 0,
|
|
5712
|
+
TURN_SLIGHT_LEFT = 1,
|
|
5713
|
+
TURN_SHARP_LEFT = 2,
|
|
5714
|
+
UTURN_LEFT = 3,
|
|
5715
|
+
TURN_LEFT = 4,
|
|
5716
|
+
TURN_SLIGHT_RIGHT = 5,
|
|
5717
|
+
TURN_SHARP_RIGHT = 6,
|
|
5718
|
+
UTURN_RIGHT = 7,
|
|
5486
5719
|
TURN_RIGHT = 8,
|
|
5487
5720
|
STRAIGHT = 9,
|
|
5488
5721
|
RAMP_LEFT = 10,
|
|
@@ -6494,7 +6727,7 @@ export namespace google {
|
|
|
6494
6727
|
public endPolylinePointIndex?: (number|null);
|
|
6495
6728
|
|
|
6496
6729
|
/** SpeedReadingInterval speed. */
|
|
6497
|
-
public speed
|
|
6730
|
+
public speed?: (google.maps.routing.v2.SpeedReadingInterval.Speed|keyof typeof google.maps.routing.v2.SpeedReadingInterval.Speed|null);
|
|
6498
6731
|
|
|
6499
6732
|
/** SpeedReadingInterval _startPolylinePointIndex. */
|
|
6500
6733
|
public _startPolylinePointIndex?: "startPolylinePointIndex";
|
|
@@ -6502,6 +6735,9 @@ export namespace google {
|
|
|
6502
6735
|
/** SpeedReadingInterval _endPolylinePointIndex. */
|
|
6503
6736
|
public _endPolylinePointIndex?: "endPolylinePointIndex";
|
|
6504
6737
|
|
|
6738
|
+
/** SpeedReadingInterval speedType. */
|
|
6739
|
+
public speedType?: "speed";
|
|
6740
|
+
|
|
6505
6741
|
/**
|
|
6506
6742
|
* Creates a new SpeedReadingInterval instance using the specified properties.
|
|
6507
6743
|
* @param [properties] Properties to set
|
|
@@ -6873,6 +7109,7 @@ export namespace google {
|
|
|
6873
7109
|
US_MD_EZPASSMD = 34,
|
|
6874
7110
|
US_ME_EZPASSME = 35,
|
|
6875
7111
|
US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD = 36,
|
|
7112
|
+
US_MI_BCPASS = 94,
|
|
6876
7113
|
US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG = 37,
|
|
6877
7114
|
US_MI_IQ_PROX_CARD = 38,
|
|
6878
7115
|
US_MI_MACKINAC_BRIDGE_MAC_PASS = 39,
|
|
@@ -7128,6 +7365,9 @@ export namespace google {
|
|
|
7128
7365
|
/** ComputeRoutesRequest languageCode */
|
|
7129
7366
|
languageCode?: (string|null);
|
|
7130
7367
|
|
|
7368
|
+
/** ComputeRoutesRequest regionCode */
|
|
7369
|
+
regionCode?: (string|null);
|
|
7370
|
+
|
|
7131
7371
|
/** ComputeRoutesRequest units */
|
|
7132
7372
|
units?: (google.maps.routing.v2.Units|keyof typeof google.maps.routing.v2.Units|null);
|
|
7133
7373
|
|
|
@@ -7180,6 +7420,9 @@ export namespace google {
|
|
|
7180
7420
|
/** ComputeRoutesRequest languageCode. */
|
|
7181
7421
|
public languageCode: string;
|
|
7182
7422
|
|
|
7423
|
+
/** ComputeRoutesRequest regionCode. */
|
|
7424
|
+
public regionCode: string;
|
|
7425
|
+
|
|
7183
7426
|
/** ComputeRoutesRequest units. */
|
|
7184
7427
|
public units: (google.maps.routing.v2.Units|keyof typeof google.maps.routing.v2.Units);
|
|
7185
7428
|
|
|
@@ -7292,6 +7535,9 @@ export namespace google {
|
|
|
7292
7535
|
|
|
7293
7536
|
/** ComputeRoutesResponse fallbackInfo */
|
|
7294
7537
|
fallbackInfo?: (google.maps.routing.v2.IFallbackInfo|null);
|
|
7538
|
+
|
|
7539
|
+
/** ComputeRoutesResponse geocodingResults */
|
|
7540
|
+
geocodingResults?: (google.maps.routing.v2.IGeocodingResults|null);
|
|
7295
7541
|
}
|
|
7296
7542
|
|
|
7297
7543
|
/** Represents a ComputeRoutesResponse. */
|
|
@@ -7309,6 +7555,9 @@ export namespace google {
|
|
|
7309
7555
|
/** ComputeRoutesResponse fallbackInfo. */
|
|
7310
7556
|
public fallbackInfo?: (google.maps.routing.v2.IFallbackInfo|null);
|
|
7311
7557
|
|
|
7558
|
+
/** ComputeRoutesResponse geocodingResults. */
|
|
7559
|
+
public geocodingResults?: (google.maps.routing.v2.IGeocodingResults|null);
|
|
7560
|
+
|
|
7312
7561
|
/**
|
|
7313
7562
|
* Creates a new ComputeRoutesResponse instance using the specified properties.
|
|
7314
7563
|
* @param [properties] Properties to set
|
|
@@ -7405,6 +7654,12 @@ export namespace google {
|
|
|
7405
7654
|
/** ComputeRouteMatrixRequest departureTime */
|
|
7406
7655
|
departureTime?: (google.protobuf.ITimestamp|null);
|
|
7407
7656
|
|
|
7657
|
+
/** ComputeRouteMatrixRequest languageCode */
|
|
7658
|
+
languageCode?: (string|null);
|
|
7659
|
+
|
|
7660
|
+
/** ComputeRouteMatrixRequest regionCode */
|
|
7661
|
+
regionCode?: (string|null);
|
|
7662
|
+
|
|
7408
7663
|
/** ComputeRouteMatrixRequest extraComputations */
|
|
7409
7664
|
extraComputations?: (google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[]|null);
|
|
7410
7665
|
}
|
|
@@ -7433,6 +7688,12 @@ export namespace google {
|
|
|
7433
7688
|
/** ComputeRouteMatrixRequest departureTime. */
|
|
7434
7689
|
public departureTime?: (google.protobuf.ITimestamp|null);
|
|
7435
7690
|
|
|
7691
|
+
/** ComputeRouteMatrixRequest languageCode. */
|
|
7692
|
+
public languageCode: string;
|
|
7693
|
+
|
|
7694
|
+
/** ComputeRouteMatrixRequest regionCode. */
|
|
7695
|
+
public regionCode: string;
|
|
7696
|
+
|
|
7436
7697
|
/** ComputeRouteMatrixRequest extraComputations. */
|
|
7437
7698
|
public extraComputations: google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[];
|
|
7438
7699
|
|
|
@@ -7905,6 +8166,9 @@ export namespace google {
|
|
|
7905
8166
|
/** Waypoint placeId */
|
|
7906
8167
|
placeId?: (string|null);
|
|
7907
8168
|
|
|
8169
|
+
/** Waypoint address */
|
|
8170
|
+
address?: (string|null);
|
|
8171
|
+
|
|
7908
8172
|
/** Waypoint via */
|
|
7909
8173
|
via?: (boolean|null);
|
|
7910
8174
|
|
|
@@ -7930,6 +8194,9 @@ export namespace google {
|
|
|
7930
8194
|
/** Waypoint placeId. */
|
|
7931
8195
|
public placeId?: (string|null);
|
|
7932
8196
|
|
|
8197
|
+
/** Waypoint address. */
|
|
8198
|
+
public address?: (string|null);
|
|
8199
|
+
|
|
7933
8200
|
/** Waypoint via. */
|
|
7934
8201
|
public via: boolean;
|
|
7935
8202
|
|
|
@@ -7940,7 +8207,7 @@ export namespace google {
|
|
|
7940
8207
|
public sideOfRoad: boolean;
|
|
7941
8208
|
|
|
7942
8209
|
/** Waypoint locationType. */
|
|
7943
|
-
public locationType?: ("location"|"placeId");
|
|
8210
|
+
public locationType?: ("location"|"placeId"|"address");
|
|
7944
8211
|
|
|
7945
8212
|
/**
|
|
7946
8213
|
* Creates a new Waypoint instance using the specified properties.
|
|
@@ -8023,6 +8290,119 @@ export namespace google {
|
|
|
8023
8290
|
}
|
|
8024
8291
|
}
|
|
8025
8292
|
|
|
8293
|
+
/** Namespace rpc. */
|
|
8294
|
+
namespace rpc {
|
|
8295
|
+
|
|
8296
|
+
/** Properties of a Status. */
|
|
8297
|
+
interface IStatus {
|
|
8298
|
+
|
|
8299
|
+
/** Status code */
|
|
8300
|
+
code?: (number|null);
|
|
8301
|
+
|
|
8302
|
+
/** Status message */
|
|
8303
|
+
message?: (string|null);
|
|
8304
|
+
|
|
8305
|
+
/** Status details */
|
|
8306
|
+
details?: (google.protobuf.IAny[]|null);
|
|
8307
|
+
}
|
|
8308
|
+
|
|
8309
|
+
/** Represents a Status. */
|
|
8310
|
+
class Status implements IStatus {
|
|
8311
|
+
|
|
8312
|
+
/**
|
|
8313
|
+
* Constructs a new Status.
|
|
8314
|
+
* @param [properties] Properties to set
|
|
8315
|
+
*/
|
|
8316
|
+
constructor(properties?: google.rpc.IStatus);
|
|
8317
|
+
|
|
8318
|
+
/** Status code. */
|
|
8319
|
+
public code: number;
|
|
8320
|
+
|
|
8321
|
+
/** Status message. */
|
|
8322
|
+
public message: string;
|
|
8323
|
+
|
|
8324
|
+
/** Status details. */
|
|
8325
|
+
public details: google.protobuf.IAny[];
|
|
8326
|
+
|
|
8327
|
+
/**
|
|
8328
|
+
* Creates a new Status instance using the specified properties.
|
|
8329
|
+
* @param [properties] Properties to set
|
|
8330
|
+
* @returns Status instance
|
|
8331
|
+
*/
|
|
8332
|
+
public static create(properties?: google.rpc.IStatus): google.rpc.Status;
|
|
8333
|
+
|
|
8334
|
+
/**
|
|
8335
|
+
* Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
|
|
8336
|
+
* @param message Status message or plain object to encode
|
|
8337
|
+
* @param [writer] Writer to encode to
|
|
8338
|
+
* @returns Writer
|
|
8339
|
+
*/
|
|
8340
|
+
public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8341
|
+
|
|
8342
|
+
/**
|
|
8343
|
+
* Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
|
|
8344
|
+
* @param message Status message or plain object to encode
|
|
8345
|
+
* @param [writer] Writer to encode to
|
|
8346
|
+
* @returns Writer
|
|
8347
|
+
*/
|
|
8348
|
+
public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8349
|
+
|
|
8350
|
+
/**
|
|
8351
|
+
* Decodes a Status message from the specified reader or buffer.
|
|
8352
|
+
* @param reader Reader or buffer to decode from
|
|
8353
|
+
* @param [length] Message length if known beforehand
|
|
8354
|
+
* @returns Status
|
|
8355
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8356
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8357
|
+
*/
|
|
8358
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
|
|
8359
|
+
|
|
8360
|
+
/**
|
|
8361
|
+
* Decodes a Status message from the specified reader or buffer, length delimited.
|
|
8362
|
+
* @param reader Reader or buffer to decode from
|
|
8363
|
+
* @returns Status
|
|
8364
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8365
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8366
|
+
*/
|
|
8367
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
|
|
8368
|
+
|
|
8369
|
+
/**
|
|
8370
|
+
* Verifies a Status message.
|
|
8371
|
+
* @param message Plain object to verify
|
|
8372
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
8373
|
+
*/
|
|
8374
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
8375
|
+
|
|
8376
|
+
/**
|
|
8377
|
+
* Creates a Status message from a plain object. Also converts values to their respective internal types.
|
|
8378
|
+
* @param object Plain object
|
|
8379
|
+
* @returns Status
|
|
8380
|
+
*/
|
|
8381
|
+
public static fromObject(object: { [k: string]: any }): google.rpc.Status;
|
|
8382
|
+
|
|
8383
|
+
/**
|
|
8384
|
+
* Creates a plain object from a Status message. Also converts values to other types if specified.
|
|
8385
|
+
* @param message Status
|
|
8386
|
+
* @param [options] Conversion options
|
|
8387
|
+
* @returns Plain object
|
|
8388
|
+
*/
|
|
8389
|
+
public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8390
|
+
|
|
8391
|
+
/**
|
|
8392
|
+
* Converts this Status to JSON.
|
|
8393
|
+
* @returns JSON object
|
|
8394
|
+
*/
|
|
8395
|
+
public toJSON(): { [k: string]: any };
|
|
8396
|
+
|
|
8397
|
+
/**
|
|
8398
|
+
* Gets the default type url for Status
|
|
8399
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8400
|
+
* @returns The default type url
|
|
8401
|
+
*/
|
|
8402
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8403
|
+
}
|
|
8404
|
+
}
|
|
8405
|
+
|
|
8026
8406
|
/** Namespace api. */
|
|
8027
8407
|
namespace api {
|
|
8028
8408
|
|
|
@@ -9840,117 +10220,4 @@ export namespace google {
|
|
|
9840
10220
|
NON_EMPTY_DEFAULT = 7
|
|
9841
10221
|
}
|
|
9842
10222
|
}
|
|
9843
|
-
|
|
9844
|
-
/** Namespace rpc. */
|
|
9845
|
-
namespace rpc {
|
|
9846
|
-
|
|
9847
|
-
/** Properties of a Status. */
|
|
9848
|
-
interface IStatus {
|
|
9849
|
-
|
|
9850
|
-
/** Status code */
|
|
9851
|
-
code?: (number|null);
|
|
9852
|
-
|
|
9853
|
-
/** Status message */
|
|
9854
|
-
message?: (string|null);
|
|
9855
|
-
|
|
9856
|
-
/** Status details */
|
|
9857
|
-
details?: (google.protobuf.IAny[]|null);
|
|
9858
|
-
}
|
|
9859
|
-
|
|
9860
|
-
/** Represents a Status. */
|
|
9861
|
-
class Status implements IStatus {
|
|
9862
|
-
|
|
9863
|
-
/**
|
|
9864
|
-
* Constructs a new Status.
|
|
9865
|
-
* @param [properties] Properties to set
|
|
9866
|
-
*/
|
|
9867
|
-
constructor(properties?: google.rpc.IStatus);
|
|
9868
|
-
|
|
9869
|
-
/** Status code. */
|
|
9870
|
-
public code: number;
|
|
9871
|
-
|
|
9872
|
-
/** Status message. */
|
|
9873
|
-
public message: string;
|
|
9874
|
-
|
|
9875
|
-
/** Status details. */
|
|
9876
|
-
public details: google.protobuf.IAny[];
|
|
9877
|
-
|
|
9878
|
-
/**
|
|
9879
|
-
* Creates a new Status instance using the specified properties.
|
|
9880
|
-
* @param [properties] Properties to set
|
|
9881
|
-
* @returns Status instance
|
|
9882
|
-
*/
|
|
9883
|
-
public static create(properties?: google.rpc.IStatus): google.rpc.Status;
|
|
9884
|
-
|
|
9885
|
-
/**
|
|
9886
|
-
* Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
|
|
9887
|
-
* @param message Status message or plain object to encode
|
|
9888
|
-
* @param [writer] Writer to encode to
|
|
9889
|
-
* @returns Writer
|
|
9890
|
-
*/
|
|
9891
|
-
public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9892
|
-
|
|
9893
|
-
/**
|
|
9894
|
-
* Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages.
|
|
9895
|
-
* @param message Status message or plain object to encode
|
|
9896
|
-
* @param [writer] Writer to encode to
|
|
9897
|
-
* @returns Writer
|
|
9898
|
-
*/
|
|
9899
|
-
public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9900
|
-
|
|
9901
|
-
/**
|
|
9902
|
-
* Decodes a Status message from the specified reader or buffer.
|
|
9903
|
-
* @param reader Reader or buffer to decode from
|
|
9904
|
-
* @param [length] Message length if known beforehand
|
|
9905
|
-
* @returns Status
|
|
9906
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9907
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9908
|
-
*/
|
|
9909
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status;
|
|
9910
|
-
|
|
9911
|
-
/**
|
|
9912
|
-
* Decodes a Status message from the specified reader or buffer, length delimited.
|
|
9913
|
-
* @param reader Reader or buffer to decode from
|
|
9914
|
-
* @returns Status
|
|
9915
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9916
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9917
|
-
*/
|
|
9918
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status;
|
|
9919
|
-
|
|
9920
|
-
/**
|
|
9921
|
-
* Verifies a Status message.
|
|
9922
|
-
* @param message Plain object to verify
|
|
9923
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
9924
|
-
*/
|
|
9925
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
9926
|
-
|
|
9927
|
-
/**
|
|
9928
|
-
* Creates a Status message from a plain object. Also converts values to their respective internal types.
|
|
9929
|
-
* @param object Plain object
|
|
9930
|
-
* @returns Status
|
|
9931
|
-
*/
|
|
9932
|
-
public static fromObject(object: { [k: string]: any }): google.rpc.Status;
|
|
9933
|
-
|
|
9934
|
-
/**
|
|
9935
|
-
* Creates a plain object from a Status message. Also converts values to other types if specified.
|
|
9936
|
-
* @param message Status
|
|
9937
|
-
* @param [options] Conversion options
|
|
9938
|
-
* @returns Plain object
|
|
9939
|
-
*/
|
|
9940
|
-
public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
9941
|
-
|
|
9942
|
-
/**
|
|
9943
|
-
* Converts this Status to JSON.
|
|
9944
|
-
* @returns JSON object
|
|
9945
|
-
*/
|
|
9946
|
-
public toJSON(): { [k: string]: any };
|
|
9947
|
-
|
|
9948
|
-
/**
|
|
9949
|
-
* Gets the default type url for Status
|
|
9950
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9951
|
-
* @returns The default type url
|
|
9952
|
-
*/
|
|
9953
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9954
|
-
}
|
|
9955
|
-
}
|
|
9956
10223
|
}
|