Class: NotificationMessageInfo
Defined in: WAProto/index.d.ts:37577
Represents a NotificationMessageInfo.
Implements
Constructors
new NotificationMessageInfo()
new NotificationMessageInfo(
properties
?):NotificationMessageInfo
Defined in: WAProto/index.d.ts:37583
Constructs a new NotificationMessageInfo.
Parameters
properties?
Properties to set
Returns
Properties
key?
optional
key:null
|IMessageKey
Defined in: WAProto/index.d.ts:37586
NotificationMessageInfo key.
Implementation of
message?
optional
message:null
|IMessage
Defined in: WAProto/index.d.ts:37589
NotificationMessageInfo message.
Implementation of
INotificationMessageInfo
.message
messageTimestamp?
optional
messageTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:37592
NotificationMessageInfo messageTimestamp.
Implementation of
INotificationMessageInfo
.messageTimestamp
participant?
optional
participant:null
|string
Defined in: WAProto/index.d.ts:37595
NotificationMessageInfo participant.
Implementation of
INotificationMessageInfo
.participant
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:37665
Converts this NotificationMessageInfo to JSON.
Returns
object
JSON object
create()
static
create(properties
?):NotificationMessageInfo
Defined in: WAProto/index.d.ts:37602
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:37628
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:37637
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:37610
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:37618
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:37651
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:37672
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:37659
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:37644
Verifies a NotificationMessageInfo message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not