trace.pb.go 153 KB
Newer Older
vyzo's avatar
vyzo committed
1 2 3 4 5
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: trace.proto

package pubsub_pb

6 7 8 9 10 11
import (
	fmt "fmt"
	proto "github.com/gogo/protobuf/proto"
	io "io"
	math "math"
)
vyzo's avatar
vyzo committed
12 13 14 15 16 17 18 19 20 21

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
vyzo's avatar
vyzo committed
22
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
vyzo's avatar
vyzo committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36

type TraceEvent_Type int32

const (
	TraceEvent_PUBLISH_MESSAGE   TraceEvent_Type = 0
	TraceEvent_REJECT_MESSAGE    TraceEvent_Type = 1
	TraceEvent_DUPLICATE_MESSAGE TraceEvent_Type = 2
	TraceEvent_DELIVER_MESSAGE   TraceEvent_Type = 3
	TraceEvent_ADD_PEER          TraceEvent_Type = 4
	TraceEvent_REMOVE_PEER       TraceEvent_Type = 5
	TraceEvent_RECV_RPC          TraceEvent_Type = 6
	TraceEvent_SEND_RPC          TraceEvent_Type = 7
	TraceEvent_DROP_RPC          TraceEvent_Type = 8
	TraceEvent_JOIN              TraceEvent_Type = 9
vyzo's avatar
vyzo committed
37
	TraceEvent_LEAVE             TraceEvent_Type = 10
vyzo's avatar
vyzo committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
	TraceEvent_GRAFT             TraceEvent_Type = 11
	TraceEvent_PRUNE             TraceEvent_Type = 12
)

var TraceEvent_Type_name = map[int32]string{
	0:  "PUBLISH_MESSAGE",
	1:  "REJECT_MESSAGE",
	2:  "DUPLICATE_MESSAGE",
	3:  "DELIVER_MESSAGE",
	4:  "ADD_PEER",
	5:  "REMOVE_PEER",
	6:  "RECV_RPC",
	7:  "SEND_RPC",
	8:  "DROP_RPC",
	9:  "JOIN",
vyzo's avatar
vyzo committed
53
	10: "LEAVE",
vyzo's avatar
vyzo committed
54 55 56
	11: "GRAFT",
	12: "PRUNE",
}
57

vyzo's avatar
vyzo committed
58 59 60 61 62 63 64 65 66 67 68
var TraceEvent_Type_value = map[string]int32{
	"PUBLISH_MESSAGE":   0,
	"REJECT_MESSAGE":    1,
	"DUPLICATE_MESSAGE": 2,
	"DELIVER_MESSAGE":   3,
	"ADD_PEER":          4,
	"REMOVE_PEER":       5,
	"RECV_RPC":          6,
	"SEND_RPC":          7,
	"DROP_RPC":          8,
	"JOIN":              9,
vyzo's avatar
vyzo committed
69
	"LEAVE":             10,
vyzo's avatar
vyzo committed
70 71 72 73 74 75 76 77 78
	"GRAFT":             11,
	"PRUNE":             12,
}

func (x TraceEvent_Type) Enum() *TraceEvent_Type {
	p := new(TraceEvent_Type)
	*p = x
	return p
}
79

vyzo's avatar
vyzo committed
80 81 82
func (x TraceEvent_Type) String() string {
	return proto.EnumName(TraceEvent_Type_name, int32(x))
}
83

vyzo's avatar
vyzo committed
84 85 86 87 88 89 90 91
func (x *TraceEvent_Type) UnmarshalJSON(data []byte) error {
	value, err := proto.UnmarshalJSONEnum(TraceEvent_Type_value, data, "TraceEvent_Type")
	if err != nil {
		return err
	}
	*x = TraceEvent_Type(value)
	return nil
}
92

vyzo's avatar
vyzo committed
93
func (TraceEvent_Type) EnumDescriptor() ([]byte, []int) {
94
	return fileDescriptor_0571941a1d628a80, []int{0, 0}
vyzo's avatar
vyzo committed
95 96 97 98 99
}

type TraceEvent struct {
	Type                 *TraceEvent_Type             `protobuf:"varint,1,opt,name=type,enum=pubsub.pb.TraceEvent_Type" json:"type,omitempty"`
	PeerID               []byte                       `protobuf:"bytes,2,opt,name=peerID" json:"peerID,omitempty"`
vyzo's avatar
vyzo committed
100
	Timestamp            *int64                       `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"`
vyzo's avatar
vyzo committed
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
	PublishMessage       *TraceEvent_PublishMessage   `protobuf:"bytes,4,opt,name=publishMessage" json:"publishMessage,omitempty"`
	RejectMessage        *TraceEvent_RejectMessage    `protobuf:"bytes,5,opt,name=rejectMessage" json:"rejectMessage,omitempty"`
	DuplicateMessage     *TraceEvent_DuplicateMessage `protobuf:"bytes,6,opt,name=duplicateMessage" json:"duplicateMessage,omitempty"`
	DeliverMessage       *TraceEvent_DeliverMessage   `protobuf:"bytes,7,opt,name=deliverMessage" json:"deliverMessage,omitempty"`
	AddPeer              *TraceEvent_AddPeer          `protobuf:"bytes,8,opt,name=addPeer" json:"addPeer,omitempty"`
	RemovePeer           *TraceEvent_RemovePeer       `protobuf:"bytes,9,opt,name=removePeer" json:"removePeer,omitempty"`
	RecvRPC              *TraceEvent_RecvRPC          `protobuf:"bytes,10,opt,name=recvRPC" json:"recvRPC,omitempty"`
	SendRPC              *TraceEvent_SendRPC          `protobuf:"bytes,11,opt,name=sendRPC" json:"sendRPC,omitempty"`
	DropRPC              *TraceEvent_DropRPC          `protobuf:"bytes,12,opt,name=dropRPC" json:"dropRPC,omitempty"`
	Join                 *TraceEvent_Join             `protobuf:"bytes,13,opt,name=join" json:"join,omitempty"`
	Leave                *TraceEvent_Leave            `protobuf:"bytes,14,opt,name=leave" json:"leave,omitempty"`
	Graft                *TraceEvent_Graft            `protobuf:"bytes,15,opt,name=graft" json:"graft,omitempty"`
	Prune                *TraceEvent_Prune            `protobuf:"bytes,16,opt,name=prune" json:"prune,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

func (m *TraceEvent) Reset()         { *m = TraceEvent{} }
func (m *TraceEvent) String() string { return proto.CompactTextString(m) }
func (*TraceEvent) ProtoMessage()    {}
func (*TraceEvent) Descriptor() ([]byte, []int) {
123
	return fileDescriptor_0571941a1d628a80, []int{0}
vyzo's avatar
vyzo committed
124 125 126 127 128 129 130 131 132
}
func (m *TraceEvent) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
133
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
134 135 136 137 138 139
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
140 141
func (m *TraceEvent) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent.Merge(m, src)
vyzo's avatar
vyzo committed
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
}
func (m *TraceEvent) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent proto.InternalMessageInfo

func (m *TraceEvent) GetType() TraceEvent_Type {
	if m != nil && m.Type != nil {
		return *m.Type
	}
	return TraceEvent_PUBLISH_MESSAGE
}

func (m *TraceEvent) GetPeerID() []byte {
	if m != nil {
		return m.PeerID
	}
	return nil
}

vyzo's avatar
vyzo committed
166 167 168
func (m *TraceEvent) GetTimestamp() int64 {
	if m != nil && m.Timestamp != nil {
		return *m.Timestamp
vyzo's avatar
vyzo committed
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
	}
	return 0
}

func (m *TraceEvent) GetPublishMessage() *TraceEvent_PublishMessage {
	if m != nil {
		return m.PublishMessage
	}
	return nil
}

func (m *TraceEvent) GetRejectMessage() *TraceEvent_RejectMessage {
	if m != nil {
		return m.RejectMessage
	}
	return nil
}

func (m *TraceEvent) GetDuplicateMessage() *TraceEvent_DuplicateMessage {
	if m != nil {
		return m.DuplicateMessage
	}
	return nil
}

func (m *TraceEvent) GetDeliverMessage() *TraceEvent_DeliverMessage {
	if m != nil {
		return m.DeliverMessage
	}
	return nil
}

func (m *TraceEvent) GetAddPeer() *TraceEvent_AddPeer {
	if m != nil {
		return m.AddPeer
	}
	return nil
}

func (m *TraceEvent) GetRemovePeer() *TraceEvent_RemovePeer {
	if m != nil {
		return m.RemovePeer
	}
	return nil
}

func (m *TraceEvent) GetRecvRPC() *TraceEvent_RecvRPC {
	if m != nil {
		return m.RecvRPC
	}
	return nil
}

func (m *TraceEvent) GetSendRPC() *TraceEvent_SendRPC {
	if m != nil {
		return m.SendRPC
	}
	return nil
}

func (m *TraceEvent) GetDropRPC() *TraceEvent_DropRPC {
	if m != nil {
		return m.DropRPC
	}
	return nil
}

func (m *TraceEvent) GetJoin() *TraceEvent_Join {
	if m != nil {
		return m.Join
	}
	return nil
}

func (m *TraceEvent) GetLeave() *TraceEvent_Leave {
	if m != nil {
		return m.Leave
	}
	return nil
}

func (m *TraceEvent) GetGraft() *TraceEvent_Graft {
	if m != nil {
		return m.Graft
	}
	return nil
}

func (m *TraceEvent) GetPrune() *TraceEvent_Prune {
	if m != nil {
		return m.Prune
	}
	return nil
}

type TraceEvent_PublishMessage struct {
	MessageID            []byte   `protobuf:"bytes,1,opt,name=messageID" json:"messageID,omitempty"`
vyzo's avatar
vyzo committed
266
	Topics               []string `protobuf:"bytes,2,rep,name=topics" json:"topics,omitempty"`
vyzo's avatar
vyzo committed
267 268 269 270 271 272 273 274 275
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_PublishMessage) Reset()         { *m = TraceEvent_PublishMessage{} }
func (m *TraceEvent_PublishMessage) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_PublishMessage) ProtoMessage()    {}
func (*TraceEvent_PublishMessage) Descriptor() ([]byte, []int) {
276
	return fileDescriptor_0571941a1d628a80, []int{0, 0}
vyzo's avatar
vyzo committed
277 278 279 280 281 282 283 284 285
}
func (m *TraceEvent_PublishMessage) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_PublishMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_PublishMessage.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
286
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
287 288 289 290 291 292
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
293 294
func (m *TraceEvent_PublishMessage) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_PublishMessage.Merge(m, src)
vyzo's avatar
vyzo committed
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311
}
func (m *TraceEvent_PublishMessage) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_PublishMessage) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_PublishMessage.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_PublishMessage proto.InternalMessageInfo

func (m *TraceEvent_PublishMessage) GetMessageID() []byte {
	if m != nil {
		return m.MessageID
	}
	return nil
}

vyzo's avatar
vyzo committed
312 313 314 315 316 317 318
func (m *TraceEvent_PublishMessage) GetTopics() []string {
	if m != nil {
		return m.Topics
	}
	return nil
}

vyzo's avatar
vyzo committed
319 320 321 322
type TraceEvent_RejectMessage struct {
	MessageID            []byte   `protobuf:"bytes,1,opt,name=messageID" json:"messageID,omitempty"`
	ReceivedFrom         []byte   `protobuf:"bytes,2,opt,name=receivedFrom" json:"receivedFrom,omitempty"`
	Reason               *string  `protobuf:"bytes,3,opt,name=reason" json:"reason,omitempty"`
323
	Topics               []string `protobuf:"bytes,4,rep,name=topics" json:"topics,omitempty"`
vyzo's avatar
vyzo committed
324 325 326 327 328 329 330 331 332
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_RejectMessage) Reset()         { *m = TraceEvent_RejectMessage{} }
func (m *TraceEvent_RejectMessage) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_RejectMessage) ProtoMessage()    {}
func (*TraceEvent_RejectMessage) Descriptor() ([]byte, []int) {
333
	return fileDescriptor_0571941a1d628a80, []int{0, 1}
vyzo's avatar
vyzo committed
334 335 336 337 338 339 340 341 342
}
func (m *TraceEvent_RejectMessage) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_RejectMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_RejectMessage.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
343
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
344 345 346 347 348 349
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
350 351
func (m *TraceEvent_RejectMessage) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_RejectMessage.Merge(m, src)
vyzo's avatar
vyzo committed
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382
}
func (m *TraceEvent_RejectMessage) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_RejectMessage) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_RejectMessage.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_RejectMessage proto.InternalMessageInfo

func (m *TraceEvent_RejectMessage) GetMessageID() []byte {
	if m != nil {
		return m.MessageID
	}
	return nil
}

func (m *TraceEvent_RejectMessage) GetReceivedFrom() []byte {
	if m != nil {
		return m.ReceivedFrom
	}
	return nil
}

func (m *TraceEvent_RejectMessage) GetReason() string {
	if m != nil && m.Reason != nil {
		return *m.Reason
	}
	return ""
}

383 384 385 386 387 388 389
func (m *TraceEvent_RejectMessage) GetTopics() []string {
	if m != nil {
		return m.Topics
	}
	return nil
}

vyzo's avatar
vyzo committed
390 391 392
type TraceEvent_DuplicateMessage struct {
	MessageID            []byte   `protobuf:"bytes,1,opt,name=messageID" json:"messageID,omitempty"`
	ReceivedFrom         []byte   `protobuf:"bytes,2,opt,name=receivedFrom" json:"receivedFrom,omitempty"`
393
	Topics               []string `protobuf:"bytes,3,rep,name=topics" json:"topics,omitempty"`
vyzo's avatar
vyzo committed
394 395 396 397 398 399 400 401 402
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_DuplicateMessage) Reset()         { *m = TraceEvent_DuplicateMessage{} }
func (m *TraceEvent_DuplicateMessage) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_DuplicateMessage) ProtoMessage()    {}
func (*TraceEvent_DuplicateMessage) Descriptor() ([]byte, []int) {
403
	return fileDescriptor_0571941a1d628a80, []int{0, 2}
vyzo's avatar
vyzo committed
404 405 406 407 408 409 410 411 412
}
func (m *TraceEvent_DuplicateMessage) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_DuplicateMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_DuplicateMessage.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
413
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
414 415 416 417 418 419
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
420 421
func (m *TraceEvent_DuplicateMessage) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_DuplicateMessage.Merge(m, src)
vyzo's avatar
vyzo committed
422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445
}
func (m *TraceEvent_DuplicateMessage) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_DuplicateMessage) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_DuplicateMessage.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_DuplicateMessage proto.InternalMessageInfo

func (m *TraceEvent_DuplicateMessage) GetMessageID() []byte {
	if m != nil {
		return m.MessageID
	}
	return nil
}

func (m *TraceEvent_DuplicateMessage) GetReceivedFrom() []byte {
	if m != nil {
		return m.ReceivedFrom
	}
	return nil
}

446 447 448 449 450 451 452
func (m *TraceEvent_DuplicateMessage) GetTopics() []string {
	if m != nil {
		return m.Topics
	}
	return nil
}

vyzo's avatar
vyzo committed
453 454
type TraceEvent_DeliverMessage struct {
	MessageID            []byte   `protobuf:"bytes,1,opt,name=messageID" json:"messageID,omitempty"`
455
	Topics               []string `protobuf:"bytes,2,rep,name=topics" json:"topics,omitempty"`
vyzo's avatar
vyzo committed
456 457 458 459 460 461 462 463 464
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_DeliverMessage) Reset()         { *m = TraceEvent_DeliverMessage{} }
func (m *TraceEvent_DeliverMessage) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_DeliverMessage) ProtoMessage()    {}
func (*TraceEvent_DeliverMessage) Descriptor() ([]byte, []int) {
465
	return fileDescriptor_0571941a1d628a80, []int{0, 3}
vyzo's avatar
vyzo committed
466 467 468 469 470 471 472 473 474
}
func (m *TraceEvent_DeliverMessage) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_DeliverMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_DeliverMessage.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
475
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
476 477 478 479 480 481
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
482 483
func (m *TraceEvent_DeliverMessage) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_DeliverMessage.Merge(m, src)
vyzo's avatar
vyzo committed
484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500
}
func (m *TraceEvent_DeliverMessage) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_DeliverMessage) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_DeliverMessage.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_DeliverMessage proto.InternalMessageInfo

func (m *TraceEvent_DeliverMessage) GetMessageID() []byte {
	if m != nil {
		return m.MessageID
	}
	return nil
}

501 502 503 504 505 506 507
func (m *TraceEvent_DeliverMessage) GetTopics() []string {
	if m != nil {
		return m.Topics
	}
	return nil
}

vyzo's avatar
vyzo committed
508 509 510 511 512 513 514 515 516 517 518 519
type TraceEvent_AddPeer struct {
	PeerID               []byte   `protobuf:"bytes,1,opt,name=peerID" json:"peerID,omitempty"`
	Proto                *string  `protobuf:"bytes,2,opt,name=proto" json:"proto,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_AddPeer) Reset()         { *m = TraceEvent_AddPeer{} }
func (m *TraceEvent_AddPeer) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_AddPeer) ProtoMessage()    {}
func (*TraceEvent_AddPeer) Descriptor() ([]byte, []int) {
520
	return fileDescriptor_0571941a1d628a80, []int{0, 4}
vyzo's avatar
vyzo committed
521 522 523 524 525 526 527 528 529
}
func (m *TraceEvent_AddPeer) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_AddPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_AddPeer.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
530
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
531 532 533 534 535 536
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
537 538
func (m *TraceEvent_AddPeer) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_AddPeer.Merge(m, src)
vyzo's avatar
vyzo committed
539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573
}
func (m *TraceEvent_AddPeer) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_AddPeer) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_AddPeer.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_AddPeer proto.InternalMessageInfo

