public final class SchemaSettings 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 |
|---|
SchemaSettings() |
| Modifier and Type | Method and Description |
|---|---|
SchemaSettings |
clone() |
String |
getEncoding()
The encoding of messages validated against `schema`.
|
String |
getFirstRevisionId()
The minimum (inclusive) revision allowed for validating messages.
|
String |
getLastRevisionId()
The maximum (inclusive) revision allowed for validating messages.
|
String |
getSchema()
Required.
|
SchemaSettings |
set(String fieldName,
Object value) |
SchemaSettings |
setEncoding(String encoding)
The encoding of messages validated against `schema`.
|
SchemaSettings |
setFirstRevisionId(String firstRevisionId)
The minimum (inclusive) revision allowed for validating messages.
|
SchemaSettings |
setLastRevisionId(String lastRevisionId)
The maximum (inclusive) revision allowed for validating messages.
|
SchemaSettings |
setSchema(String schema)
Required.
|
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 getEncoding()
null for nonepublic SchemaSettings setEncoding(String encoding)
encoding - encoding or null for nonepublic String getFirstRevisionId()
null for nonepublic SchemaSettings setFirstRevisionId(String firstRevisionId)
firstRevisionId - firstRevisionId or null for nonepublic String getLastRevisionId()
null for nonepublic SchemaSettings setLastRevisionId(String lastRevisionId)
lastRevisionId - lastRevisionId or null for nonepublic String getSchema()
null for nonepublic SchemaSettings setSchema(String schema)
schema - schema or null for nonepublic SchemaSettings set(String fieldName, Object value)
set in class GenericJsonpublic SchemaSettings clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.