Protocol Buffers - Google's data interchange format (grpc依赖) https://developers.google.com/protocol-buffers/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
372 B

syntax = "proto2";
package upb_test;
import "google/protobuf/struct.proto";
enum Tag {
Z_NONE = 0;
Z_BAR = 1;
Z_BAZ = -2;
Z_BAT = 13;
}
message Box {
optional Tag first_tag = 1;
repeated Tag more_tags = 2;
optional Tag last_tag = 5;
optional string name = 4;
optional google.protobuf.Value val = 6;
optional float f = 7;
optional double d = 8;
}