// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'immune_batch_detail_entity.dart';

// **************************************************************************
// IsarCollectionGenerator
// **************************************************************************

// coverage:ignore-file
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters

extension GetImmuneBatchDetailEntityCollection on Isar {
  IsarCollection<ImmuneBatchDetailEntity> get immuneBatchDetailEntitys =>
      this.collection();
}

const ImmuneBatchDetailEntitySchema = CollectionSchema(
  name: r'ImmuneBatchDetailEntity',
  id: 7678937962469580075,
  properties: {
    r'cattleresumeUnid': PropertySchema(
      id: 0,
      name: r'cattleresumeUnid',
      type: IsarType.string,
    ),
    r'deptId': PropertySchema(
      id: 1,
      name: r'deptId',
      type: IsarType.string,
    ),
    r'immunebatchUnid': PropertySchema(
      id: 2,
      name: r'immunebatchUnid',
      type: IsarType.string,
    ),
    r'individualNo': PropertySchema(
      id: 3,
      name: r'individualNo',
      type: IsarType.string,
    ),
    r'registrationNo': PropertySchema(
      id: 4,
      name: r'registrationNo',
      type: IsarType.string,
    ),
    r'unid': PropertySchema(
      id: 5,
      name: r'unid',
      type: IsarType.string,
    ),
    r'uploadStatus': PropertySchema(
      id: 6,
      name: r'uploadStatus',
      type: IsarType.string,
    )
  },
  estimateSize: _immuneBatchDetailEntityEstimateSize,
  serialize: _immuneBatchDetailEntitySerialize,
  deserialize: _immuneBatchDetailEntityDeserialize,
  deserializeProp: _immuneBatchDetailEntityDeserializeProp,
  idName: r'id',
  indexes: {
    r'unid': IndexSchema(
      id: 4581564109674551298,
      name: r'unid',
      unique: true,
      replace: true,
      properties: [
        IndexPropertySchema(
          name: r'unid',
          type: IndexType.hash,
          caseSensitive: true,
        )
      ],
    )
  },
  links: {},
  embeddedSchemas: {},
  getId: _immuneBatchDetailEntityGetId,
  getLinks: _immuneBatchDetailEntityGetLinks,
  attach: _immuneBatchDetailEntityAttach,
  version: '3.0.5',
);

