[#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 <leonard@nspcc.ru>
This commit is contained in:
parent
0719fcef59
commit
dac997b8c3
1 changed files with 23 additions and 0 deletions
|
@ -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.
|
// SetBody sets body of the response.
|
||||||
func (m *GetResponse) SetBody(v *GetResponse_Body) {
|
func (m *GetResponse) SetBody(v *GetResponse_Body) {
|
||||||
if m != nil {
|
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.
|
// SetBody sets body of the response.
|
||||||
func (m *GetExtendedACLResponse) SetBody(v *GetExtendedACLResponse_Body) {
|
func (m *GetExtendedACLResponse) SetBody(v *GetExtendedACLResponse_Body) {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
|
Loading…
Reference in a new issue