// Code generated by ent, DO NOT EDIT.

package timingbreakdown

import (
	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"github.com/buildbarn/bb-portal/ent/gen/ent/predicate"
)

// ID filters vertices based on their ID field.
func ID(id int) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldEQ(FieldID, id))
}

// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldEQ(FieldID, id))
}

// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldNEQ(FieldID, id))
}

// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldIn(FieldID, ids...))
}

// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldNotIn(FieldID, ids...))
}

// IDGT applies the GT predicate on the ID field.
func IDGT(id int) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldGT(FieldID, id))
}

// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldGTE(FieldID, id))
}

// IDLT applies the LT predicate on the ID field.
func IDLT(id int) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldLT(FieldID, id))
}

// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldLTE(FieldID, id))
}

// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldEQ(FieldName, v))
}

// Time applies equality check predicate on the "time" field. It's identical to TimeEQ.
func Time(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldEQ(FieldTime, v))
}

// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldEQ(FieldName, v))
}

// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldNEQ(FieldName, v))
}

// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldIn(FieldName, vs...))
}

// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldNotIn(FieldName, vs...))
}

// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldGT(FieldName, v))
}

// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldGTE(FieldName, v))
}

// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldLT(FieldName, v))
}

// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldLTE(FieldName, v))
}

// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldContains(FieldName, v))
}

// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldHasPrefix(FieldName, v))
}

// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldHasSuffix(FieldName, v))
}

// NameIsNil applies the IsNil predicate on the "name" field.
func NameIsNil() predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldIsNull(FieldName))
}

// NameNotNil applies the NotNil predicate on the "name" field.
func NameNotNil() predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldNotNull(FieldName))
}

// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldEqualFold(FieldName, v))
}

// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldContainsFold(FieldName, v))
}

// TimeEQ applies the EQ predicate on the "time" field.
func TimeEQ(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldEQ(FieldTime, v))
}

// TimeNEQ applies the NEQ predicate on the "time" field.
func TimeNEQ(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldNEQ(FieldTime, v))
}

// TimeIn applies the In predicate on the "time" field.
func TimeIn(vs ...string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldIn(FieldTime, vs...))
}

// TimeNotIn applies the NotIn predicate on the "time" field.
func TimeNotIn(vs ...string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldNotIn(FieldTime, vs...))
}

// TimeGT applies the GT predicate on the "time" field.
func TimeGT(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldGT(FieldTime, v))
}

// TimeGTE applies the GTE predicate on the "time" field.
func TimeGTE(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldGTE(FieldTime, v))
}

// TimeLT applies the LT predicate on the "time" field.
func TimeLT(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldLT(FieldTime, v))
}

// TimeLTE applies the LTE predicate on the "time" field.
func TimeLTE(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldLTE(FieldTime, v))
}

// TimeContains applies the Contains predicate on the "time" field.
func TimeContains(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldContains(FieldTime, v))
}

// TimeHasPrefix applies the HasPrefix predicate on the "time" field.
func TimeHasPrefix(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldHasPrefix(FieldTime, v))
}

// TimeHasSuffix applies the HasSuffix predicate on the "time" field.
func TimeHasSuffix(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldHasSuffix(FieldTime, v))
}

// TimeIsNil applies the IsNil predicate on the "time" field.
func TimeIsNil() predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldIsNull(FieldTime))
}

// TimeNotNil applies the NotNil predicate on the "time" field.
func TimeNotNil() predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldNotNull(FieldTime))
}

// TimeEqualFold applies the EqualFold predicate on the "time" field.
func TimeEqualFold(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldEqualFold(FieldTime, v))
}

// TimeContainsFold applies the ContainsFold predicate on the "time" field.
func TimeContainsFold(v string) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.FieldContainsFold(FieldTime, v))
}

// HasExecutionInfo applies the HasEdge predicate on the "execution_info" edge.
func HasExecutionInfo() predicate.TimingBreakdown {
	return predicate.TimingBreakdown(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.O2O, true, ExecutionInfoTable, ExecutionInfoColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasExecutionInfoWith applies the HasEdge predicate on the "execution_info" edge with a given conditions (other predicates).
func HasExecutionInfoWith(preds ...predicate.ExectionInfo) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(func(s *sql.Selector) {
		step := newExecutionInfoStep()
		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
			for _, p := range preds {
				p(s)
			}
		})
	})
}

// HasChild applies the HasEdge predicate on the "child" edge.
func HasChild() predicate.TimingBreakdown {
	return predicate.TimingBreakdown(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.O2M, false, ChildTable, ChildColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasChildWith applies the HasEdge predicate on the "child" edge with a given conditions (other predicates).
func HasChildWith(preds ...predicate.TimingChild) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(func(s *sql.Selector) {
		step := newChildStep()
		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
			for _, p := range preds {
				p(s)
			}
		})
	})
}

// And groups predicates with the AND operator between them.
func And(predicates ...predicate.TimingBreakdown) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.AndPredicates(predicates...))
}

// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.TimingBreakdown) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.OrPredicates(predicates...))
}

// Not applies the not operator on the given predicate.
func Not(p predicate.TimingBreakdown) predicate.TimingBreakdown {
	return predicate.TimingBreakdown(sql.NotPredicates(p))
}
