@googlemaps/places
Version:
Places API (New) client for Node.js
1,178 lines (962 loc) • 732 kB
TypeScript
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import type {protobuf as $protobuf} from "google-gax";
import Long = require("long");
/** Namespace google. */
export namespace google {
/** Namespace geo. */
namespace geo {
/** Namespace type. */
namespace type {
/** Properties of a Viewport. */
interface IViewport {
/** Viewport low */
low?: (google.type.ILatLng|null);
/** Viewport high */
high?: (google.type.ILatLng|null);
}
/** Represents a Viewport. */
class Viewport implements IViewport {
/**
* Constructs a new Viewport.
* @param [properties] Properties to set
*/
constructor(properties?: google.geo.type.IViewport);
/** Viewport low. */
public low?: (google.type.ILatLng|null);
/** Viewport high. */
public high?: (google.type.ILatLng|null);
/**
* Creates a new Viewport instance using the specified properties.
* @param [properties] Properties to set
* @returns Viewport instance
*/
public static create(properties?: google.geo.type.IViewport): google.geo.type.Viewport;
/**
* Encodes the specified Viewport message. Does not implicitly {@link google.geo.type.Viewport.verify|verify} messages.
* @param message Viewport message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.geo.type.IViewport, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Viewport message, length delimited. Does not implicitly {@link google.geo.type.Viewport.verify|verify} messages.
* @param message Viewport message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.geo.type.IViewport, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Viewport message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Viewport
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.geo.type.Viewport;
/**
* Decodes a Viewport message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Viewport
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.geo.type.Viewport;
/**
* Verifies a Viewport message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Viewport message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Viewport
*/
public static fromObject(object: { [k: string]: any }): google.geo.type.Viewport;
/**
* Creates a plain object from a Viewport message. Also converts values to other types if specified.
* @param message Viewport
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.geo.type.Viewport, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Viewport to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Viewport
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
}
/** Namespace type. */
namespace type {
/** Properties of a LatLng. */
interface ILatLng {
/** LatLng latitude */
latitude?: (number|null);
/** LatLng longitude */
longitude?: (number|null);
}
/** Represents a LatLng. */
class LatLng implements ILatLng {
/**
* Constructs a new LatLng.
* @param [properties] Properties to set
*/
constructor(properties?: google.type.ILatLng);
/** LatLng latitude. */
public latitude: number;
/** LatLng longitude. */
public longitude: number;
/**
* Creates a new LatLng instance using the specified properties.
* @param [properties] Properties to set
* @returns LatLng instance
*/
public static create(properties?: google.type.ILatLng): google.type.LatLng;
/**
* Encodes the specified LatLng message. Does not implicitly {@link google.type.LatLng.verify|verify} messages.
* @param message LatLng message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.type.ILatLng, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified LatLng message, length delimited. Does not implicitly {@link google.type.LatLng.verify|verify} messages.
* @param message LatLng message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.type.ILatLng, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a LatLng message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns LatLng
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.LatLng;
/**
* Decodes a LatLng message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns LatLng
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.LatLng;
/**
* Verifies a LatLng message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a LatLng message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns LatLng
*/
public static fromObject(object: { [k: string]: any }): google.type.LatLng;
/**
* Creates a plain object from a LatLng message. Also converts values to other types if specified.
* @param message LatLng
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.type.LatLng, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this LatLng to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for LatLng
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a LocalizedText. */
interface ILocalizedText {
/** LocalizedText text */
text?: (string|null);
/** LocalizedText languageCode */
languageCode?: (string|null);
}
/** Represents a LocalizedText. */
class LocalizedText implements ILocalizedText {
/**
* Constructs a new LocalizedText.
* @param [properties] Properties to set
*/
constructor(properties?: google.type.ILocalizedText);
/** LocalizedText text. */
public text: string;
/** LocalizedText languageCode. */
public languageCode: string;
/**
* Creates a new LocalizedText instance using the specified properties.
* @param [properties] Properties to set
* @returns LocalizedText instance
*/
public static create(properties?: google.type.ILocalizedText): google.type.LocalizedText;
/**
* Encodes the specified LocalizedText message. Does not implicitly {@link google.type.LocalizedText.verify|verify} messages.
* @param message LocalizedText message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.type.ILocalizedText, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified LocalizedText message, length delimited. Does not implicitly {@link google.type.LocalizedText.verify|verify} messages.
* @param message LocalizedText message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.type.ILocalizedText, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a LocalizedText message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns LocalizedText
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.LocalizedText;
/**
* Decodes a LocalizedText message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns LocalizedText
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.LocalizedText;
/**
* Verifies a LocalizedText message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a LocalizedText message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns LocalizedText
*/
public static fromObject(object: { [k: string]: any }): google.type.LocalizedText;
/**
* Creates a plain object from a LocalizedText message. Also converts values to other types if specified.
* @param message LocalizedText
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.type.LocalizedText, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this LocalizedText to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for LocalizedText
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a Money. */
interface IMoney {
/** Money currencyCode */
currencyCode?: (string|null);
/** Money units */
units?: (number|Long|string|null);
/** Money nanos */
nanos?: (number|null);
}
/** Represents a Money. */
class Money implements IMoney {
/**
* Constructs a new Money.
* @param [properties] Properties to set
*/
constructor(properties?: google.type.IMoney);
/** Money currencyCode. */
public currencyCode: string;
/** Money units. */
public units: (number|Long|string);
/** Money nanos. */
public nanos: number;
/**
* Creates a new Money instance using the specified properties.
* @param [properties] Properties to set
* @returns Money instance
*/
public static create(properties?: google.type.IMoney): google.type.Money;
/**
* Encodes the specified Money message. Does not implicitly {@link google.type.Money.verify|verify} messages.
* @param message Money message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.type.IMoney, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Money message, length delimited. Does not implicitly {@link google.type.Money.verify|verify} messages.
* @param message Money message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.type.IMoney, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Money message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Money
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.Money;
/**
* Decodes a Money message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Money
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.Money;
/**
* Verifies a Money message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Money message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Money
*/
public static fromObject(object: { [k: string]: any }): google.type.Money;
/**
* Creates a plain object from a Money message. Also converts values to other types if specified.
* @param message Money
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.type.Money, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Money to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Money
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a Date. */
interface IDate {
/** Date year */
year?: (number|null);
/** Date month */
month?: (number|null);
/** Date day */
day?: (number|null);
}
/** Represents a Date. */
class Date implements IDate {
/**
* Constructs a new Date.
* @param [properties] Properties to set
*/
constructor(properties?: google.type.IDate);
/** Date year. */
public year: number;
/** Date month. */
public month: number;
/** Date day. */
public day: number;
/**
* Creates a new Date instance using the specified properties.
* @param [properties] Properties to set
* @returns Date instance
*/
public static create(properties?: google.type.IDate): google.type.Date;
/**
* Encodes the specified Date message. Does not implicitly {@link google.type.Date.verify|verify} messages.
* @param message Date message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.type.IDate, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Date message, length delimited. Does not implicitly {@link google.type.Date.verify|verify} messages.
* @param message Date message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.type.IDate, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Date message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Date
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.Date;
/**
* Decodes a Date message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Date
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.Date;
/**
* Verifies a Date message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Date message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Date
*/
public static fromObject(object: { [k: string]: any }): google.type.Date;
/**
* Creates a plain object from a Date message. Also converts values to other types if specified.
* @param message Date
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.type.Date, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Date to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Date
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a DateTime. */
interface IDateTime {
/** DateTime year */
year?: (number|null);
/** DateTime month */
month?: (number|null);
/** DateTime day */
day?: (number|null);
/** DateTime hours */
hours?: (number|null);
/** DateTime minutes */
minutes?: (number|null);
/** DateTime seconds */
seconds?: (number|null);
/** DateTime nanos */
nanos?: (number|null);
/** DateTime utcOffset */
utcOffset?: (google.protobuf.IDuration|null);
/** DateTime timeZone */
timeZone?: (google.type.ITimeZone|null);
}
/** Represents a DateTime. */
class DateTime implements IDateTime {
/**
* Constructs a new DateTime.
* @param [properties] Properties to set
*/
constructor(properties?: google.type.IDateTime);
/** DateTime year. */
public year: number;
/** DateTime month. */
public month: number;
/** DateTime day. */
public day: number;
/** DateTime hours. */
public hours: number;
/** DateTime minutes. */
public minutes: number;
/** DateTime seconds. */
public seconds: number;
/** DateTime nanos. */
public nanos: number;
/** DateTime utcOffset. */
public utcOffset?: (google.protobuf.IDuration|null);
/** DateTime timeZone. */
public timeZone?: (google.type.ITimeZone|null);
/** DateTime timeOffset. */
public timeOffset?: ("utcOffset"|"timeZone");
/**
* Creates a new DateTime instance using the specified properties.
* @param [properties] Properties to set
* @returns DateTime instance
*/
public static create(properties?: google.type.IDateTime): google.type.DateTime;
/**
* Encodes the specified DateTime message. Does not implicitly {@link google.type.DateTime.verify|verify} messages.
* @param message DateTime message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.type.IDateTime, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified DateTime message, length delimited. Does not implicitly {@link google.type.DateTime.verify|verify} messages.
* @param message DateTime message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.type.IDateTime, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a DateTime message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns DateTime
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.DateTime;
/**
* Decodes a DateTime message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns DateTime
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.DateTime;
/**
* Verifies a DateTime message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a DateTime message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns DateTime
*/
public static fromObject(object: { [k: string]: any }): google.type.DateTime;
/**
* Creates a plain object from a DateTime message. Also converts values to other types if specified.
* @param message DateTime
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.type.DateTime, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this DateTime to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for DateTime
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a TimeZone. */
interface ITimeZone {
/** TimeZone id */
id?: (string|null);
/** TimeZone version */
version?: (string|null);
}
/** Represents a TimeZone. */
class TimeZone implements ITimeZone {
/**
* Constructs a new TimeZone.
* @param [properties] Properties to set
*/
constructor(properties?: google.type.ITimeZone);
/** TimeZone id. */
public id: string;
/** TimeZone version. */
public version: string;
/**
* Creates a new TimeZone instance using the specified properties.
* @param [properties] Properties to set
* @returns TimeZone instance
*/
public static create(properties?: google.type.ITimeZone): google.type.TimeZone;
/**
* Encodes the specified TimeZone message. Does not implicitly {@link google.type.TimeZone.verify|verify} messages.
* @param message TimeZone message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.type.ITimeZone, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified TimeZone message, length delimited. Does not implicitly {@link google.type.TimeZone.verify|verify} messages.
* @param message TimeZone message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.type.ITimeZone, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a TimeZone message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns TimeZone
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.TimeZone;
/**
* Decodes a TimeZone message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns TimeZone
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.TimeZone;
/**
* Verifies a TimeZone message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a TimeZone message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns TimeZone
*/
public static fromObject(object: { [k: string]: any }): google.type.TimeZone;
/**
* Creates a plain object from a TimeZone message. Also converts values to other types if specified.
* @param message TimeZone
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.type.TimeZone, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this TimeZone to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for TimeZone
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a PostalAddress. */
interface IPostalAddress {
/** PostalAddress revision */
revision?: (number|null);
/** PostalAddress regionCode */
regionCode?: (string|null);
/** PostalAddress languageCode */
languageCode?: (string|null);
/** PostalAddress postalCode */
postalCode?: (string|null);
/** PostalAddress sortingCode */
sortingCode?: (string|null);
/** PostalAddress administrativeArea */
administrativeArea?: (string|null);
/** PostalAddress locality */
locality?: (string|null);
/** PostalAddress sublocality */
sublocality?: (string|null);
/** PostalAddress addressLines */
addressLines?: (string[]|null);
/** PostalAddress recipients */
recipients?: (string[]|null);
/** PostalAddress organization */
organization?: (string|null);
}
/** Represents a PostalAddress. */
class PostalAddress implements IPostalAddress {
/**
* Constructs a new PostalAddress.
* @param [properties] Properties to set
*/
constructor(properties?: google.type.IPostalAddress);
/** PostalAddress revision. */
public revision: number;
/** PostalAddress regionCode. */
public regionCode: string;
/** PostalAddress languageCode. */
public languageCode: string;
/** PostalAddress postalCode. */
public postalCode: string;
/** PostalAddress sortingCode. */
public sortingCode: string;
/** PostalAddress administrativeArea. */
public administrativeArea: string;
/** PostalAddress locality. */
public locality: string;
/** PostalAddress sublocality. */
public sublocality: string;
/** PostalAddress addressLines. */
public addressLines: string[];
/** PostalAddress recipients. */
public recipients: string[];
/** PostalAddress organization. */
public organization: string;
/**
* Creates a new PostalAddress instance using the specified properties.
* @param [properties] Properties to set
* @returns PostalAddress instance
*/
public static create(properties?: google.type.IPostalAddress): google.type.PostalAddress;
/**
* Encodes the specified PostalAddress message. Does not implicitly {@link google.type.PostalAddress.verify|verify} messages.
* @param message PostalAddress message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.type.IPostalAddress, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified PostalAddress message, length delimited. Does not implicitly {@link google.type.PostalAddress.verify|verify} messages.
* @param message PostalAddress message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.type.IPostalAddress, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a PostalAddress message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns PostalAddress
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.type.PostalAddress;
/**
* Decodes a PostalAddress message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns PostalAddress
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.type.PostalAddress;
/**
* Verifies a PostalAddress message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a PostalAddress message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns PostalAddress
*/
public static fromObject(object: { [k: string]: any }): google.type.PostalAddress;
/**
* Creates a plain object from a PostalAddress message. Also converts values to other types if specified.
* @param message PostalAddress
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.type.PostalAddress, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this PostalAddress to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for PostalAddress
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
/** Namespace maps. */
namespace maps {
/** Namespace places. */
namespace places {
/** Namespace v1. */
namespace v1 {
/** Properties of an AuthorAttribution. */
interface IAuthorAttribution {
/** AuthorAttribution displayName */
displayName?: (string|null);
/** AuthorAttribution uri */
uri?: (string|null);
/** AuthorAttribution photoUri */
photoUri?: (string|null);
}
/** Represents an AuthorAttribution. */
class AuthorAttribution implements IAuthorAttribution {
/**
* Constructs a new AuthorAttribution.
* @param [properties] Properties to set
*/
constructor(properties?: google.maps.places.v1.IAuthorAttribution);
/** AuthorAttribution displayName. */
public displayName: string;
/** AuthorAttribution uri. */
public uri: string;
/** AuthorAttribution photoUri. */
public photoUri: string;
/**
* Creates a new AuthorAttribution instance using the specified properties.
* @param [properties] Properties to set
* @returns AuthorAttribution instance
*/
public static create(properties?: google.maps.places.v1.IAuthorAttribution): google.maps.places.v1.AuthorAttribution;
/**
* Encodes the specified AuthorAttribution message. Does not implicitly {@link google.maps.places.v1.AuthorAttribution.verify|verify} messages.
* @param message AuthorAttribution message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.maps.places.v1.IAuthorAttribution, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AuthorAttribution message, length delimited. Does not implicitly {@link google.maps.places.v1.AuthorAttribution.verify|verify} messages.
* @param message AuthorAttribution message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.maps.places.v1.IAuthorAttribution, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an AuthorAttribution message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AuthorAttribution
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.AuthorAttribution;
/**
* Decodes an AuthorAttribution message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AuthorAttribution
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.AuthorAttribution;
/**
* Verifies an AuthorAttribution message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates an AuthorAttribution message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AuthorAttribution
*/
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.AuthorAttribution;
/**
* Creates a plain object from an AuthorAttribution message. Also converts values to other types if specified.
* @param message AuthorAttribution
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.maps.places.v1.AuthorAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AuthorAttribution to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AuthorAttribution
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a ContentBlock. */
interface IContentBlock {
/** ContentBlock topic */
topic?: (string|null);
/** ContentBlock content */
content?: (google.type.ILocalizedText|null);
/** ContentBlock references */
references?: (google.maps.places.v1.IReferences|null);
}
/** Represents a ContentBlock. */
class ContentBlock implements IContentBlock {
/**
* Constructs a new ContentBlock.
* @param [properties] Properties to set
*/
constructor(properties?: google.maps.places.v1.IContentBlock);
/** ContentBlock topic. */
public topic: string;
/** ContentBlock content. */
public content?: (google.type.ILocalizedText|null);
/** ContentBlock references. */
public references?: (google.maps.places.v1.IReferences|null);
/**
* Creates a new ContentBlock instance using the specified properties.
* @param [properties] Properties to set
* @returns ContentBlock instance
*/
public static create(properties?: google.maps.places.v1.IContentBlock): google.maps.places.v1.ContentBlock;
/**
* Encodes the specified ContentBlock message. Does not implicitly {@link google.maps.places.v1.ContentBlock.verify|verify} messages.
* @param message ContentBlock message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.maps.places.v1.IContentBlock, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ContentBlock message, length delimited. Does not implicitly {@link google.maps.places.v1.ContentBlock.verify|verify} messages.
* @param message ContentBlock message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.maps.places.v1.IContentBlock, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ContentBlock message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ContentBlock
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.ContentBlock;
/**
* Decodes a ContentBlock message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ContentBlock
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.ContentBlock;
/**
* Verifies a ContentBlock message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a ContentBlock message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ContentBlock
*/
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.ContentBlock;
/**
* Creates a plain object from a ContentBlock message. Also converts values to other types if specified.
* @param message ContentBlock
* @param [options] Conversion options
* @returns Plain object
*/
public