)]}' { "commit": "ba738525db4fae5e2e7886f7071d89091cc65dca", "tree": "7edf697792423ea89f194a7629d364794d487470", "parents": [ "5e7de864f5b79e515bdcc708c2c4ef4d74894d9b" ], "author": { "name": "Patrick Hiesel", "email": "hiesel@google.com", "time": "Fri Jan 20 15:17:49 2023 +0100" }, "committer": { "name": "Patrick Hiesel", "email": "hiesel@google.com", "time": "Fri Jan 20 16:14:26 2023 +0000" }, "message": "Add code to generate ProtocolBuffers from Gerrit API POJO definitions\n\nThis commit adds a first version that I consider work in progress.\nWe want to generate protocol buffers from the existing API objects.\n\nIn an idea future world, we reduce the current duplication of API\ndata definition we have (Java POJOs, docs, Typescript + 1 for any\nprogramming language any API client uses) to just a single place.\n\nProtocol Buffers seem interesting for that, so we start simply\nby offering a tool to generate *.proto files from POJO files. In\nfact, we don\u0027t even generate files yet, we just dump output to the\nCLI.\n\nKnown shortcomings and future work:\n- Handle list multimaps\n- Write files\n- Parse doc strings and unify Ascidoc DOCS and POJO docs\n\nRelease-Notes: skip\nChange-Id: Ie923cf74b6f1916065bb97abde132f9502cc42e8\n", "tree_diff": [ { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "27e4b17e3709797f4bfe8d6feda0cc9cc3e36f93", "new_mode": 33188, "new_path": "java/com/google/gerrit/util/cli/ApiProtocolBufferGenerator.java" }, { "type": "modify", "old_id": "ebcc67ed7094c8302c47cea2e7ad04498cdb441e", "old_mode": 33188, "old_path": "java/com/google/gerrit/util/cli/BUILD", "new_id": "b464f32d2f05f518cfa40b3469e9c8f80ee7c474", "new_mode": 33188, "new_path": "java/com/google/gerrit/util/cli/BUILD" } ] }