Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 syntax = "proto2"; | 5 syntax = "proto2"; |
| 6 package foo.bar; | 6 package foo.bar; |
| 7 | 7 |
| 8 import "library.proto"; | 8 import "library.proto"; |
| 9 | 9 |
| 10 // This file contains comprehensive set of supported message structures and | 10 // This file contains comprehensive set of supported message structures and |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 message NestedA { | 66 message NestedA { |
| 67 message NestedB { | 67 message NestedB { |
| 68 message NestedC { | 68 message NestedC { |
| 69 optional int32 value_c = 1; | 69 optional int32 value_c = 1; |
| 70 } | 70 } |
| 71 optional NestedC value_b = 1; | 71 optional NestedC value_b = 1; |
| 72 } | 72 } |
| 73 repeated NestedB repeated_a = 2; | 73 repeated NestedB repeated_a = 2; |
| 74 optional NestedB.NestedC super_nested = 3; | 74 optional NestedB.NestedC super_nested = 3; |
| 75 } | 75 } |
| 76 | |
| 77 message CamelCaseFields { | |
| 78 // To check that any reasonable name converts to camel case correctly. | |
| 79 optional bool foo_bar_baz = 1; | |
| 80 optional bool barBaz = 2; | |
| 81 optional bool MooMoo = 3; | |
| 82 optional bool URLEncoder = 4; | |
| 83 optional bool XMap = 5; | |
| 84 optional bool UrLE_nco__der = 6; | |
| 85 optional bool __bigBang = 7; | |
| 86 optional bool U2 = 8; | |
| 87 optional bool bangBig__ = 9; | |
| 88 | |
| 89 // Plugin should end up with error on this name. | |
| 90 // optional bool _ = 100; | |
|
Primiano Tucci (use gerrit)
2016/08/05 08:52:05
not sure what is the value of this comment here?
I
| |
| 91 } | |
| OLD | NEW |