Skip to main content

Class: StatusPSA

Defined in: WAProto/index.d.ts:40146

Represents a StatusPSA.

Implements

Constructors

new StatusPSA()

new StatusPSA(properties?): StatusPSA

Defined in: WAProto/index.d.ts:40152

Constructs a new StatusPSA.

Parameters

properties?

IStatusPSA

Properties to set

Returns

StatusPSA

Properties

campaignExpirationTimestamp?

optional campaignExpirationTimestamp: null | number | Long

Defined in: WAProto/index.d.ts:40158

StatusPSA campaignExpirationTimestamp.

Implementation of

IStatusPSA.campaignExpirationTimestamp


campaignId

campaignId: number | Long

Defined in: WAProto/index.d.ts:40155

StatusPSA campaignId.

Implementation of

IStatusPSA.campaignId

Methods

toJSON()

toJSON(): object

Defined in: WAProto/index.d.ts:40228

Converts this StatusPSA to JSON.

Returns

object

JSON object


create()

static create(properties?): StatusPSA

Defined in: WAProto/index.d.ts:40165

Creates a new StatusPSA instance using the specified properties.

Parameters

properties?

IStatusPSA

Properties to set

Returns

StatusPSA

StatusPSA instance


decode()

static decode(reader, length?): StatusPSA

Defined in: WAProto/index.d.ts:40191

Decodes a StatusPSA message from the specified reader or buffer.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

length?

number

Message length if known beforehand

Returns

StatusPSA

StatusPSA

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): StatusPSA

Defined in: WAProto/index.d.ts:40200

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

StatusPSA

StatusPSA

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode()

static encode(message, writer?): Writer

Defined in: WAProto/index.d.ts:40173

Encodes the specified StatusPSA message. Does not implicitly verify messages.

Parameters

message

IStatusPSA

StatusPSA message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


encodeDelimited()

static encodeDelimited(message, writer?): Writer

Defined in: WAProto/index.d.ts:40181

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

Parameters

message

IStatusPSA

StatusPSA message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): StatusPSA

Defined in: WAProto/index.d.ts:40214

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

Parameters

object

Plain object

Returns

StatusPSA

StatusPSA


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

Defined in: WAProto/index.d.ts:40235

Gets the default type url for StatusPSA

Parameters

typeUrlPrefix?

string

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

Returns

string

The default type url


toObject()

static toObject(message, options?): object

Defined in: WAProto/index.d.ts:40222

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

Parameters

message

StatusPSA

StatusPSA

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

Defined in: WAProto/index.d.ts:40207

Verifies a StatusPSA message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not