Annotation Interface ProtoTypeId
An optional annotation for specifying the a numeric type identifier for a Protobuf message or enum type. This numeric
identifier must be globally unique so it can be used to identify the type instead of the fully qualified name.
This Java annotations results in a protostream documentation annotation 'TypeId' being added to the generated proto schema.
- Since:
- 4.3
- Author:
- [email protected]
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionint
Defines the type id of the Protobuf message or enum type.
-
Element Details
-
value
int valueDefines the type id of the Protobuf message or enum type. This optional annotation defines a unique integer type identifier for a protobuf definition. This can be used alternatively instead of the fully qualified type name during marshalling to save bandwidth. The type id must not be negative.Values in the range 0..65535 (inclusive) are reserved for internal use by Protostream and other projects from the Infinispan organisation and should not be used by application developers.
-