Skip to main content

Class: MessageContextInfo

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

Represents a MessageContextInfo.

Implements

Constructors

new MessageContextInfo()

new MessageContextInfo(properties?): MessageContextInfo

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

Constructs a new MessageContextInfo.

Parameters

properties?

IMessageContextInfo

Properties to set

Returns

MessageContextInfo

Properties

botMessageSecret?

optional botMessageSecret: null | Uint8Array<ArrayBufferLike>

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

MessageContextInfo botMessageSecret.

Implementation of

IMessageContextInfo.botMessageSecret


botMetadata?

optional botMetadata: null | IBotMetadata

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

MessageContextInfo botMetadata.

Implementation of

IMessageContextInfo.botMetadata


capiCreatedGroup?

optional capiCreatedGroup: null | boolean

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

MessageContextInfo capiCreatedGroup.

Implementation of

IMessageContextInfo.capiCreatedGroup


deviceListMetadata?

optional deviceListMetadata: null | IDeviceListMetadata

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

MessageContextInfo deviceListMetadata.

Implementation of

IMessageContextInfo.deviceListMetadata


deviceListMetadataVersion?

optional deviceListMetadataVersion: null | number

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

MessageContextInfo deviceListMetadataVersion.

Implementation of

IMessageContextInfo.deviceListMetadataVersion


messageAddOnDurationInSecs?

optional messageAddOnDurationInSecs: null | number

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

MessageContextInfo messageAddOnDurationInSecs.

Implementation of

IMessageContextInfo.messageAddOnDurationInSecs


messageAddOnExpiryType?

optional messageAddOnExpiryType: null | MessageAddonExpiryType

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

MessageContextInfo messageAddOnExpiryType.

Implementation of

IMessageContextInfo.messageAddOnExpiryType


messageAssociation?

optional messageAssociation: null | IMessageAssociation

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

MessageContextInfo messageAssociation.

Implementation of

IMessageContextInfo.messageAssociation


messageSecret?

optional messageSecret: null | Uint8Array<ArrayBufferLike>

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

MessageContextInfo messageSecret.

Implementation of

IMessageContextInfo.messageSecret


paddingBytes?

optional paddingBytes: null | Uint8Array<ArrayBufferLike>

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

MessageContextInfo paddingBytes.

Implementation of

IMessageContextInfo.paddingBytes


reportingTokenVersion?

optional reportingTokenVersion: null | number

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

MessageContextInfo reportingTokenVersion.

Implementation of

IMessageContextInfo.reportingTokenVersion


supportPayload?

optional supportPayload: null | string

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

MessageContextInfo supportPayload.

Implementation of

IMessageContextInfo.supportPayload

Methods

toJSON()

toJSON(): object

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

Converts this MessageContextInfo to JSON.

Returns

object

JSON object


create()

static create(properties?): MessageContextInfo

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

Creates a new MessageContextInfo instance using the specified properties.

Parameters

properties?

IMessageContextInfo

Properties to set

Returns

MessageContextInfo

MessageContextInfo instance


decode()

static decode(reader, length?): MessageContextInfo

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

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

MessageContextInfo

MessageContextInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): MessageContextInfo

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

MessageContextInfo

MessageContextInfo

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

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

Parameters

message

IMessageContextInfo

MessageContextInfo 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:33346

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

Parameters

message

IMessageContextInfo

MessageContextInfo message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): MessageContextInfo

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

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

Parameters

object

Plain object

Returns

MessageContextInfo

MessageContextInfo


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for MessageContextInfo

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

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

Parameters

message

MessageContextInfo

MessageContextInfo

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a MessageContextInfo message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not