Annotation Interface ProtoEnumValue


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface ProtoEnumValue
Defines a Protobuf enum value. This annotation can only be applied to members of a Java enum.
Since:
3.0
Author:
[email protected]
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name of the Protobuf enum value.
    int
    The Protocol Buffers tag number.
    int
    Alias for number().
  • Element Details

    • value

      int value
      Alias for number().
      Default:
      0
    • number

      int number
      The Protocol Buffers tag number. Alias for value() (mutually exclusive).
      Default:
      0
    • name

      String name
      The name of the Protobuf enum value. If missing, the Java name will be used for Protobuf too.
      Default:
      ""