Class Message
Stay organized with collections
Save and categorize content based on your preferences.
The message that was published.
Inheritance
java.lang.Object >
Message
Constructors
Message()
Methods
getAttributes()
public Map<String,String> getAttributes()
Attributes for this message.
Returns
getData()
The binary data in the message.
Returns
getMessageID()
public String getMessageID()
ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic.
Returns
getPublishTime()
public OffsetDateTime getPublishTime()
The time at which the message was published, populated by the server when it receives the `Publish` call.
Returns
setAttributes(Map<String,String> value)
public void setAttributes(Map<String,String> value)
Parameter
setData(String value)
public void setData(String value)
Parameter
setMessageID(String value)
public void setMessageID(String value)
Parameter
setPublishTime(OffsetDateTime value)
public void setPublishTime(OffsetDateTime value)
Parameter
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-09-29 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]