Interface MessagePublishedDataOrBuilder (0.15.0)

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
Type Description
PubsubMessage

The message.

getMessageOrBuilder()

public abstract PubsubMessageOrBuilder getMessageOrBuilder()

The message that was published.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for subscription.

hasMessage()

public abstract boolean hasMessage()

The message that was published.

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

Returns
Type Description
boolean

Whether the message field is set.