public final class Subscription
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: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Subscription() |
| Modifier and Type | Method and Description |
|---|---|
Subscription |
clone() |
java.lang.Integer |
getAckDeadlineSeconds()
This value is the maximum time after a subscriber receives a message before the subscriber
should acknowledge the message.
|
java.lang.String |
getName()
The name of the subscription.
|
PushConfig |
getPushConfig()
If push delivery is used with this subscription, this field is used to configure it.
|
java.lang.String |
getTopic()
The name of the topic from which this subscription is receiving messages.
|
Subscription |
set(java.lang.String fieldName,
java.lang.Object value) |
Subscription |
setAckDeadlineSeconds(java.lang.Integer ackDeadlineSeconds)
This value is the maximum time after a subscriber receives a message before the subscriber
should acknowledge the message.
|
Subscription |
setName(java.lang.String name)
The name of the subscription.
|
Subscription |
setPushConfig(PushConfig pushConfig)
If push delivery is used with this subscription, this field is used to configure it.
|
Subscription |
setTopic(java.lang.String topic)
The name of the topic from which this subscription is receiving messages.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.Integer getAckDeadlineSeconds()
null for nonepublic Subscription setAckDeadlineSeconds(java.lang.Integer ackDeadlineSeconds)
ackDeadlineSeconds - ackDeadlineSeconds or null for nonepublic java.lang.String getName()
null for nonepublic Subscription setName(java.lang.String name)
name - name or null for nonepublic PushConfig getPushConfig()
null for nonepublic Subscription setPushConfig(PushConfig pushConfig)
pushConfig - pushConfig or null for nonepublic java.lang.String getTopic()
null for nonepublic Subscription setTopic(java.lang.String topic)
topic - topic or null for nonepublic Subscription set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Subscription clone()
clone in class com.google.api.client.json.GenericJson