Interface SubscriptionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Subscription
,Subscription.Builder
public interface SubscriptionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Subscription.DeliveryConfig
getDeliveryConfig()
The settings for this subscription's message delivery.Subscription.DeliveryConfigOrBuilder
getDeliveryConfigOrBuilder()
The settings for this subscription's message delivery.ExportConfig
getExportConfig()
If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.ExportConfigOrBuilder
getExportConfigOrBuilder()
If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.String
getName()
The name of the subscription.com.google.protobuf.ByteString
getNameBytes()
The name of the subscription.String
getTopic()
The name of the topic this subscription is attached to.com.google.protobuf.ByteString
getTopicBytes()
The name of the topic this subscription is attached to.boolean
hasDeliveryConfig()
The settings for this subscription's message delivery.boolean
hasExportConfig()
If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
The name of the subscription. Structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
string name = 1;
- Returns:
- The bytes for name.
-
getTopic
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:
- The topic.
-
getTopicBytes
com.google.protobuf.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:
- The bytes for topic.
-
hasDeliveryConfig
boolean hasDeliveryConfig()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
- Returns:
- Whether the deliveryConfig field is set.
-
getDeliveryConfig
Subscription.DeliveryConfig getDeliveryConfig()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
- Returns:
- The deliveryConfig.
-
getDeliveryConfigOrBuilder
Subscription.DeliveryConfigOrBuilder getDeliveryConfigOrBuilder()
The settings for this subscription's message delivery.
.google.cloud.pubsublite.v1.Subscription.DeliveryConfig delivery_config = 3;
-
hasExportConfig
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:
- Whether the exportConfig field is set.
-
getExportConfig
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:
- The exportConfig.
-
getExportConfigOrBuilder
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;
-
-