Interface PubsubOrBuilder (1.45.0)

public interface PubsubOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getSubscription()

public abstract String getSubscription()

Output only. The name of the Pub/Sub subscription created and managed by Eventarc as a transport for the event delivery. Format: projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.

string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The subscription.

getSubscriptionBytes()

public abstract ByteString getSubscriptionBytes()

Output only. The name of the Pub/Sub subscription created and managed by Eventarc as a transport for the event delivery. Format: projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}.

string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for subscription.

getTopic()

public abstract String getTopic()

Optional. The name of the Pub/Sub topic created and managed by Eventarc as a transport for the event delivery. Format: projects/{PROJECT_ID}/topics/{TOPIC_NAME}.

You can set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished. The topic you provide here is not deleted by Eventarc at trigger deletion.

string topic = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The topic.

getTopicBytes()

public abstract ByteString getTopicBytes()

Optional. The name of the Pub/Sub topic created and managed by Eventarc as a transport for the event delivery. Format: projects/{PROJECT_ID}/topics/{TOPIC_NAME}.

You can set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished. The topic you provide here is not deleted by Eventarc at trigger deletion.

string topic = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for topic.