// GENERATED CODE - DO NOT MODIFY BY HAND part of 'ios_device_asset.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, always_specify_types extension GetIOSDeviceAssetCollection on Isar { IsarCollection get iOSDeviceAssets => this.collection(); } const IOSDeviceAssetSchema = CollectionSchema( name: r'IOSDeviceAsset', id: -1671546753821948030, properties: { r'hash': PropertySchema( id: 0, name: r'hash', type: IsarType.byteList, ), r'id': PropertySchema( id: 1, name: r'id', type: IsarType.string, ) }, estimateSize: _iOSDeviceAssetEstimateSize, serialize: _iOSDeviceAssetSerialize, deserialize: _iOSDeviceAssetDeserialize, deserializeProp: _iOSDeviceAssetDeserializeProp, idName: r'isarId', indexes: { r'id': IndexSchema( id: -3268401673993471357, name: r'id', unique: true, replace: true, properties: [ IndexPropertySchema( name: r'id', type: IndexType.hash, caseSensitive: true, ) ], ), r'hash': IndexSchema( id: -7973251393006690288, name: r'hash', unique: false, replace: false, properties: [ IndexPropertySchema( name: r'hash', type: IndexType.hash, caseSensitive: false, ) ], ) }, links: {}, embeddedSchemas: {}, getId: _iOSDeviceAssetGetId, getLinks: _iOSDeviceAssetGetLinks, attach: _iOSDeviceAssetAttach, version: '3.1.0+1', ); int _iOSDeviceAssetEstimateSize( IOSDeviceAsset object, List offsets, Map> allOffsets, ) { var bytesCount = offsets.last; bytesCount += 3 + object.hash.length; bytesCount += 3 + object.id.length * 3; return bytesCount; } void _iOSDeviceAssetSerialize( IOSDeviceAsset object, IsarWriter writer, List offsets, Map> allOffsets, ) { writer.writeByteList(offsets[0], object.hash); writer.writeString(offsets[1], object.id); } IOSDeviceAsset _iOSDeviceAssetDeserialize( Id id, IsarReader reader, List offsets, Map> allOffsets, ) { final object = IOSDeviceAsset( hash: reader.readByteList(offsets[0]) ?? [], id: reader.readString(offsets[1]), ); return object; } P _iOSDeviceAssetDeserializeProp

