diff options
author | Yu Shan <shanyu@google.com> | 2018-07-24 17:26:36 -0700 |
---|---|---|
committer | Yu Shan <shanyu@google.com> | 2018-07-25 14:51:13 -0400 |
commit | 56ebba603b8b913261a40f3f61561bb728e3eaa5 (patch) | |
tree | 9aa05df75ba4f5da6459d0192fb5f937a34eaa90 /tests/multiple_files/multifile1.proto | |
parent | 3b20283285e6ae76ba17167d20eaeab0461ff0d9 (diff) | |
download | nanopb-c-56ebba603b8b913261a40f3f61561bb728e3eaa5.tar.gz |
Upgrade nanopb to 0.3.9.1
Downloaded from https://github.com/nanopb/nanopb/archive/0.3.9.1.tar.gz
Also upload generator/google to python-protobuf 3.0.0. Copied from
/usr/lib/python2.7/dist-packages/google after run
apt-get install python-protobuf. Remove *.so to force it to use
python implementation instead of prebuilt cpp implementation.
Bug: b/111798740
Test: None
Change-Id: I110dc1352b05a372811520efd34ffbda5abc2a02
Diffstat (limited to 'tests/multiple_files/multifile1.proto')
-rw-r--r-- | tests/multiple_files/multifile1.proto | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/multiple_files/multifile1.proto b/tests/multiple_files/multifile1.proto new file mode 100644 index 0000000..18f2c67 --- /dev/null +++ b/tests/multiple_files/multifile1.proto @@ -0,0 +1,34 @@ +syntax = "proto2"; + +message SubMessage { + optional string stringvalue = 1; + repeated int32 int32value = 2; + repeated fixed32 fixed32value = 3; + repeated fixed64 fixed64value = 4; +} + +message TestMessage { + optional string stringvalue = 1; + repeated int32 int32value = 2; + repeated fixed32 fixed32value = 3; + repeated fixed64 fixed64value = 4; + optional SubMessage submsg = 5; + repeated string repeatedstring = 6; +} + +message StaticMessage { + repeated fixed32 repint32 = 1; +} + +enum SignedEnum { + SE_MIN = -128; + SE_MAX = 127; +} + +enum UnsignedEnum { + UE_MIN = 0; + UE_MAX = 255; +} + + + |