package tutorial;
message Person {
required string name = 1;
required int32 id = 2;
optional string email = 3;
}
“1”、“2”、“3”是什么意思?
最佳答案
Each field in the message definition has a unique numbered tag. These tags are used to identify your fields in the message binary format, and should not be changed once your message type is in use.
https://web.archive.org/web/20120321055631/http://code.google.com/intl/de-DE/apis/protocolbuffers/docs/proto.html
关于protocol-buffers - "1", "2", "3"在protobuf中是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9018274/