PullResponse

Either a

PubsubMessage

or a truncation event. One of these two must be populated.

JSON representation
{
  "ackId": string,
  "pubsubEvent": {
    object (PubsubEvent)
  }
}
Fields
ackId

string

This ID must be used to acknowledge the received event or message.

pubsubEvent

object (PubsubEvent)

A pubsub message or truncation event.

PubsubEvent

An event indicating a received message or truncation event.

JSON representation
{
  "subscription": string,

  // Union field type can be only one of the following:
  "message": {
    object (PubsubMessage)
  },
  "truncated": boolean,
  "deleted": boolean
  // End of list of possible types for union field type.
}
Fields
subscription

string

The subscription that received the event.

Union field type.

type can be only one of the following:

message

object (PubsubMessage)

A received message.

truncated

boolean

Indicates that this subscription has been truncated.

deleted

boolean

Indicates that this subscription has been deleted. (Note that pull subscribers will always receive NOT_FOUND in response in their pull request on the subscription, rather than seeing this boolean.)