github.com/onosproject/onos-api/go@v0.10.32/onos/config/v2/object.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: onos/config/v2/object.proto
     3  
     4  package v2
     5  
     6  import (
     7  	fmt "fmt"
     8  	_ "github.com/gogo/protobuf/gogoproto"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	_ "github.com/gogo/protobuf/types"
    11  	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
    12  	io "io"
    13  	math "math"
    14  	math_bits "math/bits"
    15  	time "time"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  var _ = time.Kitchen
    23  
    24  // This is a compile-time assertion to ensure that this generated file
    25  // is compatible with the proto package it is being compiled against.
    26  // A compilation error at this line likely means your copy of the
    27  // proto package needs to be updated.
    28  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    29  
    30  type ObjectMeta struct {
    31  	Key      string     `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    32  	Version  uint64     `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
    33  	Revision Revision   `protobuf:"varint,3,opt,name=revision,proto3,casttype=Revision" json:"revision,omitempty"`
    34  	Created  time.Time  `protobuf:"bytes,4,opt,name=created,proto3,stdtime" json:"created"`
    35  	Updated  time.Time  `protobuf:"bytes,5,opt,name=updated,proto3,stdtime" json:"updated"`
    36  	Deleted  *time.Time `protobuf:"bytes,6,opt,name=deleted,proto3,stdtime" json:"deleted,omitempty"`
    37  }
    38  
    39  func (m *ObjectMeta) Reset()         { *m = ObjectMeta{} }
    40  func (m *ObjectMeta) String() string { return proto.CompactTextString(m) }
    41  func (*ObjectMeta) ProtoMessage()    {}
    42  func (*ObjectMeta) Descriptor() ([]byte, []int) {
    43  	return fileDescriptor_6be24dfbef090a8f, []int{0}
    44  }
    45  func (m *ObjectMeta) XXX_Unmarshal(b []byte) error {
    46  	return m.Unmarshal(b)
    47  }
    48  func (m *ObjectMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    49  	if deterministic {
    50  		return xxx_messageInfo_ObjectMeta.Marshal(b, m, deterministic)
    51  	} else {
    52  		b = b[:cap(b)]
    53  		n, err := m.MarshalToSizedBuffer(b)
    54  		if err != nil {
    55  			return nil, err
    56  		}
    57  		return b[:n], nil
    58  	}
    59  }
    60  func (m *ObjectMeta) XXX_Merge(src proto.Message) {
    61  	xxx_messageInfo_ObjectMeta.Merge(m, src)
    62  }
    63  func (m *ObjectMeta) XXX_Size() int {
    64  	return m.Size()
    65  }
    66  func (m *ObjectMeta) XXX_DiscardUnknown() {
    67  	xxx_messageInfo_ObjectMeta.DiscardUnknown(m)
    68  }
    69  
    70  var xxx_messageInfo_ObjectMeta proto.InternalMessageInfo
    71  
    72  func (m *ObjectMeta) GetKey() string {
    73  	if m != nil {
    74  		return m.Key
    75  	}
    76  	return ""
    77  }
    78  
    79  func (m *ObjectMeta) GetVersion() uint64 {
    80  	if m != nil {
    81  		return m.Version
    82  	}
    83  	return 0
    84  }
    85  
    86  func (m *ObjectMeta) GetRevision() Revision {
    87  	if m != nil {
    88  		return m.Revision
    89  	}
    90  	return 0
    91  }
    92  
    93  func (m *ObjectMeta) GetCreated() time.Time {
    94  	if m != nil {
    95  		return m.Created
    96  	}
    97  	return time.Time{}
    98  }
    99  
   100  func (m *ObjectMeta) GetUpdated() time.Time {
   101  	if m != nil {
   102  		return m.Updated
   103  	}
   104  	return time.Time{}
   105  }
   106  
   107  func (m *ObjectMeta) GetDeleted() *time.Time {
   108  	if m != nil {
   109  		return m.Deleted
   110  	}
   111  	return nil
   112  }
   113  
   114  // TargetTypeVersion carries target type and version
   115  type TargetTypeVersion struct {
   116  	TargetType    TargetType    `protobuf:"bytes,1,opt,name=target_type,json=targetType,proto3,casttype=TargetType" json:"target_type,omitempty"`
   117  	TargetVersion TargetVersion `protobuf:"bytes,2,opt,name=target_version,json=targetVersion,proto3,casttype=TargetVersion" json:"target_version,omitempty"`
   118  }
   119  
   120  func (m *TargetTypeVersion) Reset()         { *m = TargetTypeVersion{} }
   121  func (m *TargetTypeVersion) String() string { return proto.CompactTextString(m) }
   122  func (*TargetTypeVersion) ProtoMessage()    {}
   123  func (*TargetTypeVersion) Descriptor() ([]byte, []int) {
   124  	return fileDescriptor_6be24dfbef090a8f, []int{1}
   125  }
   126  func (m *TargetTypeVersion) XXX_Unmarshal(b []byte) error {
   127  	return m.Unmarshal(b)
   128  }
   129  func (m *TargetTypeVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   130  	if deterministic {
   131  		return xxx_messageInfo_TargetTypeVersion.Marshal(b, m, deterministic)
   132  	} else {
   133  		b = b[:cap(b)]
   134  		n, err := m.MarshalToSizedBuffer(b)
   135  		if err != nil {
   136  			return nil, err
   137  		}
   138  		return b[:n], nil
   139  	}
   140  }
   141  func (m *TargetTypeVersion) XXX_Merge(src proto.Message) {
   142  	xxx_messageInfo_TargetTypeVersion.Merge(m, src)
   143  }
   144  func (m *TargetTypeVersion) XXX_Size() int {
   145  	return m.Size()
   146  }
   147  func (m *TargetTypeVersion) XXX_DiscardUnknown() {
   148  	xxx_messageInfo_TargetTypeVersion.DiscardUnknown(m)
   149  }
   150  
   151  var xxx_messageInfo_TargetTypeVersion proto.InternalMessageInfo
   152  
   153  func (m *TargetTypeVersion) GetTargetType() TargetType {
   154  	if m != nil {
   155  		return m.TargetType
   156  	}
   157  	return ""
   158  }
   159  
   160  func (m *TargetTypeVersion) GetTargetVersion() TargetVersion {
   161  	if m != nil {
   162  		return m.TargetVersion
   163  	}
   164  	return ""
   165  }
   166  
   167  func init() {
   168  	proto.RegisterType((*ObjectMeta)(nil), "onos.config.v2.ObjectMeta")
   169  	proto.RegisterType((*TargetTypeVersion)(nil), "onos.config.v2.TargetTypeVersion")
   170  }
   171  
   172  func init() { proto.RegisterFile("onos/config/v2/object.proto", fileDescriptor_6be24dfbef090a8f) }
   173  
   174  var fileDescriptor_6be24dfbef090a8f = []byte{
   175  	// 339 bytes of a gzipped FileDescriptorProto
   176  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0xbf, 0x6e, 0xc2, 0x30,
   177  	0x10, 0x87, 0x63, 0xa0, 0xfc, 0x39, 0x0a, 0x2a, 0x56, 0x87, 0x88, 0x4a, 0x09, 0x62, 0xca, 0x14,
   178  	0x4b, 0x74, 0xa9, 0x3a, 0x74, 0xc8, 0x5e, 0x55, 0xb2, 0x50, 0xd7, 0x2a, 0xc0, 0x11, 0xa5, 0x05,
   179  	0x1c, 0x05, 0x13, 0x89, 0xa5, 0xcf, 0xc0, 0x13, 0xf4, 0x79, 0x18, 0x19, 0x3b, 0xa5, 0x15, 0xbc,
   180  	0x05, 0x53, 0x15, 0x3b, 0xa1, 0x6c, 0x55, 0xb7, 0x3b, 0x7f, 0xf7, 0x9d, 0x7e, 0x3e, 0xb8, 0x11,
   181  	0x0b, 0xb1, 0x64, 0x63, 0xb1, 0x98, 0x86, 0x01, 0x4b, 0x06, 0x4c, 0x8c, 0x5e, 0x71, 0x2c, 0xdd,
   182  	0x28, 0x16, 0x52, 0xd0, 0x76, 0x06, 0x5d, 0x0d, 0xdd, 0x64, 0xd0, 0xbd, 0x0e, 0x44, 0x20, 0x14,
   183  	0x62, 0x59, 0xa5, 0xa7, 0xba, 0x76, 0x20, 0x44, 0x30, 0x43, 0xa6, 0xba, 0xd1, 0x6a, 0xca, 0x64,
   184  	0x38, 0xc7, 0xa5, 0xf4, 0xe7, 0x91, 0x1e, 0xe8, 0x7f, 0x94, 0x00, 0x9e, 0xd4, 0xde, 0x47, 0x94,
   185  	0x3e, 0xbd, 0x82, 0xf2, 0x1b, 0xae, 0x4d, 0xd2, 0x23, 0x4e, 0x83, 0x67, 0x25, 0x35, 0xa1, 0x96,
   186  	0x60, 0xbc, 0x0c, 0xc5, 0xc2, 0x2c, 0xf5, 0x88, 0x53, 0xe1, 0x45, 0x4b, 0x1d, 0xa8, 0xc7, 0x98,
   187  	0x84, 0x0a, 0x95, 0x33, 0xe4, 0x5d, 0x1e, 0x53, 0xbb, 0xce, 0xf3, 0x37, 0x7e, 0xa2, 0xf4, 0x01,
   188  	0x6a, 0xe3, 0x18, 0x7d, 0x89, 0x13, 0xb3, 0xd2, 0x23, 0x4e, 0x73, 0xd0, 0x75, 0x75, 0x2e, 0xb7,
   189  	0xc8, 0xe5, 0x0e, 0x8b, 0x5c, 0x5e, 0x7d, 0x9b, 0xda, 0xc6, 0xe6, 0xcb, 0x26, 0xbc, 0x90, 0x32,
   190  	0x7f, 0x15, 0x4d, 0x94, 0x7f, 0xf1, 0x1f, 0x3f, 0x97, 0xe8, 0x3d, 0xd4, 0x26, 0x38, 0xc3, 0xcc,
   191  	0xaf, 0xfe, 0xe9, 0x57, 0xb4, 0x9b, 0x0b, 0xfd, 0x77, 0xe8, 0x0c, 0xfd, 0x38, 0x40, 0x39, 0x5c,
   192  	0x47, 0xf8, 0x9c, 0x7f, 0x9d, 0x41, 0x53, 0xaa, 0xc7, 0x17, 0xb9, 0x8e, 0x50, 0x9f, 0xcb, 0x6b,
   193  	0x1f, 0x53, 0x1b, 0x7e, 0x67, 0x39, 0xc8, 0x53, 0x4d, 0xef, 0xa0, 0x9d, 0x0b, 0xe7, 0xc7, 0x6c,
   194  	0x78, 0x9d, 0x63, 0x6a, 0xb7, 0xb4, 0x93, 0xef, 0xe6, 0x2d, 0x79, 0xde, 0x7a, 0xe6, 0x76, 0x6f,
   195  	0x91, 0xdd, 0xde, 0x22, 0xdf, 0x7b, 0x8b, 0x6c, 0x0e, 0x96, 0xb1, 0x3b, 0x58, 0xc6, 0xe7, 0xc1,
   196  	0x32, 0x46, 0x55, 0x15, 0xfe, 0xf6, 0x27, 0x00, 0x00, 0xff, 0xff, 0x2d, 0xe3, 0x96, 0x61, 0x27,
   197  	0x02, 0x00, 0x00,
   198  }
   199  
   200  func (m *ObjectMeta) Marshal() (dAtA []byte, err error) {
   201  	size := m.Size()
   202  	dAtA = make([]byte, size)
   203  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   204  	if err != nil {
   205  		return nil, err
   206  	}
   207  	return dAtA[:n], nil
   208  }
   209  
   210  func (m *ObjectMeta) MarshalTo(dAtA []byte) (int, error) {
   211  	size := m.Size()
   212  	return m.MarshalToSizedBuffer(dAtA[:size])
   213  }
   214  
   215  func (m *ObjectMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   216  	i := len(dAtA)
   217  	_ = i
   218  	var l int
   219  	_ = l
   220  	if m.Deleted != nil {
   221  		n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.Deleted, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.Deleted):])
   222  		if err1 != nil {
   223  			return 0, err1
   224  		}
   225  		i -= n1
   226  		i = encodeVarintObject(dAtA, i, uint64(n1))
   227  		i--
   228  		dAtA[i] = 0x32
   229  	}
   230  	n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Updated, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Updated):])
   231  	if err2 != nil {
   232  		return 0, err2
   233  	}
   234  	i -= n2
   235  	i = encodeVarintObject(dAtA, i, uint64(n2))
   236  	i--
   237  	dAtA[i] = 0x2a
   238  	n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Created, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Created):])
   239  	if err3 != nil {
   240  		return 0, err3
   241  	}
   242  	i -= n3
   243  	i = encodeVarintObject(dAtA, i, uint64(n3))
   244  	i--
   245  	dAtA[i] = 0x22
   246  	if m.Revision != 0 {
   247  		i = encodeVarintObject(dAtA, i, uint64(m.Revision))
   248  		i--
   249  		dAtA[i] = 0x18
   250  	}
   251  	if m.Version != 0 {
   252  		i = encodeVarintObject(dAtA, i, uint64(m.Version))
   253  		i--
   254  		dAtA[i] = 0x10
   255  	}
   256  	if len(m.Key) > 0 {
   257  		i -= len(m.Key)
   258  		copy(dAtA[i:], m.Key)
   259  		i = encodeVarintObject(dAtA, i, uint64(len(m.Key)))
   260  		i--
   261  		dAtA[i] = 0xa
   262  	}
   263  	return len(dAtA) - i, nil
   264  }
   265  
   266  func (m *TargetTypeVersion) Marshal() (dAtA []byte, err error) {
   267  	size := m.Size()
   268  	dAtA = make([]byte, size)
   269  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   270  	if err != nil {
   271  		return nil, err
   272  	}
   273  	return dAtA[:n], nil
   274  }
   275  
   276  func (m *TargetTypeVersion) MarshalTo(dAtA []byte) (int, error) {
   277  	size := m.Size()
   278  	return m.MarshalToSizedBuffer(dAtA[:size])
   279  }
   280  
   281  func (m *TargetTypeVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   282  	i := len(dAtA)
   283  	_ = i
   284  	var l int
   285  	_ = l
   286  	if len(m.TargetVersion) > 0 {
   287  		i -= len(m.TargetVersion)
   288  		copy(dAtA[i:], m.TargetVersion)
   289  		i = encodeVarintObject(dAtA, i, uint64(len(m.TargetVersion)))
   290  		i--
   291  		dAtA[i] = 0x12
   292  	}
   293  	if len(m.TargetType) > 0 {
   294  		i -= len(m.TargetType)
   295  		copy(dAtA[i:], m.TargetType)
   296  		i = encodeVarintObject(dAtA, i, uint64(len(m.TargetType)))
   297  		i--
   298  		dAtA[i] = 0xa
   299  	}
   300  	return len(dAtA) - i, nil
   301  }
   302  
   303  func encodeVarintObject(dAtA []byte, offset int, v uint64) int {
   304  	offset -= sovObject(v)
   305  	base := offset
   306  	for v >= 1<<7 {
   307  		dAtA[offset] = uint8(v&0x7f | 0x80)
   308  		v >>= 7
   309  		offset++
   310  	}
   311  	dAtA[offset] = uint8(v)
   312  	return base
   313  }
   314  func (m *ObjectMeta) Size() (n int) {
   315  	if m == nil {
   316  		return 0
   317  	}
   318  	var l int
   319  	_ = l
   320  	l = len(m.Key)
   321  	if l > 0 {
   322  		n += 1 + l + sovObject(uint64(l))
   323  	}
   324  	if m.Version != 0 {
   325  		n += 1 + sovObject(uint64(m.Version))
   326  	}
   327  	if m.Revision != 0 {
   328  		n += 1 + sovObject(uint64(m.Revision))
   329  	}
   330  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Created)
   331  	n += 1 + l + sovObject(uint64(l))
   332  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Updated)
   333  	n += 1 + l + sovObject(uint64(l))
   334  	if m.Deleted != nil {
   335  		l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.Deleted)
   336  		n += 1 + l + sovObject(uint64(l))
   337  	}
   338  	return n
   339  }
   340  
   341  func (m *TargetTypeVersion) Size() (n int) {
   342  	if m == nil {
   343  		return 0
   344  	}
   345  	var l int
   346  	_ = l
   347  	l = len(m.TargetType)
   348  	if l > 0 {
   349  		n += 1 + l + sovObject(uint64(l))
   350  	}
   351  	l = len(m.TargetVersion)
   352  	if l > 0 {
   353  		n += 1 + l + sovObject(uint64(l))
   354  	}
   355  	return n
   356  }
   357  
   358  func sovObject(x uint64) (n int) {
   359  	return (math_bits.Len64(x|1) + 6) / 7
   360  }
   361  func sozObject(x uint64) (n int) {
   362  	return sovObject(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   363  }
   364  func (m *ObjectMeta) Unmarshal(dAtA []byte) error {
   365  	l := len(dAtA)
   366  	iNdEx := 0
   367  	for iNdEx < l {
   368  		preIndex := iNdEx
   369  		var wire uint64
   370  		for shift := uint(0); ; shift += 7 {
   371  			if shift >= 64 {
   372  				return ErrIntOverflowObject
   373  			}
   374  			if iNdEx >= l {
   375  				return io.ErrUnexpectedEOF
   376  			}
   377  			b := dAtA[iNdEx]
   378  			iNdEx++
   379  			wire |= uint64(b&0x7F) << shift
   380  			if b < 0x80 {
   381  				break
   382  			}
   383  		}
   384  		fieldNum := int32(wire >> 3)
   385  		wireType := int(wire & 0x7)
   386  		if wireType == 4 {
   387  			return fmt.Errorf("proto: ObjectMeta: wiretype end group for non-group")
   388  		}
   389  		if fieldNum <= 0 {
   390  			return fmt.Errorf("proto: ObjectMeta: illegal tag %d (wire type %d)", fieldNum, wire)
   391  		}
   392  		switch fieldNum {
   393  		case 1:
   394  			if wireType != 2 {
   395  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
   396  			}
   397  			var stringLen uint64
   398  			for shift := uint(0); ; shift += 7 {
   399  				if shift >= 64 {
   400  					return ErrIntOverflowObject
   401  				}
   402  				if iNdEx >= l {
   403  					return io.ErrUnexpectedEOF
   404  				}
   405  				b := dAtA[iNdEx]
   406  				iNdEx++
   407  				stringLen |= uint64(b&0x7F) << shift
   408  				if b < 0x80 {
   409  					break
   410  				}
   411  			}
   412  			intStringLen := int(stringLen)
   413  			if intStringLen < 0 {
   414  				return ErrInvalidLengthObject
   415  			}
   416  			postIndex := iNdEx + intStringLen
   417  			if postIndex < 0 {
   418  				return ErrInvalidLengthObject
   419  			}
   420  			if postIndex > l {
   421  				return io.ErrUnexpectedEOF
   422  			}
   423  			m.Key = string(dAtA[iNdEx:postIndex])
   424  			iNdEx = postIndex
   425  		case 2:
   426  			if wireType != 0 {
   427  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
   428  			}
   429  			m.Version = 0
   430  			for shift := uint(0); ; shift += 7 {
   431  				if shift >= 64 {
   432  					return ErrIntOverflowObject
   433  				}
   434  				if iNdEx >= l {
   435  					return io.ErrUnexpectedEOF
   436  				}
   437  				b := dAtA[iNdEx]
   438  				iNdEx++
   439  				m.Version |= uint64(b&0x7F) << shift
   440  				if b < 0x80 {
   441  					break
   442  				}
   443  			}
   444  		case 3:
   445  			if wireType != 0 {
   446  				return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
   447  			}
   448  			m.Revision = 0
   449  			for shift := uint(0); ; shift += 7 {
   450  				if shift >= 64 {
   451  					return ErrIntOverflowObject
   452  				}
   453  				if iNdEx >= l {
   454  					return io.ErrUnexpectedEOF
   455  				}
   456  				b := dAtA[iNdEx]
   457  				iNdEx++
   458  				m.Revision |= Revision(b&0x7F) << shift
   459  				if b < 0x80 {
   460  					break
   461  				}
   462  			}
   463  		case 4:
   464  			if wireType != 2 {
   465  				return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
   466  			}
   467  			var msglen int
   468  			for shift := uint(0); ; shift += 7 {
   469  				if shift >= 64 {
   470  					return ErrIntOverflowObject
   471  				}
   472  				if iNdEx >= l {
   473  					return io.ErrUnexpectedEOF
   474  				}
   475  				b := dAtA[iNdEx]
   476  				iNdEx++
   477  				msglen |= int(b&0x7F) << shift
   478  				if b < 0x80 {
   479  					break
   480  				}
   481  			}
   482  			if msglen < 0 {
   483  				return ErrInvalidLengthObject
   484  			}
   485  			postIndex := iNdEx + msglen
   486  			if postIndex < 0 {
   487  				return ErrInvalidLengthObject
   488  			}
   489  			if postIndex > l {
   490  				return io.ErrUnexpectedEOF
   491  			}
   492  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Created, dAtA[iNdEx:postIndex]); err != nil {
   493  				return err
   494  			}
   495  			iNdEx = postIndex
   496  		case 5:
   497  			if wireType != 2 {
   498  				return fmt.Errorf("proto: wrong wireType = %d for field Updated", wireType)
   499  			}
   500  			var msglen int
   501  			for shift := uint(0); ; shift += 7 {
   502  				if shift >= 64 {
   503  					return ErrIntOverflowObject
   504  				}
   505  				if iNdEx >= l {
   506  					return io.ErrUnexpectedEOF
   507  				}
   508  				b := dAtA[iNdEx]
   509  				iNdEx++
   510  				msglen |= int(b&0x7F) << shift
   511  				if b < 0x80 {
   512  					break
   513  				}
   514  			}
   515  			if msglen < 0 {
   516  				return ErrInvalidLengthObject
   517  			}
   518  			postIndex := iNdEx + msglen
   519  			if postIndex < 0 {
   520  				return ErrInvalidLengthObject
   521  			}
   522  			if postIndex > l {
   523  				return io.ErrUnexpectedEOF
   524  			}
   525  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Updated, dAtA[iNdEx:postIndex]); err != nil {
   526  				return err
   527  			}
   528  			iNdEx = postIndex
   529  		case 6:
   530  			if wireType != 2 {
   531  				return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType)
   532  			}
   533  			var msglen int
   534  			for shift := uint(0); ; shift += 7 {
   535  				if shift >= 64 {
   536  					return ErrIntOverflowObject
   537  				}
   538  				if iNdEx >= l {
   539  					return io.ErrUnexpectedEOF
   540  				}
   541  				b := dAtA[iNdEx]
   542  				iNdEx++
   543  				msglen |= int(b&0x7F) << shift
   544  				if b < 0x80 {
   545  					break
   546  				}
   547  			}
   548  			if msglen < 0 {
   549  				return ErrInvalidLengthObject
   550  			}
   551  			postIndex := iNdEx + msglen
   552  			if postIndex < 0 {
   553  				return ErrInvalidLengthObject
   554  			}
   555  			if postIndex > l {
   556  				return io.ErrUnexpectedEOF
   557  			}
   558  			if m.Deleted == nil {
   559  				m.Deleted = new(time.Time)
   560  			}
   561  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.Deleted, dAtA[iNdEx:postIndex]); err != nil {
   562  				return err
   563  			}
   564  			iNdEx = postIndex
   565  		default:
   566  			iNdEx = preIndex
   567  			skippy, err := skipObject(dAtA[iNdEx:])
   568  			if err != nil {
   569  				return err
   570  			}
   571  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   572  				return ErrInvalidLengthObject
   573  			}
   574  			if (iNdEx + skippy) > l {
   575  				return io.ErrUnexpectedEOF
   576  			}
   577  			iNdEx += skippy
   578  		}
   579  	}
   580  
   581  	if iNdEx > l {
   582  		return io.ErrUnexpectedEOF
   583  	}
   584  	return nil
   585  }
   586  func (m *TargetTypeVersion) Unmarshal(dAtA []byte) error {
   587  	l := len(dAtA)
   588  	iNdEx := 0
   589  	for iNdEx < l {
   590  		preIndex := iNdEx
   591  		var wire uint64
   592  		for shift := uint(0); ; shift += 7 {
   593  			if shift >= 64 {
   594  				return ErrIntOverflowObject
   595  			}
   596  			if iNdEx >= l {
   597  				return io.ErrUnexpectedEOF
   598  			}
   599  			b := dAtA[iNdEx]
   600  			iNdEx++
   601  			wire |= uint64(b&0x7F) << shift
   602  			if b < 0x80 {
   603  				break
   604  			}
   605  		}
   606  		fieldNum := int32(wire >> 3)
   607  		wireType := int(wire & 0x7)
   608  		if wireType == 4 {
   609  			return fmt.Errorf("proto: TargetTypeVersion: wiretype end group for non-group")
   610  		}
   611  		if fieldNum <= 0 {
   612  			return fmt.Errorf("proto: TargetTypeVersion: illegal tag %d (wire type %d)", fieldNum, wire)
   613  		}
   614  		switch fieldNum {
   615  		case 1:
   616  			if wireType != 2 {
   617  				return fmt.Errorf("proto: wrong wireType = %d for field TargetType", wireType)
   618  			}
   619  			var stringLen uint64
   620  			for shift := uint(0); ; shift += 7 {
   621  				if shift >= 64 {
   622  					return ErrIntOverflowObject
   623  				}
   624  				if iNdEx >= l {
   625  					return io.ErrUnexpectedEOF
   626  				}
   627  				b := dAtA[iNdEx]
   628  				iNdEx++
   629  				stringLen |= uint64(b&0x7F) << shift
   630  				if b < 0x80 {
   631  					break
   632  				}
   633  			}
   634  			intStringLen := int(stringLen)
   635  			if intStringLen < 0 {
   636  				return ErrInvalidLengthObject
   637  			}
   638  			postIndex := iNdEx + intStringLen
   639  			if postIndex < 0 {
   640  				return ErrInvalidLengthObject
   641  			}
   642  			if postIndex > l {
   643  				return io.ErrUnexpectedEOF
   644  			}
   645  			m.TargetType = TargetType(dAtA[iNdEx:postIndex])
   646  			iNdEx = postIndex
   647  		case 2:
   648  			if wireType != 2 {
   649  				return fmt.Errorf("proto: wrong wireType = %d for field TargetVersion", wireType)
   650  			}
   651  			var stringLen uint64
   652  			for shift := uint(0); ; shift += 7 {
   653  				if shift >= 64 {
   654  					return ErrIntOverflowObject
   655  				}
   656  				if iNdEx >= l {
   657  					return io.ErrUnexpectedEOF
   658  				}
   659  				b := dAtA[iNdEx]
   660  				iNdEx++
   661  				stringLen |= uint64(b&0x7F) << shift
   662  				if b < 0x80 {
   663  					break
   664  				}
   665  			}
   666  			intStringLen := int(stringLen)
   667  			if intStringLen < 0 {
   668  				return ErrInvalidLengthObject
   669  			}
   670  			postIndex := iNdEx + intStringLen
   671  			if postIndex < 0 {
   672  				return ErrInvalidLengthObject
   673  			}
   674  			if postIndex > l {
   675  				return io.ErrUnexpectedEOF
   676  			}
   677  			m.TargetVersion = TargetVersion(dAtA[iNdEx:postIndex])
   678  			iNdEx = postIndex
   679  		default:
   680  			iNdEx = preIndex
   681  			skippy, err := skipObject(dAtA[iNdEx:])
   682  			if err != nil {
   683  				return err
   684  			}
   685  			if (skippy < 0) || (iNdEx+skippy) < 0 {
   686  				return ErrInvalidLengthObject
   687  			}
   688  			if (iNdEx + skippy) > l {
   689  				return io.ErrUnexpectedEOF
   690  			}
   691  			iNdEx += skippy
   692  		}
   693  	}
   694  
   695  	if iNdEx > l {
   696  		return io.ErrUnexpectedEOF
   697  	}
   698  	return nil
   699  }
   700  func skipObject(dAtA []byte) (n int, err error) {
   701  	l := len(dAtA)
   702  	iNdEx := 0
   703  	depth := 0
   704  	for iNdEx < l {
   705  		var wire uint64
   706  		for shift := uint(0); ; shift += 7 {
   707  			if shift >= 64 {
   708  				return 0, ErrIntOverflowObject
   709  			}
   710  			if iNdEx >= l {
   711  				return 0, io.ErrUnexpectedEOF
   712  			}
   713  			b := dAtA[iNdEx]
   714  			iNdEx++
   715  			wire |= (uint64(b) & 0x7F) << shift
   716  			if b < 0x80 {
   717  				break
   718  			}
   719  		}
   720  		wireType := int(wire & 0x7)
   721  		switch wireType {
   722  		case 0:
   723  			for shift := uint(0); ; shift += 7 {
   724  				if shift >= 64 {
   725  					return 0, ErrIntOverflowObject
   726  				}
   727  				if iNdEx >= l {
   728  					return 0, io.ErrUnexpectedEOF
   729  				}
   730  				iNdEx++
   731  				if dAtA[iNdEx-1] < 0x80 {
   732  					break
   733  				}
   734  			}
   735  		case 1:
   736  			iNdEx += 8
   737  		case 2:
   738  			var length int
   739  			for shift := uint(0); ; shift += 7 {
   740  				if shift >= 64 {
   741  					return 0, ErrIntOverflowObject
   742  				}
   743  				if iNdEx >= l {
   744  					return 0, io.ErrUnexpectedEOF
   745  				}
   746  				b := dAtA[iNdEx]
   747  				iNdEx++
   748  				length |= (int(b) & 0x7F) << shift
   749  				if b < 0x80 {
   750  					break
   751  				}
   752  			}
   753  			if length < 0 {
   754  				return 0, ErrInvalidLengthObject
   755  			}
   756  			iNdEx += length
   757  		case 3:
   758  			depth++
   759  		case 4:
   760  			if depth == 0 {
   761  				return 0, ErrUnexpectedEndOfGroupObject
   762  			}
   763  			depth--
   764  		case 5:
   765  			iNdEx += 4
   766  		default:
   767  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   768  		}
   769  		if iNdEx < 0 {
   770  			return 0, ErrInvalidLengthObject
   771  		}
   772  		if depth == 0 {
   773  			return iNdEx, nil
   774  		}
   775  	}
   776  	return 0, io.ErrUnexpectedEOF
   777  }
   778  
   779  var (
   780  	ErrInvalidLengthObject        = fmt.Errorf("proto: negative length found during unmarshaling")
   781  	ErrIntOverflowObject          = fmt.Errorf("proto: integer overflow")
   782  	ErrUnexpectedEndOfGroupObject = fmt.Errorf("proto: unexpected end of group")
   783  )