2020-08-13 12:43:47 +00:00
|
|
|
package object
|
2020-08-12 19:06:10 +00:00
|
|
|
|
|
|
|
import (
|
2023-03-07 10:38:56 +00:00
|
|
|
refs "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs/grpc"
|
|
|
|
session "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/session/grpc"
|
2020-08-12 19:06:10 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// SetAddress sets address of the requested object.
|
|
|
|
func (m *GetRequest_Body) SetAddress(v *refs.Address) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Address = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetRaw sets raw flag of the request.
|
|
|
|
func (m *GetRequest_Body) SetRaw(v bool) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Raw = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *GetRequest) SetBody(v *GetRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetObjectId sets identifier of the object.
|
|
|
|
func (m *GetResponse_Body_Init) SetObjectId(v *refs.ObjectID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ObjectId = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetSignature sets signature of the object identifier.
|
2020-08-20 09:43:47 +00:00
|
|
|
func (m *GetResponse_Body_Init) SetSignature(v *refs.Signature) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Signature = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetHeader sets header of the object.
|
|
|
|
func (m *GetResponse_Body_Init) SetHeader(v *Header) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Header = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-08-18 10:23:26 +00:00
|
|
|
// GetChunk returns chunk of the object payload bytes.
|
|
|
|
func (m *GetResponse_Body_Chunk) GetChunk() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Chunk
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetChunk sets chunk of the object payload bytes.
|
|
|
|
func (m *GetResponse_Body_Chunk) SetChunk(v []byte) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Chunk = v
|
2020-08-18 10:23:26 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetInit sets initial part of the object.
|
|
|
|
func (m *GetResponse_Body) SetInit(v *GetResponse_Body_Init) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ObjectPart = &GetResponse_Body_Init_{
|
|
|
|
Init: v,
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-18 10:23:26 +00:00
|
|
|
// SetChunk sets part of the object payload.
|
|
|
|
func (m *GetResponse_Body) SetChunk(v *GetResponse_Body_Chunk) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ObjectPart = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-12-02 10:10:43 +00:00
|
|
|
// SetSplitInfo sets part of the object payload.
|
|
|
|
func (m *GetResponse_Body) SetSplitInfo(v *SplitInfo) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ObjectPart = &GetResponse_Body_SplitInfo{
|
|
|
|
SplitInfo: v,
|
2020-12-02 10:10:43 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-26 08:54:35 +00:00
|
|
|
// SetEcInfo sets part of the object payload.
|
|
|
|
func (m *GetResponse_Body) SetEcInfo(v *ECInfo) {
|
2024-04-22 10:25:29 +00:00
|
|
|
m.ObjectPart = &GetResponse_Body_EcInfo{
|
|
|
|
EcInfo: v,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *GetResponse) SetBody(v *GetResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetObjectId sets identifier of the object.
|
|
|
|
func (m *PutRequest_Body_Init) SetObjectId(v *refs.ObjectID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ObjectId = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetSignature sets signature of the object identifier.
|
2020-08-20 09:43:47 +00:00
|
|
|
func (m *PutRequest_Body_Init) SetSignature(v *refs.Signature) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Signature = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetHeader sets header of the object.
|
|
|
|
func (m *PutRequest_Body_Init) SetHeader(v *Header) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Header = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetCopiesNumber sets number of the copies to save.
|
2023-04-11 07:37:11 +00:00
|
|
|
func (m *PutRequest_Body_Init) SetCopiesNumber(v []uint32) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.CopiesNumber = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-08-18 10:23:26 +00:00
|
|
|
// GetChunk returns chunk of the object payload bytes.
|
|
|
|
func (m *PutRequest_Body_Chunk) GetChunk() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Chunk
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetChunk sets chunk of the object payload bytes.
|
|
|
|
func (m *PutRequest_Body_Chunk) SetChunk(v []byte) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Chunk = v
|
2020-08-18 10:23:26 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetInit sets initial part of the object.
|
|
|
|
func (m *PutRequest_Body) SetInit(v *PutRequest_Body_Init) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ObjectPart = &PutRequest_Body_Init_{
|
|
|
|
Init: v,
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-18 10:23:26 +00:00
|
|
|
// SetChunk sets part of the object payload.
|
|
|
|
func (m *PutRequest_Body) SetChunk(v *PutRequest_Body_Chunk) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ObjectPart = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *PutRequest) SetBody(v *PutRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *PutRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *PutRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetObjectId sets identifier of the saved object.
|
|
|
|
func (m *PutResponse_Body) SetObjectId(v *refs.ObjectID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ObjectId = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *PutResponse) SetBody(v *PutResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *PutResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *PutResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetAddress sets address of the object to delete.
|
|
|
|
func (m *DeleteRequest_Body) SetAddress(v *refs.Address) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Address = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *DeleteRequest) SetBody(v *DeleteRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *DeleteRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *DeleteRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-12-10 09:15:17 +00:00
|
|
|
// SetTombstone sets tombstone address.
|
|
|
|
func (x *DeleteResponse_Body) SetTombstone(v *refs.Address) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Tombstone = v
|
2020-12-10 09:15:17 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *DeleteResponse) SetBody(v *DeleteResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *DeleteResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *DeleteResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-08-18 10:23:26 +00:00
|
|
|
// SetAddress sets address of the object with the requested header.
|
|
|
|
func (m *HeadRequest_Body) SetAddress(v *refs.Address) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Address = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMainOnly sets flag to return the minimal header subset.
|
|
|
|
func (m *HeadRequest_Body) SetMainOnly(v bool) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MainOnly = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetRaw sets raw flag of the request.
|
|
|
|
func (m *HeadRequest_Body) SetRaw(v bool) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Raw = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *HeadRequest) SetBody(v *HeadRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *HeadRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *HeadRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-08-18 10:23:26 +00:00
|
|
|
// SetHeader sets object header.
|
2020-09-08 10:39:13 +00:00
|
|
|
func (m *HeaderWithSignature) SetHeader(v *Header) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Header = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-09-08 10:39:13 +00:00
|
|
|
// SetSignature of the header.
|
|
|
|
func (m *HeaderWithSignature) SetSignature(v *refs.Signature) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Signature = v
|
2020-09-08 10:39:13 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetHeader sets full header of the object.
|
2020-12-07 14:41:05 +00:00
|
|
|
func (m *HeadResponse_Body) SetHeader(v *HeaderWithSignature) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Head = &HeadResponse_Body_Header{
|
|
|
|
Header: v,
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetShortHeader sets short header of the object.
|
2020-12-07 14:41:05 +00:00
|
|
|
func (m *HeadResponse_Body) SetShortHeader(v *ShortHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Head = &HeadResponse_Body_ShortHeader{
|
|
|
|
ShortHeader: v,
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-07 15:52:46 +00:00
|
|
|
// SetSplitInfo sets meta info about split hierarchy of the object.
|
|
|
|
func (m *HeadResponse_Body) SetSplitInfo(v *SplitInfo) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Head = &HeadResponse_Body_SplitInfo{
|
|
|
|
SplitInfo: v,
|
2020-12-07 15:52:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-26 08:54:35 +00:00
|
|
|
// SetEcInfo sets meta info about the erasure coded object.
|
|
|
|
func (m *HeadResponse_Body) SetEcInfo(v *ECInfo) {
|
2024-04-22 10:25:29 +00:00
|
|
|
m.Head = &HeadResponse_Body_EcInfo{
|
|
|
|
EcInfo: v,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *HeadResponse) SetBody(v *HeadResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *HeadResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *HeadResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMatchType sets match type of the filter.
|
2020-08-17 11:30:09 +00:00
|
|
|
func (m *SearchRequest_Body_Filter) SetMatchType(v MatchType) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MatchType = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-10-27 13:55:19 +00:00
|
|
|
// SetKey sets key to the filtering header.
|
|
|
|
func (m *SearchRequest_Body_Filter) SetKey(v string) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Key = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetValue sets value of the filtering header.
|
2020-08-14 07:22:15 +00:00
|
|
|
func (m *SearchRequest_Body_Filter) SetValue(v string) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Value = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVersion sets version of the search query.
|
2020-08-14 07:22:15 +00:00
|
|
|
func (m *SearchRequest_Body) SetVersion(v uint32) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Version = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetFilters sets list of the query filters.
|
2020-08-14 07:22:15 +00:00
|
|
|
func (m *SearchRequest_Body) SetFilters(v []*SearchRequest_Body_Filter) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Filters = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-12-07 15:52:46 +00:00
|
|
|
// SetContainerId sets container ID of the search requets.
|
2020-08-12 19:06:10 +00:00
|
|
|
func (m *SearchRequest_Body) SetContainerId(v *refs.ContainerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.ContainerId = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *SearchRequest) SetBody(v *SearchRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *SearchRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *SearchRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetIdList sets list of the identifiers of the matched objects.
|
|
|
|
func (m *SearchResponse_Body) SetIdList(v []*refs.ObjectID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.IdList = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *SearchResponse) SetBody(v *SearchResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *SearchResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *SearchResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetOffset sets offset of the payload range.
|
|
|
|
func (m *Range) SetOffset(v uint64) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Offset = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetLength sets length of the payload range.
|
|
|
|
func (m *Range) SetLength(v uint64) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Length = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetAddress sets address of the object with the request payload range.
|
|
|
|
func (m *GetRangeRequest_Body) SetAddress(v *refs.Address) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Address = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetRange sets range of the object payload.
|
|
|
|
func (m *GetRangeRequest_Body) SetRange(v *Range) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Range = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-12-07 15:52:46 +00:00
|
|
|
// SetRaw sets raw flag of the request.
|
|
|
|
func (m *GetRangeRequest_Body) SetRaw(v bool) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Raw = v
|
2020-12-07 15:52:46 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *GetRangeRequest) SetBody(v *GetRangeRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRangeRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRangeRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-12-07 15:52:46 +00:00
|
|
|
// GetChunk returns chunk of the object payload range bytes.
|
|
|
|
func (m *GetRangeResponse_Body_Chunk) GetChunk() []byte {
|
|
|
|
if m != nil {
|
|
|
|
return m.Chunk
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetChunk sets chunk of the object payload range bytes.
|
|
|
|
func (m *GetRangeResponse_Body_Chunk) SetChunk(v []byte) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Chunk = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-12-07 15:52:46 +00:00
|
|
|
// SetChunk sets chunk of the object payload.
|
|
|
|
func (m *GetRangeResponse_Body) SetChunk(v *GetRangeResponse_Body_Chunk) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.RangePart = v
|
2020-12-07 15:52:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetSplitInfo sets meta info about split hierarchy of the object.
|
|
|
|
func (m *GetRangeResponse_Body) SetSplitInfo(v *SplitInfo) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.RangePart = &GetRangeResponse_Body_SplitInfo{
|
|
|
|
SplitInfo: v,
|
2020-12-07 15:52:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-26 08:54:35 +00:00
|
|
|
// SetEcInfo sets meta info about the erasure-coded object.
|
|
|
|
func (m *GetRangeResponse_Body) SetEcInfo(v *ECInfo) {
|
2024-04-27 20:03:26 +00:00
|
|
|
m.RangePart = &GetRangeResponse_Body_EcInfo{
|
|
|
|
EcInfo: v,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *GetRangeResponse) SetBody(v *GetRangeResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRangeResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRangeResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetAddress sets address of the object with the request payload range.
|
|
|
|
func (m *GetRangeHashRequest_Body) SetAddress(v *refs.Address) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Address = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetRanges sets list of the ranges of the object payload.
|
|
|
|
func (m *GetRangeHashRequest_Body) SetRanges(v []*Range) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Ranges = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetSalt sets salt for the object payload ranges.
|
|
|
|
func (m *GetRangeHashRequest_Body) SetSalt(v []byte) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Salt = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
2020-08-20 08:48:35 +00:00
|
|
|
// Set sets salt for the object payload ranges.
|
|
|
|
func (m *GetRangeHashRequest_Body) SetType(v refs.ChecksumType) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Type = v
|
2020-08-20 08:48:35 +00:00
|
|
|
}
|
|
|
|
|
2020-08-12 19:06:10 +00:00
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *GetRangeHashRequest) SetBody(v *GetRangeHashRequest_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRangeHashRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRangeHashRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-12 19:06:10 +00:00
|
|
|
}
|
2020-08-18 10:23:26 +00:00
|
|
|
|
|
|
|
// SetHashList returns list of the range hashes.
|
|
|
|
func (m *GetRangeHashResponse_Body) SetHashList(v [][]byte) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.HashList = v
|
2020-08-18 10:23:26 +00:00
|
|
|
}
|
|
|
|
|
2020-08-20 08:48:35 +00:00
|
|
|
// SetHashList returns list of the range hashes.
|
|
|
|
func (m *GetRangeHashResponse_Body) SetType(v refs.ChecksumType) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Type = v
|
2020-08-20 08:48:35 +00:00
|
|
|
}
|
|
|
|
|
2020-08-18 10:23:26 +00:00
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *GetRangeHashResponse) SetBody(v *GetRangeHashResponse_Body) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.Body = v
|
2020-08-18 10:23:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRangeHashResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.MetaHeader = v
|
2020-08-18 10:23:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
2020-08-20 10:41:55 +00:00
|
|
|
func (m *GetRangeHashResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
2022-03-23 11:42:57 +00:00
|
|
|
m.VerifyHeader = v
|
2020-08-18 10:23:26 +00:00
|
|
|
}
|
2023-06-30 12:00:51 +00:00
|
|
|
|
|
|
|
// SetObject set object of the body.
|
|
|
|
func (m *PutSingleRequest_Body) SetObject(o *Object) {
|
|
|
|
m.Object = o
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetCopiesNumber sets copies number of the body.
|
|
|
|
func (m *PutSingleRequest_Body) SetCopiesNumber(v []uint32) {
|
|
|
|
m.CopiesNumber = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetBody sets body of the request.
|
|
|
|
func (m *PutSingleRequest) SetBody(b *PutSingleRequest_Body) {
|
|
|
|
m.Body = b
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the request.
|
|
|
|
func (m *PutSingleRequest) SetMetaHeader(v *session.RequestMetaHeader) {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the request.
|
|
|
|
func (m *PutSingleRequest) SetVerifyHeader(v *session.RequestVerificationHeader) {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|
2023-06-30 13:05:37 +00:00
|
|
|
|
|
|
|
// SetBody sets body of the response.
|
|
|
|
func (m *PutSingleResponse) SetBody(b *PutSingleResponse_Body) {
|
|
|
|
m.Body = b
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetMetaHeader sets meta header of the response.
|
|
|
|
func (m *PutSingleResponse) SetMetaHeader(v *session.ResponseMetaHeader) {
|
|
|
|
m.MetaHeader = v
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetVerifyHeader sets verification header of the response.
|
|
|
|
func (m *PutSingleResponse) SetVerifyHeader(v *session.ResponseVerificationHeader) {
|
|
|
|
m.VerifyHeader = v
|
|
|
|
}
|