func Not(p predicate.MessageWithID) predicate.MessageWithID {
	return predicate.MessageWithID(func(s *sql.Selector) {
		p(s.Not())
	})
}
Not applies the not operator on the given predicate.
package messagewithid
import (
	"entgo.io/contrib/entproto/internal/entprototest/ent/predicate"
	"entgo.io/ent/dialect/sql"
)
func ID(id int32) predicate.MessageWithID {
	return predicate.MessageWithID(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDEQ(id int32) predicate.MessageWithID {
	return predicate.MessageWithID(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDNEQ(id int32) predicate.MessageWithID {
	return predicate.MessageWithID(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldID), id))
	})
}
func IDIn(ids ...int32) predicate.MessageWithID {
	return predicate.MessageWithID(func(s *sql.Selector) {
		if len(ids) == 0 {
			s.Where(sql.False())
			return
		}
		v := make([]interface{}, len(ids))
		for i := range v {
			v[i] = ids[i]
		}
		s.Where(sql.In(s.C(FieldID), v...))
	})
}
func IDNotIn(ids ...int32) predicate.MessageWithID {
	return predicate.MessageWithID(func(s *sql.Selector) {
		if len(ids) == 0 {
			s.Where(sql.False())
			return
		}
		v := make([]interface{}, len(ids))
		for i := range v {
			v[i] = ids[i]
		}
		s.Where(sql.NotIn(s.C(FieldID), v...))
	})
}
func IDGT(id int32) predicate.MessageWithID {
	return predicate.MessageWithID(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldID), id))
	})
}
func IDGTE(id int32) predicate.MessageWithID {
	return predicate.MessageWithID(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldID), id))
	})
}
func IDLT(id int32) predicate.MessageWithID {
	return predicate.MessageWithID(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldID), id))
	})
}
func IDLTE(id int32) predicate.MessageWithID {
	return predicate.MessageWithID(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldID), id))
	})
}
func And(predicates ...predicate.MessageWithID) predicate.MessageWithID {
	return predicate.MessageWithID(func(s *sql.Selector) {
		s1 := s.Clone().SetP(nil)
		for _, p := range predicates {
			p(s1)
		}
		s.Where(s1.P())
	})
}
func Or(predicates ...predicate.MessageWithID) predicate.MessageWithID {
	return predicate.MessageWithID(func(s *sql.Selector) {
		s1 := s.Clone().SetP(nil)
		for i, p := range predicates {
			if i > 0 {
				s1.Or()
			}
			p(s1)
		}
		s.Where(s1.P())
	})
}