public static class EnumValue._Builder extends net.morimekta.providence.PMessageBuilder<EnumValue> implements Decl._Builder, EnumValue_OrBuilder, net.morimekta.providence.serializer.binary.BinaryReader
Decl._Builder, Decl._FieldkDescriptor| Constructor and Description |
|---|
_Builder()
Make a p_model.EnumValue builder instance.
|
_Builder(EnumValue base)
Make a mutating builder off a base p_model.EnumValue.
|
| Modifier and Type | Method and Description |
|---|---|
EnumValue._Builder |
addTo(int key,
Object value) |
EnumValue |
build() |
EnumValue._Builder |
clear(int key) |
EnumValue._Builder |
clearAnnotations()
Clear the
annotations field. |
EnumValue._Builder |
clearDocumentation()
Clear the
documentation field. |
EnumValue._Builder |
clearId()
Clear the
id field. |
EnumValue._Builder |
clearName()
Clear the
name field. |
net.morimekta.providence.descriptor.PStructDescriptor<EnumValue> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
Map<String,String> |
getAnnotations() |
String |
getDocumentation()
Documentation for the specific declaration.
|
int |
getId() |
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. |
int |
hashCode() |
boolean |
hasId()
Checks for presence of the
id 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 |
isModifiedId()
Checks if the
id 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 |
isSetId()
Checks for explicit presence of the
id field. |
boolean |
isSetName()
Checks for explicit presence of the
name field. |
EnumValue._Builder |
merge(EnumValue 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.
|
Optional<Integer> |
optionalId() |
EnumValue._Builder |
putInAnnotations(String key,
String value)
Adds a mapping to the
annotations map. |
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
EnumValue._Builder |
set(int key,
Object value) |
EnumValue._Builder |
setAnnotations(Map<String,String> value)
Set the
annotations field value. |
EnumValue._Builder |
setDocumentation(String value)
Set the
documentation field value. |
EnumValue._Builder |
setId(int value)
Set the
id field value. |
EnumValue._Builder |
setId(Integer value)
Set the
id field value. |
EnumValue._Builder |
setName(String value)
Set the
name field value. |
boolean |
valid() |
EnumValue._Builder |
validate() |
addTo, clear, isModified, isSet, modifiedFieldNames, modifiedFields, mutator, presentFieldNames, presentFields, setpublic _Builder()
public _Builder(EnumValue base)
base - The base EnumValue@Nonnull public EnumValue._Builder merge(EnumValue from)
merge in class net.morimekta.providence.PMessageBuilder<EnumValue>@Nonnull public EnumValue._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 EnumValue._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 EnumValue._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 EnumValue._Builder clearName()
name field.clearName in interface Decl._Builderpublic String getName()
Decl@Nonnull public EnumValue._Builder setId(Integer value)
id field value.value - The new value@Nonnull public EnumValue._Builder setId(int value)
id field value.value - The new valuepublic boolean isSetId()
id field.public boolean hasId()
id field.hasId in interface EnumValue_OrBuilderpublic boolean isModifiedId()
id field has been modified since the
builder was created.@Nonnull public EnumValue._Builder clearId()
id field.public int getId()
getId in interface EnumValue_OrBuilderid field value@Nonnull public Optional<Integer> optionalId()
optionalId in interface EnumValue_OrBuilderid field value@Nonnull public EnumValue._Builder setAnnotations(Map<String,String> value)
annotations field value.value - The new value@Nonnull public EnumValue._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 EnumValue_OrBuilderpublic boolean isModifiedAnnotations()
annotations field has been modified since the
builder was created.@Nonnull public EnumValue._Builder clearAnnotations()
annotations field.public Map<String,String> mutableAnnotations()
annotations containerpublic Map<String,String> getAnnotations()
getAnnotations in interface EnumValue_OrBuilderannotations field value@Nonnull public Optional<Map<String,String>> optionalAnnotations()
optionalAnnotations in interface EnumValue_OrBuilderannotations field valuepublic int numAnnotations()
numAnnotations in interface EnumValue_OrBuilderannotations.public net.morimekta.providence.PMessageBuilder mutator(int key)
mutator in class net.morimekta.providence.PMessageBuilder<EnumValue>@Nonnull public EnumValue._Builder set(int key, Object value)
set in class net.morimekta.providence.PMessageBuilder<EnumValue>public boolean isSet(int key)
isSet in class net.morimekta.providence.PMessageBuilder<EnumValue>public boolean isModified(int key)
isModified in class net.morimekta.providence.PMessageBuilder<EnumValue>public <T> T get(int key)
get in interface net.morimekta.providence.PMessageOrBuilder<EnumValue>public boolean has(int key)
has in interface net.morimekta.providence.PMessageOrBuilder<EnumValue>@Nonnull public EnumValue._Builder addTo(int key, Object value)
addTo in class net.morimekta.providence.PMessageBuilder<EnumValue>@Nonnull public EnumValue._Builder clear(int key)
clear in class net.morimekta.providence.PMessageBuilder<EnumValue>public boolean valid()
valid in class net.morimekta.providence.PMessageBuilder<EnumValue>public EnumValue._Builder validate()
validate in class net.morimekta.providence.PMessageBuilder<EnumValue>@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<EnumValue> 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 EnumValue build()
build in interface Decl._Builderbuild in class net.morimekta.providence.PMessageBuilder<EnumValue>Copyright © 2015–2020 morimekta.net. All rights reserved.