public static final class JsonSchema.Variant extends GenericJson
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonSchema.Variant.Map
Model definition for JsonSchemaVariantMap.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Variant() |
| Modifier and Type | Method and Description |
|---|---|
JsonSchema.Variant |
clone() |
String |
getDiscriminant()
The name of the type discriminant property.
|
List<JsonSchema.Variant.Map> |
getMap()
The map of discriminant value to schema to use for parsing..
|
JsonSchema.Variant |
set(String fieldName,
Object value) |
JsonSchema.Variant |
setDiscriminant(String discriminant)
The name of the type discriminant property.
|
JsonSchema.Variant |
setMap(List<JsonSchema.Variant.Map> map)
The map of discriminant value to schema to use for parsing..
|
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 getDiscriminant()
null for nonepublic JsonSchema.Variant setDiscriminant(String discriminant)
discriminant - discriminant or null for nonepublic List<JsonSchema.Variant.Map> getMap()
null for nonepublic JsonSchema.Variant setMap(List<JsonSchema.Variant.Map> map)
map - map or null for nonepublic JsonSchema.Variant set(String fieldName, Object value)
set in class GenericJsonpublic JsonSchema.Variant clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.