@googlemaps/places 1.2.0 → 1.3.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 +7 -0
- package/README.md +1 -0
- package/build/protos/google/maps/places/v1/place.proto +2 -2
- package/build/protos/google/maps/places/v1/places_service.proto +317 -6
- package/build/protos/protos.d.ts +1256 -0
- package/build/protos/protos.js +3182 -0
- package/build/protos/protos.json +288 -0
- package/build/src/v1/places_client.d.ts +127 -4
- package/build/src/v1/places_client.js +17 -0
- package/build/src/v1/places_client.js.map +1 -1
- package/build/src/v1/places_client_config.json +4 -0
- package/package.json +1 -1
package/build/protos/protos.d.ts
CHANGED
|
@@ -7058,6 +7058,20 @@ export namespace google {
|
|
|
7058
7058
|
* @returns Promise
|
|
7059
7059
|
*/
|
|
7060
7060
|
public getPlace(request: google.maps.places.v1.IGetPlaceRequest): Promise<google.maps.places.v1.Place>;
|
|
7061
|
+
|
|
7062
|
+
/**
|
|
7063
|
+
* Calls AutocompletePlaces.
|
|
7064
|
+
* @param request AutocompletePlacesRequest message or plain object
|
|
7065
|
+
* @param callback Node-style callback called with the error, if any, and AutocompletePlacesResponse
|
|
7066
|
+
*/
|
|
7067
|
+
public autocompletePlaces(request: google.maps.places.v1.IAutocompletePlacesRequest, callback: google.maps.places.v1.Places.AutocompletePlacesCallback): void;
|
|
7068
|
+
|
|
7069
|
+
/**
|
|
7070
|
+
* Calls AutocompletePlaces.
|
|
7071
|
+
* @param request AutocompletePlacesRequest message or plain object
|
|
7072
|
+
* @returns Promise
|
|
7073
|
+
*/
|
|
7074
|
+
public autocompletePlaces(request: google.maps.places.v1.IAutocompletePlacesRequest): Promise<google.maps.places.v1.AutocompletePlacesResponse>;
|
|
7061
7075
|
}
|
|
7062
7076
|
|
|
7063
7077
|
namespace Places {
|
|
@@ -7089,6 +7103,13 @@ export namespace google {
|
|
|
7089
7103
|
* @param [response] Place
|
|
7090
7104
|
*/
|
|
7091
7105
|
type GetPlaceCallback = (error: (Error|null), response?: google.maps.places.v1.Place) => void;
|
|
7106
|
+
|
|
7107
|
+
/**
|
|
7108
|
+
* Callback as used by {@link google.maps.places.v1.Places|autocompletePlaces}.
|
|
7109
|
+
* @param error Error, if any
|
|
7110
|
+
* @param [response] AutocompletePlacesResponse
|
|
7111
|
+
*/
|
|
7112
|
+
type AutocompletePlacesCallback = (error: (Error|null), response?: google.maps.places.v1.AutocompletePlacesResponse) => void;
|
|
7092
7113
|
}
|
|
7093
7114
|
|
|
7094
7115
|
/** Properties of a SearchNearbyRequest. */
|
|
@@ -7481,6 +7502,9 @@ export namespace google {
|
|
|
7481
7502
|
|
|
7482
7503
|
/** SearchTextRequest locationRestriction */
|
|
7483
7504
|
locationRestriction?: (google.maps.places.v1.SearchTextRequest.ILocationRestriction|null);
|
|
7505
|
+
|
|
7506
|
+
/** SearchTextRequest evOptions */
|
|
7507
|
+
evOptions?: (google.maps.places.v1.SearchTextRequest.IEVOptions|null);
|
|
7484
7508
|
}
|
|
7485
7509
|
|
|
7486
7510
|
/** Represents a SearchTextRequest. */
|
|
@@ -7528,6 +7552,9 @@ export namespace google {
|
|
|
7528
7552
|
/** SearchTextRequest locationRestriction. */
|
|
7529
7553
|
public locationRestriction?: (google.maps.places.v1.SearchTextRequest.ILocationRestriction|null);
|
|
7530
7554
|
|
|
7555
|
+
/** SearchTextRequest evOptions. */
|
|
7556
|
+
public evOptions?: (google.maps.places.v1.SearchTextRequest.IEVOptions|null);
|
|
7557
|
+
|
|
7531
7558
|
/**
|
|
7532
7559
|
* Creates a new SearchTextRequest instance using the specified properties.
|
|
7533
7560
|
* @param [properties] Properties to set
|
|
@@ -7820,6 +7847,109 @@ export namespace google {
|
|
|
7820
7847
|
*/
|
|
7821
7848
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
7822
7849
|
}
|
|
7850
|
+
|
|
7851
|
+
/** Properties of a EVOptions. */
|
|
7852
|
+
interface IEVOptions {
|
|
7853
|
+
|
|
7854
|
+
/** EVOptions minimumChargingRateKw */
|
|
7855
|
+
minimumChargingRateKw?: (number|null);
|
|
7856
|
+
|
|
7857
|
+
/** EVOptions connectorTypes */
|
|
7858
|
+
connectorTypes?: (google.maps.places.v1.EVConnectorType[]|null);
|
|
7859
|
+
}
|
|
7860
|
+
|
|
7861
|
+
/** Represents a EVOptions. */
|
|
7862
|
+
class EVOptions implements IEVOptions {
|
|
7863
|
+
|
|
7864
|
+
/**
|
|
7865
|
+
* Constructs a new EVOptions.
|
|
7866
|
+
* @param [properties] Properties to set
|
|
7867
|
+
*/
|
|
7868
|
+
constructor(properties?: google.maps.places.v1.SearchTextRequest.IEVOptions);
|
|
7869
|
+
|
|
7870
|
+
/** EVOptions minimumChargingRateKw. */
|
|
7871
|
+
public minimumChargingRateKw: number;
|
|
7872
|
+
|
|
7873
|
+
/** EVOptions connectorTypes. */
|
|
7874
|
+
public connectorTypes: google.maps.places.v1.EVConnectorType[];
|
|
7875
|
+
|
|
7876
|
+
/**
|
|
7877
|
+
* Creates a new EVOptions instance using the specified properties.
|
|
7878
|
+
* @param [properties] Properties to set
|
|
7879
|
+
* @returns EVOptions instance
|
|
7880
|
+
*/
|
|
7881
|
+
public static create(properties?: google.maps.places.v1.SearchTextRequest.IEVOptions): google.maps.places.v1.SearchTextRequest.EVOptions;
|
|
7882
|
+
|
|
7883
|
+
/**
|
|
7884
|
+
* Encodes the specified EVOptions message. Does not implicitly {@link google.maps.places.v1.SearchTextRequest.EVOptions.verify|verify} messages.
|
|
7885
|
+
* @param message EVOptions message or plain object to encode
|
|
7886
|
+
* @param [writer] Writer to encode to
|
|
7887
|
+
* @returns Writer
|
|
7888
|
+
*/
|
|
7889
|
+
public static encode(message: google.maps.places.v1.SearchTextRequest.IEVOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7890
|
+
|
|
7891
|
+
/**
|
|
7892
|
+
* Encodes the specified EVOptions message, length delimited. Does not implicitly {@link google.maps.places.v1.SearchTextRequest.EVOptions.verify|verify} messages.
|
|
7893
|
+
* @param message EVOptions message or plain object to encode
|
|
7894
|
+
* @param [writer] Writer to encode to
|
|
7895
|
+
* @returns Writer
|
|
7896
|
+
*/
|
|
7897
|
+
public static encodeDelimited(message: google.maps.places.v1.SearchTextRequest.IEVOptions, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7898
|
+
|
|
7899
|
+
/**
|
|
7900
|
+
* Decodes a EVOptions message from the specified reader or buffer.
|
|
7901
|
+
* @param reader Reader or buffer to decode from
|
|
7902
|
+
* @param [length] Message length if known beforehand
|
|
7903
|
+
* @returns EVOptions
|
|
7904
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7905
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7906
|
+
*/
|
|
7907
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.SearchTextRequest.EVOptions;
|
|
7908
|
+
|
|
7909
|
+
/**
|
|
7910
|
+
* Decodes a EVOptions message from the specified reader or buffer, length delimited.
|
|
7911
|
+
* @param reader Reader or buffer to decode from
|
|
7912
|
+
* @returns EVOptions
|
|
7913
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7914
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7915
|
+
*/
|
|
7916
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.SearchTextRequest.EVOptions;
|
|
7917
|
+
|
|
7918
|
+
/**
|
|
7919
|
+
* Verifies a EVOptions message.
|
|
7920
|
+
* @param message Plain object to verify
|
|
7921
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7922
|
+
*/
|
|
7923
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7924
|
+
|
|
7925
|
+
/**
|
|
7926
|
+
* Creates a EVOptions message from a plain object. Also converts values to their respective internal types.
|
|
7927
|
+
* @param object Plain object
|
|
7928
|
+
* @returns EVOptions
|
|
7929
|
+
*/
|
|
7930
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.SearchTextRequest.EVOptions;
|
|
7931
|
+
|
|
7932
|
+
/**
|
|
7933
|
+
* Creates a plain object from a EVOptions message. Also converts values to other types if specified.
|
|
7934
|
+
* @param message EVOptions
|
|
7935
|
+
* @param [options] Conversion options
|
|
7936
|
+
* @returns Plain object
|
|
7937
|
+
*/
|
|
7938
|
+
public static toObject(message: google.maps.places.v1.SearchTextRequest.EVOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7939
|
+
|
|
7940
|
+
/**
|
|
7941
|
+
* Converts this EVOptions to JSON.
|
|
7942
|
+
* @returns JSON object
|
|
7943
|
+
*/
|
|
7944
|
+
public toJSON(): { [k: string]: any };
|
|
7945
|
+
|
|
7946
|
+
/**
|
|
7947
|
+
* Gets the default type url for EVOptions
|
|
7948
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7949
|
+
* @returns The default type url
|
|
7950
|
+
*/
|
|
7951
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
7952
|
+
}
|
|
7823
7953
|
}
|
|
7824
7954
|
|
|
7825
7955
|
/** Properties of a SearchTextResponse. */
|
|
@@ -8148,6 +8278,9 @@ export namespace google {
|
|
|
8148
8278
|
|
|
8149
8279
|
/** GetPlaceRequest regionCode */
|
|
8150
8280
|
regionCode?: (string|null);
|
|
8281
|
+
|
|
8282
|
+
/** GetPlaceRequest sessionToken */
|
|
8283
|
+
sessionToken?: (string|null);
|
|
8151
8284
|
}
|
|
8152
8285
|
|
|
8153
8286
|
/** Represents a GetPlaceRequest. */
|
|
@@ -8168,6 +8301,9 @@ export namespace google {
|
|
|
8168
8301
|
/** GetPlaceRequest regionCode. */
|
|
8169
8302
|
public regionCode: string;
|
|
8170
8303
|
|
|
8304
|
+
/** GetPlaceRequest sessionToken. */
|
|
8305
|
+
public sessionToken: string;
|
|
8306
|
+
|
|
8171
8307
|
/**
|
|
8172
8308
|
* Creates a new GetPlaceRequest instance using the specified properties.
|
|
8173
8309
|
* @param [properties] Properties to set
|
|
@@ -8245,6 +8381,1126 @@ export namespace google {
|
|
|
8245
8381
|
*/
|
|
8246
8382
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8247
8383
|
}
|
|
8384
|
+
|
|
8385
|
+
/** Properties of an AutocompletePlacesRequest. */
|
|
8386
|
+
interface IAutocompletePlacesRequest {
|
|
8387
|
+
|
|
8388
|
+
/** AutocompletePlacesRequest input */
|
|
8389
|
+
input?: (string|null);
|
|
8390
|
+
|
|
8391
|
+
/** AutocompletePlacesRequest locationBias */
|
|
8392
|
+
locationBias?: (google.maps.places.v1.AutocompletePlacesRequest.ILocationBias|null);
|
|
8393
|
+
|
|
8394
|
+
/** AutocompletePlacesRequest locationRestriction */
|
|
8395
|
+
locationRestriction?: (google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction|null);
|
|
8396
|
+
|
|
8397
|
+
/** AutocompletePlacesRequest includedPrimaryTypes */
|
|
8398
|
+
includedPrimaryTypes?: (string[]|null);
|
|
8399
|
+
|
|
8400
|
+
/** AutocompletePlacesRequest includedRegionCodes */
|
|
8401
|
+
includedRegionCodes?: (string[]|null);
|
|
8402
|
+
|
|
8403
|
+
/** AutocompletePlacesRequest languageCode */
|
|
8404
|
+
languageCode?: (string|null);
|
|
8405
|
+
|
|
8406
|
+
/** AutocompletePlacesRequest regionCode */
|
|
8407
|
+
regionCode?: (string|null);
|
|
8408
|
+
|
|
8409
|
+
/** AutocompletePlacesRequest origin */
|
|
8410
|
+
origin?: (google.type.ILatLng|null);
|
|
8411
|
+
|
|
8412
|
+
/** AutocompletePlacesRequest inputOffset */
|
|
8413
|
+
inputOffset?: (number|null);
|
|
8414
|
+
|
|
8415
|
+
/** AutocompletePlacesRequest includeQueryPredictions */
|
|
8416
|
+
includeQueryPredictions?: (boolean|null);
|
|
8417
|
+
|
|
8418
|
+
/** AutocompletePlacesRequest sessionToken */
|
|
8419
|
+
sessionToken?: (string|null);
|
|
8420
|
+
}
|
|
8421
|
+
|
|
8422
|
+
/** Represents an AutocompletePlacesRequest. */
|
|
8423
|
+
class AutocompletePlacesRequest implements IAutocompletePlacesRequest {
|
|
8424
|
+
|
|
8425
|
+
/**
|
|
8426
|
+
* Constructs a new AutocompletePlacesRequest.
|
|
8427
|
+
* @param [properties] Properties to set
|
|
8428
|
+
*/
|
|
8429
|
+
constructor(properties?: google.maps.places.v1.IAutocompletePlacesRequest);
|
|
8430
|
+
|
|
8431
|
+
/** AutocompletePlacesRequest input. */
|
|
8432
|
+
public input: string;
|
|
8433
|
+
|
|
8434
|
+
/** AutocompletePlacesRequest locationBias. */
|
|
8435
|
+
public locationBias?: (google.maps.places.v1.AutocompletePlacesRequest.ILocationBias|null);
|
|
8436
|
+
|
|
8437
|
+
/** AutocompletePlacesRequest locationRestriction. */
|
|
8438
|
+
public locationRestriction?: (google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction|null);
|
|
8439
|
+
|
|
8440
|
+
/** AutocompletePlacesRequest includedPrimaryTypes. */
|
|
8441
|
+
public includedPrimaryTypes: string[];
|
|
8442
|
+
|
|
8443
|
+
/** AutocompletePlacesRequest includedRegionCodes. */
|
|
8444
|
+
public includedRegionCodes: string[];
|
|
8445
|
+
|
|
8446
|
+
/** AutocompletePlacesRequest languageCode. */
|
|
8447
|
+
public languageCode: string;
|
|
8448
|
+
|
|
8449
|
+
/** AutocompletePlacesRequest regionCode. */
|
|
8450
|
+
public regionCode: string;
|
|
8451
|
+
|
|
8452
|
+
/** AutocompletePlacesRequest origin. */
|
|
8453
|
+
public origin?: (google.type.ILatLng|null);
|
|
8454
|
+
|
|
8455
|
+
/** AutocompletePlacesRequest inputOffset. */
|
|
8456
|
+
public inputOffset: number;
|
|
8457
|
+
|
|
8458
|
+
/** AutocompletePlacesRequest includeQueryPredictions. */
|
|
8459
|
+
public includeQueryPredictions: boolean;
|
|
8460
|
+
|
|
8461
|
+
/** AutocompletePlacesRequest sessionToken. */
|
|
8462
|
+
public sessionToken: string;
|
|
8463
|
+
|
|
8464
|
+
/**
|
|
8465
|
+
* Creates a new AutocompletePlacesRequest instance using the specified properties.
|
|
8466
|
+
* @param [properties] Properties to set
|
|
8467
|
+
* @returns AutocompletePlacesRequest instance
|
|
8468
|
+
*/
|
|
8469
|
+
public static create(properties?: google.maps.places.v1.IAutocompletePlacesRequest): google.maps.places.v1.AutocompletePlacesRequest;
|
|
8470
|
+
|
|
8471
|
+
/**
|
|
8472
|
+
* Encodes the specified AutocompletePlacesRequest message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.verify|verify} messages.
|
|
8473
|
+
* @param message AutocompletePlacesRequest message or plain object to encode
|
|
8474
|
+
* @param [writer] Writer to encode to
|
|
8475
|
+
* @returns Writer
|
|
8476
|
+
*/
|
|
8477
|
+
public static encode(message: google.maps.places.v1.IAutocompletePlacesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8478
|
+
|
|
8479
|
+
/**
|
|
8480
|
+
* Encodes the specified AutocompletePlacesRequest message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.verify|verify} messages.
|
|
8481
|
+
* @param message AutocompletePlacesRequest message or plain object to encode
|
|
8482
|
+
* @param [writer] Writer to encode to
|
|
8483
|
+
* @returns Writer
|
|
8484
|
+
*/
|
|
8485
|
+
public static encodeDelimited(message: google.maps.places.v1.IAutocompletePlacesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8486
|
+
|
|
8487
|
+
/**
|
|
8488
|
+
* Decodes an AutocompletePlacesRequest message from the specified reader or buffer.
|
|
8489
|
+
* @param reader Reader or buffer to decode from
|
|
8490
|
+
* @param [length] Message length if known beforehand
|
|
8491
|
+
* @returns AutocompletePlacesRequest
|
|
8492
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8493
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8494
|
+
*/
|
|
8495
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesRequest;
|
|
8496
|
+
|
|
8497
|
+
/**
|
|
8498
|
+
* Decodes an AutocompletePlacesRequest message from the specified reader or buffer, length delimited.
|
|
8499
|
+
* @param reader Reader or buffer to decode from
|
|
8500
|
+
* @returns AutocompletePlacesRequest
|
|
8501
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8502
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8503
|
+
*/
|
|
8504
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesRequest;
|
|
8505
|
+
|
|
8506
|
+
/**
|
|
8507
|
+
* Verifies an AutocompletePlacesRequest message.
|
|
8508
|
+
* @param message Plain object to verify
|
|
8509
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
8510
|
+
*/
|
|
8511
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
8512
|
+
|
|
8513
|
+
/**
|
|
8514
|
+
* Creates an AutocompletePlacesRequest message from a plain object. Also converts values to their respective internal types.
|
|
8515
|
+
* @param object Plain object
|
|
8516
|
+
* @returns AutocompletePlacesRequest
|
|
8517
|
+
*/
|
|
8518
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesRequest;
|
|
8519
|
+
|
|
8520
|
+
/**
|
|
8521
|
+
* Creates a plain object from an AutocompletePlacesRequest message. Also converts values to other types if specified.
|
|
8522
|
+
* @param message AutocompletePlacesRequest
|
|
8523
|
+
* @param [options] Conversion options
|
|
8524
|
+
* @returns Plain object
|
|
8525
|
+
*/
|
|
8526
|
+
public static toObject(message: google.maps.places.v1.AutocompletePlacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8527
|
+
|
|
8528
|
+
/**
|
|
8529
|
+
* Converts this AutocompletePlacesRequest to JSON.
|
|
8530
|
+
* @returns JSON object
|
|
8531
|
+
*/
|
|
8532
|
+
public toJSON(): { [k: string]: any };
|
|
8533
|
+
|
|
8534
|
+
/**
|
|
8535
|
+
* Gets the default type url for AutocompletePlacesRequest
|
|
8536
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8537
|
+
* @returns The default type url
|
|
8538
|
+
*/
|
|
8539
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8540
|
+
}
|
|
8541
|
+
|
|
8542
|
+
namespace AutocompletePlacesRequest {
|
|
8543
|
+
|
|
8544
|
+
/** Properties of a LocationBias. */
|
|
8545
|
+
interface ILocationBias {
|
|
8546
|
+
|
|
8547
|
+
/** LocationBias rectangle */
|
|
8548
|
+
rectangle?: (google.geo.type.IViewport|null);
|
|
8549
|
+
|
|
8550
|
+
/** LocationBias circle */
|
|
8551
|
+
circle?: (google.maps.places.v1.ICircle|null);
|
|
8552
|
+
}
|
|
8553
|
+
|
|
8554
|
+
/** Represents a LocationBias. */
|
|
8555
|
+
class LocationBias implements ILocationBias {
|
|
8556
|
+
|
|
8557
|
+
/**
|
|
8558
|
+
* Constructs a new LocationBias.
|
|
8559
|
+
* @param [properties] Properties to set
|
|
8560
|
+
*/
|
|
8561
|
+
constructor(properties?: google.maps.places.v1.AutocompletePlacesRequest.ILocationBias);
|
|
8562
|
+
|
|
8563
|
+
/** LocationBias rectangle. */
|
|
8564
|
+
public rectangle?: (google.geo.type.IViewport|null);
|
|
8565
|
+
|
|
8566
|
+
/** LocationBias circle. */
|
|
8567
|
+
public circle?: (google.maps.places.v1.ICircle|null);
|
|
8568
|
+
|
|
8569
|
+
/** LocationBias type. */
|
|
8570
|
+
public type?: ("rectangle"|"circle");
|
|
8571
|
+
|
|
8572
|
+
/**
|
|
8573
|
+
* Creates a new LocationBias instance using the specified properties.
|
|
8574
|
+
* @param [properties] Properties to set
|
|
8575
|
+
* @returns LocationBias instance
|
|
8576
|
+
*/
|
|
8577
|
+
public static create(properties?: google.maps.places.v1.AutocompletePlacesRequest.ILocationBias): google.maps.places.v1.AutocompletePlacesRequest.LocationBias;
|
|
8578
|
+
|
|
8579
|
+
/**
|
|
8580
|
+
* Encodes the specified LocationBias message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.LocationBias.verify|verify} messages.
|
|
8581
|
+
* @param message LocationBias message or plain object to encode
|
|
8582
|
+
* @param [writer] Writer to encode to
|
|
8583
|
+
* @returns Writer
|
|
8584
|
+
*/
|
|
8585
|
+
public static encode(message: google.maps.places.v1.AutocompletePlacesRequest.ILocationBias, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8586
|
+
|
|
8587
|
+
/**
|
|
8588
|
+
* Encodes the specified LocationBias message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.LocationBias.verify|verify} messages.
|
|
8589
|
+
* @param message LocationBias message or plain object to encode
|
|
8590
|
+
* @param [writer] Writer to encode to
|
|
8591
|
+
* @returns Writer
|
|
8592
|
+
*/
|
|
8593
|
+
public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesRequest.ILocationBias, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8594
|
+
|
|
8595
|
+
/**
|
|
8596
|
+
* Decodes a LocationBias message from the specified reader or buffer.
|
|
8597
|
+
* @param reader Reader or buffer to decode from
|
|
8598
|
+
* @param [length] Message length if known beforehand
|
|
8599
|
+
* @returns LocationBias
|
|
8600
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8601
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8602
|
+
*/
|
|
8603
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesRequest.LocationBias;
|
|
8604
|
+
|
|
8605
|
+
/**
|
|
8606
|
+
* Decodes a LocationBias message from the specified reader or buffer, length delimited.
|
|
8607
|
+
* @param reader Reader or buffer to decode from
|
|
8608
|
+
* @returns LocationBias
|
|
8609
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8610
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8611
|
+
*/
|
|
8612
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesRequest.LocationBias;
|
|
8613
|
+
|
|
8614
|
+
/**
|
|
8615
|
+
* Verifies a LocationBias message.
|
|
8616
|
+
* @param message Plain object to verify
|
|
8617
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
8618
|
+
*/
|
|
8619
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
8620
|
+
|
|
8621
|
+
/**
|
|
8622
|
+
* Creates a LocationBias message from a plain object. Also converts values to their respective internal types.
|
|
8623
|
+
* @param object Plain object
|
|
8624
|
+
* @returns LocationBias
|
|
8625
|
+
*/
|
|
8626
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesRequest.LocationBias;
|
|
8627
|
+
|
|
8628
|
+
/**
|
|
8629
|
+
* Creates a plain object from a LocationBias message. Also converts values to other types if specified.
|
|
8630
|
+
* @param message LocationBias
|
|
8631
|
+
* @param [options] Conversion options
|
|
8632
|
+
* @returns Plain object
|
|
8633
|
+
*/
|
|
8634
|
+
public static toObject(message: google.maps.places.v1.AutocompletePlacesRequest.LocationBias, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8635
|
+
|
|
8636
|
+
/**
|
|
8637
|
+
* Converts this LocationBias to JSON.
|
|
8638
|
+
* @returns JSON object
|
|
8639
|
+
*/
|
|
8640
|
+
public toJSON(): { [k: string]: any };
|
|
8641
|
+
|
|
8642
|
+
/**
|
|
8643
|
+
* Gets the default type url for LocationBias
|
|
8644
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8645
|
+
* @returns The default type url
|
|
8646
|
+
*/
|
|
8647
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8648
|
+
}
|
|
8649
|
+
|
|
8650
|
+
/** Properties of a LocationRestriction. */
|
|
8651
|
+
interface ILocationRestriction {
|
|
8652
|
+
|
|
8653
|
+
/** LocationRestriction rectangle */
|
|
8654
|
+
rectangle?: (google.geo.type.IViewport|null);
|
|
8655
|
+
|
|
8656
|
+
/** LocationRestriction circle */
|
|
8657
|
+
circle?: (google.maps.places.v1.ICircle|null);
|
|
8658
|
+
}
|
|
8659
|
+
|
|
8660
|
+
/** Represents a LocationRestriction. */
|
|
8661
|
+
class LocationRestriction implements ILocationRestriction {
|
|
8662
|
+
|
|
8663
|
+
/**
|
|
8664
|
+
* Constructs a new LocationRestriction.
|
|
8665
|
+
* @param [properties] Properties to set
|
|
8666
|
+
*/
|
|
8667
|
+
constructor(properties?: google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction);
|
|
8668
|
+
|
|
8669
|
+
/** LocationRestriction rectangle. */
|
|
8670
|
+
public rectangle?: (google.geo.type.IViewport|null);
|
|
8671
|
+
|
|
8672
|
+
/** LocationRestriction circle. */
|
|
8673
|
+
public circle?: (google.maps.places.v1.ICircle|null);
|
|
8674
|
+
|
|
8675
|
+
/** LocationRestriction type. */
|
|
8676
|
+
public type?: ("rectangle"|"circle");
|
|
8677
|
+
|
|
8678
|
+
/**
|
|
8679
|
+
* Creates a new LocationRestriction instance using the specified properties.
|
|
8680
|
+
* @param [properties] Properties to set
|
|
8681
|
+
* @returns LocationRestriction instance
|
|
8682
|
+
*/
|
|
8683
|
+
public static create(properties?: google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction): google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction;
|
|
8684
|
+
|
|
8685
|
+
/**
|
|
8686
|
+
* Encodes the specified LocationRestriction message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.verify|verify} messages.
|
|
8687
|
+
* @param message LocationRestriction message or plain object to encode
|
|
8688
|
+
* @param [writer] Writer to encode to
|
|
8689
|
+
* @returns Writer
|
|
8690
|
+
*/
|
|
8691
|
+
public static encode(message: google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8692
|
+
|
|
8693
|
+
/**
|
|
8694
|
+
* Encodes the specified LocationRestriction message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction.verify|verify} messages.
|
|
8695
|
+
* @param message LocationRestriction message or plain object to encode
|
|
8696
|
+
* @param [writer] Writer to encode to
|
|
8697
|
+
* @returns Writer
|
|
8698
|
+
*/
|
|
8699
|
+
public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesRequest.ILocationRestriction, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8700
|
+
|
|
8701
|
+
/**
|
|
8702
|
+
* Decodes a LocationRestriction message from the specified reader or buffer.
|
|
8703
|
+
* @param reader Reader or buffer to decode from
|
|
8704
|
+
* @param [length] Message length if known beforehand
|
|
8705
|
+
* @returns LocationRestriction
|
|
8706
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8707
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8708
|
+
*/
|
|
8709
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction;
|
|
8710
|
+
|
|
8711
|
+
/**
|
|
8712
|
+
* Decodes a LocationRestriction message from the specified reader or buffer, length delimited.
|
|
8713
|
+
* @param reader Reader or buffer to decode from
|
|
8714
|
+
* @returns LocationRestriction
|
|
8715
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8716
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8717
|
+
*/
|
|
8718
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction;
|
|
8719
|
+
|
|
8720
|
+
/**
|
|
8721
|
+
* Verifies a LocationRestriction message.
|
|
8722
|
+
* @param message Plain object to verify
|
|
8723
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
8724
|
+
*/
|
|
8725
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
8726
|
+
|
|
8727
|
+
/**
|
|
8728
|
+
* Creates a LocationRestriction message from a plain object. Also converts values to their respective internal types.
|
|
8729
|
+
* @param object Plain object
|
|
8730
|
+
* @returns LocationRestriction
|
|
8731
|
+
*/
|
|
8732
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction;
|
|
8733
|
+
|
|
8734
|
+
/**
|
|
8735
|
+
* Creates a plain object from a LocationRestriction message. Also converts values to other types if specified.
|
|
8736
|
+
* @param message LocationRestriction
|
|
8737
|
+
* @param [options] Conversion options
|
|
8738
|
+
* @returns Plain object
|
|
8739
|
+
*/
|
|
8740
|
+
public static toObject(message: google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8741
|
+
|
|
8742
|
+
/**
|
|
8743
|
+
* Converts this LocationRestriction to JSON.
|
|
8744
|
+
* @returns JSON object
|
|
8745
|
+
*/
|
|
8746
|
+
public toJSON(): { [k: string]: any };
|
|
8747
|
+
|
|
8748
|
+
/**
|
|
8749
|
+
* Gets the default type url for LocationRestriction
|
|
8750
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8751
|
+
* @returns The default type url
|
|
8752
|
+
*/
|
|
8753
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8754
|
+
}
|
|
8755
|
+
}
|
|
8756
|
+
|
|
8757
|
+
/** Properties of an AutocompletePlacesResponse. */
|
|
8758
|
+
interface IAutocompletePlacesResponse {
|
|
8759
|
+
|
|
8760
|
+
/** AutocompletePlacesResponse suggestions */
|
|
8761
|
+
suggestions?: (google.maps.places.v1.AutocompletePlacesResponse.ISuggestion[]|null);
|
|
8762
|
+
}
|
|
8763
|
+
|
|
8764
|
+
/** Represents an AutocompletePlacesResponse. */
|
|
8765
|
+
class AutocompletePlacesResponse implements IAutocompletePlacesResponse {
|
|
8766
|
+
|
|
8767
|
+
/**
|
|
8768
|
+
* Constructs a new AutocompletePlacesResponse.
|
|
8769
|
+
* @param [properties] Properties to set
|
|
8770
|
+
*/
|
|
8771
|
+
constructor(properties?: google.maps.places.v1.IAutocompletePlacesResponse);
|
|
8772
|
+
|
|
8773
|
+
/** AutocompletePlacesResponse suggestions. */
|
|
8774
|
+
public suggestions: google.maps.places.v1.AutocompletePlacesResponse.ISuggestion[];
|
|
8775
|
+
|
|
8776
|
+
/**
|
|
8777
|
+
* Creates a new AutocompletePlacesResponse instance using the specified properties.
|
|
8778
|
+
* @param [properties] Properties to set
|
|
8779
|
+
* @returns AutocompletePlacesResponse instance
|
|
8780
|
+
*/
|
|
8781
|
+
public static create(properties?: google.maps.places.v1.IAutocompletePlacesResponse): google.maps.places.v1.AutocompletePlacesResponse;
|
|
8782
|
+
|
|
8783
|
+
/**
|
|
8784
|
+
* Encodes the specified AutocompletePlacesResponse message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.verify|verify} messages.
|
|
8785
|
+
* @param message AutocompletePlacesResponse message or plain object to encode
|
|
8786
|
+
* @param [writer] Writer to encode to
|
|
8787
|
+
* @returns Writer
|
|
8788
|
+
*/
|
|
8789
|
+
public static encode(message: google.maps.places.v1.IAutocompletePlacesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8790
|
+
|
|
8791
|
+
/**
|
|
8792
|
+
* Encodes the specified AutocompletePlacesResponse message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.verify|verify} messages.
|
|
8793
|
+
* @param message AutocompletePlacesResponse message or plain object to encode
|
|
8794
|
+
* @param [writer] Writer to encode to
|
|
8795
|
+
* @returns Writer
|
|
8796
|
+
*/
|
|
8797
|
+
public static encodeDelimited(message: google.maps.places.v1.IAutocompletePlacesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8798
|
+
|
|
8799
|
+
/**
|
|
8800
|
+
* Decodes an AutocompletePlacesResponse message from the specified reader or buffer.
|
|
8801
|
+
* @param reader Reader or buffer to decode from
|
|
8802
|
+
* @param [length] Message length if known beforehand
|
|
8803
|
+
* @returns AutocompletePlacesResponse
|
|
8804
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8805
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8806
|
+
*/
|
|
8807
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse;
|
|
8808
|
+
|
|
8809
|
+
/**
|
|
8810
|
+
* Decodes an AutocompletePlacesResponse message from the specified reader or buffer, length delimited.
|
|
8811
|
+
* @param reader Reader or buffer to decode from
|
|
8812
|
+
* @returns AutocompletePlacesResponse
|
|
8813
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8814
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8815
|
+
*/
|
|
8816
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse;
|
|
8817
|
+
|
|
8818
|
+
/**
|
|
8819
|
+
* Verifies an AutocompletePlacesResponse message.
|
|
8820
|
+
* @param message Plain object to verify
|
|
8821
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
8822
|
+
*/
|
|
8823
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
8824
|
+
|
|
8825
|
+
/**
|
|
8826
|
+
* Creates an AutocompletePlacesResponse message from a plain object. Also converts values to their respective internal types.
|
|
8827
|
+
* @param object Plain object
|
|
8828
|
+
* @returns AutocompletePlacesResponse
|
|
8829
|
+
*/
|
|
8830
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse;
|
|
8831
|
+
|
|
8832
|
+
/**
|
|
8833
|
+
* Creates a plain object from an AutocompletePlacesResponse message. Also converts values to other types if specified.
|
|
8834
|
+
* @param message AutocompletePlacesResponse
|
|
8835
|
+
* @param [options] Conversion options
|
|
8836
|
+
* @returns Plain object
|
|
8837
|
+
*/
|
|
8838
|
+
public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8839
|
+
|
|
8840
|
+
/**
|
|
8841
|
+
* Converts this AutocompletePlacesResponse to JSON.
|
|
8842
|
+
* @returns JSON object
|
|
8843
|
+
*/
|
|
8844
|
+
public toJSON(): { [k: string]: any };
|
|
8845
|
+
|
|
8846
|
+
/**
|
|
8847
|
+
* Gets the default type url for AutocompletePlacesResponse
|
|
8848
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8849
|
+
* @returns The default type url
|
|
8850
|
+
*/
|
|
8851
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8852
|
+
}
|
|
8853
|
+
|
|
8854
|
+
namespace AutocompletePlacesResponse {
|
|
8855
|
+
|
|
8856
|
+
/** Properties of a Suggestion. */
|
|
8857
|
+
interface ISuggestion {
|
|
8858
|
+
|
|
8859
|
+
/** Suggestion placePrediction */
|
|
8860
|
+
placePrediction?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction|null);
|
|
8861
|
+
|
|
8862
|
+
/** Suggestion queryPrediction */
|
|
8863
|
+
queryPrediction?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction|null);
|
|
8864
|
+
}
|
|
8865
|
+
|
|
8866
|
+
/** Represents a Suggestion. */
|
|
8867
|
+
class Suggestion implements ISuggestion {
|
|
8868
|
+
|
|
8869
|
+
/**
|
|
8870
|
+
* Constructs a new Suggestion.
|
|
8871
|
+
* @param [properties] Properties to set
|
|
8872
|
+
*/
|
|
8873
|
+
constructor(properties?: google.maps.places.v1.AutocompletePlacesResponse.ISuggestion);
|
|
8874
|
+
|
|
8875
|
+
/** Suggestion placePrediction. */
|
|
8876
|
+
public placePrediction?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction|null);
|
|
8877
|
+
|
|
8878
|
+
/** Suggestion queryPrediction. */
|
|
8879
|
+
public queryPrediction?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction|null);
|
|
8880
|
+
|
|
8881
|
+
/** Suggestion kind. */
|
|
8882
|
+
public kind?: ("placePrediction"|"queryPrediction");
|
|
8883
|
+
|
|
8884
|
+
/**
|
|
8885
|
+
* Creates a new Suggestion instance using the specified properties.
|
|
8886
|
+
* @param [properties] Properties to set
|
|
8887
|
+
* @returns Suggestion instance
|
|
8888
|
+
*/
|
|
8889
|
+
public static create(properties?: google.maps.places.v1.AutocompletePlacesResponse.ISuggestion): google.maps.places.v1.AutocompletePlacesResponse.Suggestion;
|
|
8890
|
+
|
|
8891
|
+
/**
|
|
8892
|
+
* Encodes the specified Suggestion message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.verify|verify} messages.
|
|
8893
|
+
* @param message Suggestion message or plain object to encode
|
|
8894
|
+
* @param [writer] Writer to encode to
|
|
8895
|
+
* @returns Writer
|
|
8896
|
+
*/
|
|
8897
|
+
public static encode(message: google.maps.places.v1.AutocompletePlacesResponse.ISuggestion, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8898
|
+
|
|
8899
|
+
/**
|
|
8900
|
+
* Encodes the specified Suggestion message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.verify|verify} messages.
|
|
8901
|
+
* @param message Suggestion message or plain object to encode
|
|
8902
|
+
* @param [writer] Writer to encode to
|
|
8903
|
+
* @returns Writer
|
|
8904
|
+
*/
|
|
8905
|
+
public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesResponse.ISuggestion, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
8906
|
+
|
|
8907
|
+
/**
|
|
8908
|
+
* Decodes a Suggestion message from the specified reader or buffer.
|
|
8909
|
+
* @param reader Reader or buffer to decode from
|
|
8910
|
+
* @param [length] Message length if known beforehand
|
|
8911
|
+
* @returns Suggestion
|
|
8912
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8913
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8914
|
+
*/
|
|
8915
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse.Suggestion;
|
|
8916
|
+
|
|
8917
|
+
/**
|
|
8918
|
+
* Decodes a Suggestion message from the specified reader or buffer, length delimited.
|
|
8919
|
+
* @param reader Reader or buffer to decode from
|
|
8920
|
+
* @returns Suggestion
|
|
8921
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8922
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8923
|
+
*/
|
|
8924
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse.Suggestion;
|
|
8925
|
+
|
|
8926
|
+
/**
|
|
8927
|
+
* Verifies a Suggestion message.
|
|
8928
|
+
* @param message Plain object to verify
|
|
8929
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
8930
|
+
*/
|
|
8931
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
8932
|
+
|
|
8933
|
+
/**
|
|
8934
|
+
* Creates a Suggestion message from a plain object. Also converts values to their respective internal types.
|
|
8935
|
+
* @param object Plain object
|
|
8936
|
+
* @returns Suggestion
|
|
8937
|
+
*/
|
|
8938
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse.Suggestion;
|
|
8939
|
+
|
|
8940
|
+
/**
|
|
8941
|
+
* Creates a plain object from a Suggestion message. Also converts values to other types if specified.
|
|
8942
|
+
* @param message Suggestion
|
|
8943
|
+
* @param [options] Conversion options
|
|
8944
|
+
* @returns Plain object
|
|
8945
|
+
*/
|
|
8946
|
+
public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8947
|
+
|
|
8948
|
+
/**
|
|
8949
|
+
* Converts this Suggestion to JSON.
|
|
8950
|
+
* @returns JSON object
|
|
8951
|
+
*/
|
|
8952
|
+
public toJSON(): { [k: string]: any };
|
|
8953
|
+
|
|
8954
|
+
/**
|
|
8955
|
+
* Gets the default type url for Suggestion
|
|
8956
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
8957
|
+
* @returns The default type url
|
|
8958
|
+
*/
|
|
8959
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
8960
|
+
}
|
|
8961
|
+
|
|
8962
|
+
namespace Suggestion {
|
|
8963
|
+
|
|
8964
|
+
/** Properties of a StringRange. */
|
|
8965
|
+
interface IStringRange {
|
|
8966
|
+
|
|
8967
|
+
/** StringRange startOffset */
|
|
8968
|
+
startOffset?: (number|null);
|
|
8969
|
+
|
|
8970
|
+
/** StringRange endOffset */
|
|
8971
|
+
endOffset?: (number|null);
|
|
8972
|
+
}
|
|
8973
|
+
|
|
8974
|
+
/** Represents a StringRange. */
|
|
8975
|
+
class StringRange implements IStringRange {
|
|
8976
|
+
|
|
8977
|
+
/**
|
|
8978
|
+
* Constructs a new StringRange.
|
|
8979
|
+
* @param [properties] Properties to set
|
|
8980
|
+
*/
|
|
8981
|
+
constructor(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange);
|
|
8982
|
+
|
|
8983
|
+
/** StringRange startOffset. */
|
|
8984
|
+
public startOffset: number;
|
|
8985
|
+
|
|
8986
|
+
/** StringRange endOffset. */
|
|
8987
|
+
public endOffset: number;
|
|
8988
|
+
|
|
8989
|
+
/**
|
|
8990
|
+
* Creates a new StringRange instance using the specified properties.
|
|
8991
|
+
* @param [properties] Properties to set
|
|
8992
|
+
* @returns StringRange instance
|
|
8993
|
+
*/
|
|
8994
|
+
public static create(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange;
|
|
8995
|
+
|
|
8996
|
+
/**
|
|
8997
|
+
* Encodes the specified StringRange message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange.verify|verify} messages.
|
|
8998
|
+
* @param message StringRange message or plain object to encode
|
|
8999
|
+
* @param [writer] Writer to encode to
|
|
9000
|
+
* @returns Writer
|
|
9001
|
+
*/
|
|
9002
|
+
public static encode(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9003
|
+
|
|
9004
|
+
/**
|
|
9005
|
+
* Encodes the specified StringRange message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange.verify|verify} messages.
|
|
9006
|
+
* @param message StringRange message or plain object to encode
|
|
9007
|
+
* @param [writer] Writer to encode to
|
|
9008
|
+
* @returns Writer
|
|
9009
|
+
*/
|
|
9010
|
+
public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9011
|
+
|
|
9012
|
+
/**
|
|
9013
|
+
* Decodes a StringRange message from the specified reader or buffer.
|
|
9014
|
+
* @param reader Reader or buffer to decode from
|
|
9015
|
+
* @param [length] Message length if known beforehand
|
|
9016
|
+
* @returns StringRange
|
|
9017
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9018
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9019
|
+
*/
|
|
9020
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange;
|
|
9021
|
+
|
|
9022
|
+
/**
|
|
9023
|
+
* Decodes a StringRange message from the specified reader or buffer, length delimited.
|
|
9024
|
+
* @param reader Reader or buffer to decode from
|
|
9025
|
+
* @returns StringRange
|
|
9026
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9027
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9028
|
+
*/
|
|
9029
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange;
|
|
9030
|
+
|
|
9031
|
+
/**
|
|
9032
|
+
* Verifies a StringRange message.
|
|
9033
|
+
* @param message Plain object to verify
|
|
9034
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
9035
|
+
*/
|
|
9036
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
9037
|
+
|
|
9038
|
+
/**
|
|
9039
|
+
* Creates a StringRange message from a plain object. Also converts values to their respective internal types.
|
|
9040
|
+
* @param object Plain object
|
|
9041
|
+
* @returns StringRange
|
|
9042
|
+
*/
|
|
9043
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange;
|
|
9044
|
+
|
|
9045
|
+
/**
|
|
9046
|
+
* Creates a plain object from a StringRange message. Also converts values to other types if specified.
|
|
9047
|
+
* @param message StringRange
|
|
9048
|
+
* @param [options] Conversion options
|
|
9049
|
+
* @returns Plain object
|
|
9050
|
+
*/
|
|
9051
|
+
public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StringRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
9052
|
+
|
|
9053
|
+
/**
|
|
9054
|
+
* Converts this StringRange to JSON.
|
|
9055
|
+
* @returns JSON object
|
|
9056
|
+
*/
|
|
9057
|
+
public toJSON(): { [k: string]: any };
|
|
9058
|
+
|
|
9059
|
+
/**
|
|
9060
|
+
* Gets the default type url for StringRange
|
|
9061
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9062
|
+
* @returns The default type url
|
|
9063
|
+
*/
|
|
9064
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9065
|
+
}
|
|
9066
|
+
|
|
9067
|
+
/** Properties of a FormattableText. */
|
|
9068
|
+
interface IFormattableText {
|
|
9069
|
+
|
|
9070
|
+
/** FormattableText text */
|
|
9071
|
+
text?: (string|null);
|
|
9072
|
+
|
|
9073
|
+
/** FormattableText matches */
|
|
9074
|
+
matches?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange[]|null);
|
|
9075
|
+
}
|
|
9076
|
+
|
|
9077
|
+
/** Represents a FormattableText. */
|
|
9078
|
+
class FormattableText implements IFormattableText {
|
|
9079
|
+
|
|
9080
|
+
/**
|
|
9081
|
+
* Constructs a new FormattableText.
|
|
9082
|
+
* @param [properties] Properties to set
|
|
9083
|
+
*/
|
|
9084
|
+
constructor(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText);
|
|
9085
|
+
|
|
9086
|
+
/** FormattableText text. */
|
|
9087
|
+
public text: string;
|
|
9088
|
+
|
|
9089
|
+
/** FormattableText matches. */
|
|
9090
|
+
public matches: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStringRange[];
|
|
9091
|
+
|
|
9092
|
+
/**
|
|
9093
|
+
* Creates a new FormattableText instance using the specified properties.
|
|
9094
|
+
* @param [properties] Properties to set
|
|
9095
|
+
* @returns FormattableText instance
|
|
9096
|
+
*/
|
|
9097
|
+
public static create(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText;
|
|
9098
|
+
|
|
9099
|
+
/**
|
|
9100
|
+
* Encodes the specified FormattableText message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.verify|verify} messages.
|
|
9101
|
+
* @param message FormattableText message or plain object to encode
|
|
9102
|
+
* @param [writer] Writer to encode to
|
|
9103
|
+
* @returns Writer
|
|
9104
|
+
*/
|
|
9105
|
+
public static encode(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9106
|
+
|
|
9107
|
+
/**
|
|
9108
|
+
* Encodes the specified FormattableText message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText.verify|verify} messages.
|
|
9109
|
+
* @param message FormattableText message or plain object to encode
|
|
9110
|
+
* @param [writer] Writer to encode to
|
|
9111
|
+
* @returns Writer
|
|
9112
|
+
*/
|
|
9113
|
+
public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9114
|
+
|
|
9115
|
+
/**
|
|
9116
|
+
* Decodes a FormattableText message from the specified reader or buffer.
|
|
9117
|
+
* @param reader Reader or buffer to decode from
|
|
9118
|
+
* @param [length] Message length if known beforehand
|
|
9119
|
+
* @returns FormattableText
|
|
9120
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9121
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9122
|
+
*/
|
|
9123
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText;
|
|
9124
|
+
|
|
9125
|
+
/**
|
|
9126
|
+
* Decodes a FormattableText message from the specified reader or buffer, length delimited.
|
|
9127
|
+
* @param reader Reader or buffer to decode from
|
|
9128
|
+
* @returns FormattableText
|
|
9129
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9130
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9131
|
+
*/
|
|
9132
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText;
|
|
9133
|
+
|
|
9134
|
+
/**
|
|
9135
|
+
* Verifies a FormattableText message.
|
|
9136
|
+
* @param message Plain object to verify
|
|
9137
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
9138
|
+
*/
|
|
9139
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
9140
|
+
|
|
9141
|
+
/**
|
|
9142
|
+
* Creates a FormattableText message from a plain object. Also converts values to their respective internal types.
|
|
9143
|
+
* @param object Plain object
|
|
9144
|
+
* @returns FormattableText
|
|
9145
|
+
*/
|
|
9146
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText;
|
|
9147
|
+
|
|
9148
|
+
/**
|
|
9149
|
+
* Creates a plain object from a FormattableText message. Also converts values to other types if specified.
|
|
9150
|
+
* @param message FormattableText
|
|
9151
|
+
* @param [options] Conversion options
|
|
9152
|
+
* @returns Plain object
|
|
9153
|
+
*/
|
|
9154
|
+
public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.FormattableText, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
9155
|
+
|
|
9156
|
+
/**
|
|
9157
|
+
* Converts this FormattableText to JSON.
|
|
9158
|
+
* @returns JSON object
|
|
9159
|
+
*/
|
|
9160
|
+
public toJSON(): { [k: string]: any };
|
|
9161
|
+
|
|
9162
|
+
/**
|
|
9163
|
+
* Gets the default type url for FormattableText
|
|
9164
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9165
|
+
* @returns The default type url
|
|
9166
|
+
*/
|
|
9167
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9168
|
+
}
|
|
9169
|
+
|
|
9170
|
+
/** Properties of a StructuredFormat. */
|
|
9171
|
+
interface IStructuredFormat {
|
|
9172
|
+
|
|
9173
|
+
/** StructuredFormat mainText */
|
|
9174
|
+
mainText?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null);
|
|
9175
|
+
|
|
9176
|
+
/** StructuredFormat secondaryText */
|
|
9177
|
+
secondaryText?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null);
|
|
9178
|
+
}
|
|
9179
|
+
|
|
9180
|
+
/** Represents a StructuredFormat. */
|
|
9181
|
+
class StructuredFormat implements IStructuredFormat {
|
|
9182
|
+
|
|
9183
|
+
/**
|
|
9184
|
+
* Constructs a new StructuredFormat.
|
|
9185
|
+
* @param [properties] Properties to set
|
|
9186
|
+
*/
|
|
9187
|
+
constructor(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat);
|
|
9188
|
+
|
|
9189
|
+
/** StructuredFormat mainText. */
|
|
9190
|
+
public mainText?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null);
|
|
9191
|
+
|
|
9192
|
+
/** StructuredFormat secondaryText. */
|
|
9193
|
+
public secondaryText?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null);
|
|
9194
|
+
|
|
9195
|
+
/**
|
|
9196
|
+
* Creates a new StructuredFormat instance using the specified properties.
|
|
9197
|
+
* @param [properties] Properties to set
|
|
9198
|
+
* @returns StructuredFormat instance
|
|
9199
|
+
*/
|
|
9200
|
+
public static create(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat;
|
|
9201
|
+
|
|
9202
|
+
/**
|
|
9203
|
+
* Encodes the specified StructuredFormat message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.verify|verify} messages.
|
|
9204
|
+
* @param message StructuredFormat message or plain object to encode
|
|
9205
|
+
* @param [writer] Writer to encode to
|
|
9206
|
+
* @returns Writer
|
|
9207
|
+
*/
|
|
9208
|
+
public static encode(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9209
|
+
|
|
9210
|
+
/**
|
|
9211
|
+
* Encodes the specified StructuredFormat message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat.verify|verify} messages.
|
|
9212
|
+
* @param message StructuredFormat message or plain object to encode
|
|
9213
|
+
* @param [writer] Writer to encode to
|
|
9214
|
+
* @returns Writer
|
|
9215
|
+
*/
|
|
9216
|
+
public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9217
|
+
|
|
9218
|
+
/**
|
|
9219
|
+
* Decodes a StructuredFormat message from the specified reader or buffer.
|
|
9220
|
+
* @param reader Reader or buffer to decode from
|
|
9221
|
+
* @param [length] Message length if known beforehand
|
|
9222
|
+
* @returns StructuredFormat
|
|
9223
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9224
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9225
|
+
*/
|
|
9226
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat;
|
|
9227
|
+
|
|
9228
|
+
/**
|
|
9229
|
+
* Decodes a StructuredFormat message from the specified reader or buffer, length delimited.
|
|
9230
|
+
* @param reader Reader or buffer to decode from
|
|
9231
|
+
* @returns StructuredFormat
|
|
9232
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9233
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9234
|
+
*/
|
|
9235
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat;
|
|
9236
|
+
|
|
9237
|
+
/**
|
|
9238
|
+
* Verifies a StructuredFormat message.
|
|
9239
|
+
* @param message Plain object to verify
|
|
9240
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
9241
|
+
*/
|
|
9242
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
9243
|
+
|
|
9244
|
+
/**
|
|
9245
|
+
* Creates a StructuredFormat message from a plain object. Also converts values to their respective internal types.
|
|
9246
|
+
* @param object Plain object
|
|
9247
|
+
* @returns StructuredFormat
|
|
9248
|
+
*/
|
|
9249
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat;
|
|
9250
|
+
|
|
9251
|
+
/**
|
|
9252
|
+
* Creates a plain object from a StructuredFormat message. Also converts values to other types if specified.
|
|
9253
|
+
* @param message StructuredFormat
|
|
9254
|
+
* @param [options] Conversion options
|
|
9255
|
+
* @returns Plain object
|
|
9256
|
+
*/
|
|
9257
|
+
public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.StructuredFormat, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
9258
|
+
|
|
9259
|
+
/**
|
|
9260
|
+
* Converts this StructuredFormat to JSON.
|
|
9261
|
+
* @returns JSON object
|
|
9262
|
+
*/
|
|
9263
|
+
public toJSON(): { [k: string]: any };
|
|
9264
|
+
|
|
9265
|
+
/**
|
|
9266
|
+
* Gets the default type url for StructuredFormat
|
|
9267
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9268
|
+
* @returns The default type url
|
|
9269
|
+
*/
|
|
9270
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9271
|
+
}
|
|
9272
|
+
|
|
9273
|
+
/** Properties of a PlacePrediction. */
|
|
9274
|
+
interface IPlacePrediction {
|
|
9275
|
+
|
|
9276
|
+
/** PlacePrediction place */
|
|
9277
|
+
place?: (string|null);
|
|
9278
|
+
|
|
9279
|
+
/** PlacePrediction placeId */
|
|
9280
|
+
placeId?: (string|null);
|
|
9281
|
+
|
|
9282
|
+
/** PlacePrediction text */
|
|
9283
|
+
text?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null);
|
|
9284
|
+
|
|
9285
|
+
/** PlacePrediction structuredFormat */
|
|
9286
|
+
structuredFormat?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat|null);
|
|
9287
|
+
|
|
9288
|
+
/** PlacePrediction types */
|
|
9289
|
+
types?: (string[]|null);
|
|
9290
|
+
|
|
9291
|
+
/** PlacePrediction distanceMeters */
|
|
9292
|
+
distanceMeters?: (number|null);
|
|
9293
|
+
}
|
|
9294
|
+
|
|
9295
|
+
/** Represents a PlacePrediction. */
|
|
9296
|
+
class PlacePrediction implements IPlacePrediction {
|
|
9297
|
+
|
|
9298
|
+
/**
|
|
9299
|
+
* Constructs a new PlacePrediction.
|
|
9300
|
+
* @param [properties] Properties to set
|
|
9301
|
+
*/
|
|
9302
|
+
constructor(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction);
|
|
9303
|
+
|
|
9304
|
+
/** PlacePrediction place. */
|
|
9305
|
+
public place: string;
|
|
9306
|
+
|
|
9307
|
+
/** PlacePrediction placeId. */
|
|
9308
|
+
public placeId: string;
|
|
9309
|
+
|
|
9310
|
+
/** PlacePrediction text. */
|
|
9311
|
+
public text?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null);
|
|
9312
|
+
|
|
9313
|
+
/** PlacePrediction structuredFormat. */
|
|
9314
|
+
public structuredFormat?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat|null);
|
|
9315
|
+
|
|
9316
|
+
/** PlacePrediction types. */
|
|
9317
|
+
public types: string[];
|
|
9318
|
+
|
|
9319
|
+
/** PlacePrediction distanceMeters. */
|
|
9320
|
+
public distanceMeters: number;
|
|
9321
|
+
|
|
9322
|
+
/**
|
|
9323
|
+
* Creates a new PlacePrediction instance using the specified properties.
|
|
9324
|
+
* @param [properties] Properties to set
|
|
9325
|
+
* @returns PlacePrediction instance
|
|
9326
|
+
*/
|
|
9327
|
+
public static create(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction;
|
|
9328
|
+
|
|
9329
|
+
/**
|
|
9330
|
+
* Encodes the specified PlacePrediction message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.verify|verify} messages.
|
|
9331
|
+
* @param message PlacePrediction message or plain object to encode
|
|
9332
|
+
* @param [writer] Writer to encode to
|
|
9333
|
+
* @returns Writer
|
|
9334
|
+
*/
|
|
9335
|
+
public static encode(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9336
|
+
|
|
9337
|
+
/**
|
|
9338
|
+
* Encodes the specified PlacePrediction message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction.verify|verify} messages.
|
|
9339
|
+
* @param message PlacePrediction message or plain object to encode
|
|
9340
|
+
* @param [writer] Writer to encode to
|
|
9341
|
+
* @returns Writer
|
|
9342
|
+
*/
|
|
9343
|
+
public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IPlacePrediction, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9344
|
+
|
|
9345
|
+
/**
|
|
9346
|
+
* Decodes a PlacePrediction message from the specified reader or buffer.
|
|
9347
|
+
* @param reader Reader or buffer to decode from
|
|
9348
|
+
* @param [length] Message length if known beforehand
|
|
9349
|
+
* @returns PlacePrediction
|
|
9350
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9351
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9352
|
+
*/
|
|
9353
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction;
|
|
9354
|
+
|
|
9355
|
+
/**
|
|
9356
|
+
* Decodes a PlacePrediction message from the specified reader or buffer, length delimited.
|
|
9357
|
+
* @param reader Reader or buffer to decode from
|
|
9358
|
+
* @returns PlacePrediction
|
|
9359
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9360
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9361
|
+
*/
|
|
9362
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction;
|
|
9363
|
+
|
|
9364
|
+
/**
|
|
9365
|
+
* Verifies a PlacePrediction message.
|
|
9366
|
+
* @param message Plain object to verify
|
|
9367
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
9368
|
+
*/
|
|
9369
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
9370
|
+
|
|
9371
|
+
/**
|
|
9372
|
+
* Creates a PlacePrediction message from a plain object. Also converts values to their respective internal types.
|
|
9373
|
+
* @param object Plain object
|
|
9374
|
+
* @returns PlacePrediction
|
|
9375
|
+
*/
|
|
9376
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction;
|
|
9377
|
+
|
|
9378
|
+
/**
|
|
9379
|
+
* Creates a plain object from a PlacePrediction message. Also converts values to other types if specified.
|
|
9380
|
+
* @param message PlacePrediction
|
|
9381
|
+
* @param [options] Conversion options
|
|
9382
|
+
* @returns Plain object
|
|
9383
|
+
*/
|
|
9384
|
+
public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.PlacePrediction, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
9385
|
+
|
|
9386
|
+
/**
|
|
9387
|
+
* Converts this PlacePrediction to JSON.
|
|
9388
|
+
* @returns JSON object
|
|
9389
|
+
*/
|
|
9390
|
+
public toJSON(): { [k: string]: any };
|
|
9391
|
+
|
|
9392
|
+
/**
|
|
9393
|
+
* Gets the default type url for PlacePrediction
|
|
9394
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9395
|
+
* @returns The default type url
|
|
9396
|
+
*/
|
|
9397
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9398
|
+
}
|
|
9399
|
+
|
|
9400
|
+
/** Properties of a QueryPrediction. */
|
|
9401
|
+
interface IQueryPrediction {
|
|
9402
|
+
|
|
9403
|
+
/** QueryPrediction text */
|
|
9404
|
+
text?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null);
|
|
9405
|
+
|
|
9406
|
+
/** QueryPrediction structuredFormat */
|
|
9407
|
+
structuredFormat?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat|null);
|
|
9408
|
+
}
|
|
9409
|
+
|
|
9410
|
+
/** Represents a QueryPrediction. */
|
|
9411
|
+
class QueryPrediction implements IQueryPrediction {
|
|
9412
|
+
|
|
9413
|
+
/**
|
|
9414
|
+
* Constructs a new QueryPrediction.
|
|
9415
|
+
* @param [properties] Properties to set
|
|
9416
|
+
*/
|
|
9417
|
+
constructor(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction);
|
|
9418
|
+
|
|
9419
|
+
/** QueryPrediction text. */
|
|
9420
|
+
public text?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IFormattableText|null);
|
|
9421
|
+
|
|
9422
|
+
/** QueryPrediction structuredFormat. */
|
|
9423
|
+
public structuredFormat?: (google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IStructuredFormat|null);
|
|
9424
|
+
|
|
9425
|
+
/**
|
|
9426
|
+
* Creates a new QueryPrediction instance using the specified properties.
|
|
9427
|
+
* @param [properties] Properties to set
|
|
9428
|
+
* @returns QueryPrediction instance
|
|
9429
|
+
*/
|
|
9430
|
+
public static create(properties?: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction;
|
|
9431
|
+
|
|
9432
|
+
/**
|
|
9433
|
+
* Encodes the specified QueryPrediction message. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.verify|verify} messages.
|
|
9434
|
+
* @param message QueryPrediction message or plain object to encode
|
|
9435
|
+
* @param [writer] Writer to encode to
|
|
9436
|
+
* @returns Writer
|
|
9437
|
+
*/
|
|
9438
|
+
public static encode(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9439
|
+
|
|
9440
|
+
/**
|
|
9441
|
+
* Encodes the specified QueryPrediction message, length delimited. Does not implicitly {@link google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction.verify|verify} messages.
|
|
9442
|
+
* @param message QueryPrediction message or plain object to encode
|
|
9443
|
+
* @param [writer] Writer to encode to
|
|
9444
|
+
* @returns Writer
|
|
9445
|
+
*/
|
|
9446
|
+
public static encodeDelimited(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.IQueryPrediction, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9447
|
+
|
|
9448
|
+
/**
|
|
9449
|
+
* Decodes a QueryPrediction message from the specified reader or buffer.
|
|
9450
|
+
* @param reader Reader or buffer to decode from
|
|
9451
|
+
* @param [length] Message length if known beforehand
|
|
9452
|
+
* @returns QueryPrediction
|
|
9453
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9454
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9455
|
+
*/
|
|
9456
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction;
|
|
9457
|
+
|
|
9458
|
+
/**
|
|
9459
|
+
* Decodes a QueryPrediction message from the specified reader or buffer, length delimited.
|
|
9460
|
+
* @param reader Reader or buffer to decode from
|
|
9461
|
+
* @returns QueryPrediction
|
|
9462
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9463
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9464
|
+
*/
|
|
9465
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction;
|
|
9466
|
+
|
|
9467
|
+
/**
|
|
9468
|
+
* Verifies a QueryPrediction message.
|
|
9469
|
+
* @param message Plain object to verify
|
|
9470
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
9471
|
+
*/
|
|
9472
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
9473
|
+
|
|
9474
|
+
/**
|
|
9475
|
+
* Creates a QueryPrediction message from a plain object. Also converts values to their respective internal types.
|
|
9476
|
+
* @param object Plain object
|
|
9477
|
+
* @returns QueryPrediction
|
|
9478
|
+
*/
|
|
9479
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction;
|
|
9480
|
+
|
|
9481
|
+
/**
|
|
9482
|
+
* Creates a plain object from a QueryPrediction message. Also converts values to other types if specified.
|
|
9483
|
+
* @param message QueryPrediction
|
|
9484
|
+
* @param [options] Conversion options
|
|
9485
|
+
* @returns Plain object
|
|
9486
|
+
*/
|
|
9487
|
+
public static toObject(message: google.maps.places.v1.AutocompletePlacesResponse.Suggestion.QueryPrediction, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
9488
|
+
|
|
9489
|
+
/**
|
|
9490
|
+
* Converts this QueryPrediction to JSON.
|
|
9491
|
+
* @returns JSON object
|
|
9492
|
+
*/
|
|
9493
|
+
public toJSON(): { [k: string]: any };
|
|
9494
|
+
|
|
9495
|
+
/**
|
|
9496
|
+
* Gets the default type url for QueryPrediction
|
|
9497
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9498
|
+
* @returns The default type url
|
|
9499
|
+
*/
|
|
9500
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9501
|
+
}
|
|
9502
|
+
}
|
|
9503
|
+
}
|
|
8248
9504
|
}
|
|
8249
9505
|
}
|
|
8250
9506
|
}
|