-
Notifications
You must be signed in to change notification settings - Fork 243
/
message-fields.proto
57 lines (52 loc) · 1.72 KB
/
message-fields.proto
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
55
56
57
// Test proto for message type fields.
syntax = "proto2";
package proto_kythe_test;
option java_package = "io.kythe";
//- @MessageFields defines/binding MessageFieldsNode
//- MessageFieldsNode childof FileNode
//- MessageFieldsNode.node/kind record
message MessageFields {
//- @Type1 ref Type1Node
//- @field_name defines/binding FieldNameNode
//- FieldNameNode childof MessageFieldsNode
//- FieldNameNode.node/kind variable
//- FieldNameNode.subkind field
//- FieldNameNode typed Type1Node
//- FieldNameNode code FNRoot
//- FNRoot child.0 FNLabel
//- FNLabel.kind "MODIFIER"
//- FNLabel.pre_text "optional"
//- FNRoot child.2 FNName
//- FNName child.0 FNQualName
//- FNName child.1 FNIdent
//- FNIdent.pre_text field_name
//- FNIdent.kind "IDENTIFIER"
//- FNQualName.kind "CONTEXT"
//- FNQualName.post_child_text "."
//- FNQualName.add_final_list_token true
//- FNQualName child.0 FNQualName0
//- FNQualName0.kind "IDENTIFIER"
//- FNQualName0.pre_text "proto_kythe_test"
//- FNQualName child.1 FNQualName1
//- FNQualName1.kind "IDENTIFIER"
//- FNQualName1.pre_text "MessageFields"
optional Type1 field_name = 1;
//- @Type1 ref Type1Node
//- @repeated_field_name defines/binding RepeatedNode
//- RepeatedNode childof MessageFieldsNode
//- RepeatedNode.node/kind variable
//- RepeatedNode.subkind field
//- FieldNameNode typed Type1Node
repeated Type1 repeated_field_name = 2;
}
//- @Type1 defines/binding Type1Node
//- Type1Node childof FileNode
//- Type1Node.node/kind record
message Type1 {
//- @test defines/binding TestNode
//- TestNode childof Type1Node
//- TestNode.node/kind variable
//- TestNode.subkind field
//- !{ TestNode typed _AnyTypeNode }
required string test = 1;
}