func (tc *TodoCreate) SetNillableSecretID(id *pulid.ID) *TodoCreate {
	if id != nil {
		tc = tc.SetSecretID(*id)
	}
	return tc
}
SetNillableSecretID sets the "secret" edge to the VerySecret entity by ID if the given value is not nil.
package ent
import (
	"context"
	"errors"
	"fmt"
	"time"
	"entgo.io/contrib/entgql/internal/todopulid/ent/category"
	"entgo.io/contrib/entgql/internal/todopulid/ent/schema/pulid"
	"entgo.io/contrib/entgql/internal/todopulid/ent/todo"
	"entgo.io/contrib/entgql/internal/todopulid/ent/verysecret"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"entgo.io/ent/schema/field"
)
type TodoCreate struct {
	config
	mutation *TodoMutation
	hooks    []Hook
}
func (tc *TodoCreate) SetCreatedAt(t time.Time) *TodoCreate {
	tc.mutation.SetCreatedAt(t)
	return tc
}
func (tc *TodoCreate) SetNillableCreatedAt(t *time.Time) *TodoCreate {
	if t != nil {
		tc.SetCreatedAt(*t)
	}
	return tc
}
func (tc *TodoCreate) SetStatus(t todo.Status) *TodoCreate {
	tc.mutation.SetStatus(t)
	return tc
}
func (tc *TodoCreate) SetPriority(i int) *TodoCreate {
	tc.mutation.SetPriority(i)
	return tc
}
func (tc *TodoCreate) SetNillablePriority(i *int) *TodoCreate {
	if i != nil {
		tc.SetPriority(*i)
	}
	return tc
}
func (tc *TodoCreate) SetText(s string) *TodoCreate {
	tc.mutation.SetText(s)
	return tc
}
func (tc *TodoCreate) SetBlob(b []byte) *TodoCreate {
	tc.mutation.SetBlob(b)
	return tc
}
func (tc *TodoCreate) SetID(pu pulid.ID) *TodoCreate {
	tc.mutation.SetID(pu)
	return tc
}
func (tc *TodoCreate) SetNillableID(pu *pulid.ID) *TodoCreate {
	if pu != nil {
		tc.SetID(*pu)
	}
	return tc
}
func (tc *TodoCreate) SetParentID(id pulid.ID) *TodoCreate {
	tc.mutation.SetParentID(id)
	return tc
}
func (tc *TodoCreate) SetNillableParentID(id *pulid.ID) *TodoCreate {
	if id != nil {
		tc = tc.SetParentID(*id)
	}
	return tc
}
func (tc *TodoCreate) SetParent(t *Todo) *TodoCreate {
	return tc.SetParentID(t.ID)
}
func (tc *TodoCreate) AddChildIDs(ids ...pulid.ID) *TodoCreate {
	tc.mutation.AddChildIDs(ids...)
	return tc
}
func (tc *TodoCreate) AddChildren(t ...*Todo) *TodoCreate {
	ids := make([]pulid.ID, len(t))
	for i := range t {
		ids[i] = t[i].ID
	}
	return tc.AddChildIDs(ids...)
}
func (tc *TodoCreate) SetCategoryID(id pulid.ID) *TodoCreate {
	tc.mutation.SetCategoryID(id)
	return tc
}
func (tc *TodoCreate) SetNillableCategoryID(id *pulid.ID) *TodoCreate {
	if id != nil {
		tc = tc.SetCategoryID(*id)
	}
	return tc
}
func (tc *TodoCreate) SetCategory(c *Category) *TodoCreate {
	return tc.SetCategoryID(c.ID)
}
func (tc *TodoCreate) SetSecretID(id pulid.ID) *TodoCreate {
	tc.mutation.SetSecretID(id)
	return tc
}