Package net.morimekta.providence.model
Class TypedefType._Builder
- java.lang.Object
-
- net.morimekta.providence.PMessageBuilder<TypedefType>
-
- net.morimekta.providence.model.TypedefType._Builder
-
- All Implemented Interfaces:
Decl,Decl._Builder,TypedefType_OrBuilder,net.morimekta.providence.PBuilder<TypedefType>,net.morimekta.providence.PMessageOrBuilder<TypedefType>,net.morimekta.providence.PValue<TypedefType>,net.morimekta.providence.serializer.binary.BinaryReader
- Enclosing class:
- TypedefType
public static class TypedefType._Builder extends net.morimekta.providence.PMessageBuilder<TypedefType> implements Decl._Builder, TypedefType_OrBuilder, net.morimekta.providence.serializer.binary.BinaryReader
typedef <type> <name>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.morimekta.providence.model.Decl
Decl._Builder, Decl._Field
-
-
Field Summary
-
Fields inherited from interface net.morimekta.providence.model.Decl
kDescriptor
-
-
Constructor Summary
Constructors Constructor Description _Builder()Make a p_model.TypedefType builder instance._Builder(TypedefType base)Make a mutating builder off a base p_model.TypedefType.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypedefType._BuilderaddTo(int key, java.lang.Object value)TypedefTypebuild()TypedefType._Builderclear(int key)TypedefType._BuilderclearDocumentation()Clear thedocumentationfield.TypedefType._BuilderclearName()Clear thenamefield.TypedefType._BuilderclearType()Clear thetypefield.net.morimekta.providence.descriptor.PStructDescriptor<TypedefType>descriptor()booleanequals(java.lang.Object o)<T> Tget(int key)java.lang.StringgetDocumentation()Documentation for the specific declaration.java.lang.StringgetName()Name of the type, constant or service.java.lang.StringgetType()booleanhas(int key)booleanhasDocumentation()Checks for presence of thedocumentationfield.inthashCode()booleanhasName()Checks for presence of thenamefield.booleanhasType()Checks for presence of thetypefield.booleanisModified(int key)booleanisModifiedDocumentation()Checks if thedocumentationfield has been modified since the builder was created.booleanisModifiedName()Checks if thenamefield has been modified since the builder was created.booleanisModifiedType()Checks if thetypefield has been modified since the builder was created.booleanisSet(int key)booleanisSetDocumentation()Checks for explicit presence of thedocumentationfield.booleanisSetName()Checks for explicit presence of thenamefield.booleanisSetType()Checks for explicit presence of thetypefield.TypedefType._Buildermerge(TypedefType from)net.morimekta.providence.PMessageBuildermutator(int key)java.util.Optional<java.lang.String>optionalDocumentation()Documentation for the specific declaration.voidreadBinary(net.morimekta.util.io.BigEndianBinaryReader reader, boolean strict)TypedefType._Builderset(int key, java.lang.Object value)TypedefType._BuildersetDocumentation(java.lang.String value)Set thedocumentationfield value.TypedefType._BuildersetName(java.lang.String value)Set thenamefield value.TypedefType._BuildersetType(java.lang.String value)Set thetypefield value.booleanvalid()TypedefType._Buildervalidate()-
Methods inherited from class net.morimekta.providence.PMessageBuilder
addTo, clear, isModified, isSet, modifiedFields, mutator, presentFields, set
-
-
-
-
Constructor Detail
-
_Builder
public _Builder()
Make a p_model.TypedefType builder instance.
-
_Builder
public _Builder(TypedefType base)
Make a mutating builder off a base p_model.TypedefType.- Parameters:
base- The base TypedefType
-
-
Method Detail
-
merge
@Nonnull public TypedefType._Builder merge(TypedefType from)
- Specified by:
mergein classnet.morimekta.providence.PMessageBuilder<TypedefType>
-
setDocumentation
@Nonnull public TypedefType._Builder setDocumentation(java.lang.String value)
Set thedocumentationfield value.- Specified by:
setDocumentationin interfaceDecl._Builder- Parameters:
value- The new value- Returns:
- The builder
-
isSetDocumentation
public boolean isSetDocumentation()
Checks for explicit presence of thedocumentationfield.- Returns:
- True if documentation has been set.
-
hasDocumentation
public boolean hasDocumentation()
Checks for presence of thedocumentationfield.- Specified by:
hasDocumentationin interfaceDecl- Returns:
- True if documentation is present.
-
isModifiedDocumentation
public boolean isModifiedDocumentation()
Checks if thedocumentationfield has been modified since the builder was created.- Returns:
- True if documentation has been modified.
-
clearDocumentation
@Nonnull public TypedefType._Builder clearDocumentation()
Clear thedocumentationfield.- Specified by:
clearDocumentationin interfaceDecl._Builder- Returns:
- The builder
-
getDocumentation
public java.lang.String getDocumentation()
Description copied from interface:DeclDocumentation for the specific declaration.- Specified by:
getDocumentationin interfaceDecl- Returns:
- The
documentationfield value
-
optionalDocumentation
@Nonnull public java.util.Optional<java.lang.String> optionalDocumentation()
Description copied from interface:DeclDocumentation for the specific declaration.- Specified by:
optionalDocumentationin interfaceDecl- Returns:
- Optional
documentationfield value
-
setType
@Nonnull public TypedefType._Builder setType(java.lang.String value)
Set thetypefield value.- Parameters:
value- The new value- Returns:
- The builder
-
isSetType
public boolean isSetType()
Checks for explicit presence of thetypefield.- Returns:
- True if type has been set.
-
hasType
public boolean hasType()
Checks for presence of thetypefield.- Specified by:
hasTypein interfaceTypedefType_OrBuilder- Returns:
- True if type is present.
-
isModifiedType
public boolean isModifiedType()
Checks if thetypefield has been modified since the builder was created.- Returns:
- True if type has been modified.
-
clearType
@Nonnull public TypedefType._Builder clearType()
Clear thetypefield.- Returns:
- The builder
-
getType
public java.lang.String getType()
- Specified by:
getTypein interfaceTypedefType_OrBuilder- Returns:
- The
typefield value
-
setName
@Nonnull public TypedefType._Builder setName(java.lang.String value)
Set thenamefield value.- Specified by:
setNamein interfaceDecl._Builder- Parameters:
value- The new value- Returns:
- The builder
-
isSetName
public boolean isSetName()
Checks for explicit presence of thenamefield.- Returns:
- True if name has been set.
-
hasName
public boolean hasName()
Checks for presence of thenamefield.
-
isModifiedName
public boolean isModifiedName()
Checks if thenamefield has been modified since the builder was created.- Returns:
- True if name has been modified.
-
clearName
@Nonnull public TypedefType._Builder clearName()
Clear thenamefield.- Specified by:
clearNamein interfaceDecl._Builder- Returns:
- The builder
-
getName
public java.lang.String getName()
Description copied from interface:DeclName of the type, constant or service.
-
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<TypedefType>
-
set
@Nonnull public TypedefType._Builder set(int key, java.lang.Object value)
- Specified by:
setin classnet.morimekta.providence.PMessageBuilder<TypedefType>
-
isSet
public boolean isSet(int key)
- Specified by:
isSetin classnet.morimekta.providence.PMessageBuilder<TypedefType>
-
isModified
public boolean isModified(int key)
- Specified by:
isModifiedin classnet.morimekta.providence.PMessageBuilder<TypedefType>
-
get
public <T> T get(int key)
- Specified by:
getin interfacenet.morimekta.providence.PMessageOrBuilder<TypedefType>
-
has
public boolean has(int key)
- Specified by:
hasin interfacenet.morimekta.providence.PMessageOrBuilder<TypedefType>
-
addTo
@Nonnull public TypedefType._Builder addTo(int key, java.lang.Object value)
- Specified by:
addToin classnet.morimekta.providence.PMessageBuilder<TypedefType>
-
clear
@Nonnull public TypedefType._Builder clear(int key)
- Specified by:
clearin classnet.morimekta.providence.PMessageBuilder<TypedefType>
-
valid
public boolean valid()
- Specified by:
validin classnet.morimekta.providence.PMessageBuilder<TypedefType>
-
validate
public TypedefType._Builder validate()
- Specified by:
validatein classnet.morimekta.providence.PMessageBuilder<TypedefType>
-
descriptor
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<TypedefType> descriptor()
- Specified by:
descriptorin interfacenet.morimekta.providence.PMessageOrBuilder<TypedefType>- Specified by:
descriptorin interfacenet.morimekta.providence.PValue<TypedefType>
-
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
-
build
@Nonnull public TypedefType build()
- Specified by:
buildin interfaceDecl._Builder- Specified by:
buildin interfacenet.morimekta.providence.PBuilder<TypedefType>- Returns:
- The built instance
-
-