@java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
        if (total_ != 0) {
            output.writeInt32(1, total_);
        }
        if (isGroupMessage_) {
            output.writeBool(2, true);
        }
        if (fromId_ != 0L) {
            output.writeInt64(3, fromId_);
        }
        for (Message message : messages_) {
            output.writeMessage(4, message);
        }
        getUnknownFields().writeTo(output);
    }
<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