From dac997b8c303beeff46b85bcdf9124aa2e764bcb Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 24 May 2021 21:14:35 +0300 Subject: [PATCH] [#283] v2/container/grpc: Implement setters of new fields Implement `SetSessionToken` / `SetSignature` setters on `GetResponse_Body`. Implement `SetSessionToken` setter on `GetExtendedACLResponse_Body`. Signed-off-by: Leonard Lyubich --- v2/container/grpc/service.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/v2/container/grpc/service.go b/v2/container/grpc/service.go index 644ca3a..6aa854b 100644 --- a/v2/container/grpc/service.go +++ b/v2/container/grpc/service.go @@ -158,6 +158,21 @@ func (m *GetResponse_Body) SetContainer(v *Container) { } } +// SetSessionToken sets token of the session within which requested +// container was created. +func (m *GetResponse_Body) SetSessionToken(v *session.SessionToken) { + if m != nil { + m.SessionToken = v + } +} + +// SetSignature sets signature of the requested container. +func (m *GetResponse_Body) SetSignature(v *refs.Signature) { + if m != nil { + m.Signature = v + } +} + // SetBody sets body of the response. func (m *GetResponse) SetBody(v *GetResponse_Body) { if m != nil { @@ -333,6 +348,14 @@ func (m *GetExtendedACLResponse_Body) SetSignature(v *refs.Signature) { } } +// SetSessionToken sets token of the session within which requested +// eACl table was set. +func (m *GetExtendedACLResponse_Body) SetSessionToken(v *session.SessionToken) { + if m != nil { + m.SessionToken = v + } +} + // SetBody sets body of the response. func (m *GetExtendedACLResponse) SetBody(v *GetExtendedACLResponse_Body) { if m != nil {