From 356b58a52c8ab1f3d50e780a22b6e3c78c5b5073 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 4 Oct 2021 15:37:36 +0300 Subject: [PATCH] [#350] v2/status/grpc: Implement field setters Signed-off-by: Leonard Lyubich --- v2/status/grpc/types.go | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 v2/status/grpc/types.go diff --git a/v2/status/grpc/types.go b/v2/status/grpc/types.go new file mode 100644 index 0000000..eea2c82 --- /dev/null +++ b/v2/status/grpc/types.go @@ -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 + } +}