[#557] services: Regenerate stable marshalers

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
pull/559/head
Evgenii Stratonikov 2023-08-02 12:48:17 +03:00 committed by Evgenii Stratonikov
parent 435a581b5e
commit 1e8b4b8a17
6 changed files with 342 additions and 0 deletions

View File

@ -8,6 +8,9 @@ import "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/util/proto"
//
// Structures with the same field values have the same binary size.
func (x *HealthCheckRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -27,6 +30,9 @@ func (x *HealthCheckRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *HealthCheckRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -79,6 +85,9 @@ func (x *HealthCheckRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *HealthCheckResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.EnumSize(1, int32(x.HealthStatus))
return size
}
@ -107,6 +116,9 @@ func (x *HealthCheckResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *HealthCheckResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -159,6 +171,9 @@ func (x *HealthCheckResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *TickEpochRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -178,6 +193,9 @@ func (x *TickEpochRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *TickEpochRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -230,6 +248,9 @@ func (x *TickEpochRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *TickEpochResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -249,6 +270,9 @@ func (x *TickEpochResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *TickEpochResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -301,6 +325,9 @@ func (x *TickEpochResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *RemoveNodeRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.Key)
return size
}
@ -329,6 +356,9 @@ func (x *RemoveNodeRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *RemoveNodeRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -381,6 +411,9 @@ func (x *RemoveNodeRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *RemoveNodeResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -400,6 +433,9 @@ func (x *RemoveNodeResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *RemoveNodeResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size

View File

@ -8,6 +8,9 @@ import "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/util/proto"
//
// Structures with the same field values have the same binary size.
func (x *Signature) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.Key)
size += proto.BytesSize(2, x.Sign)
return size

View File

@ -8,6 +8,9 @@ import "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/util/proto"
//
// Structures with the same field values have the same binary size.
func (x *HealthCheckRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -27,6 +30,9 @@ func (x *HealthCheckRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *HealthCheckRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -79,6 +85,9 @@ func (x *HealthCheckRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *HealthCheckResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.EnumSize(1, int32(x.NetmapStatus))
size += proto.EnumSize(2, int32(x.HealthStatus))
return size
@ -109,6 +118,9 @@ func (x *HealthCheckResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *HealthCheckResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -161,6 +173,9 @@ func (x *HealthCheckResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *SetNetmapStatusRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.EnumSize(1, int32(x.Status))
size += proto.BoolSize(2, x.ForceMaintenance)
return size
@ -191,6 +206,9 @@ func (x *SetNetmapStatusRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *SetNetmapStatusRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -243,6 +261,9 @@ func (x *SetNetmapStatusRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *SetNetmapStatusResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -262,6 +283,9 @@ func (x *SetNetmapStatusResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *SetNetmapStatusResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -314,6 +338,9 @@ func (x *SetNetmapStatusResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *DropObjectsRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.RepeatedBytesSize(1, x.AddressList)
return size
}
@ -342,6 +369,9 @@ func (x *DropObjectsRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *DropObjectsRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -394,6 +424,9 @@ func (x *DropObjectsRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *DropObjectsResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -413,6 +446,9 @@ func (x *DropObjectsResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *DropObjectsResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -465,6 +501,9 @@ func (x *DropObjectsResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *ListShardsRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -484,6 +523,9 @@ func (x *ListShardsRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *ListShardsRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -536,6 +578,9 @@ func (x *ListShardsRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *ListShardsResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
for i := range x.Shards {
size += proto.NestedStructureSize(1, x.Shards[i])
}
@ -568,6 +613,9 @@ func (x *ListShardsResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *ListShardsResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -620,6 +668,9 @@ func (x *ListShardsResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *SetShardModeRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.RepeatedBytesSize(1, x.Shard_ID)
size += proto.EnumSize(2, int32(x.Mode))
size += proto.BoolSize(3, x.ResetErrorCounter)
@ -652,6 +703,9 @@ func (x *SetShardModeRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *SetShardModeRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -704,6 +758,9 @@ func (x *SetShardModeRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *SetShardModeResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -723,6 +780,9 @@ func (x *SetShardModeResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *SetShardModeResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -775,6 +835,9 @@ func (x *SetShardModeResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *SynchronizeTreeRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.ContainerId)
size += proto.StringSize(2, x.TreeId)
size += proto.UInt64Size(3, x.Height)
@ -807,6 +870,9 @@ func (x *SynchronizeTreeRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *SynchronizeTreeRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -859,6 +925,9 @@ func (x *SynchronizeTreeRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *SynchronizeTreeResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -878,6 +947,9 @@ func (x *SynchronizeTreeResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *SynchronizeTreeResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -930,6 +1002,9 @@ func (x *SynchronizeTreeResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *EvacuateShardRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.RepeatedBytesSize(1, x.Shard_ID)
size += proto.BoolSize(2, x.IgnoreErrors)
return size
@ -960,6 +1035,9 @@ func (x *EvacuateShardRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *EvacuateShardRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1012,6 +1090,9 @@ func (x *EvacuateShardRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *EvacuateShardResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.UInt32Size(1, x.Count)
return size
}
@ -1040,6 +1121,9 @@ func (x *EvacuateShardResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *EvacuateShardResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1092,6 +1176,9 @@ func (x *EvacuateShardResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *FlushCacheRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.RepeatedBytesSize(1, x.Shard_ID)
return size
}
@ -1120,6 +1207,9 @@ func (x *FlushCacheRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *FlushCacheRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1172,6 +1262,9 @@ func (x *FlushCacheRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *FlushCacheResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -1191,6 +1284,9 @@ func (x *FlushCacheResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *FlushCacheResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1243,6 +1339,9 @@ func (x *FlushCacheResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *DoctorRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.UInt32Size(1, x.Concurrency)
size += proto.BoolSize(2, x.RemoveDuplicates)
return size
@ -1273,6 +1372,9 @@ func (x *DoctorRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *DoctorRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1325,6 +1427,9 @@ func (x *DoctorRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *DoctorResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -1344,6 +1449,9 @@ func (x *DoctorResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *DoctorResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1396,6 +1504,9 @@ func (x *DoctorResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *StartShardEvacuationRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.RepeatedBytesSize(1, x.Shard_ID)
size += proto.BoolSize(2, x.IgnoreErrors)
return size
@ -1426,6 +1537,9 @@ func (x *StartShardEvacuationRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *StartShardEvacuationRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1478,6 +1592,9 @@ func (x *StartShardEvacuationRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *StartShardEvacuationResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -1497,6 +1614,9 @@ func (x *StartShardEvacuationResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *StartShardEvacuationResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1549,6 +1669,9 @@ func (x *StartShardEvacuationResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *GetShardEvacuationStatusRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -1568,6 +1691,9 @@ func (x *GetShardEvacuationStatusRequest_Body) StableMarshal(buf []byte) []byte
//
// Structures with the same field values have the same binary size.
func (x *GetShardEvacuationStatusRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1620,6 +1746,9 @@ func (x *GetShardEvacuationStatusRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *GetShardEvacuationStatusResponse_Body_UnixTimestamp) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.Int64Size(1, x.Value)
return size
}
@ -1648,6 +1777,9 @@ func (x *GetShardEvacuationStatusResponse_Body_UnixTimestamp) StableMarshal(buf
//
// Structures with the same field values have the same binary size.
func (x *GetShardEvacuationStatusResponse_Body_Duration) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.Int64Size(1, x.Seconds)
return size
}
@ -1676,6 +1808,9 @@ func (x *GetShardEvacuationStatusResponse_Body_Duration) StableMarshal(buf []byt
//
// Structures with the same field values have the same binary size.
func (x *GetShardEvacuationStatusResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.UInt64Size(1, x.Total)
size += proto.UInt64Size(2, x.Evacuated)
size += proto.UInt64Size(3, x.Failed)
@ -1718,6 +1853,9 @@ func (x *GetShardEvacuationStatusResponse_Body) StableMarshal(buf []byte) []byte
//
// Structures with the same field values have the same binary size.
func (x *GetShardEvacuationStatusResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1770,6 +1908,9 @@ func (x *GetShardEvacuationStatusResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *StopShardEvacuationRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -1789,6 +1930,9 @@ func (x *StopShardEvacuationRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *StopShardEvacuationRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1841,6 +1985,9 @@ func (x *StopShardEvacuationRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *StopShardEvacuationResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -1860,6 +2007,9 @@ func (x *StopShardEvacuationResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *StopShardEvacuationResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size

View File

@ -8,6 +8,9 @@ import "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/util/proto"
//
// Structures with the same field values have the same binary size.
func (x *Signature) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.Key)
size += proto.BytesSize(2, x.Sign)
return size
@ -38,6 +41,9 @@ func (x *Signature) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *NodeInfo_Attribute) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.StringSize(1, x.Key)
size += proto.StringSize(2, x.Value)
size += proto.RepeatedStringSize(3, x.Parents)
@ -70,6 +76,9 @@ func (x *NodeInfo_Attribute) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *NodeInfo) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.PublicKey)
size += proto.RepeatedStringSize(2, x.Addresses)
for i := range x.Attributes {
@ -108,6 +117,9 @@ func (x *NodeInfo) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *Netmap) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.UInt64Size(1, x.Epoch)
for i := range x.Nodes {
size += proto.NestedStructureSize(2, x.Nodes[i])
@ -142,6 +154,9 @@ func (x *Netmap) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *ShardInfo) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.Shard_ID)
size += proto.StringSize(2, x.MetabasePath)
for i := range x.Blobstor {
@ -186,6 +201,9 @@ func (x *ShardInfo) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *BlobstorInfo) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.StringSize(1, x.Path)
size += proto.StringSize(2, x.Type)
return size

View File

@ -8,6 +8,9 @@ import "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/util/proto"
//
// Structures with the same field values have the same binary size.
func (x *AddRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.ContainerId)
size += proto.StringSize(2, x.TreeId)
size += proto.UInt64Size(3, x.ParentId)
@ -48,6 +51,9 @@ func (x *AddRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *AddRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -100,6 +106,9 @@ func (x *AddRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *AddResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.UInt64Size(1, x.NodeId)
return size
}
@ -128,6 +137,9 @@ func (x *AddResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *AddResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -180,6 +192,9 @@ func (x *AddResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *AddByPathRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.ContainerId)
size += proto.StringSize(2, x.TreeId)
size += proto.StringSize(3, x.PathAttribute)
@ -222,6 +237,9 @@ func (x *AddByPathRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *AddByPathRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -274,6 +292,9 @@ func (x *AddByPathRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *AddByPathResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
var n int
n, _ = proto.RepeatedUInt64Size(1, x.Nodes)
size += n
@ -306,6 +327,9 @@ func (x *AddByPathResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *AddByPathResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -358,6 +382,9 @@ func (x *AddByPathResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *RemoveRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.ContainerId)
size += proto.StringSize(2, x.TreeId)
size += proto.UInt64Size(3, x.NodeId)
@ -392,6 +419,9 @@ func (x *RemoveRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *RemoveRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -444,6 +474,9 @@ func (x *RemoveRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *RemoveResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -463,6 +496,9 @@ func (x *RemoveResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *RemoveResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -515,6 +551,9 @@ func (x *RemoveResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *MoveRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.ContainerId)
size += proto.StringSize(2, x.TreeId)
size += proto.UInt64Size(3, x.ParentId)
@ -557,6 +596,9 @@ func (x *MoveRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *MoveRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -609,6 +651,9 @@ func (x *MoveRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *MoveResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -628,6 +673,9 @@ func (x *MoveResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *MoveResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -680,6 +728,9 @@ func (x *MoveResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *GetNodeByPathRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.ContainerId)
size += proto.StringSize(2, x.TreeId)
size += proto.StringSize(3, x.PathAttribute)
@ -722,6 +773,9 @@ func (x *GetNodeByPathRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *GetNodeByPathRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -774,6 +828,9 @@ func (x *GetNodeByPathRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *GetNodeByPathResponse_Info) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.UInt64Size(1, x.NodeId)
size += proto.UInt64Size(2, x.Timestamp)
for i := range x.Meta {
@ -812,6 +869,9 @@ func (x *GetNodeByPathResponse_Info) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *GetNodeByPathResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
for i := range x.Nodes {
size += proto.NestedStructureSize(1, x.Nodes[i])
}
@ -844,6 +904,9 @@ func (x *GetNodeByPathResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *GetNodeByPathResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -896,6 +959,9 @@ func (x *GetNodeByPathResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *GetSubTreeRequest_Body_Order) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.EnumSize(1, int32(x.Direction))
return size
}
@ -924,6 +990,9 @@ func (x *GetSubTreeRequest_Body_Order) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *GetSubTreeRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.ContainerId)
size += proto.StringSize(2, x.TreeId)
size += proto.UInt64Size(3, x.RootId)
@ -962,6 +1031,9 @@ func (x *GetSubTreeRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *GetSubTreeRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1014,6 +1086,9 @@ func (x *GetSubTreeRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *GetSubTreeResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.UInt64Size(1, x.NodeId)
size += proto.UInt64Size(2, x.ParentId)
size += proto.UInt64Size(3, x.Timestamp)
@ -1052,6 +1127,9 @@ func (x *GetSubTreeResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *GetSubTreeResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1104,6 +1182,9 @@ func (x *GetSubTreeResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *TreeListRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.ContainerId)
return size
}
@ -1132,6 +1213,9 @@ func (x *TreeListRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *TreeListRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1184,6 +1268,9 @@ func (x *TreeListRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *TreeListResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.RepeatedStringSize(1, x.Ids)
return size
}
@ -1212,6 +1299,9 @@ func (x *TreeListResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *TreeListResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1264,6 +1354,9 @@ func (x *TreeListResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *ApplyRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.ContainerId)
size += proto.StringSize(2, x.TreeId)
size += proto.NestedStructureSize(3, x.Operation)
@ -1296,6 +1389,9 @@ func (x *ApplyRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *ApplyRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1348,6 +1444,9 @@ func (x *ApplyRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *ApplyResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -1367,6 +1466,9 @@ func (x *ApplyResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *ApplyResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1419,6 +1521,9 @@ func (x *ApplyResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *GetOpLogRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.ContainerId)
size += proto.StringSize(2, x.TreeId)
size += proto.UInt64Size(3, x.Height)
@ -1453,6 +1558,9 @@ func (x *GetOpLogRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *GetOpLogRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1505,6 +1613,9 @@ func (x *GetOpLogRequest) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *GetOpLogResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Operation)
return size
}
@ -1533,6 +1644,9 @@ func (x *GetOpLogResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *GetOpLogResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1585,6 +1699,9 @@ func (x *GetOpLogResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *HealthcheckResponse_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -1604,6 +1721,9 @@ func (x *HealthcheckResponse_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *HealthcheckResponse) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size
@ -1656,6 +1776,9 @@ func (x *HealthcheckResponse) SetSignature(sig *Signature) {
//
// Structures with the same field values have the same binary size.
func (x *HealthcheckRequest_Body) StableSize() (size int) {
if x == nil {
return 0
}
return size
}
@ -1675,6 +1798,9 @@ func (x *HealthcheckRequest_Body) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *HealthcheckRequest) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.NestedStructureSize(1, x.Body)
size += proto.NestedStructureSize(2, x.Signature)
return size

View File

@ -8,6 +8,9 @@ import "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/util/proto"
//
// Structures with the same field values have the same binary size.
func (x *KeyValue) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.StringSize(1, x.Key)
size += proto.BytesSize(2, x.Value)
return size
@ -38,6 +41,9 @@ func (x *KeyValue) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *LogMove) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.UInt64Size(1, x.ParentId)
size += proto.BytesSize(2, x.Meta)
size += proto.UInt64Size(3, x.ChildId)
@ -70,6 +76,9 @@ func (x *LogMove) StableMarshal(buf []byte) []byte {
//
// Structures with the same field values have the same binary size.
func (x *Signature) StableSize() (size int) {
if x == nil {
return 0
}
size += proto.BytesSize(1, x.Key)
size += proto.BytesSize(2, x.Sign)
return size