SetNillableType sets the "type" field if the given value is not nil.
(n *node.Type)
| 93 | |
| 94 | // SetNillableType sets the "type" field if the given value is not nil. |
| 95 | func (nu *NodeUpdate) SetNillableType(n *node.Type) *NodeUpdate { |
| 96 | if n != nil { |
| 97 | nu.SetType(*n) |
| 98 | } |
| 99 | return nu |
| 100 | } |
| 101 | |
| 102 | // SetServer sets the "server" field. |
| 103 | func (nu *NodeUpdate) SetServer(s string) *NodeUpdate { |