Class: PollEncValue
Defined in: WAProto/index.d.ts:36656
Represents a PollEncValue.
Implements
Constructors
new PollEncValue()
new PollEncValue(
properties
?):PollEncValue
Defined in: WAProto/index.d.ts:36662
Constructs a new PollEncValue.
Parameters
properties?
Properties to set
Returns
Properties
encIv?
optional
encIv:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:36668
PollEncValue encIv.
Implementation of
encPayload?
optional
encPayload:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:36665
PollEncValue encPayload.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:36738
Converts this PollEncValue to JSON.
Returns
object
JSON object
create()
static
create(properties
?):PollEncValue
Defined in: WAProto/index.d.ts:36675
Creates a new PollEncValue instance using the specified properties.
Parameters
properties?
Properties to set
Returns
PollEncValue instance
decode()
static
decode(reader
,length
?):PollEncValue
Defined in: WAProto/index.d.ts:36701
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
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:36710
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
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:36683
Encodes the specified PollEncValue message. Does not implicitly verify messages.
Parameters
message
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:36691
Encodes the specified PollEncValue message, length delimited. Does not implicitly verify messages.
Parameters
message
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:36724
Creates a PollEncValue message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
PollEncValue
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:36745
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:36732
Creates a plain object from a PollEncValue message. Also converts values to other types if specified.
Parameters
message
PollEncValue
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:36717
Verifies a PollEncValue message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not