public final class ReceivedMessage
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Pub/Sub API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
ReceivedMessage() |
Modifier and Type | Method and Description |
---|---|
ReceivedMessage |
clone() |
java.lang.String |
getAckId()
This ID can be used to acknowledge the received message.
|
java.lang.Integer |
getDeliveryAttempt()
Delivery attempt counter is 1 + (the sum of number of NACKs and number of ack_deadline exceeds)
for this message.
|
PubsubMessage |
getMessage()
The message.
|
ReceivedMessage |
set(java.lang.String fieldName,
java.lang.Object value) |
ReceivedMessage |
setAckId(java.lang.String ackId)
This ID can be used to acknowledge the received message.
|
ReceivedMessage |
setDeliveryAttempt(java.lang.Integer deliveryAttempt)
Delivery attempt counter is 1 + (the sum of number of NACKs and number of ack_deadline exceeds)
for this message.
|
ReceivedMessage |
setMessage(PubsubMessage message)
The message.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getAckId()
null
for nonepublic ReceivedMessage setAckId(java.lang.String ackId)
ackId
- ackId or null
for nonepublic java.lang.Integer getDeliveryAttempt()
null
for nonepublic ReceivedMessage setDeliveryAttempt(java.lang.Integer deliveryAttempt)
deliveryAttempt
- deliveryAttempt or null
for nonepublic PubsubMessage getMessage()
null
for nonepublic ReceivedMessage setMessage(PubsubMessage message)
message
- message or null
for nonepublic ReceivedMessage set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public ReceivedMessage clone()
clone
in class com.google.api.client.json.GenericJson