public final class Topic extends 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
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Topic() |
| Modifier and Type | Method and Description |
|---|---|
Topic |
clone() |
String |
getKmsKeyName()
The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published
on this topic.
|
Map<String,String> |
getLabels()
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/labels).
|
MessageStoragePolicy |
getMessageStoragePolicy()
Policy constraining the set of Google Cloud Platform regions where messages published to the
topic may be stored.
|
String |
getName()
Required.
|
Boolean |
getSatisfiesPzs()
Reserved for future use.
|
SchemaSettings |
getSchemaSettings()
Settings for validating messages published against a schema.
|
Topic |
set(String fieldName,
Object value) |
Topic |
setKmsKeyName(String kmsKeyName)
The resource name of the Cloud KMS CryptoKey to be used to protect access to messages published
on this topic.
|
Topic |
setLabels(Map<String,String> labels)
See [Creating and managing labels] (https://cloud.google.com/pubsub/docs/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(String name)
Required.
|
Topic |
setSatisfiesPzs(Boolean satisfiesPzs)
Reserved for future use.
|
Topic |
setSchemaSettings(SchemaSettings schemaSettings)
Settings for validating messages published against a schema.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getKmsKeyName()
null for nonepublic Topic setKmsKeyName(String kmsKeyName)
kmsKeyName - kmsKeyName or null for nonepublic Map<String,String> getLabels()
null for nonepublic Topic setLabels(Map<String,String> labels)
labels - labels or null for nonepublic MessageStoragePolicy getMessageStoragePolicy()
null for nonepublic Topic setMessageStoragePolicy(MessageStoragePolicy messageStoragePolicy)
messageStoragePolicy - messageStoragePolicy or null for nonepublic String getName()
null for nonepublic Topic setName(String name)
name - name or null for nonepublic Boolean getSatisfiesPzs()
null for nonepublic Topic setSatisfiesPzs(Boolean satisfiesPzs)
satisfiesPzs - satisfiesPzs or null for nonepublic SchemaSettings getSchemaSettings()
null for nonepublic Topic setSchemaSettings(SchemaSettings schemaSettings)
schemaSettings - schemaSettings or null for nonepublic Topic set(String fieldName, Object value)
set in class GenericJsonpublic Topic clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.