Annotation Interface Proto
Defines a Protocol Buffers message or enum without having to annotate all fields with
ProtoField or ProtoEnumValue.
Use this annotation on records or classes with public fields to quickly generate protocol buffers messages.
Fields must be public and they will be assigned incremental numbers based on the declaration order.
It is possible to override the automated defaults for a field by using the ProtoField annotation.
Use this annotation on Java enums to quickly generate protocol buffer enums.
The enums will use the natural ordinal number of the values.
It is possible to override the automated defaults for an enum value by using the ProtoEnumValue annotation.
- Since:
- 5.0