hachikuji commented on a change in pull request #9732: URL: https://github.com/apache/kafka/pull/9732#discussion_r541199422
########## File path: clients/src/main/java/org/apache/kafka/common/requests/AddOffsetsToTxnRequest.java ########## @@ -53,7 +53,7 @@ public AddOffsetsToTxnRequest(AddOffsetsToTxnRequestData data, short version) { } @Override - protected AddOffsetsToTxnRequestData data() { + public AddOffsetsToTxnRequestData data() { Review comment: Support for optional fields would go a long way I think. I am not sure it will be possible to remove all intermediate representations, but perhaps they can be the exception and not the rule. Some version checks in `KafkaApis` are probably inevitable. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org