public static class ConstType._Builder extends net.morimekta.providence.PMessageBuilder<ConstType> implements Decl._Builder, ConstType_OrBuilder, net.morimekta.providence.serializer.binary.BinaryReader
Decl._Builder, Decl._FieldkDescriptor| Constructor and Description |
|---|
_Builder()
Make a p_model.ConstType builder instance.
|
_Builder(ConstType base)
Make a mutating builder off a base p_model.ConstType.
|
| Modifier and Type | Method and Description |
|---|---|
ConstType._Builder |
addTo(int key,
Object value) |
ConstType |
build() |
ConstType._Builder |
clear(int key) |
ConstType._Builder |
clearAnnotations()
Clear the
annotations field. |
ConstType._Builder |
clearDocumentation()
Clear the
documentation field. |
ConstType._Builder |
clearName()
Clear the
name field. |
ConstType._Builder |
clearType()
Clear the
type field. |
ConstType._Builder |
clearValue()
Clear the
value field. |
net.morimekta.providence.descriptor.PStructDescriptor<ConstType> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
Map<String,String> |
getAnnotations() |
String |
getDocumentation()
Documentation for the specific declaration.
|
String |
getName()
Name of the type, constant or service.
|
String |
getType() |
String |
getValue() |
boolean |
has(int key) |
boolean |
hasAnnotations()
Checks for presence of the
annotations field. |
boolean |
hasDocumentation()
Checks for presence of the
documentation field. |
int |
hashCode() |
boolean |
hasName()
Checks for presence of the
name field. |
boolean |
hasType()
Checks for presence of the
type field. |
boolean |
hasValue()
Checks for presence of the
value 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 |
isModifiedName()
Checks if the
name field has been modified since the
builder was created. |
boolean |
isModifiedType()
Checks if the
type field has been modified since the
builder was created. |
boolean |
isModifiedValue()
Checks if the
value 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 |
isSetName()
Checks for explicit presence of the
name field. |
boolean |
isSetType()
Checks for explicit presence of the
type field. |
boolean |
isSetValue()
Checks for explicit presence of the
value field. |
ConstType._Builder |
merge(ConstType from) |
Map<String,String> |
mutableAnnotations() |
net.morimekta.providence.PMessageBuilder |
mutator(int key) |
int |
numAnnotations() |
Optional<Map<String,String>> |
optionalAnnotations() |
Optional<String> |
optionalDocumentation()
Documentation for the specific declaration.
|
ConstType._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to the
annotations map. |
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
ConstType._Builder |
set(int key,
Object value) |
ConstType._Builder |
setAnnotations(Map<String,String> value)
Set the
annotations field value. |
ConstType._Builder |
setDocumentation(String value)
Set the
documentation field value. |
ConstType._Builder |
setName(String value)
Set the
name field value. |
ConstType._Builder |
setType(String value)
Set the
type field value. |
ConstType._Builder |
setValue(String value)
Set the
value field value. |
boolean |
valid() |
ConstType._Builder |
validate() |
addTo, clear, isModified, isSet, modifiedFieldNames, modifiedFields, mutator, presentFieldNames, presentFields, setpublic _Builder()
public _Builder(ConstType base)
base - The base ConstType@Nonnull public ConstType._Builder merge(ConstType from)
merge in class net.morimekta.providence.PMessageBuilder<ConstType>@Nonnull public ConstType._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 ConstType._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 ConstType._Builder setType(String value)
type field value.value - The new valuepublic boolean isSetType()
type field.public boolean hasType()
type field.hasType in interface ConstType_OrBuilderpublic boolean isModifiedType()
type field has been modified since the
builder was created.@Nonnull public ConstType._Builder clearType()
type field.public String getType()
getType in interface ConstType_OrBuildertype field value@Nonnull public ConstType._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 ConstType._Builder clearName()
name field.clearName in interface Decl._Builderpublic String getName()
Decl@Nonnull public ConstType._Builder setValue(String value)
value field value.value - The new valuepublic boolean isSetValue()
value field.public boolean hasValue()
value field.hasValue in interface ConstType_OrBuilderpublic boolean isModifiedValue()
value field has been modified since the
builder was created.@Nonnull public ConstType._Builder clearValue()
value field.public String getValue()
getValue in interface ConstType_OrBuildervalue field value@Nonnull public ConstType._Builder setAnnotations(Map<String,String> value)
annotations field value.value - The new value@Nonnull public ConstType._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 ConstType_OrBuilderpublic boolean isModifiedAnnotations()
annotations field has been modified since the
builder was created.@Nonnull public ConstType._Builder clearAnnotations()
annotations field.public Map<String,String> mutableAnnotations()
annotations containerpublic Map<String,String> getAnnotations()
getAnnotations in interface ConstType_OrBuilderannotations field value@Nonnull public Optional<Map<String,String>> optionalAnnotations()
optionalAnnotations in interface ConstType_OrBuilderannotations field valuepublic int numAnnotations()
numAnnotations in interface ConstType_OrBuilderannotations.public net.morimekta.providence.PMessageBuilder mutator(int key)
mutator in class net.morimekta.providence.PMessageBuilder<ConstType>@Nonnull public ConstType._Builder set(int key, Object value)
set in class net.morimekta.providence.PMessageBuilder<ConstType>public boolean isSet(int key)
isSet in class net.morimekta.providence.PMessageBuilder<ConstType>public boolean isModified(int key)
isModified in class net.morimekta.providence.PMessageBuilder<ConstType>public <T> T get(int key)
get in interface net.morimekta.providence.PMessageOrBuilder<ConstType>public boolean has(int key)
has in interface net.morimekta.providence.PMessageOrBuilder<ConstType>@Nonnull public ConstType._Builder addTo(int key, Object value)
addTo in class net.morimekta.providence.PMessageBuilder<ConstType>@Nonnull public ConstType._Builder clear(int key)
clear in class net.morimekta.providence.PMessageBuilder<ConstType>public boolean valid()
valid in class net.morimekta.providence.PMessageBuilder<ConstType>public ConstType._Builder validate()
validate in class net.morimekta.providence.PMessageBuilder<ConstType>@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<ConstType> descriptor()
public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface net.morimekta.providence.serializer.binary.BinaryReaderIOException@Nonnull public ConstType build()
build in interface Decl._Builderbuild in class net.morimekta.providence.PMessageBuilder<ConstType>Copyright © 2015–2020 morimekta.net. All rights reserved.