// Code generated by ent, DO NOT EDIT.

package systemnetworkstats

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.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldID, id))
}

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

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

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

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

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

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

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

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

// BytesSent applies equality check predicate on the "bytes_sent" field. It's identical to BytesSentEQ.
func BytesSent(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldBytesSent, v))
}

// BytesRecv applies equality check predicate on the "bytes_recv" field. It's identical to BytesRecvEQ.
func BytesRecv(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldBytesRecv, v))
}

// PacketsSent applies equality check predicate on the "packets_sent" field. It's identical to PacketsSentEQ.
func PacketsSent(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldPacketsSent, v))
}

// PacketsRecv applies equality check predicate on the "packets_recv" field. It's identical to PacketsRecvEQ.
func PacketsRecv(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldPacketsRecv, v))
}

// PeakBytesSentPerSec applies equality check predicate on the "peak_bytes_sent_per_sec" field. It's identical to PeakBytesSentPerSecEQ.
func PeakBytesSentPerSec(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldPeakBytesSentPerSec, v))
}

// PeakBytesRecvPerSec applies equality check predicate on the "peak_bytes_recv_per_sec" field. It's identical to PeakBytesRecvPerSecEQ.
func PeakBytesRecvPerSec(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldPeakBytesRecvPerSec, v))
}

// PeakPacketsSentPerSec applies equality check predicate on the "peak_packets_sent_per_sec" field. It's identical to PeakPacketsSentPerSecEQ.
func PeakPacketsSentPerSec(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldPeakPacketsSentPerSec, v))
}

// PeakPacketsRecvPerSec applies equality check predicate on the "peak_packets_recv_per_sec" field. It's identical to PeakPacketsRecvPerSecEQ.
func PeakPacketsRecvPerSec(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldPeakPacketsRecvPerSec, v))
}

// BytesSentEQ applies the EQ predicate on the "bytes_sent" field.
func BytesSentEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldBytesSent, v))
}

// BytesSentNEQ applies the NEQ predicate on the "bytes_sent" field.
func BytesSentNEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNEQ(FieldBytesSent, v))
}

// BytesSentIn applies the In predicate on the "bytes_sent" field.
func BytesSentIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIn(FieldBytesSent, vs...))
}

// BytesSentNotIn applies the NotIn predicate on the "bytes_sent" field.
func BytesSentNotIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotIn(FieldBytesSent, vs...))
}

// BytesSentGT applies the GT predicate on the "bytes_sent" field.
func BytesSentGT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGT(FieldBytesSent, v))
}

// BytesSentGTE applies the GTE predicate on the "bytes_sent" field.
func BytesSentGTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGTE(FieldBytesSent, v))
}

// BytesSentLT applies the LT predicate on the "bytes_sent" field.
func BytesSentLT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLT(FieldBytesSent, v))
}

// BytesSentLTE applies the LTE predicate on the "bytes_sent" field.
func BytesSentLTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLTE(FieldBytesSent, v))
}

// BytesSentIsNil applies the IsNil predicate on the "bytes_sent" field.
func BytesSentIsNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIsNull(FieldBytesSent))
}

// BytesSentNotNil applies the NotNil predicate on the "bytes_sent" field.
func BytesSentNotNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotNull(FieldBytesSent))
}

// BytesRecvEQ applies the EQ predicate on the "bytes_recv" field.
func BytesRecvEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldBytesRecv, v))
}

// BytesRecvNEQ applies the NEQ predicate on the "bytes_recv" field.
func BytesRecvNEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNEQ(FieldBytesRecv, v))
}

// BytesRecvIn applies the In predicate on the "bytes_recv" field.
func BytesRecvIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIn(FieldBytesRecv, vs...))
}

// BytesRecvNotIn applies the NotIn predicate on the "bytes_recv" field.
func BytesRecvNotIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotIn(FieldBytesRecv, vs...))
}

// BytesRecvGT applies the GT predicate on the "bytes_recv" field.
func BytesRecvGT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGT(FieldBytesRecv, v))
}

// BytesRecvGTE applies the GTE predicate on the "bytes_recv" field.
func BytesRecvGTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGTE(FieldBytesRecv, v))
}

// BytesRecvLT applies the LT predicate on the "bytes_recv" field.
func BytesRecvLT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLT(FieldBytesRecv, v))
}

