Adrià Vilanova MartÃnez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame^] | 1 | # Copyright 2016 The Chromium Authors |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 4 | |
| 5 | """Message classes for use by template_helpers_test.""" |
| 6 | from __future__ import print_function |
| 7 | from __future__ import division |
| 8 | from __future__ import absolute_import |
| 9 | |
| 10 | from protorpc import messages |
| 11 | |
| 12 | |
| 13 | class PBProxyExample(messages.Message): |
| 14 | """A simple protocol buffer to test template_helpers.PBProxy.""" |
| 15 | nickname = messages.StringField(1) |
| 16 | invited = messages.BooleanField(2, default=False) |
| 17 | |
| 18 | |
| 19 | class PBProxyNested(messages.Message): |
| 20 | """A simple protocol buffer to test template_helpers.PBProxy.""" |
| 21 | nested = messages.MessageField(PBProxyExample, 1) |
| 22 | multiple_strings = messages.StringField(2, repeated=True) |
| 23 | multiple_pbes = messages.MessageField(PBProxyExample, 3, repeated=True) |