public interface PubsubMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
containsAttributes(java.lang.String key)
Optional attributes for this message.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Deprecated.
|
int |
getAttributesCount()
Optional attributes for this message.
|
java.util.Map<java.lang.String,java.lang.String> |
getAttributesMap()
Optional attributes for this message.
|
java.lang.String |
getAttributesOrDefault(java.lang.String key,
java.lang.String defaultValue)
Optional attributes for this message.
|
java.lang.String |
getAttributesOrThrow(java.lang.String key)
Optional attributes for this message.
|
com.google.protobuf.ByteString |
getData()
The message payload.
|
java.lang.String |
getMessageId()
ID of this message, assigned by the server when the message is published.
|
com.google.protobuf.ByteString |
getMessageIdBytes()
ID of this message, assigned by the server when the message is published.
|
com.google.protobuf.Timestamp |
getPublishTime()
The time at which the message was published, populated by the server when
it receives the `Publish` call.
|
com.google.protobuf.TimestampOrBuilder |
getPublishTimeOrBuilder()
The time at which the message was published, populated by the server when
it receives the `Publish` call.
|
boolean |
hasPublishTime()
The time at which the message was published, populated by the server when
it receives the `Publish` call.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
com.google.protobuf.ByteString getData()
The message payload.
bytes data = 1;
int getAttributesCount()
Optional attributes for this message.
map<string, string> attributes = 2;
boolean containsAttributes(java.lang.String key)
Optional attributes for this message.
map<string, string> attributes = 2;
@Deprecated java.util.Map<java.lang.String,java.lang.String> getAttributes()
getAttributesMap()
instead.java.util.Map<java.lang.String,java.lang.String> getAttributesMap()
Optional attributes for this message.
map<string, string> attributes = 2;
java.lang.String getAttributesOrDefault(java.lang.String key, java.lang.String defaultValue)
Optional attributes for this message.
map<string, string> attributes = 2;
java.lang.String getAttributesOrThrow(java.lang.String key)
Optional attributes for this message.
map<string, string> attributes = 2;
java.lang.String getMessageId()
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 `PubsubMessage` via a `Pull` call or a push delivery. It must not be populated by the publisher in a `Publish` call.
string message_id = 3;
com.google.protobuf.ByteString getMessageIdBytes()
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 `PubsubMessage` via a `Pull` call or a push delivery. It must not be populated by the publisher in a `Publish` call.
string message_id = 3;
boolean hasPublishTime()
The time at which the message was published, populated by the server when it receives the `Publish` call. It must not be populated by the publisher in a `Publish` call.
.google.protobuf.Timestamp publish_time = 4;
com.google.protobuf.Timestamp getPublishTime()
The time at which the message was published, populated by the server when it receives the `Publish` call. It must not be populated by the publisher in a `Publish` call.
.google.protobuf.Timestamp publish_time = 4;
com.google.protobuf.TimestampOrBuilder getPublishTimeOrBuilder()
The time at which the message was published, populated by the server when it receives the `Publish` call. It must not be populated by the publisher in a `Publish` call.
.google.protobuf.Timestamp publish_time = 4;