[#350] v2/status/grpc: Implement field setters

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
support/v2.15
Leonard Lyubich 2021-10-04 15:37:36 +03:00 committed by LeL
parent 27798eaacb
commit 356b58a52c
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
package status
// SetId sets identifier of the Status_Detail.
func (x *Status_Detail) SetId(v uint32) {
if x != nil {
x.Id = v
}
}
// SetValue sets value of the Status_Detail.
func (x *Status_Detail) SetValue(v []byte) {
if x != nil {
x.Value = v
}
}
// SetCode sets code of the Status.
func (x *Status) SetCode(v uint32) {
if x != nil {
x.Code = v
}
}
// SetMessage sets message about the Status.
func (x *Status) SetMessage(v string) {
if x != nil {
x.Message = v
}
}
// SetDetails sets details of the Status.
func (x *Status) SetDetails(v []*Status_Detail) {
if x != nil {
x.Details = v
}
}