mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2025-12-08 20:58:55 +00:00
31 lines
564 B
Protocol Buffer
31 lines
564 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
/// message comment
|
|
message TestMessage {
|
|
/// field comment
|
|
string testField = 1;
|
|
|
|
/// map field comment
|
|
map<string, string> testMap = 2;
|
|
|
|
/// oneof field comment
|
|
oneof testOneof {
|
|
/// oneof string comment
|
|
string testOneofString = 3;
|
|
/// oneof bool comment
|
|
bool testOneofBool = 4;
|
|
}
|
|
}
|
|
|
|
/// service comment
|
|
service TestService {
|
|
/// method comment
|
|
rpc testMethod(TestMessage) returns (TestMessage) {}
|
|
}
|
|
|
|
/// enum comment
|
|
enum TestEnum {
|
|
/// enum value comment
|
|
VALUE = 1;
|
|
}
|