Package net.morimekta.providence.model
Class EnumValue._Builder
- java.lang.Object
-
- net.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
-
- net.morimekta.providence.model.EnumValue._Builder
-
- All Implemented Interfaces:
net.morimekta.providence.PBuilder<EnumValue>,net.morimekta.providence.serializer.binary.BinaryReader
- Enclosing class:
- EnumValue
public static class EnumValue._Builder extends net.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field> implements net.morimekta.providence.serializer.binary.BinaryReader
<name> (= <value>)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumValue._BuilderaddTo(int key, java.lang.Object value)EnumValuebuild()EnumValue._Builderclear(int key)EnumValue._BuilderclearAnnotations()Clears the annotations field.EnumValue._BuilderclearDocumentation()Clears the documentation field.EnumValue._BuilderclearId()Clears the id field.EnumValue._BuilderclearName()Clears the name field.net.morimekta.providence.descriptor.PStructDescriptor<EnumValue,EnumValue._Field>descriptor()booleanequals(java.lang.Object o)java.lang.StringgetDocumentation()Gets the value of the contained documentation.intgetId()Gets the value of the contained id.java.lang.StringgetName()Gets the value of the contained name.inthashCode()booleanisModified(int key)booleanisModifiedAnnotations()Checks if annotations has been modified since the _Builder was created.booleanisModifiedDocumentation()Checks if documentation has been modified since the _Builder was created.booleanisModifiedId()Checks if id has been modified since the _Builder was created.booleanisModifiedName()Checks if name has been modified since the _Builder was created.booleanisSet(int key)booleanisSetAnnotations()Checks for presence of the annotations field.booleanisSetDocumentation()Checks for presence of the documentation field.booleanisSetId()Checks for presence of the id field.booleanisSetName()Checks for presence of the name field.EnumValue._Buildermerge(EnumValue from)java.util.Map<java.lang.String,java.lang.String>mutableAnnotations()Gets the builder for the contained annotations.net.morimekta.providence.PMessageBuildermutator(int key)EnumValue._BuilderputInAnnotations(java.lang.String key, java.lang.String value)Adds a mapping to annotations.voidreadBinary(net.morimekta.util.io.BigEndianBinaryReader reader, boolean strict)EnumValue._Builderset(int key, java.lang.Object value)EnumValue._BuildersetAnnotations(java.util.Map<java.lang.String,java.lang.String> value)Sets the value of annotations.EnumValue._BuildersetDocumentation(java.lang.String value)Sets the value of documentation.EnumValue._BuildersetId(int value)Sets the value of id.EnumValue._BuildersetName(java.lang.String value)Sets the value of name.booleanvalid()voidvalidate()
-
-
-
Constructor Detail
-
_Builder
public _Builder()
Make a providence_model.EnumValue builder.
-
_Builder
public _Builder(EnumValue base)
Make a mutating builder off a base providence_model.EnumValue.- Parameters:
base- The base EnumValue
-
-
Method Detail
-
merge
@Nonnull public EnumValue._Builder merge(EnumValue from)
- Specified by:
mergein classnet.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
-
setDocumentation
@Nonnull public EnumValue._Builder setDocumentation(java.lang.String value)
Sets the value of documentation.- Parameters:
value- The new value- Returns:
- The builder
-
isSetDocumentation
public boolean isSetDocumentation()
Checks for presence of the documentation field.- Returns:
- True if documentation has been set.
-
isModifiedDocumentation
public boolean isModifiedDocumentation()
Checks if documentation has been modified since the _Builder was created.- Returns:
- True if documentation has been modified.
-
clearDocumentation
@Nonnull public EnumValue._Builder clearDocumentation()
Clears the documentation field.- Returns:
- The builder
-
getDocumentation
public java.lang.String getDocumentation()
Gets the value of the contained documentation.- Returns:
- The field value
-
setName
@Nonnull public EnumValue._Builder setName(java.lang.String value)
Sets the value of name.- Parameters:
value- The new value- Returns:
- The builder
-
isSetName
public boolean isSetName()
Checks for presence of the name field.- Returns:
- True if name has been set.
-
isModifiedName
public boolean isModifiedName()
Checks if name has been modified since the _Builder was created.- Returns:
- True if name has been modified.
-
clearName
@Nonnull public EnumValue._Builder clearName()
Clears the name field.- Returns:
- The builder
-
getName
public java.lang.String getName()
Gets the value of the contained name.- Returns:
- The field value
-
setId
@Nonnull public EnumValue._Builder setId(int value)
Sets the value of id.- Parameters:
value- The new value- Returns:
- The builder
-
isSetId
public boolean isSetId()
Checks for presence of the id field.- Returns:
- True if id has been set.
-
isModifiedId
public boolean isModifiedId()
Checks if id has been modified since the _Builder was created.- Returns:
- True if id has been modified.
-
clearId
@Nonnull public EnumValue._Builder clearId()
Clears the id field.- Returns:
- The builder
-
getId
public int getId()
Gets the value of the contained id.- Returns:
- The field value
-
setAnnotations
@Nonnull public EnumValue._Builder setAnnotations(java.util.Map<java.lang.String,java.lang.String> value)
Sets the value of annotations.- Parameters:
value- The new value- Returns:
- The builder
-
putInAnnotations
@Nonnull public EnumValue._Builder putInAnnotations(java.lang.String key, java.lang.String value)
Adds a mapping to annotations.- Parameters:
key- The inserted keyvalue- The inserted value- Returns:
- The builder
-
isSetAnnotations
public boolean isSetAnnotations()
Checks for presence of the annotations field.- Returns:
- True if annotations has been set.
-
isModifiedAnnotations
public boolean isModifiedAnnotations()
Checks if annotations has been modified since the _Builder was created.- Returns:
- True if annotations has been modified.
-
clearAnnotations
@Nonnull public EnumValue._Builder clearAnnotations()
Clears the annotations field.- Returns:
- The builder
-
mutableAnnotations
@Nonnull public java.util.Map<java.lang.String,java.lang.String> mutableAnnotations()
Gets the builder for the contained annotations.- Returns:
- The field builder
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
mutator
public net.morimekta.providence.PMessageBuilder mutator(int key)
- Specified by:
mutatorin classnet.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
-
set
@Nonnull public EnumValue._Builder set(int key, java.lang.Object value)
- Specified by:
setin classnet.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
-
isSet
public boolean isSet(int key)
- Specified by:
isSetin classnet.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
-
isModified
public boolean isModified(int key)
- Specified by:
isModifiedin classnet.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
-
addTo
public EnumValue._Builder addTo(int key, java.lang.Object value)
- Specified by:
addToin classnet.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
-
clear
@Nonnull public EnumValue._Builder clear(int key)
- Specified by:
clearin classnet.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
-
valid
public boolean valid()
- Specified by:
validin classnet.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
-
validate
public void validate()
- Specified by:
validatein classnet.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
-
descriptor
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<EnumValue,EnumValue._Field> descriptor()
- Specified by:
descriptorin classnet.morimekta.providence.PMessageBuilder<EnumValue,EnumValue._Field>
-
readBinary
public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader, boolean strict) throws java.io.IOException- Specified by:
readBinaryin interfacenet.morimekta.providence.serializer.binary.BinaryReader- Throws:
java.io.IOException
-
-