github.com/crowdsecurity/crowdsec@v1.6.1/pkg/database/ent/decision/where.go (about) 1 // Code generated by ent, DO NOT EDIT. 2 3 package decision 4 5 import ( 6 "time" 7 8 "entgo.io/ent/dialect/sql" 9 "entgo.io/ent/dialect/sql/sqlgraph" 10 "github.com/crowdsecurity/crowdsec/pkg/database/ent/predicate" 11 ) 12 13 // ID filters vertices based on their ID field. 14 func ID(id int) predicate.Decision { 15 return predicate.Decision(sql.FieldEQ(FieldID, id)) 16 } 17 18 // IDEQ applies the EQ predicate on the ID field. 19 func IDEQ(id int) predicate.Decision { 20 return predicate.Decision(sql.FieldEQ(FieldID, id)) 21 } 22 23 // IDNEQ applies the NEQ predicate on the ID field. 24 func IDNEQ(id int) predicate.Decision { 25 return predicate.Decision(sql.FieldNEQ(FieldID, id)) 26 } 27 28 // IDIn applies the In predicate on the ID field. 29 func IDIn(ids ...int) predicate.Decision { 30 return predicate.Decision(sql.FieldIn(FieldID, ids...)) 31 } 32 33 // IDNotIn applies the NotIn predicate on the ID field. 34 func IDNotIn(ids ...int) predicate.Decision { 35 return predicate.Decision(sql.FieldNotIn(FieldID, ids...)) 36 } 37 38 // IDGT applies the GT predicate on the ID field. 39 func IDGT(id int) predicate.Decision { 40 return predicate.Decision(sql.FieldGT(FieldID, id)) 41 } 42 43 // IDGTE applies the GTE predicate on the ID field. 44 func IDGTE(id int) predicate.Decision { 45 return predicate.Decision(sql.FieldGTE(FieldID, id)) 46 } 47 48 // IDLT applies the LT predicate on the ID field. 49 func IDLT(id int) predicate.Decision { 50 return predicate.Decision(sql.FieldLT(FieldID, id)) 51 } 52 53 // IDLTE applies the LTE predicate on the ID field. 54 func IDLTE(id int) predicate.Decision { 55 return predicate.Decision(sql.FieldLTE(FieldID, id)) 56 } 57 58 // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. 59 func CreatedAt(v time.Time) predicate.Decision { 60 return predicate.Decision(sql.FieldEQ(FieldCreatedAt, v)) 61 } 62 63 // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. 64 func UpdatedAt(v time.Time) predicate.Decision { 65 return predicate.Decision(sql.FieldEQ(FieldUpdatedAt, v)) 66 } 67 68 // Until applies equality check predicate on the "until" field. It's identical to UntilEQ. 69 func Until(v time.Time) predicate.Decision { 70 return predicate.Decision(sql.FieldEQ(FieldUntil, v)) 71 } 72 73 // Scenario applies equality check predicate on the "scenario" field. It's identical to ScenarioEQ. 74 func Scenario(v string) predicate.Decision { 75 return predicate.Decision(sql.FieldEQ(FieldScenario, v)) 76 } 77 78 // Type applies equality check predicate on the "type" field. It's identical to TypeEQ. 79 func Type(v string) predicate.Decision { 80 return predicate.Decision(sql.FieldEQ(FieldType, v)) 81 } 82 83 // StartIP applies equality check predicate on the "start_ip" field. It's identical to StartIPEQ. 84 func StartIP(v int64) predicate.Decision { 85 return predicate.Decision(sql.FieldEQ(FieldStartIP, v)) 86 } 87 88 // EndIP applies equality check predicate on the "end_ip" field. It's identical to EndIPEQ. 89 func EndIP(v int64) predicate.Decision { 90 return predicate.Decision(sql.FieldEQ(FieldEndIP, v)) 91 } 92 93 // StartSuffix applies equality check predicate on the "start_suffix" field. It's identical to StartSuffixEQ. 94 func StartSuffix(v int64) predicate.Decision { 95 return predicate.Decision(sql.FieldEQ(FieldStartSuffix, v)) 96 } 97 98 // EndSuffix applies equality check predicate on the "end_suffix" field. It's identical to EndSuffixEQ. 99 func EndSuffix(v int64) predicate.Decision { 100 return predicate.Decision(sql.FieldEQ(FieldEndSuffix, v)) 101 } 102 103 // IPSize applies equality check predicate on the "ip_size" field. It's identical to IPSizeEQ. 104 func IPSize(v int64) predicate.Decision { 105 return predicate.Decision(sql.FieldEQ(FieldIPSize, v)) 106 } 107 108 // Scope applies equality check predicate on the "scope" field. It's identical to ScopeEQ. 109 func Scope(v string) predicate.Decision { 110 return predicate.Decision(sql.FieldEQ(FieldScope, v)) 111 } 112 113 // Value applies equality check predicate on the "value" field. It's identical to ValueEQ. 114 func Value(v string) predicate.Decision { 115 return predicate.Decision(sql.FieldEQ(FieldValue, v)) 116 } 117 118 // Origin applies equality check predicate on the "origin" field. It's identical to OriginEQ. 119 func Origin(v string) predicate.Decision { 120 return predicate.Decision(sql.FieldEQ(FieldOrigin, v)) 121 } 122 123 // Simulated applies equality check predicate on the "simulated" field. It's identical to SimulatedEQ. 124 func Simulated(v bool) predicate.Decision { 125 return predicate.Decision(sql.FieldEQ(FieldSimulated, v)) 126 } 127 128 // UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ. 129 func UUID(v string) predicate.Decision { 130 return predicate.Decision(sql.FieldEQ(FieldUUID, v)) 131 } 132 133 // AlertDecisions applies equality check predicate on the "alert_decisions" field. It's identical to AlertDecisionsEQ. 134 func AlertDecisions(v int) predicate.Decision { 135 return predicate.Decision(sql.FieldEQ(FieldAlertDecisions, v)) 136 } 137 138 // CreatedAtEQ applies the EQ predicate on the "created_at" field. 139 func CreatedAtEQ(v time.Time) predicate.Decision { 140 return predicate.Decision(sql.FieldEQ(FieldCreatedAt, v)) 141 } 142 143 // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. 144 func CreatedAtNEQ(v time.Time) predicate.Decision { 145 return predicate.Decision(sql.FieldNEQ(FieldCreatedAt, v)) 146 } 147 148 // CreatedAtIn applies the In predicate on the "created_at" field. 149 func CreatedAtIn(vs ...time.Time) predicate.Decision { 150 return predicate.Decision(sql.FieldIn(FieldCreatedAt, vs...)) 151 } 152 153 // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. 154 func CreatedAtNotIn(vs ...time.Time) predicate.Decision { 155 return predicate.Decision(sql.FieldNotIn(FieldCreatedAt, vs...)) 156 } 157 158 // CreatedAtGT applies the GT predicate on the "created_at" field. 159 func CreatedAtGT(v time.Time) predicate.Decision { 160 return predicate.Decision(sql.FieldGT(FieldCreatedAt, v)) 161 } 162 163 // CreatedAtGTE applies the GTE predicate on the "created_at" field. 164 func CreatedAtGTE(v time.Time) predicate.Decision { 165 return predicate.Decision(sql.FieldGTE(FieldCreatedAt, v)) 166 } 167 168 // CreatedAtLT applies the LT predicate on the "created_at" field. 169 func CreatedAtLT(v time.Time) predicate.Decision { 170 return predicate.Decision(sql.FieldLT(FieldCreatedAt, v)) 171 } 172 173 // CreatedAtLTE applies the LTE predicate on the "created_at" field. 174 func CreatedAtLTE(v time.Time) predicate.Decision { 175 return predicate.Decision(sql.FieldLTE(FieldCreatedAt, v)) 176 } 177 178 // CreatedAtIsNil applies the IsNil predicate on the "created_at" field. 179 func CreatedAtIsNil() predicate.Decision { 180 return predicate.Decision(sql.FieldIsNull(FieldCreatedAt)) 181 } 182 183 // CreatedAtNotNil applies the NotNil predicate on the "created_at" field. 184 func CreatedAtNotNil() predicate.Decision { 185 return predicate.Decision(sql.FieldNotNull(FieldCreatedAt)) 186 } 187 188 // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. 189 func UpdatedAtEQ(v time.Time) predicate.Decision { 190 return predicate.Decision(sql.FieldEQ(FieldUpdatedAt, v)) 191 } 192 193 // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. 194 func UpdatedAtNEQ(v time.Time) predicate.Decision { 195 return predicate.Decision(sql.FieldNEQ(FieldUpdatedAt, v)) 196 } 197 198 // UpdatedAtIn applies the In predicate on the "updated_at" field. 199 func UpdatedAtIn(vs ...time.Time) predicate.Decision { 200 return predicate.Decision(sql.FieldIn(FieldUpdatedAt, vs...)) 201 } 202 203 // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. 204 func UpdatedAtNotIn(vs ...time.Time) predicate.Decision { 205 return predicate.Decision(sql.FieldNotIn(FieldUpdatedAt, vs...)) 206 } 207 208 // UpdatedAtGT applies the GT predicate on the "updated_at" field. 209 func UpdatedAtGT(v time.Time) predicate.Decision { 210 return predicate.Decision(sql.FieldGT(FieldUpdatedAt, v)) 211 } 212 213 // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. 214 func UpdatedAtGTE(v time.Time) predicate.Decision { 215 return predicate.Decision(sql.FieldGTE(FieldUpdatedAt, v)) 216 } 217 218 // UpdatedAtLT applies the LT predicate on the "updated_at" field. 219 func UpdatedAtLT(v time.Time) predicate.Decision { 220 return predicate.Decision(sql.FieldLT(FieldUpdatedAt, v)) 221 } 222 223 // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. 224 func UpdatedAtLTE(v time.Time) predicate.Decision { 225 return predicate.Decision(sql.FieldLTE(FieldUpdatedAt, v)) 226 } 227 228 // UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. 229 func UpdatedAtIsNil() predicate.Decision { 230 return predicate.Decision(sql.FieldIsNull(FieldUpdatedAt)) 231 } 232 233 // UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. 234 func UpdatedAtNotNil() predicate.Decision { 235 return predicate.Decision(sql.FieldNotNull(FieldUpdatedAt)) 236 } 237 238 // UntilEQ applies the EQ predicate on the "until" field. 239 func UntilEQ(v time.Time) predicate.Decision { 240 return predicate.Decision(sql.FieldEQ(FieldUntil, v)) 241 } 242 243 // UntilNEQ applies the NEQ predicate on the "until" field. 244 func UntilNEQ(v time.Time) predicate.Decision { 245 return predicate.Decision(sql.FieldNEQ(FieldUntil, v)) 246 } 247 248 // UntilIn applies the In predicate on the "until" field. 249 func UntilIn(vs ...time.Time) predicate.Decision { 250 return predicate.Decision(sql.FieldIn(FieldUntil, vs...)) 251 } 252 253 // UntilNotIn applies the NotIn predicate on the "until" field. 254 func UntilNotIn(vs ...time.Time) predicate.Decision { 255 return predicate.Decision(sql.FieldNotIn(FieldUntil, vs...)) 256 } 257 258 // UntilGT applies the GT predicate on the "until" field. 259 func UntilGT(v time.Time) predicate.Decision { 260 return predicate.Decision(sql.FieldGT(FieldUntil, v)) 261 } 262 263 // UntilGTE applies the GTE predicate on the "until" field. 264 func UntilGTE(v time.Time) predicate.Decision { 265 return predicate.Decision(sql.FieldGTE(FieldUntil, v)) 266 } 267 268 // UntilLT applies the LT predicate on the "until" field. 269 func UntilLT(v time.Time) predicate.Decision { 270 return predicate.Decision(sql.FieldLT(FieldUntil, v)) 271 } 272 273 // UntilLTE applies the LTE predicate on the "until" field. 274 func UntilLTE(v time.Time) predicate.Decision { 275 return predicate.Decision(sql.FieldLTE(FieldUntil, v)) 276 } 277 278 // UntilIsNil applies the IsNil predicate on the "until" field. 279 func UntilIsNil() predicate.Decision { 280 return predicate.Decision(sql.FieldIsNull(FieldUntil)) 281 } 282 283 // UntilNotNil applies the NotNil predicate on the "until" field. 284 func UntilNotNil() predicate.Decision { 285 return predicate.Decision(sql.FieldNotNull(FieldUntil)) 286 } 287 288 // ScenarioEQ applies the EQ predicate on the "scenario" field. 289 func ScenarioEQ(v string) predicate.Decision { 290 return predicate.Decision(sql.FieldEQ(FieldScenario, v)) 291 } 292 293 // ScenarioNEQ applies the NEQ predicate on the "scenario" field. 294 func ScenarioNEQ(v string) predicate.Decision { 295 return predicate.Decision(sql.FieldNEQ(FieldScenario, v)) 296 } 297 298 // ScenarioIn applies the In predicate on the "scenario" field. 299 func ScenarioIn(vs ...string) predicate.Decision { 300 return predicate.Decision(sql.FieldIn(FieldScenario, vs...)) 301 } 302 303 // ScenarioNotIn applies the NotIn predicate on the "scenario" field. 304 func ScenarioNotIn(vs ...string) predicate.Decision { 305 return predicate.Decision(sql.FieldNotIn(FieldScenario, vs...)) 306 } 307 308 // ScenarioGT applies the GT predicate on the "scenario" field. 309 func ScenarioGT(v string) predicate.Decision { 310 return predicate.Decision(sql.FieldGT(FieldScenario, v)) 311 } 312 313 // ScenarioGTE applies the GTE predicate on the "scenario" field. 314 func ScenarioGTE(v string) predicate.Decision { 315 return predicate.Decision(sql.FieldGTE(FieldScenario, v)) 316 } 317 318 // ScenarioLT applies the LT predicate on the "scenario" field. 319 func ScenarioLT(v string) predicate.Decision { 320 return predicate.Decision(sql.FieldLT(FieldScenario, v)) 321 } 322 323 // ScenarioLTE applies the LTE predicate on the "scenario" field. 324 func ScenarioLTE(v string) predicate.Decision { 325 return predicate.Decision(sql.FieldLTE(FieldScenario, v)) 326 } 327 328 // ScenarioContains applies the Contains predicate on the "scenario" field. 329 func ScenarioContains(v string) predicate.Decision { 330 return predicate.Decision(sql.FieldContains(FieldScenario, v)) 331 } 332 333 // ScenarioHasPrefix applies the HasPrefix predicate on the "scenario" field. 334 func ScenarioHasPrefix(v string) predicate.Decision { 335 return predicate.Decision(sql.FieldHasPrefix(FieldScenario, v)) 336 } 337 338 // ScenarioHasSuffix applies the HasSuffix predicate on the "scenario" field. 339 func ScenarioHasSuffix(v string) predicate.Decision { 340 return predicate.Decision(sql.FieldHasSuffix(FieldScenario, v)) 341 } 342 343 // ScenarioEqualFold applies the EqualFold predicate on the "scenario" field. 344 func ScenarioEqualFold(v string) predicate.Decision { 345 return predicate.Decision(sql.FieldEqualFold(FieldScenario, v)) 346 } 347 348 // ScenarioContainsFold applies the ContainsFold predicate on the "scenario" field. 349 func ScenarioContainsFold(v string) predicate.Decision { 350 return predicate.Decision(sql.FieldContainsFold(FieldScenario, v)) 351 } 352 353 // TypeEQ applies the EQ predicate on the "type" field. 354 func TypeEQ(v string) predicate.Decision { 355 return predicate.Decision(sql.FieldEQ(FieldType, v)) 356 } 357 358 // TypeNEQ applies the NEQ predicate on the "type" field. 359 func TypeNEQ(v string) predicate.Decision { 360 return predicate.Decision(sql.FieldNEQ(FieldType, v)) 361 } 362 363 // TypeIn applies the In predicate on the "type" field. 364 func TypeIn(vs ...string) predicate.Decision { 365 return predicate.Decision(sql.FieldIn(FieldType, vs...)) 366 } 367 368 // TypeNotIn applies the NotIn predicate on the "type" field. 369 func TypeNotIn(vs ...string) predicate.Decision { 370 return predicate.Decision(sql.FieldNotIn(FieldType, vs...)) 371 } 372 373 // TypeGT applies the GT predicate on the "type" field. 374 func TypeGT(v string) predicate.Decision { 375 return predicate.Decision(sql.FieldGT(FieldType, v)) 376 } 377 378 // TypeGTE applies the GTE predicate on the "type" field. 379 func TypeGTE(v string) predicate.Decision { 380 return predicate.Decision(sql.FieldGTE(FieldType, v)) 381 } 382 383 // TypeLT applies the LT predicate on the "type" field. 384 func TypeLT(v string) predicate.Decision { 385 return predicate.Decision(sql.FieldLT(FieldType, v)) 386 } 387 388 // TypeLTE applies the LTE predicate on the "type" field. 389 func TypeLTE(v string) predicate.Decision { 390 return predicate.Decision(sql.FieldLTE(FieldType, v)) 391 } 392 393 // TypeContains applies the Contains predicate on the "type" field. 394 func TypeContains(v string) predicate.Decision { 395 return predicate.Decision(sql.FieldContains(FieldType, v)) 396 } 397 398 // TypeHasPrefix applies the HasPrefix predicate on the "type" field. 399 func TypeHasPrefix(v string) predicate.Decision { 400 return predicate.Decision(sql.FieldHasPrefix(FieldType, v)) 401 } 402 403 // TypeHasSuffix applies the HasSuffix predicate on the "type" field. 404 func TypeHasSuffix(v string) predicate.Decision { 405 return predicate.Decision(sql.FieldHasSuffix(FieldType, v)) 406 } 407 408 // TypeEqualFold applies the EqualFold predicate on the "type" field. 409 func TypeEqualFold(v string) predicate.Decision { 410 return predicate.Decision(sql.FieldEqualFold(FieldType, v)) 411 } 412 413 // TypeContainsFold applies the ContainsFold predicate on the "type" field. 414 func TypeContainsFold(v string) predicate.Decision { 415 return predicate.Decision(sql.FieldContainsFold(FieldType, v)) 416 } 417 418 // StartIPEQ applies the EQ predicate on the "start_ip" field. 419 func StartIPEQ(v int64) predicate.Decision { 420 return predicate.Decision(sql.FieldEQ(FieldStartIP, v)) 421 } 422 423 // StartIPNEQ applies the NEQ predicate on the "start_ip" field. 424 func StartIPNEQ(v int64) predicate.Decision { 425 return predicate.Decision(sql.FieldNEQ(FieldStartIP, v)) 426 } 427 428 // StartIPIn applies the In predicate on the "start_ip" field. 429 func StartIPIn(vs ...int64) predicate.Decision { 430 return predicate.Decision(sql.FieldIn(FieldStartIP, vs...)) 431 } 432 433 // StartIPNotIn applies the NotIn predicate on the "start_ip" field. 434 func StartIPNotIn(vs ...int64) predicate.Decision { 435 return predicate.Decision(sql.FieldNotIn(FieldStartIP, vs...)) 436 } 437 438 // StartIPGT applies the GT predicate on the "start_ip" field. 439 func StartIPGT(v int64) predicate.Decision { 440 return predicate.Decision(sql.FieldGT(FieldStartIP, v)) 441 } 442 443 // StartIPGTE applies the GTE predicate on the "start_ip" field. 444 func StartIPGTE(v int64) predicate.Decision { 445 return predicate.Decision(sql.FieldGTE(FieldStartIP, v)) 446 } 447 448 // StartIPLT applies the LT predicate on the "start_ip" field. 449 func StartIPLT(v int64) predicate.Decision { 450 return predicate.Decision(sql.FieldLT(FieldStartIP, v)) 451 } 452 453 // StartIPLTE applies the LTE predicate on the "start_ip" field. 454 func StartIPLTE(v int64) predicate.Decision { 455 return predicate.Decision(sql.FieldLTE(FieldStartIP, v)) 456 } 457 458 // StartIPIsNil applies the IsNil predicate on the "start_ip" field. 459 func StartIPIsNil() predicate.Decision { 460 return predicate.Decision(sql.FieldIsNull(FieldStartIP)) 461 } 462 463 // StartIPNotNil applies the NotNil predicate on the "start_ip" field. 464 func StartIPNotNil() predicate.Decision { 465 return predicate.Decision(sql.FieldNotNull(FieldStartIP)) 466 } 467 468 // EndIPEQ applies the EQ predicate on the "end_ip" field. 469 func EndIPEQ(v int64) predicate.Decision { 470 return predicate.Decision(sql.FieldEQ(FieldEndIP, v)) 471 } 472 473 // EndIPNEQ applies the NEQ predicate on the "end_ip" field. 474 func EndIPNEQ(v int64) predicate.Decision { 475 return predicate.Decision(sql.FieldNEQ(FieldEndIP, v)) 476 } 477 478 // EndIPIn applies the In predicate on the "end_ip" field. 479 func EndIPIn(vs ...int64) predicate.Decision { 480 return predicate.Decision(sql.FieldIn(FieldEndIP, vs...)) 481 } 482 483 // EndIPNotIn applies the NotIn predicate on the "end_ip" field. 484 func EndIPNotIn(vs ...int64) predicate.Decision { 485 return predicate.Decision(sql.FieldNotIn(FieldEndIP, vs...)) 486 } 487 488 // EndIPGT applies the GT predicate on the "end_ip" field. 489 func EndIPGT(v int64) predicate.Decision { 490 return predicate.Decision(sql.FieldGT(FieldEndIP, v)) 491 } 492 493 // EndIPGTE applies the GTE predicate on the "end_ip" field. 494 func EndIPGTE(v int64) predicate.Decision { 495 return predicate.Decision(sql.FieldGTE(FieldEndIP, v)) 496 } 497 498 // EndIPLT applies the LT predicate on the "end_ip" field. 499 func EndIPLT(v int64) predicate.Decision { 500 return predicate.Decision(sql.FieldLT(FieldEndIP, v)) 501 } 502 503 // EndIPLTE applies the LTE predicate on the "end_ip" field. 504 func EndIPLTE(v int64) predicate.Decision { 505 return predicate.Decision(sql.FieldLTE(FieldEndIP, v)) 506 } 507 508 // EndIPIsNil applies the IsNil predicate on the "end_ip" field. 509 func EndIPIsNil() predicate.Decision { 510 return predicate.Decision(sql.FieldIsNull(FieldEndIP)) 511 } 512 513 // EndIPNotNil applies the NotNil predicate on the "end_ip" field. 514 func EndIPNotNil() predicate.Decision { 515 return predicate.Decision(sql.FieldNotNull(FieldEndIP)) 516 } 517 518 // StartSuffixEQ applies the EQ predicate on the "start_suffix" field. 519 func StartSuffixEQ(v int64) predicate.Decision { 520 return predicate.Decision(sql.FieldEQ(FieldStartSuffix, v)) 521 } 522 523 // StartSuffixNEQ applies the NEQ predicate on the "start_suffix" field. 524 func StartSuffixNEQ(v int64) predicate.Decision { 525 return predicate.Decision(sql.FieldNEQ(FieldStartSuffix, v)) 526 } 527 528 // StartSuffixIn applies the In predicate on the "start_suffix" field. 529 func StartSuffixIn(vs ...int64) predicate.Decision { 530 return predicate.Decision(sql.FieldIn(FieldStartSuffix, vs...)) 531 } 532 533 // StartSuffixNotIn applies the NotIn predicate on the "start_suffix" field. 534 func StartSuffixNotIn(vs ...int64) predicate.Decision { 535 return predicate.Decision(sql.FieldNotIn(FieldStartSuffix, vs...)) 536 } 537 538 // StartSuffixGT applies the GT predicate on the "start_suffix" field. 539 func StartSuffixGT(v int64) predicate.Decision { 540 return predicate.Decision(sql.FieldGT(FieldStartSuffix, v)) 541 } 542 543 // StartSuffixGTE applies the GTE predicate on the "start_suffix" field. 544 func StartSuffixGTE(v int64) predicate.Decision { 545 return predicate.Decision(sql.FieldGTE(FieldStartSuffix, v)) 546 } 547 548 // StartSuffixLT applies the LT predicate on the "start_suffix" field. 549 func StartSuffixLT(v int64) predicate.Decision { 550 return predicate.Decision(sql.FieldLT(FieldStartSuffix, v)) 551 } 552 553 // StartSuffixLTE applies the LTE predicate on the "start_suffix" field. 554 func StartSuffixLTE(v int64) predicate.Decision { 555 return predicate.Decision(sql.FieldLTE(FieldStartSuffix, v)) 556 } 557 558 // StartSuffixIsNil applies the IsNil predicate on the "start_suffix" field. 559 func StartSuffixIsNil() predicate.Decision { 560 return predicate.Decision(sql.FieldIsNull(FieldStartSuffix)) 561 } 562 563 // StartSuffixNotNil applies the NotNil predicate on the "start_suffix" field. 564 func StartSuffixNotNil() predicate.Decision { 565 return predicate.Decision(sql.FieldNotNull(FieldStartSuffix)) 566 } 567 568 // EndSuffixEQ applies the EQ predicate on the "end_suffix" field. 569 func EndSuffixEQ(v int64) predicate.Decision { 570 return predicate.Decision(sql.FieldEQ(FieldEndSuffix, v)) 571 } 572 573 // EndSuffixNEQ applies the NEQ predicate on the "end_suffix" field. 574 func EndSuffixNEQ(v int64) predicate.Decision { 575 return predicate.Decision(sql.FieldNEQ(FieldEndSuffix, v)) 576 } 577 578 // EndSuffixIn applies the In predicate on the "end_suffix" field. 579 func EndSuffixIn(vs ...int64) predicate.Decision { 580 return predicate.Decision(sql.FieldIn(FieldEndSuffix, vs...)) 581 } 582 583 // EndSuffixNotIn applies the NotIn predicate on the "end_suffix" field. 584 func EndSuffixNotIn(vs ...int64) predicate.Decision { 585 return predicate.Decision(sql.FieldNotIn(FieldEndSuffix, vs...)) 586 } 587 588 // EndSuffixGT applies the GT predicate on the "end_suffix" field. 589 func EndSuffixGT(v int64) predicate.Decision { 590 return predicate.Decision(sql.FieldGT(FieldEndSuffix, v)) 591 } 592 593 // EndSuffixGTE applies the GTE predicate on the "end_suffix" field. 594 func EndSuffixGTE(v int64) predicate.Decision { 595 return predicate.Decision(sql.FieldGTE(FieldEndSuffix, v)) 596 } 597 598 // EndSuffixLT applies the LT predicate on the "end_suffix" field. 599 func EndSuffixLT(v int64) predicate.Decision { 600 return predicate.Decision(sql.FieldLT(FieldEndSuffix, v)) 601 } 602 603 // EndSuffixLTE applies the LTE predicate on the "end_suffix" field. 604 func EndSuffixLTE(v int64) predicate.Decision { 605 return predicate.Decision(sql.FieldLTE(FieldEndSuffix, v)) 606 } 607 608 // EndSuffixIsNil applies the IsNil predicate on the "end_suffix" field. 609 func EndSuffixIsNil() predicate.Decision { 610 return predicate.Decision(sql.FieldIsNull(FieldEndSuffix)) 611 } 612 613 // EndSuffixNotNil applies the NotNil predicate on the "end_suffix" field. 614 func EndSuffixNotNil() predicate.Decision { 615 return predicate.Decision(sql.FieldNotNull(FieldEndSuffix)) 616 } 617 618 // IPSizeEQ applies the EQ predicate on the "ip_size" field. 619 func IPSizeEQ(v int64) predicate.Decision { 620 return predicate.Decision(sql.FieldEQ(FieldIPSize, v)) 621 } 622 623 // IPSizeNEQ applies the NEQ predicate on the "ip_size" field. 624 func IPSizeNEQ(v int64) predicate.Decision { 625 return predicate.Decision(sql.FieldNEQ(FieldIPSize, v)) 626 } 627 628 // IPSizeIn applies the In predicate on the "ip_size" field. 629 func IPSizeIn(vs ...int64) predicate.Decision { 630 return predicate.Decision(sql.FieldIn(FieldIPSize, vs...)) 631 } 632 633 // IPSizeNotIn applies the NotIn predicate on the "ip_size" field. 634 func IPSizeNotIn(vs ...int64) predicate.Decision { 635 return predicate.Decision(sql.FieldNotIn(FieldIPSize, vs...)) 636 } 637 638 // IPSizeGT applies the GT predicate on the "ip_size" field. 639 func IPSizeGT(v int64) predicate.Decision { 640 return predicate.Decision(sql.FieldGT(FieldIPSize, v)) 641 } 642 643 // IPSizeGTE applies the GTE predicate on the "ip_size" field. 644 func IPSizeGTE(v int64) predicate.Decision { 645 return predicate.Decision(sql.FieldGTE(FieldIPSize, v)) 646 } 647 648 // IPSizeLT applies the LT predicate on the "ip_size" field. 649 func IPSizeLT(v int64) predicate.Decision { 650 return predicate.Decision(sql.FieldLT(FieldIPSize, v)) 651 } 652 653 // IPSizeLTE applies the LTE predicate on the "ip_size" field. 654 func IPSizeLTE(v int64) predicate.Decision { 655 return predicate.Decision(sql.FieldLTE(FieldIPSize, v)) 656 } 657 658 // IPSizeIsNil applies the IsNil predicate on the "ip_size" field. 659 func IPSizeIsNil() predicate.Decision { 660 return predicate.Decision(sql.FieldIsNull(FieldIPSize)) 661 } 662 663 // IPSizeNotNil applies the NotNil predicate on the "ip_size" field. 664 func IPSizeNotNil() predicate.Decision { 665 return predicate.Decision(sql.FieldNotNull(FieldIPSize)) 666 } 667 668 // ScopeEQ applies the EQ predicate on the "scope" field. 669 func ScopeEQ(v string) predicate.Decision { 670 return predicate.Decision(sql.FieldEQ(FieldScope, v)) 671 } 672 673 // ScopeNEQ applies the NEQ predicate on the "scope" field. 674 func ScopeNEQ(v string) predicate.Decision { 675 return predicate.Decision(sql.FieldNEQ(FieldScope, v)) 676 } 677 678 // ScopeIn applies the In predicate on the "scope" field. 679 func ScopeIn(vs ...string) predicate.Decision { 680 return predicate.Decision(sql.FieldIn(FieldScope, vs...)) 681 } 682 683 // ScopeNotIn applies the NotIn predicate on the "scope" field. 684 func ScopeNotIn(vs ...string) predicate.Decision { 685 return predicate.Decision(sql.FieldNotIn(FieldScope, vs...)) 686 } 687 688 // ScopeGT applies the GT predicate on the "scope" field. 689 func ScopeGT(v string) predicate.Decision { 690 return predicate.Decision(sql.FieldGT(FieldScope, v)) 691 } 692 693 // ScopeGTE applies the GTE predicate on the "scope" field. 694 func ScopeGTE(v string) predicate.Decision { 695 return predicate.Decision(sql.FieldGTE(FieldScope, v)) 696 } 697 698 // ScopeLT applies the LT predicate on the "scope" field. 699 func ScopeLT(v string) predicate.Decision { 700 return predicate.Decision(sql.FieldLT(FieldScope, v)) 701 } 702 703 // ScopeLTE applies the LTE predicate on the "scope" field. 704 func ScopeLTE(v string) predicate.Decision { 705 return predicate.Decision(sql.FieldLTE(FieldScope, v)) 706 } 707 708 // ScopeContains applies the Contains predicate on the "scope" field. 709 func ScopeContains(v string) predicate.Decision { 710 return predicate.Decision(sql.FieldContains(FieldScope, v)) 711 } 712 713 // ScopeHasPrefix applies the HasPrefix predicate on the "scope" field. 714 func ScopeHasPrefix(v string) predicate.Decision { 715 return predicate.Decision(sql.FieldHasPrefix(FieldScope, v)) 716 } 717 718 // ScopeHasSuffix applies the HasSuffix predicate on the "scope" field. 719 func ScopeHasSuffix(v string) predicate.Decision { 720 return predicate.Decision(sql.FieldHasSuffix(FieldScope, v)) 721 } 722 723 // ScopeEqualFold applies the EqualFold predicate on the "scope" field. 724 func ScopeEqualFold(v string) predicate.Decision { 725 return predicate.Decision(sql.FieldEqualFold(FieldScope, v)) 726 } 727 728 // ScopeContainsFold applies the ContainsFold predicate on the "scope" field. 729 func ScopeContainsFold(v string) predicate.Decision { 730 return predicate.Decision(sql.FieldContainsFold(FieldScope, v)) 731 } 732 733 // ValueEQ applies the EQ predicate on the "value" field. 734 func ValueEQ(v string) predicate.Decision { 735 return predicate.Decision(sql.FieldEQ(FieldValue, v)) 736 } 737 738 // ValueNEQ applies the NEQ predicate on the "value" field. 739 func ValueNEQ(v string) predicate.Decision { 740 return predicate.Decision(sql.FieldNEQ(FieldValue, v)) 741 } 742 743 // ValueIn applies the In predicate on the "value" field. 744 func ValueIn(vs ...string) predicate.Decision { 745 return predicate.Decision(sql.FieldIn(FieldValue, vs...)) 746 } 747 748 // ValueNotIn applies the NotIn predicate on the "value" field. 749 func ValueNotIn(vs ...string) predicate.Decision { 750 return predicate.Decision(sql.FieldNotIn(FieldValue, vs...)) 751 } 752 753 // ValueGT applies the GT predicate on the "value" field. 754 func ValueGT(v string) predicate.Decision { 755 return predicate.Decision(sql.FieldGT(FieldValue, v)) 756 } 757 758 // ValueGTE applies the GTE predicate on the "value" field. 759 func ValueGTE(v string) predicate.Decision { 760 return predicate.Decision(sql.FieldGTE(FieldValue, v)) 761 } 762 763 // ValueLT applies the LT predicate on the "value" field. 764 func ValueLT(v string) predicate.Decision { 765 return predicate.Decision(sql.FieldLT(FieldValue, v)) 766 } 767 768 // ValueLTE applies the LTE predicate on the "value" field. 769 func ValueLTE(v string) predicate.Decision { 770 return predicate.Decision(sql.FieldLTE(FieldValue, v)) 771 } 772 773 // ValueContains applies the Contains predicate on the "value" field. 774 func ValueContains(v string) predicate.Decision { 775 return predicate.Decision(sql.FieldContains(FieldValue, v)) 776 } 777 778 // ValueHasPrefix applies the HasPrefix predicate on the "value" field. 779 func ValueHasPrefix(v string) predicate.Decision { 780 return predicate.Decision(sql.FieldHasPrefix(FieldValue, v)) 781 } 782 783 // ValueHasSuffix applies the HasSuffix predicate on the "value" field. 784 func ValueHasSuffix(v string) predicate.Decision { 785 return predicate.Decision(sql.FieldHasSuffix(FieldValue, v)) 786 } 787 788 // ValueEqualFold applies the EqualFold predicate on the "value" field. 789 func ValueEqualFold(v string) predicate.Decision { 790 return predicate.Decision(sql.FieldEqualFold(FieldValue, v)) 791 } 792 793 // ValueContainsFold applies the ContainsFold predicate on the "value" field. 794 func ValueContainsFold(v string) predicate.Decision { 795 return predicate.Decision(sql.FieldContainsFold(FieldValue, v)) 796 } 797 798 // OriginEQ applies the EQ predicate on the "origin" field. 799 func OriginEQ(v string) predicate.Decision { 800 return predicate.Decision(sql.FieldEQ(FieldOrigin, v)) 801 } 802 803 // OriginNEQ applies the NEQ predicate on the "origin" field. 804 func OriginNEQ(v string) predicate.Decision { 805 return predicate.Decision(sql.FieldNEQ(FieldOrigin, v)) 806 } 807 808 // OriginIn applies the In predicate on the "origin" field. 809 func OriginIn(vs ...string) predicate.Decision { 810 return predicate.Decision(sql.FieldIn(FieldOrigin, vs...)) 811 } 812 813 // OriginNotIn applies the NotIn predicate on the "origin" field. 814 func OriginNotIn(vs ...string) predicate.Decision { 815 return predicate.Decision(sql.FieldNotIn(FieldOrigin, vs...)) 816 } 817 818 // OriginGT applies the GT predicate on the "origin" field. 819 func OriginGT(v string) predicate.Decision { 820 return predicate.Decision(sql.FieldGT(FieldOrigin, v)) 821 } 822 823 // OriginGTE applies the GTE predicate on the "origin" field. 824 func OriginGTE(v string) predicate.Decision { 825 return predicate.Decision(sql.FieldGTE(FieldOrigin, v)) 826 } 827 828 // OriginLT applies the LT predicate on the "origin" field. 829 func OriginLT(v string) predicate.Decision { 830 return predicate.Decision(sql.FieldLT(FieldOrigin, v)) 831 } 832 833 // OriginLTE applies the LTE predicate on the "origin" field. 834 func OriginLTE(v string) predicate.Decision { 835 return predicate.Decision(sql.FieldLTE(FieldOrigin, v)) 836 } 837 838 // OriginContains applies the Contains predicate on the "origin" field. 839 func OriginContains(v string) predicate.Decision { 840 return predicate.Decision(sql.FieldContains(FieldOrigin, v)) 841 } 842 843 // OriginHasPrefix applies the HasPrefix predicate on the "origin" field. 844 func OriginHasPrefix(v string) predicate.Decision { 845 return predicate.Decision(sql.FieldHasPrefix(FieldOrigin, v)) 846 } 847 848 // OriginHasSuffix applies the HasSuffix predicate on the "origin" field. 849 func OriginHasSuffix(v string) predicate.Decision { 850 return predicate.Decision(sql.FieldHasSuffix(FieldOrigin, v)) 851 } 852 853 // OriginEqualFold applies the EqualFold predicate on the "origin" field. 854 func OriginEqualFold(v string) predicate.Decision { 855 return predicate.Decision(sql.FieldEqualFold(FieldOrigin, v)) 856 } 857 858 // OriginContainsFold applies the ContainsFold predicate on the "origin" field. 859 func OriginContainsFold(v string) predicate.Decision { 860 return predicate.Decision(sql.FieldContainsFold(FieldOrigin, v)) 861 } 862 863 // SimulatedEQ applies the EQ predicate on the "simulated" field. 864 func SimulatedEQ(v bool) predicate.Decision { 865 return predicate.Decision(sql.FieldEQ(FieldSimulated, v)) 866 } 867 868 // SimulatedNEQ applies the NEQ predicate on the "simulated" field. 869 func SimulatedNEQ(v bool) predicate.Decision { 870 return predicate.Decision(sql.FieldNEQ(FieldSimulated, v)) 871 } 872 873 // UUIDEQ applies the EQ predicate on the "uuid" field. 874 func UUIDEQ(v string) predicate.Decision { 875 return predicate.Decision(sql.FieldEQ(FieldUUID, v)) 876 } 877 878 // UUIDNEQ applies the NEQ predicate on the "uuid" field. 879 func UUIDNEQ(v string) predicate.Decision { 880 return predicate.Decision(sql.FieldNEQ(FieldUUID, v)) 881 } 882 883 // UUIDIn applies the In predicate on the "uuid" field. 884 func UUIDIn(vs ...string) predicate.Decision { 885 return predicate.Decision(sql.FieldIn(FieldUUID, vs...)) 886 } 887 888 // UUIDNotIn applies the NotIn predicate on the "uuid" field. 889 func UUIDNotIn(vs ...string) predicate.Decision { 890 return predicate.Decision(sql.FieldNotIn(FieldUUID, vs...)) 891 } 892 893 // UUIDGT applies the GT predicate on the "uuid" field. 894 func UUIDGT(v string) predicate.Decision { 895 return predicate.Decision(sql.FieldGT(FieldUUID, v)) 896 } 897 898 // UUIDGTE applies the GTE predicate on the "uuid" field. 899 func UUIDGTE(v string) predicate.Decision { 900 return predicate.Decision(sql.FieldGTE(FieldUUID, v)) 901 } 902 903 // UUIDLT applies the LT predicate on the "uuid" field. 904 func UUIDLT(v string) predicate.Decision { 905 return predicate.Decision(sql.FieldLT(FieldUUID, v)) 906 } 907 908 // UUIDLTE applies the LTE predicate on the "uuid" field. 909 func UUIDLTE(v string) predicate.Decision { 910 return predicate.Decision(sql.FieldLTE(FieldUUID, v)) 911 } 912 913 // UUIDContains applies the Contains predicate on the "uuid" field. 914 func UUIDContains(v string) predicate.Decision { 915 return predicate.Decision(sql.FieldContains(FieldUUID, v)) 916 } 917 918 // UUIDHasPrefix applies the HasPrefix predicate on the "uuid" field. 919 func UUIDHasPrefix(v string) predicate.Decision { 920 return predicate.Decision(sql.FieldHasPrefix(FieldUUID, v)) 921 } 922 923 // UUIDHasSuffix applies the HasSuffix predicate on the "uuid" field. 924 func UUIDHasSuffix(v string) predicate.Decision { 925 return predicate.Decision(sql.FieldHasSuffix(FieldUUID, v)) 926 } 927 928 // UUIDIsNil applies the IsNil predicate on the "uuid" field. 929 func UUIDIsNil() predicate.Decision { 930 return predicate.Decision(sql.FieldIsNull(FieldUUID)) 931 } 932 933 // UUIDNotNil applies the NotNil predicate on the "uuid" field. 934 func UUIDNotNil() predicate.Decision { 935 return predicate.Decision(sql.FieldNotNull(FieldUUID)) 936 } 937 938 // UUIDEqualFold applies the EqualFold predicate on the "uuid" field. 939 func UUIDEqualFold(v string) predicate.Decision { 940 return predicate.Decision(sql.FieldEqualFold(FieldUUID, v)) 941 } 942 943 // UUIDContainsFold applies the ContainsFold predicate on the "uuid" field. 944 func UUIDContainsFold(v string) predicate.Decision { 945 return predicate.Decision(sql.FieldContainsFold(FieldUUID, v)) 946 } 947 948 // AlertDecisionsEQ applies the EQ predicate on the "alert_decisions" field. 949 func AlertDecisionsEQ(v int) predicate.Decision { 950 return predicate.Decision(sql.FieldEQ(FieldAlertDecisions, v)) 951 } 952 953 // AlertDecisionsNEQ applies the NEQ predicate on the "alert_decisions" field. 954 func AlertDecisionsNEQ(v int) predicate.Decision { 955 return predicate.Decision(sql.FieldNEQ(FieldAlertDecisions, v)) 956 } 957 958 // AlertDecisionsIn applies the In predicate on the "alert_decisions" field. 959 func AlertDecisionsIn(vs ...int) predicate.Decision { 960 return predicate.Decision(sql.FieldIn(FieldAlertDecisions, vs...)) 961 } 962 963 // AlertDecisionsNotIn applies the NotIn predicate on the "alert_decisions" field. 964 func AlertDecisionsNotIn(vs ...int) predicate.Decision { 965 return predicate.Decision(sql.FieldNotIn(FieldAlertDecisions, vs...)) 966 } 967 968 // AlertDecisionsIsNil applies the IsNil predicate on the "alert_decisions" field. 969 func AlertDecisionsIsNil() predicate.Decision { 970 return predicate.Decision(sql.FieldIsNull(FieldAlertDecisions)) 971 } 972 973 // AlertDecisionsNotNil applies the NotNil predicate on the "alert_decisions" field. 974 func AlertDecisionsNotNil() predicate.Decision { 975 return predicate.Decision(sql.FieldNotNull(FieldAlertDecisions)) 976 } 977 978 // HasOwner applies the HasEdge predicate on the "owner" edge. 979 func HasOwner() predicate.Decision { 980 return predicate.Decision(func(s *sql.Selector) { 981 step := sqlgraph.NewStep( 982 sqlgraph.From(Table, FieldID), 983 sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn), 984 ) 985 sqlgraph.HasNeighbors(s, step) 986 }) 987 } 988 989 // HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates). 990 func HasOwnerWith(preds ...predicate.Alert) predicate.Decision { 991 return predicate.Decision(func(s *sql.Selector) { 992 step := newOwnerStep() 993 sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { 994 for _, p := range preds { 995 p(s) 996 } 997 }) 998 }) 999 } 1000 1001 // And groups predicates with the AND operator between them. 1002 func And(predicates ...predicate.Decision) predicate.Decision { 1003 return predicate.Decision(sql.AndPredicates(predicates...)) 1004 } 1005 1006 // Or groups predicates with the OR operator between them. 1007 func Or(predicates ...predicate.Decision) predicate.Decision { 1008 return predicate.Decision(sql.OrPredicates(predicates...)) 1009 } 1010 1011 // Not applies the not operator on the given predicate. 1012 func Not(p predicate.Decision) predicate.Decision { 1013 return predicate.Decision(sql.NotPredicates(p)) 1014 }