// BytesRecvLTE applies the LTE predicate on the "bytes_recv" field.
func BytesRecvLTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLTE(FieldBytesRecv, v))
}

// BytesRecvIsNil applies the IsNil predicate on the "bytes_recv" field.
func BytesRecvIsNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIsNull(FieldBytesRecv))
}

// BytesRecvNotNil applies the NotNil predicate on the "bytes_recv" field.
func BytesRecvNotNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotNull(FieldBytesRecv))
}

// PacketsSentEQ applies the EQ predicate on the "packets_sent" field.
func PacketsSentEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldPacketsSent, v))
}

// PacketsSentNEQ applies the NEQ predicate on the "packets_sent" field.
func PacketsSentNEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNEQ(FieldPacketsSent, v))
}

// PacketsSentIn applies the In predicate on the "packets_sent" field.
func PacketsSentIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIn(FieldPacketsSent, vs...))
}

// PacketsSentNotIn applies the NotIn predicate on the "packets_sent" field.
func PacketsSentNotIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotIn(FieldPacketsSent, vs...))
}

// PacketsSentGT applies the GT predicate on the "packets_sent" field.
func PacketsSentGT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGT(FieldPacketsSent, v))
}

// PacketsSentGTE applies the GTE predicate on the "packets_sent" field.
func PacketsSentGTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGTE(FieldPacketsSent, v))
}

// PacketsSentLT applies the LT predicate on the "packets_sent" field.
func PacketsSentLT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLT(FieldPacketsSent, v))
}

// PacketsSentLTE applies the LTE predicate on the "packets_sent" field.
func PacketsSentLTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLTE(FieldPacketsSent, v))
}

// PacketsSentIsNil applies the IsNil predicate on the "packets_sent" field.
func PacketsSentIsNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIsNull(FieldPacketsSent))
}

// PacketsSentNotNil applies the NotNil predicate on the "packets_sent" field.
func PacketsSentNotNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotNull(FieldPacketsSent))
}

// PacketsRecvEQ applies the EQ predicate on the "packets_recv" field.
func PacketsRecvEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldPacketsRecv, v))
}

// PacketsRecvNEQ applies the NEQ predicate on the "packets_recv" field.
func PacketsRecvNEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNEQ(FieldPacketsRecv, v))
}

// PacketsRecvIn applies the In predicate on the "packets_recv" field.
func PacketsRecvIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIn(FieldPacketsRecv, vs...))
}

// PacketsRecvNotIn applies the NotIn predicate on the "packets_recv" field.
func PacketsRecvNotIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotIn(FieldPacketsRecv, vs...))
}

// PacketsRecvGT applies the GT predicate on the "packets_recv" field.
func PacketsRecvGT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGT(FieldPacketsRecv, v))
}

// PacketsRecvGTE applies the GTE predicate on the "packets_recv" field.
func PacketsRecvGTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGTE(FieldPacketsRecv, v))
}

// PacketsRecvLT applies the LT predicate on the "packets_recv" field.
func PacketsRecvLT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLT(FieldPacketsRecv, v))
}

// PacketsRecvLTE applies the LTE predicate on the "packets_recv" field.
func PacketsRecvLTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLTE(FieldPacketsRecv, v))
}

// PacketsRecvIsNil applies the IsNil predicate on the "packets_recv" field.
func PacketsRecvIsNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIsNull(FieldPacketsRecv))
}

// PacketsRecvNotNil applies the NotNil predicate on the "packets_recv" field.
func PacketsRecvNotNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotNull(FieldPacketsRecv))
}

// PeakBytesSentPerSecEQ applies the EQ predicate on the "peak_bytes_sent_per_sec" field.
func PeakBytesSentPerSecEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldPeakBytesSentPerSec, v))
}

// PeakBytesSentPerSecNEQ applies the NEQ predicate on the "peak_bytes_sent_per_sec" field.
func PeakBytesSentPerSecNEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNEQ(FieldPeakBytesSentPerSec, v))
}

// PeakBytesSentPerSecIn applies the In predicate on the "peak_bytes_sent_per_sec" field.
func PeakBytesSentPerSecIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIn(FieldPeakBytesSentPerSec, vs...))
}

// PeakBytesSentPerSecNotIn applies the NotIn predicate on the "peak_bytes_sent_per_sec" field.
func PeakBytesSentPerSecNotIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotIn(FieldPeakBytesSentPerSec, vs...))
}

