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 Details

    • 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 interface HasProtoSchema
    • toString

      public String toString()
      Overrides:
      toString in class Object