public static class Declaration._Builder extends net.morimekta.providence.PMessageBuilder<Declaration> implements Declaration_OrBuilder, net.morimekta.providence.serializer.binary.BinaryReader
| Constructor and Description |
|---|
_Builder()
Make a p_model.Declaration builder instance.
|
_Builder(Declaration base)
Make a mutating builder off a base p_model.Declaration.
|
| Modifier and Type | Method and Description |
|---|---|
Declaration._Builder |
addTo(int key,
Object value) |
Declaration |
build() |
Declaration._Builder |
clear(int key) |
Declaration._Builder |
clearDeclConst()
Clear the
decl_const field. |
Declaration._Builder |
clearDeclEnum()
Clear the
decl_enum field. |
Declaration._Builder |
clearDeclMessage()
Clear the
decl_message field. |
Declaration._Builder |
clearDeclService()
Clear the
decl_service field. |
Declaration._Builder |
clearDeclTypedef()
Clear the
decl_typedef field. |
net.morimekta.providence.descriptor.PUnionDescriptor<Declaration> |
descriptor() |
boolean |
equals(Object o) |
<T> T |
get(int key) |
ConstType |
getDeclConst() |
EnumType |
getDeclEnum() |
MessageType |
getDeclMessage() |
ServiceType |
getDeclService() |
TypedefType |
getDeclTypedef() |
boolean |
has(int key) |
boolean |
hasDeclConst()
Checks for presence of the
decl_const field. |
boolean |
hasDeclEnum()
Checks for presence of the
decl_enum field. |
boolean |
hasDeclMessage()
Checks for presence of the
decl_message field. |
boolean |
hasDeclService()
Checks for presence of the
decl_service field. |
boolean |
hasDeclTypedef()
Checks for presence of the
decl_typedef field. |
int |
hashCode() |
boolean |
isModified(int key) |
boolean |
isSet(int key) |
boolean |
isSetDeclConst()
Checks for explicit presence of the
decl_const field. |
boolean |
isSetDeclEnum()
Checks for explicit presence of the
decl_enum field. |
boolean |
isSetDeclMessage()
Checks for explicit presence of the
decl_message field. |
boolean |
isSetDeclService()
Checks for explicit presence of the
decl_service field. |
boolean |
isSetDeclTypedef()
Checks for explicit presence of the
decl_typedef field. |
boolean |
isUnionModified()
Checks if the
Declaration union has been modified since the
builder was created. |
Declaration._Builder |
merge(Declaration from) |
ConstType._Builder |
mutableDeclConst()
Get the builder for the contained
decl_const message field. |
EnumType._Builder |
mutableDeclEnum()
Get the builder for the contained
decl_enum message field. |
MessageType._Builder |
mutableDeclMessage()
Get the builder for the contained
decl_message message field. |
ServiceType._Builder |
mutableDeclService()
Get the builder for the contained
decl_service message field. |
TypedefType._Builder |
mutableDeclTypedef()
Get the builder for the contained
decl_typedef message field. |
net.morimekta.providence.PMessageBuilder |
mutator(int key) |
Optional<ConstType> |
optionalDeclConst() |
Optional<EnumType> |
optionalDeclEnum() |
Optional<MessageType> |
optionalDeclMessage() |
Optional<ServiceType> |
optionalDeclService() |
Optional<TypedefType> |
optionalDeclTypedef() |
void |
readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict) |
Declaration._Builder |
set(int key,
Object value) |
Declaration._Builder |
setDeclConst(ConstType_OrBuilder value)
Set the
decl_const field value. |
Declaration._Builder |
setDeclEnum(EnumType_OrBuilder value)
Set the
decl_enum field value. |
Declaration._Builder |
setDeclMessage(MessageType_OrBuilder value)
Set the
decl_message field value. |
Declaration._Builder |
setDeclService(ServiceType_OrBuilder value)
Set the
decl_service field value. |
Declaration._Builder |
setDeclTypedef(TypedefType_OrBuilder value)
Set the
decl_typedef field value. |
boolean |
valid() |
Declaration._Builder |
validate() |
addTo, clear, isModified, isSet, modifiedFieldNames, modifiedFields, mutator, presentFieldNames, presentFields, setpublic _Builder()
public _Builder(Declaration base)
base - The base Declaration@Nonnull public Declaration._Builder merge(Declaration from)
merge in class net.morimekta.providence.PMessageBuilder<Declaration>@Nonnull public Declaration._Builder setDeclEnum(EnumType_OrBuilder value)
decl_enum field value.value - The new valuepublic boolean isSetDeclEnum()
decl_enum field.public boolean hasDeclEnum()
decl_enum field.hasDeclEnum in interface Declaration_OrBuilder@Nonnull public Declaration._Builder clearDeclEnum()
decl_enum field.@Nonnull public EnumType._Builder mutableDeclEnum()
decl_enum message field.public EnumType getDeclEnum()
getDeclEnum in interface Declaration_OrBuilderdecl_enum field value@Nonnull public Optional<EnumType> optionalDeclEnum()
optionalDeclEnum in interface Declaration_OrBuilderdecl_enum field value@Nonnull public Declaration._Builder setDeclTypedef(TypedefType_OrBuilder value)
decl_typedef field value.value - The new valuepublic boolean isSetDeclTypedef()
decl_typedef field.public boolean hasDeclTypedef()
decl_typedef field.hasDeclTypedef in interface Declaration_OrBuilder@Nonnull public Declaration._Builder clearDeclTypedef()
decl_typedef field.@Nonnull public TypedefType._Builder mutableDeclTypedef()
decl_typedef message field.public TypedefType getDeclTypedef()
getDeclTypedef in interface Declaration_OrBuilderdecl_typedef field value@Nonnull public Optional<TypedefType> optionalDeclTypedef()
optionalDeclTypedef in interface Declaration_OrBuilderdecl_typedef field value@Nonnull public Declaration._Builder setDeclMessage(MessageType_OrBuilder value)
decl_message field value.value - The new valuepublic boolean isSetDeclMessage()
decl_message field.public boolean hasDeclMessage()
decl_message field.hasDeclMessage in interface Declaration_OrBuilder@Nonnull public Declaration._Builder clearDeclMessage()
decl_message field.@Nonnull public MessageType._Builder mutableDeclMessage()
decl_message message field.public MessageType getDeclMessage()
getDeclMessage in interface Declaration_OrBuilderdecl_message field value@Nonnull public Optional<MessageType> optionalDeclMessage()
optionalDeclMessage in interface Declaration_OrBuilderdecl_message field value@Nonnull public Declaration._Builder setDeclService(ServiceType_OrBuilder value)
decl_service field value.value - The new valuepublic boolean isSetDeclService()
decl_service field.public boolean hasDeclService()
decl_service field.hasDeclService in interface Declaration_OrBuilder@Nonnull public Declaration._Builder clearDeclService()
decl_service field.@Nonnull public ServiceType._Builder mutableDeclService()
decl_service message field.public ServiceType getDeclService()
getDeclService in interface Declaration_OrBuilderdecl_service field value@Nonnull public Optional<ServiceType> optionalDeclService()
optionalDeclService in interface Declaration_OrBuilderdecl_service field value@Nonnull public Declaration._Builder setDeclConst(ConstType_OrBuilder value)
decl_const field value.value - The new valuepublic boolean isSetDeclConst()
decl_const field.public boolean hasDeclConst()
decl_const field.hasDeclConst in interface Declaration_OrBuilder@Nonnull public Declaration._Builder clearDeclConst()
decl_const field.@Nonnull public ConstType._Builder mutableDeclConst()
decl_const message field.public ConstType getDeclConst()
getDeclConst in interface Declaration_OrBuilderdecl_const field value@Nonnull public Optional<ConstType> optionalDeclConst()
optionalDeclConst in interface Declaration_OrBuilderdecl_const field valuepublic boolean isUnionModified()
Declaration union has been modified since the
builder was created.public net.morimekta.providence.PMessageBuilder mutator(int key)
mutator in class net.morimekta.providence.PMessageBuilder<Declaration>@Nonnull public Declaration._Builder set(int key, Object value)
set in class net.morimekta.providence.PMessageBuilder<Declaration>public boolean isSet(int key)
isSet in class net.morimekta.providence.PMessageBuilder<Declaration>public boolean isModified(int key)
isModified in class net.morimekta.providence.PMessageBuilder<Declaration>public <T> T get(int key)
get in interface net.morimekta.providence.PMessageOrBuilder<Declaration>public boolean has(int key)
has in interface net.morimekta.providence.PMessageOrBuilder<Declaration>@Nonnull public Declaration._Builder addTo(int key, Object value)
addTo in class net.morimekta.providence.PMessageBuilder<Declaration>@Nonnull public Declaration._Builder clear(int key)
clear in class net.morimekta.providence.PMessageBuilder<Declaration>public boolean valid()
valid in class net.morimekta.providence.PMessageBuilder<Declaration>public Declaration._Builder validate()
validate in class net.morimekta.providence.PMessageBuilder<Declaration>@Nonnull public net.morimekta.providence.descriptor.PUnionDescriptor<Declaration> descriptor()
descriptor in interface net.morimekta.providence.PMessageOrBuilder<Declaration>descriptor in interface net.morimekta.providence.PValue<Declaration>public void readBinary(net.morimekta.util.io.BigEndianBinaryReader reader,
boolean strict)
throws IOException
readBinary in interface net.morimekta.providence.serializer.binary.BinaryReaderIOException@Nonnull public Declaration build()
build in class net.morimekta.providence.PMessageBuilder<Declaration>Copyright © 2015–2020 morimekta.net. All rights reserved.