Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed 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 | from __future__ import print_function |
| 8 | from __future__ import division |
| 9 | from __future__ import absolute_import |
| 10 | |
| 11 | from protorpc import messages |
| 12 | |
| 13 | |
| 14 | class PBProxyExample(messages.Message): |
| 15 | """A simple protocol buffer to test template_helpers.PBProxy.""" |
| 16 | nickname = messages.StringField(1) |
| 17 | invited = messages.BooleanField(2, default=False) |
| 18 | |
| 19 | |
| 20 | class PBProxyNested(messages.Message): |
| 21 | """A simple protocol buffer to test template_helpers.PBProxy.""" |
| 22 | nested = messages.MessageField(PBProxyExample, 1) |
| 23 | multiple_strings = messages.StringField(2, repeated=True) |
| 24 | multiple_pbes = messages.MessageField(PBProxyExample, 3, repeated=True) |