func (neu *NilExampleUpdate) SetNillableStrNil(s *string) *NilExampleUpdate {
	if s != nil {
		neu.SetStrNil(*s)
	}
	return neu
}
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/contrib/entproto/internal/todo/ent/predicate"
	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"entgo.io/ent/schema/field"
)
type NilExampleUpdate struct {
	config
	hooks    []Hook
	mutation *NilExampleMutation
}
func (neu *NilExampleUpdate) Where(ps ...predicate.NilExample) *NilExampleUpdate {
	neu.mutation.Where(ps...)
	return neu
}
func (neu *NilExampleUpdate) SetStrNil(s string) *NilExampleUpdate {
	neu.mutation.SetStrNil(s)
	return neu
}