-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathcomments.proto
More file actions
54 lines (42 loc) · 904 Bytes
/
comments.proto
File metadata and controls
54 lines (42 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* 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.
}