/** * <code>bytes exception = 2;</code> */ public Builder setException(org.apache.ratis.thirdparty.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } exception_ = value; onChanged(); return this; } /**
/** * <code>.ratis.common.RaftRpcReplyProto rpcReply = 1;</code> */ public Builder setRpcReply(org.apache.ratis.proto.RaftProtos.RaftRpcReplyProto value) { if (rpcReplyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rpcReply_ = value; onChanged(); } else { rpcReplyBuilder_.setMessage(value); } return this; } /**
/** * <code>.ratis.common.RaftRpcReplyProto rpcReply = 1;</code> */ public Builder mergeRpcReply(org.apache.ratis.proto.RaftProtos.RaftRpcReplyProto value) { if (rpcReplyBuilder_ == null) { if (rpcReply_ != null) { rpcReply_ = org.apache.ratis.proto.RaftProtos.RaftRpcReplyProto.newBuilder(rpcReply_).mergeFrom(value).buildPartial(); } else { rpcReply_ = value; } onChanged(); } else { rpcReplyBuilder_.mergeFrom(value); } return this; } /**
/** * <code>.ratis.common.RaftRpcReplyProto rpcReply = 1;</code> */ public Builder clearRpcReply() { if (rpcReplyBuilder_ == null) { rpcReply_ = null; onChanged(); } else { rpcReply_ = null; rpcReplyBuilder_ = null; } return this; } /**
/** * <code>.ratis.common.RaftRpcReplyProto rpcReply = 1;</code> */ public Builder setRpcReply( org.apache.ratis.proto.RaftProtos.RaftRpcReplyProto.Builder builderForValue) { if (rpcReplyBuilder_ == null) { rpcReply_ = builderForValue.build(); onChanged(); } else { rpcReplyBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <code>bytes exception = 2;</code> */ public Builder clearException() { exception_ = getDefaultInstance().getException(); onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>.ratis.common.RaftRpcReplyProto rpcReply = 1;</code> */ public org.apache.ratis.proto.RaftProtos.RaftRpcReplyProto.Builder getRpcReplyBuilder() { onChanged(); return getRpcReplyFieldBuilder().getBuilder(); } /**
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; }