Skip to main content

Class: StatusNotificationMessage

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

Represents a StatusNotificationMessage.

Implements

Constructors

new StatusNotificationMessage()

new StatusNotificationMessage(properties?): StatusNotificationMessage

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

Constructs a new StatusNotificationMessage.

Parameters

properties?

IStatusNotificationMessage

Properties to set

Returns

StatusNotificationMessage

Properties

originalMessageKey?

optional originalMessageKey: null | IMessageKey

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

StatusNotificationMessage originalMessageKey.

Implementation of

IStatusNotificationMessage.originalMessageKey


responseMessageKey?

optional responseMessageKey: null | IMessageKey

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

StatusNotificationMessage responseMessageKey.

Implementation of

IStatusNotificationMessage.responseMessageKey


type?

optional type: null | StatusNotificationType

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

StatusNotificationMessage type.

Implementation of

IStatusNotificationMessage.type

Methods

toJSON()

toJSON(): object

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

Converts this StatusNotificationMessage to JSON.

Returns

object

JSON object


create()

static create(properties?): StatusNotificationMessage

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

Creates a new StatusNotificationMessage instance using the specified properties.

Parameters

properties?

IStatusNotificationMessage

Properties to set

Returns

StatusNotificationMessage

StatusNotificationMessage instance


decode()

static decode(reader, length?): StatusNotificationMessage

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

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

StatusNotificationMessage

StatusNotificationMessage

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): StatusNotificationMessage

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

StatusNotificationMessage

StatusNotificationMessage

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:33897

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

Parameters

message

IStatusNotificationMessage

StatusNotificationMessage 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:33905

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

Parameters

message

IStatusNotificationMessage

StatusNotificationMessage message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): StatusNotificationMessage

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

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

Parameters

object

Plain object

Returns

StatusNotificationMessage

StatusNotificationMessage


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for StatusNotificationMessage

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:33946

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

Parameters

message

StatusNotificationMessage

StatusNotificationMessage

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a StatusNotificationMessage message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not