Class: ADVDeviceIdentity
Defined in: WAProto/index.d.ts:26
Represents a ADVDeviceIdentity.
Implements
Constructors
new ADVDeviceIdentity()
new ADVDeviceIdentity(
properties
?):ADVDeviceIdentity
Defined in: WAProto/index.d.ts:32
Constructs a new ADVDeviceIdentity.
Parameters
properties?
Properties to set
Returns
Properties
accountType?
optional
accountType:null
|ADVEncryptionType
Defined in: WAProto/index.d.ts:44
ADVDeviceIdentity accountType.
Implementation of
IADVDeviceIdentity
.accountType
deviceType?
optional
deviceType:null
|ADVEncryptionType
Defined in: WAProto/index.d.ts:47
ADVDeviceIdentity deviceType.
Implementation of
keyIndex?
optional
keyIndex:null
|number
Defined in: WAProto/index.d.ts:41
ADVDeviceIdentity keyIndex.
Implementation of
rawId?
optional
rawId:null
|number
Defined in: WAProto/index.d.ts:35
ADVDeviceIdentity rawId.
Implementation of
timestamp?
optional
timestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:38
ADVDeviceIdentity timestamp.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:117
Converts this ADVDeviceIdentity to JSON.
Returns
object
JSON object
create()
static
create(properties
?):ADVDeviceIdentity
Defined in: WAProto/index.d.ts:54
Creates a new ADVDeviceIdentity instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ADVDeviceIdentity instance
decode()
static
decode(reader
,length
?):ADVDeviceIdentity
Defined in: WAProto/index.d.ts:80
Decodes a ADVDeviceIdentity 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
ADVDeviceIdentity
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):ADVDeviceIdentity
Defined in: WAProto/index.d.ts:89
Decodes a ADVDeviceIdentity message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
ADVDeviceIdentity
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:62
Encodes the specified ADVDeviceIdentity message. Does not implicitly verify messages.
Parameters
message
ADVDeviceIdentity 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:70
Encodes the specified ADVDeviceIdentity message, length delimited. Does not implicitly verify messages.
Parameters
message
ADVDeviceIdentity message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):ADVDeviceIdentity
Defined in: WAProto/index.d.ts:103
Creates a ADVDeviceIdentity message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
ADVDeviceIdentity
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:124
Gets the default type url for ADVDeviceIdentity
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:111
Creates a plain object from a ADVDeviceIdentity message. Also converts values to other types if specified.
Parameters
message
ADVDeviceIdentity
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:96
Verifies a ADVDeviceIdentity message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not