func (nec *NilExampleCreate) SetNillableStrNil(s *string) *NilExampleCreate {
	if s != nil {
		nec.SetStrNil(*s)
	}
	return nec
}
SetNillableStrNil sets the "str_nil" field if the given value is not nil.
package ent
import (
	"context"
	"fmt"
	"time"
	"entgo.io/contrib/entproto/internal/todo/ent/nilexample"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"entgo.io/ent/schema/field"
)
type NilExampleCreate struct {
	config
	mutation *NilExampleMutation
	hooks    []Hook
}
func (nec *NilExampleCreate) SetStrNil(s string) *NilExampleCreate {
	nec.mutation.SetStrNil(s)
	return nec
}