@java.lang.Override
    public int getSerializedSize() {
        int size = memoizedSize;
        if (size != -1) {
            return size;
        }

        size = 0;
        if (total_ != 0) {
            size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, total_);
        }
        if (isGroupMessage_) {
            size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, true);
        }
        if (fromId_ != 0L) {
            size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, fromId_);
        }
        for (Message message : messages_) {
            size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, message);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSize = size;
        return size;
    }
<code>repeated .im.turms.proto.Message messages = 4;</code>
turms-server-common/src/main/java/im/turms/server/common/access/client/dto/model/message/MessagesWithTotal.java