2735 lines
64 KiB
Go
2735 lines
64 KiB
Go
// Code generated by protoc-gen-gogo. DO NOT EDIT.
|
|
// source: commonfile/fileproto/protos/file.proto
|
|
|
|
package fileproto
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/gogo/protobuf/proto"
|
|
io "io"
|
|
math "math"
|
|
math_bits "math/bits"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type ErrCodes int32
|
|
|
|
const (
|
|
ErrCodes_Unexpected ErrCodes = 0
|
|
ErrCodes_CIDNotFound ErrCodes = 1
|
|
ErrCodes_ErrorOffset ErrCodes = 200
|
|
)
|
|
|
|
var ErrCodes_name = map[int32]string{
|
|
0: "Unexpected",
|
|
1: "CIDNotFound",
|
|
200: "ErrorOffset",
|
|
}
|
|
|
|
var ErrCodes_value = map[string]int32{
|
|
"Unexpected": 0,
|
|
"CIDNotFound": 1,
|
|
"ErrorOffset": 200,
|
|
}
|
|
|
|
func (x ErrCodes) String() string {
|
|
return proto.EnumName(ErrCodes_name, int32(x))
|
|
}
|
|
|
|
func (ErrCodes) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{0}
|
|
}
|
|
|
|
type AvailabilityStatus int32
|
|
|
|
const (
|
|
AvailabilityStatus_NotExists AvailabilityStatus = 0
|
|
AvailabilityStatus_Exists AvailabilityStatus = 1
|
|
AvailabilityStatus_ExistsInSpace AvailabilityStatus = 2
|
|
)
|
|
|
|
var AvailabilityStatus_name = map[int32]string{
|
|
0: "NotExists",
|
|
1: "Exists",
|
|
2: "ExistsInSpace",
|
|
}
|
|
|
|
var AvailabilityStatus_value = map[string]int32{
|
|
"NotExists": 0,
|
|
"Exists": 1,
|
|
"ExistsInSpace": 2,
|
|
}
|
|
|
|
func (x AvailabilityStatus) String() string {
|
|
return proto.EnumName(AvailabilityStatus_name, int32(x))
|
|
}
|
|
|
|
func (AvailabilityStatus) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{1}
|
|
}
|
|
|
|
type CIDError int32
|
|
|
|
const (
|
|
CIDError_CIDErrorOk CIDError = 0
|
|
CIDError_CIDErrorNotFound CIDError = 1
|
|
CIDError_CIDErrorUnexpected CIDError = 2
|
|
)
|
|
|
|
var CIDError_name = map[int32]string{
|
|
0: "CIDErrorOk",
|
|
1: "CIDErrorNotFound",
|
|
2: "CIDErrorUnexpected",
|
|
}
|
|
|
|
var CIDError_value = map[string]int32{
|
|
"CIDErrorOk": 0,
|
|
"CIDErrorNotFound": 1,
|
|
"CIDErrorUnexpected": 2,
|
|
}
|
|
|
|
func (x CIDError) String() string {
|
|
return proto.EnumName(CIDError_name, int32(x))
|
|
}
|
|
|
|
func (CIDError) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{2}
|
|
}
|
|
|
|
type BlockGetRequest struct {
|
|
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
|
|
Cid []byte `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"`
|
|
}
|
|
|
|
func (m *BlockGetRequest) Reset() { *m = BlockGetRequest{} }
|
|
func (m *BlockGetRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*BlockGetRequest) ProtoMessage() {}
|
|
func (*BlockGetRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{0}
|
|
}
|
|
func (m *BlockGetRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BlockGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BlockGetRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BlockGetRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlockGetRequest.Merge(m, src)
|
|
}
|
|
func (m *BlockGetRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BlockGetRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlockGetRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlockGetRequest proto.InternalMessageInfo
|
|
|
|
func (m *BlockGetRequest) GetSpaceId() string {
|
|
if m != nil {
|
|
return m.SpaceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *BlockGetRequest) GetCid() []byte {
|
|
if m != nil {
|
|
return m.Cid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BlockGetResponse struct {
|
|
Cid []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
Code CIDError `protobuf:"varint,3,opt,name=code,proto3,enum=anyFile.CIDError" json:"code,omitempty"`
|
|
}
|
|
|
|
func (m *BlockGetResponse) Reset() { *m = BlockGetResponse{} }
|
|
func (m *BlockGetResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BlockGetResponse) ProtoMessage() {}
|
|
func (*BlockGetResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{1}
|
|
}
|
|
func (m *BlockGetResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BlockGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BlockGetResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BlockGetResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlockGetResponse.Merge(m, src)
|
|
}
|
|
func (m *BlockGetResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BlockGetResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlockGetResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlockGetResponse proto.InternalMessageInfo
|
|
|
|
func (m *BlockGetResponse) GetCid() []byte {
|
|
if m != nil {
|
|
return m.Cid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BlockGetResponse) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BlockGetResponse) GetCode() CIDError {
|
|
if m != nil {
|
|
return m.Code
|
|
}
|
|
return CIDError_CIDErrorOk
|
|
}
|
|
|
|
type BlockPushRequest struct {
|
|
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
|
|
Cid []byte `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"`
|
|
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
|
}
|
|
|
|
func (m *BlockPushRequest) Reset() { *m = BlockPushRequest{} }
|
|
func (m *BlockPushRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*BlockPushRequest) ProtoMessage() {}
|
|
func (*BlockPushRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{2}
|
|
}
|
|
func (m *BlockPushRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BlockPushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BlockPushRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BlockPushRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlockPushRequest.Merge(m, src)
|
|
}
|
|
func (m *BlockPushRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BlockPushRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlockPushRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlockPushRequest proto.InternalMessageInfo
|
|
|
|
func (m *BlockPushRequest) GetSpaceId() string {
|
|
if m != nil {
|
|
return m.SpaceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *BlockPushRequest) GetCid() []byte {
|
|
if m != nil {
|
|
return m.Cid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BlockPushRequest) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BlockPushResponse struct {
|
|
}
|
|
|
|
func (m *BlockPushResponse) Reset() { *m = BlockPushResponse{} }
|
|
func (m *BlockPushResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BlockPushResponse) ProtoMessage() {}
|
|
func (*BlockPushResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{3}
|
|
}
|
|
func (m *BlockPushResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BlockPushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BlockPushResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BlockPushResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlockPushResponse.Merge(m, src)
|
|
}
|
|
func (m *BlockPushResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BlockPushResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlockPushResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlockPushResponse proto.InternalMessageInfo
|
|
|
|
type BlocksDeleteRequest struct {
|
|
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
|
|
Cids [][]byte `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"`
|
|
}
|
|
|
|
func (m *BlocksDeleteRequest) Reset() { *m = BlocksDeleteRequest{} }
|
|
func (m *BlocksDeleteRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*BlocksDeleteRequest) ProtoMessage() {}
|
|
func (*BlocksDeleteRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{4}
|
|
}
|
|
func (m *BlocksDeleteRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BlocksDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BlocksDeleteRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BlocksDeleteRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlocksDeleteRequest.Merge(m, src)
|
|
}
|
|
func (m *BlocksDeleteRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BlocksDeleteRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlocksDeleteRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlocksDeleteRequest proto.InternalMessageInfo
|
|
|
|
func (m *BlocksDeleteRequest) GetSpaceId() string {
|
|
if m != nil {
|
|
return m.SpaceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *BlocksDeleteRequest) GetCids() [][]byte {
|
|
if m != nil {
|
|
return m.Cids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BlocksDeleteResponse struct {
|
|
}
|
|
|
|
func (m *BlocksDeleteResponse) Reset() { *m = BlocksDeleteResponse{} }
|
|
func (m *BlocksDeleteResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BlocksDeleteResponse) ProtoMessage() {}
|
|
func (*BlocksDeleteResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{5}
|
|
}
|
|
func (m *BlocksDeleteResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BlocksDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BlocksDeleteResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BlocksDeleteResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlocksDeleteResponse.Merge(m, src)
|
|
}
|
|
func (m *BlocksDeleteResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BlocksDeleteResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlocksDeleteResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlocksDeleteResponse proto.InternalMessageInfo
|
|
|
|
type BlocksCheckRequest struct {
|
|
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
|
|
Cids [][]byte `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"`
|
|
}
|
|
|
|
func (m *BlocksCheckRequest) Reset() { *m = BlocksCheckRequest{} }
|
|
func (m *BlocksCheckRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*BlocksCheckRequest) ProtoMessage() {}
|
|
func (*BlocksCheckRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{6}
|
|
}
|
|
func (m *BlocksCheckRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BlocksCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BlocksCheckRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BlocksCheckRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlocksCheckRequest.Merge(m, src)
|
|
}
|
|
func (m *BlocksCheckRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BlocksCheckRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlocksCheckRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlocksCheckRequest proto.InternalMessageInfo
|
|
|
|
func (m *BlocksCheckRequest) GetSpaceId() string {
|
|
if m != nil {
|
|
return m.SpaceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *BlocksCheckRequest) GetCids() [][]byte {
|
|
if m != nil {
|
|
return m.Cids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BlocksCheckResponse struct {
|
|
BlocksAvailability []*BlockAvailability `protobuf:"bytes,1,rep,name=blocksAvailability,proto3" json:"blocksAvailability,omitempty"`
|
|
}
|
|
|
|
func (m *BlocksCheckResponse) Reset() { *m = BlocksCheckResponse{} }
|
|
func (m *BlocksCheckResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BlocksCheckResponse) ProtoMessage() {}
|
|
func (*BlocksCheckResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{7}
|
|
}
|
|
func (m *BlocksCheckResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BlocksCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BlocksCheckResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BlocksCheckResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlocksCheckResponse.Merge(m, src)
|
|
}
|
|
func (m *BlocksCheckResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BlocksCheckResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlocksCheckResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlocksCheckResponse proto.InternalMessageInfo
|
|
|
|
func (m *BlocksCheckResponse) GetBlocksAvailability() []*BlockAvailability {
|
|
if m != nil {
|
|
return m.BlocksAvailability
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BlockAvailability struct {
|
|
Cid []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
|
|
Status AvailabilityStatus `protobuf:"varint,2,opt,name=status,proto3,enum=anyFile.AvailabilityStatus" json:"status,omitempty"`
|
|
}
|
|
|
|
func (m *BlockAvailability) Reset() { *m = BlockAvailability{} }
|
|
func (m *BlockAvailability) String() string { return proto.CompactTextString(m) }
|
|
func (*BlockAvailability) ProtoMessage() {}
|
|
func (*BlockAvailability) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{8}
|
|
}
|
|
func (m *BlockAvailability) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BlockAvailability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BlockAvailability.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BlockAvailability) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlockAvailability.Merge(m, src)
|
|
}
|
|
func (m *BlockAvailability) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BlockAvailability) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlockAvailability.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlockAvailability proto.InternalMessageInfo
|
|
|
|
func (m *BlockAvailability) GetCid() []byte {
|
|
if m != nil {
|
|
return m.Cid
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *BlockAvailability) GetStatus() AvailabilityStatus {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return AvailabilityStatus_NotExists
|
|
}
|
|
|
|
type BlocksBindRequest struct {
|
|
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
|
|
Cids [][]byte `protobuf:"bytes,2,rep,name=cids,proto3" json:"cids,omitempty"`
|
|
}
|
|
|
|
func (m *BlocksBindRequest) Reset() { *m = BlocksBindRequest{} }
|
|
func (m *BlocksBindRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*BlocksBindRequest) ProtoMessage() {}
|
|
func (*BlocksBindRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{9}
|
|
}
|
|
func (m *BlocksBindRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BlocksBindRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BlocksBindRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BlocksBindRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlocksBindRequest.Merge(m, src)
|
|
}
|
|
func (m *BlocksBindRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BlocksBindRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlocksBindRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlocksBindRequest proto.InternalMessageInfo
|
|
|
|
func (m *BlocksBindRequest) GetSpaceId() string {
|
|
if m != nil {
|
|
return m.SpaceId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *BlocksBindRequest) GetCids() [][]byte {
|
|
if m != nil {
|
|
return m.Cids
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BlocksBindResponse struct {
|
|
}
|
|
|
|
func (m *BlocksBindResponse) Reset() { *m = BlocksBindResponse{} }
|
|
func (m *BlocksBindResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*BlocksBindResponse) ProtoMessage() {}
|
|
func (*BlocksBindResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{10}
|
|
}
|
|
func (m *BlocksBindResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *BlocksBindResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_BlocksBindResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *BlocksBindResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_BlocksBindResponse.Merge(m, src)
|
|
}
|
|
func (m *BlocksBindResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *BlocksBindResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_BlocksBindResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_BlocksBindResponse proto.InternalMessageInfo
|
|
|
|
type CheckRequest struct {
|
|
}
|
|
|
|
func (m *CheckRequest) Reset() { *m = CheckRequest{} }
|
|
func (m *CheckRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CheckRequest) ProtoMessage() {}
|
|
func (*CheckRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{11}
|
|
}
|
|
func (m *CheckRequest) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *CheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_CheckRequest.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *CheckRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CheckRequest.Merge(m, src)
|
|
}
|
|
func (m *CheckRequest) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *CheckRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CheckRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CheckRequest proto.InternalMessageInfo
|
|
|
|
type CheckResponse struct {
|
|
SpaceIds []string `protobuf:"bytes,1,rep,name=spaceIds,proto3" json:"spaceIds,omitempty"`
|
|
}
|
|
|
|
func (m *CheckResponse) Reset() { *m = CheckResponse{} }
|
|
func (m *CheckResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CheckResponse) ProtoMessage() {}
|
|
func (*CheckResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fd665a7e11c833d5, []int{12}
|
|
}
|
|
func (m *CheckResponse) XXX_Unmarshal(b []byte) error {
|
|
return m.Unmarshal(b)
|
|
}
|
|
func (m *CheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
if deterministic {
|
|
return xxx_messageInfo_CheckResponse.Marshal(b, m, deterministic)
|
|
} else {
|
|
b = b[:cap(b)]
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return b[:n], nil
|
|
}
|
|
}
|
|
func (m *CheckResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CheckResponse.Merge(m, src)
|
|
}
|
|
func (m *CheckResponse) XXX_Size() int {
|
|
return m.Size()
|
|
}
|
|
func (m *CheckResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CheckResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CheckResponse proto.InternalMessageInfo
|
|
|
|
func (m *CheckResponse) GetSpaceIds() []string {
|
|
if m != nil {
|
|
return m.SpaceIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("anyFile.ErrCodes", ErrCodes_name, ErrCodes_value)
|
|
proto.RegisterEnum("anyFile.AvailabilityStatus", AvailabilityStatus_name, AvailabilityStatus_value)
|
|
proto.RegisterEnum("anyFile.CIDError", CIDError_name, CIDError_value)
|
|
proto.RegisterType((*BlockGetRequest)(nil), "anyFile.BlockGetRequest")
|
|
proto.RegisterType((*BlockGetResponse)(nil), "anyFile.BlockGetResponse")
|
|
proto.RegisterType((*BlockPushRequest)(nil), "anyFile.BlockPushRequest")
|
|
proto.RegisterType((*BlockPushResponse)(nil), "anyFile.BlockPushResponse")
|
|
proto.RegisterType((*BlocksDeleteRequest)(nil), "anyFile.BlocksDeleteRequest")
|
|
proto.RegisterType((*BlocksDeleteResponse)(nil), "anyFile.BlocksDeleteResponse")
|
|
proto.RegisterType((*BlocksCheckRequest)(nil), "anyFile.BlocksCheckRequest")
|
|
proto.RegisterType((*BlocksCheckResponse)(nil), "anyFile.BlocksCheckResponse")
|
|
proto.RegisterType((*BlockAvailability)(nil), "anyFile.BlockAvailability")
|
|
proto.RegisterType((*BlocksBindRequest)(nil), "anyFile.BlocksBindRequest")
|
|
proto.RegisterType((*BlocksBindResponse)(nil), "anyFile.BlocksBindResponse")
|
|
proto.RegisterType((*CheckRequest)(nil), "anyFile.CheckRequest")
|
|
proto.RegisterType((*CheckResponse)(nil), "anyFile.CheckResponse")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("commonfile/fileproto/protos/file.proto", fileDescriptor_fd665a7e11c833d5)
|
|
}
|
|
|
|
var fileDescriptor_fd665a7e11c833d5 = []byte{
|
|
// 621 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcf, 0x4e, 0xdb, 0x4e,
|
|
0x10, 0xce, 0x26, 0xf9, 0x01, 0x99, 0x40, 0x30, 0x43, 0x7e, 0xc8, 0x35, 0x6d, 0x14, 0x59, 0x6a,
|
|
0x15, 0x51, 0x29, 0x54, 0x41, 0xea, 0x8d, 0x03, 0xf9, 0x03, 0xa4, 0x95, 0xa0, 0x32, 0xea, 0x85,
|
|
0x4b, 0x65, 0xec, 0x45, 0x58, 0x18, 0x6f, 0xea, 0xdd, 0x54, 0xf0, 0x16, 0x7d, 0x8a, 0x3e, 0x0b,
|
|
0x47, 0x8e, 0x3d, 0x56, 0xf0, 0x22, 0x95, 0xd7, 0xeb, 0x64, 0x9d, 0xba, 0xaa, 0xc4, 0x25, 0x99,
|
|
0x9d, 0x3f, 0xdf, 0x7c, 0xfb, 0xed, 0x8c, 0xe1, 0x8d, 0xc7, 0x6e, 0x6e, 0x58, 0x74, 0x19, 0x84,
|
|
0x74, 0x37, 0xf9, 0x99, 0xc4, 0x4c, 0xb0, 0x5d, 0xf9, 0xcb, 0xa5, 0xa3, 0x2b, 0x6d, 0x5c, 0x76,
|
|
0xa3, 0xbb, 0xc3, 0x20, 0xa4, 0xf6, 0x3e, 0xac, 0xf7, 0x43, 0xe6, 0x5d, 0x1f, 0x51, 0xe1, 0xd0,
|
|
0xaf, 0x53, 0xca, 0x05, 0x9a, 0xb0, 0xcc, 0x27, 0xae, 0x47, 0xc7, 0xbe, 0x49, 0xda, 0xa4, 0x53,
|
|
0x73, 0xb2, 0x23, 0x1a, 0x50, 0xf1, 0x02, 0xdf, 0x2c, 0xb7, 0x49, 0x67, 0xd5, 0x49, 0x4c, 0xfb,
|
|
0x0b, 0x18, 0xf3, 0x72, 0x3e, 0x61, 0x11, 0xa7, 0x59, 0x16, 0x99, 0x65, 0x21, 0x42, 0xd5, 0x77,
|
|
0x85, 0xab, 0x0a, 0xa5, 0x8d, 0xaf, 0xa1, 0xea, 0x31, 0x9f, 0x9a, 0x95, 0x36, 0xe9, 0x34, 0x7a,
|
|
0x1b, 0x5d, 0x45, 0xa8, 0x3b, 0x18, 0x0f, 0x47, 0x71, 0xcc, 0x62, 0x47, 0x86, 0x6d, 0x47, 0x35,
|
|
0xf8, 0x34, 0xe5, 0x57, 0xcf, 0x20, 0x38, 0x6b, 0x5d, 0x99, 0xb7, 0xb6, 0x37, 0x61, 0x43, 0xc3,
|
|
0x4c, 0x59, 0xdb, 0x03, 0xd8, 0x94, 0x4e, 0x3e, 0xa4, 0x21, 0x15, 0xf4, 0xdf, 0xbd, 0x10, 0xaa,
|
|
0x5e, 0xe0, 0x73, 0xb3, 0xdc, 0xae, 0x24, 0xc8, 0x89, 0x6d, 0x6f, 0x41, 0x33, 0x0f, 0xa2, 0xc0,
|
|
0xfb, 0x80, 0xa9, 0x7f, 0x70, 0x45, 0xbd, 0xeb, 0xe7, 0x61, 0xbb, 0x19, 0x41, 0x85, 0xa1, 0xd4,
|
|
0xfe, 0x00, 0x78, 0x21, 0xdd, 0x07, 0xdf, 0xdc, 0x20, 0x74, 0x2f, 0x82, 0x30, 0x10, 0x77, 0x26,
|
|
0x69, 0x57, 0x3a, 0xf5, 0x9e, 0x35, 0x53, 0x55, 0x56, 0xea, 0x19, 0x4e, 0x41, 0x95, 0x7d, 0xae,
|
|
0x84, 0xd1, 0x9d, 0x05, 0xcf, 0xb9, 0x07, 0x4b, 0x5c, 0xb8, 0x62, 0xca, 0xa5, 0xd0, 0x8d, 0xde,
|
|
0xf6, 0xac, 0x8d, 0x5e, 0x78, 0x26, 0x53, 0x1c, 0x95, 0x6a, 0x1f, 0x28, 0x6c, 0xde, 0x0f, 0x22,
|
|
0xff, 0x79, 0x0a, 0x34, 0x33, 0x15, 0x53, 0x08, 0xa5, 0x6d, 0x03, 0x56, 0x75, 0x55, 0xed, 0xb7,
|
|
0xb0, 0x96, 0x57, 0xc8, 0x82, 0x15, 0x85, 0xca, 0xa5, 0x2e, 0x35, 0x67, 0x76, 0xde, 0xd9, 0x87,
|
|
0x95, 0x51, 0x1c, 0x0f, 0x98, 0x4f, 0x39, 0x36, 0x00, 0x3e, 0x47, 0xf4, 0x76, 0x42, 0x3d, 0x41,
|
|
0x7d, 0xa3, 0x84, 0xeb, 0x50, 0x1f, 0x8c, 0x87, 0x27, 0x4c, 0x1c, 0xb2, 0x69, 0xe4, 0x1b, 0x04,
|
|
0x0d, 0xa8, 0xcb, 0xd1, 0x3c, 0xbd, 0xbc, 0xe4, 0x54, 0x18, 0xf7, 0x64, 0xa7, 0x0f, 0xf8, 0xe7,
|
|
0x95, 0x71, 0x0d, 0x6a, 0x27, 0x4c, 0x8c, 0x6e, 0x03, 0x2e, 0xb8, 0x51, 0x42, 0x80, 0x25, 0x65,
|
|
0x13, 0xdc, 0x80, 0xb5, 0xd4, 0x1e, 0x47, 0x67, 0x09, 0x07, 0xa3, 0xbc, 0x73, 0x0c, 0x2b, 0xd9,
|
|
0xcc, 0x27, 0x14, 0x32, 0xfb, 0xf4, 0xda, 0x28, 0x61, 0x13, 0x8c, 0xec, 0xac, 0xf1, 0xd8, 0x02,
|
|
0xcc, 0xbc, 0x1a, 0xe1, 0x72, 0xef, 0x47, 0x05, 0xaa, 0xc9, 0x33, 0xe0, 0x10, 0x6a, 0xa9, 0x50,
|
|
0x47, 0x54, 0xa0, 0x99, 0x1f, 0x82, 0xf9, 0xa2, 0x5b, 0x2f, 0x0a, 0x22, 0xa9, 0x66, 0x1d, 0xf2,
|
|
0x8e, 0x60, 0x5f, 0xa1, 0x24, 0x6b, 0x82, 0x0b, 0xb9, 0xda, 0x3a, 0x5a, 0x56, 0x51, 0x48, 0x69,
|
|
0x7f, 0x0c, 0x75, 0x6d, 0x68, 0x71, 0x3b, 0x9f, 0x9a, 0x5b, 0x07, 0xeb, 0x65, 0x71, 0x50, 0x21,
|
|
0x8d, 0x00, 0xe6, 0x8f, 0x8f, 0x0b, 0x3d, 0xf5, 0xa1, 0xb2, 0xb6, 0x0b, 0x63, 0x0a, 0xe6, 0x23,
|
|
0xac, 0xea, 0x1b, 0x8a, 0x8b, 0x4d, 0x73, 0xdb, 0x6f, 0xbd, 0xfa, 0x4b, 0x54, 0x81, 0xbd, 0x87,
|
|
0xff, 0xd2, 0x7b, 0xfd, 0x3f, 0xff, 0x7c, 0xe9, 0x37, 0xda, 0x5a, 0x74, 0xa7, 0x75, 0xfd, 0xee,
|
|
0xfd, 0x63, 0x8b, 0x3c, 0x3c, 0xb6, 0xc8, 0xaf, 0xc7, 0x16, 0xf9, 0xfe, 0xd4, 0x2a, 0x3d, 0x3c,
|
|
0xb5, 0x4a, 0x3f, 0x9f, 0x5a, 0xa5, 0xf3, 0x66, 0xd1, 0xf7, 0xfb, 0x62, 0x49, 0xfe, 0xed, 0xfd,
|
|
0x0e, 0x00, 0x00, 0xff, 0xff, 0x2e, 0x99, 0x8c, 0x2e, 0xde, 0x05, 0x00, 0x00,
|
|
}
|
|
|
|
func (m *BlockGetRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BlockGetRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BlockGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Cid) > 0 {
|
|
i -= len(m.Cid)
|
|
copy(dAtA[i:], m.Cid)
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.Cid)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.SpaceId) > 0 {
|
|
i -= len(m.SpaceId)
|
|
copy(dAtA[i:], m.SpaceId)
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.SpaceId)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BlockGetResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BlockGetResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BlockGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Code != 0 {
|
|
i = encodeVarintFile(dAtA, i, uint64(m.Code))
|
|
i--
|
|
dAtA[i] = 0x18
|
|
}
|
|
if len(m.Data) > 0 {
|
|
i -= len(m.Data)
|
|
copy(dAtA[i:], m.Data)
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.Data)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.Cid) > 0 {
|
|
i -= len(m.Cid)
|
|
copy(dAtA[i:], m.Cid)
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.Cid)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BlockPushRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BlockPushRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BlockPushRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Data) > 0 {
|
|
i -= len(m.Data)
|
|
copy(dAtA[i:], m.Data)
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.Data)))
|
|
i--
|
|
dAtA[i] = 0x1a
|
|
}
|
|
if len(m.Cid) > 0 {
|
|
i -= len(m.Cid)
|
|
copy(dAtA[i:], m.Cid)
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.Cid)))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
if len(m.SpaceId) > 0 {
|
|
i -= len(m.SpaceId)
|
|
copy(dAtA[i:], m.SpaceId)
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.SpaceId)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BlockPushResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BlockPushResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BlockPushResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BlocksDeleteRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BlocksDeleteRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BlocksDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Cids) > 0 {
|
|
for iNdEx := len(m.Cids) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.Cids[iNdEx])
|
|
copy(dAtA[i:], m.Cids[iNdEx])
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.Cids[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
}
|
|
if len(m.SpaceId) > 0 {
|
|
i -= len(m.SpaceId)
|
|
copy(dAtA[i:], m.SpaceId)
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.SpaceId)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BlocksDeleteResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BlocksDeleteResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BlocksDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BlocksCheckRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BlocksCheckRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BlocksCheckRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Cids) > 0 {
|
|
for iNdEx := len(m.Cids) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.Cids[iNdEx])
|
|
copy(dAtA[i:], m.Cids[iNdEx])
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.Cids[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
}
|
|
if len(m.SpaceId) > 0 {
|
|
i -= len(m.SpaceId)
|
|
copy(dAtA[i:], m.SpaceId)
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.SpaceId)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BlocksCheckResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BlocksCheckResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BlocksCheckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.BlocksAvailability) > 0 {
|
|
for iNdEx := len(m.BlocksAvailability) - 1; iNdEx >= 0; iNdEx-- {
|
|
{
|
|
size, err := m.BlocksAvailability[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
if err != nil {
|
|
return 0, err
|
|
}
|
|
i -= size
|
|
i = encodeVarintFile(dAtA, i, uint64(size))
|
|
}
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BlockAvailability) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BlockAvailability) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BlockAvailability) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if m.Status != 0 {
|
|
i = encodeVarintFile(dAtA, i, uint64(m.Status))
|
|
i--
|
|
dAtA[i] = 0x10
|
|
}
|
|
if len(m.Cid) > 0 {
|
|
i -= len(m.Cid)
|
|
copy(dAtA[i:], m.Cid)
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.Cid)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BlocksBindRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BlocksBindRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BlocksBindRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.Cids) > 0 {
|
|
for iNdEx := len(m.Cids) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.Cids[iNdEx])
|
|
copy(dAtA[i:], m.Cids[iNdEx])
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.Cids[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0x12
|
|
}
|
|
}
|
|
if len(m.SpaceId) > 0 {
|
|
i -= len(m.SpaceId)
|
|
copy(dAtA[i:], m.SpaceId)
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.SpaceId)))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *BlocksBindResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *BlocksBindResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *BlocksBindResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *CheckRequest) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *CheckRequest) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *CheckRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func (m *CheckResponse) Marshal() (dAtA []byte, err error) {
|
|
size := m.Size()
|
|
dAtA = make([]byte, size)
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return dAtA[:n], nil
|
|
}
|
|
|
|
func (m *CheckResponse) MarshalTo(dAtA []byte) (int, error) {
|
|
size := m.Size()
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
}
|
|
|
|
func (m *CheckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
i := len(dAtA)
|
|
_ = i
|
|
var l int
|
|
_ = l
|
|
if len(m.SpaceIds) > 0 {
|
|
for iNdEx := len(m.SpaceIds) - 1; iNdEx >= 0; iNdEx-- {
|
|
i -= len(m.SpaceIds[iNdEx])
|
|
copy(dAtA[i:], m.SpaceIds[iNdEx])
|
|
i = encodeVarintFile(dAtA, i, uint64(len(m.SpaceIds[iNdEx])))
|
|
i--
|
|
dAtA[i] = 0xa
|
|
}
|
|
}
|
|
return len(dAtA) - i, nil
|
|
}
|
|
|
|
func encodeVarintFile(dAtA []byte, offset int, v uint64) int {
|
|
offset -= sovFile(v)
|
|
base := offset
|
|
for v >= 1<<7 {
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
v >>= 7
|
|
offset++
|
|
}
|
|
dAtA[offset] = uint8(v)
|
|
return base
|
|
}
|
|
func (m *BlockGetRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.SpaceId)
|
|
if l > 0 {
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
l = len(m.Cid)
|
|
if l > 0 {
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BlockGetResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Cid)
|
|
if l > 0 {
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
l = len(m.Data)
|
|
if l > 0 {
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
if m.Code != 0 {
|
|
n += 1 + sovFile(uint64(m.Code))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BlockPushRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.SpaceId)
|
|
if l > 0 {
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
l = len(m.Cid)
|
|
if l > 0 {
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
l = len(m.Data)
|
|
if l > 0 {
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BlockPushResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
return n
|
|
}
|
|
|
|
func (m *BlocksDeleteRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.SpaceId)
|
|
if l > 0 {
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
if len(m.Cids) > 0 {
|
|
for _, b := range m.Cids {
|
|
l = len(b)
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BlocksDeleteResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
return n
|
|
}
|
|
|
|
func (m *BlocksCheckRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.SpaceId)
|
|
if l > 0 {
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
if len(m.Cids) > 0 {
|
|
for _, b := range m.Cids {
|
|
l = len(b)
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BlocksCheckResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.BlocksAvailability) > 0 {
|
|
for _, e := range m.BlocksAvailability {
|
|
l = e.Size()
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BlockAvailability) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.Cid)
|
|
if l > 0 {
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
if m.Status != 0 {
|
|
n += 1 + sovFile(uint64(m.Status))
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BlocksBindRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
l = len(m.SpaceId)
|
|
if l > 0 {
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
if len(m.Cids) > 0 {
|
|
for _, b := range m.Cids {
|
|
l = len(b)
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func (m *BlocksBindResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
return n
|
|
}
|
|
|
|
func (m *CheckRequest) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
return n
|
|
}
|
|
|
|
func (m *CheckResponse) Size() (n int) {
|
|
if m == nil {
|
|
return 0
|
|
}
|
|
var l int
|
|
_ = l
|
|
if len(m.SpaceIds) > 0 {
|
|
for _, s := range m.SpaceIds {
|
|
l = len(s)
|
|
n += 1 + l + sovFile(uint64(l))
|
|
}
|
|
}
|
|
return n
|
|
}
|
|
|
|
func sovFile(x uint64) (n int) {
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
|
}
|
|
func sozFile(x uint64) (n int) {
|
|
return sovFile(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
}
|
|
func (m *BlockGetRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BlockGetRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BlockGetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.SpaceId = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Cid = append(m.Cid[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.Cid == nil {
|
|
m.Cid = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BlockGetResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BlockGetResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BlockGetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Cid = append(m.Cid[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.Cid == nil {
|
|
m.Cid = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.Data == nil {
|
|
m.Data = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
|
|
}
|
|
m.Code = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Code |= CIDError(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BlockPushRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BlockPushRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BlockPushRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.SpaceId = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Cid = append(m.Cid[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.Cid == nil {
|
|
m.Cid = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 3:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.Data == nil {
|
|
m.Data = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BlockPushResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BlockPushResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BlockPushResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BlocksDeleteRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BlocksDeleteRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BlocksDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.SpaceId = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Cids", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Cids = append(m.Cids, make([]byte, postIndex-iNdEx))
|
|
copy(m.Cids[len(m.Cids)-1], dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BlocksDeleteResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BlocksDeleteResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BlocksDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BlocksCheckRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BlocksCheckRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BlocksCheckRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.SpaceId = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Cids", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Cids = append(m.Cids, make([]byte, postIndex-iNdEx))
|
|
copy(m.Cids[len(m.Cids)-1], dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BlocksCheckResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BlocksCheckResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BlocksCheckResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BlocksAvailability", wireType)
|
|
}
|
|
var msglen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
msglen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if msglen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + msglen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.BlocksAvailability = append(m.BlocksAvailability, &BlockAvailability{})
|
|
if err := m.BlocksAvailability[len(m.BlocksAvailability)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
return err
|
|
}
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BlockAvailability) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BlockAvailability: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BlockAvailability: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Cid", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Cid = append(m.Cid[:0], dAtA[iNdEx:postIndex]...)
|
|
if m.Cid == nil {
|
|
m.Cid = []byte{}
|
|
}
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 0 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
|
|
}
|
|
m.Status = 0
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
m.Status |= AvailabilityStatus(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BlocksBindRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BlocksBindRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BlocksBindRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SpaceId", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.SpaceId = string(dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
case 2:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Cids", wireType)
|
|
}
|
|
var byteLen int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
byteLen |= int(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if byteLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + byteLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.Cids = append(m.Cids, make([]byte, postIndex-iNdEx))
|
|
copy(m.Cids[len(m.Cids)-1], dAtA[iNdEx:postIndex])
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *BlocksBindResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: BlocksBindResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: BlocksBindResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *CheckRequest) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: CheckRequest: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: CheckRequest: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func (m *CheckResponse) Unmarshal(dAtA []byte) error {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
for iNdEx < l {
|
|
preIndex := iNdEx
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
fieldNum := int32(wire >> 3)
|
|
wireType := int(wire & 0x7)
|
|
if wireType == 4 {
|
|
return fmt.Errorf("proto: CheckResponse: wiretype end group for non-group")
|
|
}
|
|
if fieldNum <= 0 {
|
|
return fmt.Errorf("proto: CheckResponse: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
}
|
|
switch fieldNum {
|
|
case 1:
|
|
if wireType != 2 {
|
|
return fmt.Errorf("proto: wrong wireType = %d for field SpaceIds", wireType)
|
|
}
|
|
var stringLen uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
stringLen |= uint64(b&0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
intStringLen := int(stringLen)
|
|
if intStringLen < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
postIndex := iNdEx + intStringLen
|
|
if postIndex < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if postIndex > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
m.SpaceIds = append(m.SpaceIds, string(dAtA[iNdEx:postIndex]))
|
|
iNdEx = postIndex
|
|
default:
|
|
iNdEx = preIndex
|
|
skippy, err := skipFile(dAtA[iNdEx:])
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
|
return ErrInvalidLengthFile
|
|
}
|
|
if (iNdEx + skippy) > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx += skippy
|
|
}
|
|
}
|
|
|
|
if iNdEx > l {
|
|
return io.ErrUnexpectedEOF
|
|
}
|
|
return nil
|
|
}
|
|
func skipFile(dAtA []byte) (n int, err error) {
|
|
l := len(dAtA)
|
|
iNdEx := 0
|
|
depth := 0
|
|
for iNdEx < l {
|
|
var wire uint64
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
wireType := int(wire & 0x7)
|
|
switch wireType {
|
|
case 0:
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
iNdEx++
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
case 1:
|
|
iNdEx += 8
|
|
case 2:
|
|
var length int
|
|
for shift := uint(0); ; shift += 7 {
|
|
if shift >= 64 {
|
|
return 0, ErrIntOverflowFile
|
|
}
|
|
if iNdEx >= l {
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
b := dAtA[iNdEx]
|
|
iNdEx++
|
|
length |= (int(b) & 0x7F) << shift
|
|
if b < 0x80 {
|
|
break
|
|
}
|
|
}
|
|
if length < 0 {
|
|
return 0, ErrInvalidLengthFile
|
|
}
|
|
iNdEx += length
|
|
case 3:
|
|
depth++
|
|
case 4:
|
|
if depth == 0 {
|
|
return 0, ErrUnexpectedEndOfGroupFile
|
|
}
|
|
depth--
|
|
case 5:
|
|
iNdEx += 4
|
|
default:
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
}
|
|
if iNdEx < 0 {
|
|
return 0, ErrInvalidLengthFile
|
|
}
|
|
if depth == 0 {
|
|
return iNdEx, nil
|
|
}
|
|
}
|
|
return 0, io.ErrUnexpectedEOF
|
|
}
|
|
|
|
var (
|
|
ErrInvalidLengthFile = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
ErrIntOverflowFile = fmt.Errorf("proto: integer overflow")
|
|
ErrUnexpectedEndOfGroupFile = fmt.Errorf("proto: unexpected end of group")
|
|
)
|