func (m *TraceEvent_AddPeer) GetPeerID() []byte {
	if m != nil {
		return m.PeerID
	}
	return nil
}

func (m *TraceEvent_AddPeer) GetProto() string {
	if m != nil && m.Proto != nil {
		return *m.Proto
	}
	return ""
}

type TraceEvent_RemovePeer struct {
	PeerID               []byte   `protobuf:"bytes,1,opt,name=peerID" json:"peerID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_RemovePeer) Reset()         { *m = TraceEvent_RemovePeer{} }
func (m *TraceEvent_RemovePeer) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_RemovePeer) ProtoMessage()    {}
func (*TraceEvent_RemovePeer) Descriptor() ([]byte, []int) {
574
	return fileDescriptor_0571941a1d628a80, []int{0, 5}
vyzo's avatar
vyzo committed
575 576 577 578 579 580 581 582 583
}
func (m *TraceEvent_RemovePeer) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_RemovePeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_RemovePeer.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
584
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
585 586 587 588 589 590
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
591 592
func (m *TraceEvent_RemovePeer) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_RemovePeer.Merge(m, src)
vyzo's avatar
vyzo committed
593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621
}
func (m *TraceEvent_RemovePeer) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_RemovePeer) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_RemovePeer.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_RemovePeer proto.InternalMessageInfo

func (m *TraceEvent_RemovePeer) GetPeerID() []byte {
	if m != nil {
		return m.PeerID
	}
	return nil
}

type TraceEvent_RecvRPC struct {
	ReceivedFrom         []byte              `protobuf:"bytes,1,opt,name=receivedFrom" json:"receivedFrom,omitempty"`
	Meta                 *TraceEvent_RPCMeta `protobuf:"bytes,2,opt,name=meta" json:"meta,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (m *TraceEvent_RecvRPC) Reset()         { *m = TraceEvent_RecvRPC{} }
func (m *TraceEvent_RecvRPC) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_RecvRPC) ProtoMessage()    {}
func (*TraceEvent_RecvRPC) Descriptor() ([]byte, []int) {
622
	return fileDescriptor_0571941a1d628a80, []int{0, 6}
vyzo's avatar
vyzo committed
623 624 625 626 627 628 629 630 631
}
func (m *TraceEvent_RecvRPC) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_RecvRPC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_RecvRPC.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
632
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
633 634 635 636 637 638
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
639 640
func (m *TraceEvent_RecvRPC) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_RecvRPC.Merge(m, src)
vyzo's avatar
vyzo committed
641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676
}
func (m *TraceEvent_RecvRPC) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_RecvRPC) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_RecvRPC.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_RecvRPC proto.InternalMessageInfo

func (m *TraceEvent_RecvRPC) GetReceivedFrom() []byte {
	if m != nil {
		return m.ReceivedFrom
	}
	return nil
}

func (m *TraceEvent_RecvRPC) GetMeta() *TraceEvent_RPCMeta {
	if m != nil {
		return m.Meta
	}
	return nil
}

type TraceEvent_SendRPC struct {
	SendTo               []byte              `protobuf:"bytes,1,opt,name=sendTo" json:"sendTo,omitempty"`
	Meta                 *TraceEvent_RPCMeta `protobuf:"bytes,2,opt,name=meta" json:"meta,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (m *TraceEvent_SendRPC) Reset()         { *m = TraceEvent_SendRPC{} }
func (m *TraceEvent_SendRPC) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_SendRPC) ProtoMessage()    {}
func (*TraceEvent_SendRPC) Descriptor() ([]byte, []int) {
677
	return fileDescriptor_0571941a1d628a80, []int{0, 7}
vyzo's avatar
vyzo committed
678 679 680 681 682 683 684 685 686
}
func (m *TraceEvent_SendRPC) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_SendRPC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_SendRPC.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
687
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
688 689 690 691 692 693
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
694 695
func (m *TraceEvent_SendRPC) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_SendRPC.Merge(m, src)
vyzo's avatar
vyzo committed
696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731
}
func (m *TraceEvent_SendRPC) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_SendRPC) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_SendRPC.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_SendRPC proto.InternalMessageInfo

func (m *TraceEvent_SendRPC) GetSendTo() []byte {
	if m != nil {
		return m.SendTo
	}
	return nil
}

func (m *TraceEvent_SendRPC) GetMeta() *TraceEvent_RPCMeta {
	if m != nil {
		return m.Meta
	}
	return nil
}

type TraceEvent_DropRPC struct {
	SendTo               []byte              `protobuf:"bytes,1,opt,name=sendTo" json:"sendTo,omitempty"`
	Meta                 *TraceEvent_RPCMeta `protobuf:"bytes,2,opt,name=meta" json:"meta,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (m *TraceEvent_DropRPC) Reset()         { *m = TraceEvent_DropRPC{} }
func (m *TraceEvent_DropRPC) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_DropRPC) ProtoMessage()    {}
func (*TraceEvent_DropRPC) Descriptor() ([]byte, []int) {
732
	return fileDescriptor_0571941a1d628a80, []int{0, 8}
vyzo's avatar
vyzo committed
733 734 735 736 737 738 739 740 741
}
func (m *TraceEvent_DropRPC) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_DropRPC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_DropRPC.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
742
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
743 744 745 746 747 748
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
749 750
func (m *TraceEvent_DropRPC) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_DropRPC.Merge(m, src)
vyzo's avatar
vyzo committed
751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785
}
func (m *TraceEvent_DropRPC) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_DropRPC) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_DropRPC.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_DropRPC proto.InternalMessageInfo

func (m *TraceEvent_DropRPC) GetSendTo() []byte {
	if m != nil {
		return m.SendTo
	}
	return nil
}

func (m *TraceEvent_DropRPC) GetMeta() *TraceEvent_RPCMeta {
	if m != nil {
		return m.Meta
	}
	return nil
}

type TraceEvent_Join struct {
	Topic                *string  `protobuf:"bytes,1,opt,name=topic" json:"topic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_Join) Reset()         { *m = TraceEvent_Join{} }
func (m *TraceEvent_Join) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_Join) ProtoMessage()    {}
func (*TraceEvent_Join) Descriptor() ([]byte, []int) {
786
	return fileDescriptor_0571941a1d628a80, []int{0, 9}
vyzo's avatar
vyzo committed
787 788 789 790 791 792 793 794 795
}
func (m *TraceEvent_Join) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_Join) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_Join.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
796
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
797 798 799 800 801 802
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
803 804
func (m *TraceEvent_Join) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_Join.Merge(m, src)
vyzo's avatar
vyzo committed
805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832
}
func (m *TraceEvent_Join) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_Join) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_Join.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_Join proto.InternalMessageInfo

func (m *TraceEvent_Join) GetTopic() string {
	if m != nil && m.Topic != nil {
		return *m.Topic
	}
	return ""
}

type TraceEvent_Leave struct {
	Topic                *string  `protobuf:"bytes,2,opt,name=topic" json:"topic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_Leave) Reset()         { *m = TraceEvent_Leave{} }
func (m *TraceEvent_Leave) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_Leave) ProtoMessage()    {}
func (*TraceEvent_Leave) Descriptor() ([]byte, []int) {
833
	return fileDescriptor_0571941a1d628a80, []int{0, 10}
vyzo's avatar
vyzo committed
834 835 836 837 838 839 840 841 842
}
func (m *TraceEvent_Leave) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_Leave) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_Leave.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
843
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
844 845 846 847 848 849
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
850 851
func (m *TraceEvent_Leave) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_Leave.Merge(m, src)
vyzo's avatar
vyzo committed
852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880
}
func (m *TraceEvent_Leave) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_Leave) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_Leave.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_Leave proto.InternalMessageInfo

func (m *TraceEvent_Leave) GetTopic() string {
	if m != nil && m.Topic != nil {
		return *m.Topic
	}
	return ""
}

type TraceEvent_Graft struct {
	PeerID               []byte   `protobuf:"bytes,1,opt,name=peerID" json:"peerID,omitempty"`
	Topic                *string  `protobuf:"bytes,2,opt,name=topic" json:"topic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_Graft) Reset()         { *m = TraceEvent_Graft{} }
func (m *TraceEvent_Graft) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_Graft) ProtoMessage()    {}
func (*TraceEvent_Graft) Descriptor() ([]byte, []int) {
881
	return fileDescriptor_0571941a1d628a80, []int{0, 11}
vyzo's avatar
vyzo committed
882 883 884 885 886 887 888 889 890
}
func (m *TraceEvent_Graft) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_Graft) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_Graft.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
891
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
892 893 894 895 896 897
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
898 899
func (m *TraceEvent_Graft) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_Graft.Merge(m, src)
vyzo's avatar
vyzo committed
900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935
}
func (m *TraceEvent_Graft) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_Graft) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_Graft.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_Graft proto.InternalMessageInfo

func (m *TraceEvent_Graft) GetPeerID() []byte {
	if m != nil {
		return m.PeerID
	}
	return nil
}

func (m *TraceEvent_Graft) GetTopic() string {
	if m != nil && m.Topic != nil {
		return *m.Topic
	}
	return ""
}

type TraceEvent_Prune struct {
	PeerID               []byte   `protobuf:"bytes,1,opt,name=peerID" json:"peerID,omitempty"`
	Topic                *string  `protobuf:"bytes,2,opt,name=topic" json:"topic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_Prune) Reset()         { *m = TraceEvent_Prune{} }
func (m *TraceEvent_Prune) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_Prune) ProtoMessage()    {}
func (*TraceEvent_Prune) Descriptor() ([]byte, []int) {
936
	return fileDescriptor_0571941a1d628a80, []int{0, 12}
vyzo's avatar
vyzo committed
937 938 939 940 941 942 943 944 945
}
func (m *TraceEvent_Prune) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_Prune) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_Prune.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
946
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
947 948 949 950 951 952
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
953 954
func (m *TraceEvent_Prune) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_Prune.Merge(m, src)
vyzo's avatar
vyzo committed
955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979
}
func (m *TraceEvent_Prune) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_Prune) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_Prune.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_Prune proto.InternalMessageInfo

func (m *TraceEvent_Prune) GetPeerID() []byte {
	if m != nil {
		return m.PeerID
	}
	return nil
}

func (m *TraceEvent_Prune) GetTopic() string {
	if m != nil && m.Topic != nil {
		return *m.Topic
	}
	return ""
}

type TraceEvent_RPCMeta struct {
vyzo's avatar
vyzo committed
980 981 982 983 984 985
	Messages             []*TraceEvent_MessageMeta `protobuf:"bytes,1,rep,name=messages" json:"messages,omitempty"`
	Subscription         []*TraceEvent_SubMeta     `protobuf:"bytes,2,rep,name=subscription" json:"subscription,omitempty"`
	Control              *TraceEvent_ControlMeta   `protobuf:"bytes,3,opt,name=control" json:"control,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
vyzo's avatar
vyzo committed
986 987 988 989 990 991
}

func (m *TraceEvent_RPCMeta) Reset()         { *m = TraceEvent_RPCMeta{} }
func (m *TraceEvent_RPCMeta) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_RPCMeta) ProtoMessage()    {}
func (*TraceEvent_RPCMeta) Descriptor() ([]byte, []int) {
992
	return fileDescriptor_0571941a1d628a80, []int{0, 13}
vyzo's avatar
vyzo committed
993 994 995 996 997 998 999 1000 1001
}
func (m *TraceEvent_RPCMeta) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_RPCMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_RPCMeta.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
1002
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
1003 1004 1005 1006 1007 1008
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
1009 1010
func (m *TraceEvent_RPCMeta) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_RPCMeta.Merge(m, src)
vyzo's avatar
vyzo committed
1011 1012 1013 1014 1015 1016 1017 1018 1019 1020
}
func (m *TraceEvent_RPCMeta) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_RPCMeta) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_RPCMeta.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_RPCMeta proto.InternalMessageInfo

vyzo's avatar
vyzo committed
1021
func (m *TraceEvent_RPCMeta) GetMessages() []*TraceEvent_MessageMeta {
vyzo's avatar
vyzo committed
1022
	if m != nil {
vyzo's avatar
vyzo committed
1023
		return m.Messages
vyzo's avatar
vyzo committed
1024 1025 1026 1027
	}
	return nil
}

vyzo's avatar
vyzo committed
1028
func (m *TraceEvent_RPCMeta) GetSubscription() []*TraceEvent_SubMeta {
vyzo's avatar
vyzo committed
1029
	if m != nil {
vyzo's avatar
vyzo committed
1030
		return m.Subscription
vyzo's avatar
vyzo committed
1031 1032 1033 1034
	}
	return nil
}

vyzo's avatar
vyzo committed
1035
func (m *TraceEvent_RPCMeta) GetControl() *TraceEvent_ControlMeta {
vyzo's avatar
vyzo committed
1036
	if m != nil {
vyzo's avatar
vyzo committed
1037
		return m.Control
vyzo's avatar
vyzo committed
1038 1039 1040 1041
	}
	return nil
}

vyzo's avatar
vyzo committed
1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053
type TraceEvent_MessageMeta struct {
	MessageID            []byte   `protobuf:"bytes,1,opt,name=messageID" json:"messageID,omitempty"`
	Topics               []string `protobuf:"bytes,2,rep,name=topics" json:"topics,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_MessageMeta) Reset()         { *m = TraceEvent_MessageMeta{} }
func (m *TraceEvent_MessageMeta) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_MessageMeta) ProtoMessage()    {}
func (*TraceEvent_MessageMeta) Descriptor() ([]byte, []int) {
1054
	return fileDescriptor_0571941a1d628a80, []int{0, 14}
vyzo's avatar
vyzo committed
1055 1056 1057 1058 1059 1060 1061 1062 1063
}
func (m *TraceEvent_MessageMeta) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_MessageMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_MessageMeta.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
1064
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
1065 1066 1067 1068 1069 1070
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
1071 1072
func (m *TraceEvent_MessageMeta) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_MessageMeta.Merge(m, src)
vyzo's avatar
vyzo committed
1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096
}
func (m *TraceEvent_MessageMeta) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_MessageMeta) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_MessageMeta.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_MessageMeta proto.InternalMessageInfo

