public static class EnumValue._Builder extends PMessageBuilder<EnumValue,EnumValue._Field> implements BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a model.EnumValue builder.
|
_Builder(EnumValue base)
Make a mutating builder off a base model.EnumValue.
|
| Modifier and Type | Method and Description |
|---|---|
EnumValue._Builder |
addTo(int key,
Object value) |
EnumValue |
build() |
EnumValue._Builder |
clear(int key) |
EnumValue._Builder |
clearAnnotations()
Clears the annotations field.
|
EnumValue._Builder |
clearDocumentation()
Clears the documentation field.
|
EnumValue._Builder |
clearId()
Clears the id field.
|
EnumValue._Builder |
clearName()
Clears the name field.
|
PStructDescriptor<EnumValue,EnumValue._Field> |
descriptor() |
boolean |
equals(Object o) |
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.
|
int |
hashCode() |
boolean |
isModified(int key) |
boolean |
isModifiedAnnotations()
Checks if annotations 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 |
isSet(int key) |
boolean |
isSetAnnotations()
Checks for presence of the annotations 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.
|
EnumValue._Builder |
merge(EnumValue from) |
Map<String,String> |
mutableAnnotations()
Gets the builder for the contained annotations.
|
PMessageBuilder |
mutator(int key) |
EnumValue._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to annotations.
|
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
EnumValue._Builder |
set(int key,
Object value) |
EnumValue._Builder |
setAnnotations(Map<String,String> value)
Sets the value of annotations.
|
EnumValue._Builder |
setDocumentation(String value)
Sets the value of documentation.
|
EnumValue._Builder |
setId(int value)
Sets the value of id.
|
EnumValue._Builder |
setName(String value)
Sets the value of name.
|
boolean |
valid() |
void |
validate() |
addTo, clear, isModified, isSet, modifiedFields, mutator, presentFields, setpublic _Builder()
public _Builder(EnumValue base)
base - The base EnumValue@Nonnull public EnumValue._Builder merge(EnumValue from)
merge in class PMessageBuilder<EnumValue,EnumValue._Field>@Nonnull public EnumValue._Builder setDocumentation(String value)
value - The new valuepublic boolean isSetDocumentation()
public boolean isModifiedDocumentation()
@Nonnull public EnumValue._Builder clearDocumentation()
public String getDocumentation()
@Nonnull public EnumValue._Builder setName(String value)
value - The new valuepublic boolean isSetName()
public boolean isModifiedName()
@Nonnull public EnumValue._Builder clearName()
public String getName()
@Nonnull public EnumValue._Builder setId(int value)
value - The new valuepublic boolean isSetId()
public boolean isModifiedId()
@Nonnull public EnumValue._Builder clearId()
public int getId()
@Nonnull public EnumValue._Builder setAnnotations(Map<String,String> value)
value - The new value@Nonnull public EnumValue._Builder putInAnnotations(String key, String value)
key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
public boolean isModifiedAnnotations()
@Nonnull public EnumValue._Builder clearAnnotations()
@Nonnull public Map<String,String> mutableAnnotations()
public PMessageBuilder mutator(int key)
mutator in class PMessageBuilder<EnumValue,EnumValue._Field>@Nonnull public EnumValue._Builder set(int key, Object value)
set in class PMessageBuilder<EnumValue,EnumValue._Field>public boolean isSet(int key)
isSet in class PMessageBuilder<EnumValue,EnumValue._Field>public boolean isModified(int key)
isModified in class PMessageBuilder<EnumValue,EnumValue._Field>public EnumValue._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<EnumValue,EnumValue._Field>@Nonnull public EnumValue._Builder clear(int key)
clear in class PMessageBuilder<EnumValue,EnumValue._Field>public boolean valid()
valid in class PMessageBuilder<EnumValue,EnumValue._Field>public void validate()
validate in class PMessageBuilder<EnumValue,EnumValue._Field>@Nonnull public PStructDescriptor<EnumValue,EnumValue._Field> descriptor()
descriptor in class PMessageBuilder<EnumValue,EnumValue._Field>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface BinaryReaderIOExceptionCopyright © 2015–2018 morimekta.net. All rights reserved.