Skip to main content

Class: MessageContextInfo

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

Represents a MessageContextInfo.

Implements

Constructors

new MessageContextInfo()

new MessageContextInfo(properties?): MessageContextInfo

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

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

MessageContextInfo botMessageSecret.

Implementation of

IMessageContextInfo.botMessageSecret


botMetadata?

optional botMetadata: null | IBotMetadata

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

MessageContextInfo botMetadata.

Implementation of

IMessageContextInfo.botMetadata


capiCreatedGroup?

optional capiCreatedGroup: null | boolean

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

MessageContextInfo capiCreatedGroup.

Implementation of

IMessageContextInfo.capiCreatedGroup


deviceListMetadata?

optional deviceListMetadata: null | IDeviceListMetadata

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

MessageContextInfo deviceListMetadata.

Implementation of

IMessageContextInfo.deviceListMetadata


deviceListMetadataVersion?

optional deviceListMetadataVersion: null | number

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

MessageContextInfo deviceListMetadataVersion.

Implementation of

IMessageContextInfo.deviceListMetadataVersion


limitSharing?

optional limitSharing: null | ILimitSharing

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

MessageContextInfo limitSharing.

Implementation of

IMessageContextInfo.limitSharing


limitSharingV2?

optional limitSharingV2: null | ILimitSharing

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

MessageContextInfo limitSharingV2.

Implementation of

IMessageContextInfo.limitSharingV2


messageAddOnDurationInSecs?

optional messageAddOnDurationInSecs: null | number

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

MessageContextInfo messageAddOnDurationInSecs.

Implementation of

IMessageContextInfo.messageAddOnDurationInSecs


messageAddOnExpiryType?

optional messageAddOnExpiryType: null | MessageAddonExpiryType

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

MessageContextInfo messageAddOnExpiryType.

Implementation of

IMessageContextInfo.messageAddOnExpiryType


messageAssociation?

optional messageAssociation: null | IMessageAssociation

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

MessageContextInfo messageAssociation.

Implementation of

IMessageContextInfo.messageAssociation


messageSecret?

optional messageSecret: null | Uint8Array<ArrayBufferLike>

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

MessageContextInfo messageSecret.

Implementation of

IMessageContextInfo.messageSecret


paddingBytes?

optional paddingBytes: null | Uint8Array<ArrayBufferLike>

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

MessageContextInfo paddingBytes.

Implementation of

IMessageContextInfo.paddingBytes


reportingTokenVersion?

optional reportingTokenVersion: null | number

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

MessageContextInfo reportingTokenVersion.

Implementation of

IMessageContextInfo.reportingTokenVersion


supportPayload?

optional supportPayload: null | string

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

MessageContextInfo supportPayload.

Implementation of

IMessageContextInfo.supportPayload

Methods

toJSON()

toJSON(): object

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

Converts this MessageContextInfo to JSON.

Returns

object

JSON object


create()

static create(properties?): MessageContextInfo

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

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

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

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

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

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

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

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

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

Verifies a MessageContextInfo message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not