( IsarReader reader, int propertyId, int offset, Map> allOffsets, ) { switch (propertyId) { case 0: return (reader.readByteList(offset) ?? []) as P; case 1: return (reader.readString(offset)) as P; default: throw IsarError('Unknown property with id $propertyId'); } } Id _iOSDeviceAssetGetId(IOSDeviceAsset object) { return object.isarId; } List> _iOSDeviceAssetGetLinks(IOSDeviceAsset object) { return []; } void _iOSDeviceAssetAttach( IsarCollection col, Id id, IOSDeviceAsset object) {} extension IOSDeviceAssetByIndex on IsarCollection { Future getById(String id) { return getByIndex(r'id', [id]); } IOSDeviceAsset? getByIdSync(String id) { return getByIndexSync(r'id', [id]); } Future deleteById(String id) { return deleteByIndex(r'id', [id]); } bool deleteByIdSync(String id) { return deleteByIndexSync(r'id', [id]); } Future> getAllById(List idValues) { final values = idValues.map((e) => [e]).toList(); return getAllByIndex(r'id', values); } List getAllByIdSync(List idValues) { final values = idValues.map((e) => [e]).toList(); return getAllByIndexSync(r'id', values); } Future deleteAllById(List idValues) { final values = idValues.map((e) => [e]).toList(); return deleteAllByIndex(r'id', values); } int deleteAllByIdSync(List idValues) { final values = idValues.map((e) => [e]).toList(); return deleteAllByIndexSync(r'id', values); } Future putById(IOSDeviceAsset object) { return putByIndex(r'id', object); } Id putByIdSync(IOSDeviceAsset object, {bool saveLinks = true}) { return putByIndexSync(r'id', object, saveLinks: saveLinks); } Future> putAllById(List objects) { return putAllByIndex(r'id', objects); } List putAllByIdSync(List objects, {bool saveLinks = true}) { return putAllByIndexSync(r'id', objects, saveLinks: saveLinks); } } extension IOSDeviceAssetQueryWhereSort on QueryBuilder { QueryBuilder anyIsarId() { return QueryBuilder.apply(this, (query) { return query.addWhereClause(const IdWhereClause.any()); }); } } extension IOSDeviceAssetQueryWhere on QueryBuilder { QueryBuilder isarIdEqualTo( Id isarId) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IdWhereClause.between( lower: isarId, upper: isarId, )); }); } QueryBuilder isarIdNotEqualTo(Id isarId) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause( IdWhereClause.lessThan(upper: isarId, includeUpper: false), ) .addWhereClause( IdWhereClause.greaterThan(lower: isarId, includeLower: false), ); } else { return query .addWhereClause( IdWhereClause.greaterThan(lower: isarId, includeLower: false), ) .addWhereClause( IdWhereClause.lessThan(upper: isarId, includeUpper: false), ); } }); } QueryBuilder isarIdGreaterThan(Id isarId, {bool include = false}) { return QueryBuilder.apply(this, (query) { return query.addWhereClause( IdWhereClause.greaterThan(lower: isarId, includeLower: include), ); }); } QueryBuilder isarIdLessThan(Id isarId, {bool include = false}) { return QueryBuilder.apply(this, (query) { return query.addWhereClause( IdWhereClause.lessThan(upper: isarId, includeUpper: include), ); }); } QueryBuilder isarIdBetween( Id lowerIsarId, Id upperIsarId, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IdWhereClause.between( lower: lowerIsarId, includeLower: includeLower, upper: upperIsarId, includeUpper: includeUpper, )); }); } QueryBuilder idEqualTo( String id) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'id', value: [id], )); }); } QueryBuilder idNotEqualTo( String id) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'id', lower: [], upper: [id], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'id', lower: [id], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'id', lower: [id], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'id', lower: [], upper: [id], includeUpper: false, )); } }); } QueryBuilder hashEqualTo( List hash) { return QueryBuilder.apply(this, (query) { return query.addWhereClause(IndexWhereClause.equalTo( indexName: r'hash', value: [hash], )); }); } QueryBuilder hashNotEqualTo(List hash) { return QueryBuilder.apply(this, (query) { if (query.whereSort == Sort.asc) { return query .addWhereClause(IndexWhereClause.between( indexName: r'hash', lower: [], upper: [hash], includeUpper: false, )) .addWhereClause(IndexWhereClause.between( indexName: r'hash', lower: [hash], includeLower: false, upper: [], )); } else { return query .addWhereClause(IndexWhereClause.between( indexName: r'hash', lower: [hash], includeLower: false, upper: [], )) .addWhereClause(IndexWhereClause.between( indexName: r'hash', lower: [], upper: [hash], includeUpper: false, )); } }); } } extension IOSDeviceAssetQueryFilter on QueryBuilder { QueryBuilder hashElementEqualTo(int value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'hash', value: value, )); }); } QueryBuilder hashElementGreaterThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'hash', value: value, )); }); } QueryBuilder hashElementLessThan( int value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'hash', value: value, )); }); } QueryBuilder hashElementBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'hash', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } QueryBuilder hashLengthEqualTo(int length) { return QueryBuilder.apply(this, (query) { return query.listLength( r'hash', length, true, length, true, ); }); } QueryBuilder hashIsEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'hash', 0, true, 0, true, ); }); } QueryBuilder hashIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.listLength( r'hash', 0, false, 999999, true, ); }); } QueryBuilder hashLengthLessThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'hash', 0, true, length, include, ); }); } QueryBuilder hashLengthGreaterThan( int length, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'hash', length, include, 999999, true, ); }); } QueryBuilder hashLengthBetween( int lower, int upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.listLength( r'hash', lower, includeLower, upper, includeUpper, ); }); } QueryBuilder idEqualTo( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idGreaterThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idLessThan( String value, { bool include = false, bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idBetween( 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'id', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, caseSensitive: caseSensitive, )); }); } QueryBuilder idStartsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.startsWith( property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idEndsWith( String value, { bool caseSensitive = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.endsWith( property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idContains(String value, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.contains( property: r'id', value: value, caseSensitive: caseSensitive, )); }); } QueryBuilder idMatches( String pattern, {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.matches( property: r'id', wildcard: pattern, caseSensitive: caseSensitive, )); }); } QueryBuilder idIsEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'id', value: '', )); }); } QueryBuilder idIsNotEmpty() { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( property: r'id', value: '', )); }); } QueryBuilder isarIdEqualTo(Id value) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.equalTo( property: r'isarId', value: value, )); }); } QueryBuilder isarIdGreaterThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.greaterThan( include: include, property: r'isarId', value: value, )); }); } QueryBuilder isarIdLessThan( Id value, { bool include = false, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.lessThan( include: include, property: r'isarId', value: value, )); }); } QueryBuilder isarIdBetween( Id lower, Id upper, { bool includeLower = true, bool includeUpper = true, }) { return QueryBuilder.apply(this, (query) { return query.addFilterCondition(FilterCondition.between( property: r'isarId', lower: lower, includeLower: includeLower, upper: upper, includeUpper: includeUpper, )); }); } } extension IOSDeviceAssetQueryObject on QueryBuilder {} extension IOSDeviceAssetQueryLinks on QueryBuilder {} extension IOSDeviceAssetQuerySortBy on QueryBuilder { QueryBuilder sortById() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.asc); }); } QueryBuilder sortByIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.desc); }); } } extension IOSDeviceAssetQuerySortThenBy on QueryBuilder { QueryBuilder thenById() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.asc); }); } QueryBuilder thenByIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'id', Sort.desc); }); } QueryBuilder thenByIsarId() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isarId', Sort.asc); }); } QueryBuilder thenByIsarIdDesc() { return QueryBuilder.apply(this, (query) { return query.addSortBy(r'isarId', Sort.desc); }); } } extension IOSDeviceAssetQueryWhereDistinct on QueryBuilder { QueryBuilder distinctByHash() { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'hash'); }); } QueryBuilder distinctById( {bool caseSensitive = true}) { return QueryBuilder.apply(this, (query) { return query.addDistinctBy(r'id', caseSensitive: caseSensitive); }); } } extension IOSDeviceAssetQueryProperty on QueryBuilder { QueryBuilder isarIdProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'isarId'); }); } QueryBuilder, QQueryOperations> hashProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'hash'); }); } QueryBuilder idProperty() { return QueryBuilder.apply(this, (query) { return query.addPropertyName(r'id'); }); } }