public static class FieldType._Builder extends PMessageBuilder<FieldType,FieldType._Field> implements BinaryReader
Fields without key is assigned values ranging from 65335 and down (2^16-1) in order of appearance. Because of the "in order of appearance" the field *must* be filled by the IDL parser.
Consts are always given the key '0'.
| Constructor and Description |
|---|
_Builder()
Make a model.FieldType builder.
|
_Builder(FieldType base)
Make a mutating builder off a base model.FieldType.
|
| Modifier and Type | Method and Description |
|---|---|
FieldType._Builder |
addTo(int key,
Object value) |
FieldType |
build() |
FieldType._Builder |
clear(int key) |
FieldType._Builder |
clearAnnotations()
Clears the annotations field.
|
FieldType._Builder |
clearDefaultValue()
Clears the default_value field.
|
FieldType._Builder |
clearDocumentation()
Clears the documentation field.
|
FieldType._Builder |
clearId()
Clears the id field.
|
FieldType._Builder |
clearName()
Clears the name field.
|
FieldType._Builder |
clearRequirement()
Clears the requirement field.
|
FieldType._Builder |
clearStartLineNo()
Note the start of the default value in the parsed thrift file, this
can be used for making more accurate exception / parse data from the
const parser.
|
FieldType._Builder |
clearStartLinePos()
Clears the start_line_pos field.
|
FieldType._Builder |
clearType()
Clears the type field.
|
PStructDescriptor<FieldType,FieldType._Field> |
descriptor() |
boolean |
equals(Object o) |
String |
getDefaultValue()
Gets the value of the contained default_value.
|
String |
getDocumentation()
Gets the value of the contained documentation.
|
int |
getId()
Gets the value of the contained id.
|
String |
getName()
Gets the value of the contained name.
|
FieldRequirement |
getRequirement()
Gets the value of the contained requirement.
|
int |
getStartLineNo()
Note the start of the default value in the parsed thrift file, this
can be used for making more accurate exception / parse data from the
const parser.
|
int |
getStartLinePos()
Gets the value of the contained start_line_pos.
|
String |
getType()
Gets the value of the contained type.
|
int |
hashCode() |
boolean |
isModified(int key) |
boolean |
isModifiedAnnotations()
Checks if annotations has been modified since the _Builder was created.
|
boolean |
isModifiedDefaultValue()
Checks if default_value has been modified since the _Builder was created.
|
boolean |
isModifiedDocumentation()
Checks if documentation has been modified since the _Builder was created.
|
boolean |
isModifiedId()
Checks if id has been modified since the _Builder was created.
|
boolean |
isModifiedName()
Checks if name has been modified since the _Builder was created.
|
boolean |
isModifiedRequirement()
Checks if requirement has been modified since the _Builder was created.
|
boolean |
isModifiedStartLineNo()
Note the start of the default value in the parsed thrift file, this
can be used for making more accurate exception / parse data from the
const parser.
|
boolean |
isModifiedStartLinePos()
Checks if start_line_pos has been modified since the _Builder was created.
|
boolean |
isModifiedType()
Checks if type has been modified since the _Builder was created.
|
boolean |
isSet(int key) |
boolean |
isSetAnnotations()
Checks for presence of the annotations field.
|
boolean |
isSetDefaultValue()
Checks for presence of the default_value field.
|
boolean |
isSetDocumentation()
Checks for presence of the documentation field.
|
boolean |
isSetId()
Checks for presence of the id field.
|
boolean |
isSetName()
Checks for presence of the name field.
|
boolean |
isSetRequirement()
Checks for presence of the requirement field.
|
boolean |
isSetStartLineNo()
Note the start of the default value in the parsed thrift file, this
can be used for making more accurate exception / parse data from the
const parser.
|
boolean |
isSetStartLinePos()
Checks for presence of the start_line_pos field.
|
boolean |
isSetType()
Checks for presence of the type field.
|
FieldType._Builder |
merge(FieldType from) |
Map<String,String> |
mutableAnnotations()
Gets the builder for the contained annotations.
|
PMessageBuilder |
mutator(int key) |
FieldType._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to annotations.
|
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
FieldType._Builder |
set(int key,
Object value) |
FieldType._Builder |
setAnnotations(Map<String,String> value)
Sets the value of annotations.
|
FieldType._Builder |
setDefaultValue(String value)
Sets the value of default_value.
|
FieldType._Builder |
setDocumentation(String value)
Sets the value of documentation.
|
FieldType._Builder |
setId(int value)
Sets the value of id.
|
FieldType._Builder |
setName(String value)
Sets the value of name.
|
FieldType._Builder |
setRequirement(FieldRequirement value)
Sets the value of requirement.
|
FieldType._Builder |
setStartLineNo(int value)
Note the start of the default value in the parsed thrift file, this
can be used for making more accurate exception / parse data from the
const parser.
|
FieldType._Builder |
setStartLinePos(int value)
Sets the value of start_line_pos.
|
FieldType._Builder |
setType(String value)
Sets the value of type.
|
boolean |
valid() |
void |
validate() |
addTo, clear, isModified, isSet, modifiedFields, mutator, presentFields, setpublic _Builder()
public _Builder(FieldType base)
base - The base FieldType@Nonnull public FieldType._Builder merge(FieldType from)
merge in class PMessageBuilder<FieldType,FieldType._Field>@Nonnull public FieldType._Builder setDocumentation(String value)
value - The new valuepublic boolean isSetDocumentation()
public boolean isModifiedDocumentation()
@Nonnull public FieldType._Builder clearDocumentation()
public String getDocumentation()
@Nonnull public FieldType._Builder setId(int value)
value - The new valuepublic boolean isSetId()
public boolean isModifiedId()
@Nonnull public FieldType._Builder clearId()
public int getId()
@Nonnull public FieldType._Builder setRequirement(FieldRequirement value)
value - The new valuepublic boolean isSetRequirement()
public boolean isModifiedRequirement()
@Nonnull public FieldType._Builder clearRequirement()
public FieldRequirement getRequirement()
@Nonnull public FieldType._Builder setType(String value)
value - The new valuepublic boolean isSetType()
public boolean isModifiedType()
@Nonnull public FieldType._Builder clearType()
public String getType()
@Nonnull public FieldType._Builder setName(String value)
value - The new valuepublic boolean isSetName()
public boolean isModifiedName()
@Nonnull public FieldType._Builder clearName()
public String getName()
@Nonnull public FieldType._Builder setDefaultValue(String value)
value - The new valuepublic boolean isSetDefaultValue()
public boolean isModifiedDefaultValue()
@Nonnull public FieldType._Builder clearDefaultValue()
public String getDefaultValue()
@Nonnull public FieldType._Builder setAnnotations(Map<String,String> value)
value - The new value@Nonnull public FieldType._Builder putInAnnotations(String key, String value)
key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
public boolean isModifiedAnnotations()
@Nonnull public FieldType._Builder clearAnnotations()
@Nonnull public Map<String,String> mutableAnnotations()
@Nonnull public FieldType._Builder setStartLineNo(int value)
value - The new valuepublic boolean isSetStartLineNo()
public boolean isModifiedStartLineNo()
@Nonnull public FieldType._Builder clearStartLineNo()
public int getStartLineNo()
@Nonnull public FieldType._Builder setStartLinePos(int value)
value - The new valuepublic boolean isSetStartLinePos()
public boolean isModifiedStartLinePos()
@Nonnull public FieldType._Builder clearStartLinePos()
public int getStartLinePos()
public PMessageBuilder mutator(int key)
mutator in class PMessageBuilder<FieldType,FieldType._Field>@Nonnull public FieldType._Builder set(int key, Object value)
set in class PMessageBuilder<FieldType,FieldType._Field>public boolean isSet(int key)
isSet in class PMessageBuilder<FieldType,FieldType._Field>public boolean isModified(int key)
isModified in class PMessageBuilder<FieldType,FieldType._Field>public FieldType._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<FieldType,FieldType._Field>@Nonnull public FieldType._Builder clear(int key)
clear in class PMessageBuilder<FieldType,FieldType._Field>public boolean valid()
valid in class PMessageBuilder<FieldType,FieldType._Field>public void validate()
validate in class PMessageBuilder<FieldType,FieldType._Field>@Nonnull public PStructDescriptor<FieldType,FieldType._Field> descriptor()
descriptor in class PMessageBuilder<FieldType,FieldType._Field>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface BinaryReaderIOExceptionCopyright © 2015–2017 morimekta.net. All rights reserved.