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

            size = 0;
            if (((bitField0_ & 0x00000001) == 0x00000001)) {
                size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, groupId_);
            }
            if (((bitField0_ & 0x00000002) == 0x00000002)) {
                size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serverId_);
            }
            {
                int dataSize = 0;
                for (int i = 0; i < entries_.size(); i++) {
                    dataSize += com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(entries_.get(i));
                }
                size += dataSize;
                size += 1 * getEntriesList().size();
            }
            if (((bitField0_ & 0x00000004) == 0x00000004)) {
                size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, peerId_);
            }
            if (((bitField0_ & 0x00000008) == 0x00000008)) {
                size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, readOnlyOptions_);
            }
            size += unknownFields.getSerializedSize();
            memoizedSize = size;
            return size;
        }
<code>optional .jraft.ReadOnlyType readOnlyOptions = 5;</code>
jraft-core/src/main/java/com/alipay/sofa/jraft/rpc/RpcRequests.java