func (m *TraceEvent_MessageMeta) GetMessageID() []byte {
	if m != nil {
		return m.MessageID
	}
	return nil
}

func (m *TraceEvent_MessageMeta) GetTopics() []string {
	if m != nil {
		return m.Topics
	}
	return nil
}

vyzo's avatar
vyzo committed
1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108
type TraceEvent_SubMeta struct {
	Subscribe            *bool    `protobuf:"varint,1,opt,name=subscribe" json:"subscribe,omitempty"`
	Topic                *string  `protobuf:"bytes,2,opt,name=topic" json:"topic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_SubMeta) Reset()         { *m = TraceEvent_SubMeta{} }
func (m *TraceEvent_SubMeta) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_SubMeta) ProtoMessage()    {}
func (*TraceEvent_SubMeta) Descriptor() ([]byte, []int) {
1109
	return fileDescriptor_0571941a1d628a80, []int{0, 15}
vyzo's avatar
vyzo committed
1110 1111 1112 1113 1114 1115 1116 1117 1118
}
func (m *TraceEvent_SubMeta) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_SubMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_SubMeta.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
1119
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
1120 1121 1122 1123 1124 1125
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
1126 1127
func (m *TraceEvent_SubMeta) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_SubMeta.Merge(m, src)
vyzo's avatar
vyzo committed
1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165
}
func (m *TraceEvent_SubMeta) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_SubMeta) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_SubMeta.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_SubMeta proto.InternalMessageInfo

func (m *TraceEvent_SubMeta) GetSubscribe() bool {
	if m != nil && m.Subscribe != nil {
		return *m.Subscribe
	}
	return false
}

func (m *TraceEvent_SubMeta) GetTopic() string {
	if m != nil && m.Topic != nil {
		return *m.Topic
	}
	return ""
}

type TraceEvent_ControlMeta struct {
	Ihave                []*TraceEvent_ControlIHaveMeta `protobuf:"bytes,1,rep,name=ihave" json:"ihave,omitempty"`
	Iwant                []*TraceEvent_ControlIWantMeta `protobuf:"bytes,2,rep,name=iwant" json:"iwant,omitempty"`
	Graft                []*TraceEvent_ControlGraftMeta `protobuf:"bytes,3,rep,name=graft" json:"graft,omitempty"`
	Prune                []*TraceEvent_ControlPruneMeta `protobuf:"bytes,4,rep,name=prune" json:"prune,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

func (m *TraceEvent_ControlMeta) Reset()         { *m = TraceEvent_ControlMeta{} }
func (m *TraceEvent_ControlMeta) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_ControlMeta) ProtoMessage()    {}
func (*TraceEvent_ControlMeta) Descriptor() ([]byte, []int) {
1166
	return fileDescriptor_0571941a1d628a80, []int{0, 16}
vyzo's avatar
vyzo committed
1167 1168 1169 1170 1171 1172 1173 1174 1175
}
func (m *TraceEvent_ControlMeta) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_ControlMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_ControlMeta.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
1176
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
1177 1178 1179 1180 1181 1182
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
1183 1184
func (m *TraceEvent_ControlMeta) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_ControlMeta.Merge(m, src)
vyzo's avatar
vyzo committed
1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234
}
func (m *TraceEvent_ControlMeta) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_ControlMeta) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_ControlMeta.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_ControlMeta proto.InternalMessageInfo

func (m *TraceEvent_ControlMeta) GetIhave() []*TraceEvent_ControlIHaveMeta {
	if m != nil {
		return m.Ihave
	}
	return nil
}

func (m *TraceEvent_ControlMeta) GetIwant() []*TraceEvent_ControlIWantMeta {
	if m != nil {
		return m.Iwant
	}
	return nil
}

func (m *TraceEvent_ControlMeta) GetGraft() []*TraceEvent_ControlGraftMeta {
	if m != nil {
		return m.Graft
	}
	return nil
}

func (m *TraceEvent_ControlMeta) GetPrune() []*TraceEvent_ControlPruneMeta {
	if m != nil {
		return m.Prune
	}
	return nil
}

type TraceEvent_ControlIHaveMeta struct {
	Topic                *string  `protobuf:"bytes,1,opt,name=topic" json:"topic,omitempty"`
	MessageIDs           [][]byte `protobuf:"bytes,2,rep,name=messageIDs" json:"messageIDs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_ControlIHaveMeta) Reset()         { *m = TraceEvent_ControlIHaveMeta{} }
func (m *TraceEvent_ControlIHaveMeta) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_ControlIHaveMeta) ProtoMessage()    {}
func (*TraceEvent_ControlIHaveMeta) Descriptor() ([]byte, []int) {
1235
	return fileDescriptor_0571941a1d628a80, []int{0, 17}
vyzo's avatar
vyzo committed
1236 1237 1238 1239 1240 1241 1242 1243 1244
}
func (m *TraceEvent_ControlIHaveMeta) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_ControlIHaveMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_ControlIHaveMeta.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
1245
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
1246 1247 1248 1249 1250 1251
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
1252 1253
func (m *TraceEvent_ControlIHaveMeta) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_ControlIHaveMeta.Merge(m, src)
vyzo's avatar
vyzo committed
1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288
}
func (m *TraceEvent_ControlIHaveMeta) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_ControlIHaveMeta) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_ControlIHaveMeta.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_ControlIHaveMeta proto.InternalMessageInfo

func (m *TraceEvent_ControlIHaveMeta) GetTopic() string {
	if m != nil && m.Topic != nil {
		return *m.Topic
	}
	return ""
}

func (m *TraceEvent_ControlIHaveMeta) GetMessageIDs() [][]byte {
	if m != nil {
		return m.MessageIDs
	}
	return nil
}

type TraceEvent_ControlIWantMeta struct {
	MessageIDs           [][]byte `protobuf:"bytes,1,rep,name=messageIDs" json:"messageIDs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_ControlIWantMeta) Reset()         { *m = TraceEvent_ControlIWantMeta{} }
func (m *TraceEvent_ControlIWantMeta) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_ControlIWantMeta) ProtoMessage()    {}
func (*TraceEvent_ControlIWantMeta) Descriptor() ([]byte, []int) {
1289
	return fileDescriptor_0571941a1d628a80, []int{0, 18}
vyzo's avatar
vyzo committed
1290 1291 1292 1293 1294 1295 1296 1297 1298
}
func (m *TraceEvent_ControlIWantMeta) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_ControlIWantMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_ControlIWantMeta.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
1299
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
1300 1301 1302 1303 1304 1305
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
1306 1307
func (m *TraceEvent_ControlIWantMeta) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_ControlIWantMeta.Merge(m, src)
vyzo's avatar
vyzo committed
1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335
}
func (m *TraceEvent_ControlIWantMeta) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_ControlIWantMeta) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_ControlIWantMeta.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_ControlIWantMeta proto.InternalMessageInfo

func (m *TraceEvent_ControlIWantMeta) GetMessageIDs() [][]byte {
	if m != nil {
		return m.MessageIDs
	}
	return nil
}

type TraceEvent_ControlGraftMeta struct {
	Topic                *string  `protobuf:"bytes,1,opt,name=topic" json:"topic,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_ControlGraftMeta) Reset()         { *m = TraceEvent_ControlGraftMeta{} }
func (m *TraceEvent_ControlGraftMeta) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_ControlGraftMeta) ProtoMessage()    {}
func (*TraceEvent_ControlGraftMeta) Descriptor() ([]byte, []int) {
1336
	return fileDescriptor_0571941a1d628a80, []int{0, 19}
vyzo's avatar
vyzo committed
1337 1338 1339 1340 1341 1342 1343 1344 1345
}
func (m *TraceEvent_ControlGraftMeta) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_ControlGraftMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_ControlGraftMeta.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
1346
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
1347 1348 1349 1350 1351 1352
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
1353 1354
func (m *TraceEvent_ControlGraftMeta) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_ControlGraftMeta.Merge(m, src)
vyzo's avatar
vyzo committed
1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373
}
func (m *TraceEvent_ControlGraftMeta) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_ControlGraftMeta) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_ControlGraftMeta.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_ControlGraftMeta proto.InternalMessageInfo

func (m *TraceEvent_ControlGraftMeta) GetTopic() string {
	if m != nil && m.Topic != nil {
		return *m.Topic
	}
	return ""
}

type TraceEvent_ControlPruneMeta struct {
	Topic                *string  `protobuf:"bytes,1,opt,name=topic" json:"topic,omitempty"`
vyzo's avatar
vyzo committed
1374
	Peers                [][]byte `protobuf:"bytes,2,rep,name=peers" json:"peers,omitempty"`
vyzo's avatar
vyzo committed
1375 1376 1377 1378 1379 1380 1381 1382 1383
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TraceEvent_ControlPruneMeta) Reset()         { *m = TraceEvent_ControlPruneMeta{} }
func (m *TraceEvent_ControlPruneMeta) String() string { return proto.CompactTextString(m) }
func (*TraceEvent_ControlPruneMeta) ProtoMessage()    {}
func (*TraceEvent_ControlPruneMeta) Descriptor() ([]byte, []int) {
1384
	return fileDescriptor_0571941a1d628a80, []int{0, 20}
vyzo's avatar
vyzo committed
1385 1386 1387 1388 1389 1390 1391 1392 1393
}
func (m *TraceEvent_ControlPruneMeta) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEvent_ControlPruneMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEvent_ControlPruneMeta.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
1394
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
1395 1396 1397 1398 1399 1400
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
1401 1402
func (m *TraceEvent_ControlPruneMeta) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEvent_ControlPruneMeta.Merge(m, src)
vyzo's avatar
vyzo committed
1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419
}
func (m *TraceEvent_ControlPruneMeta) XXX_Size() int {
	return m.Size()
}
func (m *TraceEvent_ControlPruneMeta) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEvent_ControlPruneMeta.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEvent_ControlPruneMeta proto.InternalMessageInfo

func (m *TraceEvent_ControlPruneMeta) GetTopic() string {
	if m != nil && m.Topic != nil {
		return *m.Topic
	}
	return ""
}

vyzo's avatar
vyzo committed
1420 1421 1422 1423 1424 1425 1426
func (m *TraceEvent_ControlPruneMeta) GetPeers() [][]byte {
	if m != nil {
		return m.Peers
	}
	return nil
}

vyzo's avatar
vyzo committed
1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437
type TraceEventBatch struct {
	Batch                []*TraceEvent `protobuf:"bytes,1,rep,name=batch" json:"batch,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (m *TraceEventBatch) Reset()         { *m = TraceEventBatch{} }
func (m *TraceEventBatch) String() string { return proto.CompactTextString(m) }
func (*TraceEventBatch) ProtoMessage()    {}
func (*TraceEventBatch) Descriptor() ([]byte, []int) {
1438
	return fileDescriptor_0571941a1d628a80, []int{1}
vyzo's avatar
vyzo committed
1439 1440 1441 1442 1443 1444 1445 1446 1447
}
func (m *TraceEventBatch) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *TraceEventBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_TraceEventBatch.Marshal(b, m, deterministic)
	} else {
		b = b[:cap(b)]
vyzo's avatar
vyzo committed
1448
		n, err := m.MarshalTo(b)
vyzo's avatar
vyzo committed
1449 1450 1451 1452 1453 1454
		if err != nil {
			return nil, err
		}
		return b[:n], nil
	}
}
1455 1456
func (m *TraceEventBatch) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TraceEventBatch.Merge(m, src)
vyzo's avatar
vyzo committed
1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473
}
func (m *TraceEventBatch) XXX_Size() int {
	return m.Size()
}
func (m *TraceEventBatch) XXX_DiscardUnknown() {
	xxx_messageInfo_TraceEventBatch.DiscardUnknown(m)
}

var xxx_messageInfo_TraceEventBatch proto.InternalMessageInfo

func (m *TraceEventBatch) GetBatch() []*TraceEvent {
	if m != nil {
		return m.Batch
	}
	return nil
}

vyzo's avatar
vyzo committed
1474
func init() {
1475
	proto.RegisterEnum("pubsub.pb.TraceEvent_Type", TraceEvent_Type_name, TraceEvent_Type_value)
vyzo's avatar
vyzo committed
1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490
	proto.RegisterType((*TraceEvent)(nil), "pubsub.pb.TraceEvent")
	proto.RegisterType((*TraceEvent_PublishMessage)(nil), "pubsub.pb.TraceEvent.PublishMessage")
	proto.RegisterType((*TraceEvent_RejectMessage)(nil), "pubsub.pb.TraceEvent.RejectMessage")
	proto.RegisterType((*TraceEvent_DuplicateMessage)(nil), "pubsub.pb.TraceEvent.DuplicateMessage")
	proto.RegisterType((*TraceEvent_DeliverMessage)(nil), "pubsub.pb.TraceEvent.DeliverMessage")
	proto.RegisterType((*TraceEvent_AddPeer)(nil), "pubsub.pb.TraceEvent.AddPeer")
	proto.RegisterType((*TraceEvent_RemovePeer)(nil), "pubsub.pb.TraceEvent.RemovePeer")
	proto.RegisterType((*TraceEvent_RecvRPC)(nil), "pubsub.pb.TraceEvent.RecvRPC")
	proto.RegisterType((*TraceEvent_SendRPC)(nil), "pubsub.pb.TraceEvent.SendRPC")
	proto.RegisterType((*TraceEvent_DropRPC)(nil), "pubsub.pb.TraceEvent.DropRPC")
	proto.RegisterType((*TraceEvent_Join)(nil), "pubsub.pb.TraceEvent.Join")
	proto.RegisterType((*TraceEvent_Leave)(nil), "pubsub.pb.TraceEvent.Leave")
	proto.RegisterType((*TraceEvent_Graft)(nil), "pubsub.pb.TraceEvent.Graft")
	proto.RegisterType((*TraceEvent_Prune)(nil), "pubsub.pb.TraceEvent.Prune")
	proto.RegisterType((*TraceEvent_RPCMeta)(nil), "pubsub.pb.TraceEvent.RPCMeta")
vyzo's avatar
vyzo committed
1491
	proto.RegisterType((*TraceEvent_MessageMeta)(nil), "pubsub.pb.TraceEvent.MessageMeta")
vyzo's avatar
vyzo committed
1492 1493 1494 1495 1496 1497
	proto.RegisterType((*TraceEvent_SubMeta)(nil), "pubsub.pb.TraceEvent.SubMeta")
	proto.RegisterType((*TraceEvent_ControlMeta)(nil), "pubsub.pb.TraceEvent.ControlMeta")
	proto.RegisterType((*TraceEvent_ControlIHaveMeta)(nil), "pubsub.pb.TraceEvent.ControlIHaveMeta")
	proto.RegisterType((*TraceEvent_ControlIWantMeta)(nil), "pubsub.pb.TraceEvent.ControlIWantMeta")
	proto.RegisterType((*TraceEvent_ControlGraftMeta)(nil), "pubsub.pb.TraceEvent.ControlGraftMeta")
	proto.RegisterType((*TraceEvent_ControlPruneMeta)(nil), "pubsub.pb.TraceEvent.ControlPruneMeta")
vyzo's avatar
vyzo committed
1498
	proto.RegisterType((*TraceEventBatch)(nil), "pubsub.pb.TraceEventBatch")
vyzo's avatar
vyzo committed
1499
}
1500 1501 1502 1503

