Annotation Type OneofBase
-
@Target({FIELD,TYPE,PARAMETER}) @Retention(SOURCE) public @interface OneofBaseMap between a base class or interface to oneof group Used with conjunction foOneofField
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description OneofField[]oneOfFieldsA list of annotations which map classes derived from the annotated class and their domain field name to corresponding protobuf fields in the oneof group.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringoneofNameThe name of the oneof definition in the protobuf schema.
-
-
-
Element Detail
-
oneOfFields
OneofField[] oneOfFields
A list of annotations which map classes derived from the annotated class and their domain field name to corresponding protobuf fields in the oneof group.- Returns:
- A list of
OneofFieldannotations
-
-
-
oneofName
java.lang.String oneofName
The name of the oneof definition in the protobuf schema. If the annotation is attached to a field the default is derived from the field name. If the annotation is attached to the class then it must be specified.- Returns:
- Protobuf oneof definition name
- Default:
- ""
-
-