smjn commented on code in PR #18929: URL: https://github.com/apache/kafka/pull/18929#discussion_r2077325726
########## clients/src/main/java/org/apache/kafka/common/requests/AlterShareGroupOffsetsRequest.java: ########## @@ -78,6 +78,24 @@ public static AlterShareGroupOffsetsRequest parse(Readable readable, short versi ); } + public static AlterShareGroupOffsetsResponseData.AlterShareGroupOffsetsResponseTopic getErrorAlterShareGroup( + Errors error + ) { + return new AlterShareGroupOffsetsResponseData.AlterShareGroupOffsetsResponseTopic() + .setPartitions(List.of( + new AlterShareGroupOffsetsResponseData.AlterShareGroupOffsetsResponsePartition() + .setPartitionIndex(-1) + .setErrorCode(error.code()) + )); + } + + public static AlterShareGroupOffsetsResponseData getErrorAlterShareGroupResponseData( Review Comment: avoid get -- 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. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org