func init() { proto.RegisterFile("trace.proto", fileDescriptor_0571941a1d628a80) }

var fileDescriptor_0571941a1d628a80 = []byte{
1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561
	// 906 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x96, 0xd1, 0x6e, 0xe3, 0x44,
	0x14, 0x86, 0x71, 0x63, 0xc7, 0xf1, 0x89, 0xe3, 0xba, 0x03, 0x45, 0x56, 0x80, 0x2a, 0x5b, 0x56,
	0x55, 0xc4, 0x4a, 0xd1, 0xaa, 0x65, 0x85, 0x84, 0xb8, 0x20, 0x8d, 0xdd, 0x6e, 0x4a, 0xda, 0x5a,
	0x4e, 0x5a, 0xb8, 0xab, 0x1c, 0x67, 0xd8, 0x7a, 0x95, 0xd8, 0x96, 0x3d, 0x09, 0xda, 0x27, 0x82,
	0x47, 0xe1, 0x0e, 0x1e, 0x01, 0xf5, 0x8e, 0xb7, 0x40, 0x33, 0x63, 0x3b, 0x89, 0xd7, 0xc9, 0x06,
	0xb8, 0x9b, 0x19, 0x7f, 0xff, 0x39, 0x67, 0xce, 0xfc, 0x33, 0x09, 0xd4, 0x49, 0xec, 0x7a, 0xb8,
	0x13, 0xc5, 0x21, 0x09, 0x91, 0x12, 0xcd, 0xc7, 0xc9, 0x7c, 0xdc, 0x89, 0xc6, 0xc7, 0xbf, 0x21,
	0x80, 0x11, 0xfd, 0x64, 0x2d, 0x70, 0x40, 0x50, 0x1b, 0x44, 0xf2, 0x2e, 0xc2, 0x86, 0xd0, 0x12,
	0xda, 0xda, 0x69, 0xb3, 0x93, 0x83, 0x9d, 0x25, 0xd4, 0x19, 0xbd, 0x8b, 0x30, 0xd2, 0xa0, 0x1a,
	0x61, 0x1c, 0xf7, 0x4d, 0x63, 0xaf, 0x25, 0xb4, 0x55, 0x74, 0x00, 0x0a, 0xf1, 0x67, 0x38, 0x21,
	0xee, 0x2c, 0x32, 0x2a, 0x2d, 0xa1, 0x5d, 0x41, 0xdf, 0x81, 0x16, 0xcd, 0xc7, 0x53, 0x3f, 0x79,
	0xbc, 0xc6, 0x49, 0xe2, 0xbe, 0xc1, 0x86, 0xd8, 0x12, 0xda, 0xf5, 0xd3, 0xe7, 0xe5, 0x61, 0xed,
	0x35, 0x16, 0x7d, 0x0b, 0x8d, 0x18, 0xbf, 0xc5, 0x1e, 0xc9, 0xc4, 0x12, 0x13, 0x7f, 0x59, 0x2e,
	0x76, 0x56, 0x51, 0xf4, 0x3d, 0xe8, 0x93, 0x79, 0x34, 0xf5, 0x3d, 0x97, 0xe0, 0x4c, 0x5e, 0x65,
	0xf2, 0x93, 0x72, 0xb9, 0x59, 0xa0, 0x69, 0xed, 0x13, 0x3c, 0xf5, 0x17, 0x38, 0xce, 0xf4, 0xf2,
	0xb6, 0xda, 0xcd, 0x35, 0x16, 0x75, 0x40, 0x76, 0x27, 0x13, 0x1b, 0xe3, 0xd8, 0xa8, 0x31, 0xd9,
	0x17, 0xe5, 0xb2, 0x2e, 0x87, 0xd0, 0xd7, 0x00, 0x31, 0x9e, 0x85, 0x0b, 0xcc, 0x24, 0x0a, 0x93,
	0xb4, 0x36, 0x6d, 0x34, 0xe3, 0x68, 0x96, 0x18, 0x7b, 0x0b, 0xc7, 0xee, 0x19, 0xb0, 0x2d, 0x8b,
	0xc3, 0x21, 0xca, 0x27, 0x38, 0x98, 0x50, 0xbe, 0xbe, 0x8d, 0x1f, 0x72, 0x88, 0xf2, 0x93, 0x38,
	0x8c, 0x28, 0xaf, 0x6e, 0xe3, 0x4d, 0x0e, 0x51, 0xf3, 0xbc, 0x0d, 0xfd, 0xc0, 0x68, 0x30, 0x78,
	0x83, 0x79, 0xae, 0x42, 0x3f, 0x40, 0x5f, 0x81, 0x34, 0xc5, 0xee, 0x02, 0x1b, 0x1a, 0x43, 0x3f,
	0x2b, 0x47, 0x07, 0x14, 0xa1, 0xec, 0x9b, 0xd8, 0xfd, 0x99, 0x18, 0xfb, 0xdb, 0xd8, 0x4b, 0x8a,
	0x50, 0x36, 0x8a, 0xe7, 0x01, 0x36, 0xf4, 0x6d, 0xac, 0x4d, 0x91, 0xe6, 0x19, 0x68, 0x05, 0xc7,
	0x1d, 0x80, 0x32, 0xe3, 0xc3, 0xbe, 0xc9, 0x6e, 0x80, 0x4a, 0x5d, 0x4e, 0xc2, 0xc8, 0xf7, 0x12,
	0x63, 0xaf, 0x55, 0x69, 0x2b, 0xcd, 0x9f, 0xa0, 0xb1, 0xee, 0xb4, 0x12, 0xcd, 0x27, 0xa0, 0xc6,
	0xd8, 0xc3, 0xfe, 0x02, 0x4f, 0x2e, 0xe2, 0x70, 0x96, 0xde, 0x0f, 0x0d, 0xaa, 0x31, 0x76, 0x93,
	0x30, 0x60, 0x97, 0x43, 0x59, 0x89, 0x2c, 0xb2, 0xc8, 0x3f, 0x80, 0xfe, 0x9e, 0x09, 0xff, 0x4d,
	0xf0, 0x34, 0x58, 0x85, 0x05, 0x3b, 0x03, 0xad, 0xe0, 0xc8, 0x1d, 0xf6, 0xd6, 0x06, 0x39, 0xf3,
	0xe3, 0xf2, 0x72, 0x73, 0xb4, 0x41, 0xfb, 0x1a, 0x92, 0x90, 0xa5, 0x53, 0x9a, 0x9f, 0x03, 0xac,
	0xd8, 0xb0, 0x00, 0x37, 0x07, 0x20, 0x67, 0x8e, 0x2b, 0x56, 0xcb, 0xa3, 0xbd, 0x00, 0x71, 0x86,
	0x89, 0xcb, 0x82, 0x6d, 0x36, 0xad, 0xdd, 0xbb, 0xc6, 0xc4, 0x6d, 0x5e, 0x80, 0x9c, 0xf9, 0x51,
	0x83, 0x2a, 0xf5, 0xef, 0x28, 0xfc, 0x8f, 0x71, 0x32, 0x9f, 0xfe, 0xaf, 0x38, 0x87, 0x20, 0x32,
	0x0b, 0x37, 0x40, 0x62, 0xdd, 0x63, 0x31, 0x94, 0xe6, 0xa7, 0x20, 0x71, 0xbb, 0xe6, 0xeb, 0xbc,
	0x55, 0x27, 0x20, 0x71, 0x6b, 0x96, 0xb4, 0xb4, 0xc0, 0x31, 0x5b, 0x7e, 0x88, 0xfb, 0x55, 0x00,
	0x39, 0x2d, 0x05, 0x9d, 0x41, 0x2d, 0x3d, 0xd3, 0xc4, 0x10, 0x5a, 0x95, 0x76, 0xfd, 0xf4, 0x59,
	0x79, 0xed, 0xa9, 0x09, 0x52, 0x91, 0x9a, 0xcc, 0xc7, 0x89, 0x17, 0xfb, 0x11, 0xf1, 0xc3, 0x80,
	0x9d, 0xfd, 0xe6, 0x97, 0x60, 0x3e, 0x66, 0xa2, 0x53, 0x90, 0xbd, 0x30, 0x20, 0x71, 0x38, 0x65,
	0xee, 0xdd, 0x98, 0xa8, 0xc7, 0x21, 0xd6, 0xa8, 0x97, 0x50, 0x5f, 0xcd, 0xbb, 0x83, 0x01, 0x5f,
	0x80, 0x9c, 0x25, 0x3c, 0x00, 0x25, 0xad, 0x72, 0xcc, 0x7f, 0x8c, 0x6a, 0xc5, 0x46, 0xfc, 0x2d,
	0x40, 0x7d, 0x25, 0x1d, 0x7a, 0x05, 0x92, 0xff, 0x48, 0x9f, 0x14, 0xde, 0x89, 0x93, 0xad, 0x05,
	0xf6, 0x5f, 0xbb, 0x0b, 0x9c, 0xcb, 0x7e, 0x71, 0x03, 0x92, 0xf6, 0xe1, 0x03, 0xb2, 0x1f, 0xdd,
	0x80, 0x64, 0x32, 0xfe, 0x28, 0x55, 0x76, 0x90, 0x31, 0x03, 0x64, 0x32, 0xfe, 0x3e, 0x89, 0x3b,
	0xc8, 0x98, 0x1f, 0x58, 0x2b, 0x5f, 0x81, 0xfe, 0x5e, 0xe1, 0xeb, 0xfe, 0x43, 0x08, 0x20, 0x6f,
	0x2f, 0xef, 0xa7, 0xda, 0x3c, 0x59, 0xca, 0xf2, 0xc2, 0xd7, 0x39, 0x81, 0x71, 0xcf, 0x72, 0x6e,
	0x59, 0x69, 0xc1, 0xde, 0x2f, 0x73, 0x24, 0xaf, 0xaa, 0x58, 0x01, 0x7d, 0x23, 0x30, 0x8e, 0xd3,
	0xe4, 0xc7, 0x7f, 0x08, 0x20, 0xb2, 0x3f, 0x0a, 0x1f, 0xc3, 0xbe, 0x7d, 0x77, 0x3e, 0xe8, 0x0f,
	0x5f, 0x3f, 0x5c, 0x5b, 0xc3, 0x61, 0xf7, 0xd2, 0xd2, 0x3f, 0x42, 0x08, 0x34, 0xc7, 0xba, 0xb2,
	0x7a, 0xa3, 0x7c, 0x4d, 0x40, 0x87, 0x70, 0x60, 0xde, 0xd9, 0x83, 0x7e, 0xaf, 0x3b, 0xb2, 0xf2,
	0xe5, 0x3d, 0xaa, 0x37, 0xad, 0x41, 0xff, 0xde, 0x72, 0xf2, 0xc5, 0x0a, 0x52, 0xa1, 0xd6, 0x35,
	0xcd, 0x07, 0xdb, 0xb2, 0x1c, 0x5d, 0x44, 0xfb, 0x50, 0x77, 0xac, 0xeb, 0xdb, 0x7b, 0x8b, 0x2f,
	0x48, 0xf4, 0xb3, 0x63, 0xf5, 0xee, 0x1f, 0x1c, 0xbb, 0xa7, 0x57, 0xe9, 0x6c, 0x68, 0xdd, 0x98,
	0x6c, 0x26, 0xd3, 0x99, 0xe9, 0xdc, 0xda, 0x6c, 0x56, 0x43, 0x35, 0x10, 0xaf, 0x6e, 0xfb, 0x37,
	0xba, 0x82, 0x14, 0x90, 0x06, 0x56, 0xf7, 0xde, 0xd2, 0x81, 0x0e, 0x2f, 0x9d, 0xee, 0xc5, 0x48,
	0xaf, 0xd3, 0xa1, 0xed, 0xdc, 0xdd, 0x58, 0xba, 0x7a, 0xfc, 0x0d, 0xec, 0x2f, 0x0f, 0xe9, 0xdc,
	0x25, 0xde, 0x23, 0x7a, 0x0e, 0xd2, 0x98, 0x0e, 0x52, 0xd3, 0x1d, 0x96, 0x9e, 0xe7, 0xb9, 0xfa,
	0xfb, 0xd3, 0x91, 0xf0, 0xe7, 0xd3, 0x91, 0xf0, 0xd7, 0xd3, 0x91, 0xf0, 0x4f, 0x00, 0x00, 0x00,
	0xff, 0xff, 0x99, 0xba, 0xca, 0x75, 0x8a, 0x09, 0x00, 0x00,
1562 1563
}

vyzo's avatar
vyzo committed
1564 1565 1566
func (m *TraceEvent) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
1567
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
1568 1569 1570 1571 1572 1573 1574
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
1575
	var i int
vyzo's avatar
vyzo committed
1576 1577 1578
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
1579 1580 1581 1582
	if m.Type != nil {
		dAtA[i] = 0x8
		i++
		i = encodeVarintTrace(dAtA, i, uint64(*m.Type))
vyzo's avatar
vyzo committed
1583
	}
vyzo's avatar
vyzo committed
1584 1585 1586 1587 1588
	if m.PeerID != nil {
		dAtA[i] = 0x12
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.PeerID)))
		i += copy(dAtA[i:], m.PeerID)
vyzo's avatar
vyzo committed
1589
	}
vyzo's avatar
vyzo committed
1590 1591 1592 1593
	if m.Timestamp != nil {
		dAtA[i] = 0x18
		i++
		i = encodeVarintTrace(dAtA, i, uint64(*m.Timestamp))
vyzo's avatar
vyzo committed
1594
	}
vyzo's avatar
vyzo committed
1595 1596 1597 1598
	if m.PublishMessage != nil {
		dAtA[i] = 0x22
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.PublishMessage.Size()))
1599 1600 1601
		n1, err := m.PublishMessage.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1602
		}
vyzo's avatar
vyzo committed
1603
		i += n1
vyzo's avatar
vyzo committed
1604
	}
vyzo's avatar
vyzo committed
1605 1606 1607 1608
	if m.RejectMessage != nil {
		dAtA[i] = 0x2a
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.RejectMessage.Size()))
1609 1610 1611
		n2, err := m.RejectMessage.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1612
		}
vyzo's avatar
vyzo committed
1613
		i += n2
vyzo's avatar
vyzo committed
1614
	}
vyzo's avatar
vyzo committed
1615 1616 1617 1618
	if m.DuplicateMessage != nil {
		dAtA[i] = 0x32
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.DuplicateMessage.Size()))
1619 1620 1621
		n3, err := m.DuplicateMessage.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1622
		}
vyzo's avatar
vyzo committed
1623
		i += n3
vyzo's avatar
vyzo committed
1624
	}
vyzo's avatar
vyzo committed
1625 1626 1627 1628
	if m.DeliverMessage != nil {
		dAtA[i] = 0x3a
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.DeliverMessage.Size()))
1629 1630 1631
		n4, err := m.DeliverMessage.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1632
		}
vyzo's avatar
vyzo committed
1633
		i += n4
vyzo's avatar
vyzo committed
1634
	}
