public final class Snapshot
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 |
|---|
Snapshot() |
| Modifier and Type | Method and Description |
|---|---|
Snapshot |
clone() |
java.lang.String |
getExpireTime()
The snapshot is guaranteed to exist up until this time.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
See Creating and managing labels.
|
java.lang.String |
getName()
The name of the snapshot.
|
java.lang.String |
getTopic()
The name of the topic from which this snapshot is retaining messages.
|
Snapshot |
set(java.lang.String fieldName,
java.lang.Object value) |
Snapshot |
setExpireTime(java.lang.String expireTime)
The snapshot is guaranteed to exist up until this time.
|
Snapshot |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
See Creating and managing labels.
|
Snapshot |
setName(java.lang.String name)
The name of the snapshot.
|
Snapshot |
setTopic(java.lang.String topic)
The name of the topic from which this snapshot is retaining messages.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getExpireTime()
null for nonepublic Snapshot setExpireTime(java.lang.String expireTime)
expireTime - expireTime or null for nonepublic java.util.Map<java.lang.String,java.lang.String> getLabels()
null for nonepublic Snapshot setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels - labels or null for nonepublic java.lang.String getName()
null for nonepublic Snapshot setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getTopic()
null for nonepublic Snapshot setTopic(java.lang.String topic)
topic - topic or null for nonepublic Snapshot set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Snapshot clone()
clone in class com.google.api.client.json.GenericJson