Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: components/tracing/proto_zero_test/mock_messages.proto

Issue 2083373002: proto_zero_plugin [NOT FOR REVIEW]. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: full_featured_will_split_into_smaller_CLs_for_review Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 syntax = "proto2";
2
3 package foo.bar;
4
5 enum SmallEnum {
6 TO_BE = 1;
7 NOT_TO_BE = 0;
8 }
9
10 enum SignedEnum {
11 POSITIVE = 1;
12 NEUTRAL = 0;
13 NEGATIVE = -1;
14 }
15
16 enum BigEnum {
17 BEGIN = 10;
18 END = 100500;
19 }
20
21 message EveryField {
22 optional int32 field_int32 = 1;
23 optional int64 field_int64 = 2;
24 optional uint32 field_uint32 = 3;
25 optional uint64 field_uint64 = 4;
26 optional sint32 field_sint32 = 5;
27 optional sint64 field_sint64 = 6;
28 optional fixed32 field_fixed32 = 7;
29 optional fixed64 field_fixed64 = 8;
30 optional sfixed32 field_sfixed32 = 9;
31 optional sfixed64 field_sfixed64 = 10;
32 optional float field_float = 11;
33 optional double field_double = 12;
34 optional bool field_bool = 13;
35
36 optional SmallEnum small_enum = 51;
37 optional SignedEnum signed_enum = 52;
38 optional BigEnum big_enum = 53;
39
40 optional string field_string = 500;
41 optional bytes field_bytes = 505;
42
43 enum NestedEnum {
44 PING = 1;
45 PONG = 2;
46 }
47 optional NestedEnum nested_enum = 600;
48
49 repeated int32 repeated_int32 = 999;
50 }
51
52 message NestedA {
53 message NestedB {
54 message NestedC {
55 optional int32 value_c = 1;
56 }
57 optional NestedC value_b = 1;
58 }
59 repeated NestedB repeated_a = 2;
60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698