@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") @Immutable public class EnumValue extends Object implements Decl, EnumValue_OrBuilder, net.morimekta.providence.PMessage<EnumValue>, Comparable<EnumValue>, Serializable, net.morimekta.providence.serializer.binary.BinaryWriter
| Modifier and Type | Class and Description |
|---|---|
static class |
EnumValue._Builder
<name> (= <value>)
|
static class |
EnumValue._Field |
| Modifier and Type | Field and Description |
|---|---|
static net.morimekta.providence.descriptor.PStructDescriptor<EnumValue> |
kDescriptor |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
static EnumValue._Builder |
builder()
Make a
p_model.EnumValue builder. |
int |
compareTo(EnumValue other) |
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() |
boolean |
hasDocumentation() |
int |
hashCode() |
boolean |
hasId() |
boolean |
hasName() |
EnumValue._Builder |
mutate() |
int |
numAnnotations() |
Optional<Map<String,String>> |
optionalAnnotations() |
Optional<String> |
optionalDocumentation()
Documentation for the specific declaration.
|
Optional<Integer> |
optionalId() |
static net.morimekta.providence.descriptor.PStructDescriptorProvider<EnumValue> |
provider() |
String |
toString() |
int |
writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer) |
public static final net.morimekta.providence.descriptor.PStructDescriptor<EnumValue> kDescriptor
public boolean hasDocumentation()
hasDocumentation in interface Declpublic String getDocumentation()
DeclgetDocumentation in interface Decldocumentation value@Nonnull public Optional<String> optionalDocumentation()
DecloptionalDocumentation in interface Decldocumentation field value.public boolean hasName()
@Nonnull public String getName()
Declpublic boolean hasId()
hasId in interface EnumValue_OrBuilderpublic int getId()
getId in interface EnumValue_OrBuilderid value@Nonnull public Optional<Integer> optionalId()
optionalId in interface EnumValue_OrBuilderid field value.public int numAnnotations()
numAnnotations in interface EnumValue_OrBuilderpublic boolean hasAnnotations()
hasAnnotations in interface EnumValue_OrBuilderpublic Map<String,String> getAnnotations()
getAnnotations in interface EnumValue_OrBuilderannotations value@Nonnull public Optional<Map<String,String>> optionalAnnotations()
optionalAnnotations in interface EnumValue_OrBuilderannotations field value.public boolean has(int key)
has in interface net.morimekta.providence.PMessageOrBuilder<EnumValue>public <T> T get(int key)
get in interface net.morimekta.providence.PMessageOrBuilder<EnumValue>@Nonnull public String asString()
asString in interface net.morimekta.providence.PMessage<EnumValue>asString in interface net.morimekta.util.Stringablepublic int compareTo(EnumValue other)
compareTo in interface Comparable<EnumValue>public int writeBinary(net.morimekta.util.io.BigEndianBinaryWriter writer)
throws IOException
writeBinary in interface net.morimekta.providence.serializer.binary.BinaryWriterIOException@Nonnull public EnumValue._Builder mutate()
mutate in interface net.morimekta.providence.PMessage<EnumValue>@Nonnull public static net.morimekta.providence.descriptor.PStructDescriptorProvider<EnumValue> provider()
@Nonnull public net.morimekta.providence.descriptor.PStructDescriptor<EnumValue> descriptor()
public static EnumValue._Builder builder()
p_model.EnumValue builder.Copyright © 2015–2020 morimekta.net. All rights reserved.