From 42cd897b257519169f2e3f0d66d7c63c435d9e7a Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Mon, 7 Dec 2020 18:52:46 +0300 Subject: [PATCH] [#225] v2/object: Update GRPC files from neofs-api Signed-off-by: Alex Vanin --- v2/object/grpc/service.go | 47 ++++++++++++++++++++++++++++++++--- v2/object/grpc/service.pb.go | Bin 144358 -> 147551 bytes 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/v2/object/grpc/service.go b/v2/object/grpc/service.go index 9b537057..323522b5 100644 --- a/v2/object/grpc/service.go +++ b/v2/object/grpc/service.go @@ -355,6 +355,15 @@ func (m *HeadResponse_Body) SetShortHeader(v *ShortHeader) { } } +// SetSplitInfo sets meta info about split hierarchy of the object. +func (m *HeadResponse_Body) SetSplitInfo(v *SplitInfo) { + if m != nil { + m.Head = &HeadResponse_Body_SplitInfo{ + SplitInfo: v, + } + } +} + // SetBody sets body of the response. func (m *HeadResponse) SetBody(v *HeadResponse_Body) { if m != nil { @@ -411,7 +420,7 @@ func (m *SearchRequest_Body) SetFilters(v []*SearchRequest_Body_Filter) { } } -// SetRaw sets raw flag of the request. +// SetContainerId sets container ID of the search requets. func (m *SearchRequest_Body) SetContainerId(v *refs.ContainerID) { if m != nil { m.ContainerId = v @@ -495,6 +504,13 @@ func (m *GetRangeRequest_Body) SetRange(v *Range) { } } +// SetRaw sets raw flag of the request. +func (m *GetRangeRequest_Body) SetRaw(v bool) { + if m != nil { + m.Raw = v + } +} + // SetBody sets body of the request. func (m *GetRangeRequest) SetBody(v *GetRangeRequest_Body) { if m != nil { @@ -516,13 +532,38 @@ func (m *GetRangeRequest) SetVerifyHeader(v *session.RequestVerificationHeader) } } -// SetChunk sets chunk of the object payload. -func (m *GetRangeResponse_Body) SetChunk(v []byte) { +// 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) { if m != nil { m.Chunk = v } } +// SetChunk sets chunk of the object payload. +func (m *GetRangeResponse_Body) SetChunk(v *GetRangeResponse_Body_Chunk) { + if m != nil { + m.RangePart = v + } +} + +// SetSplitInfo sets meta info about split hierarchy of the object. +func (m *GetRangeResponse_Body) SetSplitInfo(v *SplitInfo) { + if m != nil { + m.RangePart = &GetRangeResponse_Body_SplitInfo{ + SplitInfo: v, + } + } +} + // SetBody sets body of the response. func (m *GetRangeResponse) SetBody(v *GetRangeResponse_Body) { if m != nil { diff --git a/v2/object/grpc/service.pb.go b/v2/object/grpc/service.pb.go index 4d6c26a537d7a48b39890b3780106a0f84c8cbdd..9b70a4227de0d8751206e3c2596bbd7fef4f7c20 100644 GIT binary patch delta 4281 zcmdT|dsNhA8a^)x%nZYDF$Ur~TnZ6|;W9Ho3IkbY#tM;zw{T#fMUfd`Opp*E6$ASA|n&t8KG=zV8Q0m$Q5J&;4i4e7E;| z-uHdp=ly2>@>ku(F8$CeWA=HLdS7ab#p`PJSv<{_4YfX(rM|Jw)4ajutM@coT-Bb9 zK1++Yq26cEXJ%SF)$3|&e8PSpReUsdulU25S-jD&A5J{o;xE=F>qYPqqgZ<;P%Ph@ zAr^iRD-QMR#T$EV!_R;49EtAVL}5ZF*6qs@hxa`y7M$H8HlB^foKc+kAWC@8`VYT- zwkTHA@7O>Y;!h(Fi33;6;`rxL;(T4;aKYuQSz>5=m^f4yDB`agMRIrXu;*$QiN3M0 zdCjiIM{EC^4>RzGJRlF0!SMp=nO+Pwo5d$0K)kryAYN_`69@YZCWHRQE=zrjczPlt zvFhf`T5q$*=c(RUSLJD}_0$z4DGY*oqC{W&ti4{HxIP&u^4<;==RVgBKReNQi`df_ zD0X~0J8W^S?}nW@X;ZcXG}~hEXNfoO6_Za{W}54N>5kwTM>FQ!03Nb8Z{|j%;0HDy z><>ah@KlEv&2_GtT1&e@uX!4Bb9qjhp~D~!tT&6_iA+8Cq8!Z-!4nQq zv@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