public static class ServiceType._Builder extends net.morimekta.providence.PMessageBuilder<ServiceType> implements Decl._Builder, ServiceType_OrBuilder, net.morimekta.providence.serializer.binary.BinaryReader
Decl._Builder, Decl._FieldkDescriptor| Constructor and Description |
|---|
_Builder()
Make a p_model.ServiceType builder instance.
|
_Builder(ServiceType base)
Make a mutating builder off a base p_model.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 |
clearExtend()
Clear the
extend field. |
ServiceType._Builder |
clearMethods()
Clear the
methods field. |
ServiceType._Builder |
clearName()
Clear the
name field. |
net.morimekta.providence.descriptor.PStructDescriptor<ServiceType> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
Map<String,String> |
getAnnotations() |
String |
getDocumentation()
Documentation for the specific declaration.
|
String |
getExtend() |
List<FunctionType> |
getMethods() |
String |
getName()
Name of the type, constant or service.
|
boolean |
has(int key) |
boolean |
hasAnnotations()
Checks for presence of the
annotations field. |
boolean |
hasDocumentation()
Checks for presence of the
documentation field. |
boolean |
hasExtend()
Checks for presence of the
extend field. |
int |
hashCode() |
boolean |
hasMethods()
Checks for presence of the
methods field. |
boolean |
hasName()
Checks for presence of the
name field. |
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 |
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 |
isSet(int key) |
boolean |
isSetAnnotations()
Checks for explicit presence of the
annotations field. |
boolean |
isSetDocumentation()
Checks for explicit presence of the
documentation field. |
boolean |
isSetExtend()
Checks for explicit presence of the
extend field. |
boolean |
isSetMethods()
Checks for explicit presence of the
methods field. |
boolean |
isSetName()
Checks for explicit presence of the
name field. |
ServiceType._Builder |
merge(ServiceType from) |
Map<String,String> |
mutableAnnotations() |
List<FunctionType> |
mutableMethods() |
net.morimekta.providence.PMessageBuilder |
mutator(int key) |
int |
numAnnotations() |
int |
numMethods() |
Optional<Map<String,String>> |
optionalAnnotations() |
Optional<String> |
optionalDocumentation()
Documentation for the specific declaration.
|
Optional<String> |
optionalExtend() |
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 |
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. |
boolean |
valid() |
ServiceType._Builder |
validate() |
addTo, clear, isModified, isSet, modifiedFieldNames, modifiedFields, mutator, presentFieldNames, presentFields, setpublic _Builder()
public _Builder(ServiceType base)
base - The base ServiceType@Nonnull public ServiceType._Builder merge(ServiceType from)
merge in class net.morimekta.providence.PMessageBuilder<ServiceType>@Nonnull public ServiceType._Builder setDocumentation(String value)
documentation field value.setDocumentation in interface Decl._Buildervalue - The new valuepublic boolean isSetDocumentation()
documentation field.public boolean hasDocumentation()
documentation field.hasDocumentation in interface Declpublic boolean isModifiedDocumentation()
documentation field has been modified since the
builder was created.@Nonnull public ServiceType._Builder clearDocumentation()
documentation field.clearDocumentation in interface Decl._Builderpublic String getDocumentation()
DeclgetDocumentation in interface Decldocumentation field value@Nonnull public Optional<String> optionalDocumentation()
DecloptionalDocumentation in interface Decldocumentation field value@Nonnull public ServiceType._Builder setName(String value)
name field value.setName in interface Decl._Buildervalue - The new valuepublic boolean isSetName()
name field.public boolean hasName()
name field.public boolean isModifiedName()
name field has been modified since the
builder was created.@Nonnull public ServiceType._Builder clearName()
name field.clearName in interface Decl._Builderpublic String getName()
Decl@Nonnull public ServiceType._Builder setExtend(String value)
extend field value.value - The new valuepublic boolean isSetExtend()
extend field.public boolean hasExtend()
extend field.hasExtend in interface ServiceType_OrBuilderpublic boolean isModifiedExtend()
extend field has been modified since the
builder was created.@Nonnull public ServiceType._Builder clearExtend()
extend field.public String getExtend()
getExtend in interface ServiceType_OrBuilderextend field value@Nonnull public Optional<String> optionalExtend()
optionalExtend in interface ServiceType_OrBuilderextend 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 hasMethods()
methods field.hasMethods in interface ServiceType_OrBuilderpublic boolean isModifiedMethods()
methods field has been modified since the
builder was created.@Nonnull public ServiceType._Builder clearMethods()
methods field.public List<FunctionType> mutableMethods()
methods containerpublic List<FunctionType> getMethods()
getMethods in interface ServiceType_OrBuildermethods field valuepublic int numMethods()
numMethods in interface ServiceType_OrBuildermethods.@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 hasAnnotations()
annotations field.hasAnnotations in interface ServiceType_OrBuilderpublic boolean isModifiedAnnotations()
annotations field has been modified since the
builder was created.@Nonnull public ServiceType._Builder clearAnnotations()
annotations field.public Map<String,String> mutableAnnotations()
annotations containerpublic Map<String,String> getAnnotations()
getAnnotations in interface ServiceType_OrBuilderannotations field value@Nonnull public Optional<Map<String,String>> optionalAnnotations()
optionalAnnotations in interface ServiceType_OrBuilderannotations field valuepublic int numAnnotations()
numAnnotations in interface ServiceType_OrBuilderannotations.public net.morimekta.providence.PMessageBuilder mutator(int key)
mutator in class net.morimekta.providence.PMessageBuilder<ServiceType>@Nonnull public ServiceType._Builder set(int key, Object value)
set in class net.morimekta.providence.PMessageBuilder<ServiceType>public boolean isSet(int key)
isSet in class net.morimekta.providence.PMessageBuilder<ServiceType>public boolean isModified(int key)
isModified in class net.morimekta.providence.PMessageBuilder<ServiceType>public <T> T get(int key)
get in interface net.morimekta.providence.PMessageOrBuilder<ServiceType>public boolean has(int key)
has in interface net.morimekta.providence.PMessageOrBuilder<ServiceType>@Nonnull public ServiceType._Builder addTo(int key, Object value)
addTo in class net.morimekta.providence.PMessageBuilder<ServiceType>@Nonnull public ServiceType._Builder clear(int key)
clear in class net.morimekta.providence.PMessageBuilder<ServiceType>public boolean valid()
valid in class net.morimekta.providence.PMessageBuilder<ServiceType>public ServiceType._Builder validate()
validate in class net.morimekta.providence.PMessageBuilder<ServiceType>@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<ServiceType> descriptor()
descriptor in interface net.morimekta.providence.PMessageOrBuilder<ServiceType>descriptor in interface net.morimekta.providence.PValue<ServiceType>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface net.morimekta.providence.serializer.binary.BinaryReaderIOException@Nonnull public ServiceType build()
build in interface Decl._Builderbuild in class net.morimekta.providence.PMessageBuilder<ServiceType>Copyright © 2015–2020 morimekta.net. All rights reserved.