Debian Codegraph @

lang/go/testdata/names/types/proto2.proto

raw
1 syntax="proto2";
2 package names.types;
3 option go_package = "example.com/foo/bar";
4
5 import "google/protobuf/duration.proto";
6 import "google/protobuf/type.proto";
7
8 message Proto2 {
9 optional double double = 1;
10 optional float float = 2;
11 optional int64 int64 = 3;
12 optional sfixed64 sfixed64 = 4;
13 optional sint64 sint64 = 5;
14 optional uint64 uint64 = 6;
15 optional fixed64 fixed64 = 7;
16 optional int32 int32 = 8;
17 optional sfixed32 sfixed32 = 9;
18 optional sint32 sint32 = 10;
19 optional uint32 uint32 = 11;
20 optional fixed32 fixed32 = 12;
21 optional bool bool = 13;
22 optional string string = 14;
23 optional bytes bytes = 15;
24
25 optional Enum enum = 16;
26 optional google.protobuf.Syntax ext_enum = 17;
27 optional Required msg = 18;
28 optional google.protobuf.Duration ext_msg = 19;
29
30 repeated double repeated_scalar = 20;
31 repeated Enum repeated_enum = 21;
32 repeated google.protobuf.Syntax repeated_ext_enum = 22;
33 repeated Required repeated_msg = 23;
34 repeated google.protobuf.Duration repeated_ext_msg = 24;
35
36 map<string, float> map_scalar = 25;
37 map<int32, Enum> map_enum = 26;
38 map<uint64, google.protobuf.Syntax> map_ext_enum = 27;
39 map<fixed32, Required> map_msg = 28;
40 map<sfixed64, google.protobuf.Duration> map_ext_msg = 29;
41
42 enum Enum {VALUE = 0;}
43
44 message Required {
45 required double double = 1;
46 required float float = 2;
47 required int64 int64 = 3;
48 required sfixed64 sfixed64 = 4;
49 required sint64 sint64 = 5;
50 required uint64 uint64 = 6;
51 required fixed64 fixed64 = 7;
52 required int32 int32 = 8;
53 required sfixed32 sfixed32 = 9;
54 required sint32 sint32 = 10;
55 required uint32 uint32 = 11;
56 required fixed32 fixed32 = 12;
57 required bool bool = 13;
58 required string string = 14;
59 required bytes bytes = 15;
60 required Enum enum = 16;
61 required google.protobuf.Syntax ext_enum = 17;
62 required Required msg = 18;
63 required google.protobuf.Duration ext_msg = 19;
64 }
65 }