Represents a SearchTextRequest.
Package
@googlemaps/placesConstructors
(constructor)(properties)
constructor(properties?: google.maps.places.v1.ISearchTextRequest);Constructs a new SearchTextRequest.
| Parameter | |
|---|---|
| Name | Description |
properties |
ISearchTextRequest
Properties to set |
Properties
evOptions
public evOptions?: (google.maps.places.v1.SearchTextRequest.IEVOptions|null);SearchTextRequest evOptions.
includedType
public includedType: string;SearchTextRequest includedType.
includeFutureOpeningBusinesses
public includeFutureOpeningBusinesses: boolean;SearchTextRequest includeFutureOpeningBusinesses.
includePureServiceAreaBusinesses
public includePureServiceAreaBusinesses: boolean;SearchTextRequest includePureServiceAreaBusinesses.
languageCode
public languageCode: string;SearchTextRequest languageCode.
locationBias
public locationBias?: (google.maps.places.v1.SearchTextRequest.ILocationBias|null);SearchTextRequest locationBias.
locationRestriction
public locationRestriction?: (google.maps.places.v1.SearchTextRequest.ILocationRestriction|null);SearchTextRequest locationRestriction.
maxResultCount
public maxResultCount: number;SearchTextRequest maxResultCount.
minRating
public minRating: number;SearchTextRequest minRating.
openNow
public openNow: boolean;SearchTextRequest openNow.
priceLevels
public priceLevels: google.maps.places.v1.PriceLevel[];SearchTextRequest priceLevels.
rankPreference
public rankPreference: (google.maps.places.v1.SearchTextRequest.RankPreference|keyof typeof google.maps.places.v1.SearchTextRequest.RankPreference);SearchTextRequest rankPreference.
regionCode
public regionCode: string;SearchTextRequest regionCode.
routingParameters
public routingParameters?: (google.maps.places.v1.IRoutingParameters|null);SearchTextRequest routingParameters.
searchAlongRouteParameters
public searchAlongRouteParameters?: (google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null);SearchTextRequest searchAlongRouteParameters.
strictTypeFiltering
public strictTypeFiltering: boolean;SearchTextRequest strictTypeFiltering.
textQuery
public textQuery: string;SearchTextRequest textQuery.
Methods
create(properties)
public static create(properties?: google.maps.places.v1.ISearchTextRequest): google.maps.places.v1.SearchTextRequest;Creates a new SearchTextRequest instance using the specified properties.
| Parameter | |
|---|---|
| Name | Description |
properties |
ISearchTextRequest
Properties to set |
| Returns | |
|---|---|
| Type | Description |
SearchTextRequest |
SearchTextRequest instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.SearchTextRequest;Decodes a SearchTextRequest message from the specified reader or buffer.
| Parameters | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
| Returns | |
|---|---|
| Type | Description |
SearchTextRequest |
SearchTextRequest |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.SearchTextRequest;Decodes a SearchTextRequest message from the specified reader or buffer, length delimited.
| Parameter | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
| Returns | |
|---|---|
| Type | Description |
SearchTextRequest |
SearchTextRequest |
encode(message, writer)
public static encode(message: google.maps.places.v1.ISearchTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified SearchTextRequest message. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
ISearchTextRequest
SearchTextRequest message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
| Returns | |
|---|---|
| Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.maps.places.v1.ISearchTextRequest, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified SearchTextRequest message, length delimited. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
ISearchTextRequest
SearchTextRequest message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
| Returns | |
|---|---|
| Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.SearchTextRequest;Creates a SearchTextRequest message from a plain object. Also converts values to their respective internal types.
| Parameter | |
|---|---|
| Name | Description |
object |
{ [k: string]: any }
Plain object |
| Returns | |
|---|---|
| Type | Description |
SearchTextRequest |
SearchTextRequest |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for SearchTextRequest
| Parameter | |
|---|---|
| Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
| Returns | |
|---|---|
| Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };Converts this SearchTextRequest to JSON.
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.maps.places.v1.SearchTextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };Creates a plain object from a SearchTextRequest message. Also converts values to other types if specified.
| Parameters | |
|---|---|
| Name | Description |
message |
SearchTextRequest
SearchTextRequest |
options |
$protobuf.IConversionOptions
Conversion options |
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);Verifies a SearchTextRequest message.
| Parameter | |
|---|---|
| Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
| Returns | |
|---|---|
| Type | Description |
(string|null) |
|