Skip to main content

Class: DeviceConsistencyCodeMessage

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

Represents a DeviceConsistencyCodeMessage.

Implements

Constructors

new DeviceConsistencyCodeMessage()

new DeviceConsistencyCodeMessage(properties?): DeviceConsistencyCodeMessage

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

Constructs a new DeviceConsistencyCodeMessage.

Parameters

properties?

IDeviceConsistencyCodeMessage

Properties to set

Returns

DeviceConsistencyCodeMessage

Properties

generation?

optional generation: null | number

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

DeviceConsistencyCodeMessage generation.

Implementation of

IDeviceConsistencyCodeMessage.generation


signature?

optional signature: null | Uint8Array<ArrayBufferLike>

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

DeviceConsistencyCodeMessage signature.

Implementation of

IDeviceConsistencyCodeMessage.signature

Methods

toJSON()

toJSON(): object

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

Converts this DeviceConsistencyCodeMessage to JSON.

Returns

object

JSON object


create()

static create(properties?): DeviceConsistencyCodeMessage

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

Creates a new DeviceConsistencyCodeMessage instance using the specified properties.

Parameters

properties?

IDeviceConsistencyCodeMessage

Properties to set

Returns

DeviceConsistencyCodeMessage

DeviceConsistencyCodeMessage instance


decode()

static decode(reader, length?): DeviceConsistencyCodeMessage

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

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

DeviceConsistencyCodeMessage

DeviceConsistencyCodeMessage

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): DeviceConsistencyCodeMessage

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

DeviceConsistencyCodeMessage

DeviceConsistencyCodeMessage

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

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

Parameters

message

IDeviceConsistencyCodeMessage

DeviceConsistencyCodeMessage 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:11563

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

Parameters

message

IDeviceConsistencyCodeMessage

DeviceConsistencyCodeMessage message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): DeviceConsistencyCodeMessage

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

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

Parameters

object

Plain object

Returns

DeviceConsistencyCodeMessage

DeviceConsistencyCodeMessage


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for DeviceConsistencyCodeMessage

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

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

Parameters

message

DeviceConsistencyCodeMessage

DeviceConsistencyCodeMessage

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a DeviceConsistencyCodeMessage message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not