vyzo's avatar
vyzo committed
1635 1636 1637 1638
	if m.AddPeer != nil {
		dAtA[i] = 0x42
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.AddPeer.Size()))
1639 1640 1641
		n5, err := m.AddPeer.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1642
		}
vyzo's avatar
vyzo committed
1643
		i += n5
vyzo's avatar
vyzo committed
1644
	}
Steven Allen's avatar
Steven Allen committed
1645 1646
	if m.RemovePeer != nil {
		dAtA[i] = 0x4a
vyzo's avatar
vyzo committed
1647 1648
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.RemovePeer.Size()))
1649 1650 1651
		n6, err := m.RemovePeer.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1652 1653
		}
		i += n6
vyzo's avatar
vyzo committed
1654
	}
vyzo's avatar
vyzo committed
1655 1656 1657 1658
	if m.RecvRPC != nil {
		dAtA[i] = 0x52
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.RecvRPC.Size()))
1659 1660 1661
		n7, err := m.RecvRPC.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1662
		}
vyzo's avatar
vyzo committed
1663
		i += n7
vyzo's avatar
vyzo committed
1664
	}
vyzo's avatar
vyzo committed
1665 1666 1667 1668
	if m.SendRPC != nil {
		dAtA[i] = 0x5a
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.SendRPC.Size()))
1669 1670 1671
		n8, err := m.SendRPC.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1672
		}
vyzo's avatar
vyzo committed
1673
		i += n8
vyzo's avatar
vyzo committed
1674
	}
vyzo's avatar
vyzo committed
1675 1676 1677 1678
	if m.DropRPC != nil {
		dAtA[i] = 0x62
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.DropRPC.Size()))
1679 1680 1681
		n9, err := m.DropRPC.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1682
		}
vyzo's avatar
vyzo committed
1683
		i += n9
vyzo's avatar
vyzo committed
1684
	}
vyzo's avatar
vyzo committed
1685 1686 1687 1688
	if m.Join != nil {
		dAtA[i] = 0x6a
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.Join.Size()))
1689 1690 1691
		n10, err := m.Join.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1692
		}
vyzo's avatar
vyzo committed
1693
		i += n10
vyzo's avatar
vyzo committed
1694
	}
vyzo's avatar
vyzo committed
1695 1696 1697 1698
	if m.Leave != nil {
		dAtA[i] = 0x72
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.Leave.Size()))
1699 1700 1701
		n11, err := m.Leave.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1702
		}
vyzo's avatar
vyzo committed
1703
		i += n11
vyzo's avatar
vyzo committed
1704
	}
vyzo's avatar
vyzo committed
1705 1706 1707 1708
	if m.Graft != nil {
		dAtA[i] = 0x7a
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.Graft.Size()))
1709 1710 1711
		n12, err := m.Graft.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1712 1713
		}
		i += n12
Steven Allen's avatar
Steven Allen committed
1714
	}
vyzo's avatar
vyzo committed
1715 1716 1717 1718 1719 1720
	if m.Prune != nil {
		dAtA[i] = 0x82
		i++
		dAtA[i] = 0x1
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.Prune.Size()))
1721 1722 1723
		n13, err := m.Prune.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
1724 1725
		}
		i += n13
vyzo's avatar
vyzo committed
1726
	}
vyzo's avatar
vyzo committed
1727 1728
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
Steven Allen's avatar
Steven Allen committed
1729
	}
vyzo's avatar
vyzo committed
1730
	return i, nil
vyzo's avatar
vyzo committed
1731 1732 1733 1734 1735
}

func (m *TraceEvent_PublishMessage) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
1736
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
1737 1738 1739 1740 1741 1742 1743
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_PublishMessage) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
1744
	var i int
vyzo's avatar
vyzo committed
1745 1746 1747
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
1748 1749 1750 1751 1752
	if m.MessageID != nil {
		dAtA[i] = 0xa
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.MessageID)))
		i += copy(dAtA[i:], m.MessageID)
vyzo's avatar
vyzo committed
1753
	}
vyzo's avatar
vyzo committed
1754
	if len(m.Topics) > 0 {
vyzo's avatar
vyzo committed
1755
		for _, s := range m.Topics {
vyzo's avatar
vyzo committed
1756
			dAtA[i] = 0x12
vyzo's avatar
vyzo committed
1757 1758 1759 1760 1761 1762 1763 1764 1765 1766
			i++
			l = len(s)
			for l >= 1<<7 {
				dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
				l >>= 7
				i++
			}
			dAtA[i] = uint8(l)
			i++
			i += copy(dAtA[i:], s)
vyzo's avatar
vyzo committed
1767 1768
		}
	}
vyzo's avatar
vyzo committed
1769 1770
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
1771
	}
vyzo's avatar
vyzo committed
1772
	return i, nil
vyzo's avatar
vyzo committed
1773 1774 1775 1776 1777
}

func (m *TraceEvent_RejectMessage) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
1778
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
1779 1780 1781 1782 1783 1784 1785
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_RejectMessage) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
1786
	var i int
vyzo's avatar
vyzo committed
1787 1788 1789
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
1790 1791 1792 1793 1794
	if m.MessageID != nil {
		dAtA[i] = 0xa
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.MessageID)))
		i += copy(dAtA[i:], m.MessageID)
vyzo's avatar
vyzo committed
1795
	}
Steven Allen's avatar
Steven Allen committed
1796 1797
	if m.ReceivedFrom != nil {
		dAtA[i] = 0x12
vyzo's avatar
vyzo committed
1798 1799 1800
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.ReceivedFrom)))
		i += copy(dAtA[i:], m.ReceivedFrom)
Steven Allen's avatar
Steven Allen committed
1801
	}
vyzo's avatar
vyzo committed
1802 1803 1804 1805 1806 1807
	if m.Reason != nil {
		dAtA[i] = 0x1a
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(*m.Reason)))
		i += copy(dAtA[i:], *m.Reason)
	}
1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822
	if len(m.Topics) > 0 {
		for _, s := range m.Topics {
			dAtA[i] = 0x22
			i++
			l = len(s)
			for l >= 1<<7 {
				dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
				l >>= 7
				i++
			}
			dAtA[i] = uint8(l)
			i++
			i += copy(dAtA[i:], s)
		}
	}
vyzo's avatar
vyzo committed
1823 1824
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
1825
	}
vyzo's avatar
vyzo committed
1826
	return i, nil
vyzo's avatar
vyzo committed
1827 1828 1829 1830 1831
}

func (m *TraceEvent_DuplicateMessage) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
1832
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
1833 1834 1835 1836 1837 1838 1839
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_DuplicateMessage) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
1840
	var i int
vyzo's avatar
vyzo committed
1841 1842 1843
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
1844 1845 1846 1847 1848
	if m.MessageID != nil {
		dAtA[i] = 0xa
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.MessageID)))
		i += copy(dAtA[i:], m.MessageID)
vyzo's avatar
vyzo committed
1849 1850
	}
	if m.ReceivedFrom != nil {
Steven Allen's avatar
Steven Allen committed
1851
		dAtA[i] = 0x12
vyzo's avatar
vyzo committed
1852 1853 1854
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.ReceivedFrom)))
		i += copy(dAtA[i:], m.ReceivedFrom)
vyzo's avatar
vyzo committed
1855
	}
1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870
	if len(m.Topics) > 0 {
		for _, s := range m.Topics {
			dAtA[i] = 0x1a
			i++
			l = len(s)
			for l >= 1<<7 {
				dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
				l >>= 7
				i++
			}
			dAtA[i] = uint8(l)
			i++
			i += copy(dAtA[i:], s)
		}
	}
vyzo's avatar
vyzo committed
1871 1872
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
1873
	}
vyzo's avatar
vyzo committed
1874
	return i, nil
vyzo's avatar
vyzo committed
1875 1876 1877 1878 1879
}

func (m *TraceEvent_DeliverMessage) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
1880
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
1881 1882 1883 1884 1885 1886 1887
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_DeliverMessage) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
1888
	var i int
vyzo's avatar
vyzo committed
1889 1890 1891 1892
	_ = i
	var l int
	_ = l
	if m.MessageID != nil {
Steven Allen's avatar
Steven Allen committed
1893
		dAtA[i] = 0xa
vyzo's avatar
vyzo committed
1894 1895 1896
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.MessageID)))
		i += copy(dAtA[i:], m.MessageID)
vyzo's avatar
vyzo committed
1897
	}
1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912
	if len(m.Topics) > 0 {
		for _, s := range m.Topics {
			dAtA[i] = 0x12
			i++
			l = len(s)
			for l >= 1<<7 {
				dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
				l >>= 7
				i++
			}
			dAtA[i] = uint8(l)
			i++
			i += copy(dAtA[i:], s)
		}
	}
vyzo's avatar
vyzo committed
1913 1914 1915 1916
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
	}
	return i, nil
vyzo's avatar
vyzo committed
1917 1918 1919 1920 1921
}

func (m *TraceEvent_AddPeer) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
1922
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
1923 1924 1925 1926 1927 1928 1929
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_AddPeer) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
1930
	var i int
vyzo's avatar
vyzo committed
1931 1932 1933
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
1934 1935 1936 1937 1938
	if m.PeerID != nil {
		dAtA[i] = 0xa
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.PeerID)))
		i += copy(dAtA[i:], m.PeerID)
vyzo's avatar
vyzo committed
1939 1940
	}
	if m.Proto != nil {
Steven Allen's avatar
Steven Allen committed
1941
		dAtA[i] = 0x12
vyzo's avatar
vyzo committed
1942 1943 1944
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(*m.Proto)))
		i += copy(dAtA[i:], *m.Proto)
vyzo's avatar
vyzo committed
1945
	}
vyzo's avatar
vyzo committed
1946 1947
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
1948
	}
vyzo's avatar
vyzo committed
1949
	return i, nil
vyzo's avatar
vyzo committed
1950 1951 1952 1953 1954
}

func (m *TraceEvent_RemovePeer) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
1955
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
1956 1957 1958 1959 1960 1961 1962
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_RemovePeer) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
1963
	var i int
vyzo's avatar
vyzo committed
1964 1965 1966 1967
	_ = i
	var l int
	_ = l
	if m.PeerID != nil {
Steven Allen's avatar
Steven Allen committed
1968
		dAtA[i] = 0xa
vyzo's avatar
vyzo committed
1969 1970 1971 1972 1973 1974
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.PeerID)))
		i += copy(dAtA[i:], m.PeerID)
	}
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
1975
	}
vyzo's avatar
vyzo committed
1976
	return i, nil
vyzo's avatar
vyzo committed
1977 1978 1979 1980 1981
}

func (m *TraceEvent_RecvRPC) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
1982
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
1983 1984 1985 1986 1987 1988 1989
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_RecvRPC) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
1990
	var i int
vyzo's avatar
vyzo committed
1991 1992 1993
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
1994 1995 1996 1997 1998
	if m.ReceivedFrom != nil {
		dAtA[i] = 0xa
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.ReceivedFrom)))
		i += copy(dAtA[i:], m.ReceivedFrom)
vyzo's avatar
vyzo committed
1999 2000
	}
	if m.Meta != nil {
Steven Allen's avatar
Steven Allen committed
2001
		dAtA[i] = 0x12
vyzo's avatar
vyzo committed
2002 2003
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.Meta.Size()))
2004 2005 2006
		n14, err := m.Meta.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
2007 2008
		}
		i += n14
vyzo's avatar
vyzo committed
2009
	}
vyzo's avatar
vyzo committed
2010 2011
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
2012
	}
vyzo's avatar
vyzo committed
2013
	return i, nil
vyzo's avatar
vyzo committed
2014 2015 2016 2017 2018
}

func (m *TraceEvent_SendRPC) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2019
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2020 2021 2022 2023 2024 2025 2026
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_SendRPC) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2027
	var i int
vyzo's avatar
vyzo committed
2028 2029 2030
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
2031 2032 2033 2034 2035
	if m.SendTo != nil {
		dAtA[i] = 0xa
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.SendTo)))
		i += copy(dAtA[i:], m.SendTo)
vyzo's avatar
vyzo committed
2036 2037
	}
	if m.Meta != nil {
Steven Allen's avatar
Steven Allen committed
2038
		dAtA[i] = 0x12
vyzo's avatar
vyzo committed
2039 2040
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.Meta.Size()))
2041 2042 2043
		n15, err := m.Meta.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
2044 2045
		}
		i += n15
vyzo's avatar
vyzo committed
2046
	}
vyzo's avatar
vyzo committed
2047 2048
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
2049
	}
vyzo's avatar
vyzo committed
2050
	return i, nil
vyzo's avatar
vyzo committed
2051 2052 2053 2054 2055
}

func (m *TraceEvent_DropRPC) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2056
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2057 2058 2059 2060 2061 2062 2063
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_DropRPC) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2064
	var i int
vyzo's avatar
vyzo committed
2065 2066 2067
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
2068 2069 2070 2071 2072
	if m.SendTo != nil {
		dAtA[i] = 0xa
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.SendTo)))
		i += copy(dAtA[i:], m.SendTo)
vyzo's avatar
vyzo committed
2073 2074
	}
	if m.Meta != nil {
Steven Allen's avatar
Steven Allen committed
2075
		dAtA[i] = 0x12
vyzo's avatar
vyzo committed
2076 2077
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.Meta.Size()))
2078 2079 2080
		n16, err := m.Meta.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
2081 2082
		}
		i += n16
vyzo's avatar
vyzo committed
2083
	}
vyzo's avatar
vyzo committed
2084 2085
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
2086
	}
vyzo's avatar
vyzo committed
2087
	return i, nil
vyzo's avatar
vyzo committed
2088 2089 2090 2091 2092
}

func (m *TraceEvent_Join) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2093
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2094 2095 2096 2097 2098 2099 2100
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_Join) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2101
	var i int
vyzo's avatar
vyzo committed
2102 2103 2104 2105
	_ = i
	var l int
	_ = l
	if m.Topic != nil {
Steven Allen's avatar
Steven Allen committed
2106
		dAtA[i] = 0xa
vyzo's avatar
vyzo committed
2107 2108 2109 2110 2111 2112
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(*m.Topic)))
		i += copy(dAtA[i:], *m.Topic)
	}
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
2113
	}
vyzo's avatar
vyzo committed
2114
	return i, nil
vyzo's avatar
vyzo committed
2115 2116 2117 2118 2119
}

func (m *TraceEvent_Leave) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2120
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2121 2122 2123 2124 2125 2126 2127
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_Leave) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2128
	var i int
vyzo's avatar
vyzo committed
2129 2130 2131 2132
	_ = i
	var l int
	_ = l
	if m.Topic != nil {
Steven Allen's avatar
Steven Allen committed
2133
		dAtA[i] = 0x12
vyzo's avatar
vyzo committed
2134 2135 2136 2137 2138 2139
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(*m.Topic)))
		i += copy(dAtA[i:], *m.Topic)
	}
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
2140
	}
vyzo's avatar
vyzo committed
2141
	return i, nil
vyzo's avatar
vyzo committed
2142 2143 2144 2145 2146
}

func (m *TraceEvent_Graft) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2147
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2148 2149 2150 2151 2152 2153 2154
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_Graft) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2155
	var i int
vyzo's avatar
vyzo committed
2156 2157 2158
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
2159 2160 2161 2162 2163
	if m.PeerID != nil {
		dAtA[i] = 0xa
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.PeerID)))
		i += copy(dAtA[i:], m.PeerID)
