Skip to main content

Class: DeviceListMetadata

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

Represents a DeviceListMetadata.

Implements

Constructors

new DeviceListMetadata()

new DeviceListMetadata(properties?): DeviceListMetadata

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

Constructs a new DeviceListMetadata.

Parameters

properties?

IDeviceListMetadata

Properties to set

Returns

DeviceListMetadata

Properties

receiverAccountType?

optional receiverAccountType: null | ADVEncryptionType

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

DeviceListMetadata receiverAccountType.

Implementation of

IDeviceListMetadata.receiverAccountType


recipientKeyHash?

optional recipientKeyHash: null | Uint8Array<ArrayBufferLike>

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

DeviceListMetadata recipientKeyHash.

Implementation of

IDeviceListMetadata.recipientKeyHash


recipientKeyIndexes

recipientKeyIndexes: number[]

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

DeviceListMetadata recipientKeyIndexes.

Implementation of

IDeviceListMetadata.recipientKeyIndexes


recipientTimestamp?

optional recipientTimestamp: null | number | Long

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

DeviceListMetadata recipientTimestamp.

Implementation of

IDeviceListMetadata.recipientTimestamp


senderAccountType?

optional senderAccountType: null | ADVEncryptionType

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

DeviceListMetadata senderAccountType.

Implementation of

IDeviceListMetadata.senderAccountType


senderKeyHash?

optional senderKeyHash: null | Uint8Array<ArrayBufferLike>

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

DeviceListMetadata senderKeyHash.

Implementation of

IDeviceListMetadata.senderKeyHash


senderKeyIndexes

senderKeyIndexes: number[]

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

DeviceListMetadata senderKeyIndexes.

Implementation of

IDeviceListMetadata.senderKeyIndexes


senderTimestamp?

optional senderTimestamp: null | number | Long

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

DeviceListMetadata senderTimestamp.

Implementation of

IDeviceListMetadata.senderTimestamp

Methods

toJSON()

toJSON(): object

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

Converts this DeviceListMetadata to JSON.

Returns

object

JSON object


create()

static create(properties?): DeviceListMetadata

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

Creates a new DeviceListMetadata instance using the specified properties.

Parameters

properties?

IDeviceListMetadata

Properties to set

Returns

DeviceListMetadata

DeviceListMetadata instance


decode()

static decode(reader, length?): DeviceListMetadata

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

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

DeviceListMetadata

DeviceListMetadata

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): DeviceListMetadata

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

DeviceListMetadata

DeviceListMetadata

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

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

Parameters

message

IDeviceListMetadata

DeviceListMetadata 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:11702

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

Parameters

message

IDeviceListMetadata

DeviceListMetadata message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): DeviceListMetadata

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

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

Parameters

object

Plain object

Returns

DeviceListMetadata

DeviceListMetadata


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for DeviceListMetadata

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

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

Parameters

message

DeviceListMetadata

DeviceListMetadata

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a DeviceListMetadata message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not