Pretty protobuf serialize and rpc implemention for java