public static class FunctionType._Builder extends PMessageBuilder<FunctionType,FunctionType._Field> implements BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a model.FunctionType builder.
|
_Builder(FunctionType base)
Make a mutating builder off a base model.FunctionType.
|
| Modifier and Type | Method and Description |
|---|---|
FunctionType._Builder |
addTo(int key,
Object value) |
FunctionType._Builder |
addToExceptions(FieldType... values)
Adds entries to exceptions.
|
FunctionType._Builder |
addToParams(FieldType... values)
Adds entries to params.
|
FunctionType |
build() |
FunctionType._Builder |
clear(int key) |
FunctionType._Builder |
clearAnnotations()
Clears the annotations field.
|
FunctionType._Builder |
clearDocumentation()
Clears the documentation field.
|
FunctionType._Builder |
clearExceptions()
Clears the exceptions field.
|
FunctionType._Builder |
clearName()
Clears the name field.
|
FunctionType._Builder |
clearOneWay()
Clears the one_way field.
|
FunctionType._Builder |
clearParams()
Clears the params field.
|
FunctionType._Builder |
clearReturnType()
Clears the return_type field.
|
PStructDescriptor<FunctionType,FunctionType._Field> |
descriptor() |
boolean |
equals(Object o) |
String |
getDocumentation()
Gets the value of the contained documentation.
|
String |
getName()
Gets the value of the contained name.
|
boolean |
getOneWay()
Gets the value of the contained one_way.
|
String |
getReturnType()
Gets the value of the contained return_type.
|
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 |
isModifiedExceptions()
Checks if exceptions has been modified since the _Builder was created.
|
boolean |
isModifiedName()
Checks if name has been modified since the _Builder was created.
|
boolean |
isModifiedOneWay()
Checks if one_way has been modified since the _Builder was created.
|
boolean |
isModifiedParams()
Checks if params has been modified since the _Builder was created.
|
boolean |
isModifiedReturnType()
Checks if return_type 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 |
isSetExceptions()
Checks for presence of the exceptions field.
|
boolean |
isSetName()
Checks for presence of the name field.
|
boolean |
isSetOneWay()
Checks for presence of the one_way field.
|
boolean |
isSetParams()
Checks for presence of the params field.
|
boolean |
isSetReturnType()
Checks for presence of the return_type field.
|
FunctionType._Builder |
merge(FunctionType from) |
Map<String,String> |
mutableAnnotations()
Gets the builder for the contained annotations.
|
List<FieldType> |
mutableExceptions()
Gets the builder for the contained exceptions.
|
List<FieldType> |
mutableParams()
Gets the builder for the contained params.
|
PMessageBuilder |
mutator(int key) |
FunctionType._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to annotations.
|
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
FunctionType._Builder |
set(int key,
Object value) |
FunctionType._Builder |
setAnnotations(Map<String,String> value)
Sets the value of annotations.
|
FunctionType._Builder |
setDocumentation(String value)
Sets the value of documentation.
|
FunctionType._Builder |
setExceptions(Collection<FieldType> value)
Sets the value of exceptions.
|
FunctionType._Builder |
setName(String value)
Sets the value of name.
|
FunctionType._Builder |
setOneWay(boolean value)
Sets the value of one_way.
|
FunctionType._Builder |
setParams(Collection<FieldType> value)
Sets the value of params.
|
FunctionType._Builder |
setReturnType(String value)
Sets the value of return_type.
|
boolean |
valid() |
void |
validate() |
addTo, clear, isModified, isSet, modifiedFields, mutator, presentFields, setpublic _Builder()
public _Builder(FunctionType base)
base - The base FunctionType@Nonnull public FunctionType._Builder merge(FunctionType from)
merge in class PMessageBuilder<FunctionType,FunctionType._Field>@Nonnull public FunctionType._Builder setDocumentation(String value)
value - The new valuepublic boolean isSetDocumentation()
public boolean isModifiedDocumentation()
@Nonnull public FunctionType._Builder clearDocumentation()
public String getDocumentation()
@Nonnull public FunctionType._Builder setOneWay(boolean value)
value - The new valuepublic boolean isSetOneWay()
public boolean isModifiedOneWay()
@Nonnull public FunctionType._Builder clearOneWay()
public boolean getOneWay()
@Nonnull public FunctionType._Builder setReturnType(String value)
value - The new valuepublic boolean isSetReturnType()
public boolean isModifiedReturnType()
@Nonnull public FunctionType._Builder clearReturnType()
public String getReturnType()
@Nonnull public FunctionType._Builder setName(String value)
value - The new valuepublic boolean isSetName()
public boolean isModifiedName()
@Nonnull public FunctionType._Builder clearName()
public String getName()
@Nonnull public FunctionType._Builder setParams(Collection<FieldType> value)
value - The new value@Nonnull public FunctionType._Builder addToParams(FieldType... values)
values - The added valuepublic boolean isSetParams()
public boolean isModifiedParams()
@Nonnull public FunctionType._Builder clearParams()
@Nonnull public List<FieldType> mutableParams()
@Nonnull public FunctionType._Builder setExceptions(Collection<FieldType> value)
value - The new value@Nonnull public FunctionType._Builder addToExceptions(FieldType... values)
values - The added valuepublic boolean isSetExceptions()
public boolean isModifiedExceptions()
@Nonnull public FunctionType._Builder clearExceptions()
@Nonnull public List<FieldType> mutableExceptions()
@Nonnull public FunctionType._Builder setAnnotations(Map<String,String> value)
value - The new value@Nonnull public FunctionType._Builder putInAnnotations(String key, String value)
key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
public boolean isModifiedAnnotations()
@Nonnull public FunctionType._Builder clearAnnotations()
@Nonnull public Map<String,String> mutableAnnotations()
public PMessageBuilder mutator(int key)
mutator in class PMessageBuilder<FunctionType,FunctionType._Field>@Nonnull public FunctionType._Builder set(int key, Object value)
set in class PMessageBuilder<FunctionType,FunctionType._Field>public boolean isSet(int key)
isSet in class PMessageBuilder<FunctionType,FunctionType._Field>public boolean isModified(int key)
isModified in class PMessageBuilder<FunctionType,FunctionType._Field>public FunctionType._Builder addTo(int key, Object value)
addTo in class PMessageBuilder<FunctionType,FunctionType._Field>@Nonnull public FunctionType._Builder clear(int key)
clear in class PMessageBuilder<FunctionType,FunctionType._Field>public boolean valid()
valid in class PMessageBuilder<FunctionType,FunctionType._Field>public void validate()
validate in class PMessageBuilder<FunctionType,FunctionType._Field>@Nonnull public PStructDescriptor<FunctionType,FunctionType._Field> descriptor()
descriptor in class PMessageBuilder<FunctionType,FunctionType._Field>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface BinaryReaderIOExceptionpublic FunctionType build()
build in interface PBuilder<FunctionType>Copyright © 2015–2017 morimekta.net. All rights reserved.