public final class PullBatchRequest
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 Google Cloud Pub/Sub API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
PullBatchRequest() |
Modifier and Type | Method and Description |
---|---|
PullBatchRequest |
clone() |
java.lang.Integer |
getMaxEvents()
The maximum number of PubsubEvents returned for this request.
|
java.lang.Boolean |
getReturnImmediately()
If this is specified as true the system will respond immediately even if it is not able to
return a message in the Pull response.
|
java.lang.String |
getSubscription()
The subscription from which messages should be pulled.
|
PullBatchRequest |
set(java.lang.String fieldName,
java.lang.Object value) |
PullBatchRequest |
setMaxEvents(java.lang.Integer maxEvents)
The maximum number of PubsubEvents returned for this request.
|
PullBatchRequest |
setReturnImmediately(java.lang.Boolean returnImmediately)
If this is specified as true the system will respond immediately even if it is not able to
return a message in the Pull response.
|
PullBatchRequest |
setSubscription(java.lang.String subscription)
The subscription from which messages should be pulled.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.Integer getMaxEvents()
null
for nonepublic PullBatchRequest setMaxEvents(java.lang.Integer maxEvents)
maxEvents
- maxEvents or null
for nonepublic java.lang.Boolean getReturnImmediately()
null
for nonepublic PullBatchRequest setReturnImmediately(java.lang.Boolean returnImmediately)
returnImmediately
- returnImmediately or null
for nonepublic java.lang.String getSubscription()
null
for nonepublic PullBatchRequest setSubscription(java.lang.String subscription)
subscription
- subscription or null
for nonepublic PullBatchRequest set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public PullBatchRequest clone()
clone
in class com.google.api.client.json.GenericJson