Interface PubsubMessageOrBuilder (0.14.1)

public interface PubsubMessageOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsAttributes(String key)

public abstract boolean containsAttributes(String key)

Attributes for this message.

map<string, string> attributes = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAttributes()

public abstract Map<String,String> getAttributes()

Use #getAttributesMap() instead.

Returns
TypeDescription
Map<String,String>

getAttributesCount()

public abstract int getAttributesCount()

Attributes for this message.

map<string, string> attributes = 2;

Returns
TypeDescription
int

getAttributesMap()

public abstract Map<String,String> getAttributesMap()

Attributes for this message.

map<string, string> attributes = 2;

Returns
TypeDescription
Map<String,String>

getAttributesOrDefault(String key, String defaultValue)

public abstract String getAttributesOrDefault(String key, String defaultValue)

Attributes for this message.

map<string, string> attributes = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getAttributesOrThrow(String key)

public abstract String getAttributesOrThrow(String key)

Attributes for this message.

map<string, string> attributes = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getData()

public abstract ByteString getData()

The binary data in the message.

bytes data = 1;

Returns
TypeDescription
ByteString

The data.

getMessageId()

public abstract String getMessageId()

ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic.

string message_id = 3;

Returns
TypeDescription
String

The messageId.

getMessageIdBytes()

public abstract ByteString getMessageIdBytes()

ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic.

string message_id = 3;

Returns
TypeDescription
ByteString

The bytes for messageId.

getOrderingKey()

public abstract String getOrderingKey()

If non-empty, identifies related messages for which publish order should be respected.

string ordering_key = 5;

Returns
TypeDescription
String

The orderingKey.

getOrderingKeyBytes()

public abstract ByteString getOrderingKeyBytes()

If non-empty, identifies related messages for which publish order should be respected.

string ordering_key = 5;

Returns
TypeDescription
ByteString

The bytes for orderingKey.

getPublishTime()

public abstract Timestamp getPublishTime()

The time at which the message was published, populated by the server when it receives the Publish call.

.google.protobuf.Timestamp publish_time = 4;

Returns
TypeDescription
Timestamp

The publishTime.

getPublishTimeOrBuilder()

public abstract TimestampOrBuilder getPublishTimeOrBuilder()

The time at which the message was published, populated by the server when it receives the Publish call.

.google.protobuf.Timestamp publish_time = 4;

Returns
TypeDescription
TimestampOrBuilder

hasPublishTime()

public abstract boolean hasPublishTime()

The time at which the message was published, populated by the server when it receives the Publish call.

.google.protobuf.Timestamp publish_time = 4;

Returns
TypeDescription
boolean

Whether the publishTime field is set.