input.readMessage(org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto) raftNettyServerReply_); raftNettyServerReply_ = subBuilder.buildPartial();
/** * <code>.ratis.netty.RaftNettyExceptionReplyProto exceptionReply = 7;</code> */ public Builder mergeExceptionReply(org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto value) { if (exceptionReplyBuilder_ == null) { if (raftNettyServerReplyCase_ == 7 && raftNettyServerReply_ != org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto.getDefaultInstance()) { raftNettyServerReply_ = org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto.newBuilder((org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto) raftNettyServerReply_) .mergeFrom(value).buildPartial(); } else { raftNettyServerReply_ = value; } onChanged(); } else { if (raftNettyServerReplyCase_ == 7) { exceptionReplyBuilder_.mergeFrom(value); } exceptionReplyBuilder_.setMessage(value); } raftNettyServerReplyCase_ = 7; return this; } /**
public Builder mergeFrom( org.apache.ratis.thirdparty.com.google.protobuf.CodedInputStream input, org.apache.ratis.thirdparty.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (org.apache.ratis.thirdparty.com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <code>.ratis.common.RaftRpcReplyProto rpcReply = 1;</code> */ private org.apache.ratis.thirdparty.com.google.protobuf.SingleFieldBuilderV3< org.apache.ratis.proto.RaftProtos.RaftRpcReplyProto, org.apache.ratis.proto.RaftProtos.RaftRpcReplyProto.Builder, org.apache.ratis.proto.RaftProtos.RaftRpcReplyProtoOrBuilder> getRpcReplyFieldBuilder() { if (rpcReplyBuilder_ == null) { rpcReplyBuilder_ = new org.apache.ratis.thirdparty.com.google.protobuf.SingleFieldBuilderV3< org.apache.ratis.proto.RaftProtos.RaftRpcReplyProto, org.apache.ratis.proto.RaftProtos.RaftRpcReplyProto.Builder, org.apache.ratis.proto.RaftProtos.RaftRpcReplyProtoOrBuilder>( getRpcReply(), getParentForChildren(), isClean()); rpcReply_ = null; } return rpcReplyBuilder_; }
/** * <code>.ratis.netty.RaftNettyExceptionReplyProto exceptionReply = 7;</code> */ public Builder setExceptionReply( org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto.Builder builderForValue) { if (exceptionReplyBuilder_ == null) { raftNettyServerReply_ = builderForValue.build(); onChanged(); } else { exceptionReplyBuilder_.setMessage(builderForValue.build()); } raftNettyServerReplyCase_ = 7; return this; } /**
public static Builder newBuilder(org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
private Builder() { maybeForceBuilderInitialization(); }
public org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto build() { org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
private Builder( org.apache.ratis.thirdparty.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
private static RaftNettyServerReplyProto toRaftNettyServerReplyProto( RaftRpcRequestProto request, IOException e) { final RaftRpcReplyProto.Builder rpcReply = RaftRpcReplyProto.newBuilder() .setRequestorId(request.getRequestorId()) .setReplyId(request.getReplyId()) .setCallId(request.getCallId()) .setSuccess(false); final RaftNettyExceptionReplyProto.Builder ioe = RaftNettyExceptionReplyProto.newBuilder() .setRpcReply(rpcReply) .setException(ProtoUtils.writeObject2ByteString(e)); return RaftNettyServerReplyProto.newBuilder().setExceptionReply(ioe).build(); }
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; }
public Builder mergeFrom(org.apache.ratis.thirdparty.com.google.protobuf.Message other) { if (other instanceof org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto) { return mergeFrom((org.apache.ratis.proto.netty.NettyProtos.RaftNettyExceptionReplyProto)other); } else { super.mergeFrom(other); return this; } }
@java.lang.Override protected Builder newBuilderForType( org.apache.ratis.thirdparty.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
/** * <code>.ratis.common.RaftRpcReplyProto rpcReply = 1;</code> */ public org.apache.ratis.proto.RaftProtos.RaftRpcReplyProto.Builder getRpcReplyBuilder() { onChanged(); return getRpcReplyFieldBuilder().getBuilder(); } /**