Class protos.google.shopping.merchant.accounts.v1beta.Program.Requirement (2.2.0)

Represents a Requirement.

Package

@google-shopping/accounts

Constructors

(constructor)(properties)

constructor(properties?: google.shopping.merchant.accounts.v1beta.Program.IRequirement);

Constructs a new Requirement.

Parameter
Name Description
properties IRequirement

Properties to set

Properties

affectedRegionCodes

public affectedRegionCodes: string[];

Requirement affectedRegionCodes.

documentationUri

public documentationUri: string;

Requirement documentationUri.

title

public title: string;

Requirement title.

Methods

create(properties)

public static create(properties?: google.shopping.merchant.accounts.v1beta.Program.IRequirement): google.shopping.merchant.accounts.v1beta.Program.Requirement;

Creates a new Requirement instance using the specified properties.

Parameter
Name Description
properties IRequirement

Properties to set

Returns
Type Description
Requirement

Requirement instance

decode(reader, length)

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

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

Requirement

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.Program.Requirement;

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
Requirement

Requirement

encode(message, writer)

public static encode(message: google.shopping.merchant.accounts.v1beta.Program.IRequirement, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified Requirement message. Does not implicitly messages.

Parameters
Name Description
message IRequirement

Requirement 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.accounts.v1beta.Program.IRequirement, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IRequirement

Requirement 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.accounts.v1beta.Program.Requirement;

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

Requirement

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for Requirement

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

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

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message Requirement

Requirement

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 Requirement 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