Class: MessageAssociation
Defined in: WAProto/index.d.ts:33126
Represents a MessageAssociation.
Implements
Constructors
new MessageAssociation()
new MessageAssociation(
properties
?):MessageAssociation
Defined in: WAProto/index.d.ts:33132
Constructs a new MessageAssociation.
Parameters
properties?
Properties to set
Returns
Properties
associationType?
optional
associationType:null
|AssociationType
Defined in: WAProto/index.d.ts:33135
MessageAssociation associationType.
Implementation of
IMessageAssociation
.associationType
messageIndex?
optional
messageIndex:null
|number
Defined in: WAProto/index.d.ts:33141
MessageAssociation messageIndex.
Implementation of
IMessageAssociation
.messageIndex
parentMessageKey?
optional
parentMessageKey:null
|IMessageKey
Defined in: WAProto/index.d.ts:33138
MessageAssociation parentMessageKey.
Implementation of
IMessageAssociation
.parentMessageKey
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:33211
Converts this MessageAssociation to JSON.
Returns
object
JSON object
create()
static
create(properties
?):MessageAssociation
Defined in: WAProto/index.d.ts:33148
Creates a new MessageAssociation instance using the specified properties.
Parameters
properties?
Properties to set
Returns
MessageAssociation instance
decode()
static
decode(reader
,length
?):MessageAssociation
Defined in: WAProto/index.d.ts:33174
Decodes a MessageAssociation 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
MessageAssociation
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):MessageAssociation
Defined in: WAProto/index.d.ts:33183
Decodes a MessageAssociation message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
MessageAssociation
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:33156
Encodes the specified MessageAssociation message. Does not implicitly verify messages.
Parameters
message
MessageAssociation 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:33164
Encodes the specified MessageAssociation message, length delimited. Does not implicitly verify messages.
Parameters
message
MessageAssociation message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):MessageAssociation
Defined in: WAProto/index.d.ts:33197
Creates a MessageAssociation message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
MessageAssociation
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:33218
Gets the default type url for MessageAssociation
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:33205
Creates a plain object from a MessageAssociation message. Also converts values to other types if specified.
Parameters
message
MessageAssociation
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:33190
Verifies a MessageAssociation message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not