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