我在客户端有一个 proto 文件,在服务器中有一个,但是客户端 protobuf 中特定属性的字段编号在服务器 proto 中必须相同。
message Foo_client {
string foo_has = 1;
string bar_has = 3;
}
message Foo_server {
string bar_true = 1;
string foo_true = 2;
string bar_has = 3;
}
since in server proto file attribute "bar_has" had tag=3 ,so in client it has to be 3
why?? and is there any other solution that we can use to remove this ambiguity