diff options
author | Yi Jin <jinyithu@google.com> | 2017-09-29 15:29:38 -0700 |
---|---|---|
committer | Yi Jin <jinyithu@google.com> | 2017-10-16 11:04:01 -0700 |
commit | c7f93070b6a5c8c12afcb77eb4e95c3018e1729f (patch) | |
tree | f34826870c2a8c6797af975a27861b40a4dcd0a9 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | fcf52c6f5e2276c9cf2ca245757a2f0f4b1d7e4e (diff) |
Convert proto3 to proto2 to avoid forced zero enum value.
The rationale for this change:
1. When defining enum values for platform, we want to use the current
integers, in some cases zero is not defined, but proto3 enforces a zero
default value.
2. Android Metrics Team uses proto2 on server-side
3. When copying .proto to server-side, the known issue of dropping
unknown fields might affect if using proto3
4. Not much benefits from using proto3
Bug: 67110257
Test: manully generate incident report and it looks normal
Change-Id: Ia63e39de549a46683e9f80fcb74f1d771782b7f4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions