Protocol buffers - unique numbered tag - clarification?
问题 I'm using protocol buffers and everything is working fine. except that the fact that I don't understand - why do I need the numbered tags in the proto file : message SearchRequest { required string query = 1; optional int32 page_number = 2; optional int32 result_per_page = 3; } Sure I've read the docs : As you can see, 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