change ProtoBuilder build to bytes