Protocol buffers Protobuf:更改消息名称是否会导致向后兼容错误?

Protocol buffers Protobuf:更改消息名称是否会导致向后兼容错误?,protocol-buffers,Protocol Buffers,假设我对以下Protobuf MessageData有一个协议: message Person { string name = 1; int32 age = 2; } 我想把消息名从“Person”改为“personew”。如果我只在客户端更改protobuf版本,服务器是否会因为不兼容错误而抛出错误?只要您不使用Any类型,消息名称在数据格式中不存在,因此您可以随意更改

假设我对以下Protobuf MessageData有一个协议:

message Person {   
   string name = 1;
   int32 age = 2;
}

我想把消息名从“Person”改为“personew”。如果我只在客户端更改protobuf版本,服务器是否会因为不兼容错误而抛出错误?

只要您不使用
Any
类型,消息名称在数据格式中不存在,因此您可以随意更改