Skip to main content

Class: KeepInChatMessage

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

Represents a KeepInChatMessage.

Implements

Constructors

new KeepInChatMessage()

new KeepInChatMessage(properties?): KeepInChatMessage

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

Constructs a new KeepInChatMessage.

Parameters

properties?

IKeepInChatMessage

Properties to set

Returns

KeepInChatMessage

Properties

keepType?

optional keepType: null | KeepType

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

KeepInChatMessage keepType.

Implementation of

IKeepInChatMessage.keepType


key?

optional key: null | IMessageKey

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

KeepInChatMessage key.

Implementation of

IKeepInChatMessage.key


timestampMs?

optional timestampMs: null | number | Long

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

KeepInChatMessage timestampMs.

Implementation of

IKeepInChatMessage.timestampMs

Methods

toJSON()

toJSON(): object

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

Converts this KeepInChatMessage to JSON.

Returns

object

JSON object


create()

static create(properties?): KeepInChatMessage

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

Creates a new KeepInChatMessage instance using the specified properties.

Parameters

properties?

IKeepInChatMessage

Properties to set

Returns

KeepInChatMessage

KeepInChatMessage instance


decode()

static decode(reader, length?): KeepInChatMessage

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

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

KeepInChatMessage

KeepInChatMessage

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): KeepInChatMessage

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

KeepInChatMessage

KeepInChatMessage

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

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

Parameters

message

IKeepInChatMessage

KeepInChatMessage 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:26535

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

Parameters

message

IKeepInChatMessage

KeepInChatMessage message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): KeepInChatMessage

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

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

Parameters

object

Plain object

Returns

KeepInChatMessage

KeepInChatMessage


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for KeepInChatMessage

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

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

Parameters

message

KeepInChatMessage

KeepInChatMessage

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a KeepInChatMessage message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not