任务:使用protobuf将对象列表序列化为byte[]。问题: Protobuf本身为它们生成实体和属性,但它没有为RepeatedField创建一个设置器,这意味着我不能使用GetProperty("Objects")?.System.ArgumentException:未找到“对象”的Set方法public pbc::RepeatedField<global::Test.MyObject> Objects{
get { r
我希望使用PHP将Protobuf对象转换为JSON对象,以便将其发送回浏览器。我的Protobuf是package Protobuf.Gen.ProposalTotalModel;use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPB