Skip to main content

Class: SignedPreKeyRecordStructure

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

Represents a SignedPreKeyRecordStructure.

Implements

Constructors

new SignedPreKeyRecordStructure()

new SignedPreKeyRecordStructure(properties?): SignedPreKeyRecordStructure

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

Constructs a new SignedPreKeyRecordStructure.

Parameters

properties?

ISignedPreKeyRecordStructure

Properties to set

Returns

SignedPreKeyRecordStructure

Properties

id?

optional id: null | number

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

SignedPreKeyRecordStructure id.

Implementation of

ISignedPreKeyRecordStructure.id


privateKey?

optional privateKey: null | Uint8Array<ArrayBufferLike>

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

SignedPreKeyRecordStructure privateKey.

Implementation of

ISignedPreKeyRecordStructure.privateKey


publicKey?

optional publicKey: null | Uint8Array<ArrayBufferLike>

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

SignedPreKeyRecordStructure publicKey.

Implementation of

ISignedPreKeyRecordStructure.publicKey


signature?

optional signature: null | Uint8Array<ArrayBufferLike>

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

SignedPreKeyRecordStructure signature.

Implementation of

ISignedPreKeyRecordStructure.signature


timestamp?

optional timestamp: null | number | Long

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

SignedPreKeyRecordStructure timestamp.

Implementation of

ISignedPreKeyRecordStructure.timestamp

Methods

toJSON()

toJSON(): object

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

Converts this SignedPreKeyRecordStructure to JSON.

Returns

object

JSON object


create()

static create(properties?): SignedPreKeyRecordStructure

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

Creates a new SignedPreKeyRecordStructure instance using the specified properties.

Parameters

properties?

ISignedPreKeyRecordStructure

Properties to set

Returns

SignedPreKeyRecordStructure

SignedPreKeyRecordStructure instance


decode()

static decode(reader, length?): SignedPreKeyRecordStructure

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

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

SignedPreKeyRecordStructure

SignedPreKeyRecordStructure

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): SignedPreKeyRecordStructure

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

SignedPreKeyRecordStructure

SignedPreKeyRecordStructure

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

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

Parameters

message

ISignedPreKeyRecordStructure

SignedPreKeyRecordStructure 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:39981

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

Parameters

message

ISignedPreKeyRecordStructure

SignedPreKeyRecordStructure message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): SignedPreKeyRecordStructure

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

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

Parameters

object

Plain object

Returns

SignedPreKeyRecordStructure

SignedPreKeyRecordStructure


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for SignedPreKeyRecordStructure

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

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

Parameters

message

SignedPreKeyRecordStructure

SignedPreKeyRecordStructure

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a SignedPreKeyRecordStructure message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not