public static class TypedefType._Builder extends net.morimekta.providence.PMessageBuilder<TypedefType> implements Decl._Builder, TypedefType_OrBuilder, net.morimekta.providence.serializer.binary.BinaryReader
Decl._Builder, Decl._FieldkDescriptor| Constructor and Description |
|---|
_Builder()
Make a p_model.TypedefType builder instance.
|
_Builder(TypedefType base)
Make a mutating builder off a base p_model.TypedefType.
|
| Modifier and Type | Method and Description |
|---|---|
TypedefType._Builder |
addTo(int key,
Object value) |
TypedefType |
build() |
TypedefType._Builder |
clear(int key) |
TypedefType._Builder |
clearDocumentation()
Clear the
documentation field. |
TypedefType._Builder |
clearName()
Clear the
name field. |
TypedefType._Builder |
clearType()
Clear the
type field. |
net.morimekta.providence.descriptor.PStructDescriptor<TypedefType> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
String |
getDocumentation()
Documentation for the specific declaration.
|
String |
getName()
Name of the type, constant or service.
|
String |
getType() |
boolean |
has(int key) |
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 |
isModified(int key) |
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 |
isSet(int key) |
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. |
TypedefType._Builder |
merge(TypedefType from) |
net.morimekta.providence.PMessageBuilder |
mutator(int key) |
Optional<String> |
optionalDocumentation()
Documentation for the specific declaration.
|
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
TypedefType._Builder |
set(int key,
Object value) |
TypedefType._Builder |
setDocumentation(String value)
Set the
documentation field value. |
TypedefType._Builder |
setName(String value)
Set the
name field value. |
TypedefType._Builder |
setType(String value)
Set the
type field value. |
boolean |
valid() |
TypedefType._Builder |
validate() |
addTo, clear, isModified, isSet, modifiedFieldNames, modifiedFields, mutator, presentFieldNames, presentFields, setpublic _Builder()
public _Builder(TypedefType base)
base - The base TypedefType@Nonnull public TypedefType._Builder merge(TypedefType from)
merge in class net.morimekta.providence.PMessageBuilder<TypedefType>@Nonnull public TypedefType._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 TypedefType._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 TypedefType._Builder setType(String value)
type field value.value - The new valuepublic boolean isSetType()
type field.public boolean hasType()
type field.hasType in interface TypedefType_OrBuilderpublic boolean isModifiedType()
type field has been modified since the
builder was created.@Nonnull public TypedefType._Builder clearType()
type field.public String getType()
getType in interface TypedefType_OrBuildertype field value@Nonnull public TypedefType._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 TypedefType._Builder clearName()
name field.clearName in interface Decl._Builderpublic String getName()
Declpublic net.morimekta.providence.PMessageBuilder mutator(int key)
mutator in class net.morimekta.providence.PMessageBuilder<TypedefType>@Nonnull public TypedefType._Builder set(int key, Object value)
set in class net.morimekta.providence.PMessageBuilder<TypedefType>public boolean isSet(int key)
isSet in class net.morimekta.providence.PMessageBuilder<TypedefType>public boolean isModified(int key)
isModified in class net.morimekta.providence.PMessageBuilder<TypedefType>public <T> T get(int key)
get in interface net.morimekta.providence.PMessageOrBuilder<TypedefType>public boolean has(int key)
has in interface net.morimekta.providence.PMessageOrBuilder<TypedefType>@Nonnull public TypedefType._Builder addTo(int key, Object value)
addTo in class net.morimekta.providence.PMessageBuilder<TypedefType>@Nonnull public TypedefType._Builder clear(int key)
clear in class net.morimekta.providence.PMessageBuilder<TypedefType>public boolean valid()
valid in class net.morimekta.providence.PMessageBuilder<TypedefType>public TypedefType._Builder validate()
validate in class net.morimekta.providence.PMessageBuilder<TypedefType>@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<TypedefType> descriptor()
descriptor in interface net.morimekta.providence.PMessageOrBuilder<TypedefType>descriptor in interface net.morimekta.providence.PValue<TypedefType>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface net.morimekta.providence.serializer.binary.BinaryReaderIOException@Nonnull public TypedefType build()
build in interface Decl._Builderbuild in class net.morimekta.providence.PMessageBuilder<TypedefType>Copyright © 2015–2020 morimekta.net. All rights reserved.