| # Copyright 2016 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| """Message classes for use by template_helpers_test.""" |
| from __future__ import print_function |
| from __future__ import division |
| from __future__ import absolute_import |
| |
| from protorpc import messages |
| |
| |
| class PBProxyExample(messages.Message): |
| """A simple protocol buffer to test template_helpers.PBProxy.""" |
| nickname = messages.StringField(1) |
| invited = messages.BooleanField(2, default=False) |
| |
| |
| class PBProxyNested(messages.Message): |
| """A simple protocol buffer to test template_helpers.PBProxy.""" |
| nested = messages.MessageField(PBProxyExample, 1) |
| multiple_strings = messages.StringField(2, repeated=True) |
| multiple_pbes = messages.MessageField(PBProxyExample, 3, repeated=True) |