public int getSerializedSize() {
            int size = memoizedSize;
            if (size != -1)
                return size;

            size = 0;
            if (((bitField0_ & 0x00000001) == 0x00000001)) {
                size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, term_);
            }
            if (((bitField0_ & 0x00000002) == 0x00000002)) {
                size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, success_);
            }
            if (((bitField0_ & 0x00000004) == 0x00000004)) {
                size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, lastLogIndex_);
            }
            if (((bitField0_ & 0x00000008) == 0x00000008)) {
                size += com.google.protobuf.CodedOutputStream.computeMessageSize(99, getErrorResponse());
            }
            size += unknownFields.getSerializedSize();
            memoizedSize = size;
            return size;
        }
<code>optional .jraft.ErrorResponse errorResponse = 99;</code>
jraft-core/src/main/java/com/alipay/sofa/jraft/rpc/RpcRequests.java