Class ProtoEnumValueMetadata
java.lang.Object
org.infinispan.protostream.annotations.impl.ProtoEnumValueMetadata
- All Implemented Interfaces:
HasProtoSchema
- Since:
- 3.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProtoEnumValueMetadata(int number, String protoName, int javaEnumOrdinal, String javaEnumName, String documentation) -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateProto(IndentWriter iw, ProtoSyntax syntax) Returns the documentation attached to this enum.Returns the FQN of the Java enum constant.intReturns the ordinal of the Java enum constant.intReturns the Protobuf number associated to this enum value.Returns the Protobuf name of this enum value.toString()
-
Field Details
-
number
private final int number -
protoName
-
javaEnumOrdinal
private final int javaEnumOrdinal -
javaEnumName
-
documentation
-
-
Constructor Details
-
ProtoEnumValueMetadata
-
-
Method Details
-
getNumber
public int getNumber()Returns the Protobuf number associated to this enum value. -
getProtoName
Returns the Protobuf name of this enum value. -
getJavaEnumOrdinal
public int getJavaEnumOrdinal()Returns the ordinal of the Java enum constant. -
getJavaEnumName
Returns the FQN of the Java enum constant. -
getDocumentation
Returns the documentation attached to this enum. -
generateProto
- Specified by:
generateProtoin interfaceHasProtoSchema
-
toString
-