Interface MessagePublishedDataOrBuilder (0.14.1)

public interface MessagePublishedDataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMessage()

public abstract PubsubMessage getMessage()

The message that was published.

.google.events.cloud.pubsub.v1.PubsubMessage message = 1;

Returns
TypeDescription
PubsubMessage

The message.

getMessageOrBuilder()

public abstract PubsubMessageOrBuilder getMessageOrBuilder()

The message that was published.

.google.events.cloud.pubsub.v1.PubsubMessage message = 1;

Returns
TypeDescription
PubsubMessageOrBuilder

getSubscription()

public abstract String getSubscription()

The resource name of the subscription for which this event was generated. The format of the value is projects/{project-id}/subscriptions/{subscription-id}.

string subscription = 2;

Returns
TypeDescription
String

The subscription.

getSubscriptionBytes()

public abstract ByteString getSubscriptionBytes()

The resource name of the subscription for which this event was generated. The format of the value is projects/{project-id}/subscriptions/{subscription-id}.

string subscription = 2;

Returns
TypeDescription
ByteString

The bytes for subscription.

hasMessage()

public abstract boolean hasMessage()

The message that was published.

.google.events.cloud.pubsub.v1.PubsubMessage message = 1;

Returns
TypeDescription
boolean

Whether the message field is set.