blob: 16db03d47fba3462d24c3d8c68c31af3d57097b7 [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001# 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.
Copybara854996b2021-09-07 19:36:02 +00004
5"""Message classes for use by template_helpers_test."""
6from __future__ import print_function
7from __future__ import division
8from __future__ import absolute_import
9
10from protorpc import messages
11
12
13class 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
19class 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)