Class/Object

com.google.pubsub.v1.pubsub

ReceivedMessage

Related Docs: object ReceivedMessage | package pubsub

Permalink

final case class ReceivedMessage(ackId: String = "", message: Option[PubsubMessage] = _root_.scala.None, deliveryAttempt: Int = 0) extends GeneratedMessage with Message[ReceivedMessage] with Updatable[ReceivedMessage] with Product with Serializable

A message and its corresponding acknowledgment ID.

ackId

This ID can be used to acknowledge the received message.

message

The message.

deliveryAttempt

The approximate number of times that Cloud Pub/Sub has attempted to deliver the associated message to a subscriber. More precisely, this is 1 + (number of NACKs) + (number of ack_deadline exceeds) for this message. A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline exceeds event is whenever a message is not acknowledged within ack_deadline. Note that ack_deadline is initially Subscription.ackDeadlineSeconds, but may get extended automatically by the client library. Upon the first delivery of a given message, delivery_attempt will have a value of 1. The value is calculated at best effort and is approximate. If a DeadLetterPolicy is not set on the subscription, this will be 0.

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[ReceivedMessage], Message[ReceivedMessage], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReceivedMessage
  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 ReceivedMessage(ackId: String = "", message: Option[PubsubMessage] = _root_.scala.None, deliveryAttempt: Int = 0)

    Permalink

    ackId

    This ID can be used to acknowledge the received message.

    message

    The message.

    deliveryAttempt

    The approximate number of times that Cloud Pub/Sub has attempted to deliver the associated message to a subscriber. More precisely, this is 1 + (number of NACKs) + (number of ack_deadline exceeds) for this message. A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline exceeds event is whenever a message is not acknowledged within ack_deadline. Note that ack_deadline is initially Subscription.ackDeadlineSeconds, but may get extended automatically by the client library. Upon the first delivery of a given message, delivery_attempt will have a value of 1. The value is calculated at best effort and is approximate. If a DeadLetterPolicy is not set on the subscription, this will be 0.

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. val ackId: String

    Permalink

    This ID can be used to acknowledge the received message.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clearMessage: ReceivedMessage

    Permalink
  7. def clone(): AnyRef

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

    Permalink
    Definition Classes
    ReceivedMessage → GeneratedMessage
  9. val deliveryAttempt: Int

    Permalink

    The approximate number of times that Cloud Pub/Sub has attempted to deliver the associated message to a subscriber.

    The approximate number of times that Cloud Pub/Sub has attempted to deliver the associated message to a subscriber. More precisely, this is 1 + (number of NACKs) + (number of ack_deadline exceeds) for this message. A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline exceeds event is whenever a message is not acknowledged within ack_deadline. Note that ack_deadline is initially Subscription.ackDeadlineSeconds, but may get extended automatically by the client library. Upon the first delivery of a given message, delivery_attempt will have a value of 1. The value is calculated at best effort and is approximate. If a DeadLetterPolicy is not set on the subscription, this will be 0.

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getField(__field: FieldDescriptor): PValue

    Permalink
    Definition Classes
    ReceivedMessage → GeneratedMessage
  14. def getFieldByNumber(__fieldNumber: Int): Any

    Permalink
    Definition Classes
    ReceivedMessage → GeneratedMessage
  15. def getMessage: PubsubMessage

    Permalink
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def mergeFrom(_input__: CodedInputStream): ReceivedMessage

    Permalink
    Definition Classes
    ReceivedMessage → Message
  18. val message: Option[PubsubMessage]

    Permalink

    The message.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. final def serializedSize: Int

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

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

    Permalink
    Definition Classes
    GeneratedMessage
  25. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  26. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  27. def toProtoString: String

    Permalink
    Definition Classes
    ReceivedMessage → GeneratedMessage
  28. def update(ms: (Lens[ReceivedMessage, ReceivedMessage]) ⇒ Mutation[ReceivedMessage]*): ReceivedMessage

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def withAckId(__v: String): ReceivedMessage

    Permalink
  33. def withDeliveryAttempt(__v: Int): ReceivedMessage

    Permalink
  34. def withMessage(__v: PubsubMessage): ReceivedMessage

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

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

    Permalink
    Definition Classes
    ReceivedMessage → GeneratedMessage
  37. 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[ReceivedMessage]

Inherited from Message[ReceivedMessage]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped