mirror of
https://github.com/protobufjs/protobuf.js.git
synced 2025-12-08 20:58:55 +00:00
Co-authored-by: Iaroslav Kolbin <y.kolbin@team.bumble.com> Co-authored-by: Alexander Fenster <fenster@google.com>
55 lines
904 B
Protocol Buffer
55 lines
904 B
Protocol Buffer
/**
|
|
* File with a comment. (TODO)
|
|
*/
|
|
|
|
syntax = "proto3";
|
|
|
|
/**
|
|
* Message
|
|
* with
|
|
a
|
|
** comment.
|
|
*/
|
|
message Test1 { /// not a valid comment
|
|
|
|
/**
|
|
* Field with a comment.
|
|
*/
|
|
string field1 = 1;
|
|
|
|
// Field with no comment.
|
|
uint32 field2 = 2;
|
|
|
|
bool field3 = 3; /// Field with a comment and a <a href="http://example.com/foo/">link</a>
|
|
}
|
|
|
|
// Message
|
|
// with
|
|
// no
|
|
// comment.
|
|
message Test2 {
|
|
}
|
|
|
|
/*
|
|
* Message
|
|
* with
|
|
* no
|
|
* comment
|
|
*/
|
|
enum Test3 {
|
|
|
|
/** Value with a comment. */
|
|
ONE = 1;
|
|
|
|
// Value with no comment.
|
|
TWO = 2;
|
|
|
|
/// Preferred value with a comment.
|
|
THREE = 3; /// Value with a comment.
|
|
|
|
FOUR = 4; /// Other value with a comment.
|
|
|
|
/// Leading comment for value with both types of comments after field with trailing comment.
|
|
FIVE = 5; /// Trailing comment for value with both types of comments after field with trailing comment.
|
|
}
|