Skip to main content

Class: PollEncValue

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

Represents a PollEncValue.

Implements

Constructors

new PollEncValue()

new PollEncValue(properties?): PollEncValue

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

Constructs a new PollEncValue.

Parameters

properties?

IPollEncValue

Properties to set

Returns

PollEncValue

Properties

encIv?

optional encIv: null | Uint8Array<ArrayBufferLike>

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

PollEncValue encIv.

Implementation of

IPollEncValue.encIv


encPayload?

optional encPayload: null | Uint8Array<ArrayBufferLike>

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

PollEncValue encPayload.

Implementation of

IPollEncValue.encPayload

Methods

toJSON()

toJSON(): object

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

Converts this PollEncValue to JSON.

Returns

object

JSON object


create()

static create(properties?): PollEncValue

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

Creates a new PollEncValue instance using the specified properties.

Parameters

properties?

IPollEncValue

Properties to set

Returns

PollEncValue

PollEncValue instance


decode()

static decode(reader, length?): PollEncValue

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

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

PollEncValue

PollEncValue

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): PollEncValue

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

PollEncValue

PollEncValue

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

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

Parameters

message

IPollEncValue

PollEncValue 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:39417

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

Parameters

message

IPollEncValue

PollEncValue message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): PollEncValue

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

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

Parameters

object

Plain object

Returns

PollEncValue

PollEncValue


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for PollEncValue

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

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

Parameters

message

PollEncValue

PollEncValue

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a PollEncValue message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not