func IntOptionalLTE(v int8) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldIntOptional), v))
	})
}
IntOptionalLTE applies the LTE predicate on the "int_optional" field.
package messagewithoptionals
import (
	"time"
	"entgo.io/contrib/entproto/internal/entprototest/ent/predicate"
	"entgo.io/ent/dialect/sql"
	"github.com/google/uuid"
)
func ID(id int) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDEQ(id int) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDNEQ(id int) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldID), id))
	})
}
func IDIn(ids ...int) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(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.MessageWithOptionals {
	return predicate.MessageWithOptionals(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.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldID), id))
	})
}
func IDGTE(id int) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldID), id))
	})
}
func IDLT(id int) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldID), id))
	})
}
func IDLTE(id int) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldID), id))
	})
}
func StrOptional(v string) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldStrOptional), v))
	})
}
func IntOptional(v int8) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldIntOptional), v))
	})
}
func UintOptional(v uint8) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldUintOptional), v))
	})
}
func FloatOptional(v float32) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldFloatOptional), v))
	})
}
func BoolOptional(v bool) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldBoolOptional), v))
	})
}
func BytesOptional(v []byte) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldBytesOptional), v))
	})
}
func UUIDOptional(v uuid.UUID) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldUUIDOptional), v))
	})
}
func TimeOptional(v time.Time) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldTimeOptional), v))
	})
}
func StrOptionalEQ(v string) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldStrOptional), v))
	})
}
func StrOptionalNEQ(v string) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldStrOptional), v))
	})
}
func StrOptionalIn(vs ...string) predicate.MessageWithOptionals {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.In(s.C(FieldStrOptional), v...))
	})
}
func StrOptionalNotIn(vs ...string) predicate.MessageWithOptionals {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.NotIn(s.C(FieldStrOptional), v...))
	})
}
func StrOptionalGT(v string) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldStrOptional), v))
	})
}
func StrOptionalGTE(v string) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldStrOptional), v))
	})
}
func StrOptionalLT(v string) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldStrOptional), v))
	})
}
func StrOptionalLTE(v string) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldStrOptional), v))
	})
}
func StrOptionalContains(v string) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.Contains(s.C(FieldStrOptional), v))
	})
}
func StrOptionalHasPrefix(v string) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.HasPrefix(s.C(FieldStrOptional), v))
	})
}
func StrOptionalHasSuffix(v string) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.HasSuffix(s.C(FieldStrOptional), v))
	})
}
func StrOptionalIsNil() predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.IsNull(s.C(FieldStrOptional)))
	})
}
func StrOptionalNotNil() predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.NotNull(s.C(FieldStrOptional)))
	})
}
func StrOptionalEqualFold(v string) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EqualFold(s.C(FieldStrOptional), v))
	})
}
func StrOptionalContainsFold(v string) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.ContainsFold(s.C(FieldStrOptional), v))
	})
}
func IntOptionalEQ(v int8) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldIntOptional), v))
	})
}
func IntOptionalNEQ(v int8) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldIntOptional), v))
	})
}
func IntOptionalIn(vs ...int8) predicate.MessageWithOptionals {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.In(s.C(FieldIntOptional), v...))
	})
}
func IntOptionalNotIn(vs ...int8) predicate.MessageWithOptionals {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.NotIn(s.C(FieldIntOptional), v...))
	})
}
func IntOptionalGT(v int8) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldIntOptional), v))
	})
}
func IntOptionalGTE(v int8) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldIntOptional), v))
	})
}
func IntOptionalLT(v int8) predicate.MessageWithOptionals {
	return predicate.MessageWithOptionals(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldIntOptional), v))
	})
}