Class protos.google.shopping.merchant.lfp.v1beta.LfpStore (0.2.0)

Represents a LfpStore.

Package

@google-shopping/lfp

Constructors

(constructor)(properties)

constructor(properties?: google.shopping.merchant.lfp.v1beta.ILfpStore);

Constructs a new LfpStore.

Parameter
Name Description
properties ILfpStore

Properties to set

Properties

_matchingStateHint

public _matchingStateHint?: "matchingStateHint";

LfpStore _matchingStateHint.

_phoneNumber

public _phoneNumber?: "phoneNumber";

LfpStore _phoneNumber.

_placeId

public _placeId?: "placeId";

LfpStore _placeId.

_storeName

public _storeName?: "storeName";

LfpStore _storeName.

_websiteUri

public _websiteUri?: "websiteUri";

LfpStore _websiteUri.

gcidCategory

public gcidCategory: string[];

LfpStore gcidCategory.

matchingState

public matchingState: (google.shopping.merchant.lfp.v1beta.LfpStore.StoreMatchingState|keyof typeof google.shopping.merchant.lfp.v1beta.LfpStore.StoreMatchingState);

LfpStore matchingState.

matchingStateHint

public matchingStateHint?: (string|null);

LfpStore matchingStateHint.

name

public name: string;

LfpStore name.

phoneNumber

public phoneNumber?: (string|null);

LfpStore phoneNumber.

placeId

public placeId?: (string|null);

LfpStore placeId.

storeAddress

public storeAddress: string;

LfpStore storeAddress.

storeCode

public storeCode: string;

LfpStore storeCode.

storeName

public storeName?: (string|null);

LfpStore storeName.

targetAccount

public targetAccount: (number|Long|string);

LfpStore targetAccount.

websiteUri

public websiteUri?: (string|null);

LfpStore websiteUri.

Methods

create(properties)

public static create(properties?: google.shopping.merchant.lfp.v1beta.ILfpStore): google.shopping.merchant.lfp.v1beta.LfpStore;

Creates a new LfpStore instance using the specified properties.

Parameter
Name Description
properties ILfpStore

Properties to set

Returns
Type Description
LfpStore

LfpStore instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.lfp.v1beta.LfpStore;

Decodes a LfpStore 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
LfpStore

LfpStore

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.lfp.v1beta.LfpStore;

Decodes a LfpStore message from the specified reader or buffer, length delimited.

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
LfpStore

LfpStore

encode(message, writer)

public static encode(message: google.shopping.merchant.lfp.v1beta.ILfpStore, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified LfpStore message. Does not implicitly messages.

Parameters
Name Description
message ILfpStore

LfpStore 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.shopping.merchant.lfp.v1beta.ILfpStore, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified LfpStore message, length delimited. Does not implicitly messages.

Parameters
Name Description
message ILfpStore

LfpStore 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.shopping.merchant.lfp.v1beta.LfpStore;

Creates a LfpStore 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
LfpStore

LfpStore

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for LfpStore

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 LfpStore to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.shopping.merchant.lfp.v1beta.LfpStore, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a LfpStore message. Also converts values to other types if specified.

Parameters
Name Description
message LfpStore

LfpStore

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 LfpStore message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not