@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasRpcReply()) { hash = (37 * hash) + RPCREPLY_FIELD_NUMBER; hash = (53 * hash) + getRpcReply().hashCode(); } hash = (37 * hash) + EXCEPTION_FIELD_NUMBER; hash = (53 * hash) + getException().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto)) { return super.equals(obj); } org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto other = (org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto) obj; boolean result = true; result = result && (hasRpcReply() == other.hasRpcReply()); if (hasRpcReply()) { result = result && getRpcReply() .equals(other.getRpcReply()); } result = result && getException() .equals(other.getException()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto other) { if (other == org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto.getDefaultInstance()) return this; if (other.hasRpcReply()) { mergeRpcReply(other.getRpcReply()); } if (other.getException() != org.apache.ratis.thirdparty.com.google.protobuf.ByteString.EMPTY) { setException(other.getException()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }