forked from TrueCloudLab/frostfs-node
19c0a74e94
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
1548 lines
51 KiB
Go
Generated
1548 lines
51 KiB
Go
Generated
// Code generated by protoc-gen-go-neofs. DO NOT EDIT.
|
|
|
|
package control
|
|
|
|
import "github.com/nspcc-dev/neofs-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 *HealthCheckRequest_Body) StableSize() (size int) {
|
|
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 *HealthCheckRequest_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 *HealthCheckRequest) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *HealthCheckRequest) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *HealthCheckRequest) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *HealthCheckRequest) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *HealthCheckRequest) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *HealthCheckResponse_Body) StableSize() (size int) {
|
|
size += proto.EnumSize(1, int32(x.NetmapStatus))
|
|
size += proto.EnumSize(2, int32(x.HealthStatus))
|
|
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 *HealthCheckResponse_Body) StableMarshal(buf []byte) []byte {
|
|
if x == nil {
|
|
return []byte{}
|
|
}
|
|
if buf == nil {
|
|
buf = make([]byte, x.StableSize())
|
|
}
|
|
var offset int
|
|
offset += proto.EnumMarshal(1, buf[offset:], int32(x.NetmapStatus))
|
|
offset += proto.EnumMarshal(2, buf[offset:], int32(x.HealthStatus))
|
|
return buf
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *HealthCheckResponse) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *HealthCheckResponse) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *HealthCheckResponse) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *HealthCheckResponse) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *HealthCheckResponse) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *SetNetmapStatusRequest_Body) StableSize() (size int) {
|
|
size += proto.EnumSize(1, int32(x.Status))
|
|
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 *SetNetmapStatusRequest_Body) StableMarshal(buf []byte) []byte {
|
|
if x == nil {
|
|
return []byte{}
|
|
}
|
|
if buf == nil {
|
|
buf = make([]byte, x.StableSize())
|
|
}
|
|
var offset int
|
|
offset += proto.EnumMarshal(1, buf[offset:], int32(x.Status))
|
|
return buf
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *SetNetmapStatusRequest) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *SetNetmapStatusRequest) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *SetNetmapStatusRequest) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *SetNetmapStatusRequest) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *SetNetmapStatusRequest) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *SetNetmapStatusResponse_Body) StableSize() (size int) {
|
|
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 *SetNetmapStatusResponse_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 *SetNetmapStatusResponse) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *SetNetmapStatusResponse) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *SetNetmapStatusResponse) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *SetNetmapStatusResponse) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *SetNetmapStatusResponse) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *DropObjectsRequest_Body) StableSize() (size int) {
|
|
size += proto.RepeatedBytesSize(1, x.AddressList)
|
|
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 *DropObjectsRequest_Body) StableMarshal(buf []byte) []byte {
|
|
if x == nil {
|
|
return []byte{}
|
|
}
|
|
if buf == nil {
|
|
buf = make([]byte, x.StableSize())
|
|
}
|
|
var offset int
|
|
offset += proto.RepeatedBytesMarshal(1, buf[offset:], x.AddressList)
|
|
return buf
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *DropObjectsRequest) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *DropObjectsRequest) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *DropObjectsRequest) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *DropObjectsRequest) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *DropObjectsRequest) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *DropObjectsResponse_Body) StableSize() (size int) {
|
|
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 *DropObjectsResponse_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 *DropObjectsResponse) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *DropObjectsResponse) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *DropObjectsResponse) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *DropObjectsResponse) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *DropObjectsResponse) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *ListShardsRequest_Body) StableSize() (size int) {
|
|
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 *ListShardsRequest_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 *ListShardsRequest) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *ListShardsRequest) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *ListShardsRequest) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *ListShardsRequest) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *ListShardsRequest) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *ListShardsResponse_Body) StableSize() (size int) {
|
|
for i := range x.Shards {
|
|
size += proto.NestedStructureSize(1, x.Shards[i])
|
|
}
|
|
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 *ListShardsResponse_Body) StableMarshal(buf []byte) []byte {
|
|
if x == nil {
|
|
return []byte{}
|
|
}
|
|
if buf == nil {
|
|
buf = make([]byte, x.StableSize())
|
|
}
|
|
var offset int
|
|
for i := range x.Shards {
|
|
offset += proto.NestedStructureMarshal(1, buf[offset:], x.Shards[i])
|
|
}
|
|
return buf
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *ListShardsResponse) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *ListShardsResponse) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *ListShardsResponse) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *ListShardsResponse) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *ListShardsResponse) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *SetShardModeRequest_Body) StableSize() (size int) {
|
|
size += proto.RepeatedBytesSize(1, x.Shard_ID)
|
|
size += proto.EnumSize(2, int32(x.Mode))
|
|
size += proto.BoolSize(3, x.ResetErrorCounter)
|
|
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 *SetShardModeRequest_Body) StableMarshal(buf []byte) []byte {
|
|
if x == nil {
|
|
return []byte{}
|
|
}
|
|
if buf == nil {
|
|
buf = make([]byte, x.StableSize())
|
|
}
|
|
var offset int
|
|
offset += proto.RepeatedBytesMarshal(1, buf[offset:], x.Shard_ID)
|
|
offset += proto.EnumMarshal(2, buf[offset:], int32(x.Mode))
|
|
offset += proto.BoolMarshal(3, buf[offset:], x.ResetErrorCounter)
|
|
return buf
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *SetShardModeRequest) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *SetShardModeRequest) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *SetShardModeRequest) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *SetShardModeRequest) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *SetShardModeRequest) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *SetShardModeResponse_Body) StableSize() (size int) {
|
|
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 *SetShardModeResponse_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 *SetShardModeResponse) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *SetShardModeResponse) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *SetShardModeResponse) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *SetShardModeResponse) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *SetShardModeResponse) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *DumpShardRequest_Body) StableSize() (size int) {
|
|
size += proto.BytesSize(1, x.Shard_ID)
|
|
size += proto.StringSize(2, x.Filepath)
|
|
size += proto.BoolSize(3, x.IgnoreErrors)
|
|
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 *DumpShardRequest_Body) StableMarshal(buf []byte) []byte {
|
|
if x == nil {
|
|
return []byte{}
|
|
}
|
|
if buf == nil {
|
|
buf = make([]byte, x.StableSize())
|
|
}
|
|
var offset int
|
|
offset += proto.BytesMarshal(1, buf[offset:], x.Shard_ID)
|
|
offset += proto.StringMarshal(2, buf[offset:], x.Filepath)
|
|
offset += proto.BoolMarshal(3, buf[offset:], x.IgnoreErrors)
|
|
return buf
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *DumpShardRequest) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *DumpShardRequest) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *DumpShardRequest) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *DumpShardRequest) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *DumpShardRequest) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *DumpShardResponse_Body) StableSize() (size int) {
|
|
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 *DumpShardResponse_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 *DumpShardResponse) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *DumpShardResponse) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *DumpShardResponse) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *DumpShardResponse) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *DumpShardResponse) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *RestoreShardRequest_Body) StableSize() (size int) {
|
|
size += proto.BytesSize(1, x.Shard_ID)
|
|
size += proto.StringSize(2, x.Filepath)
|
|
size += proto.BoolSize(3, x.IgnoreErrors)
|
|
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 *RestoreShardRequest_Body) StableMarshal(buf []byte) []byte {
|
|
if x == nil {
|
|
return []byte{}
|
|
}
|
|
if buf == nil {
|
|
buf = make([]byte, x.StableSize())
|
|
}
|
|
var offset int
|
|
offset += proto.BytesMarshal(1, buf[offset:], x.Shard_ID)
|
|
offset += proto.StringMarshal(2, buf[offset:], x.Filepath)
|
|
offset += proto.BoolMarshal(3, buf[offset:], x.IgnoreErrors)
|
|
return buf
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *RestoreShardRequest) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *RestoreShardRequest) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *RestoreShardRequest) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *RestoreShardRequest) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *RestoreShardRequest) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *RestoreShardResponse_Body) StableSize() (size int) {
|
|
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 *RestoreShardResponse_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 *RestoreShardResponse) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *RestoreShardResponse) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *RestoreShardResponse) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *RestoreShardResponse) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *RestoreShardResponse) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *SynchronizeTreeRequest_Body) StableSize() (size int) {
|
|
size += proto.BytesSize(1, x.ContainerId)
|
|
size += proto.StringSize(2, x.TreeId)
|
|
size += proto.UInt64Size(3, x.Height)
|
|
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 *SynchronizeTreeRequest_Body) StableMarshal(buf []byte) []byte {
|
|
if x == nil {
|
|
return []byte{}
|
|
}
|
|
if buf == nil {
|
|
buf = make([]byte, x.StableSize())
|
|
}
|
|
var offset int
|
|
offset += proto.BytesMarshal(1, buf[offset:], x.ContainerId)
|
|
offset += proto.StringMarshal(2, buf[offset:], x.TreeId)
|
|
offset += proto.UInt64Marshal(3, buf[offset:], x.Height)
|
|
return buf
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *SynchronizeTreeRequest) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *SynchronizeTreeRequest) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *SynchronizeTreeRequest) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *SynchronizeTreeRequest) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *SynchronizeTreeRequest) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *SynchronizeTreeResponse_Body) StableSize() (size int) {
|
|
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 *SynchronizeTreeResponse_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 *SynchronizeTreeResponse) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *SynchronizeTreeResponse) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *SynchronizeTreeResponse) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *SynchronizeTreeResponse) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *SynchronizeTreeResponse) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *EvacuateShardRequest_Body) StableSize() (size int) {
|
|
size += proto.RepeatedBytesSize(1, x.Shard_ID)
|
|
size += proto.BoolSize(2, x.IgnoreErrors)
|
|
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 *EvacuateShardRequest_Body) StableMarshal(buf []byte) []byte {
|
|
if x == nil {
|
|
return []byte{}
|
|
}
|
|
if buf == nil {
|
|
buf = make([]byte, x.StableSize())
|
|
}
|
|
var offset int
|
|
offset += proto.RepeatedBytesMarshal(1, buf[offset:], x.Shard_ID)
|
|
offset += proto.BoolMarshal(2, buf[offset:], x.IgnoreErrors)
|
|
return buf
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *EvacuateShardRequest) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *EvacuateShardRequest) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *EvacuateShardRequest) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *EvacuateShardRequest) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *EvacuateShardRequest) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *EvacuateShardResponse_Body) StableSize() (size int) {
|
|
size += proto.UInt32Size(1, x.Count)
|
|
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 *EvacuateShardResponse_Body) StableMarshal(buf []byte) []byte {
|
|
if x == nil {
|
|
return []byte{}
|
|
}
|
|
if buf == nil {
|
|
buf = make([]byte, x.StableSize())
|
|
}
|
|
var offset int
|
|
offset += proto.UInt32Marshal(1, buf[offset:], x.Count)
|
|
return buf
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *EvacuateShardResponse) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *EvacuateShardResponse) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *EvacuateShardResponse) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *EvacuateShardResponse) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *EvacuateShardResponse) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *FlushCacheRequest_Body) StableSize() (size int) {
|
|
size += proto.RepeatedBytesSize(1, x.Shard_ID)
|
|
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 *FlushCacheRequest_Body) StableMarshal(buf []byte) []byte {
|
|
if x == nil {
|
|
return []byte{}
|
|
}
|
|
if buf == nil {
|
|
buf = make([]byte, x.StableSize())
|
|
}
|
|
var offset int
|
|
offset += proto.RepeatedBytesMarshal(1, buf[offset:], x.Shard_ID)
|
|
return buf
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *FlushCacheRequest) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *FlushCacheRequest) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *FlushCacheRequest) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *FlushCacheRequest) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *FlushCacheRequest) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|
|
|
|
// StableSize returns the size of x in protobuf format.
|
|
//
|
|
// Structures with the same field values have the same binary size.
|
|
func (x *FlushCacheResponse_Body) StableSize() (size int) {
|
|
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 *FlushCacheResponse_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 *FlushCacheResponse) StableSize() (size int) {
|
|
size += proto.NestedStructureSize(1, x.Body)
|
|
size += proto.NestedStructureSize(2, x.Signature)
|
|
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 *FlushCacheResponse) 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.Signature)
|
|
return buf
|
|
}
|
|
|
|
// ReadSignedData fills buf with signed data of x.
|
|
// If buffer length is less than x.SignedDataSize(), 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 signed data.
|
|
func (x *FlushCacheResponse) SignedDataSize() int {
|
|
return x.GetBody().StableSize()
|
|
}
|
|
|
|
// SignedDataSize returns size of the request signed data in bytes.
|
|
//
|
|
// Structures with the same field values have the same signed data size.
|
|
func (x *FlushCacheResponse) ReadSignedData(buf []byte) ([]byte, error) {
|
|
return x.GetBody().StableMarshal(buf), nil
|
|
}
|
|
|
|
func (x *FlushCacheResponse) SetSignature(sig *Signature) {
|
|
x.Signature = sig
|
|
}
|