2020-08-13 12:43:47 +00:00
|
|
|
package container
|
2020-08-12 19:06:10 +00:00
|
|
|
|
|
|
|
import (
|
2020-08-14 16:00:16 +00:00
|
|
|
acl "github.com/nspcc-dev/neofs-api-go/v2/acl/grpc"
|
|
|
|
refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
|
2020-08-20 10:41:55 +00:00
|
|
|
session "github.com/nspcc-dev/neofs-api-go/v2/session/grpc"
|
2020-08-12 19:06:10 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// SetContainer sets container of the request.
|
|
|
|
func (m *PutRequest_Body) SetContainer(v *Container) {
|
|
|
|
if m != nil {
|
|
|
|
m.Container = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSignature sets signature of the container structure.
|
2022-03-02 10:15:36 +00:00
|
|
|
func (m *PutRequest_Body) SetSignature(v *refs.SignatureRFC6979) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.Signature = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *PutRequest) SetBody(v *PutRequest_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *PutRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *PutRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetContainerId sets identifier of the container.
|
|
|
|
func (m *PutResponse_Body) SetContainerId(v *refs.ContainerID) {
|
|
|
|
if m != nil {
|
|
|
|
m.ContainerId = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *PutResponse) SetBody(v *PutResponse_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *PutResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *PutResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetContainerId sets identifier of the container.
|
|
|
|
func (m *DeleteRequest_Body) SetContainerId(v *refs.ContainerID) {
|
|
|
|
if m != nil {
|
|
|
|
m.ContainerId = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetSignature sets signature of the container identifier.
|
2022-03-02 10:15:36 +00:00
|
|
|
func (m *DeleteRequest_Body) SetSignature(v *refs.SignatureRFC6979) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.Signature = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *DeleteRequest) SetBody(v *DeleteRequest_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *DeleteRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *DeleteRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *DeleteResponse) SetBody(v *DeleteResponse_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *DeleteResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *DeleteResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetContainerId sets identifier of the container.
|
|
|
|
func (m *GetRequest_Body) SetContainerId(v *refs.ContainerID) {
|
|
|
|
m.ContainerId = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *GetRequest) SetBody(v *GetRequest_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetContainer sets the container structure.
|
|
|
|
func (m *GetResponse_Body) SetContainer(v *Container) {
|
|
|
|
if m != nil {
|
|
|
|
m.Container = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-24 18:14:35 +00:00
|
|
|
// 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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-02 10:15:36 +00:00
|
|
|
// SetSignature sets signature of the container structure.
|
|
|
|
func (m *GetResponse_Body) SetSignature(v *refs.SignatureRFC6979) {
|
2021-05-24 18:14:35 +00:00
|
|
|
if m != nil {
|
|
|
|
m.Signature = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *GetResponse) SetBody(v *GetResponse_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetOwnerId sets identifier of the container owner.
|
|
|
|
func (m *ListRequest_Body) SetOwnerId(v *refs.OwnerID) {
|
|
|
|
if m != nil {
|
|
|
|
m.OwnerId = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *ListRequest) SetBody(v *ListRequest_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *ListRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *ListRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetContainerIds sets list of the container identifiers.
|
|
|
|
func (m *ListResponse_Body) SetContainerIds(v []*refs.ContainerID) {
|
|
|
|
if m != nil {
|
|
|
|
m.ContainerIds = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *ListResponse) SetBody(v *ListResponse_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *ListResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *ListResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetEacl sets eACL table structure.
|
|
|
|
func (m *SetExtendedACLRequest_Body) SetEacl(v *acl.EACLTable) {
|
|
|
|
if m != nil {
|
|
|
|
m.Eacl = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-02 10:15:36 +00:00
|
|
|
// SetSignature sets signature of the eACL table structure.
|
|
|
|
func (m *SetExtendedACLRequest_Body) SetSignature(v *refs.SignatureRFC6979) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.Signature = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *SetExtendedACLRequest) SetBody(v *SetExtendedACLRequest_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *SetExtendedACLRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *SetExtendedACLRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *SetExtendedACLResponse) SetBody(v *SetExtendedACLResponse_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *SetExtendedACLResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *SetExtendedACLResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetContainerId sets identifier of the container.
|
|
|
|
func (m *GetExtendedACLRequest_Body) SetContainerId(v *refs.ContainerID) {
|
|
|
|
if m != nil {
|
|
|
|
m.ContainerId = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *GetExtendedACLRequest) SetBody(v *GetExtendedACLRequest_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetExtendedACLRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetExtendedACLRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetEacl sets eACL table structure.
|
|
|
|
func (m *GetExtendedACLResponse_Body) SetEacl(v *acl.EACLTable) {
|
|
|
|
if m != nil {
|
|
|
|
m.Eacl = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-02 10:15:36 +00:00
|
|
|
// SetSignature sets signature of the eACL table structure.
|
|
|
|
func (m *GetExtendedACLResponse_Body) SetSignature(v *refs.SignatureRFC6979) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.Signature = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-05-24 18:14:35 +00:00
|
|
|
// 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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *GetExtendedACLResponse) SetBody(v *GetExtendedACLResponse_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetExtendedACLResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetExtendedACLResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2020-08-12 19:06:10 +00:00
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
2021-01-21 14:57:04 +00:00
|
|
|
|
2021-01-26 18:32:33 +00:00
|
|
|
// SetEpoch sets epoch of the size estimation.
|
|
|
|
func (m *AnnounceUsedSpaceRequest_Body_Announcement) SetEpoch(v uint64) {
|
|
|
|
if m != nil {
|
|
|
|
m.Epoch = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-21 14:57:04 +00:00
|
|
|
// SetContainerId sets identifier of the container.
|
|
|
|
func (m *AnnounceUsedSpaceRequest_Body_Announcement) SetContainerId(v *refs.ContainerID) {
|
|
|
|
if m != nil {
|
|
|
|
m.ContainerId = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetUsedSpace sets used space value of the container.
|
|
|
|
func (m *AnnounceUsedSpaceRequest_Body_Announcement) SetUsedSpace(v uint64) {
|
|
|
|
if m != nil {
|
|
|
|
m.UsedSpace = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetAnnouncements sets list of announcement for shared containers between nodes.
|
|
|
|
func (m *AnnounceUsedSpaceRequest_Body) SetAnnouncements(v []*AnnounceUsedSpaceRequest_Body_Announcement) {
|
|
|
|
if m != nil {
|
|
|
|
m.Announcements = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *AnnounceUsedSpaceRequest) SetBody(v *AnnounceUsedSpaceRequest_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
|
|
|
func (m *AnnounceUsedSpaceRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
|
|
|
func (m *AnnounceUsedSpaceRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *AnnounceUsedSpaceResponse) SetBody(v *AnnounceUsedSpaceResponse_Body) {
|
|
|
|
if m != nil {
|
|
|
|
m.Body = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
|
|
|
func (m *AnnounceUsedSpaceResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
|
|
|
if m != nil {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
|
|
|
func (m *AnnounceUsedSpaceResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
|
|
|
if m != nil {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
|
|
|
}
|