Clang-Tidy: Fix nits to generating protobuf CL

This CL fixes a few nits of the original CL. Mainly:
 - generate_protobufs() produces a generator rather than a list since we
 are only concerned with writing one protobuf at a time
 - writes serialized protobuffer length as binary data
 - raises an error if compiler output does not match expected format
 specified in code
 - adds a bash script to compile the protobuffer file

Change-Id: I4ea580f3639b950b4b27f0343ab14e7a4aac5100
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1646193
Reviewed-by: George Burgess <gbiv@chromium.org>
Tested-by: Emma Vukelj <emmavukelj@google.com>
3 files changed