// PeakBytesSentPerSecGT applies the GT predicate on the "peak_bytes_sent_per_sec" field.
func PeakBytesSentPerSecGT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGT(FieldPeakBytesSentPerSec, v))
}

// PeakBytesSentPerSecGTE applies the GTE predicate on the "peak_bytes_sent_per_sec" field.
func PeakBytesSentPerSecGTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGTE(FieldPeakBytesSentPerSec, v))
}

// PeakBytesSentPerSecLT applies the LT predicate on the "peak_bytes_sent_per_sec" field.
func PeakBytesSentPerSecLT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLT(FieldPeakBytesSentPerSec, v))
}

// PeakBytesSentPerSecLTE applies the LTE predicate on the "peak_bytes_sent_per_sec" field.
func PeakBytesSentPerSecLTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLTE(FieldPeakBytesSentPerSec, v))
}

// PeakBytesSentPerSecIsNil applies the IsNil predicate on the "peak_bytes_sent_per_sec" field.
func PeakBytesSentPerSecIsNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIsNull(FieldPeakBytesSentPerSec))
}

// PeakBytesSentPerSecNotNil applies the NotNil predicate on the "peak_bytes_sent_per_sec" field.
func PeakBytesSentPerSecNotNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotNull(FieldPeakBytesSentPerSec))
}

// PeakBytesRecvPerSecEQ applies the EQ predicate on the "peak_bytes_recv_per_sec" field.
func PeakBytesRecvPerSecEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldPeakBytesRecvPerSec, v))
}

// PeakBytesRecvPerSecNEQ applies the NEQ predicate on the "peak_bytes_recv_per_sec" field.
func PeakBytesRecvPerSecNEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNEQ(FieldPeakBytesRecvPerSec, v))
}

// PeakBytesRecvPerSecIn applies the In predicate on the "peak_bytes_recv_per_sec" field.
func PeakBytesRecvPerSecIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIn(FieldPeakBytesRecvPerSec, vs...))
}

// PeakBytesRecvPerSecNotIn applies the NotIn predicate on the "peak_bytes_recv_per_sec" field.
func PeakBytesRecvPerSecNotIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotIn(FieldPeakBytesRecvPerSec, vs...))
}

// PeakBytesRecvPerSecGT applies the GT predicate on the "peak_bytes_recv_per_sec" field.
func PeakBytesRecvPerSecGT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGT(FieldPeakBytesRecvPerSec, v))
}

// PeakBytesRecvPerSecGTE applies the GTE predicate on the "peak_bytes_recv_per_sec" field.
func PeakBytesRecvPerSecGTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGTE(FieldPeakBytesRecvPerSec, v))
}

// PeakBytesRecvPerSecLT applies the LT predicate on the "peak_bytes_recv_per_sec" field.
func PeakBytesRecvPerSecLT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLT(FieldPeakBytesRecvPerSec, v))
}

// PeakBytesRecvPerSecLTE applies the LTE predicate on the "peak_bytes_recv_per_sec" field.
func PeakBytesRecvPerSecLTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLTE(FieldPeakBytesRecvPerSec, v))
}

// PeakBytesRecvPerSecIsNil applies the IsNil predicate on the "peak_bytes_recv_per_sec" field.
func PeakBytesRecvPerSecIsNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIsNull(FieldPeakBytesRecvPerSec))
}

// PeakBytesRecvPerSecNotNil applies the NotNil predicate on the "peak_bytes_recv_per_sec" field.
func PeakBytesRecvPerSecNotNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotNull(FieldPeakBytesRecvPerSec))
}

// PeakPacketsSentPerSecEQ applies the EQ predicate on the "peak_packets_sent_per_sec" field.
func PeakPacketsSentPerSecEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldPeakPacketsSentPerSec, v))
}

// PeakPacketsSentPerSecNEQ applies the NEQ predicate on the "peak_packets_sent_per_sec" field.
func PeakPacketsSentPerSecNEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNEQ(FieldPeakPacketsSentPerSec, v))
}

// PeakPacketsSentPerSecIn applies the In predicate on the "peak_packets_sent_per_sec" field.
func PeakPacketsSentPerSecIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIn(FieldPeakPacketsSentPerSec, vs...))
}

// PeakPacketsSentPerSecNotIn applies the NotIn predicate on the "peak_packets_sent_per_sec" field.
func PeakPacketsSentPerSecNotIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotIn(FieldPeakPacketsSentPerSec, vs...))
}

