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

    Modifier and Type
    Method
    Description
    The settings for this subscription's message delivery.
    The settings for this subscription's message delivery.
    If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
    If present, messages are automatically written from the Pub/Sub Lite topic associated with this subscription to a destination.
    The name of the subscription.
    com.google.protobuf.ByteString
    The name of the subscription.
    The name of the topic this subscription is attached to.
    com.google.protobuf.ByteString
    The name of the topic this subscription is attached to.
    boolean
    The settings for this subscription's message delivery.
    boolean
    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.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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;