Class/Object

com.google.pubsub.v1.pubsub

PubsubMessage

Related Docs: object PubsubMessage | package pubsub

Permalink

final case class PubsubMessage(data: ByteString = ..., attributes: Map[String, String] = ..., messageId: String = "", publishTime: Option[Timestamp] = _root_.scala.None, orderingKey: String = "") extends GeneratedMessage with Message[PubsubMessage] with Updatable[PubsubMessage] with Product with Serializable

A message that is published by publishers and consumed by subscribers. The message must contain either a non-empty data field or at least one attribute. Note that client libraries represent this object differently depending on the language. See the corresponding [client library documentation](https://cloud.google.com/pubsub/docs/reference/libraries) for more information. See [quotas and limits] (https://cloud.google.com/pubsub/quotas) for more information about message limits.

data

The message data field. If this field is empty, the message must contain at least one attribute.

attributes

Attributes for this message. If this field is empty, the message must contain non-empty data. This can be used to filter messages on the subscription.

messageId

ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a PubsubMessage via a Pull call or a push delivery. It must not be populated by the publisher in a Publish call.

publishTime

The time at which the message was published, populated by the server when it receives the Publish call. It must not be populated by the publisher in a Publish call.

orderingKey

If non-empty, identifies related messages for which publish order should be respected. If a Subscription has enable_message_ordering set to true, messages published with the same non-empty ordering_key value will be delivered to subscribers in the order in which they are received by the Pub/Sub system. All PubsubMessages published in a given PublishRequest must specify the same ordering_key value.

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[PubsubMessage], Message[PubsubMessage], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PubsubMessage
  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 PubsubMessage(data: ByteString = ..., attributes: Map[String, String] = ..., messageId: String = "", publishTime: Option[Timestamp] = _root_.scala.None, orderingKey: String = "")

    Permalink

    data

    The message data field. If this field is empty, the message must contain at least one attribute.

    attributes

    Attributes for this message. If this field is empty, the message must contain non-empty data. This can be used to filter messages on the subscription.

    messageId

    ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a PubsubMessage via a Pull call or a push delivery. It must not be populated by the publisher in a Publish call.

    publishTime

    The time at which the message was published, populated by the server when it receives the Publish call. It must not be populated by the publisher in a Publish call.

    orderingKey

    If non-empty, identifies related messages for which publish order should be respected. If a Subscription has enable_message_ordering set to true, messages published with the same non-empty ordering_key value will be delivered to subscribers in the order in which they are received by the Pub/Sub system. All PubsubMessages published in a given PublishRequest must specify the same ordering_key value.

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 addAllAttributes(__vs: Iterable[(String, String)]): PubsubMessage

    Permalink
  5. def addAttributes(__vs: (String, String)*): PubsubMessage

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val attributes: Map[String, String]

    Permalink

    Attributes for this message.

    Attributes for this message. If this field is empty, the message must contain non-empty data. This can be used to filter messages on the subscription.

  8. def clearAttributes: PubsubMessage

    Permalink
  9. def clearPublishTime: PubsubMessage

    Permalink
  10. def clone(): AnyRef

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

    Permalink
    Definition Classes
    PubsubMessage → GeneratedMessage
  12. val data: ByteString

    Permalink

    The message data field.

    The message data field. If this field is empty, the message must contain at least one attribute.

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

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

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

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

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

    Permalink
    Definition Classes
    PubsubMessage → GeneratedMessage
  18. def getPublishTime: Timestamp

    Permalink
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def mergeFrom(_input__: CodedInputStream): PubsubMessage

    Permalink
    Definition Classes
    PubsubMessage → Message
  21. val messageId: String

    Permalink

    ID of this message, assigned by the server when the message is published.

    ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a PubsubMessage via a Pull call or a push delivery. It must not be populated by the publisher in a Publish call.

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

    Permalink

    If non-empty, identifies related messages for which publish order should be respected.

    If non-empty, identifies related messages for which publish order should be respected. If a Subscription has enable_message_ordering set to true, messages published with the same non-empty ordering_key value will be delivered to subscribers in the order in which they are received by the Pub/Sub system. All PubsubMessages published in a given PublishRequest must specify the same ordering_key value.

  26. val publishTime: Option[Timestamp]

    Permalink

    The time at which the message was published, populated by the server when it receives the Publish call.

    The time at which the message was published, populated by the server when it receives the Publish call. It must not be populated by the publisher in a Publish call.

  27. final def serializedSize: Int

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

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

    Permalink
    Definition Classes
    GeneratedMessage
  30. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  31. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  32. def toProtoString: String

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def withAttributes(__v: Map[String, String]): PubsubMessage

    Permalink
  38. def withData(__v: ByteString): PubsubMessage

    Permalink
  39. def withMessageId(__v: String): PubsubMessage

    Permalink
  40. def withOrderingKey(__v: String): PubsubMessage

    Permalink
  41. def withPublishTime(__v: Timestamp): PubsubMessage

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

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

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

Inherited from Message[PubsubMessage]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped