github.com/pachyderm/pachyderm@v1.13.4/src/server/pkg/storage/fileset/fileset.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: server/pkg/storage/fileset/fileset.proto
     3  
     4  package fileset
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/gogo/protobuf/proto"
     9  	index "github.com/pachyderm/pachyderm/src/server/pkg/storage/fileset/index"
    10  	io "io"
    11  	math "math"
    12  	math_bits "math/bits"
    13  )
    14  
    15  // Reference imports to suppress errors if they are not otherwise used.
    16  var _ = proto.Marshal
    17  var _ = fmt.Errorf
    18  var _ = math.Inf
    19  
    20  // This is a compile-time assertion to ensure that this generated file
    21  // is compatible with the proto package it is being compiled against.
    22  // A compilation error at this line likely means your copy of the
    23  // proto package needs to be updated.
    24  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    25  
    26  type Metadata struct {
    27  	Path                 string       `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    28  	Additive             *index.Index `protobuf:"bytes,2,opt,name=additive,proto3" json:"additive,omitempty"`
    29  	Deletive             *index.Index `protobuf:"bytes,3,opt,name=deletive,proto3" json:"deletive,omitempty"`
    30  	SizeBytes            int64        `protobuf:"varint,4,opt,name=size_bytes,json=sizeBytes,proto3" json:"size_bytes,omitempty"`
    31  	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
    32  	XXX_unrecognized     []byte       `json:"-"`
    33  	XXX_sizecache        int32        `json:"-"`
    34  }
    35  
    36  func (m *Metadata) Reset()         { *m = Metadata{} }
    37  func (m *Metadata) String() string { return proto.CompactTextString(m) }
    38  func (*Metadata) ProtoMessage()    {}
    39  func (*Metadata) Descriptor() ([]byte, []int) {
    40  	return fileDescriptor_dcfbe9461ec0392b, []int{0}
    41  }
    42  func (m *Metadata) XXX_Unmarshal(b []byte) error {
    43  	return m.Unmarshal(b)
    44  }
    45  func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    46  	if deterministic {
    47  		return xxx_messageInfo_Metadata.Marshal(b, m, deterministic)
    48  	} else {
    49  		b = b[:cap(b)]
    50  		n, err := m.MarshalToSizedBuffer(b)
    51  		if err != nil {
    52  			return nil, err
    53  		}
    54  		return b[:n], nil
    55  	}
    56  }
    57  func (m *Metadata) XXX_Merge(src proto.Message) {
    58  	xxx_messageInfo_Metadata.Merge(m, src)
    59  }
    60  func (m *Metadata) XXX_Size() int {
    61  	return m.Size()
    62  }
    63  func (m *Metadata) XXX_DiscardUnknown() {
    64  	xxx_messageInfo_Metadata.DiscardUnknown(m)
    65  }
    66  
    67  var xxx_messageInfo_Metadata proto.InternalMessageInfo
    68  
    69  func (m *Metadata) GetPath() string {
    70  	if m != nil {
    71  		return m.Path
    72  	}
    73  	return ""
    74  }
    75  
    76  func (m *Metadata) GetAdditive() *index.Index {
    77  	if m != nil {
    78  		return m.Additive
    79  	}
    80  	return nil
    81  }
    82  
    83  func (m *Metadata) GetDeletive() *index.Index {
    84  	if m != nil {
    85  		return m.Deletive
    86  	}
    87  	return nil
    88  }
    89  
    90  func (m *Metadata) GetSizeBytes() int64 {
    91  	if m != nil {
    92  		return m.SizeBytes
    93  	}
    94  	return 0
    95  }
    96  
    97  func init() {
    98  	proto.RegisterType((*Metadata)(nil), "fileset.Metadata")
    99  }
   100  
   101  func init() {
   102  	proto.RegisterFile("server/pkg/storage/fileset/fileset.proto", fileDescriptor_dcfbe9461ec0392b)
   103  }
   104  
   105  var fileDescriptor_dcfbe9461ec0392b = []byte{
   106  	// 224 bytes of a gzipped FileDescriptorProto
   107  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x28, 0x4e, 0x2d, 0x2a,
   108  	0x4b, 0x2d, 0xd2, 0x2f, 0xc8, 0x4e, 0xd7, 0x2f, 0x2e, 0xc9, 0x2f, 0x4a, 0x4c, 0x4f, 0xd5, 0x4f,
   109  	0xcb, 0xcc, 0x49, 0x2d, 0x4e, 0x2d, 0x81, 0xd1, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0xec,
   110  	0x50, 0xae, 0x94, 0x0e, 0x1e, 0x2d, 0x99, 0x79, 0x29, 0xa9, 0x15, 0x10, 0x12, 0xa2, 0x4d, 0x69,
   111  	0x22, 0x23, 0x17, 0x87, 0x6f, 0x6a, 0x49, 0x62, 0x4a, 0x62, 0x49, 0xa2, 0x90, 0x10, 0x17, 0x4b,
   112  	0x41, 0x62, 0x49, 0x86, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0x67, 0x10, 0x98, 0x2d, 0xa4, 0xc1, 0xc5,
   113  	0x91, 0x98, 0x92, 0x92, 0x59, 0x92, 0x59, 0x96, 0x2a, 0xc1, 0xa4, 0xc0, 0xa8, 0xc1, 0x6d, 0xc4,
   114  	0xa3, 0x07, 0x31, 0xc0, 0x13, 0x44, 0x06, 0xc1, 0x65, 0x41, 0x2a, 0x53, 0x52, 0x73, 0x52, 0xc1,
   115  	0x2a, 0x99, 0xb1, 0xa9, 0x84, 0xc9, 0x0a, 0xc9, 0x72, 0x71, 0x15, 0x67, 0x56, 0xa5, 0xc6, 0x27,
   116  	0x55, 0x96, 0xa4, 0x16, 0x4b, 0xb0, 0x28, 0x30, 0x6a, 0x30, 0x07, 0x71, 0x82, 0x44, 0x9c, 0x40,
   117  	0x02, 0x4e, 0xde, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0x63,
   118  	0x94, 0x6d, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x41, 0x62, 0x72,
   119  	0x46, 0x65, 0x4a, 0x6a, 0x11, 0x32, 0xab, 0xb8, 0x28, 0x59, 0x1f, 0xb7, 0x97, 0x93, 0xd8, 0xc0,
   120  	0xfe, 0x34, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x55, 0xba, 0x8a, 0x36, 0x4a, 0x01, 0x00, 0x00,
   121  }
   122  
   123  func (m *Metadata) Marshal() (dAtA []byte, err error) {
   124  	size := m.Size()
   125  	dAtA = make([]byte, size)
   126  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   127  	if err != nil {
   128  		return nil, err
   129  	}
   130  	return dAtA[:n], nil
   131  }
   132  
   133  func (m *Metadata) MarshalTo(dAtA []byte) (int, error) {
   134  	size := m.Size()
   135  	return m.MarshalToSizedBuffer(dAtA[:size])
   136  }
   137  
   138  func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   139  	i := len(dAtA)
   140  	_ = i
   141  	var l int
   142  	_ = l
   143  	if m.XXX_unrecognized != nil {
   144  		i -= len(m.XXX_unrecognized)
   145  		copy(dAtA[i:], m.XXX_unrecognized)
   146  	}
   147  	if m.SizeBytes != 0 {
   148  		i = encodeVarintFileset(dAtA, i, uint64(m.SizeBytes))
   149  		i--
   150  		dAtA[i] = 0x20
   151  	}
   152  	if m.Deletive != nil {
   153  		{
   154  			size, err := m.Deletive.MarshalToSizedBuffer(dAtA[:i])
   155  			if err != nil {
   156  				return 0, err
   157  			}
   158  			i -= size
   159  			i = encodeVarintFileset(dAtA, i, uint64(size))
   160  		}
   161  		i--
   162  		dAtA[i] = 0x1a
   163  	}
   164  	if m.Additive != nil {
   165  		{
   166  			size, err := m.Additive.MarshalToSizedBuffer(dAtA[:i])
   167  			if err != nil {
   168  				return 0, err
   169  			}
   170  			i -= size
   171  			i = encodeVarintFileset(dAtA, i, uint64(size))
   172  		}
   173  		i--
   174  		dAtA[i] = 0x12
   175  	}
   176  	if len(m.Path) > 0 {
   177  		i -= len(m.Path)
   178  		copy(dAtA[i:], m.Path)
   179  		i = encodeVarintFileset(dAtA, i, uint64(len(m.Path)))
   180  		i--
   181  		dAtA[i] = 0xa
   182  	}
   183  	return len(dAtA) - i, nil
   184  }
   185  
   186  func encodeVarintFileset(dAtA []byte, offset int, v uint64) int {
   187  	offset -= sovFileset(v)
   188  	base := offset
   189  	for v >= 1<<7 {
   190  		dAtA[offset] = uint8(v&0x7f | 0x80)
   191  		v >>= 7
   192  		offset++
   193  	}
   194  	dAtA[offset] = uint8(v)
   195  	return base
   196  }
   197  func (m *Metadata) Size() (n int) {
   198  	if m == nil {
   199  		return 0
   200  	}
   201  	var l int
   202  	_ = l
   203  	l = len(m.Path)
   204  	if l > 0 {
   205  		n += 1 + l + sovFileset(uint64(l))
   206  	}
   207  	if m.Additive != nil {
   208  		l = m.Additive.Size()
   209  		n += 1 + l + sovFileset(uint64(l))
   210  	}
   211  	if m.Deletive != nil {
   212  		l = m.Deletive.Size()
   213  		n += 1 + l + sovFileset(uint64(l))
   214  	}
   215  	if m.SizeBytes != 0 {
   216  		n += 1 + sovFileset(uint64(m.SizeBytes))
   217  	}
   218  	if m.XXX_unrecognized != nil {
   219  		n += len(m.XXX_unrecognized)
   220  	}
   221  	return n
   222  }
   223  
   224  func sovFileset(x uint64) (n int) {
   225  	return (math_bits.Len64(x|1) + 6) / 7
   226  }
   227  func sozFileset(x uint64) (n int) {
   228  	return sovFileset(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   229  }
   230  func (m *Metadata) Unmarshal(dAtA []byte) error {
   231  	l := len(dAtA)
   232  	iNdEx := 0
   233  	for iNdEx < l {
   234  		preIndex := iNdEx
   235  		var wire uint64
   236  		for shift := uint(0); ; shift += 7 {
   237  			if shift >= 64 {
   238  				return ErrIntOverflowFileset
   239  			}
   240  			if iNdEx >= l {
   241  				return io.ErrUnexpectedEOF
   242  			}
   243  			b := dAtA[iNdEx]
   244  			iNdEx++
   245  			wire |= uint64(b&0x7F) << shift
   246  			if b < 0x80 {
   247  				break
   248  			}
   249  		}
   250  		fieldNum := int32(wire >> 3)
   251  		wireType := int(wire & 0x7)
   252  		if wireType == 4 {
   253  			return fmt.Errorf("proto: Metadata: wiretype end group for non-group")
   254  		}
   255  		if fieldNum <= 0 {
   256  			return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire)
   257  		}
   258  		switch fieldNum {
   259  		case 1:
   260  			if wireType != 2 {
   261  				return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
   262  			}
   263  			var stringLen uint64
   264  			for shift := uint(0); ; shift += 7 {
   265  				if shift >= 64 {
   266  					return ErrIntOverflowFileset
   267  				}
   268  				if iNdEx >= l {
   269  					return io.ErrUnexpectedEOF
   270  				}
   271  				b := dAtA[iNdEx]
   272  				iNdEx++
   273  				stringLen |= uint64(b&0x7F) << shift
   274  				if b < 0x80 {
   275  					break
   276  				}
   277  			}
   278  			intStringLen := int(stringLen)
   279  			if intStringLen < 0 {
   280  				return ErrInvalidLengthFileset
   281  			}
   282  			postIndex := iNdEx + intStringLen
   283  			if postIndex < 0 {
   284  				return ErrInvalidLengthFileset
   285  			}
   286  			if postIndex > l {
   287  				return io.ErrUnexpectedEOF
   288  			}
   289  			m.Path = string(dAtA[iNdEx:postIndex])
   290  			iNdEx = postIndex
   291  		case 2:
   292  			if wireType != 2 {
   293  				return fmt.Errorf("proto: wrong wireType = %d for field Additive", wireType)
   294  			}
   295  			var msglen int
   296  			for shift := uint(0); ; shift += 7 {
   297  				if shift >= 64 {
   298  					return ErrIntOverflowFileset
   299  				}
   300  				if iNdEx >= l {
   301  					return io.ErrUnexpectedEOF
   302  				}
   303  				b := dAtA[iNdEx]
   304  				iNdEx++
   305  				msglen |= int(b&0x7F) << shift
   306  				if b < 0x80 {
   307  					break
   308  				}
   309  			}
   310  			if msglen < 0 {
   311  				return ErrInvalidLengthFileset
   312  			}
   313  			postIndex := iNdEx + msglen
   314  			if postIndex < 0 {
   315  				return ErrInvalidLengthFileset
   316  			}
   317  			if postIndex > l {
   318  				return io.ErrUnexpectedEOF
   319  			}
   320  			if m.Additive == nil {
   321  				m.Additive = &index.Index{}
   322  			}
   323  			if err := m.Additive.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   324  				return err
   325  			}
   326  			iNdEx = postIndex
   327  		case 3:
   328  			if wireType != 2 {
   329  				return fmt.Errorf("proto: wrong wireType = %d for field Deletive", wireType)
   330  			}
   331  			var msglen int
   332  			for shift := uint(0); ; shift += 7 {
   333  				if shift >= 64 {
   334  					return ErrIntOverflowFileset
   335  				}
   336  				if iNdEx >= l {
   337  					return io.ErrUnexpectedEOF
   338  				}
   339  				b := dAtA[iNdEx]
   340  				iNdEx++
   341  				msglen |= int(b&0x7F) << shift
   342  				if b < 0x80 {
   343  					break
   344  				}
   345  			}
   346  			if msglen < 0 {
   347  				return ErrInvalidLengthFileset
   348  			}
   349  			postIndex := iNdEx + msglen
   350  			if postIndex < 0 {
   351  				return ErrInvalidLengthFileset
   352  			}
   353  			if postIndex > l {
   354  				return io.ErrUnexpectedEOF
   355  			}
   356  			if m.Deletive == nil {
   357  				m.Deletive = &index.Index{}
   358  			}
   359  			if err := m.Deletive.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   360  				return err
   361  			}
   362  			iNdEx = postIndex
   363  		case 4:
   364  			if wireType != 0 {
   365  				return fmt.Errorf("proto: wrong wireType = %d for field SizeBytes", wireType)
   366  			}
   367  			m.SizeBytes = 0
   368  			for shift := uint(0); ; shift += 7 {
   369  				if shift >= 64 {
   370  					return ErrIntOverflowFileset
   371  				}
   372  				if iNdEx >= l {
   373  					return io.ErrUnexpectedEOF
   374  				}
   375  				b := dAtA[iNdEx]
   376  				iNdEx++
   377  				m.SizeBytes |= int64(b&0x7F) << shift
   378  				if b < 0x80 {
   379  					break
   380  				}
   381  			}
   382  		default:
   383  			iNdEx = preIndex
   384  			skippy, err := skipFileset(dAtA[iNdEx:])
   385  			if err != nil {
   386  				return err
   387  			}
   388  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   389  				return ErrInvalidLengthFileset
   390  			}
   391  			if (iNdEx + skippy) > l {
   392  				return io.ErrUnexpectedEOF
   393  			}
   394  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   395  			iNdEx += skippy
   396  		}
   397  	}
   398  
   399  	if iNdEx > l {
   400  		return io.ErrUnexpectedEOF
   401  	}
   402  	return nil
   403  }
   404  func skipFileset(dAtA []byte) (n int, err error) {
   405  	l := len(dAtA)
   406  	iNdEx := 0
   407  	depth := 0
   408  	for iNdEx < l {
   409  		var wire uint64
   410  		for shift := uint(0); ; shift += 7 {
   411  			if shift >= 64 {
   412  				return 0, ErrIntOverflowFileset
   413  			}
   414  			if iNdEx >= l {
   415  				return 0, io.ErrUnexpectedEOF
   416  			}
   417  			b := dAtA[iNdEx]
   418  			iNdEx++
   419  			wire |= (uint64(b) & 0x7F) << shift
   420  			if b < 0x80 {
   421  				break
   422  			}
   423  		}
   424  		wireType := int(wire & 0x7)
   425  		switch wireType {
   426  		case 0:
   427  			for shift := uint(0); ; shift += 7 {
   428  				if shift >= 64 {
   429  					return 0, ErrIntOverflowFileset
   430  				}
   431  				if iNdEx >= l {
   432  					return 0, io.ErrUnexpectedEOF
   433  				}
   434  				iNdEx++
   435  				if dAtA[iNdEx-1] < 0x80 {
   436  					break
   437  				}
   438  			}
   439  		case 1:
   440  			iNdEx += 8
   441  		case 2:
   442  			var length int
   443  			for shift := uint(0); ; shift += 7 {
   444  				if shift >= 64 {
   445  					return 0, ErrIntOverflowFileset
   446  				}
   447  				if iNdEx >= l {
   448  					return 0, io.ErrUnexpectedEOF
   449  				}
   450  				b := dAtA[iNdEx]
   451  				iNdEx++
   452  				length |= (int(b) & 0x7F) << shift
   453  				if b < 0x80 {
   454  					break
   455  				}
   456  			}
   457  			if length < 0 {
   458  				return 0, ErrInvalidLengthFileset
   459  			}
   460  			iNdEx += length
   461  		case 3:
   462  			depth++
   463  		case 4:
   464  			if depth == 0 {
   465  				return 0, ErrUnexpectedEndOfGroupFileset
   466  			}
   467  			depth--
   468  		case 5:
   469  			iNdEx += 4
   470  		default:
   471  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   472  		}
   473  		if iNdEx < 0 {
   474  			return 0, ErrInvalidLengthFileset
   475  		}
   476  		if depth == 0 {
   477  			return iNdEx, nil
   478  		}
   479  	}
   480  	return 0, io.ErrUnexpectedEOF
   481  }
   482  
   483  var (
   484  	ErrInvalidLengthFileset        = fmt.Errorf("proto: negative length found during unmarshaling")
   485  	ErrIntOverflowFileset          = fmt.Errorf("proto: integer overflow")
   486  	ErrUnexpectedEndOfGroupFileset = fmt.Errorf("proto: unexpected end of group")
   487  )