func NameHasSuffix(v string) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.HasSuffix(s.C(FieldName), v))
	})
}
NameHasSuffix applies the HasSuffix predicate on the "name" field.
package validmessage
import (
	"time"
	"entgo.io/contrib/entproto/internal/entprototest/ent/predicate"
	"entgo.io/ent/dialect/sql"
	"github.com/google/uuid"
)
func ID(id int) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDEQ(id int) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDNEQ(id int) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldID), id))
	})
}
func IDIn(ids ...int) predicate.ValidMessage {
	return predicate.ValidMessage(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.ValidMessage {
	return predicate.ValidMessage(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.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldID), id))
	})
}
func IDGTE(id int) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldID), id))
	})
}
func IDLT(id int) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldID), id))
	})
}
func IDLTE(id int) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldID), id))
	})
}
func Name(v string) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldName), v))
	})
}
func Ts(v time.Time) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldTs), v))
	})
}
func UUID(v uuid.UUID) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldUUID), v))
	})
}
func U8(v uint8) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldU8), v))
	})
}
func Opti8(v int8) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldOpti8), v))
	})
}
func NameEQ(v string) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldName), v))
	})
}
func NameNEQ(v string) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldName), v))
	})
}
func NameIn(vs ...string) predicate.ValidMessage {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.ValidMessage(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.In(s.C(FieldName), v...))
	})
}
func NameNotIn(vs ...string) predicate.ValidMessage {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.ValidMessage(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.NotIn(s.C(FieldName), v...))
	})
}
func NameGT(v string) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldName), v))
	})
}
func NameGTE(v string) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldName), v))
	})
}
func NameLT(v string) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldName), v))
	})
}
func NameLTE(v string) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldName), v))
	})
}
func NameContains(v string) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.Contains(s.C(FieldName), v))
	})
}
func NameHasPrefix(v string) predicate.ValidMessage {
	return predicate.ValidMessage(func(s *sql.Selector) {
		s.Where(sql.HasPrefix(s.C(FieldName), v))
	})
}