Skip to main content

Class: DeviceListMetadata

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

Represents a DeviceListMetadata.

Implements

Constructors

new DeviceListMetadata()

new DeviceListMetadata(properties?): DeviceListMetadata

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

Constructs a new DeviceListMetadata.

Parameters

properties?

IDeviceListMetadata

Properties to set

Returns

DeviceListMetadata

Properties

receiverAccountType?

optional receiverAccountType: null | ADVEncryptionType

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

DeviceListMetadata receiverAccountType.

Implementation of

IDeviceListMetadata.receiverAccountType


recipientKeyHash?

optional recipientKeyHash: null | Uint8Array<ArrayBufferLike>

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

DeviceListMetadata recipientKeyHash.

Implementation of

IDeviceListMetadata.recipientKeyHash


recipientKeyIndexes

recipientKeyIndexes: number[]

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

DeviceListMetadata recipientKeyIndexes.

Implementation of

IDeviceListMetadata.recipientKeyIndexes


recipientTimestamp?

optional recipientTimestamp: null | number | Long

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

DeviceListMetadata recipientTimestamp.

Implementation of

IDeviceListMetadata.recipientTimestamp


senderAccountType?

optional senderAccountType: null | ADVEncryptionType

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

DeviceListMetadata senderAccountType.

Implementation of

IDeviceListMetadata.senderAccountType


senderKeyHash?

optional senderKeyHash: null | Uint8Array<ArrayBufferLike>

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

DeviceListMetadata senderKeyHash.

Implementation of

IDeviceListMetadata.senderKeyHash


senderKeyIndexes

senderKeyIndexes: number[]

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

DeviceListMetadata senderKeyIndexes.

Implementation of

IDeviceListMetadata.senderKeyIndexes


senderTimestamp?

optional senderTimestamp: null | number | Long

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

DeviceListMetadata senderTimestamp.

Implementation of

IDeviceListMetadata.senderTimestamp

Methods

toJSON()

toJSON(): object

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

Converts this DeviceListMetadata to JSON.

Returns

object

JSON object


create()

static create(properties?): DeviceListMetadata

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

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

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

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

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

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

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

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

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

Verifies a DeviceListMetadata message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not