@googlemaps/routing 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
44
44
  1. [Select or create a Cloud Platform project][projects].
45
45
  1. [Enable billing for your project][billing].
46
46
  1. [Enable the Google Maps Routing API][enable_api].
47
- 1. [Set up authentication with a service account][auth] so you can access the
47
+ 1. [Set up authentication][auth] so you can access the
48
48
  API from your local workstation.
49
49
 
50
50
  ### Installing the client library
@@ -233,4 +233,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
233
233
  [projects]: https://console.cloud.google.com/project
234
234
  [billing]: https://support.google.com/cloud/answer/6293499#enable-billing
235
235
  [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=routes.googleapis.com
236
- [auth]: https://cloud.google.com/docs/authentication/getting-started
236
+ [auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
@@ -27,7 +27,7 @@ export namespace google {
27
27
  type_url?: (string|null);
28
28
 
29
29
  /** Any value */
30
- value?: (Uint8Array|string|null);
30
+ value?: (Uint8Array|Buffer|string|null);
31
31
  }
32
32
 
33
33
  /** Represents an Any. */
@@ -43,7 +43,7 @@ export namespace google {
43
43
  public type_url: string;
44
44
 
45
45
  /** Any value. */
46
- public value: (Uint8Array|string);
46
+ public value: (Uint8Array|Buffer|string);
47
47
 
48
48
  /**
49
49
  * Creates a new Any instance using the specified properties.
@@ -903,7 +903,7 @@ export namespace google {
903
903
  interface IBytesValue {
904
904
 
905
905
  /** BytesValue value */
906
- value?: (Uint8Array|string|null);
906
+ value?: (Uint8Array|Buffer|string|null);
907
907
  }
908
908
 
909
909
  /** Represents a BytesValue. */
@@ -916,7 +916,7 @@ export namespace google {
916
916
  constructor(properties?: google.protobuf.IBytesValue);
917
917
 
918
918
  /** BytesValue value. */
919
- public value: (Uint8Array|string);
919
+ public value: (Uint8Array|Buffer|string);
920
920
 
921
921
  /**
922
922
  * Creates a new BytesValue instance using the specified properties.
@@ -4110,6 +4110,9 @@ export namespace google {
4110
4110
 
4111
4111
  /** ServiceOptions .google.api.oauthScopes */
4112
4112
  ".google.api.oauthScopes"?: (string|null);
4113
+
4114
+ /** ServiceOptions .google.api.apiVersion */
4115
+ ".google.api.apiVersion"?: (string|null);
4113
4116
  }
4114
4117
 
4115
4118
  /** Represents a ServiceOptions. */
@@ -4358,7 +4361,7 @@ export namespace google {
4358
4361
  doubleValue?: (number|null);
4359
4362
 
4360
4363
  /** UninterpretedOption stringValue */
4361
- stringValue?: (Uint8Array|string|null);
4364
+ stringValue?: (Uint8Array|Buffer|string|null);
4362
4365
 
4363
4366
  /** UninterpretedOption aggregateValue */
4364
4367
  aggregateValue?: (string|null);
@@ -4389,7 +4392,7 @@ export namespace google {
4389
4392
  public doubleValue: number;
4390
4393
 
4391
4394
  /** UninterpretedOption stringValue. */
4392
- public stringValue: (Uint8Array|string);
4395
+ public stringValue: (Uint8Array|Buffer|string);
4393
4396
 
4394
4397
  /** UninterpretedOption aggregateValue. */
4395
4398
  public aggregateValue: string;
@@ -6333,9 +6336,6 @@ export namespace google {
6333
6336
  /** GeocodedWaypoint placeId. */
6334
6337
  public placeId: string;
6335
6338
 
6336
- /** GeocodedWaypoint _intermediateWaypointRequestIndex. */
6337
- public _intermediateWaypointRequestIndex?: "intermediateWaypointRequestIndex";
6338
-
6339
6339
  /**
6340
6340
  * Creates a new GeocodedWaypoint instance using the specified properties.
6341
6341
  * @param [properties] Properties to set
@@ -6998,12 +6998,6 @@ export namespace google {
6998
6998
  /** PolylinePointIndex endIndex. */
6999
6999
  public endIndex?: (number|null);
7000
7000
 
7001
- /** PolylinePointIndex _startIndex. */
7002
- public _startIndex?: "startIndex";
7003
-
7004
- /** PolylinePointIndex _endIndex. */
7005
- public _endIndex?: "endIndex";
7006
-
7007
7001
  /**
7008
7002
  * Creates a new PolylinePointIndex instance using the specified properties.
7009
7003
  * @param [properties] Properties to set
@@ -8308,12 +8302,6 @@ export namespace google {
8308
8302
  /** MultiModalSegment travelMode. */
8309
8303
  public travelMode: (google.maps.routing.v2.RouteTravelMode|keyof typeof google.maps.routing.v2.RouteTravelMode);
8310
8304
 
8311
- /** MultiModalSegment _stepStartIndex. */
8312
- public _stepStartIndex?: "stepStartIndex";
8313
-
8314
- /** MultiModalSegment _stepEndIndex. */
8315
- public _stepEndIndex?: "stepEndIndex";
8316
-
8317
8305
  /**
8318
8306
  * Creates a new MultiModalSegment instance using the specified properties.
8319
8307
  * @param [properties] Properties to set
@@ -9055,12 +9043,6 @@ export namespace google {
9055
9043
  /** SpeedReadingInterval speed. */
9056
9044
  public speed?: (google.maps.routing.v2.SpeedReadingInterval.Speed|keyof typeof google.maps.routing.v2.SpeedReadingInterval.Speed|null);
9057
9045
 
9058
- /** SpeedReadingInterval _startPolylinePointIndex. */
9059
- public _startPolylinePointIndex?: "startPolylinePointIndex";
9060
-
9061
- /** SpeedReadingInterval _endPolylinePointIndex. */
9062
- public _endPolylinePointIndex?: "endPolylinePointIndex";
9063
-
9064
9046
  /** SpeedReadingInterval speedType. */
9065
9047
  public speedType?: "speed";
9066
9048
 
@@ -10924,12 +10906,6 @@ export namespace google {
10924
10906
  /** RouteMatrixElement localizedValues. */
10925
10907
  public localizedValues?: (google.maps.routing.v2.RouteMatrixElement.ILocalizedValues|null);
10926
10908
 
10927
- /** RouteMatrixElement _originIndex. */
10928
- public _originIndex?: "originIndex";
10929
-
10930
- /** RouteMatrixElement _destinationIndex. */
10931
- public _destinationIndex?: "destinationIndex";
10932
-
10933
10909
  /**
10934
10910
  * Creates a new RouteMatrixElement instance using the specified properties.
10935
10911
  * @param [properties] Properties to set
@@ -12193,6 +12169,9 @@ export namespace google {
12193
12169
 
12194
12170
  /** Publishing protoReferenceDocumentationUri */
12195
12171
  protoReferenceDocumentationUri?: (string|null);
12172
+
12173
+ /** Publishing restReferenceDocumentationUri */
12174
+ restReferenceDocumentationUri?: (string|null);
12196
12175
  }
12197
12176
 
12198
12177
  /** Represents a Publishing. */
@@ -12234,6 +12213,9 @@ export namespace google {
12234
12213
  /** Publishing protoReferenceDocumentationUri. */
12235
12214
  public protoReferenceDocumentationUri: string;
12236
12215
 
12216
+ /** Publishing restReferenceDocumentationUri. */
12217
+ public restReferenceDocumentationUri: string;
12218
+
12237
12219
  /**
12238
12220
  * Creates a new Publishing instance using the specified properties.
12239
12221
  * @param [properties] Properties to set