public static long getCallId(RaftNettyServerReplyProto proto) { switch (proto.getRaftNettyServerReplyCase()) { case REQUESTVOTEREPLY: return proto.getRequestVoteReply().getServerReply().getCallId(); case APPENDENTRIESREPLY: return proto.getAppendEntriesReply().getServerReply().getCallId(); case INSTALLSNAPSHOTREPLY: return proto.getInstallSnapshotReply().getServerReply().getCallId(); case RAFTCLIENTREPLY: return proto.getRaftClientReply().getRpcReply().getCallId(); case EXCEPTIONREPLY: return proto.getExceptionReply().getRpcReply().getCallId(); case RAFTNETTYSERVERREPLY_NOT_SET: throw new IllegalArgumentException("Reply case not set in proto: " + proto.getRaftNettyServerReplyCase()); default: throw new UnsupportedOperationException("Reply case not supported: " + proto.getRaftNettyServerReplyCase()); } }
case 4: hash = (37 * hash) + RAFTCLIENTREPLY_FIELD_NUMBER; hash = (53 * hash) + getRaftClientReply().hashCode(); break; case 5:
break; case 4: result = result && getRaftClientReply() .equals(other.getRaftClientReply()); break; case 5:
mergeRaftClientReply(other.getRaftClientReply()); break;
} else { return ClientProtoUtils.toRaftClientReply( proxy.send(rpcRequest, b.build()).getRaftClientReply());