我想在java中将ByteString类型直接转化为String类型,不知道有哪些方法?ByteString是 com.google.protobuf.ByteString
protobuf中提供的,之前我需要将带有ByteString的组成的message结果借助Protobuf本身提供的com.google.protobuf.util.JsonFormat
转为json格式,这样其中的ByteString数据会变成一串字符串,但现在想问有没有哪提供了方法可以将ByteString类型直接转为String类型?
toStringUtf8