Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
1294 lines (1235 sloc) 29.8 KB
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: server/pkg/storage/fileset/index/index.proto
package index
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
chunk "github.com/pachyderm/pachyderm/src/server/pkg/storage/chunk"
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.ProtoPackageIsVersion3 // please upgrade the proto package
// Op is the set of operations that can be associated with data.
type Op int32
const (
Op_APPEND Op = 0
Op_OVERWRITE Op = 1
Op_DELETE Op = 2
)
var Op_name = map[int32]string{
0: "APPEND",
1: "OVERWRITE",
2: "DELETE",
}
var Op_value = map[string]int32{
"APPEND": 0,
"OVERWRITE": 1,
"DELETE": 2,
}
func (x Op) String() string {
return proto.EnumName(Op_name, int32(x))
}
func (Op) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_5610f63adbdd53a8, []int{0}
}
type Range struct {
Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
LastPath string `protobuf:"bytes,2,opt,name=last_path,json=lastPath,proto3" json:"last_path,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Range) Reset() { *m = Range{} }
func (m *Range) String() string { return proto.CompactTextString(m) }
func (*Range) ProtoMessage() {}
func (*Range) Descriptor() ([]byte, []int) {
return fileDescriptor_5610f63adbdd53a8, []int{0}
}
func (m *Range) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Range) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Range.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 *Range) XXX_Merge(src proto.Message) {
xxx_messageInfo_Range.Merge(m, src)
}
func (m *Range) XXX_Size() int {
return m.Size()
}
func (m *Range) XXX_DiscardUnknown() {
xxx_messageInfo_Range.DiscardUnknown(m)
}
var xxx_messageInfo_Range proto.InternalMessageInfo
func (m *Range) GetOffset() int64 {
if m != nil {
return m.Offset
}
return 0
}
func (m *Range) GetLastPath() string {
if m != nil {
return m.LastPath
}
return ""
}
// DataOp is a sequence of data references and an operation associated with the referenced data.
// Tags map identifiers to data in the resulting byte stream.
type DataOp struct {
DataRefs []*chunk.DataRef `protobuf:"bytes,1,rep,name=data_refs,json=dataRefs,proto3" json:"data_refs,omitempty"`
Op Op `protobuf:"varint,2,opt,name=op,proto3,enum=index.Op" json:"op,omitempty"`
Tags []*Tag `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DataOp) Reset() { *m = DataOp{} }
func (m *DataOp) String() string { return proto.CompactTextString(m) }
func (*DataOp) ProtoMessage() {}
func (*DataOp) Descriptor() ([]byte, []int) {
return fileDescriptor_5610f63adbdd53a8, []int{1}
}
func (m *DataOp) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DataOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DataOp.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 *DataOp) XXX_Merge(src proto.Message) {
xxx_messageInfo_DataOp.Merge(m, src)
}
func (m *DataOp) XXX_Size() int {
return m.Size()
}
func (m *DataOp) XXX_DiscardUnknown() {
xxx_messageInfo_DataOp.DiscardUnknown(m)
}
var xxx_messageInfo_DataOp proto.InternalMessageInfo
func (m *DataOp) GetDataRefs() []*chunk.DataRef {
if m != nil {
return m.DataRefs
}
return nil
}
func (m *DataOp) GetOp() Op {
if m != nil {
return m.Op
}
return Op_APPEND
}
func (m *DataOp) GetTags() []*Tag {
if m != nil {
return m.Tags
}
return nil
}
type Tag struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
SizeBytes int64 `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Tag) Reset() { *m = Tag{} }
func (m *Tag) String() string { return proto.CompactTextString(m) }
func (*Tag) ProtoMessage() {}
func (*Tag) Descriptor() ([]byte, []int) {
return fileDescriptor_5610f63adbdd53a8, []int{2}
}
func (m *Tag) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Tag.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 *Tag) XXX_Merge(src proto.Message) {
xxx_messageInfo_Tag.Merge(m, src)
}
func (m *Tag) XXX_Size() int {
return m.Size()
}
func (m *Tag) XXX_DiscardUnknown() {
xxx_messageInfo_Tag.DiscardUnknown(m)
}
var xxx_messageInfo_Tag proto.InternalMessageInfo
func (m *Tag) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Tag) GetSizeBytes() int64 {
if m != nil {
return m.SizeBytes
}
return 0
}
// Index stores an index to and metadata about a tar stream.
type Index struct {
Range *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"`
DataOp *DataOp `protobuf:"bytes,2,opt,name=data_op,json=dataOp,proto3" json:"data_op,omitempty"`
// Size of the content being indexed (does not include headers).
SizeBytes int64 `protobuf:"varint,3,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
LastPathChunk string `protobuf:"bytes,4,opt,name=last_path_chunk,json=lastPathChunk,proto3" json:"last_path_chunk,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Index) Reset() { *m = Index{} }
func (m *Index) String() string { return proto.CompactTextString(m) }
func (*Index) ProtoMessage() {}
func (*Index) Descriptor() ([]byte, []int) {
return fileDescriptor_5610f63adbdd53a8, []int{3}
}
func (m *Index) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Index.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 *Index) XXX_Merge(src proto.Message) {
xxx_messageInfo_Index.Merge(m, src)
}
func (m *Index) XXX_Size() int {
return m.Size()
}
func (m *Index) XXX_DiscardUnknown() {
xxx_messageInfo_Index.DiscardUnknown(m)
}
var xxx_messageInfo_Index proto.InternalMessageInfo
func (m *Index) GetRange() *Range {
if m != nil {
return m.Range
}
return nil
}
func (m *Index) GetDataOp() *DataOp {
if m != nil {
return m.DataOp
}
return nil
}
func (m *Index) GetSizeBytes() int64 {
if m != nil {
return m.SizeBytes
}
return 0
}
func (m *Index) GetLastPathChunk() string {
if m != nil {
return m.LastPathChunk
}
return ""
}
func init() {
proto.RegisterEnum("index.Op", Op_name, Op_value)
proto.RegisterType((*Range)(nil), "index.Range")
proto.RegisterType((*DataOp)(nil), "index.DataOp")
proto.RegisterType((*Tag)(nil), "index.Tag")
proto.RegisterType((*Index)(nil), "index.Index")
}
func init() {
proto.RegisterFile("server/pkg/storage/fileset/index/index.proto", fileDescriptor_5610f63adbdd53a8)
}
var fileDescriptor_5610f63adbdd53a8 = []byte{
// 417 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xdd, 0x8a, 0xd4, 0x30,
0x14, 0xde, 0xb4, 0x3b, 0x75, 0x7b, 0xc6, 0x19, 0x87, 0x5c, 0x48, 0x55, 0x2c, 0x43, 0x91, 0x65,
0x70, 0xa5, 0x85, 0xea, 0xa5, 0x37, 0xee, 0x4e, 0x2f, 0x16, 0xc4, 0x0e, 0xa1, 0x2a, 0x78, 0x53,
0x32, 0x6d, 0xfa, 0xc3, 0xae, 0xd3, 0x90, 0x64, 0xc5, 0xf5, 0x49, 0xc4, 0x27, 0xf2, 0xd2, 0x47,
0x90, 0xf1, 0x45, 0x24, 0x49, 0x15, 0x15, 0x61, 0x6f, 0x42, 0xf2, 0x9d, 0x93, 0xf3, 0xfd, 0x70,
0xe0, 0x89, 0x64, 0xe2, 0x03, 0x13, 0x09, 0xbf, 0x68, 0x13, 0xa9, 0x06, 0x41, 0x5b, 0x96, 0x34,
0xfd, 0x25, 0x93, 0x4c, 0x25, 0xfd, 0xae, 0x66, 0x1f, 0xed, 0x19, 0x73, 0x31, 0xa8, 0x01, 0x4f,
0xcc, 0xe3, 0xfe, 0xa3, 0xff, 0x7c, 0xaa, 0xba, 0xab, 0xdd, 0x85, 0x3d, 0x6d, 0x73, 0xf4, 0x1c,
0x26, 0x84, 0xee, 0x5a, 0x86, 0xef, 0x82, 0x37, 0x34, 0x8d, 0x64, 0x2a, 0x40, 0x4b, 0xb4, 0x72,
0xc9, 0xf8, 0xc2, 0x0f, 0xc0, 0xbf, 0xa4, 0x52, 0x95, 0x9c, 0xaa, 0x2e, 0x70, 0x96, 0x68, 0xe5,
0x93, 0x23, 0x0d, 0x6c, 0xa8, 0xea, 0x22, 0x0e, 0xde, 0x9a, 0x2a, 0x9a, 0x73, 0x7c, 0x02, 0x7e,
0x4d, 0x15, 0x2d, 0x05, 0x6b, 0x64, 0x80, 0x96, 0xee, 0x6a, 0x9a, 0xce, 0x63, 0x4b, 0xa4, 0x3b,
0x08, 0x6b, 0xc8, 0x51, 0x6d, 0x2f, 0x12, 0xdf, 0x03, 0x67, 0xe0, 0x66, 0xd8, 0x3c, 0xf5, 0x63,
0xab, 0x3d, 0xe7, 0xc4, 0x19, 0x38, 0x0e, 0xe1, 0x50, 0xd1, 0x56, 0x06, 0xae, 0x19, 0x01, 0x63,
0xb1, 0xa0, 0x2d, 0x31, 0x78, 0xf4, 0x0c, 0xdc, 0x82, 0xb6, 0x78, 0x0e, 0x4e, 0x5f, 0x1b, 0xa5,
0x3e, 0x71, 0xfa, 0x1a, 0x3f, 0x04, 0x90, 0xfd, 0x27, 0x56, 0x6e, 0xaf, 0x15, 0x93, 0x66, 0xb2,
0x4b, 0x7c, 0x8d, 0x9c, 0x6a, 0x20, 0xfa, 0x82, 0x60, 0x72, 0xae, 0x27, 0xe1, 0x08, 0x26, 0x42,
0xfb, 0x35, 0x7f, 0xa7, 0xe9, 0xed, 0x91, 0xc0, 0x64, 0x40, 0x6c, 0x09, 0x1f, 0xc3, 0x2d, 0xe3,
0x65, 0xd4, 0x38, 0x4d, 0x67, 0x63, 0x97, 0xf5, 0x4a, 0xbc, 0xda, 0x7a, 0xfe, 0x9b, 0xd4, 0xfd,
0x87, 0x14, 0x1f, 0xc3, 0x9d, 0xdf, 0xc9, 0x95, 0x26, 0x8a, 0xe0, 0xd0, 0x08, 0x9e, 0xfd, 0xca,
0xef, 0x4c, 0x83, 0x8f, 0x4f, 0xc0, 0xc9, 0x39, 0x06, 0xf0, 0x5e, 0x6c, 0x36, 0xd9, 0xab, 0xf5,
0xe2, 0x00, 0xcf, 0xc0, 0xcf, 0xdf, 0x64, 0xe4, 0x2d, 0x39, 0x2f, 0xb2, 0x05, 0xd2, 0xa5, 0x75,
0xf6, 0x32, 0x2b, 0xb2, 0x85, 0x73, 0xfa, 0xfa, 0xeb, 0x3e, 0x44, 0xdf, 0xf6, 0x21, 0xfa, 0xbe,
0x0f, 0xd1, 0xe7, 0x1f, 0xe1, 0xc1, 0xbb, 0xb3, 0xb6, 0x57, 0xdd, 0xd5, 0x36, 0xae, 0x86, 0xf7,
0x09, 0xa7, 0x55, 0x77, 0x5d, 0x33, 0xf1, 0xe7, 0x4d, 0x8a, 0x2a, 0xb9, 0x69, 0x7f, 0xb6, 0x9e,
0xd9, 0x86, 0xa7, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x83, 0x4d, 0x69, 0xc0, 0x6a, 0x02, 0x00,
0x00,
}
func (m *Range) 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 *Range) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Range) 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.LastPath) > 0 {
i -= len(m.LastPath)
copy(dAtA[i:], m.LastPath)
i = encodeVarintIndex(dAtA, i, uint64(len(m.LastPath)))
i--
dAtA[i] = 0x12
}
if m.Offset != 0 {
i = encodeVarintIndex(dAtA, i, uint64(m.Offset))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func (m *DataOp) 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 *DataOp) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *DataOp) 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.Tags) > 0 {
for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.Tags[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintIndex(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x1a
}
}
if m.Op != 0 {
i = encodeVarintIndex(dAtA, i, uint64(m.Op))
i--
dAtA[i] = 0x10
}
if len(m.DataRefs) > 0 {
for iNdEx := len(m.DataRefs) - 1; iNdEx >= 0; iNdEx-- {
{
size, err := m.DataRefs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintIndex(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
}
return len(dAtA) - i, nil
}
func (m *Tag) 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 *Tag) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Tag) 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.SizeBytes != 0 {
i = encodeVarintIndex(dAtA, i, uint64(m.SizeBytes))
i--
dAtA[i] = 0x10
}
if len(m.Id) > 0 {
i -= len(m.Id)
copy(dAtA[i:], m.Id)
i = encodeVarintIndex(dAtA, i, uint64(len(m.Id)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *Index) 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 *Index) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Index) 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.LastPathChunk) > 0 {
i -= len(m.LastPathChunk)
copy(dAtA[i:], m.LastPathChunk)
i = encodeVarintIndex(dAtA, i, uint64(len(m.LastPathChunk)))
i--
dAtA[i] = 0x22
}
if m.SizeBytes != 0 {
i = encodeVarintIndex(dAtA, i, uint64(m.SizeBytes))
i--
dAtA[i] = 0x18
}
if m.DataOp != nil {
{
size, err := m.DataOp.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintIndex(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
if m.Range != nil {
{
size, err := m.Range.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintIndex(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func encodeVarintIndex(dAtA []byte, offset int, v uint64) int {
offset -= sovIndex(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *Range) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Offset != 0 {
n += 1 + sovIndex(uint64(m.Offset))
}
l = len(m.LastPath)
if l > 0 {
n += 1 + l + sovIndex(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *DataOp) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if len(m.DataRefs) > 0 {
for _, e := range m.DataRefs {
l = e.Size()
n += 1 + l + sovIndex(uint64(l))
}
}
if m.Op != 0 {
n += 1 + sovIndex(uint64(m.Op))
}
if len(m.Tags) > 0 {
for _, e := range m.Tags {
l = e.Size()
n += 1 + l + sovIndex(uint64(l))
}
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Tag) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Id)
if l > 0 {
n += 1 + l + sovIndex(uint64(l))
}
if m.SizeBytes != 0 {
n += 1 + sovIndex(uint64(m.SizeBytes))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func (m *Index) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Range != nil {
l = m.Range.Size()
n += 1 + l + sovIndex(uint64(l))
}
if m.DataOp != nil {
l = m.DataOp.Size()
n += 1 + l + sovIndex(uint64(l))
}
if m.SizeBytes != 0 {
n += 1 + sovIndex(uint64(m.SizeBytes))
}
l = len(m.LastPathChunk)
if l > 0 {
n += 1 + l + sovIndex(uint64(l))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
func sovIndex(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozIndex(x uint64) (n int) {
return sovIndex(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Range) 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 ErrIntOverflowIndex
}
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: Range: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Range: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
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 ErrIntOverflowIndex
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Offset |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field LastPath", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowIndex
}
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 ErrInvalidLengthIndex
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthIndex
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.LastPath = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipIndex(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthIndex
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthIndex
}
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 *DataOp) 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 ErrIntOverflowIndex
}
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: DataOp: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: DataOp: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DataRefs", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowIndex
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthIndex
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthIndex
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.DataRefs = append(m.DataRefs, &chunk.DataRef{})
if err := m.DataRefs[len(m.DataRefs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Op", wireType)
}
m.Op = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowIndex
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Op |= Op(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowIndex
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthIndex
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthIndex
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Tags = append(m.Tags, &Tag{})
if err := m.Tags[len(m.Tags)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipIndex(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthIndex
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthIndex
}
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 *Tag) 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 ErrIntOverflowIndex
}
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: Tag: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Tag: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowIndex
}
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 ErrInvalidLengthIndex
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthIndex
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Id = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field SizeBytes", wireType)
}
m.SizeBytes = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowIndex
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.SizeBytes |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := skipIndex(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthIndex
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthIndex
}
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 *Index) 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 ErrIntOverflowIndex
}
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: Index: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Index: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Range", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowIndex
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthIndex
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthIndex
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Range == nil {
m.Range = &Range{}
}
if err := m.Range.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DataOp", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowIndex
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthIndex
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthIndex
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.DataOp == nil {
m.DataOp = &DataOp{}
}
if err := m.DataOp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field SizeBytes", wireType)
}
m.SizeBytes = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowIndex
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.SizeBytes |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field LastPathChunk", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowIndex
}
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 ErrInvalidLengthIndex
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthIndex
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.LastPathChunk = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipIndex(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthIndex
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthIndex
}
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 skipIndex(dAtA []byte) (n int, err error) {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowIndex
}
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, ErrIntOverflowIndex
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
iNdEx++
if dAtA[iNdEx-1] < 0x80 {
break
}
}
return iNdEx, nil
case 1:
iNdEx += 8
return iNdEx, nil
case 2:
var length int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowIndex
}
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, ErrInvalidLengthIndex
}
iNdEx += length
if iNdEx < 0 {
return 0, ErrInvalidLengthIndex
}
return iNdEx, nil
case 3:
for {
var innerWire uint64
var start int = iNdEx
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return 0, ErrIntOverflowIndex
}
if iNdEx >= l {
return 0, io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
innerWire |= (uint64(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
innerWireType := int(innerWire & 0x7)
if innerWireType == 4 {
break
}
next, err := skipIndex(dAtA[start:])
if err != nil {
return 0, err
}
iNdEx = start + next
if iNdEx < 0 {
return 0, ErrInvalidLengthIndex
}
}
return iNdEx, nil
case 4:
return iNdEx, nil
case 5:
iNdEx += 4
return iNdEx, nil
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
}
panic("unreachable")
}
var (
ErrInvalidLengthIndex = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowIndex = fmt.Errorf("proto: integer overflow")
)
You can’t perform that action at this time.