func And(predicates ...predicate.MessageWithFieldOne) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s1 := s.Clone().SetP(nil)
		for _, p := range predicates {
			p(s1)
		}
		s.Where(s1.P())
	})
}
And groups predicates with the AND operator between them.
package messagewithfieldone
import (
	"entgo.io/contrib/entproto/internal/entprototest/ent/predicate"
	"entgo.io/ent/dialect/sql"
)
func ID(id int) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDEQ(id int) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDNEQ(id int) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldID), id))
	})
}
func IDIn(ids ...int) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(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 ...int) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(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 int) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldID), id))
	})
}
func IDGTE(id int) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldID), id))
	})
}
func IDLT(id int) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldID), id))
	})
}
func IDLTE(id int) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldID), id))
	})
}
func FieldOne(v int32) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldFieldOne), v))
	})
}
func FieldOneEQ(v int32) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldFieldOne), v))
	})
}
func FieldOneNEQ(v int32) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldFieldOne), v))
	})
}
func FieldOneIn(vs ...int32) predicate.MessageWithFieldOne {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.In(s.C(FieldFieldOne), v...))
	})
}
func FieldOneNotIn(vs ...int32) predicate.MessageWithFieldOne {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.NotIn(s.C(FieldFieldOne), v...))
	})
}
func FieldOneGT(v int32) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldFieldOne), v))
	})
}
func FieldOneGTE(v int32) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldFieldOne), v))
	})
}
func FieldOneLT(v int32) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldFieldOne), v))
	})
}
func FieldOneLTE(v int32) predicate.MessageWithFieldOne {
	return predicate.MessageWithFieldOne(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldFieldOne), v))
	})
}