1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-07 21:47:02 +09:00
any-sync/commonfile/fileproto/file.pb.go
2024-03-14 13:58:22 +01:00

5128 lines
120 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_Forbidden ErrCodes = 2
ErrCodes_LimitExceeded ErrCodes = 3
ErrCodes_QuerySizeExceeded ErrCodes = 4
ErrCodes_WrongHash ErrCodes = 5
ErrCodes_NotEnoughSpace ErrCodes = 6
ErrCodes_ErrorOffset ErrCodes = 200
)
var ErrCodes_name = map[int32]string{
0: "Unexpected",
1: "CIDNotFound",
2: "Forbidden",
3: "LimitExceeded",
4: "QuerySizeExceeded",
5: "WrongHash",
6: "NotEnoughSpace",
200: "ErrorOffset",
}
var ErrCodes_value = map[string]int32{
"Unexpected": 0,
"CIDNotFound": 1,
"Forbidden": 2,
"LimitExceeded": 3,
"QuerySizeExceeded": 4,
"WrongHash": 5,
"NotEnoughSpace": 6,
"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 Ok struct {
}
func (m *Ok) Reset() { *m = Ok{} }
func (m *Ok) String() string { return proto.CompactTextString(m) }
func (*Ok) ProtoMessage() {}
func (*Ok) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{0}
}
func (m *Ok) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Ok) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Ok.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 *Ok) XXX_Merge(src proto.Message) {
xxx_messageInfo_Ok.Merge(m, src)
}
func (m *Ok) XXX_Size() int {
return m.Size()
}
func (m *Ok) XXX_DiscardUnknown() {
xxx_messageInfo_Ok.DiscardUnknown(m)
}
var xxx_messageInfo_Ok proto.InternalMessageInfo
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"`
Wait bool `protobuf:"varint,3,opt,name=wait,proto3" json:"wait,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{1}
}
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
}
func (m *BlockGetRequest) GetWait() bool {
if m != nil {
return m.Wait
}
return false
}
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"`
}
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{2}
}
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
}
type BlockPushRequest struct {
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
Cid []byte `protobuf:"bytes,3,opt,name=cid,proto3" json:"cid,omitempty"`
Data []byte `protobuf:"bytes,4,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{3}
}
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) GetFileId() string {
if m != nil {
return m.FileId
}
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 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{4}
}
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{5}
}
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=filesync.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{6}
}
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"`
FileId string `protobuf:"bytes,2,opt,name=fileId,proto3" json:"fileId,omitempty"`
Cids [][]byte `protobuf:"bytes,3,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{7}
}
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) GetFileId() string {
if m != nil {
return m.FileId
}
return ""
}
func (m *BlocksBindRequest) GetCids() [][]byte {
if m != nil {
return m.Cids
}
return nil
}
type FilesDeleteRequest struct {
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
FileIds []string `protobuf:"bytes,2,rep,name=fileIds,proto3" json:"fileIds,omitempty"`
}
func (m *FilesDeleteRequest) Reset() { *m = FilesDeleteRequest{} }
func (m *FilesDeleteRequest) String() string { return proto.CompactTextString(m) }
func (*FilesDeleteRequest) ProtoMessage() {}
func (*FilesDeleteRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{8}
}
func (m *FilesDeleteRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FilesDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FilesDeleteRequest.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 *FilesDeleteRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FilesDeleteRequest.Merge(m, src)
}
func (m *FilesDeleteRequest) XXX_Size() int {
return m.Size()
}
func (m *FilesDeleteRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FilesDeleteRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FilesDeleteRequest proto.InternalMessageInfo
func (m *FilesDeleteRequest) GetSpaceId() string {
if m != nil {
return m.SpaceId
}
return ""
}
func (m *FilesDeleteRequest) GetFileIds() []string {
if m != nil {
return m.FileIds
}
return nil
}
type FilesDeleteResponse struct {
}
func (m *FilesDeleteResponse) Reset() { *m = FilesDeleteResponse{} }
func (m *FilesDeleteResponse) String() string { return proto.CompactTextString(m) }
func (*FilesDeleteResponse) ProtoMessage() {}
func (*FilesDeleteResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{9}
}
func (m *FilesDeleteResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FilesDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FilesDeleteResponse.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 *FilesDeleteResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FilesDeleteResponse.Merge(m, src)
}
func (m *FilesDeleteResponse) XXX_Size() int {
return m.Size()
}
func (m *FilesDeleteResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FilesDeleteResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FilesDeleteResponse proto.InternalMessageInfo
type FilesInfoRequest struct {
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
FileIds []string `protobuf:"bytes,2,rep,name=fileIds,proto3" json:"fileIds,omitempty"`
}
func (m *FilesInfoRequest) Reset() { *m = FilesInfoRequest{} }
func (m *FilesInfoRequest) String() string { return proto.CompactTextString(m) }
func (*FilesInfoRequest) ProtoMessage() {}
func (*FilesInfoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{10}
}
func (m *FilesInfoRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FilesInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FilesInfoRequest.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 *FilesInfoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FilesInfoRequest.Merge(m, src)
}
func (m *FilesInfoRequest) XXX_Size() int {
return m.Size()
}
func (m *FilesInfoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FilesInfoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FilesInfoRequest proto.InternalMessageInfo
func (m *FilesInfoRequest) GetSpaceId() string {
if m != nil {
return m.SpaceId
}
return ""
}
func (m *FilesInfoRequest) GetFileIds() []string {
if m != nil {
return m.FileIds
}
return nil
}
type FilesInfoResponse struct {
FilesInfo []*FileInfo `protobuf:"bytes,1,rep,name=filesInfo,proto3" json:"filesInfo,omitempty"`
}
func (m *FilesInfoResponse) Reset() { *m = FilesInfoResponse{} }
func (m *FilesInfoResponse) String() string { return proto.CompactTextString(m) }
func (*FilesInfoResponse) ProtoMessage() {}
func (*FilesInfoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{11}
}
func (m *FilesInfoResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FilesInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FilesInfoResponse.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 *FilesInfoResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FilesInfoResponse.Merge(m, src)
}
func (m *FilesInfoResponse) XXX_Size() int {
return m.Size()
}
func (m *FilesInfoResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FilesInfoResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FilesInfoResponse proto.InternalMessageInfo
func (m *FilesInfoResponse) GetFilesInfo() []*FileInfo {
if m != nil {
return m.FilesInfo
}
return nil
}
type FileInfo struct {
FileId string `protobuf:"bytes,1,opt,name=fileId,proto3" json:"fileId,omitempty"`
UsageBytes uint64 `protobuf:"varint,2,opt,name=usageBytes,proto3" json:"usageBytes,omitempty"`
CidsCount uint32 `protobuf:"varint,3,opt,name=cidsCount,proto3" json:"cidsCount,omitempty"`
}
func (m *FileInfo) Reset() { *m = FileInfo{} }
func (m *FileInfo) String() string { return proto.CompactTextString(m) }
func (*FileInfo) ProtoMessage() {}
func (*FileInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{12}
}
func (m *FileInfo) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FileInfo.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 *FileInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_FileInfo.Merge(m, src)
}
func (m *FileInfo) XXX_Size() int {
return m.Size()
}
func (m *FileInfo) XXX_DiscardUnknown() {
xxx_messageInfo_FileInfo.DiscardUnknown(m)
}
var xxx_messageInfo_FileInfo proto.InternalMessageInfo
func (m *FileInfo) GetFileId() string {
if m != nil {
return m.FileId
}
return ""
}
func (m *FileInfo) GetUsageBytes() uint64 {
if m != nil {
return m.UsageBytes
}
return 0
}
func (m *FileInfo) GetCidsCount() uint32 {
if m != nil {
return m.CidsCount
}
return 0
}
type FilesGetRequest struct {
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
}
func (m *FilesGetRequest) Reset() { *m = FilesGetRequest{} }
func (m *FilesGetRequest) String() string { return proto.CompactTextString(m) }
func (*FilesGetRequest) ProtoMessage() {}
func (*FilesGetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{13}
}
func (m *FilesGetRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FilesGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FilesGetRequest.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 *FilesGetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FilesGetRequest.Merge(m, src)
}
func (m *FilesGetRequest) XXX_Size() int {
return m.Size()
}
func (m *FilesGetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FilesGetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FilesGetRequest proto.InternalMessageInfo
func (m *FilesGetRequest) GetSpaceId() string {
if m != nil {
return m.SpaceId
}
return ""
}
type FilesGetResponse struct {
FileId string `protobuf:"bytes,1,opt,name=fileId,proto3" json:"fileId,omitempty"`
}
func (m *FilesGetResponse) Reset() { *m = FilesGetResponse{} }
func (m *FilesGetResponse) String() string { return proto.CompactTextString(m) }
func (*FilesGetResponse) ProtoMessage() {}
func (*FilesGetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{14}
}
func (m *FilesGetResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *FilesGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_FilesGetResponse.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 *FilesGetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FilesGetResponse.Merge(m, src)
}
func (m *FilesGetResponse) XXX_Size() int {
return m.Size()
}
func (m *FilesGetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FilesGetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FilesGetResponse proto.InternalMessageInfo
func (m *FilesGetResponse) GetFileId() string {
if m != nil {
return m.FileId
}
return ""
}
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{15}
}
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"`
AllowWrite bool `protobuf:"varint,2,opt,name=allowWrite,proto3" json:"allowWrite,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{16}
}
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 (m *CheckResponse) GetAllowWrite() bool {
if m != nil {
return m.AllowWrite
}
return false
}
type SpaceInfoRequest struct {
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
}
func (m *SpaceInfoRequest) Reset() { *m = SpaceInfoRequest{} }
func (m *SpaceInfoRequest) String() string { return proto.CompactTextString(m) }
func (*SpaceInfoRequest) ProtoMessage() {}
func (*SpaceInfoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{17}
}
func (m *SpaceInfoRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SpaceInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SpaceInfoRequest.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 *SpaceInfoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SpaceInfoRequest.Merge(m, src)
}
func (m *SpaceInfoRequest) XXX_Size() int {
return m.Size()
}
func (m *SpaceInfoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SpaceInfoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SpaceInfoRequest proto.InternalMessageInfo
func (m *SpaceInfoRequest) GetSpaceId() string {
if m != nil {
return m.SpaceId
}
return ""
}
type SpaceInfoResponse struct {
LimitBytes uint64 `protobuf:"varint,1,opt,name=limitBytes,proto3" json:"limitBytes,omitempty"`
TotalUsageBytes uint64 `protobuf:"varint,2,opt,name=totalUsageBytes,proto3" json:"totalUsageBytes,omitempty"`
CidsCount uint64 `protobuf:"varint,3,opt,name=cidsCount,proto3" json:"cidsCount,omitempty"`
FilesCount uint64 `protobuf:"varint,4,opt,name=filesCount,proto3" json:"filesCount,omitempty"`
SpaceUsageBytes uint64 `protobuf:"varint,5,opt,name=spaceUsageBytes,proto3" json:"spaceUsageBytes,omitempty"`
SpaceId string `protobuf:"bytes,6,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
}
func (m *SpaceInfoResponse) Reset() { *m = SpaceInfoResponse{} }
func (m *SpaceInfoResponse) String() string { return proto.CompactTextString(m) }
func (*SpaceInfoResponse) ProtoMessage() {}
func (*SpaceInfoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{18}
}
func (m *SpaceInfoResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SpaceInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SpaceInfoResponse.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 *SpaceInfoResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_SpaceInfoResponse.Merge(m, src)
}
func (m *SpaceInfoResponse) XXX_Size() int {
return m.Size()
}
func (m *SpaceInfoResponse) XXX_DiscardUnknown() {
xxx_messageInfo_SpaceInfoResponse.DiscardUnknown(m)
}
var xxx_messageInfo_SpaceInfoResponse proto.InternalMessageInfo
func (m *SpaceInfoResponse) GetLimitBytes() uint64 {
if m != nil {
return m.LimitBytes
}
return 0
}
func (m *SpaceInfoResponse) GetTotalUsageBytes() uint64 {
if m != nil {
return m.TotalUsageBytes
}
return 0
}
func (m *SpaceInfoResponse) GetCidsCount() uint64 {
if m != nil {
return m.CidsCount
}
return 0
}
func (m *SpaceInfoResponse) GetFilesCount() uint64 {
if m != nil {
return m.FilesCount
}
return 0
}
func (m *SpaceInfoResponse) GetSpaceUsageBytes() uint64 {
if m != nil {
return m.SpaceUsageBytes
}
return 0
}
func (m *SpaceInfoResponse) GetSpaceId() string {
if m != nil {
return m.SpaceId
}
return ""
}
type AccountInfoRequest struct {
}
func (m *AccountInfoRequest) Reset() { *m = AccountInfoRequest{} }
func (m *AccountInfoRequest) String() string { return proto.CompactTextString(m) }
func (*AccountInfoRequest) ProtoMessage() {}
func (*AccountInfoRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{19}
}
func (m *AccountInfoRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *AccountInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_AccountInfoRequest.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 *AccountInfoRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AccountInfoRequest.Merge(m, src)
}
func (m *AccountInfoRequest) XXX_Size() int {
return m.Size()
}
func (m *AccountInfoRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AccountInfoRequest.DiscardUnknown(m)
}
var xxx_messageInfo_AccountInfoRequest proto.InternalMessageInfo
type AccountInfoResponse struct {
// the shared limit excluding isolated spaces
LimitBytes uint64 `protobuf:"varint,1,opt,name=limitBytes,proto3" json:"limitBytes,omitempty"`
TotalUsageBytes uint64 `protobuf:"varint,2,opt,name=totalUsageBytes,proto3" json:"totalUsageBytes,omitempty"`
TotalCidsCount uint64 `protobuf:"varint,3,opt,name=totalCidsCount,proto3" json:"totalCidsCount,omitempty"`
Spaces []*SpaceInfoResponse `protobuf:"bytes,4,rep,name=spaces,proto3" json:"spaces,omitempty"`
// the total limit including isolated spaces
AccountLimitBytes uint64 `protobuf:"varint,5,opt,name=accountLimitBytes,proto3" json:"accountLimitBytes,omitempty"`
}
func (m *AccountInfoResponse) Reset() { *m = AccountInfoResponse{} }
func (m *AccountInfoResponse) String() string { return proto.CompactTextString(m) }
func (*AccountInfoResponse) ProtoMessage() {}
func (*AccountInfoResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{20}
}
func (m *AccountInfoResponse) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *AccountInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_AccountInfoResponse.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 *AccountInfoResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_AccountInfoResponse.Merge(m, src)
}
func (m *AccountInfoResponse) XXX_Size() int {
return m.Size()
}
func (m *AccountInfoResponse) XXX_DiscardUnknown() {
xxx_messageInfo_AccountInfoResponse.DiscardUnknown(m)
}
var xxx_messageInfo_AccountInfoResponse proto.InternalMessageInfo
func (m *AccountInfoResponse) GetLimitBytes() uint64 {
if m != nil {
return m.LimitBytes
}
return 0
}
func (m *AccountInfoResponse) GetTotalUsageBytes() uint64 {
if m != nil {
return m.TotalUsageBytes
}
return 0
}
func (m *AccountInfoResponse) GetTotalCidsCount() uint64 {
if m != nil {
return m.TotalCidsCount
}
return 0
}
func (m *AccountInfoResponse) GetSpaces() []*SpaceInfoResponse {
if m != nil {
return m.Spaces
}
return nil
}
func (m *AccountInfoResponse) GetAccountLimitBytes() uint64 {
if m != nil {
return m.AccountLimitBytes
}
return 0
}
type AccountLimitSetRequest struct {
Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
}
func (m *AccountLimitSetRequest) Reset() { *m = AccountLimitSetRequest{} }
func (m *AccountLimitSetRequest) String() string { return proto.CompactTextString(m) }
func (*AccountLimitSetRequest) ProtoMessage() {}
func (*AccountLimitSetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{21}
}
func (m *AccountLimitSetRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *AccountLimitSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_AccountLimitSetRequest.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 *AccountLimitSetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_AccountLimitSetRequest.Merge(m, src)
}
func (m *AccountLimitSetRequest) XXX_Size() int {
return m.Size()
}
func (m *AccountLimitSetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_AccountLimitSetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_AccountLimitSetRequest proto.InternalMessageInfo
func (m *AccountLimitSetRequest) GetIdentity() string {
if m != nil {
return m.Identity
}
return ""
}
func (m *AccountLimitSetRequest) GetLimit() uint64 {
if m != nil {
return m.Limit
}
return 0
}
type SpaceLimitSetRequest struct {
SpaceId string `protobuf:"bytes,1,opt,name=spaceId,proto3" json:"spaceId,omitempty"`
Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
}
func (m *SpaceLimitSetRequest) Reset() { *m = SpaceLimitSetRequest{} }
func (m *SpaceLimitSetRequest) String() string { return proto.CompactTextString(m) }
func (*SpaceLimitSetRequest) ProtoMessage() {}
func (*SpaceLimitSetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_fd665a7e11c833d5, []int{22}
}
func (m *SpaceLimitSetRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SpaceLimitSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SpaceLimitSetRequest.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 *SpaceLimitSetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SpaceLimitSetRequest.Merge(m, src)
}
func (m *SpaceLimitSetRequest) XXX_Size() int {
return m.Size()
}
func (m *SpaceLimitSetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SpaceLimitSetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SpaceLimitSetRequest proto.InternalMessageInfo
func (m *SpaceLimitSetRequest) GetSpaceId() string {
if m != nil {
return m.SpaceId
}
return ""
}
func (m *SpaceLimitSetRequest) GetLimit() uint64 {
if m != nil {
return m.Limit
}
return 0
}
func init() {
proto.RegisterEnum("filesync.ErrCodes", ErrCodes_name, ErrCodes_value)
proto.RegisterEnum("filesync.AvailabilityStatus", AvailabilityStatus_name, AvailabilityStatus_value)
proto.RegisterType((*Ok)(nil), "filesync.Ok")
proto.RegisterType((*BlockGetRequest)(nil), "filesync.BlockGetRequest")
proto.RegisterType((*BlockGetResponse)(nil), "filesync.BlockGetResponse")
proto.RegisterType((*BlockPushRequest)(nil), "filesync.BlockPushRequest")
proto.RegisterType((*BlocksCheckRequest)(nil), "filesync.BlocksCheckRequest")
proto.RegisterType((*BlocksCheckResponse)(nil), "filesync.BlocksCheckResponse")
proto.RegisterType((*BlockAvailability)(nil), "filesync.BlockAvailability")
proto.RegisterType((*BlocksBindRequest)(nil), "filesync.BlocksBindRequest")
proto.RegisterType((*FilesDeleteRequest)(nil), "filesync.FilesDeleteRequest")
proto.RegisterType((*FilesDeleteResponse)(nil), "filesync.FilesDeleteResponse")
proto.RegisterType((*FilesInfoRequest)(nil), "filesync.FilesInfoRequest")
proto.RegisterType((*FilesInfoResponse)(nil), "filesync.FilesInfoResponse")
proto.RegisterType((*FileInfo)(nil), "filesync.FileInfo")
proto.RegisterType((*FilesGetRequest)(nil), "filesync.FilesGetRequest")
proto.RegisterType((*FilesGetResponse)(nil), "filesync.FilesGetResponse")
proto.RegisterType((*CheckRequest)(nil), "filesync.CheckRequest")
proto.RegisterType((*CheckResponse)(nil), "filesync.CheckResponse")
proto.RegisterType((*SpaceInfoRequest)(nil), "filesync.SpaceInfoRequest")
proto.RegisterType((*SpaceInfoResponse)(nil), "filesync.SpaceInfoResponse")
proto.RegisterType((*AccountInfoRequest)(nil), "filesync.AccountInfoRequest")
proto.RegisterType((*AccountInfoResponse)(nil), "filesync.AccountInfoResponse")
proto.RegisterType((*AccountLimitSetRequest)(nil), "filesync.AccountLimitSetRequest")
proto.RegisterType((*SpaceLimitSetRequest)(nil), "filesync.SpaceLimitSetRequest")
}
func init() {
proto.RegisterFile("commonfile/fileproto/protos/file.proto", fileDescriptor_fd665a7e11c833d5)
}
var fileDescriptor_fd665a7e11c833d5 = []byte{
// 1014 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x41, 0x73, 0xdb, 0x44,
0x14, 0xb6, 0x6c, 0xc5, 0xb5, 0x5f, 0x62, 0x5b, 0xde, 0xa4, 0xc1, 0xa8, 0xc1, 0xe3, 0xd9, 0x43,
0xc7, 0x13, 0x3a, 0x69, 0x27, 0x85, 0xa1, 0x17, 0x0e, 0xb6, 0x63, 0x53, 0xb7, 0x4c, 0x43, 0x95,
0xe9, 0x74, 0x80, 0x0b, 0xb2, 0xb4, 0x4e, 0x44, 0x1c, 0x29, 0x68, 0xd7, 0x34, 0xe1, 0x57, 0x70,
0xe5, 0x2f, 0xf0, 0x4b, 0x7a, 0xec, 0x91, 0x1b, 0x4c, 0x72, 0xe3, 0x57, 0x30, 0xbb, 0x2b, 0x5b,
0xab, 0x95, 0xd3, 0x74, 0x80, 0x8b, 0xb3, 0xfb, 0xed, 0x7b, 0xdf, 0x7b, 0xef, 0x5b, 0xed, 0x7b,
0x81, 0xfb, 0x5e, 0x74, 0x76, 0x16, 0x85, 0xd3, 0x60, 0x46, 0x1e, 0xf2, 0x9f, 0xf3, 0x38, 0x62,
0xd1, 0x43, 0xf1, 0x4b, 0x05, 0xb0, 0x27, 0xd6, 0xa8, 0xc2, 0xd7, 0xf4, 0x32, 0xf4, 0xb0, 0x09,
0xc5, 0xc3, 0x53, 0xfc, 0x12, 0x1a, 0xfd, 0x59, 0xe4, 0x9d, 0x7e, 0x45, 0x98, 0x43, 0x7e, 0x9a,
0x13, 0xca, 0x50, 0x0b, 0xee, 0xd0, 0x73, 0xd7, 0x23, 0x63, 0xbf, 0x65, 0x74, 0x8c, 0x6e, 0xd5,
0x59, 0x6c, 0x91, 0x05, 0x25, 0x2f, 0xf0, 0x5b, 0xc5, 0x8e, 0xd1, 0xdd, 0x70, 0xf8, 0x12, 0x21,
0x30, 0xdf, 0xb8, 0x01, 0x6b, 0x95, 0x3a, 0x46, 0xb7, 0xe2, 0x88, 0x35, 0x7e, 0x02, 0x56, 0x4a,
0x49, 0xcf, 0xa3, 0x90, 0x92, 0x85, 0xa7, 0x91, 0xf1, 0xf4, 0x5d, 0xe6, 0x26, 0x64, 0x62, 0x8d,
0x7f, 0x4c, 0x3c, 0xbf, 0x99, 0xd3, 0x93, 0xdb, 0xb3, 0xd9, 0x86, 0x32, 0x2f, 0x66, 0x2c, 0x13,
0xaa, 0x3a, 0xc9, 0x6e, 0x11, 0xab, 0x94, 0x8f, 0x65, 0x2a, 0xb1, 0xfa, 0x80, 0x44, 0x2c, 0x3a,
0x38, 0x21, 0xde, 0xe9, 0xed, 0xd1, 0x10, 0x98, 0x5e, 0xe0, 0xd3, 0x56, 0xb1, 0x53, 0xe2, 0x1c,
0x7c, 0x8d, 0x27, 0xb0, 0x99, 0xe1, 0x48, 0x8a, 0x7d, 0x0e, 0x68, 0x22, 0xe0, 0xde, 0xcf, 0x6e,
0x30, 0x73, 0x27, 0xc1, 0x2c, 0x60, 0x97, 0x2d, 0xa3, 0x53, 0xea, 0xae, 0xef, 0xdf, 0xdb, 0x5b,
0x5c, 0xc0, 0x9e, 0x70, 0x55, 0x4d, 0x9c, 0x15, 0x6e, 0xf8, 0x7b, 0x68, 0xe6, 0x0c, 0x57, 0xc8,
0xf9, 0x19, 0x94, 0x29, 0x73, 0xd9, 0x9c, 0x0a, 0x31, 0xea, 0xfb, 0x3b, 0x69, 0x1c, 0xd5, 0xf3,
0x48, 0xd8, 0x38, 0x89, 0x2d, 0xfe, 0x36, 0x21, 0xa7, 0xfd, 0x20, 0xf4, 0xff, 0xbd, 0xe2, 0x0b,
0x6d, 0x4a, 0x8a, 0x36, 0x4f, 0x01, 0x8d, 0x78, 0x06, 0x07, 0x64, 0x46, 0x18, 0xb9, 0x9d, 0xbb,
0x05, 0x77, 0x24, 0x9b, 0x94, 0xb8, 0xea, 0x2c, 0xb6, 0xf8, 0x2e, 0x6c, 0x66, 0x98, 0xa4, 0xca,
0x78, 0x04, 0x96, 0x80, 0xc7, 0xe1, 0x34, 0xfa, 0x2f, 0xf4, 0x43, 0x68, 0x2a, 0x3c, 0xc9, 0x15,
0x3e, 0x82, 0xea, 0x74, 0x01, 0x26, 0x37, 0x87, 0x52, 0x45, 0xb9, 0xbd, 0x30, 0x4f, 0x8d, 0xf0,
0x0f, 0x50, 0x59, 0xc0, 0x8a, 0x4e, 0x46, 0x46, 0xa7, 0x36, 0xc0, 0x9c, 0xba, 0xc7, 0xa4, 0x7f,
0xc9, 0x88, 0xbc, 0x28, 0xd3, 0x51, 0x10, 0xb4, 0x03, 0x55, 0xae, 0xdd, 0x20, 0x9a, 0x87, 0xf2,
0x49, 0xd5, 0x9c, 0x14, 0xc0, 0x9f, 0x42, 0x43, 0x24, 0xfa, 0x21, 0x4f, 0x15, 0xef, 0x26, 0xea,
0xa8, 0x8f, 0xf0, 0x86, 0xb4, 0x70, 0x1d, 0x36, 0xd4, 0x47, 0x80, 0x9f, 0x43, 0x2d, 0xfb, 0x41,
0xdb, 0x50, 0x49, 0x78, 0xa9, 0x10, 0xa3, 0xea, 0x2c, 0xf7, 0xbc, 0x26, 0x77, 0x36, 0x8b, 0xde,
0xbc, 0x8e, 0x03, 0x46, 0x44, 0x4d, 0x15, 0x47, 0x41, 0xf0, 0x03, 0xb0, 0x8e, 0x84, 0xed, 0x87,
0x5c, 0x13, 0xfe, 0xd3, 0x80, 0xa6, 0x62, 0x9e, 0xc4, 0x6f, 0x03, 0xcc, 0x82, 0xb3, 0x80, 0x49,
0xdd, 0x0c, 0xa9, 0x5b, 0x8a, 0xa0, 0x2e, 0x34, 0x58, 0xc4, 0xdc, 0xd9, 0x2b, 0x5d, 0x5c, 0x1d,
0xce, 0x2b, 0x6c, 0x2a, 0x0a, 0xf3, 0x38, 0xe2, 0x42, 0xe5, 0xb1, 0x29, 0xe3, 0xa4, 0x08, 0x8f,
0x23, 0x12, 0x55, 0xe2, 0xac, 0xc9, 0x38, 0x1a, 0xac, 0x56, 0x58, 0xce, 0x56, 0xb8, 0x05, 0xa8,
0xe7, 0x79, 0x9c, 0x4e, 0x51, 0x04, 0xff, 0x6d, 0xc0, 0x66, 0x06, 0xfe, 0xdf, 0x2b, 0xbf, 0x0f,
0x75, 0x01, 0x0d, 0xb4, 0xf2, 0x35, 0x14, 0x3d, 0x86, 0xb2, 0x48, 0x95, 0xb6, 0x4c, 0xbd, 0x61,
0xe5, 0x2e, 0xc6, 0x49, 0x4c, 0xd1, 0x03, 0x68, 0xba, 0x32, 0xfb, 0xaf, 0xd3, 0x6c, 0xa5, 0x34,
0xf9, 0x03, 0xfc, 0x0c, 0xb6, 0x7b, 0x0a, 0x78, 0x94, 0x7e, 0xcf, 0x36, 0x54, 0x02, 0x9f, 0x84,
0x4c, 0xf6, 0x4b, 0xae, 0xdb, 0x72, 0x8f, 0xb6, 0x60, 0x4d, 0x14, 0x9e, 0x14, 0x28, 0x37, 0x78,
0x04, 0x5b, 0x22, 0x2d, 0x9d, 0xe9, 0xe6, 0x4e, 0xb0, 0x92, 0x67, 0xf7, 0x37, 0x03, 0x2a, 0xc3,
0x38, 0x1e, 0x44, 0x3e, 0xa1, 0xa8, 0x0e, 0xf0, 0x2a, 0x24, 0x17, 0xe7, 0xc4, 0x63, 0xc4, 0xb7,
0x0a, 0xa8, 0x01, 0xeb, 0x83, 0xf1, 0xc1, 0x8b, 0x88, 0x8d, 0xa2, 0x79, 0xe8, 0x5b, 0x06, 0xaa,
0x41, 0x75, 0x14, 0xc5, 0x93, 0xc0, 0xf7, 0x49, 0x68, 0x15, 0x51, 0x13, 0x6a, 0x22, 0xfe, 0xf0,
0xc2, 0x23, 0xc4, 0x27, 0xbe, 0x55, 0x42, 0x77, 0xa1, 0xf9, 0x72, 0x4e, 0xe2, 0xcb, 0xa3, 0xe0,
0x17, 0xb2, 0x84, 0x4d, 0xee, 0xf8, 0x3a, 0x8e, 0xc2, 0xe3, 0xa7, 0x2e, 0x3d, 0xb1, 0xd6, 0x10,
0x82, 0xfa, 0x8b, 0x88, 0x0d, 0xc3, 0x68, 0x7e, 0x7c, 0x22, 0xca, 0xb0, 0xca, 0xc8, 0x82, 0xf5,
0x61, 0x1c, 0x47, 0xf1, 0xe1, 0x74, 0x4a, 0x09, 0xb3, 0xde, 0x1a, 0xbb, 0x7d, 0x40, 0xf9, 0x1e,
0xce, 0xa9, 0xb8, 0xef, 0x45, 0x40, 0x19, 0xb5, 0x0a, 0x08, 0xa0, 0x9c, 0xac, 0x0d, 0x9e, 0x8f,
0x5c, 0x8f, 0x43, 0xc9, 0x5a, 0xdc, 0xff, 0xbd, 0x0c, 0x26, 0x6f, 0x08, 0xa8, 0x07, 0x95, 0xc5,
0x74, 0x46, 0x1f, 0x6b, 0xc3, 0x28, 0xed, 0x2c, 0xb6, 0xbd, 0xea, 0x28, 0xf9, 0x28, 0x3f, 0x87,
0xea, 0x72, 0x4c, 0x23, 0xdd, 0x50, 0x99, 0xdd, 0xf6, 0x46, 0x7a, 0x76, 0x78, 0x8a, 0x9e, 0xc1,
0xba, 0x32, 0x2d, 0xd1, 0x8e, 0xe6, 0x98, 0x19, 0xc4, 0xf6, 0x27, 0x37, 0x9c, 0x26, 0x29, 0x7c,
0x01, 0x90, 0x0e, 0x2e, 0xa4, 0x0f, 0x55, 0x75, 0x9c, 0xe5, 0x93, 0x50, 0x86, 0x89, 0x9a, 0x44,
0x7e, 0x5a, 0xa9, 0x49, 0xac, 0x98, 0x40, 0xe8, 0x00, 0xaa, 0xcb, 0xc9, 0xa1, 0xea, 0xa0, 0x8f,
0x25, 0xfb, 0xde, 0xca, 0xb3, 0x84, 0x65, 0x20, 0x07, 0x07, 0xd5, 0x2e, 0x44, 0x6b, 0xf5, 0xb6,
0xbd, 0xea, 0x48, 0x52, 0x3c, 0x32, 0xd0, 0x13, 0x58, 0x93, 0xaa, 0x6e, 0xa7, 0x66, 0x19, 0x3d,
0x3f, 0xca, 0xe1, 0x69, 0x11, 0xcb, 0x77, 0xad, 0x16, 0xa1, 0x37, 0x6d, 0xfb, 0x7d, 0x8d, 0x80,
0xcb, 0xaa, 0xb4, 0x2f, 0x55, 0xd6, 0x7c, 0xb3, 0x53, 0x65, 0x5d, 0xd5, 0xf3, 0x7a, 0xd0, 0xd0,
0xda, 0x03, 0xea, 0xe4, 0x3c, 0xb4, 0xf7, 0xae, 0xdd, 0xf2, 0x97, 0x50, 0xcb, 0x74, 0x05, 0xd4,
0xd6, 0x92, 0x7f, 0xaf, 0x7b, 0x7f, 0xef, 0xed, 0x55, 0xdb, 0x78, 0x77, 0xd5, 0x36, 0xfe, 0xba,
0x6a, 0x1b, 0xbf, 0x5e, 0xb7, 0x0b, 0xef, 0xae, 0xdb, 0x85, 0x3f, 0xae, 0xdb, 0x85, 0xef, 0xb6,
0x56, 0xfd, 0x9b, 0x3d, 0x29, 0x8b, 0x3f, 0x8f, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0xef, 0x18,
0x68, 0x52, 0x85, 0x0b, 0x00, 0x00,
}
func (m *Ok) 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 *Ok) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Ok) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
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 m.Wait {
i--
if m.Wait {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x18
}
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 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] = 0x22
}
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] = 0x1a
}
if len(m.FileId) > 0 {
i -= len(m.FileId)
copy(dAtA[i:], m.FileId)
i = encodeVarintFile(dAtA, i, uint64(len(m.FileId)))
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 *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] = 0x1a
}
}
if len(m.FileId) > 0 {
i -= len(m.FileId)
copy(dAtA[i:], m.FileId)
i = encodeVarintFile(dAtA, i, uint64(len(m.FileId)))
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 *FilesDeleteRequest) 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 *FilesDeleteRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *FilesDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.FileIds) > 0 {
for iNdEx := len(m.FileIds) - 1; iNdEx >= 0; iNdEx-- {
i -= len(m.FileIds[iNdEx])
copy(dAtA[i:], m.FileIds[iNdEx])
i = encodeVarintFile(dAtA, i, uint64(len(m.FileIds[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 *FilesDeleteResponse) 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 *FilesDeleteResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *FilesDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *FilesInfoRequest) 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 *FilesInfoRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *FilesInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.FileIds) > 0 {
for iNdEx := len(m.FileIds) - 1; iNdEx >= 0; iNdEx-- {
i -= len(m.FileIds[iNdEx])
copy(dAtA[i:], m.FileIds[iNdEx])
i = encodeVarintFile(dAtA, i, uint64(len(m.FileIds[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 *FilesInfoResponse) 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 *FilesInfoResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *FilesInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.FilesInfo) > 0 {
for iNdEx := len(m.FilesInfo) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.FilesInfo[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 *FileInfo) 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 *FileInfo) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *FileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.CidsCount != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.CidsCount))
i--
dAtA[i] = 0x18
}
if m.UsageBytes != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.UsageBytes))
i--
dAtA[i] = 0x10
}
if len(m.FileId) > 0 {
i -= len(m.FileId)
copy(dAtA[i:], m.FileId)
i = encodeVarintFile(dAtA, i, uint64(len(m.FileId)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *FilesGetRequest) 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 *FilesGetRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *FilesGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
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 *FilesGetResponse) 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 *FilesGetResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *FilesGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.FileId) > 0 {
i -= len(m.FileId)
copy(dAtA[i:], m.FileId)
i = encodeVarintFile(dAtA, i, uint64(len(m.FileId)))
i--
dAtA[i] = 0xa
}
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 m.AllowWrite {
i--
if m.AllowWrite {
dAtA[i] = 1
} else {
dAtA[i] = 0
}
i--
dAtA[i] = 0x10
}
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 (m *SpaceInfoRequest) 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 *SpaceInfoRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *SpaceInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
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 *SpaceInfoResponse) 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 *SpaceInfoResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *SpaceInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
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] = 0x32
}
if m.SpaceUsageBytes != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.SpaceUsageBytes))
i--
dAtA[i] = 0x28
}
if m.FilesCount != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.FilesCount))
i--
dAtA[i] = 0x20
}
if m.CidsCount != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.CidsCount))
i--
dAtA[i] = 0x18
}
if m.TotalUsageBytes != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.TotalUsageBytes))
i--
dAtA[i] = 0x10
}
if m.LimitBytes != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.LimitBytes))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *AccountInfoRequest) 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 *AccountInfoRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *AccountInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
return len(dAtA) - i, nil
}
func (m *AccountInfoResponse) 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 *AccountInfoResponse) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *AccountInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.AccountLimitBytes != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.AccountLimitBytes))
i--
dAtA[i] = 0x28
}
if len(m.Spaces) > 0 {
for iNdEx := len(m.Spaces) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Spaces[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintFile(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x22
}
}
if m.TotalCidsCount != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.TotalCidsCount))
i--
dAtA[i] = 0x18
}
if m.TotalUsageBytes != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.TotalUsageBytes))
i--
dAtA[i] = 0x10
}
if m.LimitBytes != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.LimitBytes))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *AccountLimitSetRequest) 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 *AccountLimitSetRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *AccountLimitSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Limit != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.Limit))
i--
dAtA[i] = 0x10
}
if len(m.Identity) > 0 {
i -= len(m.Identity)
copy(dAtA[i:], m.Identity)
i = encodeVarintFile(dAtA, i, uint64(len(m.Identity)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *SpaceLimitSetRequest) 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 *SpaceLimitSetRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *SpaceLimitSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Limit != 0 {
i = encodeVarintFile(dAtA, i, uint64(m.Limit))
i--
dAtA[i] = 0x10
}
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 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 *Ok) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
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))
}
if m.Wait {
n += 2
}
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))
}
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.FileId)
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 *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))
}
l = len(m.FileId)
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 *FilesDeleteRequest) 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.FileIds) > 0 {
for _, s := range m.FileIds {
l = len(s)
n += 1 + l + sovFile(uint64(l))
}
}
return n
}
func (m *FilesDeleteResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *FilesInfoRequest) 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.FileIds) > 0 {
for _, s := range m.FileIds {
l = len(s)
n += 1 + l + sovFile(uint64(l))
}
}
return n
}
func (m *FilesInfoResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.FilesInfo) > 0 {
for _, e := range m.FilesInfo {
l = e.Size()
n += 1 + l + sovFile(uint64(l))
}
}
return n
}
func (m *FileInfo) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.FileId)
if l > 0 {
n += 1 + l + sovFile(uint64(l))
}
if m.UsageBytes != 0 {
n += 1 + sovFile(uint64(m.UsageBytes))
}
if m.CidsCount != 0 {
n += 1 + sovFile(uint64(m.CidsCount))
}
return n
}
func (m *FilesGetRequest) 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))
}
return n
}
func (m *FilesGetResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.FileId)
if l > 0 {
n += 1 + l + sovFile(uint64(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))
}
}
if m.AllowWrite {
n += 2
}
return n
}
func (m *SpaceInfoRequest) 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))
}
return n
}
func (m *SpaceInfoResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.LimitBytes != 0 {
n += 1 + sovFile(uint64(m.LimitBytes))
}
if m.TotalUsageBytes != 0 {
n += 1 + sovFile(uint64(m.TotalUsageBytes))
}
if m.CidsCount != 0 {
n += 1 + sovFile(uint64(m.CidsCount))
}
if m.FilesCount != 0 {
n += 1 + sovFile(uint64(m.FilesCount))
}
if m.SpaceUsageBytes != 0 {
n += 1 + sovFile(uint64(m.SpaceUsageBytes))
}
l = len(m.SpaceId)
if l > 0 {
n += 1 + l + sovFile(uint64(l))
}
return n
}
func (m *AccountInfoRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
return n
}
func (m *AccountInfoResponse) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.LimitBytes != 0 {
n += 1 + sovFile(uint64(m.LimitBytes))
}
if m.TotalUsageBytes != 0 {
n += 1 + sovFile(uint64(m.TotalUsageBytes))
}
if m.TotalCidsCount != 0 {
n += 1 + sovFile(uint64(m.TotalCidsCount))
}
if len(m.Spaces) > 0 {
for _, e := range m.Spaces {
l = e.Size()
n += 1 + l + sovFile(uint64(l))
}
}
if m.AccountLimitBytes != 0 {
n += 1 + sovFile(uint64(m.AccountLimitBytes))
}
return n
}
func (m *AccountLimitSetRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Identity)
if l > 0 {
n += 1 + l + sovFile(uint64(l))
}
if m.Limit != 0 {
n += 1 + sovFile(uint64(m.Limit))
}
return n
}
func (m *SpaceLimitSetRequest) 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 m.Limit != 0 {
n += 1 + sovFile(uint64(m.Limit))
}
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 *Ok) 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: Ok: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Ok: 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 *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
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Wait", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.Wait = bool(v != 0)
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
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 FileId", 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.FileId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
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 4:
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 *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 FileId", 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.FileId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 3:
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 *FilesDeleteRequest) 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: FilesDeleteRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: FilesDeleteRequest: 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 FileIds", 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.FileIds = append(m.FileIds, 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 (m *FilesDeleteResponse) 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: FilesDeleteResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: FilesDeleteResponse: 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 *FilesInfoRequest) 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: FilesInfoRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: FilesInfoRequest: 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 FileIds", 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.FileIds = append(m.FileIds, 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 (m *FilesInfoResponse) 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: FilesInfoResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: FilesInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field FilesInfo", 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.FilesInfo = append(m.FilesInfo, &FileInfo{})
if err := m.FilesInfo[len(m.FilesInfo)-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 *FileInfo) 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: FileInfo: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: FileInfo: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field FileId", 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.FileId = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field UsageBytes", wireType)
}
m.UsageBytes = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.UsageBytes |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CidsCount", wireType)
}
m.CidsCount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.CidsCount |= uint32(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 *FilesGetRequest) 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: FilesGetRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: FilesGetRequest: 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
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 *FilesGetResponse) 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: FilesGetResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: FilesGetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field FileId", 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.FileId = 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 (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
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field AllowWrite", wireType)
}
var v int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
v |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
m.AllowWrite = bool(v != 0)
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 *SpaceInfoRequest) 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: SpaceInfoRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: SpaceInfoRequest: 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
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 *SpaceInfoResponse) 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: SpaceInfoResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: SpaceInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field LimitBytes", wireType)
}
m.LimitBytes = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.LimitBytes |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TotalUsageBytes", wireType)
}
m.TotalUsageBytes = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TotalUsageBytes |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CidsCount", wireType)
}
m.CidsCount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.CidsCount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field FilesCount", wireType)
}
m.FilesCount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.FilesCount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field SpaceUsageBytes", wireType)
}
m.SpaceUsageBytes = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.SpaceUsageBytes |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
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
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 *AccountInfoRequest) 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: AccountInfoRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: AccountInfoRequest: 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 *AccountInfoResponse) 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: AccountInfoResponse: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: AccountInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field LimitBytes", wireType)
}
m.LimitBytes = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.LimitBytes |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TotalUsageBytes", wireType)
}
m.TotalUsageBytes = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TotalUsageBytes |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TotalCidsCount", wireType)
}
m.TotalCidsCount = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TotalCidsCount |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Spaces", 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.Spaces = append(m.Spaces, &SpaceInfoResponse{})
if err := m.Spaces[len(m.Spaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field AccountLimitBytes", wireType)
}
m.AccountLimitBytes = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.AccountLimitBytes |= uint64(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 *AccountLimitSetRequest) 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: AccountLimitSetRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: AccountLimitSetRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Identity", 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.Identity = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
}
m.Limit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Limit |= uint64(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 *SpaceLimitSetRequest) 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: SpaceLimitSetRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: SpaceLimitSetRequest: 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 != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
}
m.Limit = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowFile
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Limit |= uint64(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 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")
)