cubefs/proto/distributed_cache.pb.go
leonrayang 0b02c44208 fix(client): Disable xattr security.capability to avoid useless request to backend
close:#1000519910

@formatter:off

Signed-off-by: leonrayang <changliang@oppo.com>
2025-12-25 14:43:17 +08:00

3202 lines
74 KiB
Go
Executable File

// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: distributed_cache.proto
package proto
import (
fmt "fmt"
io "io"
math "math"
math_bits "math/bits"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = proto.Marshal
_ = fmt.Errorf
_ = 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.ProtoPackageIsVersion3 // please upgrade the proto package
type DataSource struct {
FileOffset uint64 `protobuf:"varint,1,opt,name=FileOffset,proto3" json:"FileOffset,omitempty"`
PartitionID uint64 `protobuf:"varint,2,opt,name=PartitionID,proto3" json:"PartitionID,omitempty"`
ExtentID uint64 `protobuf:"varint,3,opt,name=ExtentID,proto3" json:"ExtentID,omitempty"`
ExtentOffset uint64 `protobuf:"varint,4,opt,name=ExtentOffset,proto3" json:"ExtentOffset,omitempty"`
Size_ uint64 `protobuf:"varint,5,opt,name=Size,proto3" json:"Size,omitempty"`
Hosts []string `protobuf:"bytes,6,rep,name=Hosts,proto3" json:"Hosts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DataSource) Reset() { *m = DataSource{} }
func (*DataSource) ProtoMessage() {}
func (*DataSource) Descriptor() ([]byte, []int) {
return fileDescriptor_9a29821e5022ef34, []int{0}
}
func (m *DataSource) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DataSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DataSource.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 *DataSource) XXX_Merge(src proto.Message) {
xxx_messageInfo_DataSource.Merge(m, src)
}
func (m *DataSource) XXX_Size() int {
return m.Size()
}
func (m *DataSource) XXX_DiscardUnknown() {
xxx_messageInfo_DataSource.DiscardUnknown(m)
}
var xxx_messageInfo_DataSource proto.InternalMessageInfo
func (m *DataSource) GetFileOffset() uint64 {
if m != nil {
return m.FileOffset
}
return 0
}
func (m *DataSource) GetPartitionID() uint64 {
if m != nil {
return m.PartitionID
}
return 0
}
func (m *DataSource) GetExtentID() uint64 {
if m != nil {
return m.ExtentID
}
return 0
}
func (m *DataSource) GetExtentOffset() uint64 {
if m != nil {
return m.ExtentOffset
}
return 0
}
func (m *DataSource) GetSize_() uint64 {
if m != nil {
return m.Size_
}
return 0
}
func (m *DataSource) GetHosts() []string {
if m != nil {
return m.Hosts
}
return nil
}
type CacheRequest struct {
Volume string `protobuf:"bytes,1,opt,name=Volume,proto3" json:"Volume,omitempty"`
Inode uint64 `protobuf:"varint,2,opt,name=Inode,proto3" json:"Inode,omitempty"`
FixedFileOffset uint64 `protobuf:"varint,3,opt,name=FixedFileOffset,proto3" json:"FixedFileOffset,omitempty"`
Version uint32 `protobuf:"varint,4,opt,name=Version,proto3" json:"Version,omitempty"`
Sources []*DataSource `protobuf:"bytes,5,rep,name=Sources,proto3" json:"Sources,omitempty"`
TTL int64 `protobuf:"varint,6,opt,name=TTL,proto3" json:"TTL,omitempty"`
Slot uint64 `protobuf:"varint,7,opt,name=Slot,proto3" json:"Slot,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CacheRequest) Reset() { *m = CacheRequest{} }
func (*CacheRequest) ProtoMessage() {}
func (*CacheRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9a29821e5022ef34, []int{1}
}
func (m *CacheRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CacheRequest.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 *CacheRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CacheRequest.Merge(m, src)
}
func (m *CacheRequest) XXX_Size() int {
return m.Size()
}
func (m *CacheRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CacheRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CacheRequest proto.InternalMessageInfo
func (m *CacheRequest) GetVolume() string {
if m != nil {
return m.Volume
}
return ""
}
func (m *CacheRequest) GetInode() uint64 {
if m != nil {
return m.Inode
}
return 0
}
func (m *CacheRequest) GetFixedFileOffset() uint64 {
if m != nil {
return m.FixedFileOffset
}
return 0
}
func (m *CacheRequest) GetVersion() uint32 {
if m != nil {
return m.Version
}
return 0
}
func (m *CacheRequest) GetSources() []*DataSource {
if m != nil {
return m.Sources
}
return nil
}
func (m *CacheRequest) GetTTL() int64 {
if m != nil {
return m.TTL
}
return 0
}
func (m *CacheRequest) GetSlot() uint64 {
if m != nil {
return m.Slot
}
return 0
}
type CacheReadRequest struct {
CacheRequest *CacheRequest `protobuf:"bytes,1,opt,name=CacheRequest,proto3" json:"CacheRequest,omitempty"`
Offset uint64 `protobuf:"varint,2,opt,name=Offset,proto3" json:"Offset,omitempty"`
Size_ uint64 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CacheReadRequest) Reset() { *m = CacheReadRequest{} }
func (*CacheReadRequest) ProtoMessage() {}
func (*CacheReadRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9a29821e5022ef34, []int{2}
}
func (m *CacheReadRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CacheReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CacheReadRequest.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 *CacheReadRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CacheReadRequest.Merge(m, src)
}
func (m *CacheReadRequest) XXX_Size() int {
return m.Size()
}
func (m *CacheReadRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CacheReadRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CacheReadRequest proto.InternalMessageInfo
func (m *CacheReadRequest) GetCacheRequest() *CacheRequest {
if m != nil {
return m.CacheRequest
}
return nil
}
func (m *CacheReadRequest) GetOffset() uint64 {
if m != nil {
return m.Offset
}
return 0
}
func (m *CacheReadRequest) GetSize_() uint64 {
if m != nil {
return m.Size_
}
return 0
}
type CachePrepareRequest struct {
CacheRequest *CacheRequest `protobuf:"bytes,1,opt,name=CacheRequest,proto3" json:"CacheRequest,omitempty"`
FlashNodes []string `protobuf:"bytes,2,rep,name=FlashNodes,proto3" json:"FlashNodes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CachePrepareRequest) Reset() { *m = CachePrepareRequest{} }
func (*CachePrepareRequest) ProtoMessage() {}
func (*CachePrepareRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_9a29821e5022ef34, []int{3}
}
func (m *CachePrepareRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CachePrepareRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CachePrepareRequest.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 *CachePrepareRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CachePrepareRequest.Merge(m, src)
}
func (m *CachePrepareRequest) XXX_Size() int {
return m.Size()
}
func (m *CachePrepareRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CachePrepareRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CachePrepareRequest proto.InternalMessageInfo
func (m *CachePrepareRequest) GetCacheRequest() *CacheRequest {
if m != nil {
return m.CacheRequest
}
return nil
}
func (m *CachePrepareRequest) GetFlashNodes() []string {
if m != nil {
return m.FlashNodes
}
return nil
}
type PutBlockHead struct {
UniKey string `protobuf:"bytes,1,opt,name=UniKey,proto3" json:"UniKey,omitempty"`
BlockLen int64 `protobuf:"varint,2,opt,name=BlockLen,proto3" json:"BlockLen,omitempty"`
TTL uint64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PutBlockHead) Reset() { *m = PutBlockHead{} }
func (*PutBlockHead) ProtoMessage() {}
func (*PutBlockHead) Descriptor() ([]byte, []int) {
return fileDescriptor_9a29821e5022ef34, []int{4}
}
func (m *PutBlockHead) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PutBlockHead) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PutBlockHead.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 *PutBlockHead) XXX_Merge(src proto.Message) {
xxx_messageInfo_PutBlockHead.Merge(m, src)
}
func (m *PutBlockHead) XXX_Size() int {
return m.Size()
}
func (m *PutBlockHead) XXX_DiscardUnknown() {
xxx_messageInfo_PutBlockHead.DiscardUnknown(m)
}
var xxx_messageInfo_PutBlockHead proto.InternalMessageInfo
func (m *PutBlockHead) GetUniKey() string {
if m != nil {
return m.UniKey
}
return ""
}
func (m *PutBlockHead) GetBlockLen() int64 {
if m != nil {
return m.BlockLen
}
return 0
}
func (m *PutBlockHead) GetTTL() uint64 {
if m != nil {
return m.TTL
}
return 0
}
type CacheReadRequestBase struct {
Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
TTL int64 `protobuf:"varint,2,opt,name=TTL,proto3" json:"TTL,omitempty"`
Slot uint64 `protobuf:"varint,3,opt,name=Slot,proto3" json:"Slot,omitempty"`
Offset uint64 `protobuf:"varint,4,opt,name=Offset,proto3" json:"Offset,omitempty"`
Size_ uint64 `protobuf:"varint,5,opt,name=Size,proto3" json:"Size,omitempty"`
Deadline uint64 `protobuf:"varint,6,opt,name=Deadline,proto3" json:"Deadline,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CacheReadRequestBase) Reset() { *m = CacheReadRequestBase{} }
func (*CacheReadRequestBase) ProtoMessage() {}
func (*CacheReadRequestBase) Descriptor() ([]byte, []int) {
return fileDescriptor_9a29821e5022ef34, []int{5}
}
func (m *CacheReadRequestBase) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *CacheReadRequestBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_CacheReadRequestBase.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 *CacheReadRequestBase) XXX_Merge(src proto.Message) {
xxx_messageInfo_CacheReadRequestBase.Merge(m, src)
}
func (m *CacheReadRequestBase) XXX_Size() int {
return m.Size()
}
func (m *CacheReadRequestBase) XXX_DiscardUnknown() {
xxx_messageInfo_CacheReadRequestBase.DiscardUnknown(m)
}
var xxx_messageInfo_CacheReadRequestBase proto.InternalMessageInfo
func (m *CacheReadRequestBase) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *CacheReadRequestBase) GetTTL() int64 {
if m != nil {
return m.TTL
}
return 0
}
func (m *CacheReadRequestBase) GetSlot() uint64 {
if m != nil {
return m.Slot
}
return 0
}
func (m *CacheReadRequestBase) GetOffset() uint64 {
if m != nil {
return m.Offset
}
return 0
}
func (m *CacheReadRequestBase) GetSize_() uint64 {
if m != nil {
return m.Size_
}
return 0
}
func (m *CacheReadRequestBase) GetDeadline() uint64 {
if m != nil {
return m.Deadline
}
return 0
}
type BatchReadItem struct {
Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
Offset uint64 `protobuf:"varint,2,opt,name=Offset,proto3" json:"Offset,omitempty"`
Size_ uint64 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"`
Slot uint64 `protobuf:"varint,4,opt,name=Slot,proto3" json:"Slot,omitempty"`
ReqId uint64 `protobuf:"varint,5,opt,name=ReqId,proto3" json:"ReqId,omitempty"`
Tid string `protobuf:"bytes,6,opt,name=Tid,proto3" json:"Tid,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchReadItem) Reset() { *m = BatchReadItem{} }
func (*BatchReadItem) ProtoMessage() {}
func (*BatchReadItem) Descriptor() ([]byte, []int) {
return fileDescriptor_9a29821e5022ef34, []int{6}
}
func (m *BatchReadItem) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BatchReadItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BatchReadItem.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 *BatchReadItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchReadItem.Merge(m, src)
}
func (m *BatchReadItem) XXX_Size() int {
return m.Size()
}
func (m *BatchReadItem) XXX_DiscardUnknown() {
xxx_messageInfo_BatchReadItem.DiscardUnknown(m)
}
var xxx_messageInfo_BatchReadItem proto.InternalMessageInfo
func (m *BatchReadItem) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *BatchReadItem) GetOffset() uint64 {
if m != nil {
return m.Offset
}
return 0
}
func (m *BatchReadItem) GetSize_() uint64 {
if m != nil {
return m.Size_
}
return 0
}
func (m *BatchReadItem) GetSlot() uint64 {
if m != nil {
return m.Slot
}
return 0
}
func (m *BatchReadItem) GetReqId() uint64 {
if m != nil {
return m.ReqId
}
return 0
}
func (m *BatchReadItem) GetTid() string {
if m != nil {
return m.Tid
}
return ""
}
type BatchReadReq struct {
Deadline uint64 `protobuf:"varint,1,opt,name=Deadline,proto3" json:"Deadline,omitempty"`
Items []*BatchReadItem `protobuf:"bytes,2,rep,name=Items,proto3" json:"Items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchReadReq) Reset() { *m = BatchReadReq{} }
func (*BatchReadReq) ProtoMessage() {}
func (*BatchReadReq) Descriptor() ([]byte, []int) {
return fileDescriptor_9a29821e5022ef34, []int{7}
}
func (m *BatchReadReq) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BatchReadReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BatchReadReq.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 *BatchReadReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchReadReq.Merge(m, src)
}
func (m *BatchReadReq) XXX_Size() int {
return m.Size()
}
func (m *BatchReadReq) XXX_DiscardUnknown() {
xxx_messageInfo_BatchReadReq.DiscardUnknown(m)
}
var xxx_messageInfo_BatchReadReq proto.InternalMessageInfo
func (m *BatchReadReq) GetDeadline() uint64 {
if m != nil {
return m.Deadline
}
return 0
}
func (m *BatchReadReq) GetItems() []*BatchReadItem {
if m != nil {
return m.Items
}
return nil
}
type ReadResult struct {
Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
ResultCode uint32 `protobuf:"varint,2,opt,name=ResultCode,proto3" json:"ResultCode,omitempty"`
CRC uint32 `protobuf:"varint,3,opt,name=CRC,proto3" json:"CRC,omitempty"`
ReqId uint64 `protobuf:"varint,4,opt,name=ReqId,proto3" json:"ReqId,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReadResult) Reset() { *m = ReadResult{} }
func (*ReadResult) ProtoMessage() {}
func (*ReadResult) Descriptor() ([]byte, []int) {
return fileDescriptor_9a29821e5022ef34, []int{8}
}
func (m *ReadResult) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ReadResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ReadResult.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 *ReadResult) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReadResult.Merge(m, src)
}
func (m *ReadResult) XXX_Size() int {
return m.Size()
}
func (m *ReadResult) XXX_DiscardUnknown() {
xxx_messageInfo_ReadResult.DiscardUnknown(m)
}
var xxx_messageInfo_ReadResult proto.InternalMessageInfo
func (m *ReadResult) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *ReadResult) GetResultCode() uint32 {
if m != nil {
return m.ResultCode
}
return 0
}
func (m *ReadResult) GetCRC() uint32 {
if m != nil {
return m.CRC
}
return 0
}
func (m *ReadResult) GetReqId() uint64 {
if m != nil {
return m.ReqId
}
return 0
}
type BatchReadResp struct {
Results []*ReadResult `protobuf:"bytes,1,rep,name=Results,proto3" json:"Results,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BatchReadResp) Reset() { *m = BatchReadResp{} }
func (*BatchReadResp) ProtoMessage() {}
func (*BatchReadResp) Descriptor() ([]byte, []int) {
return fileDescriptor_9a29821e5022ef34, []int{9}
}
func (m *BatchReadResp) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BatchReadResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BatchReadResp.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 *BatchReadResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_BatchReadResp.Merge(m, src)
}
func (m *BatchReadResp) XXX_Size() int {
return m.Size()
}
func (m *BatchReadResp) XXX_DiscardUnknown() {
xxx_messageInfo_BatchReadResp.DiscardUnknown(m)
}
var xxx_messageInfo_BatchReadResp proto.InternalMessageInfo
func (m *BatchReadResp) GetResults() []*ReadResult {
if m != nil {
return m.Results
}
return nil
}
func init() {
proto.RegisterType((*DataSource)(nil), "proto.DataSource")
proto.RegisterType((*CacheRequest)(nil), "proto.CacheRequest")
proto.RegisterType((*CacheReadRequest)(nil), "proto.CacheReadRequest")
proto.RegisterType((*CachePrepareRequest)(nil), "proto.CachePrepareRequest")
proto.RegisterType((*PutBlockHead)(nil), "proto.PutBlockHead")
proto.RegisterType((*CacheReadRequestBase)(nil), "proto.CacheReadRequestBase")
proto.RegisterType((*BatchReadItem)(nil), "proto.BatchReadItem")
proto.RegisterType((*BatchReadReq)(nil), "proto.BatchReadReq")
proto.RegisterType((*ReadResult)(nil), "proto.ReadResult")
proto.RegisterType((*BatchReadResp)(nil), "proto.BatchReadResp")
}
func init() { proto.RegisterFile("distributed_cache.proto", fileDescriptor_9a29821e5022ef34) }
var fileDescriptor_9a29821e5022ef34 = []byte{
// 647 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0x41, 0x6f, 0xd3, 0x4c,
0x10, 0xad, 0x6b, 0x27, 0x6d, 0x27, 0x89, 0xbe, 0x7e, 0xdb, 0x08, 0xac, 0x1e, 0x42, 0xd4, 0x53,
0x04, 0xa2, 0x95, 0xca, 0x01, 0x89, 0x63, 0x12, 0xaa, 0x46, 0x54, 0x50, 0x6d, 0x4b, 0x0f, 0x08,
0x09, 0x39, 0xf1, 0xb4, 0x59, 0xe1, 0x7a, 0x5b, 0xef, 0x5a, 0x2a, 0x48, 0xfc, 0x06, 0xae, 0x3d,
0x70, 0xe0, 0x97, 0x70, 0xe6, 0xc8, 0x95, 0x1b, 0x2a, 0x7f, 0x04, 0xed, 0xec, 0x3a, 0xb1, 0xd3,
0x5e, 0x10, 0x27, 0xcf, 0x9b, 0x5d, 0xbf, 0x7d, 0xef, 0xcd, 0x2e, 0xdc, 0x8f, 0x85, 0xd2, 0x99,
0x18, 0xe7, 0x1a, 0xe3, 0x77, 0x93, 0x68, 0x32, 0xc5, 0xed, 0x8b, 0x4c, 0x6a, 0xc9, 0x6a, 0xf4,
0xd9, 0x7c, 0x7c, 0x26, 0xf4, 0x34, 0x1f, 0x6f, 0x4f, 0xe4, 0xf9, 0xce, 0x99, 0x3c, 0x93, 0x3b,
0xd4, 0x1e, 0xe7, 0xa7, 0x84, 0x08, 0x50, 0x65, 0xff, 0xda, 0xfa, 0xe6, 0x01, 0x0c, 0x23, 0x1d,
0x1d, 0xc9, 0x3c, 0x9b, 0x20, 0xeb, 0x00, 0xec, 0x89, 0x04, 0x5f, 0x9d, 0x9e, 0x2a, 0xd4, 0xa1,
0xd7, 0xf5, 0x7a, 0x01, 0x2f, 0x75, 0x58, 0x17, 0x1a, 0x87, 0x51, 0xa6, 0x85, 0x16, 0x32, 0x1d,
0x0d, 0xc3, 0x65, 0xda, 0x50, 0x6e, 0xb1, 0x4d, 0x58, 0x7d, 0x7e, 0xa5, 0x31, 0xd5, 0xa3, 0x61,
0xe8, 0xd3, 0xf2, 0x0c, 0xb3, 0x2d, 0x68, 0xda, 0xda, 0xf1, 0x07, 0xb4, 0x5e, 0xe9, 0x31, 0x06,
0xc1, 0x91, 0xf8, 0x88, 0x61, 0x8d, 0xd6, 0xa8, 0x66, 0x6d, 0xa8, 0xed, 0x4b, 0xa5, 0x55, 0x58,
0xef, 0xfa, 0xbd, 0x35, 0x6e, 0xc1, 0xb3, 0xe0, 0xfa, 0xeb, 0x83, 0xa5, 0xad, 0x9f, 0x1e, 0x34,
0x07, 0x26, 0x06, 0x8e, 0x97, 0x39, 0x2a, 0xcd, 0xee, 0x41, 0xfd, 0x44, 0x26, 0xf9, 0x39, 0x92,
0xfc, 0x35, 0xee, 0x90, 0x21, 0x19, 0xa5, 0x32, 0x46, 0x27, 0xda, 0x02, 0xd6, 0x83, 0xff, 0xf6,
0xc4, 0x15, 0xc6, 0x25, 0xd7, 0x56, 0xf5, 0x62, 0x9b, 0x85, 0xb0, 0x72, 0x82, 0x99, 0x12, 0x32,
0x25, 0xdd, 0x2d, 0x5e, 0x40, 0xf6, 0x08, 0x56, 0x6c, 0x7c, 0x2a, 0xac, 0x75, 0xfd, 0x5e, 0x63,
0xf7, 0x7f, 0x1b, 0xee, 0xf6, 0x3c, 0x58, 0x5e, 0xec, 0x60, 0xeb, 0xe0, 0x1f, 0x1f, 0x1f, 0x84,
0xf5, 0xae, 0xd7, 0xf3, 0xb9, 0x29, 0xc9, 0x71, 0x22, 0x75, 0xb8, 0xe2, 0x1c, 0x27, 0x52, 0x3b,
0x6f, 0x9f, 0x60, 0xdd, 0x59, 0x8b, 0xe2, 0xc2, 0xde, 0xd3, 0xaa, 0x5d, 0x32, 0xd9, 0xd8, 0xdd,
0x70, 0x27, 0x96, 0x97, 0xf8, 0xad, 0x5c, 0x9c, 0x41, 0x1b, 0x40, 0x7d, 0x21, 0x70, 0x7f, 0x1e,
0xb8, 0x3b, 0x5e, 0xc3, 0x06, 0x31, 0x1c, 0x66, 0x78, 0x11, 0x65, 0xf8, 0xcf, 0x0a, 0xcc, 0xe5,
0x4a, 0x22, 0x35, 0x7d, 0x29, 0x63, 0x54, 0xe1, 0x32, 0xcd, 0xb2, 0xd4, 0x71, 0xa7, 0xbe, 0x81,
0xe6, 0x61, 0xae, 0xfb, 0x89, 0x9c, 0xbc, 0xdf, 0xc7, 0x28, 0x36, 0xba, 0x5f, 0xa7, 0xe2, 0x05,
0x7e, 0x28, 0xe6, 0x69, 0x91, 0xb9, 0x68, 0xb4, 0xe9, 0x00, 0x53, 0x72, 0xe4, 0xf3, 0x19, 0x2e,
0x42, 0xb6, 0x96, 0x4c, 0xe9, 0xb8, 0xbf, 0x78, 0xd0, 0x5e, 0x4c, 0xb4, 0x1f, 0x29, 0x34, 0x3f,
0xcc, 0x4f, 0x30, 0x65, 0x41, 0xb1, 0x7c, 0x7b, 0x4e, 0xfe, 0x7c, 0x4e, 0xa5, 0x50, 0x83, 0x3b,
0x43, 0x2d, 0xdf, 0xe2, 0x4d, 0x58, 0x1d, 0x62, 0x14, 0x27, 0x22, 0x45, 0x1a, 0x7f, 0xc0, 0x67,
0xd8, 0xc9, 0xfb, 0xec, 0x41, 0xab, 0x1f, 0xe9, 0xc9, 0xd4, 0xc8, 0x1b, 0x69, 0x3c, 0xbf, 0x43,
0xd7, 0x5f, 0x8c, 0x71, 0xa6, 0x38, 0x28, 0x29, 0x6e, 0x43, 0x8d, 0xe3, 0xe5, 0x28, 0x76, 0xd2,
0x2c, 0x20, 0xb7, 0x22, 0x26, 0x59, 0x6b, 0xdc, 0x94, 0x4e, 0xd1, 0x5b, 0x68, 0xce, 0x04, 0x71,
0xbc, 0xac, 0x78, 0xf0, 0xaa, 0x1e, 0xd8, 0x43, 0xa8, 0x19, 0xcd, 0x76, 0xb2, 0x8d, 0xdd, 0xb6,
0xbb, 0x10, 0x15, 0x43, 0xdc, 0x6e, 0x71, 0xec, 0x29, 0x80, 0x25, 0x56, 0x79, 0x42, 0x0e, 0xcc,
0x83, 0x21, 0xde, 0x26, 0xa7, 0xda, 0x5c, 0x19, 0xbb, 0x3a, 0x28, 0x5e, 0x6e, 0x8b, 0x97, 0x3a,
0x46, 0xf7, 0x80, 0x0f, 0xc8, 0x74, 0x8b, 0x9b, 0x72, 0xee, 0x2f, 0x28, 0xf9, 0x73, 0xe7, 0xf5,
0x4b, 0xf1, 0x72, 0x54, 0x17, 0xe6, 0xe5, 0x5a, 0x32, 0x15, 0x7a, 0x95, 0x97, 0x3b, 0x97, 0xc5,
0x8b, 0x1d, 0x96, 0xa3, 0xbf, 0xfe, 0xfd, 0xa6, 0xe3, 0xfd, 0xb8, 0xe9, 0x78, 0xbf, 0x6e, 0x3a,
0xde, 0xf5, 0xef, 0xce, 0xd2, 0xb8, 0x4e, 0xbf, 0x3c, 0xf9, 0x13, 0x00, 0x00, 0xff, 0xff, 0x7c,
0x4c, 0x21, 0x05, 0x9a, 0x05, 0x00, 0x00,
}
func (m *DataSource) 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 *DataSource) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DataSource) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.Hosts) > 0 {
for iNdEx := len(m.Hosts) - 1; iNdEx >= 0; iNdEx-- {
i -= len(m.Hosts[iNdEx])
copy(dAtA[i:], m.Hosts[iNdEx])
i = encodeVarintDistributedCache(dAtA, i, uint64(len(m.Hosts[iNdEx])))
i--
dAtA[i] = 0x32
}
}
if m.Size_ != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Size_))
i--
dAtA[i] = 0x28
}
if m.ExtentOffset != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.ExtentOffset))
i--
dAtA[i] = 0x20
}
if m.ExtentID != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.ExtentID))
i--
dAtA[i] = 0x18
}
if m.PartitionID != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.PartitionID))
i--
dAtA[i] = 0x10
}
if m.FileOffset != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.FileOffset))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *CacheRequest) 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 *CacheRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *CacheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Slot != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Slot))
i--
dAtA[i] = 0x38
}
if m.TTL != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.TTL))
i--
dAtA[i] = 0x30
}
if len(m.Sources) > 0 {
for iNdEx := len(m.Sources) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Sources[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintDistributedCache(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x2a
}
}
if m.Version != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Version))
i--
dAtA[i] = 0x20
}
if m.FixedFileOffset != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.FixedFileOffset))
i--
dAtA[i] = 0x18
}
if m.Inode != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Inode))
i--
dAtA[i] = 0x10
}
if len(m.Volume) > 0 {
i -= len(m.Volume)
copy(dAtA[i:], m.Volume)
i = encodeVarintDistributedCache(dAtA, i, uint64(len(m.Volume)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *CacheReadRequest) 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 *CacheReadRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *CacheReadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Size_ != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Size_))
i--
dAtA[i] = 0x18
}
if m.Offset != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Offset))
i--
dAtA[i] = 0x10
}
if m.CacheRequest != nil {
{
size, err := m.CacheRequest.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintDistributedCache(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *CachePrepareRequest) 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 *CachePrepareRequest) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *CachePrepareRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.FlashNodes) > 0 {
for iNdEx := len(m.FlashNodes) - 1; iNdEx >= 0; iNdEx-- {
i -= len(m.FlashNodes[iNdEx])
copy(dAtA[i:], m.FlashNodes[iNdEx])
i = encodeVarintDistributedCache(dAtA, i, uint64(len(m.FlashNodes[iNdEx])))
i--
dAtA[i] = 0x12
}
}
if m.CacheRequest != nil {
{
size, err := m.CacheRequest.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintDistributedCache(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *PutBlockHead) 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 *PutBlockHead) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *PutBlockHead) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.TTL != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.TTL))
i--
dAtA[i] = 0x18
}
if m.BlockLen != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.BlockLen))
i--
dAtA[i] = 0x10
}
if len(m.UniKey) > 0 {
i -= len(m.UniKey)
copy(dAtA[i:], m.UniKey)
i = encodeVarintDistributedCache(dAtA, i, uint64(len(m.UniKey)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *CacheReadRequestBase) 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 *CacheReadRequestBase) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *CacheReadRequestBase) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.Deadline != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Deadline))
i--
dAtA[i] = 0x30
}
if m.Size_ != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Size_))
i--
dAtA[i] = 0x28
}
if m.Offset != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Offset))
i--
dAtA[i] = 0x20
}
if m.Slot != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Slot))
i--
dAtA[i] = 0x18
}
if m.TTL != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.TTL))
i--
dAtA[i] = 0x10
}
if len(m.Key) > 0 {
i -= len(m.Key)
copy(dAtA[i:], m.Key)
i = encodeVarintDistributedCache(dAtA, i, uint64(len(m.Key)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *BatchReadItem) 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 *BatchReadItem) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *BatchReadItem) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.Tid) > 0 {
i -= len(m.Tid)
copy(dAtA[i:], m.Tid)
i = encodeVarintDistributedCache(dAtA, i, uint64(len(m.Tid)))
i--
dAtA[i] = 0x32
}
if m.ReqId != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.ReqId))
i--
dAtA[i] = 0x28
}
if m.Slot != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Slot))
i--
dAtA[i] = 0x20
}
if m.Size_ != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Size_))
i--
dAtA[i] = 0x18
}
if m.Offset != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Offset))
i--
dAtA[i] = 0x10
}
if len(m.Key) > 0 {
i -= len(m.Key)
copy(dAtA[i:], m.Key)
i = encodeVarintDistributedCache(dAtA, i, uint64(len(m.Key)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *BatchReadReq) 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 *BatchReadReq) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *BatchReadReq) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.Items) > 0 {
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintDistributedCache(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
}
if m.Deadline != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.Deadline))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *ReadResult) 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 *ReadResult) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *ReadResult) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if m.ReqId != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.ReqId))
i--
dAtA[i] = 0x20
}
if m.CRC != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.CRC))
i--
dAtA[i] = 0x18
}
if m.ResultCode != 0 {
i = encodeVarintDistributedCache(dAtA, i, uint64(m.ResultCode))
i--
dAtA[i] = 0x10
}
if len(m.Data) > 0 {
i -= len(m.Data)
copy(dAtA[i:], m.Data)
i = encodeVarintDistributedCache(dAtA, i, uint64(len(m.Data)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *BatchReadResp) 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 *BatchReadResp) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *BatchReadResp) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.XXX_unrecognized != nil {
i -= len(m.XXX_unrecognized)
copy(dAtA[i:], m.XXX_unrecognized)
}
if len(m.Results) > 0 {
for iNdEx := len(m.Results) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Results[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintDistributedCache(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func encodeVarintDistributedCache(dAtA []byte, offset int, v uint64) int {
offset -= sovDistributedCache(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *DataSource) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.FileOffset != 0 {
n += 1 + sovDistributedCache(uint64(m.FileOffset))
}
if m.PartitionID != 0 {
n += 1 + sovDistributedCache(uint64(m.PartitionID))
}
if m.ExtentID != 0 {
n += 1 + sovDistributedCache(uint64(m.ExtentID))
}
if m.ExtentOffset != 0 {
n += 1 + sovDistributedCache(uint64(m.ExtentOffset))
}
if m.Size_ != 0 {
n += 1 + sovDistributedCache(uint64(m.Size_))
}
if len(m.Hosts) > 0 {
for _, s := range m.Hosts {
l = len(s)
n += 1 + l + sovDistributedCache(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *CacheRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Volume)
if l > 0 {
n += 1 + l + sovDistributedCache(uint64(l))
}
if m.Inode != 0 {
n += 1 + sovDistributedCache(uint64(m.Inode))
}
if m.FixedFileOffset != 0 {
n += 1 + sovDistributedCache(uint64(m.FixedFileOffset))
}
if m.Version != 0 {
n += 1 + sovDistributedCache(uint64(m.Version))
}
if len(m.Sources) > 0 {
for _, e := range m.Sources {
l = e.Size()
n += 1 + l + sovDistributedCache(uint64(l))
}
}
if m.TTL != 0 {
n += 1 + sovDistributedCache(uint64(m.TTL))
}
if m.Slot != 0 {
n += 1 + sovDistributedCache(uint64(m.Slot))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *CacheReadRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.CacheRequest != nil {
l = m.CacheRequest.Size()
n += 1 + l + sovDistributedCache(uint64(l))
}
if m.Offset != 0 {
n += 1 + sovDistributedCache(uint64(m.Offset))
}
if m.Size_ != 0 {
n += 1 + sovDistributedCache(uint64(m.Size_))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *CachePrepareRequest) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.CacheRequest != nil {
l = m.CacheRequest.Size()
n += 1 + l + sovDistributedCache(uint64(l))
}
if len(m.FlashNodes) > 0 {
for _, s := range m.FlashNodes {
l = len(s)
n += 1 + l + sovDistributedCache(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *PutBlockHead) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.UniKey)
if l > 0 {
n += 1 + l + sovDistributedCache(uint64(l))
}
if m.BlockLen != 0 {
n += 1 + sovDistributedCache(uint64(m.BlockLen))
}
if m.TTL != 0 {
n += 1 + sovDistributedCache(uint64(m.TTL))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *CacheReadRequestBase) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Key)
if l > 0 {
n += 1 + l + sovDistributedCache(uint64(l))
}
if m.TTL != 0 {
n += 1 + sovDistributedCache(uint64(m.TTL))
}
if m.Slot != 0 {
n += 1 + sovDistributedCache(uint64(m.Slot))
}
if m.Offset != 0 {
n += 1 + sovDistributedCache(uint64(m.Offset))
}
if m.Size_ != 0 {
n += 1 + sovDistributedCache(uint64(m.Size_))
}
if m.Deadline != 0 {
n += 1 + sovDistributedCache(uint64(m.Deadline))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *BatchReadItem) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Key)
if l > 0 {
n += 1 + l + sovDistributedCache(uint64(l))
}
if m.Offset != 0 {
n += 1 + sovDistributedCache(uint64(m.Offset))
}
if m.Size_ != 0 {
n += 1 + sovDistributedCache(uint64(m.Size_))
}
if m.Slot != 0 {
n += 1 + sovDistributedCache(uint64(m.Slot))
}
if m.ReqId != 0 {
n += 1 + sovDistributedCache(uint64(m.ReqId))
}
l = len(m.Tid)
if l > 0 {
n += 1 + l + sovDistributedCache(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *BatchReadReq) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Deadline != 0 {
n += 1 + sovDistributedCache(uint64(m.Deadline))
}
if len(m.Items) > 0 {
for _, e := range m.Items {
l = e.Size()
n += 1 + l + sovDistributedCache(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *ReadResult) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Data)
if l > 0 {
n += 1 + l + sovDistributedCache(uint64(l))
}
if m.ResultCode != 0 {
n += 1 + sovDistributedCache(uint64(m.ResultCode))
}
if m.CRC != 0 {
n += 1 + sovDistributedCache(uint64(m.CRC))
}
if m.ReqId != 0 {
n += 1 + sovDistributedCache(uint64(m.ReqId))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *BatchReadResp) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.Results) > 0 {
for _, e := range m.Results {
l = e.Size()
n += 1 + l + sovDistributedCache(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovDistributedCache(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozDistributedCache(x uint64) (n int) {
return sovDistributedCache(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *DataSource) 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 ErrIntOverflowDistributedCache
}
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: DataSource: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: DataSource: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field FileOffset", wireType)
}
m.FileOffset = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.FileOffset |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field PartitionID", wireType)
}
m.PartitionID = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.PartitionID |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ExtentID", wireType)
}
m.ExtentID = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ExtentID |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ExtentOffset", wireType)
}
m.ExtentOffset = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ExtentOffset |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
}
m.Size_ = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Size_ |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Hosts", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
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 ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Hosts = append(m.Hosts, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDistributedCache(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDistributedCache
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *CacheRequest) 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 ErrIntOverflowDistributedCache
}
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: CacheRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CacheRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Volume", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
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 ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Volume = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Inode", wireType)
}
m.Inode = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Inode |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field FixedFileOffset", wireType)
}
m.FixedFileOffset = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.FixedFileOffset |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
}
m.Version = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Version |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Sources", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Sources = append(m.Sources, &DataSource{})
if err := m.Sources[len(m.Sources)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
}
m.TTL = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TTL |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 7:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType)
}
m.Slot = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Slot |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipDistributedCache(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDistributedCache
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *CacheReadRequest) 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 ErrIntOverflowDistributedCache
}
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: CacheReadRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CacheReadRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field CacheRequest", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.CacheRequest == nil {
m.CacheRequest = &CacheRequest{}
}
if err := m.CacheRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
}
m.Offset = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Offset |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
}
m.Size_ = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Size_ |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipDistributedCache(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDistributedCache
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *CachePrepareRequest) 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 ErrIntOverflowDistributedCache
}
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: CachePrepareRequest: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CachePrepareRequest: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field CacheRequest", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.CacheRequest == nil {
m.CacheRequest = &CacheRequest{}
}
if err := m.CacheRequest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field FlashNodes", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
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 ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.FlashNodes = append(m.FlashNodes, string(dAtA[iNdEx:postIndex]))
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDistributedCache(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDistributedCache
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *PutBlockHead) 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 ErrIntOverflowDistributedCache
}
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: PutBlockHead: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: PutBlockHead: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field UniKey", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
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 ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.UniKey = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field BlockLen", wireType)
}
m.BlockLen = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.BlockLen |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
}
m.TTL = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TTL |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipDistributedCache(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDistributedCache
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *CacheReadRequestBase) 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 ErrIntOverflowDistributedCache
}
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: CacheReadRequestBase: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: CacheReadRequestBase: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
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 ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Key = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType)
}
m.TTL = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TTL |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType)
}
m.Slot = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Slot |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
}
m.Offset = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Offset |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
}
m.Size_ = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Size_ |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Deadline", wireType)
}
m.Deadline = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Deadline |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipDistributedCache(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDistributedCache
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *BatchReadItem) 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 ErrIntOverflowDistributedCache
}
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: BatchReadItem: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: BatchReadItem: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
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 ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Key = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
}
m.Offset = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Offset |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
}
m.Size_ = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Size_ |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Slot", wireType)
}
m.Slot = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Slot |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ReqId", wireType)
}
m.ReqId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ReqId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Tid", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
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 ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Tid = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDistributedCache(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDistributedCache
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *BatchReadReq) 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 ErrIntOverflowDistributedCache
}
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: BatchReadReq: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: BatchReadReq: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Deadline", wireType)
}
m.Deadline = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Deadline |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Items = append(m.Items, &BatchReadItem{})
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDistributedCache(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDistributedCache
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *ReadResult) 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 ErrIntOverflowDistributedCache
}
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: ReadResult: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ReadResult: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
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 ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
if m.Data == nil {
m.Data = []byte{}
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ResultCode", wireType)
}
m.ResultCode = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ResultCode |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CRC", wireType)
}
m.CRC = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.CRC |= uint32(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ReqId", wireType)
}
m.ReqId = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.ReqId |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipDistributedCache(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDistributedCache
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *BatchReadResp) 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 ErrIntOverflowDistributedCache
}
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: BatchReadResp: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: BatchReadResp: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowDistributedCache
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthDistributedCache
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthDistributedCache
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Results = append(m.Results, &ReadResult{})
if err := m.Results[len(m.Results)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipDistributedCache(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthDistributedCache
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipDistributedCache(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, ErrIntOverflowDistributedCache
}
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, ErrIntOverflowDistributedCache
}
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, ErrIntOverflowDistributedCache
}
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, ErrInvalidLengthDistributedCache
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupDistributedCache
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthDistributedCache
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthDistributedCache = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowDistributedCache = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupDistributedCache = fmt.Errorf("proto: unexpected end of group")
)