vyzo's avatar
vyzo committed
2164 2165
	}
	if m.Topic != nil {
Steven Allen's avatar
Steven Allen committed
2166
		dAtA[i] = 0x12
vyzo's avatar
vyzo committed
2167 2168 2169
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(*m.Topic)))
		i += copy(dAtA[i:], *m.Topic)
vyzo's avatar
vyzo committed
2170
	}
vyzo's avatar
vyzo committed
2171 2172
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
2173
	}
vyzo's avatar
vyzo committed
2174
	return i, nil
vyzo's avatar
vyzo committed
2175 2176 2177 2178 2179
}

func (m *TraceEvent_Prune) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2180
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2181 2182 2183 2184 2185 2186 2187
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_Prune) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2188
	var i int
vyzo's avatar
vyzo committed
2189 2190 2191
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
2192 2193 2194 2195 2196
	if m.PeerID != nil {
		dAtA[i] = 0xa
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.PeerID)))
		i += copy(dAtA[i:], m.PeerID)
vyzo's avatar
vyzo committed
2197 2198
	}
	if m.Topic != nil {
Steven Allen's avatar
Steven Allen committed
2199
		dAtA[i] = 0x12
vyzo's avatar
vyzo committed
2200 2201 2202
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(*m.Topic)))
		i += copy(dAtA[i:], *m.Topic)
vyzo's avatar
vyzo committed
2203
	}
vyzo's avatar
vyzo committed
2204 2205
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
2206
	}
vyzo's avatar
vyzo committed
2207
	return i, nil
vyzo's avatar
vyzo committed
2208 2209 2210 2211 2212
}

func (m *TraceEvent_RPCMeta) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2213
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2214 2215 2216 2217 2218 2219 2220
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_RPCMeta) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2221
	var i int
vyzo's avatar
vyzo committed
2222 2223 2224
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
2225 2226 2227 2228 2229 2230
	if len(m.Messages) > 0 {
		for _, msg := range m.Messages {
			dAtA[i] = 0xa
			i++
			i = encodeVarintTrace(dAtA, i, uint64(msg.Size()))
			n, err := msg.MarshalTo(dAtA[i:])
vyzo's avatar
vyzo committed
2231 2232 2233
			if err != nil {
				return 0, err
			}
vyzo's avatar
vyzo committed
2234
			i += n
vyzo's avatar
vyzo committed
2235 2236
		}
	}
vyzo's avatar
vyzo committed
2237
	if len(m.Subscription) > 0 {
vyzo's avatar
vyzo committed
2238
		for _, msg := range m.Subscription {
Steven Allen's avatar
Steven Allen committed
2239
			dAtA[i] = 0x12
vyzo's avatar
vyzo committed
2240 2241 2242 2243 2244 2245 2246
			i++
			i = encodeVarintTrace(dAtA, i, uint64(msg.Size()))
			n, err := msg.MarshalTo(dAtA[i:])
			if err != nil {
				return 0, err
			}
			i += n
vyzo's avatar
vyzo committed
2247 2248
		}
	}
vyzo's avatar
vyzo committed
2249 2250 2251 2252
	if m.Control != nil {
		dAtA[i] = 0x1a
		i++
		i = encodeVarintTrace(dAtA, i, uint64(m.Control.Size()))
2253 2254 2255
		n17, err := m.Control.MarshalTo(dAtA[i:])
		if err != nil {
			return 0, err
vyzo's avatar
vyzo committed
2256
		}
vyzo's avatar
vyzo committed
2257
		i += n17
vyzo's avatar
vyzo committed
2258
	}
vyzo's avatar
vyzo committed
2259 2260 2261 2262
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
	}
	return i, nil
vyzo's avatar
vyzo committed
2263 2264
}

vyzo's avatar
vyzo committed
2265 2266 2267
func (m *TraceEvent_MessageMeta) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2268
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2269 2270 2271 2272 2273 2274 2275
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_MessageMeta) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2276
	var i int
vyzo's avatar
vyzo committed
2277 2278 2279
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
2280 2281 2282 2283 2284
	if m.MessageID != nil {
		dAtA[i] = 0xa
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(m.MessageID)))
		i += copy(dAtA[i:], m.MessageID)
vyzo's avatar
vyzo committed
2285 2286
	}
	if len(m.Topics) > 0 {
vyzo's avatar
vyzo committed
2287
		for _, s := range m.Topics {
vyzo's avatar
vyzo committed
2288
			dAtA[i] = 0x12
vyzo's avatar
vyzo committed
2289 2290 2291 2292 2293 2294 2295 2296 2297 2298
			i++
			l = len(s)
			for l >= 1<<7 {
				dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
				l >>= 7
				i++
			}
			dAtA[i] = uint8(l)
			i++
			i += copy(dAtA[i:], s)
vyzo's avatar
vyzo committed
2299 2300
		}
	}
vyzo's avatar
vyzo committed
2301 2302
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
2303
	}
vyzo's avatar
vyzo committed
2304
	return i, nil
vyzo's avatar
vyzo committed
2305 2306
}

vyzo's avatar
vyzo committed
2307 2308 2309
func (m *TraceEvent_SubMeta) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2310
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2311 2312 2313 2314 2315 2316 2317
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_SubMeta) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2318
	var i int
vyzo's avatar
vyzo committed
2319 2320 2321 2322
	_ = i
	var l int
	_ = l
	if m.Subscribe != nil {
vyzo's avatar
vyzo committed
2323 2324
		dAtA[i] = 0x8
		i++
vyzo's avatar
vyzo committed
2325 2326 2327 2328 2329
		if *m.Subscribe {
			dAtA[i] = 1
		} else {
			dAtA[i] = 0
		}
vyzo's avatar
vyzo committed
2330
		i++
vyzo's avatar
vyzo committed
2331
	}
vyzo's avatar
vyzo committed
2332 2333 2334 2335 2336 2337 2338 2339 2340 2341
	if m.Topic != nil {
		dAtA[i] = 0x12
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(*m.Topic)))
		i += copy(dAtA[i:], *m.Topic)
	}
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
	}
	return i, nil
vyzo's avatar
vyzo committed
2342 2343 2344 2345 2346
}

func (m *TraceEvent_ControlMeta) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2347
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2348 2349 2350 2351 2352 2353 2354
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_ControlMeta) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2355
	var i int
vyzo's avatar
vyzo committed
2356 2357 2358
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
2359 2360 2361 2362 2363 2364 2365 2366
	if len(m.Ihave) > 0 {
		for _, msg := range m.Ihave {
			dAtA[i] = 0xa
			i++
			i = encodeVarintTrace(dAtA, i, uint64(msg.Size()))
			n, err := msg.MarshalTo(dAtA[i:])
			if err != nil {
				return 0, err
vyzo's avatar
vyzo committed
2367
			}
vyzo's avatar
vyzo committed
2368
			i += n
vyzo's avatar
vyzo committed
2369 2370
		}
	}
vyzo's avatar
vyzo committed
2371 2372 2373 2374 2375 2376 2377 2378
	if len(m.Iwant) > 0 {
		for _, msg := range m.Iwant {
			dAtA[i] = 0x12
			i++
			i = encodeVarintTrace(dAtA, i, uint64(msg.Size()))
			n, err := msg.MarshalTo(dAtA[i:])
			if err != nil {
				return 0, err
vyzo's avatar
vyzo committed
2379
			}
vyzo's avatar
vyzo committed
2380
			i += n
vyzo's avatar
vyzo committed
2381 2382
		}
	}
vyzo's avatar
vyzo committed
2383 2384 2385 2386 2387 2388 2389 2390
	if len(m.Graft) > 0 {
		for _, msg := range m.Graft {
			dAtA[i] = 0x1a
			i++
			i = encodeVarintTrace(dAtA, i, uint64(msg.Size()))
			n, err := msg.MarshalTo(dAtA[i:])
			if err != nil {
				return 0, err
vyzo's avatar
vyzo committed
2391
			}
vyzo's avatar
vyzo committed
2392
			i += n
vyzo's avatar
vyzo committed
2393 2394
		}
	}
vyzo's avatar
vyzo committed
2395 2396 2397 2398 2399 2400 2401 2402
	if len(m.Prune) > 0 {
		for _, msg := range m.Prune {
			dAtA[i] = 0x22
			i++
			i = encodeVarintTrace(dAtA, i, uint64(msg.Size()))
			n, err := msg.MarshalTo(dAtA[i:])
			if err != nil {
				return 0, err
Steven Allen's avatar
Steven Allen committed
2403
			}
vyzo's avatar
vyzo committed
2404
			i += n
Steven Allen's avatar
Steven Allen committed
2405
		}
vyzo's avatar
vyzo committed
2406
	}
vyzo's avatar
vyzo committed
2407 2408 2409 2410
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
	}
	return i, nil
vyzo's avatar
vyzo committed
2411 2412 2413 2414 2415
}

func (m *TraceEvent_ControlIHaveMeta) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2416
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2417 2418 2419 2420 2421 2422 2423
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_ControlIHaveMeta) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2424
	var i int
vyzo's avatar
vyzo committed
2425 2426 2427
	_ = i
	var l int
	_ = l
vyzo's avatar
vyzo committed
2428 2429 2430 2431 2432
	if m.Topic != nil {
		dAtA[i] = 0xa
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(*m.Topic)))
		i += copy(dAtA[i:], *m.Topic)
vyzo's avatar
vyzo committed
2433 2434
	}
	if len(m.MessageIDs) > 0 {
vyzo's avatar
vyzo committed
2435
		for _, b := range m.MessageIDs {
vyzo's avatar
vyzo committed
2436
			dAtA[i] = 0x12
vyzo's avatar
vyzo committed
2437 2438 2439
			i++
			i = encodeVarintTrace(dAtA, i, uint64(len(b)))
			i += copy(dAtA[i:], b)
vyzo's avatar
vyzo committed
2440 2441
		}
	}
vyzo's avatar
vyzo committed
2442 2443
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
2444
	}
vyzo's avatar
vyzo committed
2445
	return i, nil
vyzo's avatar
vyzo committed
2446 2447 2448 2449 2450
}

func (m *TraceEvent_ControlIWantMeta) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2451
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2452 2453 2454 2455 2456 2457 2458
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_ControlIWantMeta) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2459
	var i int
vyzo's avatar
vyzo committed
2460 2461 2462 2463
	_ = i
	var l int
	_ = l
	if len(m.MessageIDs) > 0 {
vyzo's avatar
vyzo committed
2464
		for _, b := range m.MessageIDs {
vyzo's avatar
vyzo committed
2465
			dAtA[i] = 0xa
vyzo's avatar
vyzo committed
2466 2467 2468
			i++
			i = encodeVarintTrace(dAtA, i, uint64(len(b)))
			i += copy(dAtA[i:], b)
vyzo's avatar
vyzo committed
2469 2470
		}
	}
vyzo's avatar
vyzo committed
2471 2472 2473 2474
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
	}
	return i, nil
vyzo's avatar
vyzo committed
2475 2476 2477 2478 2479
}

func (m *TraceEvent_ControlGraftMeta) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2480
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2481 2482 2483 2484 2485 2486 2487
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_ControlGraftMeta) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2488
	var i int
vyzo's avatar
vyzo committed
2489 2490 2491 2492
	_ = i
	var l int
	_ = l
	if m.Topic != nil {
Steven Allen's avatar
Steven Allen committed
2493
		dAtA[i] = 0xa
vyzo's avatar
vyzo committed
2494 2495 2496 2497 2498 2499
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(*m.Topic)))
		i += copy(dAtA[i:], *m.Topic)
	}
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
vyzo's avatar
vyzo committed
2500
	}
vyzo's avatar
vyzo committed
2501
	return i, nil
vyzo's avatar
vyzo committed
2502 2503 2504 2505 2506
}

func (m *TraceEvent_ControlPruneMeta) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2507
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2508 2509 2510 2511 2512 2513 2514
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEvent_ControlPruneMeta) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2515
	var i int
vyzo's avatar
vyzo committed
2516 2517 2518 2519
	_ = i
	var l int
	_ = l
	if m.Topic != nil {
Steven Allen's avatar
Steven Allen committed
2520
		dAtA[i] = 0xa
vyzo's avatar
vyzo committed
2521 2522 2523
		i++
		i = encodeVarintTrace(dAtA, i, uint64(len(*m.Topic)))
		i += copy(dAtA[i:], *m.Topic)
vyzo's avatar
vyzo committed
2524
	}
vyzo's avatar
vyzo committed
2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536
	if len(m.Peers) > 0 {
		for _, b := range m.Peers {
			dAtA[i] = 0x12
			i++
			i = encodeVarintTrace(dAtA, i, uint64(len(b)))
			i += copy(dAtA[i:], b)
		}
	}
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
	}
	return i, nil
vyzo's avatar
vyzo committed
2537 2538
}

vyzo's avatar
vyzo committed
2539 2540 2541
func (m *TraceEventBatch) Marshal() (dAtA []byte, err error) {
	size := m.Size()
	dAtA = make([]byte, size)
vyzo's avatar
vyzo committed
2542
	n, err := m.MarshalTo(dAtA)
vyzo's avatar
vyzo committed
2543 2544 2545 2546 2547 2548 2549
	if err != nil {
		return nil, err
	}
	return dAtA[:n], nil
}

func (m *TraceEventBatch) MarshalTo(dAtA []byte) (int, error) {
vyzo's avatar
vyzo committed
2550
	var i int
vyzo's avatar
vyzo committed
2551 2552 2553 2554
	_ = i
	var l int
	_ = l
	if len(m.Batch) > 0 {
vyzo's avatar
vyzo committed
2555
		for _, msg := range m.Batch {
Steven Allen's avatar
Steven Allen committed
2556
			dAtA[i] = 0xa
vyzo's avatar
vyzo committed
2557 2558 2559 2560 2561 2562 2563
			i++
			i = encodeVarintTrace(dAtA, i, uint64(msg.Size()))
			n, err := msg.MarshalTo(dAtA[i:])
			if err != nil {
				return 0, err
			}
			i += n
vyzo's avatar
vyzo committed
2564 2565
		}
	}
vyzo's avatar
vyzo committed
2566 2567 2568 2569
	if m.XXX_unrecognized != nil {
		i += copy(dAtA[i:], m.XXX_unrecognized)
	}
	return i, nil
vyzo's avatar
vyzo committed
2570 2571
}

vyzo's avatar
vyzo committed
2572 2573 2574 2575 2576 2577 2578
func encodeVarintTrace(dAtA []byte, offset int, v uint64) int {
	for v >= 1<<7 {
		dAtA[offset] = uint8(v&0x7f | 0x80)
		v >>= 7
		offset++
	}
	dAtA[offset] = uint8(v)
vyzo's avatar
vyzo committed
2579
	return offset + 1
vyzo's avatar
vyzo committed
2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593
}
func (m *TraceEvent) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Type != nil {
		n += 1 + sovTrace(uint64(*m.Type))
	}
	if m.PeerID != nil {
		l = len(m.PeerID)
		n += 1 + l + sovTrace(uint64(l))
	}
