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 value  
    • Optional Element Summary

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

      • value

        int value
      • alias

        java.lang.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