forked from TrueCloudLab/frostfs-api-go
732dd51b1b
I knew one day `sed` would save me an hour of manual work: ``` sed -i -n -e ' s/) Set/) Set/ p t setter b end :setter n s/nil/nil/ t hasif p b end :hasif n :loop p n s/}/}/ t end b loop :end ' $@ goimports -w $@ ``` Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
26 lines
524 B
Go
26 lines
524 B
Go
package status
|
|
|
|
// SetId sets identifier of the Status_Detail.
|
|
func (x *Status_Detail) SetId(v uint32) {
|
|
x.Id = v
|
|
}
|
|
|
|
// SetValue sets value of the Status_Detail.
|
|
func (x *Status_Detail) SetValue(v []byte) {
|
|
x.Value = v
|
|
}
|
|
|
|
// SetCode sets code of the Status.
|
|
func (x *Status) SetCode(v uint32) {
|
|
x.Code = v
|
|
}
|
|
|
|
// SetMessage sets message about the Status.
|
|
func (x *Status) SetMessage(v string) {
|
|
x.Message = v
|
|
}
|
|
|
|
// SetDetails sets details of the Status.
|
|
func (x *Status) SetDetails(v []*Status_Detail) {
|
|
x.Details = v
|
|
}
|