public abstract class FieldElement extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FieldElement.Builder |
static class |
FieldElement.Label |
Modifier and Type | Method and Description |
---|---|
static FieldElement.Builder |
builder() |
abstract String |
documentation() |
OptionElement |
getDefault()
Returns the
default option value or null . |
boolean |
isDeprecated()
Returns true when the
deprecated option is present and set to true. |
boolean |
isPacked()
Returns true when the
packed option is present and set to true. |
abstract FieldElement.Label |
label() |
abstract String |
name() |
abstract List<OptionElement> |
options() |
abstract int |
tag() |
String |
toSchema() |
abstract DataType |
type()
Returns the type of this field.
|
public static FieldElement.Builder builder()
public abstract FieldElement.Label label()
public abstract DataType type()
int64
or bytes
.public abstract String name()
public abstract int tag()
public abstract String documentation()
public abstract List<OptionElement> options()
public final boolean isDeprecated()
deprecated
option is present and set to true.public final boolean isPacked()
packed
option is present and set to true.public final OptionElement getDefault()
default
option value or null
.public final String toSchema()
Copyright © 2015 Square, Inc.. All Rights Reserved.