OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is govered by a BSD-style |
| 3 # license that can be found in the LICENSE file or at |
| 4 # https://developers.google.com/open-source/licenses/bsd |
| 5 |
| 6 """Message classes for use by template_helpers_test.""" |
| 7 |
| 8 from protorpc import messages |
| 9 |
| 10 |
| 11 class PBProxyExample(messages.Message): |
| 12 """A simple protocol buffer to test template_helpers.PBProxy.""" |
| 13 foo = messages.StringField(1) |
| 14 bar = messages.BooleanField(2, default=False) |
| 15 |
| 16 |
| 17 class PBProxyNested(messages.Message): |
| 18 """A simple protocol buffer to test template_helpers.PBProxy.""" |
| 19 nested = messages.MessageField(PBProxyExample, 1) |
| 20 multiple_strings = messages.StringField(2, repeated=True) |
| 21 multiple_pbes = messages.MessageField(PBProxyExample, 3, repeated=True) |
OLD | NEW |