// Code generated by protoc-gen-go-frostfs. DO NOT EDIT. package netmap import "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/util/proto" // StableSize returns the size of x in protobuf format. // // Structures with the same field values have the same binary size. func (x *LocalNodeInfoRequest_Body) StableSize() (size int) { if x == nil { return 0 } return size } // StableMarshal marshals x in protobuf binary format with stable field order. // // If buffer length is less than x.StableSize(), new buffer is allocated. // // Returns any error encountered which did not allow writing the data completely. // Otherwise, returns the buffer in which the data is written. // // Structures with the same field values have the same binary format. func (x *LocalNodeInfoRequest_Body) StableMarshal(buf []byte) []byte { return buf } // StableSize returns the size of x in protobuf format. // // Structures with the same field values have the same binary size. func (x *LocalNodeInfoRequest) StableSize() (size int) { if x == nil { return 0 } size += proto.NestedStructureSize(1, x.Body) size += proto.NestedStructureSize(2, x.MetaHeader) size += proto.NestedStructureSize(3, x.VerifyHeader) return size } // StableMarshal marshals x in protobuf binary format with stable field order. // // If buffer length is less than x.StableSize(), new buffer is allocated. // // Returns any error encountered which did not allow writing the data completely. // Otherwise, returns the buffer in which the data is written. // // Structures with the same field values have the same binary format. func (x *LocalNodeInfoRequest) StableMarshal(buf []byte) []byte { if x == nil { return []byte{} } if buf == nil { buf = make([]byte, x.StableSize()) } var offset int offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body) offset += proto.NestedStructureMarshal(2, buf[offset:], x.MetaHeader) offset += proto.NestedStructureMarshal(3, buf[offset:], x.VerifyHeader) return buf } // StableSize returns the size of x in protobuf format. // // Structures with the same field values have the same binary size. func (x *LocalNodeInfoResponse_Body) StableSize() (size int) { if x == nil { return 0 } size += proto.NestedStructureSize(1, x.Version) size += proto.NestedStructureSize(2, x.NodeInfo) return size } // StableMarshal marshals x in protobuf binary format with stable field order. // // If buffer length is less than x.StableSize(), new buffer is allocated. // // Returns any error encountered which did not allow writing the data completely. // Otherwise, returns the buffer in which the data is written. // // Structures with the same field values have the same binary format. func (x *LocalNodeInfoResponse_Body) StableMarshal(buf []byte) []byte { if x == nil { return []byte{} } if buf == nil { buf = make([]byte, x.StableSize()) } var offset int offset += proto.NestedStructureMarshal(1, buf[offset:], x.Version) offset += proto.NestedStructureMarshal(2, buf[offset:], x.NodeInfo) return buf } // StableSize returns the size of x in protobuf format. // // Structures with the same field values have the same binary size. func (x *LocalNodeInfoResponse) StableSize() (size int) { if x == nil { return 0 } size += proto.NestedStructureSize(1, x.Body) size += proto.NestedStructureSize(2, x.MetaHeader) size += proto.NestedStructureSize(3, x.VerifyHeader) return size } // StableMarshal marshals x in protobuf binary format with stable field order. // // If buffer length is less than x.StableSize(), new buffer is allocated. // // Returns any error encountered which did not allow writing the data completely. // Otherwise, returns the buffer in which the data is written. // // Structures with the same field values have the same binary format. func (x *LocalNodeInfoResponse) StableMarshal(buf []byte) []byte { if x == nil { return []byte{} } if buf == nil { buf = make([]byte, x.StableSize()) } var offset int offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body) offset += proto.NestedStructureMarshal(2, buf[offset:], x.MetaHeader) offset += proto.NestedStructureMarshal(3, buf[offset:], x.VerifyHeader) return buf } // StableSize returns the size of x in protobuf format. // // Structures with the same field values have the same binary size. func (x *NetworkInfoRequest_Body) StableSize() (size int) { if x == nil { return 0 } return size } // StableMarshal marshals x in protobuf binary format with stable field order. // // If buffer length is less than x.StableSize(), new buffer is allocated. // // Returns any error encountered which did not allow writing the data completely. // Otherwise, returns the buffer in which the data is written. // // Structures with the same field values have the same binary format. func (x *NetworkInfoRequest_Body) StableMarshal(buf []byte) []byte { return buf } // StableSize returns the size of x in protobuf format. // // Structures with the same field values have the same binary size. func (x *NetworkInfoRequest) StableSize() (size int) { if x == nil { return 0 } size += proto.NestedStructureSize(1, x.Body) size += proto.NestedStructureSize(2, x.MetaHeader) size += proto.NestedStructureSize(3, x.VerifyHeader) return size } // StableMarshal marshals x in protobuf binary format with stable field order. // // If buffer length is less than x.StableSize(), new buffer is allocated. // // Returns any error encountered which did not allow writing the data completely. // Otherwise, returns the buffer in which the data is written. // // Structures with the same field values have the same binary format. func (x *NetworkInfoRequest) StableMarshal(buf []byte) []byte { if x == nil { return []byte{} } if buf == nil { buf = make([]byte, x.StableSize()) } var offset int offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body) offset += proto.NestedStructureMarshal(2, buf[offset:], x.MetaHeader) offset += proto.NestedStructureMarshal(3, buf[offset:], x.VerifyHeader) return buf } // StableSize returns the size of x in protobuf format. // // Structures with the same field values have the same binary size. func (x *NetworkInfoResponse_Body) StableSize() (size int) { if x == nil { return 0 } size += proto.NestedStructureSize(1, x.NetworkInfo) return size } // StableMarshal marshals x in protobuf binary format with stable field order. // // If buffer length is less than x.StableSize(), new buffer is allocated. // // Returns any error encountered which did not allow writing the data completely. // Otherwise, returns the buffer in which the data is written. // // Structures with the same field values have the same binary format. func (x *NetworkInfoResponse_Body) StableMarshal(buf []byte) []byte { if x == nil { return []byte{} } if buf == nil { buf = make([]byte, x.StableSize()) } var offset int offset += proto.NestedStructureMarshal(1, buf[offset:], x.NetworkInfo) return buf } // StableSize returns the size of x in protobuf format. // // Structures with the same field values have the same binary size. func (x *NetworkInfoResponse) StableSize() (size int) { if x == nil { return 0 } size += proto.NestedStructureSize(1, x.Body) size += proto.NestedStructureSize(2, x.MetaHeader) size += proto.NestedStructureSize(3, x.VerifyHeader) return size } // StableMarshal marshals x in protobuf binary format with stable field order. // // If buffer length is less than x.StableSize(), new buffer is allocated. // // Returns any error encountered which did not allow writing the data completely. // Otherwise, returns the buffer in which the data is written. // // Structures with the same field values have the same binary format. func (x *NetworkInfoResponse) StableMarshal(buf []byte) []byte { if x == nil { return []byte{} } if buf == nil { buf = make([]byte, x.StableSize()) } var offset int offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body) offset += proto.NestedStructureMarshal(2, buf[offset:], x.MetaHeader) offset += proto.NestedStructureMarshal(3, buf[offset:], x.VerifyHeader) return buf } // StableSize returns the size of x in protobuf format. // // Structures with the same field values have the same binary size. func (x *NetmapSnapshotRequest_Body) StableSize() (size int) { if x == nil { return 0 } return size } // StableMarshal marshals x in protobuf binary format with stable field order. // // If buffer length is less than x.StableSize(), new buffer is allocated. // // Returns any error encountered which did not allow writing the data completely. // Otherwise, returns the buffer in which the data is written. // // Structures with the same field values have the same binary format. func (x *NetmapSnapshotRequest_Body) StableMarshal(buf []byte) []byte { return buf } // StableSize returns the size of x in protobuf format. // // Structures with the same field values have the same binary size. func (x *NetmapSnapshotRequest) StableSize() (size int) { if x == nil { return 0 } size += proto.NestedStructureSize(1, x.Body) size += proto.NestedStructureSize(2, x.MetaHeader) size += proto.NestedStructureSize(3, x.VerifyHeader) return size } // StableMarshal marshals x in protobuf binary format with stable field order. // // If buffer length is less than x.StableSize(), new buffer is allocated. // // Returns any error encountered which did not allow writing the data completely. // Otherwise, returns the buffer in which the data is written. // // Structures with the same field values have the same binary format. func (x *NetmapSnapshotRequest) StableMarshal(buf []byte) []byte { if x == nil { return []byte{} } if buf == nil { buf = make([]byte, x.StableSize()) } var offset int offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body) offset += proto.NestedStructureMarshal(2, buf[offset:], x.MetaHeader) offset += proto.NestedStructureMarshal(3, buf[offset:], x.VerifyHeader) return buf } // StableSize returns the size of x in protobuf format. // // Structures with the same field values have the same binary size. func (x *NetmapSnapshotResponse_Body) StableSize() (size int) { if x == nil { return 0 } size += proto.NestedStructureSize(1, x.Netmap) return size } // StableMarshal marshals x in protobuf binary format with stable field order. // // If buffer length is less than x.StableSize(), new buffer is allocated. // // Returns any error encountered which did not allow writing the data completely. // Otherwise, returns the buffer in which the data is written. // // Structures with the same field values have the same binary format. func (x *NetmapSnapshotResponse_Body) StableMarshal(buf []byte) []byte { if x == nil { return []byte{} } if buf == nil { buf = make([]byte, x.StableSize()) } var offset int offset += proto.NestedStructureMarshal(1, buf[offset:], x.Netmap) return buf } // StableSize returns the size of x in protobuf format. // // Structures with the same field values have the same binary size. func (x *NetmapSnapshotResponse) StableSize() (size int) { if x == nil { return 0 } size += proto.NestedStructureSize(1, x.Body) size += proto.NestedStructureSize(2, x.MetaHeader) size += proto.NestedStructureSize(3, x.VerifyHeader) return size } // StableMarshal marshals x in protobuf binary format with stable field order. // // If buffer length is less than x.StableSize(), new buffer is allocated. // // Returns any error encountered which did not allow writing the data completely. // Otherwise, returns the buffer in which the data is written. // // Structures with the same field values have the same binary format. func (x *NetmapSnapshotResponse) StableMarshal(buf []byte) []byte { if x == nil { return []byte{} } if buf == nil { buf = make([]byte, x.StableSize()) } var offset int offset += proto.NestedStructureMarshal(1, buf[offset:], x.Body) offset += proto.NestedStructureMarshal(2, buf[offset:], x.MetaHeader) offset += proto.NestedStructureMarshal(3, buf[offset:], x.VerifyHeader) return buf }