vyzo's avatar
vyzo committed
2594 2595
	if m.Timestamp != nil {
		n += 1 + sovTrace(uint64(*m.Timestamp))
vyzo's avatar
vyzo committed
2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664
	}
	if m.PublishMessage != nil {
		l = m.PublishMessage.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.RejectMessage != nil {
		l = m.RejectMessage.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.DuplicateMessage != nil {
		l = m.DuplicateMessage.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.DeliverMessage != nil {
		l = m.DeliverMessage.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.AddPeer != nil {
		l = m.AddPeer.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.RemovePeer != nil {
		l = m.RemovePeer.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.RecvRPC != nil {
		l = m.RecvRPC.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.SendRPC != nil {
		l = m.SendRPC.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.DropRPC != nil {
		l = m.DropRPC.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.Join != nil {
		l = m.Join.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.Leave != nil {
		l = m.Leave.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.Graft != nil {
		l = m.Graft.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.Prune != nil {
		l = m.Prune.Size()
		n += 2 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_PublishMessage) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.MessageID != nil {
		l = len(m.MessageID)
		n += 1 + l + sovTrace(uint64(l))
	}
vyzo's avatar
vyzo committed
2665 2666 2667 2668 2669 2670
	if len(m.Topics) > 0 {
		for _, s := range m.Topics {
			l = len(s)
			n += 1 + l + sovTrace(uint64(l))
		}
	}
vyzo's avatar
vyzo committed
2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_RejectMessage) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.MessageID != nil {
		l = len(m.MessageID)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.ReceivedFrom != nil {
		l = len(m.ReceivedFrom)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.Reason != nil {
		l = len(*m.Reason)
		n += 1 + l + sovTrace(uint64(l))
	}
2695 2696 2697 2698 2699 2700
	if len(m.Topics) > 0 {
		for _, s := range m.Topics {
			l = len(s)
			n += 1 + l + sovTrace(uint64(l))
		}
	}
vyzo's avatar
vyzo committed
2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_DuplicateMessage) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.MessageID != nil {
		l = len(m.MessageID)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.ReceivedFrom != nil {
		l = len(m.ReceivedFrom)
		n += 1 + l + sovTrace(uint64(l))
	}
2721 2722 2723 2724 2725 2726
	if len(m.Topics) > 0 {
		for _, s := range m.Topics {
			l = len(s)
			n += 1 + l + sovTrace(uint64(l))
		}
	}
vyzo's avatar
vyzo committed
2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_DeliverMessage) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.MessageID != nil {
		l = len(m.MessageID)
		n += 1 + l + sovTrace(uint64(l))
	}
2743 2744 2745 2746 2747 2748
	if len(m.Topics) > 0 {
		for _, s := range m.Topics {
			l = len(s)
			n += 1 + l + sovTrace(uint64(l))
		}
	}
vyzo's avatar
vyzo committed
2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_AddPeer) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.PeerID != nil {
		l = len(m.PeerID)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.Proto != nil {
		l = len(*m.Proto)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_RemovePeer) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.PeerID != nil {
		l = len(m.PeerID)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_RecvRPC) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.ReceivedFrom != nil {
		l = len(m.ReceivedFrom)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.Meta != nil {
		l = m.Meta.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_SendRPC) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.SendTo != nil {
		l = len(m.SendTo)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.Meta != nil {
		l = m.Meta.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_DropRPC) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.SendTo != nil {
		l = len(m.SendTo)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.Meta != nil {
		l = m.Meta.Size()
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_Join) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Topic != nil {
		l = len(*m.Topic)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_Leave) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Topic != nil {
		l = len(*m.Topic)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_Graft) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.PeerID != nil {
		l = len(m.PeerID)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.Topic != nil {
		l = len(*m.Topic)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_Prune) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.PeerID != nil {
		l = len(m.PeerID)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.Topic != nil {
		l = len(*m.Topic)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_RPCMeta) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
vyzo's avatar
vyzo committed
2929 2930 2931
	if len(m.Messages) > 0 {
		for _, e := range m.Messages {
			l = e.Size()
vyzo's avatar
vyzo committed
2932 2933 2934
			n += 1 + l + sovTrace(uint64(l))
		}
	}
vyzo's avatar
vyzo committed
2935 2936
	if len(m.Subscription) > 0 {
		for _, e := range m.Subscription {
vyzo's avatar
vyzo committed
2937 2938 2939 2940
			l = e.Size()
			n += 1 + l + sovTrace(uint64(l))
		}
	}
vyzo's avatar
vyzo committed
2941 2942
	if m.Control != nil {
		l = m.Control.Size()
vyzo's avatar
vyzo committed
2943 2944 2945 2946 2947 2948 2949 2950
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

vyzo's avatar
vyzo committed
2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972
func (m *TraceEvent_MessageMeta) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.MessageID != nil {
		l = len(m.MessageID)
		n += 1 + l + sovTrace(uint64(l))
	}
	if len(m.Topics) > 0 {
		for _, s := range m.Topics {
			l = len(s)
			n += 1 + l + sovTrace(uint64(l))
		}
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

vyzo's avatar
vyzo committed
2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093
func (m *TraceEvent_SubMeta) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Subscribe != nil {
		n += 2
	}
	if m.Topic != nil {
		l = len(*m.Topic)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_ControlMeta) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if len(m.Ihave) > 0 {
		for _, e := range m.Ihave {
			l = e.Size()
			n += 1 + l + sovTrace(uint64(l))
		}
	}
	if len(m.Iwant) > 0 {
		for _, e := range m.Iwant {
			l = e.Size()
			n += 1 + l + sovTrace(uint64(l))
		}
	}
	if len(m.Graft) > 0 {
		for _, e := range m.Graft {
			l = e.Size()
			n += 1 + l + sovTrace(uint64(l))
		}
	}
	if len(m.Prune) > 0 {
		for _, e := range m.Prune {
			l = e.Size()
			n += 1 + l + sovTrace(uint64(l))
		}
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_ControlIHaveMeta) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Topic != nil {
		l = len(*m.Topic)
		n += 1 + l + sovTrace(uint64(l))
	}
	if len(m.MessageIDs) > 0 {
		for _, b := range m.MessageIDs {
			l = len(b)
			n += 1 + l + sovTrace(uint64(l))
		}
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_ControlIWantMeta) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if len(m.MessageIDs) > 0 {
		for _, b := range m.MessageIDs {
			l = len(b)
			n += 1 + l + sovTrace(uint64(l))
		}
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_ControlGraftMeta) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Topic != nil {
		l = len(*m.Topic)
		n += 1 + l + sovTrace(uint64(l))
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

func (m *TraceEvent_ControlPruneMeta) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.Topic != nil {
		l = len(*m.Topic)
		n += 1 + l + sovTrace(uint64(l))
	}
vyzo's avatar
vyzo committed
3094 3095 3096 3097 3098 3099
	if len(m.Peers) > 0 {
		for _, b := range m.Peers {
			l = len(b)
			n += 1 + l + sovTrace(uint64(l))
		}
	}
vyzo's avatar
vyzo committed
3100 3101 3102 3103 3104 3105
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

vyzo's avatar
vyzo committed
3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123
func (m *TraceEventBatch) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if len(m.Batch) > 0 {
		for _, e := range m.Batch {
			l = e.Size()
			n += 1 + l + sovTrace(uint64(l))
		}
	}
	if m.XXX_unrecognized != nil {
		n += len(m.XXX_unrecognized)
	}
	return n
}

vyzo's avatar
vyzo committed
3124
func sovTrace(x uint64) (n int) {
vyzo's avatar
vyzo committed
3125 3126 3127 3128 3129 3130 3131 3132
	for {
		n++
		x >>= 7
		if x == 0 {
			break
		}
	}
	return n
vyzo's avatar
vyzo committed
3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151
}
func sozTrace(x uint64) (n int) {
	return sovTrace(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *TraceEvent) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
3152
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: TraceEvent: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: TraceEvent: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
			}
			var v TraceEvent_Type
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3180
				v |= TraceEvent_Type(b&0x7F) << shift
vyzo's avatar
vyzo committed
3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199
				if b < 0x80 {
					break
				}
			}
			m.Type = &v
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field PeerID", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3200
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3201 3202 3203 3204 3205 3206 3207 3208
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
3209 3210 3211
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3212 3213 3214 3215 3216 3217 3218 3219 3220 3221
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.PeerID = append(m.PeerID[:0], dAtA[iNdEx:postIndex]...)
			if m.PeerID == nil {
				m.PeerID = []byte{}
			}
			iNdEx = postIndex
		case 3:
			if wireType != 0 {
vyzo's avatar
vyzo committed
3222
				return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
vyzo's avatar
vyzo committed
3223
			}
vyzo's avatar
vyzo committed
3224
			var v int64
vyzo's avatar
vyzo committed
3225 3226 3227 3228 3229 3230 3231 3232 3233
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3234
				v |= int64(b&0x7F) << shift
vyzo's avatar
vyzo committed
3235 3236 3237 3238
				if b < 0x80 {
					break
				}
			}
vyzo's avatar
vyzo committed
3239
			m.Timestamp = &v
vyzo's avatar
vyzo committed
3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253
		case 4:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field PublishMessage", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3254
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3255 3256 3257 3258 3259 3260 3261 3262
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3263 3264 3265
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.PublishMessage == nil {
				m.PublishMessage = &TraceEvent_PublishMessage{}
			}
			if err := m.PublishMessage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 5:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field RejectMessage", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3290
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3291 3292 3293 3294 3295 3296 3297 3298
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3299 3300 3301
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.RejectMessage == nil {
				m.RejectMessage = &TraceEvent_RejectMessage{}
			}
			if err := m.RejectMessage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 6:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field DuplicateMessage", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3326
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3327 3328 3329 3330 3331 3332 3333 3334
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3335 3336 3337
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.DuplicateMessage == nil {
				m.DuplicateMessage = &TraceEvent_DuplicateMessage{}
			}
			if err := m.DuplicateMessage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 7:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field DeliverMessage", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3362
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3363 3364 3365 3366 3367 3368 3369 3370
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3371 3372 3373
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.DeliverMessage == nil {
				m.DeliverMessage = &TraceEvent_DeliverMessage{}
			}
			if err := m.DeliverMessage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 8:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field AddPeer", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3398
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3399 3400 3401 3402 3403 3404 3405 3406
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3407 3408 3409
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.AddPeer == nil {
				m.AddPeer = &TraceEvent_AddPeer{}
			}
			if err := m.AddPeer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 9:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field RemovePeer", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3434
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3435 3436 3437 3438 3439 3440 3441 3442
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3443 3444 3445
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.RemovePeer == nil {
				m.RemovePeer = &TraceEvent_RemovePeer{}
			}
			if err := m.RemovePeer.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 10:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field RecvRPC", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3470
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3471 3472 3473 3474 3475 3476 3477 3478
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3479 3480 3481
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.RecvRPC == nil {
				m.RecvRPC = &TraceEvent_RecvRPC{}
			}
			if err := m.RecvRPC.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 11:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field SendRPC", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3506
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3507 3508 3509 3510 3511 3512 3513 3514
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3515 3516 3517
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.SendRPC == nil {
				m.SendRPC = &TraceEvent_SendRPC{}
			}
			if err := m.SendRPC.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 12:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field DropRPC", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3542
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3543 3544 3545 3546 3547 3548 3549 3550
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3551 3552 3553
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.DropRPC == nil {
				m.DropRPC = &TraceEvent_DropRPC{}
			}
			if err := m.DropRPC.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 13:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Join", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3578
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3579 3580 3581 3582 3583 3584 3585 3586
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3587 3588 3589
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Join == nil {
				m.Join = &TraceEvent_Join{}
			}
			if err := m.Join.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 14:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Leave", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3614
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3615 3616 3617 3618 3619 3620 3621 3622
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3623 3624 3625
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Leave == nil {
				m.Leave = &TraceEvent_Leave{}
			}
			if err := m.Leave.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 15:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Graft", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3650
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3651 3652 3653 3654 3655 3656 3657 3658
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3659 3660 3661
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Graft == nil {
				m.Graft = &TraceEvent_Graft{}
			}
			if err := m.Graft.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 16:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Prune", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3686
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3687 3688 3689 3690 3691 3692 3693 3694
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
3695 3696 3697
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Prune == nil {
				m.Prune = &TraceEvent_Prune{}
			}
			if err := m.Prune.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
3717 3718 3719
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_PublishMessage) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
3748
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: PublishMessage: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: PublishMessage: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field MessageID", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3776
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3777 3778 3779 3780 3781 3782 3783 3784
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
3785 3786 3787
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3788 3789 3790 3791 3792 3793 3794 3795
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.MessageID = append(m.MessageID[:0], dAtA[iNdEx:postIndex]...)
			if m.MessageID == nil {
				m.MessageID = []byte{}
			}
			iNdEx = postIndex
vyzo's avatar
vyzo committed
3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3810
				stringLen |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
3811 3812 3813 3814 3815 3816 3817 3818 3819
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
3820 3821 3822
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3823 3824 3825 3826 3827
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Topics = append(m.Topics, string(dAtA[iNdEx:postIndex]))
			iNdEx = postIndex
vyzo's avatar
vyzo committed
3828 3829 3830 3831 3832 3833 3834 3835 3836
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
3837 3838 3839
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_RejectMessage) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
3868
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: RejectMessage: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: RejectMessage: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field MessageID", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3896
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3897 3898 3899 3900 3901 3902 3903 3904
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
3905 3906 3907
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.MessageID = append(m.MessageID[:0], dAtA[iNdEx:postIndex]...)
			if m.MessageID == nil {
				m.MessageID = []byte{}
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field ReceivedFrom", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3930
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
3931 3932 3933 3934 3935 3936 3937 3938
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
3939 3940 3941
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.ReceivedFrom = append(m.ReceivedFrom[:0], dAtA[iNdEx:postIndex]...)
			if m.ReceivedFrom == nil {
				m.ReceivedFrom = []byte{}
			}
			iNdEx = postIndex
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
3964
				stringLen |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
3965 3966 3967 3968 3969 3970 3971 3972 3973
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
3974 3975 3976
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
3977 3978 3979 3980 3981 3982
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			s := string(dAtA[iNdEx:postIndex])
			m.Reason = &s
			iNdEx = postIndex
3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014
		case 4:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Topics = append(m.Topics, string(dAtA[iNdEx:postIndex]))
			iNdEx = postIndex
vyzo's avatar
vyzo committed
4015 4016 4017 4018 4019 4020 4021 4022 4023
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
4024 4025 4026
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_DuplicateMessage) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
4055
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: DuplicateMessage: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: DuplicateMessage: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field MessageID", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4083
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
4084 4085 4086 4087 4088 4089 4090 4091
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
4092 4093 4094
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.MessageID = append(m.MessageID[:0], dAtA[iNdEx:postIndex]...)
			if m.MessageID == nil {
				m.MessageID = []byte{}
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field ReceivedFrom", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4117
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
4118 4119 4120 4121 4122 4123 4124 4125
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
4126 4127 4128
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4129 4130 4131 4132 4133 4134 4135 4136
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.ReceivedFrom = append(m.ReceivedFrom[:0], dAtA[iNdEx:postIndex]...)
			if m.ReceivedFrom == nil {
				m.ReceivedFrom = []byte{}
			}
			iNdEx = postIndex
4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Topics = append(m.Topics, string(dAtA[iNdEx:postIndex]))
			iNdEx = postIndex
vyzo's avatar
vyzo committed
4169 4170 4171 4172 4173 4174 4175 4176 4177
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
4178 4179 4180
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_DeliverMessage) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
4209
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: DeliverMessage: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: DeliverMessage: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field MessageID", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4237
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
4238 4239 4240 4241 4242 4243 4244 4245
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
4246 4247 4248
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4249 4250 4251 4252 4253 4254 4255 4256
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.MessageID = append(m.MessageID[:0], dAtA[iNdEx:postIndex]...)
			if m.MessageID == nil {
				m.MessageID = []byte{}
			}
			iNdEx = postIndex
4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				stringLen |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Topics = append(m.Topics, string(dAtA[iNdEx:postIndex]))
			iNdEx = postIndex
vyzo's avatar
vyzo committed
4289 4290 4291 4292 4293 4294 4295 4296 4297
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
4298 4299 4300
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_AddPeer) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
4329
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: AddPeer: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: AddPeer: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field PeerID", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4357
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
4358 4359 4360 4361 4362 4363 4364 4365
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
4366 4367 4368
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.PeerID = append(m.PeerID[:0], dAtA[iNdEx:postIndex]...)
			if m.PeerID == nil {
				m.PeerID = []byte{}
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Proto", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4391
				stringLen |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
4392 4393 4394 4395 4396 4397 4398 4399 4400
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
4401 4402 4403
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			s := string(dAtA[iNdEx:postIndex])
			m.Proto = &s
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
4419 4420 4421
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_RemovePeer) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
4450
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: RemovePeer: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: RemovePeer: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field PeerID", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4478
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
4479 4480 4481 4482 4483 4484 4485 4486
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
4487 4488 4489
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.PeerID = append(m.PeerID[:0], dAtA[iNdEx:postIndex]...)
			if m.PeerID == nil {
				m.PeerID = []byte{}
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
4507 4508 4509
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_RecvRPC) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
4538
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: RecvRPC: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: RecvRPC: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field ReceivedFrom", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4566
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
4567 4568 4569 4570 4571 4572 4573 4574
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
4575 4576 4577
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.ReceivedFrom = append(m.ReceivedFrom[:0], dAtA[iNdEx:postIndex]...)
			if m.ReceivedFrom == nil {
				m.ReceivedFrom = []byte{}
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4600
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
4601 4602 4603 4604 4605 4606 4607 4608
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
4609 4610 4611
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Meta == nil {
				m.Meta = &TraceEvent_RPCMeta{}
			}
			if err := m.Meta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
4631 4632 4633
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_SendRPC) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
4662
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: SendRPC: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: SendRPC: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field SendTo", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4690
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
4691 4692 4693 4694 4695 4696 4697 4698
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
4699 4700 4701
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.SendTo = append(m.SendTo[:0], dAtA[iNdEx:postIndex]...)
			if m.SendTo == nil {
				m.SendTo = []byte{}
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4724
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
4725 4726 4727 4728 4729 4730 4731 4732
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
4733 4734 4735
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Meta == nil {
				m.Meta = &TraceEvent_RPCMeta{}
			}
			if err := m.Meta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
4755 4756 4757
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_DropRPC) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
4786
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: DropRPC: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: DropRPC: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field SendTo", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4814
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
4815 4816 4817 4818 4819 4820 4821 4822
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
4823 4824 4825
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.SendTo = append(m.SendTo[:0], dAtA[iNdEx:postIndex]...)
			if m.SendTo == nil {
				m.SendTo = []byte{}
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Meta", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4848
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
4849 4850 4851 4852 4853 4854 4855 4856
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
4857 4858 4859
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			if m.Meta == nil {
				m.Meta = &TraceEvent_RPCMeta{}
			}
			if err := m.Meta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
4879 4880 4881
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_Join) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
4910
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: Join: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: Join: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
4938
				stringLen |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
4939 4940 4941 4942 4943 4944 4945 4946 4947
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
4948 4949 4950
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			s := string(dAtA[iNdEx:postIndex])
			m.Topic = &s
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
4966 4967 4968
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_Leave) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
4997
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: Leave: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: Leave: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5025
				stringLen |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5026 5027 5028 5029 5030 5031 5032 5033 5034
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
5035 5036 5037
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			s := string(dAtA[iNdEx:postIndex])
			m.Topic = &s
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
5053 5054 5055
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_Graft) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
5084
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: Graft: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: Graft: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field PeerID", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5112
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
5113 5114 5115 5116 5117 5118 5119 5120
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
5121 5122 5123
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.PeerID = append(m.PeerID[:0], dAtA[iNdEx:postIndex]...)
			if m.PeerID == nil {
				m.PeerID = []byte{}
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5146
				stringLen |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5147 5148 5149 5150 5151 5152 5153 5154 5155
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
5156 5157 5158
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			s := string(dAtA[iNdEx:postIndex])
			m.Topic = &s
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
5174 5175 5176
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_Prune) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
5205
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: Prune: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: Prune: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field PeerID", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5233
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
5234 5235 5236 5237 5238 5239 5240 5241
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
5242 5243 5244
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.PeerID = append(m.PeerID[:0], dAtA[iNdEx:postIndex]...)
			if m.PeerID == nil {
				m.PeerID = []byte{}
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5267
				stringLen |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5268 5269 5270 5271 5272 5273 5274 5275 5276
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
5277 5278 5279
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			s := string(dAtA[iNdEx:postIndex])
			m.Topic = &s
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
5295 5296 5297
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_RPCMeta) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
5326
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: RPCMeta: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: RPCMeta: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
vyzo's avatar
vyzo committed
5342
				return fmt.Errorf("proto: wrong wireType = %d for field Messages", wireType)
vyzo's avatar
vyzo committed
5343
			}
vyzo's avatar
vyzo committed
5344
			var msglen int
vyzo's avatar
vyzo committed
5345 5346 5347 5348 5349 5350 5351 5352 5353
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5354
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
5355 5356 5357 5358
				if b < 0x80 {
					break
				}
			}
vyzo's avatar
vyzo committed
5359
			if msglen < 0 {
vyzo's avatar
vyzo committed
5360 5361
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5362
			postIndex := iNdEx + msglen
5363 5364 5365
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5366 5367 5368
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
vyzo's avatar
vyzo committed
5369 5370 5371 5372
			m.Messages = append(m.Messages, &TraceEvent_MessageMeta{})
			if err := m.Messages[len(m.Messages)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
vyzo's avatar
vyzo committed
5373 5374 5375
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
vyzo's avatar
vyzo committed
5376
				return fmt.Errorf("proto: wrong wireType = %d for field Subscription", wireType)
vyzo's avatar
vyzo committed
5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5388
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
5389 5390 5391 5392 5393 5394 5395 5396
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
5397 5398 5399
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5400 5401 5402
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
vyzo's avatar
vyzo committed
5403 5404
			m.Subscription = append(m.Subscription, &TraceEvent_SubMeta{})
			if err := m.Subscription[len(m.Subscription)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
vyzo's avatar
vyzo committed
5405 5406 5407 5408 5409
				return err
			}
			iNdEx = postIndex
		case 3:
			if wireType != 2 {
vyzo's avatar
vyzo committed
5410
				return fmt.Errorf("proto: wrong wireType = %d for field Control", wireType)
vyzo's avatar
vyzo committed
5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5422
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
5423 5424 5425 5426 5427 5428 5429 5430
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
5431 5432 5433
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5434 5435 5436
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
vyzo's avatar
vyzo committed
5437 5438
			if m.Control == nil {
				m.Control = &TraceEvent_ControlMeta{}
vyzo's avatar
vyzo committed
5439
			}
vyzo's avatar
vyzo committed
5440
			if err := m.Control.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
vyzo's avatar
vyzo committed
5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
5453 5454 5455
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
vyzo's avatar
vyzo committed
5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483
func (m *TraceEvent_MessageMeta) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
5484
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: MessageMeta: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: MessageMeta: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field MessageID", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5512
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
5513 5514 5515 5516 5517 5518 5519 5520
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
5521 5522 5523
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.MessageID = append(m.MessageID[:0], dAtA[iNdEx:postIndex]...)
			if m.MessageID == nil {
				m.MessageID = []byte{}
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5546
				stringLen |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5547 5548 5549 5550 5551 5552 5553 5554 5555
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
5556 5557 5558
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Topics = append(m.Topics, string(dAtA[iNdEx:postIndex]))
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
5573 5574 5575
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
vyzo's avatar
vyzo committed
5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603
func (m *TraceEvent_SubMeta) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
5604
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: SubMeta: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: SubMeta: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Subscribe", wireType)
			}
			var v int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5632
				v |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652
				if b < 0x80 {
					break
				}
			}
			b := bool(v != 0)
			m.Subscribe = &b
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5653
				stringLen |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5654 5655 5656 5657 5658 5659 5660 5661 5662
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
5663 5664 5665
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			s := string(dAtA[iNdEx:postIndex])
			m.Topic = &s
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
5681 5682 5683
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_ControlMeta) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
5712
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: ControlMeta: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: ControlMeta: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Ihave", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5740
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
5741 5742 5743 5744 5745 5746 5747 5748
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
5749 5750 5751
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Ihave = append(m.Ihave, &TraceEvent_ControlIHaveMeta{})
			if err := m.Ihave[len(m.Ihave)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Iwant", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5774
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
5775 5776 5777 5778 5779 5780 5781 5782
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
5783 5784 5785
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Iwant = append(m.Iwant, &TraceEvent_ControlIWantMeta{})
			if err := m.Iwant[len(m.Iwant)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Graft", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5808
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
5809 5810 5811 5812 5813 5814 5815 5816
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
5817 5818 5819
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Graft = append(m.Graft, &TraceEvent_ControlGraftMeta{})
			if err := m.Graft[len(m.Graft)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 4:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Prune", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5842
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
5843 5844 5845 5846 5847 5848 5849 5850
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
5851 5852 5853
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Prune = append(m.Prune, &TraceEvent_ControlPruneMeta{})
			if err := m.Prune[len(m.Prune)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
5871 5872 5873
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_ControlIHaveMeta) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
5902
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: ControlIHaveMeta: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: ControlIHaveMeta: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5930
				stringLen |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
5931 5932 5933 5934 5935 5936 5937 5938 5939
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
5940 5941 5942
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			s := string(dAtA[iNdEx:postIndex])
			m.Topic = &s
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field MessageIDs", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
5963
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
5964 5965 5966 5967 5968 5969 5970 5971
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
5972 5973 5974
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.MessageIDs = append(m.MessageIDs, make([]byte, postIndex-iNdEx))
			copy(m.MessageIDs[len(m.MessageIDs)-1], dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
5990 5991 5992
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_ControlIWantMeta) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
6021
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: ControlIWantMeta: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: ControlIWantMeta: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field MessageIDs", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
6049
				byteLen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
6050 6051 6052 6053 6054 6055 6056 6057
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
6058 6059 6060
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.MessageIDs = append(m.MessageIDs, make([]byte, postIndex-iNdEx))
			copy(m.MessageIDs[len(m.MessageIDs)-1], dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
6076 6077 6078
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_ControlGraftMeta) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
6107
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: ControlGraftMeta: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: ControlGraftMeta: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
6135
				stringLen |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
6136 6137 6138 6139 6140 6141 6142 6143 6144
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
6145 6146 6147
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			s := string(dAtA[iNdEx:postIndex])
			m.Topic = &s
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
6163 6164 6165
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *TraceEvent_ControlPruneMeta) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
6194
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: ControlPruneMeta: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: ControlPruneMeta: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
6222
				stringLen |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
6223 6224 6225 6226 6227 6228 6229 6230 6231
				if b < 0x80 {
					break
				}
			}
			intStringLen := int(stringLen)
			if intStringLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + intStringLen
6232 6233 6234
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
6235 6236 6237 6238 6239 6240
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			s := string(dAtA[iNdEx:postIndex])
			m.Topic = &s
			iNdEx = postIndex
vyzo's avatar
vyzo committed
6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Peers", wireType)
			}
			var byteLen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				byteLen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if byteLen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + byteLen
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Peers = append(m.Peers, make([]byte, postIndex-iNdEx))
			copy(m.Peers[len(m.Peers)-1], dAtA[iNdEx:postIndex])
			iNdEx = postIndex
vyzo's avatar
vyzo committed
6273 6274 6275 6276 6277 6278 6279 6280 6281
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
6282 6283 6284
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
vyzo's avatar
vyzo committed
6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312
func (m *TraceEventBatch) Unmarshal(dAtA []byte) error {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		preIndex := iNdEx
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
6313
			wire |= uint64(b&0x7F) << shift
vyzo's avatar
vyzo committed
6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340
			if b < 0x80 {
				break
			}
		}
		fieldNum := int32(wire >> 3)
		wireType := int(wire & 0x7)
		if wireType == 4 {
			return fmt.Errorf("proto: TraceEventBatch: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: TraceEventBatch: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Batch", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
6341
				msglen |= int(b&0x7F) << shift
vyzo's avatar
vyzo committed
6342 6343 6344 6345 6346 6347 6348 6349
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTrace
			}
			postIndex := iNdEx + msglen
6350 6351 6352
			if postIndex < 0 {
				return ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Batch = append(m.Batch, &TraceEvent{})
			if err := m.Batch[len(m.Batch)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTrace(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTrace
			}
6370
			if (iNdEx + skippy) < 0 {
vyzo's avatar
vyzo committed
6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385
				return ErrInvalidLengthTrace
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
vyzo's avatar
vyzo committed
6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419
func skipTrace(dAtA []byte) (n int, err error) {
	l := len(dAtA)
	iNdEx := 0
	for iNdEx < l {
		var wire uint64
		for shift := uint(0); ; shift += 7 {
			if shift >= 64 {
				return 0, ErrIntOverflowTrace
			}
			if iNdEx >= l {
				return 0, io.ErrUnexpectedEOF
			}
			b := dAtA[iNdEx]
			iNdEx++
			wire |= (uint64(b) & 0x7F) << shift
			if b < 0x80 {
				break
			}
		}
		wireType := int(wire & 0x7)
		switch wireType {
		case 0:
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return 0, ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return 0, io.ErrUnexpectedEOF
				}
				iNdEx++
				if dAtA[iNdEx-1] < 0x80 {
					break
				}
			}
vyzo's avatar
vyzo committed
6420
			return iNdEx, nil
vyzo's avatar
vyzo committed
6421 6422
		case 1:
			iNdEx += 8
vyzo's avatar
vyzo committed
6423
			return iNdEx, nil
vyzo's avatar
vyzo committed
6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442
		case 2:
			var length int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return 0, ErrIntOverflowTrace
				}
				if iNdEx >= l {
					return 0, io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				length |= (int(b) & 0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if length < 0 {
				return 0, ErrInvalidLengthTrace
			}
6443 6444 6445 6446
			iNdEx += length
			if iNdEx < 0 {
				return 0, ErrInvalidLengthTrace
			}
vyzo's avatar
vyzo committed
6447
			return iNdEx, nil
vyzo's avatar
vyzo committed
6448
		case 3:
vyzo's avatar
vyzo committed
6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477
			for {
				var innerWire uint64
				var start int = iNdEx
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return 0, ErrIntOverflowTrace
					}
					if iNdEx >= l {
						return 0, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					innerWire |= (uint64(b) & 0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				innerWireType := int(innerWire & 0x7)
				if innerWireType == 4 {
					break
				}
				next, err := skipTrace(dAtA[start:])
				if err != nil {
					return 0, err
				}
				iNdEx = start + next
				if iNdEx < 0 {
					return 0, ErrInvalidLengthTrace
				}
Steven Allen's avatar
Steven Allen committed
6478
			}
vyzo's avatar
vyzo committed
6479 6480 6481
			return iNdEx, nil
		case 4:
			return iNdEx, nil
vyzo's avatar
vyzo committed
6482 6483
		case 5:
			iNdEx += 4
vyzo's avatar
vyzo committed
6484
			return iNdEx, nil
vyzo's avatar
vyzo committed
6485 6486 6487 6488
		default:
			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
		}
	}
vyzo's avatar
vyzo committed
6489
	panic("unreachable")
vyzo's avatar
vyzo committed
6490 6491 6492
}

var (
vyzo's avatar
vyzo committed
6493 6494
	ErrInvalidLengthTrace = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTrace   = fmt.Errorf("proto: integer overflow")
vyzo's avatar
vyzo committed
6495
)