Class/Object

com.google.pubsub.v1.pubsub

Snapshot

Related Docs: object Snapshot | package pubsub

Permalink

final case class Snapshot(name: String = "", topic: String = "", expireTime: Option[Timestamp] = _root_.scala.None, labels: Map[String, String] = ...) extends GeneratedMessage with Message[Snapshot] with Updatable[Snapshot] with Product with Serializable

A snapshot resource. Snapshots are used in [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.

name

The name of the snapshot.

topic

The name of the topic from which this snapshot is retaining messages.

expireTime

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.

labels

See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[Snapshot], Message[Snapshot], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Snapshot
  2. Product
  3. Equals
  4. Updatable
  5. Message
  6. GeneratedMessage
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Snapshot(name: String = "", topic: String = "", expireTime: Option[Timestamp] = _root_.scala.None, labels: Map[String, String] = ...)

    Permalink

    name

    The name of the snapshot.

    topic

    The name of the topic from which this snapshot is retaining messages.

    expireTime

    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.

    labels

    See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addAllLabels(__vs: Iterable[(String, String)]): Snapshot

    Permalink
  5. def addLabels(__vs: (String, String)*): Snapshot

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clearExpireTime: Snapshot

    Permalink
  8. def clearLabels: Snapshot

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def companion: Snapshot.type

    Permalink
    Definition Classes
    Snapshot → GeneratedMessage
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. val expireTime: Option[Timestamp]

    Permalink

    The snapshot is guaranteed to exist up until this time.

    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.

  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getExpireTime: Timestamp

    Permalink
  16. def getField(__field: FieldDescriptor): PValue

    Permalink
    Definition Classes
    Snapshot → GeneratedMessage
  17. def getFieldByNumber(__fieldNumber: Int): Any

    Permalink
    Definition Classes
    Snapshot → GeneratedMessage
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. val labels: Map[String, String]

    Permalink

    See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).

  20. def mergeFrom(_input__: CodedInputStream): Snapshot

    Permalink
    Definition Classes
    Snapshot → Message
  21. val name: String

    Permalink

    The name of the snapshot.

  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def serializedSize: Int

    Permalink
    Definition Classes
    Snapshot → GeneratedMessage
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toByteArray: Array[Byte]

    Permalink
    Definition Classes
    GeneratedMessage
  28. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  29. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  30. def toProtoString: String

    Permalink
    Definition Classes
    Snapshot → GeneratedMessage
  31. val topic: String

    Permalink

    The name of the topic from which this snapshot is retaining messages.

  32. def update(ms: (Lens[Snapshot, Snapshot]) ⇒ Mutation[Snapshot]*): Snapshot

    Permalink
    Definition Classes
    Updatable
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def withExpireTime(__v: Timestamp): Snapshot

    Permalink
  37. def withLabels(__v: Map[String, String]): Snapshot

    Permalink
  38. def withName(__v: String): Snapshot

    Permalink
  39. def withTopic(__v: String): Snapshot

    Permalink
  40. def writeDelimitedTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage
  41. def writeTo(_output__: CodedOutputStream): Unit

    Permalink
    Definition Classes
    Snapshot → GeneratedMessage
  42. def writeTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, Any]

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

  2. def getField(field: FieldDescriptor): Any

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue

Inherited from Product

Inherited from Equals

Inherited from Updatable[Snapshot]

Inherited from Message[Snapshot]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped