Interface SubscriptionOrBuilder (1.12.22)

public interface SubscriptionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDeliveryConfig()

public abstract Subscription.DeliveryConfig getDeliveryConfig()

The settings for this subscription's message delivery.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;

Returns
TypeDescription
Subscription.DeliveryConfig

The deliveryConfig.

getDeliveryConfigOrBuilder()

public abstract Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder()

The settings for this subscription's message delivery.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;

Returns
TypeDescription
Subscription.DeliveryConfigOrBuilder

getExportConfig()

public abstract ExportConfig getExportConfig()

If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.

.google.cloud.pubsublite.v1.ExportConfig export_config = 4;

Returns
TypeDescription
ExportConfig

The exportConfig.

getExportConfigOrBuilder()

public abstract ExportConfigOrBuilder getExportConfigOrBuilder()

If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.

.google.cloud.pubsublite.v1.ExportConfig export_config = 4;

Returns
TypeDescription
ExportConfigOrBuilder

getName()

public abstract String getName()

The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getTopic()

public abstract String getTopic()

The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

string topic = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The topic.

getTopicBytes()

public abstract ByteString getTopicBytes()

The name of the topic this subscription is attached to. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}

string topic = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for topic.

hasDeliveryConfig()

public abstract boolean hasDeliveryConfig()

The settings for this subscription's message delivery.

.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;

Returns
TypeDescription
boolean

Whether the deliveryConfig field is set.

hasExportConfig()

public abstract boolean hasExportConfig()

If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.

.google.cloud.pubsublite.v1.ExportConfig export_config = 4;

Returns
TypeDescription
boolean

Whether the exportConfig field is set.