public final class Topic
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 |
|---|
Topic() |
| Modifier and Type | Method and Description |
|---|---|
Topic |
clone() |
java.lang.String |
getKmsKeyName()
The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published
on this topic.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
See Creating and managing labels.
|
MessageStoragePolicy |
getMessageStoragePolicy()
Policy constraining the set of Google Cloud Platform regions where messages published to the
topic may be stored.
|
java.lang.String |
getName()
Required.
|
Topic |
set(java.lang.String fieldName,
java.lang.Object value) |
Topic |
setKmsKeyName(java.lang.String kmsKeyName)
The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published
on this topic.
|
Topic |
setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
See Creating and managing labels.
|
Topic |
setMessageStoragePolicy(MessageStoragePolicy messageStoragePolicy)
Policy constraining the set of Google Cloud Platform regions where messages published to the
topic may be stored.
|
Topic |
setName(java.lang.String name)
Required.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getKmsKeyName()
null for nonepublic Topic setKmsKeyName(java.lang.String kmsKeyName)
kmsKeyName - kmsKeyName or null for nonepublic java.util.Map<java.lang.String,java.lang.String> getLabels()
null for nonepublic Topic setLabels(java.util.Map<java.lang.String,java.lang.String> labels)
labels - labels or null for nonepublic MessageStoragePolicy getMessageStoragePolicy()
null for nonepublic Topic setMessageStoragePolicy(MessageStoragePolicy messageStoragePolicy)
messageStoragePolicy - messageStoragePolicy or null for nonepublic java.lang.String getName()
null for nonepublic Topic setName(java.lang.String name)
name - name or null for nonepublic Topic set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Topic clone()
clone in class com.google.api.client.json.GenericJson