A message data and its attributes. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute.
| JSON representation |
|---|
{ "data": string, "attributes": { string: string, ... }, "messageId": string, "publishTime": string } |
| Fields | |
|---|---|
data |
The message payload. For JSON requests, the value of this field must be base64-encoded. A base64-encoded string. |
attributes |
Optional attributes for this message. An object containing a list of |
message |
ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a |
publish |
The time at which the message was published, populated by the server when it receives the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |