Package org.tribuo.protos
Annotation Interface ProtoSerializableField
Annotation which denotes that a field should be part of the protobuf serialized representation.
Behaviour is undefined when used on a class which doesn't implement ProtoSerializable
.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe name of the field in the protobuf in Java.int
The protobuf version when this field was added. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The default field name, used to signify it should use the field name rather than a supplied value.
-
Field Details
-
DEFAULT_FIELD_NAME
The default field name, used to signify it should use the field name rather than a supplied value.- See Also:
-
-
Element Details
-
sinceVersion
int sinceVersionThe protobuf version when this field was added.- Returns:
- The version.
- Default:
- 0
-
name
String nameThe name of the field in the protobuf in Java.- Returns:
- The field name.
- Default:
- "[DEFAULT_FIELD_NAME]"
-