Class protos.google.cloud.retail.v2alpha.MerchantCenterAccountLink (3.1.0)

Represents a MerchantCenterAccountLink.

Package

@google-cloud/retail

Constructors

constructor(properties?: google.cloud.retail.v2alpha.IMerchantCenterAccountLink);

Constructs a new MerchantCenterAccountLink.

Parameter
NameDescription
properties IMerchantCenterAccountLink

Properties to set

Properties

public branchId: string;

MerchantCenterAccountLink branchId.

public feedFilters: google.cloud.retail.v2alpha.MerchantCenterAccountLink.IMerchantCenterFeedFilter[];

MerchantCenterAccountLink feedFilters.

public feedLabel: string;

MerchantCenterAccountLink feedLabel.

public id: string;

MerchantCenterAccountLink id.

public languageCode: string;

MerchantCenterAccountLink languageCode.

public merchantCenterAccountId: (number|Long|string);

MerchantCenterAccountLink merchantCenterAccountId.

public name: string;

MerchantCenterAccountLink name.

public projectId: string;

MerchantCenterAccountLink projectId.

public state: (google.cloud.retail.v2alpha.MerchantCenterAccountLink.State|keyof typeof google.cloud.retail.v2alpha.MerchantCenterAccountLink.State);

MerchantCenterAccountLink state.

Methods

public static create(properties?: google.cloud.retail.v2alpha.IMerchantCenterAccountLink): google.cloud.retail.v2alpha.MerchantCenterAccountLink;

Creates a new MerchantCenterAccountLink instance using the specified properties.

Parameter
NameDescription
properties IMerchantCenterAccountLink

Properties to set

Returns
TypeDescription
MerchantCenterAccountLink

MerchantCenterAccountLink instance

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.retail.v2alpha.MerchantCenterAccountLink;

Decodes a MerchantCenterAccountLink message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
MerchantCenterAccountLink

MerchantCenterAccountLink

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.retail.v2alpha.MerchantCenterAccountLink;

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
MerchantCenterAccountLink

MerchantCenterAccountLink

public static encode(message: google.cloud.retail.v2alpha.IMerchantCenterAccountLink, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified MerchantCenterAccountLink message. Does not implicitly messages.

Parameters
NameDescription
message IMerchantCenterAccountLink

MerchantCenterAccountLink message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

public static encodeDelimited(message: google.cloud.retail.v2alpha.IMerchantCenterAccountLink, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IMerchantCenterAccountLink

MerchantCenterAccountLink message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

public static fromObject(object: { [k: string]: any }): google.cloud.retail.v2alpha.MerchantCenterAccountLink;

Creates a MerchantCenterAccountLink message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
MerchantCenterAccountLink

MerchantCenterAccountLink

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

Gets the default type url for MerchantCenterAccountLink

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

public toJSON(): { [k: string]: any };

Converts this MerchantCenterAccountLink to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

public static toObject(message: google.cloud.retail.v2alpha.MerchantCenterAccountLink, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
NameDescription
message MerchantCenterAccountLink

MerchantCenterAccountLink

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

public static verify(message: { [k: string]: any }): (string|null);

Verifies a MerchantCenterAccountLink message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not