public abstract class Schema
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Schema.Builder
A
Schema builder. |
static class |
Schema.Field
Representation of a field in a JSON object.
|
static class |
Schema.SchemaReference
A lazy reference to another
Schema within a SchemaRepository. |
| Constructor and Description |
|---|
Schema() |
| Modifier and Type | Method and Description |
|---|---|
static Schema.Builder |
builder() |
abstract com.google.common.collect.ImmutableList<java.lang.String> |
enumDescriptions()
If the schema is an enum, a list of enum value descriptions.
|
abstract com.google.common.collect.ImmutableList<java.lang.String> |
enumValues()
If the schema is an enum, a list of possible enum values in their string representation.
|
abstract com.google.common.collect.ImmutableSortedMap<java.lang.String,Schema.Field> |
fields()
A map from field names to fields for the schema.
|
abstract java.lang.String |
name()
The name of the schema.
|
abstract java.lang.String |
type() |
public abstract java.lang.String name()
public abstract java.lang.String type()
public abstract com.google.common.collect.ImmutableSortedMap<java.lang.String,Schema.Field> fields()
@Nullable public abstract com.google.common.collect.ImmutableList<java.lang.String> enumValues()
@Nullable public abstract com.google.common.collect.ImmutableList<java.lang.String> enumDescriptions()
public static Schema.Builder builder()