github.com/matrixorigin/matrixone@v1.2.0/pkg/pb/gossip/gossip.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: gossip.proto 3 4 package gossip 5 6 import ( 7 fmt "fmt" 8 io "io" 9 math "math" 10 math_bits "math/bits" 11 12 _ "github.com/gogo/protobuf/gogoproto" 13 proto "github.com/gogo/protobuf/proto" 14 query "github.com/matrixorigin/matrixone/pkg/pb/query" 15 statsinfo "github.com/matrixorigin/matrixone/pkg/pb/statsinfo" 16 _ "google.golang.org/protobuf/types/known/anypb" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var _ = proto.Marshal 21 var _ = fmt.Errorf 22 var _ = math.Inf 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 Operation int32 31 32 const ( 33 Operation_Unknown Operation = 0 34 Operation_Set Operation = 1 35 Operation_Delete Operation = 2 36 ) 37 38 var Operation_name = map[int32]string{ 39 0: "Unknown", 40 1: "Set", 41 2: "Delete", 42 } 43 44 var Operation_value = map[string]int32{ 45 "Unknown": 0, 46 "Set": 1, 47 "Delete": 2, 48 } 49 50 func (x Operation) String() string { 51 return proto.EnumName(Operation_name, int32(x)) 52 } 53 54 func (Operation) EnumDescriptor() ([]byte, []int) { 55 return fileDescriptor_878fa4887b90140c, []int{0} 56 } 57 58 type GossipData struct { 59 // Types that are valid to be assigned to Data: 60 // *GossipData_CacheKeyItem 61 // *GossipData_StatsInfoKeyItem 62 Data isGossipData_Data `protobuf_oneof:"Data"` 63 XXX_NoUnkeyedLiteral struct{} `json:"-"` 64 XXX_unrecognized []byte `json:"-"` 65 XXX_sizecache int32 `json:"-"` 66 } 67 68 func (m *GossipData) Reset() { *m = GossipData{} } 69 func (m *GossipData) String() string { return proto.CompactTextString(m) } 70 func (*GossipData) ProtoMessage() {} 71 func (*GossipData) Descriptor() ([]byte, []int) { 72 return fileDescriptor_878fa4887b90140c, []int{0} 73 } 74 func (m *GossipData) XXX_Unmarshal(b []byte) error { 75 return m.Unmarshal(b) 76 } 77 func (m *GossipData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 78 if deterministic { 79 return xxx_messageInfo_GossipData.Marshal(b, m, deterministic) 80 } else { 81 b = b[:cap(b)] 82 n, err := m.MarshalToSizedBuffer(b) 83 if err != nil { 84 return nil, err 85 } 86 return b[:n], nil 87 } 88 } 89 func (m *GossipData) XXX_Merge(src proto.Message) { 90 xxx_messageInfo_GossipData.Merge(m, src) 91 } 92 func (m *GossipData) XXX_Size() int { 93 return m.Size() 94 } 95 func (m *GossipData) XXX_DiscardUnknown() { 96 xxx_messageInfo_GossipData.DiscardUnknown(m) 97 } 98 99 var xxx_messageInfo_GossipData proto.InternalMessageInfo 100 101 type isGossipData_Data interface { 102 isGossipData_Data() 103 MarshalTo([]byte) (int, error) 104 Size() int 105 } 106 107 type GossipData_CacheKeyItem struct { 108 CacheKeyItem *CacheKeyItem `protobuf:"bytes,1,opt,name=CacheKeyItem,proto3,oneof" json:"CacheKeyItem,omitempty"` 109 } 110 type GossipData_StatsInfoKeyItem struct { 111 StatsInfoKeyItem *StatsInfoKeyItem `protobuf:"bytes,2,opt,name=StatsInfoKeyItem,proto3,oneof" json:"StatsInfoKeyItem,omitempty"` 112 } 113 114 func (*GossipData_CacheKeyItem) isGossipData_Data() {} 115 func (*GossipData_StatsInfoKeyItem) isGossipData_Data() {} 116 117 func (m *GossipData) GetData() isGossipData_Data { 118 if m != nil { 119 return m.Data 120 } 121 return nil 122 } 123 124 func (m *GossipData) GetCacheKeyItem() *CacheKeyItem { 125 if x, ok := m.GetData().(*GossipData_CacheKeyItem); ok { 126 return x.CacheKeyItem 127 } 128 return nil 129 } 130 131 func (m *GossipData) GetStatsInfoKeyItem() *StatsInfoKeyItem { 132 if x, ok := m.GetData().(*GossipData_StatsInfoKeyItem); ok { 133 return x.StatsInfoKeyItem 134 } 135 return nil 136 } 137 138 // XXX_OneofWrappers is for the internal use of the proto package. 139 func (*GossipData) XXX_OneofWrappers() []interface{} { 140 return []interface{}{ 141 (*GossipData_CacheKeyItem)(nil), 142 (*GossipData_StatsInfoKeyItem)(nil), 143 } 144 } 145 146 // CacheKeyItem is the item of cache key for data in file-service. 147 type CacheKeyItem struct { 148 Operation Operation `protobuf:"varint,1,opt,name=Operation,proto3,enum=gossip.Operation" json:"Operation,omitempty"` 149 CacheKey query.CacheKey `protobuf:"bytes,2,opt,name=CacheKey,proto3" json:"CacheKey"` 150 TargetAddress string `protobuf:"bytes,3,opt,name=TargetAddress,proto3" json:"TargetAddress,omitempty"` 151 XXX_NoUnkeyedLiteral struct{} `json:"-"` 152 XXX_unrecognized []byte `json:"-"` 153 XXX_sizecache int32 `json:"-"` 154 } 155 156 func (m *CacheKeyItem) Reset() { *m = CacheKeyItem{} } 157 func (m *CacheKeyItem) String() string { return proto.CompactTextString(m) } 158 func (*CacheKeyItem) ProtoMessage() {} 159 func (*CacheKeyItem) Descriptor() ([]byte, []int) { 160 return fileDescriptor_878fa4887b90140c, []int{1} 161 } 162 func (m *CacheKeyItem) XXX_Unmarshal(b []byte) error { 163 return m.Unmarshal(b) 164 } 165 func (m *CacheKeyItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 166 if deterministic { 167 return xxx_messageInfo_CacheKeyItem.Marshal(b, m, deterministic) 168 } else { 169 b = b[:cap(b)] 170 n, err := m.MarshalToSizedBuffer(b) 171 if err != nil { 172 return nil, err 173 } 174 return b[:n], nil 175 } 176 } 177 func (m *CacheKeyItem) XXX_Merge(src proto.Message) { 178 xxx_messageInfo_CacheKeyItem.Merge(m, src) 179 } 180 func (m *CacheKeyItem) XXX_Size() int { 181 return m.Size() 182 } 183 func (m *CacheKeyItem) XXX_DiscardUnknown() { 184 xxx_messageInfo_CacheKeyItem.DiscardUnknown(m) 185 } 186 187 var xxx_messageInfo_CacheKeyItem proto.InternalMessageInfo 188 189 func (m *CacheKeyItem) GetOperation() Operation { 190 if m != nil { 191 return m.Operation 192 } 193 return Operation_Unknown 194 } 195 196 func (m *CacheKeyItem) GetCacheKey() query.CacheKey { 197 if m != nil { 198 return m.CacheKey 199 } 200 return query.CacheKey{} 201 } 202 203 func (m *CacheKeyItem) GetTargetAddress() string { 204 if m != nil { 205 return m.TargetAddress 206 } 207 return "" 208 } 209 210 type StatsInfoKeyItem struct { 211 Operation Operation `protobuf:"varint,1,opt,name=Operation,proto3,enum=gossip.Operation" json:"Operation,omitempty"` 212 StatsInfoKey statsinfo.StatsInfoKey `protobuf:"bytes,2,opt,name=StatsInfoKey,proto3" json:"StatsInfoKey"` 213 TargetAddress string `protobuf:"bytes,3,opt,name=TargetAddress,proto3" json:"TargetAddress,omitempty"` 214 XXX_NoUnkeyedLiteral struct{} `json:"-"` 215 XXX_unrecognized []byte `json:"-"` 216 XXX_sizecache int32 `json:"-"` 217 } 218 219 func (m *StatsInfoKeyItem) Reset() { *m = StatsInfoKeyItem{} } 220 func (m *StatsInfoKeyItem) String() string { return proto.CompactTextString(m) } 221 func (*StatsInfoKeyItem) ProtoMessage() {} 222 func (*StatsInfoKeyItem) Descriptor() ([]byte, []int) { 223 return fileDescriptor_878fa4887b90140c, []int{2} 224 } 225 func (m *StatsInfoKeyItem) XXX_Unmarshal(b []byte) error { 226 return m.Unmarshal(b) 227 } 228 func (m *StatsInfoKeyItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 229 if deterministic { 230 return xxx_messageInfo_StatsInfoKeyItem.Marshal(b, m, deterministic) 231 } else { 232 b = b[:cap(b)] 233 n, err := m.MarshalToSizedBuffer(b) 234 if err != nil { 235 return nil, err 236 } 237 return b[:n], nil 238 } 239 } 240 func (m *StatsInfoKeyItem) XXX_Merge(src proto.Message) { 241 xxx_messageInfo_StatsInfoKeyItem.Merge(m, src) 242 } 243 func (m *StatsInfoKeyItem) XXX_Size() int { 244 return m.Size() 245 } 246 func (m *StatsInfoKeyItem) XXX_DiscardUnknown() { 247 xxx_messageInfo_StatsInfoKeyItem.DiscardUnknown(m) 248 } 249 250 var xxx_messageInfo_StatsInfoKeyItem proto.InternalMessageInfo 251 252 func (m *StatsInfoKeyItem) GetOperation() Operation { 253 if m != nil { 254 return m.Operation 255 } 256 return Operation_Unknown 257 } 258 259 func (m *StatsInfoKeyItem) GetStatsInfoKey() statsinfo.StatsInfoKey { 260 if m != nil { 261 return m.StatsInfoKey 262 } 263 return statsinfo.StatsInfoKey{} 264 } 265 266 func (m *StatsInfoKeyItem) GetTargetAddress() string { 267 if m != nil { 268 return m.TargetAddress 269 } 270 return "" 271 } 272 273 type LocalState struct { 274 CacheKeys query.CacheKeys `protobuf:"bytes,1,opt,name=CacheKeys,proto3" json:"CacheKeys"` 275 StatsInfoKeys statsinfo.StatsInfoKeys `protobuf:"bytes,2,opt,name=StatsInfoKeys,proto3" json:"StatsInfoKeys"` 276 XXX_NoUnkeyedLiteral struct{} `json:"-"` 277 XXX_unrecognized []byte `json:"-"` 278 XXX_sizecache int32 `json:"-"` 279 } 280 281 func (m *LocalState) Reset() { *m = LocalState{} } 282 func (m *LocalState) String() string { return proto.CompactTextString(m) } 283 func (*LocalState) ProtoMessage() {} 284 func (*LocalState) Descriptor() ([]byte, []int) { 285 return fileDescriptor_878fa4887b90140c, []int{3} 286 } 287 func (m *LocalState) XXX_Unmarshal(b []byte) error { 288 return m.Unmarshal(b) 289 } 290 func (m *LocalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 291 if deterministic { 292 return xxx_messageInfo_LocalState.Marshal(b, m, deterministic) 293 } else { 294 b = b[:cap(b)] 295 n, err := m.MarshalToSizedBuffer(b) 296 if err != nil { 297 return nil, err 298 } 299 return b[:n], nil 300 } 301 } 302 func (m *LocalState) XXX_Merge(src proto.Message) { 303 xxx_messageInfo_LocalState.Merge(m, src) 304 } 305 func (m *LocalState) XXX_Size() int { 306 return m.Size() 307 } 308 func (m *LocalState) XXX_DiscardUnknown() { 309 xxx_messageInfo_LocalState.DiscardUnknown(m) 310 } 311 312 var xxx_messageInfo_LocalState proto.InternalMessageInfo 313 314 func (m *LocalState) GetCacheKeys() query.CacheKeys { 315 if m != nil { 316 return m.CacheKeys 317 } 318 return query.CacheKeys{} 319 } 320 321 func (m *LocalState) GetStatsInfoKeys() statsinfo.StatsInfoKeys { 322 if m != nil { 323 return m.StatsInfoKeys 324 } 325 return statsinfo.StatsInfoKeys{} 326 } 327 328 type TargetState struct { 329 Data map[string]*LocalState `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 330 XXX_NoUnkeyedLiteral struct{} `json:"-"` 331 XXX_unrecognized []byte `json:"-"` 332 XXX_sizecache int32 `json:"-"` 333 } 334 335 func (m *TargetState) Reset() { *m = TargetState{} } 336 func (m *TargetState) String() string { return proto.CompactTextString(m) } 337 func (*TargetState) ProtoMessage() {} 338 func (*TargetState) Descriptor() ([]byte, []int) { 339 return fileDescriptor_878fa4887b90140c, []int{4} 340 } 341 func (m *TargetState) XXX_Unmarshal(b []byte) error { 342 return m.Unmarshal(b) 343 } 344 func (m *TargetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 345 if deterministic { 346 return xxx_messageInfo_TargetState.Marshal(b, m, deterministic) 347 } else { 348 b = b[:cap(b)] 349 n, err := m.MarshalToSizedBuffer(b) 350 if err != nil { 351 return nil, err 352 } 353 return b[:n], nil 354 } 355 } 356 func (m *TargetState) XXX_Merge(src proto.Message) { 357 xxx_messageInfo_TargetState.Merge(m, src) 358 } 359 func (m *TargetState) XXX_Size() int { 360 return m.Size() 361 } 362 func (m *TargetState) XXX_DiscardUnknown() { 363 xxx_messageInfo_TargetState.DiscardUnknown(m) 364 } 365 366 var xxx_messageInfo_TargetState proto.InternalMessageInfo 367 368 func (m *TargetState) GetData() map[string]*LocalState { 369 if m != nil { 370 return m.Data 371 } 372 return nil 373 } 374 375 type CommonItem struct { 376 Operation Operation `protobuf:"varint,1,opt,name=Operation,proto3,enum=gossip.Operation" json:"Operation,omitempty"` 377 TargetAddress string `protobuf:"bytes,2,opt,name=TargetAddress,proto3" json:"TargetAddress,omitempty"` 378 // Types that are valid to be assigned to Key: 379 // *CommonItem_CacheKey 380 // *CommonItem_StatsInfoKey 381 Key isCommonItem_Key `protobuf_oneof:"Key"` 382 XXX_NoUnkeyedLiteral struct{} `json:"-"` 383 XXX_unrecognized []byte `json:"-"` 384 XXX_sizecache int32 `json:"-"` 385 } 386 387 func (m *CommonItem) Reset() { *m = CommonItem{} } 388 func (m *CommonItem) String() string { return proto.CompactTextString(m) } 389 func (*CommonItem) ProtoMessage() {} 390 func (*CommonItem) Descriptor() ([]byte, []int) { 391 return fileDescriptor_878fa4887b90140c, []int{5} 392 } 393 func (m *CommonItem) XXX_Unmarshal(b []byte) error { 394 return m.Unmarshal(b) 395 } 396 func (m *CommonItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 397 if deterministic { 398 return xxx_messageInfo_CommonItem.Marshal(b, m, deterministic) 399 } else { 400 b = b[:cap(b)] 401 n, err := m.MarshalToSizedBuffer(b) 402 if err != nil { 403 return nil, err 404 } 405 return b[:n], nil 406 } 407 } 408 func (m *CommonItem) XXX_Merge(src proto.Message) { 409 xxx_messageInfo_CommonItem.Merge(m, src) 410 } 411 func (m *CommonItem) XXX_Size() int { 412 return m.Size() 413 } 414 func (m *CommonItem) XXX_DiscardUnknown() { 415 xxx_messageInfo_CommonItem.DiscardUnknown(m) 416 } 417 418 var xxx_messageInfo_CommonItem proto.InternalMessageInfo 419 420 type isCommonItem_Key interface { 421 isCommonItem_Key() 422 MarshalTo([]byte) (int, error) 423 Size() int 424 } 425 426 type CommonItem_CacheKey struct { 427 CacheKey *query.CacheKey `protobuf:"bytes,3,opt,name=CacheKey,proto3,oneof" json:"CacheKey,omitempty"` 428 } 429 type CommonItem_StatsInfoKey struct { 430 StatsInfoKey *statsinfo.StatsInfoKey `protobuf:"bytes,4,opt,name=StatsInfoKey,proto3,oneof" json:"StatsInfoKey,omitempty"` 431 } 432 433 func (*CommonItem_CacheKey) isCommonItem_Key() {} 434 func (*CommonItem_StatsInfoKey) isCommonItem_Key() {} 435 436 func (m *CommonItem) GetKey() isCommonItem_Key { 437 if m != nil { 438 return m.Key 439 } 440 return nil 441 } 442 443 func (m *CommonItem) GetOperation() Operation { 444 if m != nil { 445 return m.Operation 446 } 447 return Operation_Unknown 448 } 449 450 func (m *CommonItem) GetTargetAddress() string { 451 if m != nil { 452 return m.TargetAddress 453 } 454 return "" 455 } 456 457 func (m *CommonItem) GetCacheKey() *query.CacheKey { 458 if x, ok := m.GetKey().(*CommonItem_CacheKey); ok { 459 return x.CacheKey 460 } 461 return nil 462 } 463 464 func (m *CommonItem) GetStatsInfoKey() *statsinfo.StatsInfoKey { 465 if x, ok := m.GetKey().(*CommonItem_StatsInfoKey); ok { 466 return x.StatsInfoKey 467 } 468 return nil 469 } 470 471 // XXX_OneofWrappers is for the internal use of the proto package. 472 func (*CommonItem) XXX_OneofWrappers() []interface{} { 473 return []interface{}{ 474 (*CommonItem_CacheKey)(nil), 475 (*CommonItem_StatsInfoKey)(nil), 476 } 477 } 478 479 func init() { 480 proto.RegisterEnum("gossip.Operation", Operation_name, Operation_value) 481 proto.RegisterType((*GossipData)(nil), "gossip.GossipData") 482 proto.RegisterType((*CacheKeyItem)(nil), "gossip.CacheKeyItem") 483 proto.RegisterType((*StatsInfoKeyItem)(nil), "gossip.StatsInfoKeyItem") 484 proto.RegisterType((*LocalState)(nil), "gossip.LocalState") 485 proto.RegisterType((*TargetState)(nil), "gossip.TargetState") 486 proto.RegisterMapType((map[string]*LocalState)(nil), "gossip.TargetState.DataEntry") 487 proto.RegisterType((*CommonItem)(nil), "gossip.CommonItem") 488 } 489 490 func init() { proto.RegisterFile("gossip.proto", fileDescriptor_878fa4887b90140c) } 491 492 var fileDescriptor_878fa4887b90140c = []byte{ 493 // 535 bytes of a gzipped FileDescriptorProto 494 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x6e, 0xd3, 0x40, 495 0x10, 0xce, 0xc6, 0x6d, 0x8a, 0xc7, 0x29, 0x35, 0x2b, 0x24, 0x42, 0x24, 0x42, 0x14, 0x71, 0x88, 496 0x90, 0x62, 0xab, 0x81, 0x03, 0xaa, 0xd4, 0x43, 0xd3, 0x00, 0xa9, 0x82, 0x84, 0xe4, 0xc2, 0x85, 497 0xdb, 0x26, 0xdd, 0xb8, 0x56, 0xe2, 0x5d, 0x63, 0x6f, 0x00, 0xbf, 0x01, 0x17, 0xee, 0x3c, 0x04, 498 0x0f, 0xd2, 0x23, 0x47, 0x4e, 0x08, 0xe5, 0x49, 0x90, 0x7f, 0x36, 0x5e, 0x27, 0x11, 0x02, 0x6e, 499 0x3b, 0x33, 0xdf, 0x37, 0xf3, 0xcd, 0x8f, 0x16, 0xea, 0x2e, 0x8f, 0x22, 0x2f, 0xb0, 0x82, 0x90, 500 0x0b, 0x8e, 0x6b, 0x99, 0xd5, 0xbc, 0xef, 0x72, 0xee, 0x2e, 0xa8, 0x9d, 0x7a, 0x27, 0xcb, 0x99, 501 0x4d, 0x58, 0x9c, 0x41, 0x9a, 0x3d, 0xd7, 0x13, 0xd7, 0xcb, 0x89, 0x35, 0xe5, 0xbe, 0xed, 0x72, 502 0x97, 0x17, 0x98, 0xc4, 0x4a, 0x8d, 0xf4, 0x95, 0xc3, 0x8d, 0xf7, 0x4b, 0x1a, 0x4a, 0xee, 0x51, 503 0x24, 0x88, 0x88, 0x3c, 0x36, 0xcb, 0xa3, 0x9d, 0xaf, 0x08, 0xe0, 0x65, 0x5a, 0x72, 0x48, 0x04, 504 0xc1, 0x27, 0x50, 0x3f, 0x27, 0xd3, 0x6b, 0x3a, 0xa6, 0xf1, 0x85, 0xa0, 0x7e, 0x03, 0xb5, 0x51, 505 0xd7, 0xe8, 0xdf, 0xb5, 0x72, 0x8d, 0x6a, 0x6c, 0x54, 0x71, 0x4a, 0x58, 0xfc, 0x02, 0xcc, 0xcb, 506 0x24, 0xfb, 0x05, 0x9b, 0x71, 0xc9, 0xaf, 0xa6, 0xfc, 0x86, 0xe4, 0x6f, 0xc6, 0x47, 0x15, 0x67, 507 0x8b, 0x33, 0xa8, 0xc1, 0x5e, 0xa2, 0x25, 0x91, 0x56, 0x2e, 0x60, 0x83, 0xfe, 0x3a, 0xa0, 0x21, 508 0x11, 0x1e, 0x67, 0xa9, 0xb2, 0xdb, 0xfd, 0x3b, 0x32, 0xf3, 0x3a, 0xe0, 0x14, 0x18, 0x7c, 0x0c, 509 0xb7, 0x64, 0x82, 0x5c, 0xc9, 0x91, 0x95, 0x4d, 0x43, 0xba, 0x07, 0x7b, 0x37, 0x3f, 0x1f, 0x56, 510 0x9c, 0x35, 0x0c, 0x3f, 0x82, 0xc3, 0x37, 0x24, 0x74, 0xa9, 0x38, 0xbb, 0xba, 0x0a, 0x69, 0x14, 511 0x35, 0xb4, 0x36, 0xea, 0xea, 0x4e, 0xd9, 0xd9, 0xf9, 0x86, 0xb6, 0x7b, 0xfd, 0x77, 0x79, 0x67, 512 0x50, 0x57, 0x93, 0xe4, 0x12, 0xef, 0x59, 0xc5, 0x8e, 0xd4, 0x70, 0x2e, 0xb5, 0x44, 0xf9, 0x4b, 513 0xb9, 0x9f, 0x11, 0xc0, 0x2b, 0x3e, 0x25, 0x8b, 0x84, 0x4b, 0xf1, 0x53, 0xd0, 0x65, 0xbf, 0x51, 514 0xbe, 0x61, 0x73, 0x63, 0x2e, 0x51, 0x5e, 0xad, 0x00, 0xe2, 0x21, 0x1c, 0xaa, 0xa5, 0xa3, 0xf5, 515 0x6e, 0x77, 0xcb, 0x95, 0x19, 0xca, 0xa4, 0xce, 0x17, 0x04, 0x46, 0x26, 0x2e, 0xd3, 0x72, 0x9c, 516 0x2d, 0xbb, 0x81, 0xda, 0x5a, 0xd7, 0xe8, 0x3f, 0x90, 0xf3, 0x52, 0x20, 0x56, 0x12, 0x7f, 0xce, 517 0x44, 0x18, 0x3b, 0x29, 0xb4, 0x39, 0x06, 0x7d, 0xed, 0xc2, 0x26, 0x68, 0x73, 0x1a, 0xa7, 0x5d, 518 0xe8, 0x4e, 0xf2, 0xc4, 0x5d, 0xd8, 0xff, 0x40, 0x16, 0x4b, 0x9a, 0xeb, 0xc3, 0x32, 0x65, 0x31, 519 0x00, 0x27, 0x03, 0x9c, 0x54, 0x9f, 0xa1, 0xce, 0x0f, 0x04, 0x70, 0xce, 0x7d, 0x9f, 0xb3, 0xff, 520 0xdb, 0xe1, 0xd6, 0x02, 0xaa, 0x3b, 0x16, 0x80, 0x7b, 0xca, 0x21, 0x6a, 0x3b, 0x0f, 0x71, 0xa4, 521 0x1e, 0xe1, 0xe9, 0xc6, 0x61, 0xec, 0xfd, 0xf1, 0x30, 0x46, 0x1b, 0x47, 0x31, 0xd8, 0x07, 0x6d, 522 0x4c, 0xe3, 0xc7, 0x3d, 0xa5, 0x17, 0x6c, 0xc0, 0xc1, 0x5b, 0x36, 0x67, 0xfc, 0x23, 0x33, 0x2b, 523 0xf8, 0x00, 0xb4, 0x4b, 0x2a, 0x4c, 0x84, 0x01, 0x6a, 0x43, 0xba, 0xa0, 0x82, 0x9a, 0xd5, 0xc1, 524 0xe9, 0xcd, 0xaa, 0x85, 0xbe, 0xaf, 0x5a, 0xe8, 0xd7, 0xaa, 0x85, 0xde, 0xd9, 0xca, 0x27, 0xe3, 525 0x13, 0x11, 0x7a, 0x9f, 0x78, 0xe8, 0xb9, 0x1e, 0x93, 0x06, 0xa3, 0x76, 0x30, 0x77, 0xed, 0x60, 526 0x62, 0x67, 0xd3, 0x99, 0xd4, 0xd2, 0xff, 0xe4, 0xc9, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf3, 527 0xb0, 0xb9, 0x78, 0xcf, 0x04, 0x00, 0x00, 528 } 529 530 func (m *GossipData) Marshal() (dAtA []byte, err error) { 531 size := m.Size() 532 dAtA = make([]byte, size) 533 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 534 if err != nil { 535 return nil, err 536 } 537 return dAtA[:n], nil 538 } 539 540 func (m *GossipData) MarshalTo(dAtA []byte) (int, error) { 541 size := m.Size() 542 return m.MarshalToSizedBuffer(dAtA[:size]) 543 } 544 545 func (m *GossipData) MarshalToSizedBuffer(dAtA []byte) (int, error) { 546 i := len(dAtA) 547 _ = i 548 var l int 549 _ = l 550 if m.XXX_unrecognized != nil { 551 i -= len(m.XXX_unrecognized) 552 copy(dAtA[i:], m.XXX_unrecognized) 553 } 554 if m.Data != nil { 555 { 556 size := m.Data.Size() 557 i -= size 558 if _, err := m.Data.MarshalTo(dAtA[i:]); err != nil { 559 return 0, err 560 } 561 } 562 } 563 return len(dAtA) - i, nil 564 } 565 566 func (m *GossipData_CacheKeyItem) MarshalTo(dAtA []byte) (int, error) { 567 size := m.Size() 568 return m.MarshalToSizedBuffer(dAtA[:size]) 569 } 570 571 func (m *GossipData_CacheKeyItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { 572 i := len(dAtA) 573 if m.CacheKeyItem != nil { 574 { 575 size, err := m.CacheKeyItem.MarshalToSizedBuffer(dAtA[:i]) 576 if err != nil { 577 return 0, err 578 } 579 i -= size 580 i = encodeVarintGossip(dAtA, i, uint64(size)) 581 } 582 i-- 583 dAtA[i] = 0xa 584 } 585 return len(dAtA) - i, nil 586 } 587 func (m *GossipData_StatsInfoKeyItem) MarshalTo(dAtA []byte) (int, error) { 588 size := m.Size() 589 return m.MarshalToSizedBuffer(dAtA[:size]) 590 } 591 592 func (m *GossipData_StatsInfoKeyItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { 593 i := len(dAtA) 594 if m.StatsInfoKeyItem != nil { 595 { 596 size, err := m.StatsInfoKeyItem.MarshalToSizedBuffer(dAtA[:i]) 597 if err != nil { 598 return 0, err 599 } 600 i -= size 601 i = encodeVarintGossip(dAtA, i, uint64(size)) 602 } 603 i-- 604 dAtA[i] = 0x12 605 } 606 return len(dAtA) - i, nil 607 } 608 func (m *CacheKeyItem) Marshal() (dAtA []byte, err error) { 609 size := m.Size() 610 dAtA = make([]byte, size) 611 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 612 if err != nil { 613 return nil, err 614 } 615 return dAtA[:n], nil 616 } 617 618 func (m *CacheKeyItem) MarshalTo(dAtA []byte) (int, error) { 619 size := m.Size() 620 return m.MarshalToSizedBuffer(dAtA[:size]) 621 } 622 623 func (m *CacheKeyItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { 624 i := len(dAtA) 625 _ = i 626 var l int 627 _ = l 628 if m.XXX_unrecognized != nil { 629 i -= len(m.XXX_unrecognized) 630 copy(dAtA[i:], m.XXX_unrecognized) 631 } 632 if len(m.TargetAddress) > 0 { 633 i -= len(m.TargetAddress) 634 copy(dAtA[i:], m.TargetAddress) 635 i = encodeVarintGossip(dAtA, i, uint64(len(m.TargetAddress))) 636 i-- 637 dAtA[i] = 0x1a 638 } 639 { 640 size, err := m.CacheKey.MarshalToSizedBuffer(dAtA[:i]) 641 if err != nil { 642 return 0, err 643 } 644 i -= size 645 i = encodeVarintGossip(dAtA, i, uint64(size)) 646 } 647 i-- 648 dAtA[i] = 0x12 649 if m.Operation != 0 { 650 i = encodeVarintGossip(dAtA, i, uint64(m.Operation)) 651 i-- 652 dAtA[i] = 0x8 653 } 654 return len(dAtA) - i, nil 655 } 656 657 func (m *StatsInfoKeyItem) Marshal() (dAtA []byte, err error) { 658 size := m.Size() 659 dAtA = make([]byte, size) 660 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 661 if err != nil { 662 return nil, err 663 } 664 return dAtA[:n], nil 665 } 666 667 func (m *StatsInfoKeyItem) MarshalTo(dAtA []byte) (int, error) { 668 size := m.Size() 669 return m.MarshalToSizedBuffer(dAtA[:size]) 670 } 671 672 func (m *StatsInfoKeyItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { 673 i := len(dAtA) 674 _ = i 675 var l int 676 _ = l 677 if m.XXX_unrecognized != nil { 678 i -= len(m.XXX_unrecognized) 679 copy(dAtA[i:], m.XXX_unrecognized) 680 } 681 if len(m.TargetAddress) > 0 { 682 i -= len(m.TargetAddress) 683 copy(dAtA[i:], m.TargetAddress) 684 i = encodeVarintGossip(dAtA, i, uint64(len(m.TargetAddress))) 685 i-- 686 dAtA[i] = 0x1a 687 } 688 { 689 size, err := m.StatsInfoKey.MarshalToSizedBuffer(dAtA[:i]) 690 if err != nil { 691 return 0, err 692 } 693 i -= size 694 i = encodeVarintGossip(dAtA, i, uint64(size)) 695 } 696 i-- 697 dAtA[i] = 0x12 698 if m.Operation != 0 { 699 i = encodeVarintGossip(dAtA, i, uint64(m.Operation)) 700 i-- 701 dAtA[i] = 0x8 702 } 703 return len(dAtA) - i, nil 704 } 705 706 func (m *LocalState) Marshal() (dAtA []byte, err error) { 707 size := m.Size() 708 dAtA = make([]byte, size) 709 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 710 if err != nil { 711 return nil, err 712 } 713 return dAtA[:n], nil 714 } 715 716 func (m *LocalState) MarshalTo(dAtA []byte) (int, error) { 717 size := m.Size() 718 return m.MarshalToSizedBuffer(dAtA[:size]) 719 } 720 721 func (m *LocalState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 722 i := len(dAtA) 723 _ = i 724 var l int 725 _ = l 726 if m.XXX_unrecognized != nil { 727 i -= len(m.XXX_unrecognized) 728 copy(dAtA[i:], m.XXX_unrecognized) 729 } 730 { 731 size, err := m.StatsInfoKeys.MarshalToSizedBuffer(dAtA[:i]) 732 if err != nil { 733 return 0, err 734 } 735 i -= size 736 i = encodeVarintGossip(dAtA, i, uint64(size)) 737 } 738 i-- 739 dAtA[i] = 0x12 740 { 741 size, err := m.CacheKeys.MarshalToSizedBuffer(dAtA[:i]) 742 if err != nil { 743 return 0, err 744 } 745 i -= size 746 i = encodeVarintGossip(dAtA, i, uint64(size)) 747 } 748 i-- 749 dAtA[i] = 0xa 750 return len(dAtA) - i, nil 751 } 752 753 func (m *TargetState) Marshal() (dAtA []byte, err error) { 754 size := m.Size() 755 dAtA = make([]byte, size) 756 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 757 if err != nil { 758 return nil, err 759 } 760 return dAtA[:n], nil 761 } 762 763 func (m *TargetState) MarshalTo(dAtA []byte) (int, error) { 764 size := m.Size() 765 return m.MarshalToSizedBuffer(dAtA[:size]) 766 } 767 768 func (m *TargetState) MarshalToSizedBuffer(dAtA []byte) (int, error) { 769 i := len(dAtA) 770 _ = i 771 var l int 772 _ = l 773 if m.XXX_unrecognized != nil { 774 i -= len(m.XXX_unrecognized) 775 copy(dAtA[i:], m.XXX_unrecognized) 776 } 777 if len(m.Data) > 0 { 778 for k := range m.Data { 779 v := m.Data[k] 780 baseI := i 781 if v != nil { 782 { 783 size, err := v.MarshalToSizedBuffer(dAtA[:i]) 784 if err != nil { 785 return 0, err 786 } 787 i -= size 788 i = encodeVarintGossip(dAtA, i, uint64(size)) 789 } 790 i-- 791 dAtA[i] = 0x12 792 } 793 i -= len(k) 794 copy(dAtA[i:], k) 795 i = encodeVarintGossip(dAtA, i, uint64(len(k))) 796 i-- 797 dAtA[i] = 0xa 798 i = encodeVarintGossip(dAtA, i, uint64(baseI-i)) 799 i-- 800 dAtA[i] = 0xa 801 } 802 } 803 return len(dAtA) - i, nil 804 } 805 806 func (m *CommonItem) Marshal() (dAtA []byte, err error) { 807 size := m.Size() 808 dAtA = make([]byte, size) 809 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 810 if err != nil { 811 return nil, err 812 } 813 return dAtA[:n], nil 814 } 815 816 func (m *CommonItem) MarshalTo(dAtA []byte) (int, error) { 817 size := m.Size() 818 return m.MarshalToSizedBuffer(dAtA[:size]) 819 } 820 821 func (m *CommonItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { 822 i := len(dAtA) 823 _ = i 824 var l int 825 _ = l 826 if m.XXX_unrecognized != nil { 827 i -= len(m.XXX_unrecognized) 828 copy(dAtA[i:], m.XXX_unrecognized) 829 } 830 if m.Key != nil { 831 { 832 size := m.Key.Size() 833 i -= size 834 if _, err := m.Key.MarshalTo(dAtA[i:]); err != nil { 835 return 0, err 836 } 837 } 838 } 839 if len(m.TargetAddress) > 0 { 840 i -= len(m.TargetAddress) 841 copy(dAtA[i:], m.TargetAddress) 842 i = encodeVarintGossip(dAtA, i, uint64(len(m.TargetAddress))) 843 i-- 844 dAtA[i] = 0x12 845 } 846 if m.Operation != 0 { 847 i = encodeVarintGossip(dAtA, i, uint64(m.Operation)) 848 i-- 849 dAtA[i] = 0x8 850 } 851 return len(dAtA) - i, nil 852 } 853 854 func (m *CommonItem_CacheKey) MarshalTo(dAtA []byte) (int, error) { 855 size := m.Size() 856 return m.MarshalToSizedBuffer(dAtA[:size]) 857 } 858 859 func (m *CommonItem_CacheKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { 860 i := len(dAtA) 861 if m.CacheKey != nil { 862 { 863 size, err := m.CacheKey.MarshalToSizedBuffer(dAtA[:i]) 864 if err != nil { 865 return 0, err 866 } 867 i -= size 868 i = encodeVarintGossip(dAtA, i, uint64(size)) 869 } 870 i-- 871 dAtA[i] = 0x1a 872 } 873 return len(dAtA) - i, nil 874 } 875 func (m *CommonItem_StatsInfoKey) MarshalTo(dAtA []byte) (int, error) { 876 size := m.Size() 877 return m.MarshalToSizedBuffer(dAtA[:size]) 878 } 879 880 func (m *CommonItem_StatsInfoKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { 881 i := len(dAtA) 882 if m.StatsInfoKey != nil { 883 { 884 size, err := m.StatsInfoKey.MarshalToSizedBuffer(dAtA[:i]) 885 if err != nil { 886 return 0, err 887 } 888 i -= size 889 i = encodeVarintGossip(dAtA, i, uint64(size)) 890 } 891 i-- 892 dAtA[i] = 0x22 893 } 894 return len(dAtA) - i, nil 895 } 896 func encodeVarintGossip(dAtA []byte, offset int, v uint64) int { 897 offset -= sovGossip(v) 898 base := offset 899 for v >= 1<<7 { 900 dAtA[offset] = uint8(v&0x7f | 0x80) 901 v >>= 7 902 offset++ 903 } 904 dAtA[offset] = uint8(v) 905 return base 906 } 907 func (m *GossipData) Size() (n int) { 908 if m == nil { 909 return 0 910 } 911 var l int 912 _ = l 913 if m.Data != nil { 914 n += m.Data.Size() 915 } 916 if m.XXX_unrecognized != nil { 917 n += len(m.XXX_unrecognized) 918 } 919 return n 920 } 921 922 func (m *GossipData_CacheKeyItem) Size() (n int) { 923 if m == nil { 924 return 0 925 } 926 var l int 927 _ = l 928 if m.CacheKeyItem != nil { 929 l = m.CacheKeyItem.Size() 930 n += 1 + l + sovGossip(uint64(l)) 931 } 932 return n 933 } 934 func (m *GossipData_StatsInfoKeyItem) Size() (n int) { 935 if m == nil { 936 return 0 937 } 938 var l int 939 _ = l 940 if m.StatsInfoKeyItem != nil { 941 l = m.StatsInfoKeyItem.Size() 942 n += 1 + l + sovGossip(uint64(l)) 943 } 944 return n 945 } 946 func (m *CacheKeyItem) Size() (n int) { 947 if m == nil { 948 return 0 949 } 950 var l int 951 _ = l 952 if m.Operation != 0 { 953 n += 1 + sovGossip(uint64(m.Operation)) 954 } 955 l = m.CacheKey.Size() 956 n += 1 + l + sovGossip(uint64(l)) 957 l = len(m.TargetAddress) 958 if l > 0 { 959 n += 1 + l + sovGossip(uint64(l)) 960 } 961 if m.XXX_unrecognized != nil { 962 n += len(m.XXX_unrecognized) 963 } 964 return n 965 } 966 967 func (m *StatsInfoKeyItem) Size() (n int) { 968 if m == nil { 969 return 0 970 } 971 var l int 972 _ = l 973 if m.Operation != 0 { 974 n += 1 + sovGossip(uint64(m.Operation)) 975 } 976 l = m.StatsInfoKey.Size() 977 n += 1 + l + sovGossip(uint64(l)) 978 l = len(m.TargetAddress) 979 if l > 0 { 980 n += 1 + l + sovGossip(uint64(l)) 981 } 982 if m.XXX_unrecognized != nil { 983 n += len(m.XXX_unrecognized) 984 } 985 return n 986 } 987 988 func (m *LocalState) Size() (n int) { 989 if m == nil { 990 return 0 991 } 992 var l int 993 _ = l 994 l = m.CacheKeys.Size() 995 n += 1 + l + sovGossip(uint64(l)) 996 l = m.StatsInfoKeys.Size() 997 n += 1 + l + sovGossip(uint64(l)) 998 if m.XXX_unrecognized != nil { 999 n += len(m.XXX_unrecognized) 1000 } 1001 return n 1002 } 1003 1004 func (m *TargetState) Size() (n int) { 1005 if m == nil { 1006 return 0 1007 } 1008 var l int 1009 _ = l 1010 if len(m.Data) > 0 { 1011 for k, v := range m.Data { 1012 _ = k 1013 _ = v 1014 l = 0 1015 if v != nil { 1016 l = v.Size() 1017 l += 1 + sovGossip(uint64(l)) 1018 } 1019 mapEntrySize := 1 + len(k) + sovGossip(uint64(len(k))) + l 1020 n += mapEntrySize + 1 + sovGossip(uint64(mapEntrySize)) 1021 } 1022 } 1023 if m.XXX_unrecognized != nil { 1024 n += len(m.XXX_unrecognized) 1025 } 1026 return n 1027 } 1028 1029 func (m *CommonItem) Size() (n int) { 1030 if m == nil { 1031 return 0 1032 } 1033 var l int 1034 _ = l 1035 if m.Operation != 0 { 1036 n += 1 + sovGossip(uint64(m.Operation)) 1037 } 1038 l = len(m.TargetAddress) 1039 if l > 0 { 1040 n += 1 + l + sovGossip(uint64(l)) 1041 } 1042 if m.Key != nil { 1043 n += m.Key.Size() 1044 } 1045 if m.XXX_unrecognized != nil { 1046 n += len(m.XXX_unrecognized) 1047 } 1048 return n 1049 } 1050 1051 func (m *CommonItem_CacheKey) Size() (n int) { 1052 if m == nil { 1053 return 0 1054 } 1055 var l int 1056 _ = l 1057 if m.CacheKey != nil { 1058 l = m.CacheKey.Size() 1059 n += 1 + l + sovGossip(uint64(l)) 1060 } 1061 return n 1062 } 1063 func (m *CommonItem_StatsInfoKey) Size() (n int) { 1064 if m == nil { 1065 return 0 1066 } 1067 var l int 1068 _ = l 1069 if m.StatsInfoKey != nil { 1070 l = m.StatsInfoKey.Size() 1071 n += 1 + l + sovGossip(uint64(l)) 1072 } 1073 return n 1074 } 1075 1076 func sovGossip(x uint64) (n int) { 1077 return (math_bits.Len64(x|1) + 6) / 7 1078 } 1079 func sozGossip(x uint64) (n int) { 1080 return sovGossip(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1081 } 1082 func (m *GossipData) Unmarshal(dAtA []byte) error { 1083 l := len(dAtA) 1084 iNdEx := 0 1085 for iNdEx < l { 1086 preIndex := iNdEx 1087 var wire uint64 1088 for shift := uint(0); ; shift += 7 { 1089 if shift >= 64 { 1090 return ErrIntOverflowGossip 1091 } 1092 if iNdEx >= l { 1093 return io.ErrUnexpectedEOF 1094 } 1095 b := dAtA[iNdEx] 1096 iNdEx++ 1097 wire |= uint64(b&0x7F) << shift 1098 if b < 0x80 { 1099 break 1100 } 1101 } 1102 fieldNum := int32(wire >> 3) 1103 wireType := int(wire & 0x7) 1104 if wireType == 4 { 1105 return fmt.Errorf("proto: GossipData: wiretype end group for non-group") 1106 } 1107 if fieldNum <= 0 { 1108 return fmt.Errorf("proto: GossipData: illegal tag %d (wire type %d)", fieldNum, wire) 1109 } 1110 switch fieldNum { 1111 case 1: 1112 if wireType != 2 { 1113 return fmt.Errorf("proto: wrong wireType = %d for field CacheKeyItem", wireType) 1114 } 1115 var msglen int 1116 for shift := uint(0); ; shift += 7 { 1117 if shift >= 64 { 1118 return ErrIntOverflowGossip 1119 } 1120 if iNdEx >= l { 1121 return io.ErrUnexpectedEOF 1122 } 1123 b := dAtA[iNdEx] 1124 iNdEx++ 1125 msglen |= int(b&0x7F) << shift 1126 if b < 0x80 { 1127 break 1128 } 1129 } 1130 if msglen < 0 { 1131 return ErrInvalidLengthGossip 1132 } 1133 postIndex := iNdEx + msglen 1134 if postIndex < 0 { 1135 return ErrInvalidLengthGossip 1136 } 1137 if postIndex > l { 1138 return io.ErrUnexpectedEOF 1139 } 1140 v := &CacheKeyItem{} 1141 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1142 return err 1143 } 1144 m.Data = &GossipData_CacheKeyItem{v} 1145 iNdEx = postIndex 1146 case 2: 1147 if wireType != 2 { 1148 return fmt.Errorf("proto: wrong wireType = %d for field StatsInfoKeyItem", wireType) 1149 } 1150 var msglen int 1151 for shift := uint(0); ; shift += 7 { 1152 if shift >= 64 { 1153 return ErrIntOverflowGossip 1154 } 1155 if iNdEx >= l { 1156 return io.ErrUnexpectedEOF 1157 } 1158 b := dAtA[iNdEx] 1159 iNdEx++ 1160 msglen |= int(b&0x7F) << shift 1161 if b < 0x80 { 1162 break 1163 } 1164 } 1165 if msglen < 0 { 1166 return ErrInvalidLengthGossip 1167 } 1168 postIndex := iNdEx + msglen 1169 if postIndex < 0 { 1170 return ErrInvalidLengthGossip 1171 } 1172 if postIndex > l { 1173 return io.ErrUnexpectedEOF 1174 } 1175 v := &StatsInfoKeyItem{} 1176 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1177 return err 1178 } 1179 m.Data = &GossipData_StatsInfoKeyItem{v} 1180 iNdEx = postIndex 1181 default: 1182 iNdEx = preIndex 1183 skippy, err := skipGossip(dAtA[iNdEx:]) 1184 if err != nil { 1185 return err 1186 } 1187 if (skippy < 0) || (iNdEx+skippy) < 0 { 1188 return ErrInvalidLengthGossip 1189 } 1190 if (iNdEx + skippy) > l { 1191 return io.ErrUnexpectedEOF 1192 } 1193 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1194 iNdEx += skippy 1195 } 1196 } 1197 1198 if iNdEx > l { 1199 return io.ErrUnexpectedEOF 1200 } 1201 return nil 1202 } 1203 func (m *CacheKeyItem) Unmarshal(dAtA []byte) error { 1204 l := len(dAtA) 1205 iNdEx := 0 1206 for iNdEx < l { 1207 preIndex := iNdEx 1208 var wire uint64 1209 for shift := uint(0); ; shift += 7 { 1210 if shift >= 64 { 1211 return ErrIntOverflowGossip 1212 } 1213 if iNdEx >= l { 1214 return io.ErrUnexpectedEOF 1215 } 1216 b := dAtA[iNdEx] 1217 iNdEx++ 1218 wire |= uint64(b&0x7F) << shift 1219 if b < 0x80 { 1220 break 1221 } 1222 } 1223 fieldNum := int32(wire >> 3) 1224 wireType := int(wire & 0x7) 1225 if wireType == 4 { 1226 return fmt.Errorf("proto: CacheKeyItem: wiretype end group for non-group") 1227 } 1228 if fieldNum <= 0 { 1229 return fmt.Errorf("proto: CacheKeyItem: illegal tag %d (wire type %d)", fieldNum, wire) 1230 } 1231 switch fieldNum { 1232 case 1: 1233 if wireType != 0 { 1234 return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType) 1235 } 1236 m.Operation = 0 1237 for shift := uint(0); ; shift += 7 { 1238 if shift >= 64 { 1239 return ErrIntOverflowGossip 1240 } 1241 if iNdEx >= l { 1242 return io.ErrUnexpectedEOF 1243 } 1244 b := dAtA[iNdEx] 1245 iNdEx++ 1246 m.Operation |= Operation(b&0x7F) << shift 1247 if b < 0x80 { 1248 break 1249 } 1250 } 1251 case 2: 1252 if wireType != 2 { 1253 return fmt.Errorf("proto: wrong wireType = %d for field CacheKey", wireType) 1254 } 1255 var msglen int 1256 for shift := uint(0); ; shift += 7 { 1257 if shift >= 64 { 1258 return ErrIntOverflowGossip 1259 } 1260 if iNdEx >= l { 1261 return io.ErrUnexpectedEOF 1262 } 1263 b := dAtA[iNdEx] 1264 iNdEx++ 1265 msglen |= int(b&0x7F) << shift 1266 if b < 0x80 { 1267 break 1268 } 1269 } 1270 if msglen < 0 { 1271 return ErrInvalidLengthGossip 1272 } 1273 postIndex := iNdEx + msglen 1274 if postIndex < 0 { 1275 return ErrInvalidLengthGossip 1276 } 1277 if postIndex > l { 1278 return io.ErrUnexpectedEOF 1279 } 1280 if err := m.CacheKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1281 return err 1282 } 1283 iNdEx = postIndex 1284 case 3: 1285 if wireType != 2 { 1286 return fmt.Errorf("proto: wrong wireType = %d for field TargetAddress", wireType) 1287 } 1288 var stringLen uint64 1289 for shift := uint(0); ; shift += 7 { 1290 if shift >= 64 { 1291 return ErrIntOverflowGossip 1292 } 1293 if iNdEx >= l { 1294 return io.ErrUnexpectedEOF 1295 } 1296 b := dAtA[iNdEx] 1297 iNdEx++ 1298 stringLen |= uint64(b&0x7F) << shift 1299 if b < 0x80 { 1300 break 1301 } 1302 } 1303 intStringLen := int(stringLen) 1304 if intStringLen < 0 { 1305 return ErrInvalidLengthGossip 1306 } 1307 postIndex := iNdEx + intStringLen 1308 if postIndex < 0 { 1309 return ErrInvalidLengthGossip 1310 } 1311 if postIndex > l { 1312 return io.ErrUnexpectedEOF 1313 } 1314 m.TargetAddress = string(dAtA[iNdEx:postIndex]) 1315 iNdEx = postIndex 1316 default: 1317 iNdEx = preIndex 1318 skippy, err := skipGossip(dAtA[iNdEx:]) 1319 if err != nil { 1320 return err 1321 } 1322 if (skippy < 0) || (iNdEx+skippy) < 0 { 1323 return ErrInvalidLengthGossip 1324 } 1325 if (iNdEx + skippy) > l { 1326 return io.ErrUnexpectedEOF 1327 } 1328 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1329 iNdEx += skippy 1330 } 1331 } 1332 1333 if iNdEx > l { 1334 return io.ErrUnexpectedEOF 1335 } 1336 return nil 1337 } 1338 func (m *StatsInfoKeyItem) Unmarshal(dAtA []byte) error { 1339 l := len(dAtA) 1340 iNdEx := 0 1341 for iNdEx < l { 1342 preIndex := iNdEx 1343 var wire uint64 1344 for shift := uint(0); ; shift += 7 { 1345 if shift >= 64 { 1346 return ErrIntOverflowGossip 1347 } 1348 if iNdEx >= l { 1349 return io.ErrUnexpectedEOF 1350 } 1351 b := dAtA[iNdEx] 1352 iNdEx++ 1353 wire |= uint64(b&0x7F) << shift 1354 if b < 0x80 { 1355 break 1356 } 1357 } 1358 fieldNum := int32(wire >> 3) 1359 wireType := int(wire & 0x7) 1360 if wireType == 4 { 1361 return fmt.Errorf("proto: StatsInfoKeyItem: wiretype end group for non-group") 1362 } 1363 if fieldNum <= 0 { 1364 return fmt.Errorf("proto: StatsInfoKeyItem: illegal tag %d (wire type %d)", fieldNum, wire) 1365 } 1366 switch fieldNum { 1367 case 1: 1368 if wireType != 0 { 1369 return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType) 1370 } 1371 m.Operation = 0 1372 for shift := uint(0); ; shift += 7 { 1373 if shift >= 64 { 1374 return ErrIntOverflowGossip 1375 } 1376 if iNdEx >= l { 1377 return io.ErrUnexpectedEOF 1378 } 1379 b := dAtA[iNdEx] 1380 iNdEx++ 1381 m.Operation |= Operation(b&0x7F) << shift 1382 if b < 0x80 { 1383 break 1384 } 1385 } 1386 case 2: 1387 if wireType != 2 { 1388 return fmt.Errorf("proto: wrong wireType = %d for field StatsInfoKey", wireType) 1389 } 1390 var msglen int 1391 for shift := uint(0); ; shift += 7 { 1392 if shift >= 64 { 1393 return ErrIntOverflowGossip 1394 } 1395 if iNdEx >= l { 1396 return io.ErrUnexpectedEOF 1397 } 1398 b := dAtA[iNdEx] 1399 iNdEx++ 1400 msglen |= int(b&0x7F) << shift 1401 if b < 0x80 { 1402 break 1403 } 1404 } 1405 if msglen < 0 { 1406 return ErrInvalidLengthGossip 1407 } 1408 postIndex := iNdEx + msglen 1409 if postIndex < 0 { 1410 return ErrInvalidLengthGossip 1411 } 1412 if postIndex > l { 1413 return io.ErrUnexpectedEOF 1414 } 1415 if err := m.StatsInfoKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1416 return err 1417 } 1418 iNdEx = postIndex 1419 case 3: 1420 if wireType != 2 { 1421 return fmt.Errorf("proto: wrong wireType = %d for field TargetAddress", wireType) 1422 } 1423 var stringLen uint64 1424 for shift := uint(0); ; shift += 7 { 1425 if shift >= 64 { 1426 return ErrIntOverflowGossip 1427 } 1428 if iNdEx >= l { 1429 return io.ErrUnexpectedEOF 1430 } 1431 b := dAtA[iNdEx] 1432 iNdEx++ 1433 stringLen |= uint64(b&0x7F) << shift 1434 if b < 0x80 { 1435 break 1436 } 1437 } 1438 intStringLen := int(stringLen) 1439 if intStringLen < 0 { 1440 return ErrInvalidLengthGossip 1441 } 1442 postIndex := iNdEx + intStringLen 1443 if postIndex < 0 { 1444 return ErrInvalidLengthGossip 1445 } 1446 if postIndex > l { 1447 return io.ErrUnexpectedEOF 1448 } 1449 m.TargetAddress = string(dAtA[iNdEx:postIndex]) 1450 iNdEx = postIndex 1451 default: 1452 iNdEx = preIndex 1453 skippy, err := skipGossip(dAtA[iNdEx:]) 1454 if err != nil { 1455 return err 1456 } 1457 if (skippy < 0) || (iNdEx+skippy) < 0 { 1458 return ErrInvalidLengthGossip 1459 } 1460 if (iNdEx + skippy) > l { 1461 return io.ErrUnexpectedEOF 1462 } 1463 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1464 iNdEx += skippy 1465 } 1466 } 1467 1468 if iNdEx > l { 1469 return io.ErrUnexpectedEOF 1470 } 1471 return nil 1472 } 1473 func (m *LocalState) Unmarshal(dAtA []byte) error { 1474 l := len(dAtA) 1475 iNdEx := 0 1476 for iNdEx < l { 1477 preIndex := iNdEx 1478 var wire uint64 1479 for shift := uint(0); ; shift += 7 { 1480 if shift >= 64 { 1481 return ErrIntOverflowGossip 1482 } 1483 if iNdEx >= l { 1484 return io.ErrUnexpectedEOF 1485 } 1486 b := dAtA[iNdEx] 1487 iNdEx++ 1488 wire |= uint64(b&0x7F) << shift 1489 if b < 0x80 { 1490 break 1491 } 1492 } 1493 fieldNum := int32(wire >> 3) 1494 wireType := int(wire & 0x7) 1495 if wireType == 4 { 1496 return fmt.Errorf("proto: LocalState: wiretype end group for non-group") 1497 } 1498 if fieldNum <= 0 { 1499 return fmt.Errorf("proto: LocalState: illegal tag %d (wire type %d)", fieldNum, wire) 1500 } 1501 switch fieldNum { 1502 case 1: 1503 if wireType != 2 { 1504 return fmt.Errorf("proto: wrong wireType = %d for field CacheKeys", wireType) 1505 } 1506 var msglen int 1507 for shift := uint(0); ; shift += 7 { 1508 if shift >= 64 { 1509 return ErrIntOverflowGossip 1510 } 1511 if iNdEx >= l { 1512 return io.ErrUnexpectedEOF 1513 } 1514 b := dAtA[iNdEx] 1515 iNdEx++ 1516 msglen |= int(b&0x7F) << shift 1517 if b < 0x80 { 1518 break 1519 } 1520 } 1521 if msglen < 0 { 1522 return ErrInvalidLengthGossip 1523 } 1524 postIndex := iNdEx + msglen 1525 if postIndex < 0 { 1526 return ErrInvalidLengthGossip 1527 } 1528 if postIndex > l { 1529 return io.ErrUnexpectedEOF 1530 } 1531 if err := m.CacheKeys.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1532 return err 1533 } 1534 iNdEx = postIndex 1535 case 2: 1536 if wireType != 2 { 1537 return fmt.Errorf("proto: wrong wireType = %d for field StatsInfoKeys", wireType) 1538 } 1539 var msglen int 1540 for shift := uint(0); ; shift += 7 { 1541 if shift >= 64 { 1542 return ErrIntOverflowGossip 1543 } 1544 if iNdEx >= l { 1545 return io.ErrUnexpectedEOF 1546 } 1547 b := dAtA[iNdEx] 1548 iNdEx++ 1549 msglen |= int(b&0x7F) << shift 1550 if b < 0x80 { 1551 break 1552 } 1553 } 1554 if msglen < 0 { 1555 return ErrInvalidLengthGossip 1556 } 1557 postIndex := iNdEx + msglen 1558 if postIndex < 0 { 1559 return ErrInvalidLengthGossip 1560 } 1561 if postIndex > l { 1562 return io.ErrUnexpectedEOF 1563 } 1564 if err := m.StatsInfoKeys.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1565 return err 1566 } 1567 iNdEx = postIndex 1568 default: 1569 iNdEx = preIndex 1570 skippy, err := skipGossip(dAtA[iNdEx:]) 1571 if err != nil { 1572 return err 1573 } 1574 if (skippy < 0) || (iNdEx+skippy) < 0 { 1575 return ErrInvalidLengthGossip 1576 } 1577 if (iNdEx + skippy) > l { 1578 return io.ErrUnexpectedEOF 1579 } 1580 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1581 iNdEx += skippy 1582 } 1583 } 1584 1585 if iNdEx > l { 1586 return io.ErrUnexpectedEOF 1587 } 1588 return nil 1589 } 1590 func (m *TargetState) Unmarshal(dAtA []byte) error { 1591 l := len(dAtA) 1592 iNdEx := 0 1593 for iNdEx < l { 1594 preIndex := iNdEx 1595 var wire uint64 1596 for shift := uint(0); ; shift += 7 { 1597 if shift >= 64 { 1598 return ErrIntOverflowGossip 1599 } 1600 if iNdEx >= l { 1601 return io.ErrUnexpectedEOF 1602 } 1603 b := dAtA[iNdEx] 1604 iNdEx++ 1605 wire |= uint64(b&0x7F) << shift 1606 if b < 0x80 { 1607 break 1608 } 1609 } 1610 fieldNum := int32(wire >> 3) 1611 wireType := int(wire & 0x7) 1612 if wireType == 4 { 1613 return fmt.Errorf("proto: TargetState: wiretype end group for non-group") 1614 } 1615 if fieldNum <= 0 { 1616 return fmt.Errorf("proto: TargetState: illegal tag %d (wire type %d)", fieldNum, wire) 1617 } 1618 switch fieldNum { 1619 case 1: 1620 if wireType != 2 { 1621 return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) 1622 } 1623 var msglen int 1624 for shift := uint(0); ; shift += 7 { 1625 if shift >= 64 { 1626 return ErrIntOverflowGossip 1627 } 1628 if iNdEx >= l { 1629 return io.ErrUnexpectedEOF 1630 } 1631 b := dAtA[iNdEx] 1632 iNdEx++ 1633 msglen |= int(b&0x7F) << shift 1634 if b < 0x80 { 1635 break 1636 } 1637 } 1638 if msglen < 0 { 1639 return ErrInvalidLengthGossip 1640 } 1641 postIndex := iNdEx + msglen 1642 if postIndex < 0 { 1643 return ErrInvalidLengthGossip 1644 } 1645 if postIndex > l { 1646 return io.ErrUnexpectedEOF 1647 } 1648 if m.Data == nil { 1649 m.Data = make(map[string]*LocalState) 1650 } 1651 var mapkey string 1652 var mapvalue *LocalState 1653 for iNdEx < postIndex { 1654 entryPreIndex := iNdEx 1655 var wire uint64 1656 for shift := uint(0); ; shift += 7 { 1657 if shift >= 64 { 1658 return ErrIntOverflowGossip 1659 } 1660 if iNdEx >= l { 1661 return io.ErrUnexpectedEOF 1662 } 1663 b := dAtA[iNdEx] 1664 iNdEx++ 1665 wire |= uint64(b&0x7F) << shift 1666 if b < 0x80 { 1667 break 1668 } 1669 } 1670 fieldNum := int32(wire >> 3) 1671 if fieldNum == 1 { 1672 var stringLenmapkey uint64 1673 for shift := uint(0); ; shift += 7 { 1674 if shift >= 64 { 1675 return ErrIntOverflowGossip 1676 } 1677 if iNdEx >= l { 1678 return io.ErrUnexpectedEOF 1679 } 1680 b := dAtA[iNdEx] 1681 iNdEx++ 1682 stringLenmapkey |= uint64(b&0x7F) << shift 1683 if b < 0x80 { 1684 break 1685 } 1686 } 1687 intStringLenmapkey := int(stringLenmapkey) 1688 if intStringLenmapkey < 0 { 1689 return ErrInvalidLengthGossip 1690 } 1691 postStringIndexmapkey := iNdEx + intStringLenmapkey 1692 if postStringIndexmapkey < 0 { 1693 return ErrInvalidLengthGossip 1694 } 1695 if postStringIndexmapkey > l { 1696 return io.ErrUnexpectedEOF 1697 } 1698 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 1699 iNdEx = postStringIndexmapkey 1700 } else if fieldNum == 2 { 1701 var mapmsglen int 1702 for shift := uint(0); ; shift += 7 { 1703 if shift >= 64 { 1704 return ErrIntOverflowGossip 1705 } 1706 if iNdEx >= l { 1707 return io.ErrUnexpectedEOF 1708 } 1709 b := dAtA[iNdEx] 1710 iNdEx++ 1711 mapmsglen |= int(b&0x7F) << shift 1712 if b < 0x80 { 1713 break 1714 } 1715 } 1716 if mapmsglen < 0 { 1717 return ErrInvalidLengthGossip 1718 } 1719 postmsgIndex := iNdEx + mapmsglen 1720 if postmsgIndex < 0 { 1721 return ErrInvalidLengthGossip 1722 } 1723 if postmsgIndex > l { 1724 return io.ErrUnexpectedEOF 1725 } 1726 mapvalue = &LocalState{} 1727 if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { 1728 return err 1729 } 1730 iNdEx = postmsgIndex 1731 } else { 1732 iNdEx = entryPreIndex 1733 skippy, err := skipGossip(dAtA[iNdEx:]) 1734 if err != nil { 1735 return err 1736 } 1737 if (skippy < 0) || (iNdEx+skippy) < 0 { 1738 return ErrInvalidLengthGossip 1739 } 1740 if (iNdEx + skippy) > postIndex { 1741 return io.ErrUnexpectedEOF 1742 } 1743 iNdEx += skippy 1744 } 1745 } 1746 m.Data[mapkey] = mapvalue 1747 iNdEx = postIndex 1748 default: 1749 iNdEx = preIndex 1750 skippy, err := skipGossip(dAtA[iNdEx:]) 1751 if err != nil { 1752 return err 1753 } 1754 if (skippy < 0) || (iNdEx+skippy) < 0 { 1755 return ErrInvalidLengthGossip 1756 } 1757 if (iNdEx + skippy) > l { 1758 return io.ErrUnexpectedEOF 1759 } 1760 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1761 iNdEx += skippy 1762 } 1763 } 1764 1765 if iNdEx > l { 1766 return io.ErrUnexpectedEOF 1767 } 1768 return nil 1769 } 1770 func (m *CommonItem) Unmarshal(dAtA []byte) error { 1771 l := len(dAtA) 1772 iNdEx := 0 1773 for iNdEx < l { 1774 preIndex := iNdEx 1775 var wire uint64 1776 for shift := uint(0); ; shift += 7 { 1777 if shift >= 64 { 1778 return ErrIntOverflowGossip 1779 } 1780 if iNdEx >= l { 1781 return io.ErrUnexpectedEOF 1782 } 1783 b := dAtA[iNdEx] 1784 iNdEx++ 1785 wire |= uint64(b&0x7F) << shift 1786 if b < 0x80 { 1787 break 1788 } 1789 } 1790 fieldNum := int32(wire >> 3) 1791 wireType := int(wire & 0x7) 1792 if wireType == 4 { 1793 return fmt.Errorf("proto: CommonItem: wiretype end group for non-group") 1794 } 1795 if fieldNum <= 0 { 1796 return fmt.Errorf("proto: CommonItem: illegal tag %d (wire type %d)", fieldNum, wire) 1797 } 1798 switch fieldNum { 1799 case 1: 1800 if wireType != 0 { 1801 return fmt.Errorf("proto: wrong wireType = %d for field Operation", wireType) 1802 } 1803 m.Operation = 0 1804 for shift := uint(0); ; shift += 7 { 1805 if shift >= 64 { 1806 return ErrIntOverflowGossip 1807 } 1808 if iNdEx >= l { 1809 return io.ErrUnexpectedEOF 1810 } 1811 b := dAtA[iNdEx] 1812 iNdEx++ 1813 m.Operation |= Operation(b&0x7F) << shift 1814 if b < 0x80 { 1815 break 1816 } 1817 } 1818 case 2: 1819 if wireType != 2 { 1820 return fmt.Errorf("proto: wrong wireType = %d for field TargetAddress", wireType) 1821 } 1822 var stringLen uint64 1823 for shift := uint(0); ; shift += 7 { 1824 if shift >= 64 { 1825 return ErrIntOverflowGossip 1826 } 1827 if iNdEx >= l { 1828 return io.ErrUnexpectedEOF 1829 } 1830 b := dAtA[iNdEx] 1831 iNdEx++ 1832 stringLen |= uint64(b&0x7F) << shift 1833 if b < 0x80 { 1834 break 1835 } 1836 } 1837 intStringLen := int(stringLen) 1838 if intStringLen < 0 { 1839 return ErrInvalidLengthGossip 1840 } 1841 postIndex := iNdEx + intStringLen 1842 if postIndex < 0 { 1843 return ErrInvalidLengthGossip 1844 } 1845 if postIndex > l { 1846 return io.ErrUnexpectedEOF 1847 } 1848 m.TargetAddress = string(dAtA[iNdEx:postIndex]) 1849 iNdEx = postIndex 1850 case 3: 1851 if wireType != 2 { 1852 return fmt.Errorf("proto: wrong wireType = %d for field CacheKey", wireType) 1853 } 1854 var msglen int 1855 for shift := uint(0); ; shift += 7 { 1856 if shift >= 64 { 1857 return ErrIntOverflowGossip 1858 } 1859 if iNdEx >= l { 1860 return io.ErrUnexpectedEOF 1861 } 1862 b := dAtA[iNdEx] 1863 iNdEx++ 1864 msglen |= int(b&0x7F) << shift 1865 if b < 0x80 { 1866 break 1867 } 1868 } 1869 if msglen < 0 { 1870 return ErrInvalidLengthGossip 1871 } 1872 postIndex := iNdEx + msglen 1873 if postIndex < 0 { 1874 return ErrInvalidLengthGossip 1875 } 1876 if postIndex > l { 1877 return io.ErrUnexpectedEOF 1878 } 1879 v := &query.CacheKey{} 1880 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1881 return err 1882 } 1883 m.Key = &CommonItem_CacheKey{v} 1884 iNdEx = postIndex 1885 case 4: 1886 if wireType != 2 { 1887 return fmt.Errorf("proto: wrong wireType = %d for field StatsInfoKey", wireType) 1888 } 1889 var msglen int 1890 for shift := uint(0); ; shift += 7 { 1891 if shift >= 64 { 1892 return ErrIntOverflowGossip 1893 } 1894 if iNdEx >= l { 1895 return io.ErrUnexpectedEOF 1896 } 1897 b := dAtA[iNdEx] 1898 iNdEx++ 1899 msglen |= int(b&0x7F) << shift 1900 if b < 0x80 { 1901 break 1902 } 1903 } 1904 if msglen < 0 { 1905 return ErrInvalidLengthGossip 1906 } 1907 postIndex := iNdEx + msglen 1908 if postIndex < 0 { 1909 return ErrInvalidLengthGossip 1910 } 1911 if postIndex > l { 1912 return io.ErrUnexpectedEOF 1913 } 1914 v := &statsinfo.StatsInfoKey{} 1915 if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1916 return err 1917 } 1918 m.Key = &CommonItem_StatsInfoKey{v} 1919 iNdEx = postIndex 1920 default: 1921 iNdEx = preIndex 1922 skippy, err := skipGossip(dAtA[iNdEx:]) 1923 if err != nil { 1924 return err 1925 } 1926 if (skippy < 0) || (iNdEx+skippy) < 0 { 1927 return ErrInvalidLengthGossip 1928 } 1929 if (iNdEx + skippy) > l { 1930 return io.ErrUnexpectedEOF 1931 } 1932 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1933 iNdEx += skippy 1934 } 1935 } 1936 1937 if iNdEx > l { 1938 return io.ErrUnexpectedEOF 1939 } 1940 return nil 1941 } 1942 func skipGossip(dAtA []byte) (n int, err error) { 1943 l := len(dAtA) 1944 iNdEx := 0 1945 depth := 0 1946 for iNdEx < l { 1947 var wire uint64 1948 for shift := uint(0); ; shift += 7 { 1949 if shift >= 64 { 1950 return 0, ErrIntOverflowGossip 1951 } 1952 if iNdEx >= l { 1953 return 0, io.ErrUnexpectedEOF 1954 } 1955 b := dAtA[iNdEx] 1956 iNdEx++ 1957 wire |= (uint64(b) & 0x7F) << shift 1958 if b < 0x80 { 1959 break 1960 } 1961 } 1962 wireType := int(wire & 0x7) 1963 switch wireType { 1964 case 0: 1965 for shift := uint(0); ; shift += 7 { 1966 if shift >= 64 { 1967 return 0, ErrIntOverflowGossip 1968 } 1969 if iNdEx >= l { 1970 return 0, io.ErrUnexpectedEOF 1971 } 1972 iNdEx++ 1973 if dAtA[iNdEx-1] < 0x80 { 1974 break 1975 } 1976 } 1977 case 1: 1978 iNdEx += 8 1979 case 2: 1980 var length int 1981 for shift := uint(0); ; shift += 7 { 1982 if shift >= 64 { 1983 return 0, ErrIntOverflowGossip 1984 } 1985 if iNdEx >= l { 1986 return 0, io.ErrUnexpectedEOF 1987 } 1988 b := dAtA[iNdEx] 1989 iNdEx++ 1990 length |= (int(b) & 0x7F) << shift 1991 if b < 0x80 { 1992 break 1993 } 1994 } 1995 if length < 0 { 1996 return 0, ErrInvalidLengthGossip 1997 } 1998 iNdEx += length 1999 case 3: 2000 depth++ 2001 case 4: 2002 if depth == 0 { 2003 return 0, ErrUnexpectedEndOfGroupGossip 2004 } 2005 depth-- 2006 case 5: 2007 iNdEx += 4 2008 default: 2009 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 2010 } 2011 if iNdEx < 0 { 2012 return 0, ErrInvalidLengthGossip 2013 } 2014 if depth == 0 { 2015 return iNdEx, nil 2016 } 2017 } 2018 return 0, io.ErrUnexpectedEOF 2019 } 2020 2021 var ( 2022 ErrInvalidLengthGossip = fmt.Errorf("proto: negative length found during unmarshaling") 2023 ErrIntOverflowGossip = fmt.Errorf("proto: integer overflow") 2024 ErrUnexpectedEndOfGroupGossip = fmt.Errorf("proto: unexpected end of group") 2025 )