public static class MessageType._Builder extends PMessageBuilder<MessageType,MessageType._Field> implements BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a model.MessageType builder.
|
_Builder(MessageType base)
Make a mutating builder off a base model.MessageType.
|
| Modifier and Type | Method and Description |
|---|---|
MessageType._Builder |
addTo(int key,
Object value) |
MessageType._Builder |
addToFields(FieldType... values)
Adds entries to fields.
|
MessageType |
build() |
MessageType._Builder |
clear(int key) |
MessageType._Builder |
clearAnnotations()
Clears the annotations field.
|
MessageType._Builder |
clearDocumentation()
Clears the documentation field.
|
MessageType._Builder |
clearFields()
Clears the fields field.
|
MessageType._Builder |
clearName()
Clears the name field.
|
MessageType._Builder |
clearVariant()
Clears the variant field.
|
PStructDescriptor<MessageType,MessageType._Field> |
descriptor() |
boolean |
equals(Object o) |
String |
getDocumentation()
Gets the value of the contained documentation.
|
String |
getName()
Gets the value of the contained name.
|
MessageVariant |
getVariant()
Gets the value of the contained variant.
|
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 |
isModifiedFields()
Checks if fields has been modified since the _Builder was created.
|
boolean |
isModifiedName()
Checks if name has been modified since the _Builder was created.
|
boolean |
isModifiedVariant()
Checks if variant 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 |
isSetFields()
Checks for presence of the fields field.
|
boolean |
isSetName()
Checks for presence of the name field.
|
boolean |
isSetVariant()
Checks for presence of the variant field.
|
MessageType._Builder |
merge(MessageType from) |
Map<String,String> |
mutableAnnotations()
Gets the builder for the contained annotations.
|
List<FieldType> |
mutableFields()
Gets the builder for the contained fields.
|
PMessageBuilder |
mutator(int key) |
MessageType._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to annotations.
|
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
MessageType._Builder |
set(int key,
Object value) |
MessageType._Builder |
setAnnotations(Map<String,String> value)
Sets the value of annotations.
|
MessageType._Builder |
setDocumentation(String value)
Sets the value of documentation.
|
MessageType._Builder |
setFields(Collection<FieldType> value)
Sets the value of fields.
|
MessageType._Builder |
setName(String value)
Sets the value of name.
|
MessageType._Builder |
setVariant(MessageVariant value)
Sets the value of variant.
|
boolean |
valid() |
void |
validate() |
addTo, clear, isModified, isSet, modifiedFields, mutator, presentFields, setpublic _Builder()
public _Builder(MessageType base)
base - The base MessageType@Nonnull public MessageType._Builder merge(MessageType from)
merge in class PMessageBuilder<MessageType,MessageType._Field>@Nonnull public MessageType._Builder setDocumentation(String value)
value - The new valuepublic boolean isSetDocumentation()
public boolean isModifiedDocumentation()
@Nonnull public MessageType._Builder clearDocumentation()
public String getDocumentation()
@Nonnull public MessageType._Builder setVariant(MessageVariant value)
value - The new valuepublic boolean isSetVariant()
public boolean isModifiedVariant()
@Nonnull public MessageType._Builder clearVariant()
public MessageVariant getVariant()
@Nonnull public MessageType._Builder setName(String value)
value - The new valuepublic boolean isSetName()
public boolean isModifiedName()
@Nonnull public MessageType._Builder clearName()
public String getName()
@Nonnull public MessageType._Builder setFields(Collection<FieldType> value)
value - The new value@Nonnull public MessageType._Builder addToFields(FieldType... values)
values - The added valuepublic boolean isSetFields()
public boolean isModifiedFields()
@Nonnull public MessageType._Builder clearFields()
@Nonnull public List<FieldType> mutableFields()
@Nonnull public MessageType._Builder setAnnotations(Map<String,String> value)
value - The new value@Nonnull public MessageType._Builder putInAnnotations(String key, String value)
key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
public boolean isModifiedAnnotations()
@Nonnull public MessageType._Builder clearAnnotations()
@Nonnull public Map<String,String> mutableAnnotations()
public PMessageBuilder mutator(int key)
mutator in class PMessageBuilder<MessageType,MessageType._Field>@Nonnull public MessageType._Builder set(int key, Object value)
set in class PMessageBuilder<MessageType,MessageType._Field>public boolean isSet(int key)
isSet in class PMessageBuilder<MessageType,MessageType._Field>public boolean isModified(int key)
isModified in class PMessageBuilder<MessageType,MessageType._Field>public MessageType._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<MessageType,MessageType._Field>@Nonnull public MessageType._Builder clear(int key)
clear in class PMessageBuilder<MessageType,MessageType._Field>public boolean valid()
valid in class PMessageBuilder<MessageType,MessageType._Field>public void validate()
validate in class PMessageBuilder<MessageType,MessageType._Field>@Nonnull public PStructDescriptor<MessageType,MessageType._Field> descriptor()
descriptor in class PMessageBuilder<MessageType,MessageType._Field>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface BinaryReaderIOExceptionpublic MessageType build()
build in interface PBuilder<MessageType>Copyright © 2015–2018 morimekta.net. All rights reserved.