Annotation Type ProtoField


  • @Target({FIELD,PARAMETER})
    @Retention(SOURCE)
    public @interface ProtoField
    Map between a field or constructor parameter in the domain class to a field in a protobuf message
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String protoName
      The name of the protobuf field.
    • Element Detail

      • protoName

        java.lang.String protoName
        The name of the protobuf field. By default, the name is derived from the name of the domain field/parameter
        Returns:
        The name of the protobuf field
        Default:
        ""