public static class ServiceType._Builder extends PMessageBuilder<ServiceType,ServiceType._Field> implements BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a pmodel.ServiceType builder instance.
|
_Builder(ServiceType base)
Make a mutating builder off a base pmodel.ServiceType.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceType._Builder |
addTo(int key,
Object value) |
ServiceType._Builder |
addToMethods(FunctionType... values)
Adds entries to the
methods list. |
ServiceType |
build() |
ServiceType._Builder |
clear(int key) |
ServiceType._Builder |
clearAnnotations()
Clear the
annotations field. |
ServiceType._Builder |
clearDocumentation()
Clear the
documentation field. |
ServiceType._Builder |
clearEndPos()
Clear the
end_pos field. |
ServiceType._Builder |
clearExtend()
Clear the
extend field. |
ServiceType._Builder |
clearMethods()
Clear the
methods field. |
ServiceType._Builder |
clearName()
Clear the
name field. |
ServiceType._Builder |
clearStartPos()
Clear the
start_pos field. |
PStructDescriptor<ServiceType,ServiceType._Field> |
descriptor() |
boolean |
equals(Object o) |
String |
getDocumentation() |
FilePos |
getEndPos()
The end of the definition (position of '}')
|
String |
getExtend() |
String |
getName() |
FilePos |
getStartPos()
The start of the definition (position of 'service')
|
int |
hashCode() |
boolean |
isModified(int key) |
boolean |
isModifiedAnnotations()
Checks if the
annotations field has been modified since the
builder was created. |
boolean |
isModifiedDocumentation()
Checks if the
documentation field has been modified since the
builder was created. |
boolean |
isModifiedEndPos()
Checks if the
end_pos field has been modified since the
builder was created. |
boolean |
isModifiedExtend()
Checks if the
extend field has been modified since the
builder was created. |
boolean |
isModifiedMethods()
Checks if the
methods field has been modified since the
builder was created. |
boolean |
isModifiedName()
Checks if the
name field has been modified since the
builder was created. |
boolean |
isModifiedStartPos()
Checks if the
start_pos field 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 |
isSetEndPos()
Checks for presence of the
end_pos 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. |
boolean |
isSetStartPos()
Checks for presence of the
start_pos field. |
ServiceType._Builder |
merge(ServiceType from) |
Map<String,String> |
mutableAnnotations()
Get the builder for the contained
annotations message field. |
FilePos._Builder |
mutableEndPos()
Get the builder for the contained
end_pos message field. |
List<FunctionType> |
mutableMethods()
Get the builder for the contained
methods message field. |
FilePos._Builder |
mutableStartPos()
Get the builder for the contained
start_pos message field. |
PMessageBuilder |
mutator(int key) |
ServiceType._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to the
annotations map. |
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
ServiceType._Builder |
set(int key,
Object value) |
ServiceType._Builder |
setAnnotations(Map<String,String> value)
Set the
annotations field value. |
ServiceType._Builder |
setDocumentation(String value)
Set the
documentation field value. |
ServiceType._Builder |
setEndPos(FilePos._Builder builder)
Set the
end_pos field value. |
ServiceType._Builder |
setEndPos(FilePos value)
Set the
end_pos field value. |
ServiceType._Builder |
setExtend(String value)
Set the
extend field value. |
ServiceType._Builder |
setMethods(Collection<FunctionType> value)
Set the
methods field value. |
ServiceType._Builder |
setName(String value)
Set the
name field value. |
ServiceType._Builder |
setStartPos(FilePos._Builder builder)
Set the
start_pos field value. |
ServiceType._Builder |
setStartPos(FilePos value)
Set the
start_pos field value. |
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)
documentation field value.value - The new valuepublic boolean isSetDocumentation()
documentation field.public boolean isModifiedDocumentation()
documentation field has been modified since the
builder was created.@Nonnull public ServiceType._Builder clearDocumentation()
documentation field.public String getDocumentation()
documentation field value@Nonnull public ServiceType._Builder setName(String value)
name field value.value - The new valuepublic boolean isSetName()
name field.public boolean isModifiedName()
name field has been modified since the
builder was created.@Nonnull public ServiceType._Builder clearName()
name field.public String getName()
name field value@Nonnull public ServiceType._Builder setExtend(String value)
extend field value.value - The new valuepublic boolean isSetExtend()
extend field.public boolean isModifiedExtend()
extend field has been modified since the
builder was created.@Nonnull public ServiceType._Builder clearExtend()
extend field.public String getExtend()
extend field value@Nonnull public ServiceType._Builder setMethods(Collection<FunctionType> value)
methods field value.value - The new value@Nonnull public ServiceType._Builder addToMethods(FunctionType... values)
methods list.values - The added valuepublic boolean isSetMethods()
methods field.public boolean isModifiedMethods()
methods field has been modified since the
builder was created.@Nonnull public ServiceType._Builder clearMethods()
methods field.@Nonnull public List<FunctionType> mutableMethods()
methods message field.@Nonnull public ServiceType._Builder setAnnotations(Map<String,String> value)
annotations field value.value - The new value@Nonnull public ServiceType._Builder putInAnnotations(String key, String value)
annotations map.key - The inserted keyvalue - The inserted valuepublic boolean isSetAnnotations()
annotations field.public boolean isModifiedAnnotations()
annotations field has been modified since the
builder was created.@Nonnull public ServiceType._Builder clearAnnotations()
annotations field.@Nonnull public Map<String,String> mutableAnnotations()
annotations message field.@Nonnull public ServiceType._Builder setStartPos(FilePos value)
start_pos field value.
The start of the definition (position of 'service')
value - The new value@Nonnull public ServiceType._Builder setStartPos(FilePos._Builder builder)
start_pos field value.
The start of the definition (position of 'service')
builder - builder for the new valuepublic boolean isSetStartPos()
start_pos field.public boolean isModifiedStartPos()
start_pos field has been modified since the
builder was created.@Nonnull public ServiceType._Builder clearStartPos()
start_pos field.@Nonnull public FilePos._Builder mutableStartPos()
start_pos message field.
The start of the definition (position of 'service')
public FilePos getStartPos()
@Nonnull public ServiceType._Builder setEndPos(FilePos value)
end_pos field value.
The end of the definition (position of '}')
value - The new value@Nonnull public ServiceType._Builder setEndPos(FilePos._Builder builder)
end_pos field value.
The end of the definition (position of '}')
builder - builder for the new valuepublic boolean isSetEndPos()
end_pos field.public boolean isModifiedEndPos()
end_pos field has been modified since the
builder was created.@Nonnull public ServiceType._Builder clearEndPos()
end_pos field.@Nonnull public FilePos._Builder mutableEndPos()
end_pos message field.
The end of the definition (position of '}')
public FilePos getEndPos()
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–2018 morimekta.net. All rights reserved.