Is there a ByteSize () equivalent for protobuf in Java? I am trying to get the size of the protobuff before serializing it.
Something like:
Protobuf.Builder buffer = Protobuf.newBuilder();
I need the buffer size now. Any idea how to get it?
source
to share