A message data and its labels.
| JSON representation |
|---|
{
"data": string,
"label": [
{
object ( |
| Fields | |
|---|---|
data |
The message payload. A base64-encoded string. |
label[] |
Optional list of labels for this message. Keys in this collection must be unique. |
message |
ID of this message assigned by the server at publication time. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a PubsubMessage via a Pull call or a push delivery. It must not be populated by a publisher in a Publish call. |
publish |
The time at which the message was published. The time is milliseconds since the UNIX epoch. |
Label
A key-value pair applied to a given object.
| JSON representation |
|---|
{ "key": string, // Union field |
| Fields | |
|---|---|
key |
The key of a label is a syntactically valid URL (as per RFC 1738) with the "scheme" and initial slashes omitted and with the additional restrictions noted below. Each key should be globally unique. The "host" portion is called the "namespace" and is not necessarily resolvable to a network endpoint. Instead, the namespace indicates what system or entity defines the semantics of the label. Namespaces do not restrict the set of objects to which a label may be associated. Keys are defined by the following grammar: key = hostname "/" kpath kpath = ksegment *[ "/" ksegment ] ksegment = alphadigit | *[ alphadigit | "-" | "_" | "." ] where "hostname" and "alphadigit" are defined as in RFC 1738. Example key: spanner.google.com/universe |
Union field value. The value of the label. value can be only one of the following: |
|
str |
A string value. |
num |
An integer value. |