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