func (mwou *MessageWithOptionalsUpdate) SetNillableStrOptional(s *string) *MessageWithOptionalsUpdate {
	if s != nil {
		mwou.SetStrOptional(*s)
	}
	return mwou
}
SetNillableStrOptional sets the "str_optional" field if the given value is not nil.
package ent
import (
	"context"
	"fmt"
	"time"
	"entgo.io/contrib/entproto/internal/entprototest/ent/messagewithoptionals"
	"entgo.io/contrib/entproto/internal/entprototest/ent/predicate"
	"entgo.io/ent/dialect/sql"
	"entgo.io/ent/dialect/sql/sqlgraph"
	"entgo.io/ent/schema/field"
	"github.com/google/uuid"
)
type MessageWithOptionalsUpdate struct {
	config
	hooks    []Hook
	mutation *MessageWithOptionalsMutation
}
func (mwou *MessageWithOptionalsUpdate) Where(ps ...predicate.MessageWithOptionals) *MessageWithOptionalsUpdate {
	mwou.mutation.Where(ps...)
	return mwou
}
func (mwou *MessageWithOptionalsUpdate) SetStrOptional(s string) *MessageWithOptionalsUpdate {
	mwou.mutation.SetStrOptional(s)
	return mwou
}