Class: MessageAddOnContextInfo
Defined in: WAProto/index.d.ts:33020
Represents a MessageAddOnContextInfo.
Implements
Constructors
new MessageAddOnContextInfo()
new MessageAddOnContextInfo(
properties
?):MessageAddOnContextInfo
Defined in: WAProto/index.d.ts:33026
Constructs a new MessageAddOnContextInfo.
Parameters
properties?
Properties to set
Returns
Properties
messageAddOnDurationInSecs?
optional
messageAddOnDurationInSecs:null
|number
Defined in: WAProto/index.d.ts:33029
MessageAddOnContextInfo messageAddOnDurationInSecs.
Implementation of
IMessageAddOnContextInfo
.messageAddOnDurationInSecs
messageAddOnExpiryType?
optional
messageAddOnExpiryType:null
|MessageAddonExpiryType
Defined in: WAProto/index.d.ts:33032
MessageAddOnContextInfo messageAddOnExpiryType.
Implementation of
IMessageAddOnContextInfo
.messageAddOnExpiryType
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:33102
Converts this MessageAddOnContextInfo to JSON.
Returns
object
JSON object
create()
static
create(properties
?):MessageAddOnContextInfo
Defined in: WAProto/index.d.ts:33039
Creates a new MessageAddOnContextInfo instance using the specified properties.
Parameters
properties?
Properties to set
Returns
MessageAddOnContextInfo instance
decode()
static
decode(reader
,length
?):MessageAddOnContextInfo
Defined in: WAProto/index.d.ts:33065
Decodes a MessageAddOnContextInfo 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
MessageAddOnContextInfo
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):MessageAddOnContextInfo
Defined in: WAProto/index.d.ts:33074
Decodes a MessageAddOnContextInfo message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
MessageAddOnContextInfo
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:33047
Encodes the specified MessageAddOnContextInfo message. Does not implicitly verify messages.
Parameters
message
MessageAddOnContextInfo 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:33055
Encodes the specified MessageAddOnContextInfo message, length delimited. Does not implicitly verify messages.
Parameters
message
MessageAddOnContextInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):MessageAddOnContextInfo
Defined in: WAProto/index.d.ts:33088
Creates a MessageAddOnContextInfo message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
MessageAddOnContextInfo
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:33109
Gets the default type url for MessageAddOnContextInfo
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:33096
Creates a plain object from a MessageAddOnContextInfo message. Also converts values to other types if specified.
Parameters
message
MessageAddOnContextInfo
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:33081
Verifies a MessageAddOnContextInfo message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not