0

I noticed that protocol buffers / protostuff generate the Java default no-argument constructor when there are required fields. Is there a way to instrument it to not do it for a specific message?

Example

message Response {
  required ErrorCode errorCode;
  repeated Data;
}

I would like it to generate only one constructor

public Response(ErrorCode errorCode) {};
Michele Dorigatti
  • 811
  • 1
  • 9
  • 17

0 Answers0