From 9e82a5a31a888f44219dac09cc4a6d07ad1a215b Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Mon, 26 Aug 2024 14:36:02 +0300 Subject: [PATCH] [#107] Regenerate proto files Signed-off-by: Evgenii Stratonikov --- ape/grpc/types_frostfs.pb.go | 6 ++---- object/grpc/service_frostfs.pb.go | 20 ++++++-------------- session/grpc/types_frostfs.pb.go | 2 -- 3 files changed, 8 insertions(+), 20 deletions(-) diff --git a/ape/grpc/types_frostfs.pb.go b/ape/grpc/types_frostfs.pb.go index 1e92f22..216415b 100644 --- a/ape/grpc/types_frostfs.pb.go +++ b/ape/grpc/types_frostfs.pb.go @@ -303,9 +303,9 @@ func (x *Chain) GetKind() isChain_Kind { func (x *Chain) SetKind(v isChain_Kind) { x.Kind = v } -func (x *Chain) GetRaw() *Chain_Raw { +func (x *Chain) GetRaw() []byte { if xx, ok := x.GetKind().(*Chain_Raw); ok { - return xx + return xx.Raw } return nil } @@ -341,8 +341,6 @@ func (x *Chain) MarshalEasyJSON(out *jwriter.Writer) { out.RawString(prefix[1:]) out.Base64Bytes(xx.Raw) } - default: - out.RawString("null") } out.RawByte('}') } diff --git a/object/grpc/service_frostfs.pb.go b/object/grpc/service_frostfs.pb.go index 08b2860..ce8336a 100644 --- a/object/grpc/service_frostfs.pb.go +++ b/object/grpc/service_frostfs.pb.go @@ -739,9 +739,9 @@ func (x *GetResponse_Body) GetInit() *GetResponse_Body_Init { func (x *GetResponse_Body) SetInit(v *GetResponse_Body_Init) { x.ObjectPart = &GetResponse_Body_Init_{Init: v} } -func (x *GetResponse_Body) GetChunk() *GetResponse_Body_Chunk { +func (x *GetResponse_Body) GetChunk() []byte { if xx, ok := x.GetObjectPart().(*GetResponse_Body_Chunk); ok { - return xx + return xx.Chunk } return nil } @@ -813,8 +813,6 @@ func (x *GetResponse_Body) MarshalEasyJSON(out *jwriter.Writer) { out.RawString(prefix[1:]) xx.EcInfo.MarshalEasyJSON(out) } - default: - out.RawString("null") } out.RawByte('}') } @@ -1486,9 +1484,9 @@ func (x *PutRequest_Body) GetInit() *PutRequest_Body_Init { func (x *PutRequest_Body) SetInit(v *PutRequest_Body_Init) { x.ObjectPart = &PutRequest_Body_Init_{Init: v} } -func (x *PutRequest_Body) GetChunk() *PutRequest_Body_Chunk { +func (x *PutRequest_Body) GetChunk() []byte { if xx, ok := x.GetObjectPart().(*PutRequest_Body_Chunk); ok { - return xx + return xx.Chunk } return nil } @@ -1530,8 +1528,6 @@ func (x *PutRequest_Body) MarshalEasyJSON(out *jwriter.Writer) { out.RawString(prefix[1:]) out.Base64Bytes(xx.Chunk) } - default: - out.RawString("null") } out.RawByte('}') } @@ -3674,8 +3670,6 @@ func (x *HeadResponse_Body) MarshalEasyJSON(out *jwriter.Writer) { out.RawString(prefix[1:]) xx.EcInfo.MarshalEasyJSON(out) } - default: - out.RawString("null") } out.RawByte('}') } @@ -5706,9 +5700,9 @@ func (x *GetRangeResponse_Body) GetRangePart() isGetRangeResponse_Body_RangePart func (x *GetRangeResponse_Body) SetRangePart(v isGetRangeResponse_Body_RangePart) { x.RangePart = v } -func (x *GetRangeResponse_Body) GetChunk() *GetRangeResponse_Body_Chunk { +func (x *GetRangeResponse_Body) GetChunk() []byte { if xx, ok := x.GetRangePart().(*GetRangeResponse_Body_Chunk); ok { - return xx + return xx.Chunk } return nil } @@ -5774,8 +5768,6 @@ func (x *GetRangeResponse_Body) MarshalEasyJSON(out *jwriter.Writer) { out.RawString(prefix[1:]) xx.EcInfo.MarshalEasyJSON(out) } - default: - out.RawString("null") } out.RawByte('}') } diff --git a/session/grpc/types_frostfs.pb.go b/session/grpc/types_frostfs.pb.go index 6a0d75c..af95210 100644 --- a/session/grpc/types_frostfs.pb.go +++ b/session/grpc/types_frostfs.pb.go @@ -1121,8 +1121,6 @@ func (x *SessionToken_Body) MarshalEasyJSON(out *jwriter.Writer) { out.RawString(prefix) xx.Container.MarshalEasyJSON(out) } - default: - out.RawString("null") } out.RawByte('}') }