Add forward-compatibility with breaking proto descriptor API changes

Newer protobuf descriptor API returns string_view instead of string
which is a breaking change. Internal repos require this forward
compatibility.

Fix is to update fprintf calls that work with both std::string and
string_view and wrap string return values from proto descriptor API calls in
std::string().

Bug: 389150812
Test: m stats-log-api-gen
Test: stats-log-api-gen-test

Change-Id: Ie6f48a5ca492a7abacd434be74446d301d5d856e
1 file changed
tree: 9618a2525abe691ca8e689f47ac670e4e4dfc8d8
  1. stats/
  2. OWNERS