Class ProtoEnumValueMetadata
- java.lang.Object
-
- org.infinispan.protostream.annotations.impl.ProtoEnumValueMetadata
-
- All Implemented Interfaces:
HasProtoSchema
public final class ProtoEnumValueMetadata extends Object implements HasProtoSchema
- Since:
- 3.0
- Author:
- [email protected]
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
generateProto(IndentWriter iw)
String
getDocumentation()
Returns the documentation attached to this enum.String
getJavaEnumName()
Returns the FQN of the Java enum constant.int
getJavaEnumOrdinal()
Returns the ordinal of the Java enum constant.int
getNumber()
Returns the Protobuf number associated to this enum value.String
getProtoName()
Returns the Protobuf name of this enum value.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.protostream.annotations.impl.HasProtoSchema
toProtoSchema
-
-
-
-
Method Detail
-
getNumber
public int getNumber()
Returns the Protobuf number associated to this enum value.
-
getProtoName
public String getProtoName()
Returns the Protobuf name of this enum value.
-
getJavaEnumOrdinal
public int getJavaEnumOrdinal()
Returns the ordinal of the Java enum constant.
-
getJavaEnumName
public String getJavaEnumName()
Returns the FQN of the Java enum constant.
-
getDocumentation
public String getDocumentation()
Returns the documentation attached to this enum.
-
generateProto
public void generateProto(IndentWriter iw)
- Specified by:
generateProto
in interfaceHasProtoSchema
-
-