int _immuneBatchDetailEntityEstimateSize(
  ImmuneBatchDetailEntity object,
  List<int> offsets,
  Map<Type, List<int>> allOffsets,
) {
  var bytesCount = offsets.last;
  {
    final value = object.cattleresumeUnid;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.deptId;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.immunebatchUnid;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.individualNo;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.registrationNo;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.unid;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  {
    final value = object.uploadStatus;
    if (value != null) {
      bytesCount += 3 + value.length * 3;
    }
  }
  return bytesCount;
}

void _immuneBatchDetailEntitySerialize(
  ImmuneBatchDetailEntity object,
  IsarWriter writer,
  List<int> offsets,
  Map<Type, List<int>> allOffsets,
) {
  writer.writeString(offsets[0], object.cattleresumeUnid);
  writer.writeString(offsets[1], object.deptId);
  writer.writeString(offsets[2], object.immunebatchUnid);
  writer.writeString(offsets[3], object.individualNo);
  writer.writeString(offsets[4], object.registrationNo);
  writer.writeString(offsets[5], object.unid);
  writer.writeString(offsets[6], object.uploadStatus);
}

ImmuneBatchDetailEntity _immuneBatchDetailEntityDeserialize(
  Id id,
  IsarReader reader,
  List<int> offsets,
  Map<Type, List<int>> allOffsets,
) {
  final object = ImmuneBatchDetailEntity();
  object.cattleresumeUnid = reader.readStringOrNull(offsets[0]);
  object.deptId = reader.readStringOrNull(offsets[1]);
  object.id = id;
  object.immunebatchUnid = reader.readStringOrNull(offsets[2]);
  object.individualNo = reader.readStringOrNull(offsets[3]);
  object.registrationNo = reader.readStringOrNull(offsets[4]);
  object.unid = reader.readStringOrNull(offsets[5]);
  object.uploadStatus = reader.readStringOrNull(offsets[6]);
  return object;
}

P _immuneBatchDetailEntityDeserializeProp<P>(
  IsarReader reader,
  int propertyId,
  int offset,
  Map<Type, List<int>> allOffsets,
) {
  switch (propertyId) {
    case 0:
      return (reader.readStringOrNull(offset)) as P;
    case 1:
      return (reader.readStringOrNull(offset)) as P;
    case 2:
      return (reader.readStringOrNull(offset)) as P;
    case 3:
      return (reader.readStringOrNull(offset)) as P;
    case 4:
      return (reader.readStringOrNull(offset)) as P;
    case 5:
      return (reader.readStringOrNull(offset)) as P;
    case 6:
      return (reader.readStringOrNull(offset)) as P;
    default:
      throw IsarError('Unknown property with id $propertyId');
  }
}

Id _immuneBatchDetailEntityGetId(ImmuneBatchDetailEntity object) {
  return object.id;
}

List<IsarLinkBase<dynamic>> _immuneBatchDetailEntityGetLinks(
    ImmuneBatchDetailEntity object) {
  return [];
}

void _immuneBatchDetailEntityAttach(
    IsarCollection<dynamic> col, Id id, ImmuneBatchDetailEntity object) {
  object.id = id;
}

extension ImmuneBatchDetailEntityByIndex
    on IsarCollection<ImmuneBatchDetailEntity> {
  Future<ImmuneBatchDetailEntity?> getByUnid(String? unid) {
    return getByIndex(r'unid', [unid]);
  }

  ImmuneBatchDetailEntity? getByUnidSync(String? unid) {
    return getByIndexSync(r'unid', [unid]);
  }

  Future<bool> deleteByUnid(String? unid) {
    return deleteByIndex(r'unid', [unid]);
  }

  bool deleteByUnidSync(String? unid) {
    return deleteByIndexSync(r'unid', [unid]);
  }

  Future<List<ImmuneBatchDetailEntity?>> getAllByUnid(
      List<String?> unidValues) {
    final values = unidValues.map((e) => [e]).toList();
    return getAllByIndex(r'unid', values);
  }

  List<ImmuneBatchDetailEntity?> getAllByUnidSync(List<String?> unidValues) {
    final values = unidValues.map((e) => [e]).toList();
    return getAllByIndexSync(r'unid', values);
  }

  Future<int> deleteAllByUnid(List<String?> unidValues) {
    final values = unidValues.map((e) => [e]).toList();
    return deleteAllByIndex(r'unid', values);
  }

  int deleteAllByUnidSync(List<String?> unidValues) {
    final values = unidValues.map((e) => [e]).toList();
    return deleteAllByIndexSync(r'unid', values);
  }

  Future<Id> putByUnid(ImmuneBatchDetailEntity object) {
    return putByIndex(r'unid', object);
  }

  Id putByUnidSync(ImmuneBatchDetailEntity object, {bool saveLinks = true}) {
    return putByIndexSync(r'unid', object, saveLinks: saveLinks);
  }

  Future<List<Id>> putAllByUnid(List<ImmuneBatchDetailEntity> objects) {
    return putAllByIndex(r'unid', objects);
  }

  List<Id> putAllByUnidSync(List<ImmuneBatchDetailEntity> objects,
      {bool saveLinks = true}) {
    return putAllByIndexSync(r'unid', objects, saveLinks: saveLinks);
  }
}

extension ImmuneBatchDetailEntityQueryWhereSort
    on QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QWhere> {
  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterWhere>
      anyId() {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(const IdWhereClause.any());
    });
  }
}

