Class: SenderKeyDistributionMessage
Defined in: WAProto/index.d.ts:40950
Represents a SenderKeyDistributionMessage.
Implements
Constructors
new SenderKeyDistributionMessage()
new SenderKeyDistributionMessage(
properties
?):SenderKeyDistributionMessage
Defined in: WAProto/index.d.ts:40956
Constructs a new SenderKeyDistributionMessage.
Parameters
properties?
Properties to set
Returns
Properties
chainKey?
optional
chainKey:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:40965
SenderKeyDistributionMessage chainKey.
Implementation of
ISenderKeyDistributionMessage
.chainKey
id?
optional
id:null
|number
Defined in: WAProto/index.d.ts:40959
SenderKeyDistributionMessage id.
Implementation of
ISenderKeyDistributionMessage
.id
iteration?
optional
iteration:null
|number
Defined in: WAProto/index.d.ts:40962
SenderKeyDistributionMessage iteration.
Implementation of
ISenderKeyDistributionMessage
.iteration
signingKey?
optional
signingKey:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:40968
SenderKeyDistributionMessage signingKey.
Implementation of
ISenderKeyDistributionMessage
.signingKey
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:41038
Converts this SenderKeyDistributionMessage to JSON.
Returns
object
JSON object
create()
static
create(properties
?):SenderKeyDistributionMessage
Defined in: WAProto/index.d.ts:40975
Creates a new SenderKeyDistributionMessage instance using the specified properties.
Parameters
properties?
Properties to set
Returns
SenderKeyDistributionMessage instance
decode()
static
decode(reader
,length
?):SenderKeyDistributionMessage
Defined in: WAProto/index.d.ts:41001
Decodes a SenderKeyDistributionMessage 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
SenderKeyDistributionMessage
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):SenderKeyDistributionMessage
Defined in: WAProto/index.d.ts:41010
Decodes a SenderKeyDistributionMessage message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
SenderKeyDistributionMessage
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:40983
Encodes the specified SenderKeyDistributionMessage message. Does not implicitly verify messages.
Parameters
message
SenderKeyDistributionMessage 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:40991
Encodes the specified SenderKeyDistributionMessage message, length delimited. Does not implicitly verify messages.
Parameters
message
SenderKeyDistributionMessage message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):SenderKeyDistributionMessage
Defined in: WAProto/index.d.ts:41024
Creates a SenderKeyDistributionMessage message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
SenderKeyDistributionMessage
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:41045
Gets the default type url for SenderKeyDistributionMessage
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:41032
Creates a plain object from a SenderKeyDistributionMessage message. Also converts values to other types if specified.
Parameters
message
SenderKeyDistributionMessage
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:41017
Verifies a SenderKeyDistributionMessage message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not