SetNillableDownloads sets the "downloads" field if the given value is not nil.
(i *int)
| 78 | |
| 79 | // SetNillableDownloads sets the "downloads" field if the given value is not nil. |
| 80 | func (dlu *DirectLinkUpdate) SetNillableDownloads(i *int) *DirectLinkUpdate { |
| 81 | if i != nil { |
| 82 | dlu.SetDownloads(*i) |
| 83 | } |
| 84 | return dlu |
| 85 | } |
| 86 | |
| 87 | // AddDownloads adds i to the "downloads" field. |
| 88 | func (dlu *DirectLinkUpdate) AddDownloads(i int) *DirectLinkUpdate { |
nothing calls this directly
no test coverage detected