stack_wallet/lib/models/isar/models/address_label.g.dart

1346 lines
38 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'address_label.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 GetAddressLabelCollection on Isar {
IsarCollection<AddressLabel> get addressLabels => this.collection();
}
const AddressLabelSchema = CollectionSchema(
name: r'AddressLabel',
id: 75734181566197428,
properties: {
r'addressString': PropertySchema(
id: 0,
name: r'addressString',
type: IsarType.string,
),
r'tags': PropertySchema(
id: 1,
name: r'tags',
type: IsarType.stringList,
),
r'value': PropertySchema(
id: 2,
name: r'value',
type: IsarType.string,
),
r'walletId': PropertySchema(
id: 3,
name: r'walletId',
type: IsarType.string,
)
},
estimateSize: _addressLabelEstimateSize,
serialize: _addressLabelSerialize,
deserialize: _addressLabelDeserialize,
deserializeProp: _addressLabelDeserializeProp,
idName: r'id',
indexes: {
r'walletId': IndexSchema(
id: -1783113319798776304,
name: r'walletId',
unique: false,
replace: false,
properties: [
IndexPropertySchema(
name: r'walletId',
type: IndexType.hash,
caseSensitive: true,
)
],
),
r'addressString_walletId': IndexSchema(
id: -3907148833323637842,
name: r'addressString_walletId',
unique: true,
replace: false,
properties: [
IndexPropertySchema(
name: r'addressString',
type: IndexType.hash,
caseSensitive: true,
),
IndexPropertySchema(
name: r'walletId',
type: IndexType.hash,
caseSensitive: true,
)
],
)
},
links: {},
embeddedSchemas: {},
getId: _addressLabelGetId,
getLinks: _addressLabelGetLinks,
attach: _addressLabelAttach,
version: '3.0.5',
);
int _addressLabelEstimateSize(
AddressLabel object,
List<int> offsets,
Map<Type, List<int>> allOffsets,
) {
var bytesCount = offsets.last;
bytesCount += 3 + object.addressString.length * 3;
{
final list = object.tags;
if (list != null) {
bytesCount += 3 + list.length * 3;
{
for (var i = 0; i < list.length; i++) {
final value = list[i];
bytesCount += value.length * 3;
}
}
}
}
bytesCount += 3 + object.value.length * 3;
bytesCount += 3 + object.walletId.length * 3;
return bytesCount;
}
void _addressLabelSerialize(
AddressLabel object,
IsarWriter writer,
List<int> offsets,
Map<Type, List<int>> allOffsets,
) {
writer.writeString(offsets[0], object.addressString);
writer.writeStringList(offsets[1], object.tags);
writer.writeString(offsets[2], object.value);
writer.writeString(offsets[3], object.walletId);
}
AddressLabel _addressLabelDeserialize(
Id id,
IsarReader reader,
List<int> offsets,
Map<Type, List<int>> allOffsets,
) {
final object = AddressLabel(
addressString: reader.readString(offsets[0]),
tags: reader.readStringList(offsets[1]),
value: reader.readString(offsets[2]),
walletId: reader.readString(offsets[3]),
);
object.id = id;
return object;
}
P _addressLabelDeserializeProp<P>(
IsarReader reader,
int propertyId,
int offset,
Map<Type, List<int>> allOffsets,
) {
switch (propertyId) {
case 0:
return (reader.readString(offset)) as P;
case 1:
return (reader.readStringList(offset)) as P;
case 2:
return (reader.readString(offset)) as P;
case 3:
return (reader.readString(offset)) as P;
default:
throw IsarError('Unknown property with id $propertyId');
}
}
Id _addressLabelGetId(AddressLabel object) {
return object.id;
}
List<IsarLinkBase<dynamic>> _addressLabelGetLinks(AddressLabel object) {
return [];
}
void _addressLabelAttach(
IsarCollection<dynamic> col, Id id, AddressLabel object) {
object.id = id;
}
extension AddressLabelByIndex on IsarCollection<AddressLabel> {
Future<AddressLabel?> getByAddressStringWalletId(
String addressString, String walletId) {
return getByIndex(r'addressString_walletId', [addressString, walletId]);
}
AddressLabel? getByAddressStringWalletIdSync(
String addressString, String walletId) {
return getByIndexSync(r'addressString_walletId', [addressString, walletId]);
}
Future<bool> deleteByAddressStringWalletId(
String addressString, String walletId) {
return deleteByIndex(r'addressString_walletId', [addressString, walletId]);
}
bool deleteByAddressStringWalletIdSync(
String addressString, String walletId) {
return deleteByIndexSync(
r'addressString_walletId', [addressString, walletId]);
}
Future<List<AddressLabel?>> getAllByAddressStringWalletId(
List<String> addressStringValues, List<String> walletIdValues) {
final len = addressStringValues.length;
assert(walletIdValues.length == len,
'All index values must have the same length');
final values = <List<dynamic>>[];
for (var i = 0; i < len; i++) {
values.add([addressStringValues[i], walletIdValues[i]]);
}
return getAllByIndex(r'addressString_walletId', values);
}
List<AddressLabel?> getAllByAddressStringWalletIdSync(
List<String> addressStringValues, List<String> walletIdValues) {
final len = addressStringValues.length;
assert(walletIdValues.length == len,
'All index values must have the same length');
final values = <List<dynamic>>[];
for (var i = 0; i < len; i++) {
values.add([addressStringValues[i], walletIdValues[i]]);
}
return getAllByIndexSync(r'addressString_walletId', values);
}
Future<int> deleteAllByAddressStringWalletId(
List<String> addressStringValues, List<String> walletIdValues) {
final len = addressStringValues.length;
assert(walletIdValues.length == len,
'All index values must have the same length');
final values = <List<dynamic>>[];
for (var i = 0; i < len; i++) {
values.add([addressStringValues[i], walletIdValues[i]]);
}
return deleteAllByIndex(r'addressString_walletId', values);
}
int deleteAllByAddressStringWalletIdSync(
List<String> addressStringValues, List<String> walletIdValues) {
final len = addressStringValues.length;
assert(walletIdValues.length == len,
'All index values must have the same length');
final values = <List<dynamic>>[];
for (var i = 0; i < len; i++) {
values.add([addressStringValues[i], walletIdValues[i]]);
}
return deleteAllByIndexSync(r'addressString_walletId', values);
}
Future<Id> putByAddressStringWalletId(AddressLabel object) {
return putByIndex(r'addressString_walletId', object);
}
Id putByAddressStringWalletIdSync(AddressLabel object,
{bool saveLinks = true}) {
return putByIndexSync(r'addressString_walletId', object,
saveLinks: saveLinks);
}
Future<List<Id>> putAllByAddressStringWalletId(List<AddressLabel> objects) {
return putAllByIndex(r'addressString_walletId', objects);
}
List<Id> putAllByAddressStringWalletIdSync(List<AddressLabel> objects,
{bool saveLinks = true}) {
return putAllByIndexSync(r'addressString_walletId', objects,
saveLinks: saveLinks);
}
}
extension AddressLabelQueryWhereSort
on QueryBuilder<AddressLabel, AddressLabel, QWhere> {
QueryBuilder<AddressLabel, AddressLabel, QAfterWhere> anyId() {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(const IdWhereClause.any());
});
}
}
extension AddressLabelQueryWhere
on QueryBuilder<AddressLabel, AddressLabel, QWhereClause> {
QueryBuilder<AddressLabel, AddressLabel, QAfterWhereClause> idEqualTo(Id id) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(IdWhereClause.between(
lower: id,
upper: id,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, 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<AddressLabel, AddressLabel, QAfterWhereClause> idGreaterThan(
Id id,
{bool include = false}) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(
IdWhereClause.greaterThan(lower: id, includeLower: include),
);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterWhereClause> idLessThan(Id id,
{bool include = false}) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(
IdWhereClause.lessThan(upper: id, includeUpper: include),
);
});
}
QueryBuilder<AddressLabel, AddressLabel, 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<AddressLabel, AddressLabel, QAfterWhereClause> walletIdEqualTo(
String walletId) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(IndexWhereClause.equalTo(
indexName: r'walletId',
value: [walletId],
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterWhereClause>
walletIdNotEqualTo(String walletId) {
return QueryBuilder.apply(this, (query) {
if (query.whereSort == Sort.asc) {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'walletId',
lower: [],
upper: [walletId],
includeUpper: false,
))
.addWhereClause(IndexWhereClause.between(
indexName: r'walletId',
lower: [walletId],
includeLower: false,
upper: [],
));
} else {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'walletId',
lower: [walletId],
includeLower: false,
upper: [],
))
.addWhereClause(IndexWhereClause.between(
indexName: r'walletId',
lower: [],
upper: [walletId],
includeUpper: false,
));
}
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterWhereClause>
addressStringEqualToAnyWalletId(String addressString) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(IndexWhereClause.equalTo(
indexName: r'addressString_walletId',
value: [addressString],
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterWhereClause>
addressStringNotEqualToAnyWalletId(String addressString) {
return QueryBuilder.apply(this, (query) {
if (query.whereSort == Sort.asc) {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'addressString_walletId',
lower: [],
upper: [addressString],
includeUpper: false,
))
.addWhereClause(IndexWhereClause.between(
indexName: r'addressString_walletId',
lower: [addressString],
includeLower: false,
upper: [],
));
} else {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'addressString_walletId',
lower: [addressString],
includeLower: false,
upper: [],
))
.addWhereClause(IndexWhereClause.between(
indexName: r'addressString_walletId',
lower: [],
upper: [addressString],
includeUpper: false,
));
}
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterWhereClause>
addressStringWalletIdEqualTo(String addressString, String walletId) {
return QueryBuilder.apply(this, (query) {
return query.addWhereClause(IndexWhereClause.equalTo(
indexName: r'addressString_walletId',
value: [addressString, walletId],
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterWhereClause>
addressStringEqualToWalletIdNotEqualTo(
String addressString, String walletId) {
return QueryBuilder.apply(this, (query) {
if (query.whereSort == Sort.asc) {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'addressString_walletId',
lower: [addressString],
upper: [addressString, walletId],
includeUpper: false,
))
.addWhereClause(IndexWhereClause.between(
indexName: r'addressString_walletId',
lower: [addressString, walletId],
includeLower: false,
upper: [addressString],
));
} else {
return query
.addWhereClause(IndexWhereClause.between(
indexName: r'addressString_walletId',
lower: [addressString, walletId],
includeLower: false,
upper: [addressString],
))
.addWhereClause(IndexWhereClause.between(
indexName: r'addressString_walletId',
lower: [addressString],
upper: [addressString, walletId],
includeUpper: false,
));
}
});
}
}
extension AddressLabelQueryFilter
on QueryBuilder<AddressLabel, AddressLabel, QFilterCondition> {
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
addressStringEqualTo(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'addressString',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
addressStringGreaterThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
include: include,
property: r'addressString',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
addressStringLessThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.lessThan(
include: include,
property: r'addressString',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
addressStringBetween(
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'addressString',
lower: lower,
includeLower: includeLower,
upper: upper,
includeUpper: includeUpper,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
addressStringStartsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.startsWith(
property: r'addressString',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
addressStringEndsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.endsWith(
property: r'addressString',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
addressStringContains(String value, {bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.contains(
property: r'addressString',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
addressStringMatches(String pattern, {bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.matches(
property: r'addressString',
wildcard: pattern,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
addressStringIsEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'addressString',
value: '',
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
addressStringIsNotEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
property: r'addressString',
value: '',
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition> idEqualTo(
Id value) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'id',
value: value,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, 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<AddressLabel, AddressLabel, 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<AddressLabel, AddressLabel, 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<AddressLabel, AddressLabel, QAfterFilterCondition> tagsIsNull() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(const FilterCondition.isNull(
property: r'tags',
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsIsNotNull() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(const FilterCondition.isNotNull(
property: r'tags',
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsElementEqualTo(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'tags',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsElementGreaterThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
include: include,
property: r'tags',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsElementLessThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.lessThan(
include: include,
property: r'tags',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsElementBetween(
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'tags',
lower: lower,
includeLower: includeLower,
upper: upper,
includeUpper: includeUpper,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsElementStartsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.startsWith(
property: r'tags',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsElementEndsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.endsWith(
property: r'tags',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsElementContains(String value, {bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.contains(
property: r'tags',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsElementMatches(String pattern, {bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.matches(
property: r'tags',
wildcard: pattern,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsElementIsEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'tags',
value: '',
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsElementIsNotEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
property: r'tags',
value: '',
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsLengthEqualTo(int length) {
return QueryBuilder.apply(this, (query) {
return query.listLength(
r'tags',
length,
true,
length,
true,
);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsIsEmpty() {
return QueryBuilder.apply(this, (query) {
return query.listLength(
r'tags',
0,
true,
0,
true,
);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsIsNotEmpty() {
return QueryBuilder.apply(this, (query) {
return query.listLength(
r'tags',
0,
false,
999999,
true,
);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsLengthLessThan(
int length, {
bool include = false,
}) {
return QueryBuilder.apply(this, (query) {
return query.listLength(
r'tags',
0,
true,
length,
include,
);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsLengthGreaterThan(
int length, {
bool include = false,
}) {
return QueryBuilder.apply(this, (query) {
return query.listLength(
r'tags',
length,
include,
999999,
true,
);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
tagsLengthBetween(
int lower,
int upper, {
bool includeLower = true,
bool includeUpper = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.listLength(
r'tags',
lower,
includeLower,
upper,
includeUpper,
);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition> valueEqualTo(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'value',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
valueGreaterThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
include: include,
property: r'value',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition> valueLessThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.lessThan(
include: include,
property: r'value',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition> valueBetween(
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'value',
lower: lower,
includeLower: includeLower,
upper: upper,
includeUpper: includeUpper,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
valueStartsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.startsWith(
property: r'value',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition> valueEndsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.endsWith(
property: r'value',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition> valueContains(
String value,
{bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.contains(
property: r'value',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition> valueMatches(
String pattern,
{bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.matches(
property: r'value',
wildcard: pattern,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
valueIsEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'value',
value: '',
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
valueIsNotEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
property: r'value',
value: '',
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
walletIdEqualTo(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'walletId',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
walletIdGreaterThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
include: include,
property: r'walletId',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
walletIdLessThan(
String value, {
bool include = false,
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.lessThan(
include: include,
property: r'walletId',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
walletIdBetween(
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'walletId',
lower: lower,
includeLower: includeLower,
upper: upper,
includeUpper: includeUpper,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
walletIdStartsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.startsWith(
property: r'walletId',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
walletIdEndsWith(
String value, {
bool caseSensitive = true,
}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.endsWith(
property: r'walletId',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
walletIdContains(String value, {bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.contains(
property: r'walletId',
value: value,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
walletIdMatches(String pattern, {bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.matches(
property: r'walletId',
wildcard: pattern,
caseSensitive: caseSensitive,
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
walletIdIsEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.equalTo(
property: r'walletId',
value: '',
));
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterFilterCondition>
walletIdIsNotEmpty() {
return QueryBuilder.apply(this, (query) {
return query.addFilterCondition(FilterCondition.greaterThan(
property: r'walletId',
value: '',
));
});
}
}
extension AddressLabelQueryObject
on QueryBuilder<AddressLabel, AddressLabel, QFilterCondition> {}
extension AddressLabelQueryLinks
on QueryBuilder<AddressLabel, AddressLabel, QFilterCondition> {}
extension AddressLabelQuerySortBy
on QueryBuilder<AddressLabel, AddressLabel, QSortBy> {
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy> sortByAddressString() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'addressString', Sort.asc);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy>
sortByAddressStringDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'addressString', Sort.desc);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy> sortByValue() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'value', Sort.asc);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy> sortByValueDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'value', Sort.desc);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy> sortByWalletId() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'walletId', Sort.asc);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy> sortByWalletIdDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'walletId', Sort.desc);
});
}
}
extension AddressLabelQuerySortThenBy
on QueryBuilder<AddressLabel, AddressLabel, QSortThenBy> {
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy> thenByAddressString() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'addressString', Sort.asc);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy>
thenByAddressStringDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'addressString', Sort.desc);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy> thenById() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'id', Sort.asc);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy> thenByIdDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'id', Sort.desc);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy> thenByValue() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'value', Sort.asc);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy> thenByValueDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'value', Sort.desc);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy> thenByWalletId() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'walletId', Sort.asc);
});
}
QueryBuilder<AddressLabel, AddressLabel, QAfterSortBy> thenByWalletIdDesc() {
return QueryBuilder.apply(this, (query) {
return query.addSortBy(r'walletId', Sort.desc);
});
}
}
extension AddressLabelQueryWhereDistinct
on QueryBuilder<AddressLabel, AddressLabel, QDistinct> {
QueryBuilder<AddressLabel, AddressLabel, QDistinct> distinctByAddressString(
{bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addDistinctBy(r'addressString',
caseSensitive: caseSensitive);
});
}
QueryBuilder<AddressLabel, AddressLabel, QDistinct> distinctByTags() {
return QueryBuilder.apply(this, (query) {
return query.addDistinctBy(r'tags');
});
}
QueryBuilder<AddressLabel, AddressLabel, QDistinct> distinctByValue(
{bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addDistinctBy(r'value', caseSensitive: caseSensitive);
});
}
QueryBuilder<AddressLabel, AddressLabel, QDistinct> distinctByWalletId(
{bool caseSensitive = true}) {
return QueryBuilder.apply(this, (query) {
return query.addDistinctBy(r'walletId', caseSensitive: caseSensitive);
});
}
}
extension AddressLabelQueryProperty
on QueryBuilder<AddressLabel, AddressLabel, QQueryProperty> {
QueryBuilder<AddressLabel, int, QQueryOperations> idProperty() {
return QueryBuilder.apply(this, (query) {
return query.addPropertyName(r'id');
});
}
QueryBuilder<AddressLabel, String, QQueryOperations> addressStringProperty() {
return QueryBuilder.apply(this, (query) {
return query.addPropertyName(r'addressString');
});
}
QueryBuilder<AddressLabel, List<String>?, QQueryOperations> tagsProperty() {
return QueryBuilder.apply(this, (query) {
return query.addPropertyName(r'tags');
});
}
QueryBuilder<AddressLabel, String, QQueryOperations> valueProperty() {
return QueryBuilder.apply(this, (query) {
return query.addPropertyName(r'value');
});
}
QueryBuilder<AddressLabel, String, QQueryOperations> walletIdProperty() {
return QueryBuilder.apply(this, (query) {
return query.addPropertyName(r'walletId');
});
}
}