Interface SnapshotOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Snapshot, Snapshot.Builder

public interface SnapshotOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
       Optional. The name of the snapshot.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
       Optional. The name of the snapshot.
       
      string name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The bytes for name.
    • getTopic

      String getTopic()
       Optional. The name of the topic from which this snapshot is retaining
       messages.
       
      string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      The topic.
    • getTopicBytes

      com.google.protobuf.ByteString getTopicBytes()
       Optional. The name of the topic from which this snapshot is retaining
       messages.
       
      string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      The bytes for topic.
    • hasExpireTime

      boolean hasExpireTime()
       Optional. The snapshot is guaranteed to exist up until this time.
       A newly-created snapshot expires no later than 7 days from the time of its
       creation. Its exact lifetime is determined at creation by the existing
       backlog in the source subscription. Specifically, the lifetime of the
       snapshot is `7 days - (age of oldest unacked message in the subscription)`.
       For example, consider a subscription whose oldest unacked message is 3 days
       old. If a snapshot is created from this subscription, the snapshot -- which
       will always capture this 3-day-old backlog as long as the snapshot
       exists -- will expire in 4 days. The service will refuse to create a
       snapshot that would expire in less than 1 hour after creation.
       
      .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      com.google.protobuf.Timestamp getExpireTime()
       Optional. The snapshot is guaranteed to exist up until this time.
       A newly-created snapshot expires no later than 7 days from the time of its
       creation. Its exact lifetime is determined at creation by the existing
       backlog in the source subscription. Specifically, the lifetime of the
       snapshot is `7 days - (age of oldest unacked message in the subscription)`.
       For example, consider a subscription whose oldest unacked message is 3 days
       old. If a snapshot is created from this subscription, the snapshot -- which
       will always capture this 3-day-old backlog as long as the snapshot
       exists -- will expire in 4 days. The service will refuse to create a
       snapshot that would expire in less than 1 hour after creation.
       
      .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      The expireTime.
    • getExpireTimeOrBuilder

      com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
       Optional. The snapshot is guaranteed to exist up until this time.
       A newly-created snapshot expires no later than 7 days from the time of its
       creation. Its exact lifetime is determined at creation by the existing
       backlog in the source subscription. Specifically, the lifetime of the
       snapshot is `7 days - (age of oldest unacked message in the subscription)`.
       For example, consider a subscription whose oldest unacked message is 3 days
       old. If a snapshot is created from this subscription, the snapshot -- which
       will always capture this 3-day-old backlog as long as the snapshot
       exists -- will expire in 4 days. The service will refuse to create a
       snapshot that would expire in less than 1 hour after creation.
       
      .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getLabelsCount

      int getLabelsCount()
       Optional. See [Creating and managing labels]
       (https://cloud.google.com/pubsub/docs/labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • containsLabels

      boolean containsLabels(String key)
       Optional. See [Creating and managing labels]
       (https://cloud.google.com/pubsub/docs/labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLabels

      Deprecated.
      Use getLabelsMap() instead.
    • getLabelsMap

      Map<String,String> getLabelsMap()
       Optional. See [Creating and managing labels]
       (https://cloud.google.com/pubsub/docs/labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLabelsOrDefault

      String getLabelsOrDefault(String key, String defaultValue)
       Optional. See [Creating and managing labels]
       (https://cloud.google.com/pubsub/docs/labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getLabelsOrThrow

      String getLabelsOrThrow(String key)
       Optional. See [Creating and managing labels]
       (https://cloud.google.com/pubsub/docs/labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];