add protobuf support in java