Class: NotificationMessageInfo
Defined in: WAProto/index.d.ts:34851
Represents a NotificationMessageInfo.
Implements
Constructors
new NotificationMessageInfo()
new NotificationMessageInfo(
properties
?):NotificationMessageInfo
Defined in: WAProto/index.d.ts:34857
Constructs a new NotificationMessageInfo.
Parameters
properties?
Properties to set
Returns
Properties
key?
optional
key:null
|IMessageKey
Defined in: WAProto/index.d.ts:34860
NotificationMessageInfo key.
Implementation of
message?
optional
message:null
|IMessage
Defined in: WAProto/index.d.ts:34863
NotificationMessageInfo message.
Implementation of
INotificationMessageInfo
.message
messageTimestamp?
optional
messageTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:34866
NotificationMessageInfo messageTimestamp.
Implementation of
INotificationMessageInfo
.messageTimestamp
participant?
optional
participant:null
|string
Defined in: WAProto/index.d.ts:34869
NotificationMessageInfo participant.
Implementation of
INotificationMessageInfo
.participant
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:34939
Converts this NotificationMessageInfo to JSON.
Returns
object
JSON object
create()
static
create(properties
?):NotificationMessageInfo
Defined in: WAProto/index.d.ts:34876
Creates a new NotificationMessageInfo instance using the specified properties.
Parameters
properties?
Properties to set
Returns
NotificationMessageInfo instance
decode()
static
decode(reader
,length
?):NotificationMessageInfo
Defined in: WAProto/index.d.ts:34902
Decodes a NotificationMessageInfo 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
NotificationMessageInfo
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):NotificationMessageInfo
Defined in: WAProto/index.d.ts:34911
Decodes a NotificationMessageInfo message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
NotificationMessageInfo
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:34884
Encodes the specified NotificationMessageInfo message. Does not implicitly verify messages.
Parameters
message
NotificationMessageInfo 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:34892
Encodes the specified NotificationMessageInfo message, length delimited. Does not implicitly verify messages.
Parameters
message
NotificationMessageInfo message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):NotificationMessageInfo
Defined in: WAProto/index.d.ts:34925
Creates a NotificationMessageInfo message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
NotificationMessageInfo
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:34946
Gets the default type url for NotificationMessageInfo
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:34933
Creates a plain object from a NotificationMessageInfo message. Also converts values to other types if specified.
Parameters
message
NotificationMessageInfo
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:34918
Verifies a NotificationMessageInfo message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not