func HasAuthorWith(preds ...predicate.User) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.To(AuthorInverseTable, FieldID),
			sqlgraph.Edge(sqlgraph.M2O, false, AuthorTable, AuthorColumn),
		)
		sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
			for _, p := range preds {
				p(s)
			}
		})
	})
}
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
package blogpost
import (
	"entgo.io/contrib/entproto/internal/entprototest/ent/predicate"
	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
)
func ID(id int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDEQ(id int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldID), id))
	})
}
func IDNEQ(id int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldID), id))
	})
}
func IDIn(ids ...int) predicate.BlogPost {
	return predicate.BlogPost(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.BlogPost {
	return predicate.BlogPost(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.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldID), id))
	})
}
func IDGTE(id int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldID), id))
	})
}
func IDLT(id int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldID), id))
	})
}
func IDLTE(id int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldID), id))
	})
}
func Title(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldTitle), v))
	})
}
func Body(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldBody), v))
	})
}
func ExternalID(v int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldExternalID), v))
	})
}
func TitleEQ(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldTitle), v))
	})
}
func TitleNEQ(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldTitle), v))
	})
}
func TitleIn(vs ...string) predicate.BlogPost {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.BlogPost(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.In(s.C(FieldTitle), v...))
	})
}
func TitleNotIn(vs ...string) predicate.BlogPost {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.BlogPost(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.NotIn(s.C(FieldTitle), v...))
	})
}
func TitleGT(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldTitle), v))
	})
}
func TitleGTE(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldTitle), v))
	})
}
func TitleLT(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldTitle), v))
	})
}
func TitleLTE(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldTitle), v))
	})
}
func TitleContains(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.Contains(s.C(FieldTitle), v))
	})
}
func TitleHasPrefix(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.HasPrefix(s.C(FieldTitle), v))
	})
}
func TitleHasSuffix(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.HasSuffix(s.C(FieldTitle), v))
	})
}
func TitleEqualFold(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.EqualFold(s.C(FieldTitle), v))
	})
}
func TitleContainsFold(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.ContainsFold(s.C(FieldTitle), v))
	})
}
func BodyEQ(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldBody), v))
	})
}
func BodyNEQ(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldBody), v))
	})
}
func BodyIn(vs ...string) predicate.BlogPost {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.BlogPost(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.In(s.C(FieldBody), v...))
	})
}
func BodyNotIn(vs ...string) predicate.BlogPost {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.BlogPost(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.NotIn(s.C(FieldBody), v...))
	})
}
func BodyGT(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldBody), v))
	})
}
func BodyGTE(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldBody), v))
	})
}
func BodyLT(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldBody), v))
	})
}
func BodyLTE(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldBody), v))
	})
}
func BodyContains(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.Contains(s.C(FieldBody), v))
	})
}
func BodyHasPrefix(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.HasPrefix(s.C(FieldBody), v))
	})
}
func BodyHasSuffix(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.HasSuffix(s.C(FieldBody), v))
	})
}
func BodyEqualFold(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.EqualFold(s.C(FieldBody), v))
	})
}
func BodyContainsFold(v string) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.ContainsFold(s.C(FieldBody), v))
	})
}
func ExternalIDEQ(v int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.EQ(s.C(FieldExternalID), v))
	})
}
func ExternalIDNEQ(v int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.NEQ(s.C(FieldExternalID), v))
	})
}
func ExternalIDIn(vs ...int) predicate.BlogPost {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.BlogPost(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.In(s.C(FieldExternalID), v...))
	})
}
func ExternalIDNotIn(vs ...int) predicate.BlogPost {
	v := make([]interface{}, len(vs))
	for i := range v {
		v[i] = vs[i]
	}
	return predicate.BlogPost(func(s *sql.Selector) {
		if len(v) == 0 {
			s.Where(sql.False())
			return
		}
		s.Where(sql.NotIn(s.C(FieldExternalID), v...))
	})
}
func ExternalIDGT(v int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.GT(s.C(FieldExternalID), v))
	})
}
func ExternalIDGTE(v int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.GTE(s.C(FieldExternalID), v))
	})
}
func ExternalIDLT(v int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.LT(s.C(FieldExternalID), v))
	})
}
func ExternalIDLTE(v int) predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		s.Where(sql.LTE(s.C(FieldExternalID), v))
	})
}
func HasAuthor() predicate.BlogPost {
	return predicate.BlogPost(func(s *sql.Selector) {
		step := sqlgraph.NewStep(
			sqlgraph.From(Table, FieldID),
			sqlgraph.To(AuthorTable, FieldID),
			sqlgraph.Edge(sqlgraph.M2O, false, AuthorTable, AuthorColumn),
		)
		sqlgraph.HasNeighbors(s, step)
	})
}