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

Side by Side Diff: components/tracing/test/example_messages.proto

Issue 2201393002: Tracing V2: Import support for protobuf plugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style Created 4 years, 4 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
« no previous file with comments | « components/tracing/BUILD.gn ('k') | components/tracing/test/example_proto/library.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 syntax = "proto2";
6 package foo.bar;
7
8 // This file contains comprehensive set of supported message structures and
9 // data types. Unit tests depends on the plugin-processed version of this file.
10
11 enum SmallEnum {
12 TO_BE = 1;
13 NOT_TO_BE = 0;
14 }
15
16 enum SignedEnum {
17 POSITIVE = 1;
18 NEUTRAL = 0;
19 NEGATIVE = -1;
20 }
21
22 enum BigEnum {
23 BEGIN = 10;
24 END = 100500;
25 }
26
27 message EveryField {
28 optional int32 field_int32 = 1;
29 optional int64 field_int64 = 2;
30 optional uint32 field_uint32 = 3;
31 optional uint64 field_uint64 = 4;
32 optional sint32 field_sint32 = 5;
33 optional sint64 field_sint64 = 6;
34 optional fixed32 field_fixed32 = 7;
35 optional fixed64 field_fixed64 = 8;
36 optional sfixed32 field_sfixed32 = 9;
37 optional sfixed64 field_sfixed64 = 10;
38 optional float field_float = 11;
39 optional double field_double = 12;
40 optional bool field_bool = 13;
41
42 optional SmallEnum small_enum = 51;
43 optional SignedEnum signed_enum = 52;
44 optional BigEnum big_enum = 53;
45
46 optional string field_string = 500;
47 optional bytes field_bytes = 505;
48
49 enum NestedEnum {
50 PING = 1;
51 PONG = 2;
52 }
53 optional NestedEnum nested_enum = 600;
54
55 repeated int32 repeated_int32 = 999;
56 }
57
58 message NestedA {
59 message NestedB {
60 message NestedC {
61 optional int32 value_c = 1;
62 }
63 optional NestedC value_b = 1;
64 }
65 repeated NestedB repeated_a = 2;
66 }
OLDNEW
« no previous file with comments | « components/tracing/BUILD.gn ('k') | components/tracing/test/example_proto/library.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698