Class MessageMetadata (1.8.3)

MessageMetadata(
    partition: google.cloud.pubsublite.types.partition.Partition,
    cursor: google.cloud.pubsublite_v1.types.common.Cursor,
)

Information about a message in Pub/Sub Lite.

Attributes

NameDescription
partition Partition
The partition of the topic that the message was published to.
cursor Cursor
A cursor containing the offset that the message was assigned. If this MessageMetadata was returned for a publish result and publish idempotence was enabled, the offset may be -1 when the message was identified as a duplicate of an already successfully published message, but the server did not have sufficient information to return the message's offset at publish time. Messages received by subscribers will always have the correct offset.

Methods

MessageMetadata

MessageMetadata(
    partition: google.cloud.pubsublite.types.partition.Partition,
    cursor: google.cloud.pubsublite_v1.types.common.Cursor,
)

Create new instance of MessageMetadata(partition, cursor)