extension ImmuneBatchDetailEntityQueryWhere on QueryBuilder<
    ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QWhereClause> {
  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterWhereClause> idEqualTo(Id id) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IdWhereClause.between(
        lower: id,
        upper: id,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterWhereClause> idNotEqualTo(Id id) {
    return QueryBuilder.apply(this, (query) {
      if (query.whereSort == Sort.asc) {
        return query
            .addWhereClause(
              IdWhereClause.lessThan(upper: id, includeUpper: false),
            )
            .addWhereClause(
              IdWhereClause.greaterThan(lower: id, includeLower: false),
            );
      } else {
        return query
            .addWhereClause(
              IdWhereClause.greaterThan(lower: id, includeLower: false),
            )
            .addWhereClause(
              IdWhereClause.lessThan(upper: id, includeUpper: false),
            );
      }
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterWhereClause> idGreaterThan(Id id, {bool include = false}) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(
        IdWhereClause.greaterThan(lower: id, includeLower: include),
      );
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterWhereClause> idLessThan(Id id, {bool include = false}) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(
        IdWhereClause.lessThan(upper: id, includeUpper: include),
      );
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterWhereClause> idBetween(
    Id lowerId,
    Id upperId, {
    bool includeLower = true,
    bool includeUpper = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IdWhereClause.between(
        lower: lowerId,
        includeLower: includeLower,
        upper: upperId,
        includeUpper: includeUpper,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterWhereClause> unidIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IndexWhereClause.equalTo(
        indexName: r'unid',
        value: [null],
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterWhereClause> unidIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IndexWhereClause.between(
        indexName: r'unid',
        lower: [null],
        includeLower: false,
        upper: [],
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterWhereClause> unidEqualTo(String? unid) {
    return QueryBuilder.apply(this, (query) {
      return query.addWhereClause(IndexWhereClause.equalTo(
        indexName: r'unid',
        value: [unid],
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterWhereClause> unidNotEqualTo(String? unid) {
    return QueryBuilder.apply(this, (query) {
      if (query.whereSort == Sort.asc) {
        return query
            .addWhereClause(IndexWhereClause.between(
              indexName: r'unid',
              lower: [],
              upper: [unid],
              includeUpper: false,
            ))
            .addWhereClause(IndexWhereClause.between(
              indexName: r'unid',
              lower: [unid],
              includeLower: false,
              upper: [],
            ));
      } else {
        return query
            .addWhereClause(IndexWhereClause.between(
              indexName: r'unid',
              lower: [unid],
              includeLower: false,
              upper: [],
            ))
            .addWhereClause(IndexWhereClause.between(
              indexName: r'unid',
              lower: [],
              upper: [unid],
              includeUpper: false,
            ));
      }
    });
  }
}

extension ImmuneBatchDetailEntityQueryFilter on QueryBuilder<
    ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QFilterCondition> {
  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> cattleresumeUnidIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'cattleresumeUnid',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> cattleresumeUnidIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'cattleresumeUnid',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> cattleresumeUnidEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'cattleresumeUnid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> cattleresumeUnidGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'cattleresumeUnid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> cattleresumeUnidLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'cattleresumeUnid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> cattleresumeUnidBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'cattleresumeUnid',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> cattleresumeUnidStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'cattleresumeUnid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> cattleresumeUnidEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'cattleresumeUnid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      cattleresumeUnidContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'cattleresumeUnid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      cattleresumeUnidMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'cattleresumeUnid',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> cattleresumeUnidIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'cattleresumeUnid',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> cattleresumeUnidIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'cattleresumeUnid',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> deptIdIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'deptId',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> deptIdIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'deptId',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> deptIdEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> deptIdGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> deptIdLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> deptIdBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'deptId',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> deptIdStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> deptIdEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      deptIdContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'deptId',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      deptIdMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'deptId',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> deptIdIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'deptId',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> deptIdIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'deptId',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> idEqualTo(Id value) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'id',
        value: value,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> idGreaterThan(
    Id value, {
    bool include = false,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'id',
        value: value,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> idLessThan(
    Id value, {
    bool include = false,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'id',
        value: value,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> idBetween(
    Id lower,
    Id upper, {
    bool includeLower = true,
    bool includeUpper = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'id',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> immunebatchUnidIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'immunebatchUnid',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> immunebatchUnidIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'immunebatchUnid',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> immunebatchUnidEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'immunebatchUnid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> immunebatchUnidGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'immunebatchUnid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> immunebatchUnidLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'immunebatchUnid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> immunebatchUnidBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'immunebatchUnid',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> immunebatchUnidStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'immunebatchUnid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> immunebatchUnidEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'immunebatchUnid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      immunebatchUnidContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'immunebatchUnid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      immunebatchUnidMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'immunebatchUnid',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> immunebatchUnidIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'immunebatchUnid',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> immunebatchUnidIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'immunebatchUnid',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> individualNoIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'individualNo',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> individualNoIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'individualNo',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> individualNoEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> individualNoGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> individualNoLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> individualNoBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'individualNo',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> individualNoStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> individualNoEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      individualNoContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'individualNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      individualNoMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'individualNo',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> individualNoIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'individualNo',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> individualNoIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'individualNo',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> registrationNoIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'registrationNo',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> registrationNoIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'registrationNo',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> registrationNoEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> registrationNoGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> registrationNoLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> registrationNoBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'registrationNo',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> registrationNoStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> registrationNoEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      registrationNoContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'registrationNo',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      registrationNoMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'registrationNo',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> registrationNoIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'registrationNo',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> registrationNoIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'registrationNo',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> unidIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'unid',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> unidIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'unid',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> unidEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> unidGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> unidLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> unidBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'unid',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> unidStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> unidEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      unidContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'unid',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      unidMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'unid',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> unidIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'unid',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> unidIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'unid',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> uploadStatusIsNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNull(
        property: r'uploadStatus',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> uploadStatusIsNotNull() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(const FilterCondition.isNotNull(
        property: r'uploadStatus',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> uploadStatusEqualTo(
    String? value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> uploadStatusGreaterThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        include: include,
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> uploadStatusLessThan(
    String? value, {
    bool include = false,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.lessThan(
        include: include,
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> uploadStatusBetween(
    String? lower,
    String? upper, {
    bool includeLower = true,
    bool includeUpper = true,
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.between(
        property: r'uploadStatus',
        lower: lower,
        includeLower: includeLower,
        upper: upper,
        includeUpper: includeUpper,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> uploadStatusStartsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.startsWith(
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> uploadStatusEndsWith(
    String value, {
    bool caseSensitive = true,
  }) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.endsWith(
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      uploadStatusContains(String value, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.contains(
        property: r'uploadStatus',
        value: value,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
          QAfterFilterCondition>
      uploadStatusMatches(String pattern, {bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.matches(
        property: r'uploadStatus',
        wildcard: pattern,
        caseSensitive: caseSensitive,
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> uploadStatusIsEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.equalTo(
        property: r'uploadStatus',
        value: '',
      ));
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity,
      QAfterFilterCondition> uploadStatusIsNotEmpty() {
    return QueryBuilder.apply(this, (query) {
      return query.addFilterCondition(FilterCondition.greaterThan(
        property: r'uploadStatus',
        value: '',
      ));
    });
  }
}

extension ImmuneBatchDetailEntityQueryObject on QueryBuilder<
    ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QFilterCondition> {}

extension ImmuneBatchDetailEntityQueryLinks on QueryBuilder<
    ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QFilterCondition> {}

extension ImmuneBatchDetailEntityQuerySortBy
    on QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QSortBy> {
  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByCattleresumeUnid() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'cattleresumeUnid', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByCattleresumeUnidDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'cattleresumeUnid', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByDeptId() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'deptId', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByDeptIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'deptId', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByImmunebatchUnid() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'immunebatchUnid', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByImmunebatchUnidDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'immunebatchUnid', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByIndividualNo() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'individualNo', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByIndividualNoDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'individualNo', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByRegistrationNo() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'registrationNo', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByRegistrationNoDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'registrationNo', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByUnid() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'unid', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByUnidDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'unid', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByUploadStatus() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'uploadStatus', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      sortByUploadStatusDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'uploadStatus', Sort.desc);
    });
  }
}

extension ImmuneBatchDetailEntityQuerySortThenBy on QueryBuilder<
    ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QSortThenBy> {
  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByCattleresumeUnid() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'cattleresumeUnid', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByCattleresumeUnidDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'cattleresumeUnid', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByDeptId() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'deptId', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByDeptIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'deptId', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenById() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'id', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByIdDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'id', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByImmunebatchUnid() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'immunebatchUnid', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByImmunebatchUnidDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'immunebatchUnid', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByIndividualNo() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'individualNo', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByIndividualNoDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'individualNo', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByRegistrationNo() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'registrationNo', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByRegistrationNoDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'registrationNo', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByUnid() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'unid', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByUnidDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'unid', Sort.desc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByUploadStatus() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'uploadStatus', Sort.asc);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QAfterSortBy>
      thenByUploadStatusDesc() {
    return QueryBuilder.apply(this, (query) {
      return query.addSortBy(r'uploadStatus', Sort.desc);
    });
  }
}

extension ImmuneBatchDetailEntityQueryWhereDistinct on QueryBuilder<
    ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QDistinct> {
  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QDistinct>
      distinctByCattleresumeUnid({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'cattleresumeUnid',
          caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QDistinct>
      distinctByDeptId({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'deptId', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QDistinct>
      distinctByImmunebatchUnid({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'immunebatchUnid',
          caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QDistinct>
      distinctByIndividualNo({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'individualNo', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QDistinct>
      distinctByRegistrationNo({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'registrationNo',
          caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QDistinct>
      distinctByUnid({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'unid', caseSensitive: caseSensitive);
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QDistinct>
      distinctByUploadStatus({bool caseSensitive = true}) {
    return QueryBuilder.apply(this, (query) {
      return query.addDistinctBy(r'uploadStatus', caseSensitive: caseSensitive);
    });
  }
}

extension ImmuneBatchDetailEntityQueryProperty on QueryBuilder<
    ImmuneBatchDetailEntity, ImmuneBatchDetailEntity, QQueryProperty> {
  QueryBuilder<ImmuneBatchDetailEntity, int, QQueryOperations> idProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'id');
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, String?, QQueryOperations>
      cattleresumeUnidProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'cattleresumeUnid');
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, String?, QQueryOperations>
      deptIdProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'deptId');
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, String?, QQueryOperations>
      immunebatchUnidProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'immunebatchUnid');
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, String?, QQueryOperations>
      individualNoProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'individualNo');
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, String?, QQueryOperations>
      registrationNoProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'registrationNo');
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, String?, QQueryOperations>
      unidProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'unid');
    });
  }

  QueryBuilder<ImmuneBatchDetailEntity, String?, QQueryOperations>
      uploadStatusProperty() {
    return QueryBuilder.apply(this, (query) {
      return query.addPropertyName(r'uploadStatus');
    });
  }
}
