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
The name of the Protobuf enum value.
int
The Protocol Buffers tag number.
int
-
Element Details
-
value
int value
- Default:
- 0
-
number
int number
The Protocol Buffers tag number. Alias for
value()
(mutually exclusive).
- Default:
- 0
-
name
The name of the Protobuf enum value. If missing, the Java name will be used for Protobuf too.
- Default:
- ""