Package io.protostuff

Annotation Type Tag


@Retention(RUNTIME) @Target(FIELD) public @interface Tag
A field annotation to configure the field number explicitly.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Overrides the field name (useful for non-binary formats like json/xml/yaml).
    int
    A value of 0x1F means the first 5 groups (1,2,4,8,16 - bits) will include this field.
  • Element Details

    • value

      int value
    • alias

      String alias
      Overrides the field name (useful for non-binary formats like json/xml/yaml). Optional.
      Default:
      ""
    • groupFilter

      int groupFilter
      A value of 0x1F means the first 5 groups (1,2,4,8,16 - bits) will include this field. A negative value of 0x1F means the first 5 groups will exclude this field. Optional.
      Default:
      0