Class: ADVKeyIndexList
Defined in: WAProto/index.d.ts:153
Represents a ADVKeyIndexList.
Implements
Constructors
new ADVKeyIndexList()
new ADVKeyIndexList(
properties
?):ADVKeyIndexList
Defined in: WAProto/index.d.ts:159
Constructs a new ADVKeyIndexList.
Parameters
properties?
Properties to set
Returns
Properties
accountType?
optional
accountType:null
|ADVEncryptionType
Defined in: WAProto/index.d.ts:174
ADVKeyIndexList accountType.
Implementation of
currentIndex?
optional
currentIndex:null
|number
Defined in: WAProto/index.d.ts:168
ADVKeyIndexList currentIndex.
Implementation of
rawId?
optional
rawId:null
|number
Defined in: WAProto/index.d.ts:162
ADVKeyIndexList rawId.
Implementation of
timestamp?
optional
timestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:165
ADVKeyIndexList timestamp.
Implementation of
validIndexes
validIndexes:
number
[]
Defined in: WAProto/index.d.ts:171
ADVKeyIndexList validIndexes.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:244
Converts this ADVKeyIndexList to JSON.
Returns
object
JSON object
create()
static
create(properties
?):ADVKeyIndexList
Defined in: WAProto/index.d.ts:181
Creates a new ADVKeyIndexList instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ADVKeyIndexList instance
decode()
static
decode(reader
,length
?):ADVKeyIndexList
Defined in: WAProto/index.d.ts:207
Decodes a ADVKeyIndexList 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
ADVKeyIndexList
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):ADVKeyIndexList
Defined in: WAProto/index.d.ts:216
Decodes a ADVKeyIndexList message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
ADVKeyIndexList
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:189
Encodes the specified ADVKeyIndexList message. Does not implicitly verify messages.
Parameters
message
ADVKeyIndexList 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:197
Encodes the specified ADVKeyIndexList message, length delimited. Does not implicitly verify messages.
Parameters
message
ADVKeyIndexList message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):ADVKeyIndexList
Defined in: WAProto/index.d.ts:230
Creates a ADVKeyIndexList message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
ADVKeyIndexList
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:251
Gets the default type url for ADVKeyIndexList
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:238
Creates a plain object from a ADVKeyIndexList message. Also converts values to other types if specified.
Parameters
message
ADVKeyIndexList
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:223
Verifies a ADVKeyIndexList message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not