Annotation Interface Protobuf


@Target(FIELD) @Retention(RUNTIME) @Inherited @Documented public @interface Protobuf
A mapped annotation for protobuf
从以下版本开始:
1.0.0
作者:
xiemalin
  • 元素详细资料

    • required

      boolean required
       Specifying Field Rules to required or optional 
       default is false. optional
       
      返回:
      Specifying Field Rules
      默认值:
      false
    • order

      int order
      Set field order. It starts at 1;
      返回:
      field order.
      默认值:
      0
    • fieldType

      FieldType fieldType
      返回:
      field type
      默认值:
      DEFAULT
    • description

      String description
      返回:
      description to the field
      默认值:
      ""