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.
 
 
 
 
 
 

33 lines
574 B

syntax = "proto2";
package protobuf_editions_test.proto2;
/**
Multiline message comment - no asterisk
*/
message Message1 {
/**
Multiline field comment - no asterisk
*/
optional string field = 1;
}
/*
* Multiline message comment - single asterisk
*/
message Message2 {
/*
* Multiline message comment - single asterisk
*/
optional string field = 1;
}
/**
* Exactly one trait must be set. Extension # is vendor_id + 1.
*/
message Message3 {
/**
* Exactly one trait must be set. Extension # is vendor_id + 1.
*/
optional string field = 1;
}