// PeakPacketsSentPerSecGT applies the GT predicate on the "peak_packets_sent_per_sec" field.
func PeakPacketsSentPerSecGT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGT(FieldPeakPacketsSentPerSec, v))
}

// PeakPacketsSentPerSecGTE applies the GTE predicate on the "peak_packets_sent_per_sec" field.
func PeakPacketsSentPerSecGTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGTE(FieldPeakPacketsSentPerSec, v))
}

// PeakPacketsSentPerSecLT applies the LT predicate on the "peak_packets_sent_per_sec" field.
func PeakPacketsSentPerSecLT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLT(FieldPeakPacketsSentPerSec, v))
}

// PeakPacketsSentPerSecLTE applies the LTE predicate on the "peak_packets_sent_per_sec" field.
func PeakPacketsSentPerSecLTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLTE(FieldPeakPacketsSentPerSec, v))
}

// PeakPacketsSentPerSecIsNil applies the IsNil predicate on the "peak_packets_sent_per_sec" field.
func PeakPacketsSentPerSecIsNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIsNull(FieldPeakPacketsSentPerSec))
}

// PeakPacketsSentPerSecNotNil applies the NotNil predicate on the "peak_packets_sent_per_sec" field.
func PeakPacketsSentPerSecNotNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotNull(FieldPeakPacketsSentPerSec))
}

// PeakPacketsRecvPerSecEQ applies the EQ predicate on the "peak_packets_recv_per_sec" field.
func PeakPacketsRecvPerSecEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldEQ(FieldPeakPacketsRecvPerSec, v))
}

// PeakPacketsRecvPerSecNEQ applies the NEQ predicate on the "peak_packets_recv_per_sec" field.
func PeakPacketsRecvPerSecNEQ(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNEQ(FieldPeakPacketsRecvPerSec, v))
}

// PeakPacketsRecvPerSecIn applies the In predicate on the "peak_packets_recv_per_sec" field.
func PeakPacketsRecvPerSecIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIn(FieldPeakPacketsRecvPerSec, vs...))
}

// PeakPacketsRecvPerSecNotIn applies the NotIn predicate on the "peak_packets_recv_per_sec" field.
func PeakPacketsRecvPerSecNotIn(vs ...uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotIn(FieldPeakPacketsRecvPerSec, vs...))
}

// PeakPacketsRecvPerSecGT applies the GT predicate on the "peak_packets_recv_per_sec" field.
func PeakPacketsRecvPerSecGT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGT(FieldPeakPacketsRecvPerSec, v))
}

// PeakPacketsRecvPerSecGTE applies the GTE predicate on the "peak_packets_recv_per_sec" field.
func PeakPacketsRecvPerSecGTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldGTE(FieldPeakPacketsRecvPerSec, v))
}

// PeakPacketsRecvPerSecLT applies the LT predicate on the "peak_packets_recv_per_sec" field.
func PeakPacketsRecvPerSecLT(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLT(FieldPeakPacketsRecvPerSec, v))
}

// PeakPacketsRecvPerSecLTE applies the LTE predicate on the "peak_packets_recv_per_sec" field.
func PeakPacketsRecvPerSecLTE(v uint64) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldLTE(FieldPeakPacketsRecvPerSec, v))
}

// PeakPacketsRecvPerSecIsNil applies the IsNil predicate on the "peak_packets_recv_per_sec" field.
func PeakPacketsRecvPerSecIsNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldIsNull(FieldPeakPacketsRecvPerSec))
}

// PeakPacketsRecvPerSecNotNil applies the NotNil predicate on the "peak_packets_recv_per_sec" field.
func PeakPacketsRecvPerSecNotNil() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.FieldNotNull(FieldPeakPacketsRecvPerSec))
}

// HasNetworkMetrics applies the HasEdge predicate on the "network_metrics" edge.
func HasNetworkMetrics() predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.Edge(sqlgraph.O2O, true, NetworkMetricsTable, NetworkMetricsColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}

// HasNetworkMetricsWith applies the HasEdge predicate on the "network_metrics" edge with a given conditions (other predicates).
func HasNetworkMetricsWith(preds ...predicate.NetworkMetrics) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(func(s *sql.Selector) {
		step := newNetworkMetricsStep()
		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.SystemNetworkStats) predicate.SystemNetworkStats {
	return predicate.SystemNetworkStats(sql.AndPredicates(predicates...))
}

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

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