github.com/containerd/containerd@v22.0.0-20200918172823-438c87b8e050+incompatible/runtime/v2/task/shim.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/containerd/containerd/runtime/v2/task/shim.proto 3 4 package task 5 6 import ( 7 context "context" 8 fmt "fmt" 9 types "github.com/containerd/containerd/api/types" 10 task "github.com/containerd/containerd/api/types/task" 11 github_com_containerd_ttrpc "github.com/containerd/ttrpc" 12 proto "github.com/gogo/protobuf/proto" 13 github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 14 types1 "github.com/gogo/protobuf/types" 15 io "io" 16 math "math" 17 math_bits "math/bits" 18 reflect "reflect" 19 strings "strings" 20 time "time" 21 ) 22 23 // Reference imports to suppress errors if they are not otherwise used. 24 var _ = proto.Marshal 25 var _ = fmt.Errorf 26 var _ = math.Inf 27 var _ = time.Kitchen 28 29 // This is a compile-time assertion to ensure that this generated file 30 // is compatible with the proto package it is being compiled against. 31 // A compilation error at this line likely means your copy of the 32 // proto package needs to be updated. 33 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 34 35 type CreateTaskRequest struct { 36 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 37 Bundle string `protobuf:"bytes,2,opt,name=bundle,proto3" json:"bundle,omitempty"` 38 Rootfs []*types.Mount `protobuf:"bytes,3,rep,name=rootfs,proto3" json:"rootfs,omitempty"` 39 Terminal bool `protobuf:"varint,4,opt,name=terminal,proto3" json:"terminal,omitempty"` 40 Stdin string `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"` 41 Stdout string `protobuf:"bytes,6,opt,name=stdout,proto3" json:"stdout,omitempty"` 42 Stderr string `protobuf:"bytes,7,opt,name=stderr,proto3" json:"stderr,omitempty"` 43 Checkpoint string `protobuf:"bytes,8,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` 44 ParentCheckpoint string `protobuf:"bytes,9,opt,name=parent_checkpoint,json=parentCheckpoint,proto3" json:"parent_checkpoint,omitempty"` 45 Options *types1.Any `protobuf:"bytes,10,opt,name=options,proto3" json:"options,omitempty"` 46 XXX_NoUnkeyedLiteral struct{} `json:"-"` 47 XXX_unrecognized []byte `json:"-"` 48 XXX_sizecache int32 `json:"-"` 49 } 50 51 func (m *CreateTaskRequest) Reset() { *m = CreateTaskRequest{} } 52 func (*CreateTaskRequest) ProtoMessage() {} 53 func (*CreateTaskRequest) Descriptor() ([]byte, []int) { 54 return fileDescriptor_9202ee34bc3ad8ca, []int{0} 55 } 56 func (m *CreateTaskRequest) XXX_Unmarshal(b []byte) error { 57 return m.Unmarshal(b) 58 } 59 func (m *CreateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 60 if deterministic { 61 return xxx_messageInfo_CreateTaskRequest.Marshal(b, m, deterministic) 62 } else { 63 b = b[:cap(b)] 64 n, err := m.MarshalToSizedBuffer(b) 65 if err != nil { 66 return nil, err 67 } 68 return b[:n], nil 69 } 70 } 71 func (m *CreateTaskRequest) XXX_Merge(src proto.Message) { 72 xxx_messageInfo_CreateTaskRequest.Merge(m, src) 73 } 74 func (m *CreateTaskRequest) XXX_Size() int { 75 return m.Size() 76 } 77 func (m *CreateTaskRequest) XXX_DiscardUnknown() { 78 xxx_messageInfo_CreateTaskRequest.DiscardUnknown(m) 79 } 80 81 var xxx_messageInfo_CreateTaskRequest proto.InternalMessageInfo 82 83 type CreateTaskResponse struct { 84 Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` 85 XXX_NoUnkeyedLiteral struct{} `json:"-"` 86 XXX_unrecognized []byte `json:"-"` 87 XXX_sizecache int32 `json:"-"` 88 } 89 90 func (m *CreateTaskResponse) Reset() { *m = CreateTaskResponse{} } 91 func (*CreateTaskResponse) ProtoMessage() {} 92 func (*CreateTaskResponse) Descriptor() ([]byte, []int) { 93 return fileDescriptor_9202ee34bc3ad8ca, []int{1} 94 } 95 func (m *CreateTaskResponse) XXX_Unmarshal(b []byte) error { 96 return m.Unmarshal(b) 97 } 98 func (m *CreateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 99 if deterministic { 100 return xxx_messageInfo_CreateTaskResponse.Marshal(b, m, deterministic) 101 } else { 102 b = b[:cap(b)] 103 n, err := m.MarshalToSizedBuffer(b) 104 if err != nil { 105 return nil, err 106 } 107 return b[:n], nil 108 } 109 } 110 func (m *CreateTaskResponse) XXX_Merge(src proto.Message) { 111 xxx_messageInfo_CreateTaskResponse.Merge(m, src) 112 } 113 func (m *CreateTaskResponse) XXX_Size() int { 114 return m.Size() 115 } 116 func (m *CreateTaskResponse) XXX_DiscardUnknown() { 117 xxx_messageInfo_CreateTaskResponse.DiscardUnknown(m) 118 } 119 120 var xxx_messageInfo_CreateTaskResponse proto.InternalMessageInfo 121 122 type DeleteRequest struct { 123 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 124 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 125 XXX_NoUnkeyedLiteral struct{} `json:"-"` 126 XXX_unrecognized []byte `json:"-"` 127 XXX_sizecache int32 `json:"-"` 128 } 129 130 func (m *DeleteRequest) Reset() { *m = DeleteRequest{} } 131 func (*DeleteRequest) ProtoMessage() {} 132 func (*DeleteRequest) Descriptor() ([]byte, []int) { 133 return fileDescriptor_9202ee34bc3ad8ca, []int{2} 134 } 135 func (m *DeleteRequest) XXX_Unmarshal(b []byte) error { 136 return m.Unmarshal(b) 137 } 138 func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 139 if deterministic { 140 return xxx_messageInfo_DeleteRequest.Marshal(b, m, deterministic) 141 } else { 142 b = b[:cap(b)] 143 n, err := m.MarshalToSizedBuffer(b) 144 if err != nil { 145 return nil, err 146 } 147 return b[:n], nil 148 } 149 } 150 func (m *DeleteRequest) XXX_Merge(src proto.Message) { 151 xxx_messageInfo_DeleteRequest.Merge(m, src) 152 } 153 func (m *DeleteRequest) XXX_Size() int { 154 return m.Size() 155 } 156 func (m *DeleteRequest) XXX_DiscardUnknown() { 157 xxx_messageInfo_DeleteRequest.DiscardUnknown(m) 158 } 159 160 var xxx_messageInfo_DeleteRequest proto.InternalMessageInfo 161 162 type DeleteResponse struct { 163 Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` 164 ExitStatus uint32 `protobuf:"varint,2,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` 165 ExitedAt time.Time `protobuf:"bytes,3,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"` 166 XXX_NoUnkeyedLiteral struct{} `json:"-"` 167 XXX_unrecognized []byte `json:"-"` 168 XXX_sizecache int32 `json:"-"` 169 } 170 171 func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } 172 func (*DeleteResponse) ProtoMessage() {} 173 func (*DeleteResponse) Descriptor() ([]byte, []int) { 174 return fileDescriptor_9202ee34bc3ad8ca, []int{3} 175 } 176 func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { 177 return m.Unmarshal(b) 178 } 179 func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 180 if deterministic { 181 return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) 182 } else { 183 b = b[:cap(b)] 184 n, err := m.MarshalToSizedBuffer(b) 185 if err != nil { 186 return nil, err 187 } 188 return b[:n], nil 189 } 190 } 191 func (m *DeleteResponse) XXX_Merge(src proto.Message) { 192 xxx_messageInfo_DeleteResponse.Merge(m, src) 193 } 194 func (m *DeleteResponse) XXX_Size() int { 195 return m.Size() 196 } 197 func (m *DeleteResponse) XXX_DiscardUnknown() { 198 xxx_messageInfo_DeleteResponse.DiscardUnknown(m) 199 } 200 201 var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo 202 203 type ExecProcessRequest struct { 204 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 205 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 206 Terminal bool `protobuf:"varint,3,opt,name=terminal,proto3" json:"terminal,omitempty"` 207 Stdin string `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"` 208 Stdout string `protobuf:"bytes,5,opt,name=stdout,proto3" json:"stdout,omitempty"` 209 Stderr string `protobuf:"bytes,6,opt,name=stderr,proto3" json:"stderr,omitempty"` 210 Spec *types1.Any `protobuf:"bytes,7,opt,name=spec,proto3" json:"spec,omitempty"` 211 XXX_NoUnkeyedLiteral struct{} `json:"-"` 212 XXX_unrecognized []byte `json:"-"` 213 XXX_sizecache int32 `json:"-"` 214 } 215 216 func (m *ExecProcessRequest) Reset() { *m = ExecProcessRequest{} } 217 func (*ExecProcessRequest) ProtoMessage() {} 218 func (*ExecProcessRequest) Descriptor() ([]byte, []int) { 219 return fileDescriptor_9202ee34bc3ad8ca, []int{4} 220 } 221 func (m *ExecProcessRequest) XXX_Unmarshal(b []byte) error { 222 return m.Unmarshal(b) 223 } 224 func (m *ExecProcessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 225 if deterministic { 226 return xxx_messageInfo_ExecProcessRequest.Marshal(b, m, deterministic) 227 } else { 228 b = b[:cap(b)] 229 n, err := m.MarshalToSizedBuffer(b) 230 if err != nil { 231 return nil, err 232 } 233 return b[:n], nil 234 } 235 } 236 func (m *ExecProcessRequest) XXX_Merge(src proto.Message) { 237 xxx_messageInfo_ExecProcessRequest.Merge(m, src) 238 } 239 func (m *ExecProcessRequest) XXX_Size() int { 240 return m.Size() 241 } 242 func (m *ExecProcessRequest) XXX_DiscardUnknown() { 243 xxx_messageInfo_ExecProcessRequest.DiscardUnknown(m) 244 } 245 246 var xxx_messageInfo_ExecProcessRequest proto.InternalMessageInfo 247 248 type ExecProcessResponse struct { 249 XXX_NoUnkeyedLiteral struct{} `json:"-"` 250 XXX_unrecognized []byte `json:"-"` 251 XXX_sizecache int32 `json:"-"` 252 } 253 254 func (m *ExecProcessResponse) Reset() { *m = ExecProcessResponse{} } 255 func (*ExecProcessResponse) ProtoMessage() {} 256 func (*ExecProcessResponse) Descriptor() ([]byte, []int) { 257 return fileDescriptor_9202ee34bc3ad8ca, []int{5} 258 } 259 func (m *ExecProcessResponse) XXX_Unmarshal(b []byte) error { 260 return m.Unmarshal(b) 261 } 262 func (m *ExecProcessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 263 if deterministic { 264 return xxx_messageInfo_ExecProcessResponse.Marshal(b, m, deterministic) 265 } else { 266 b = b[:cap(b)] 267 n, err := m.MarshalToSizedBuffer(b) 268 if err != nil { 269 return nil, err 270 } 271 return b[:n], nil 272 } 273 } 274 func (m *ExecProcessResponse) XXX_Merge(src proto.Message) { 275 xxx_messageInfo_ExecProcessResponse.Merge(m, src) 276 } 277 func (m *ExecProcessResponse) XXX_Size() int { 278 return m.Size() 279 } 280 func (m *ExecProcessResponse) XXX_DiscardUnknown() { 281 xxx_messageInfo_ExecProcessResponse.DiscardUnknown(m) 282 } 283 284 var xxx_messageInfo_ExecProcessResponse proto.InternalMessageInfo 285 286 type ResizePtyRequest struct { 287 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 288 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 289 Width uint32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` 290 Height uint32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` 291 XXX_NoUnkeyedLiteral struct{} `json:"-"` 292 XXX_unrecognized []byte `json:"-"` 293 XXX_sizecache int32 `json:"-"` 294 } 295 296 func (m *ResizePtyRequest) Reset() { *m = ResizePtyRequest{} } 297 func (*ResizePtyRequest) ProtoMessage() {} 298 func (*ResizePtyRequest) Descriptor() ([]byte, []int) { 299 return fileDescriptor_9202ee34bc3ad8ca, []int{6} 300 } 301 func (m *ResizePtyRequest) XXX_Unmarshal(b []byte) error { 302 return m.Unmarshal(b) 303 } 304 func (m *ResizePtyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 305 if deterministic { 306 return xxx_messageInfo_ResizePtyRequest.Marshal(b, m, deterministic) 307 } else { 308 b = b[:cap(b)] 309 n, err := m.MarshalToSizedBuffer(b) 310 if err != nil { 311 return nil, err 312 } 313 return b[:n], nil 314 } 315 } 316 func (m *ResizePtyRequest) XXX_Merge(src proto.Message) { 317 xxx_messageInfo_ResizePtyRequest.Merge(m, src) 318 } 319 func (m *ResizePtyRequest) XXX_Size() int { 320 return m.Size() 321 } 322 func (m *ResizePtyRequest) XXX_DiscardUnknown() { 323 xxx_messageInfo_ResizePtyRequest.DiscardUnknown(m) 324 } 325 326 var xxx_messageInfo_ResizePtyRequest proto.InternalMessageInfo 327 328 type StateRequest struct { 329 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 330 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 331 XXX_NoUnkeyedLiteral struct{} `json:"-"` 332 XXX_unrecognized []byte `json:"-"` 333 XXX_sizecache int32 `json:"-"` 334 } 335 336 func (m *StateRequest) Reset() { *m = StateRequest{} } 337 func (*StateRequest) ProtoMessage() {} 338 func (*StateRequest) Descriptor() ([]byte, []int) { 339 return fileDescriptor_9202ee34bc3ad8ca, []int{7} 340 } 341 func (m *StateRequest) XXX_Unmarshal(b []byte) error { 342 return m.Unmarshal(b) 343 } 344 func (m *StateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 345 if deterministic { 346 return xxx_messageInfo_StateRequest.Marshal(b, m, deterministic) 347 } else { 348 b = b[:cap(b)] 349 n, err := m.MarshalToSizedBuffer(b) 350 if err != nil { 351 return nil, err 352 } 353 return b[:n], nil 354 } 355 } 356 func (m *StateRequest) XXX_Merge(src proto.Message) { 357 xxx_messageInfo_StateRequest.Merge(m, src) 358 } 359 func (m *StateRequest) XXX_Size() int { 360 return m.Size() 361 } 362 func (m *StateRequest) XXX_DiscardUnknown() { 363 xxx_messageInfo_StateRequest.DiscardUnknown(m) 364 } 365 366 var xxx_messageInfo_StateRequest proto.InternalMessageInfo 367 368 type StateResponse struct { 369 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 370 Bundle string `protobuf:"bytes,2,opt,name=bundle,proto3" json:"bundle,omitempty"` 371 Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"` 372 Status task.Status `protobuf:"varint,4,opt,name=status,proto3,enum=containerd.v1.types.Status" json:"status,omitempty"` 373 Stdin string `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"` 374 Stdout string `protobuf:"bytes,6,opt,name=stdout,proto3" json:"stdout,omitempty"` 375 Stderr string `protobuf:"bytes,7,opt,name=stderr,proto3" json:"stderr,omitempty"` 376 Terminal bool `protobuf:"varint,8,opt,name=terminal,proto3" json:"terminal,omitempty"` 377 ExitStatus uint32 `protobuf:"varint,9,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` 378 ExitedAt time.Time `protobuf:"bytes,10,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"` 379 ExecID string `protobuf:"bytes,11,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 380 XXX_NoUnkeyedLiteral struct{} `json:"-"` 381 XXX_unrecognized []byte `json:"-"` 382 XXX_sizecache int32 `json:"-"` 383 } 384 385 func (m *StateResponse) Reset() { *m = StateResponse{} } 386 func (*StateResponse) ProtoMessage() {} 387 func (*StateResponse) Descriptor() ([]byte, []int) { 388 return fileDescriptor_9202ee34bc3ad8ca, []int{8} 389 } 390 func (m *StateResponse) XXX_Unmarshal(b []byte) error { 391 return m.Unmarshal(b) 392 } 393 func (m *StateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 394 if deterministic { 395 return xxx_messageInfo_StateResponse.Marshal(b, m, deterministic) 396 } else { 397 b = b[:cap(b)] 398 n, err := m.MarshalToSizedBuffer(b) 399 if err != nil { 400 return nil, err 401 } 402 return b[:n], nil 403 } 404 } 405 func (m *StateResponse) XXX_Merge(src proto.Message) { 406 xxx_messageInfo_StateResponse.Merge(m, src) 407 } 408 func (m *StateResponse) XXX_Size() int { 409 return m.Size() 410 } 411 func (m *StateResponse) XXX_DiscardUnknown() { 412 xxx_messageInfo_StateResponse.DiscardUnknown(m) 413 } 414 415 var xxx_messageInfo_StateResponse proto.InternalMessageInfo 416 417 type KillRequest struct { 418 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 419 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 420 Signal uint32 `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"` 421 All bool `protobuf:"varint,4,opt,name=all,proto3" json:"all,omitempty"` 422 XXX_NoUnkeyedLiteral struct{} `json:"-"` 423 XXX_unrecognized []byte `json:"-"` 424 XXX_sizecache int32 `json:"-"` 425 } 426 427 func (m *KillRequest) Reset() { *m = KillRequest{} } 428 func (*KillRequest) ProtoMessage() {} 429 func (*KillRequest) Descriptor() ([]byte, []int) { 430 return fileDescriptor_9202ee34bc3ad8ca, []int{9} 431 } 432 func (m *KillRequest) XXX_Unmarshal(b []byte) error { 433 return m.Unmarshal(b) 434 } 435 func (m *KillRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 436 if deterministic { 437 return xxx_messageInfo_KillRequest.Marshal(b, m, deterministic) 438 } else { 439 b = b[:cap(b)] 440 n, err := m.MarshalToSizedBuffer(b) 441 if err != nil { 442 return nil, err 443 } 444 return b[:n], nil 445 } 446 } 447 func (m *KillRequest) XXX_Merge(src proto.Message) { 448 xxx_messageInfo_KillRequest.Merge(m, src) 449 } 450 func (m *KillRequest) XXX_Size() int { 451 return m.Size() 452 } 453 func (m *KillRequest) XXX_DiscardUnknown() { 454 xxx_messageInfo_KillRequest.DiscardUnknown(m) 455 } 456 457 var xxx_messageInfo_KillRequest proto.InternalMessageInfo 458 459 type CloseIORequest struct { 460 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 461 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 462 Stdin bool `protobuf:"varint,3,opt,name=stdin,proto3" json:"stdin,omitempty"` 463 XXX_NoUnkeyedLiteral struct{} `json:"-"` 464 XXX_unrecognized []byte `json:"-"` 465 XXX_sizecache int32 `json:"-"` 466 } 467 468 func (m *CloseIORequest) Reset() { *m = CloseIORequest{} } 469 func (*CloseIORequest) ProtoMessage() {} 470 func (*CloseIORequest) Descriptor() ([]byte, []int) { 471 return fileDescriptor_9202ee34bc3ad8ca, []int{10} 472 } 473 func (m *CloseIORequest) XXX_Unmarshal(b []byte) error { 474 return m.Unmarshal(b) 475 } 476 func (m *CloseIORequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 477 if deterministic { 478 return xxx_messageInfo_CloseIORequest.Marshal(b, m, deterministic) 479 } else { 480 b = b[:cap(b)] 481 n, err := m.MarshalToSizedBuffer(b) 482 if err != nil { 483 return nil, err 484 } 485 return b[:n], nil 486 } 487 } 488 func (m *CloseIORequest) XXX_Merge(src proto.Message) { 489 xxx_messageInfo_CloseIORequest.Merge(m, src) 490 } 491 func (m *CloseIORequest) XXX_Size() int { 492 return m.Size() 493 } 494 func (m *CloseIORequest) XXX_DiscardUnknown() { 495 xxx_messageInfo_CloseIORequest.DiscardUnknown(m) 496 } 497 498 var xxx_messageInfo_CloseIORequest proto.InternalMessageInfo 499 500 type PidsRequest struct { 501 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 502 XXX_NoUnkeyedLiteral struct{} `json:"-"` 503 XXX_unrecognized []byte `json:"-"` 504 XXX_sizecache int32 `json:"-"` 505 } 506 507 func (m *PidsRequest) Reset() { *m = PidsRequest{} } 508 func (*PidsRequest) ProtoMessage() {} 509 func (*PidsRequest) Descriptor() ([]byte, []int) { 510 return fileDescriptor_9202ee34bc3ad8ca, []int{11} 511 } 512 func (m *PidsRequest) XXX_Unmarshal(b []byte) error { 513 return m.Unmarshal(b) 514 } 515 func (m *PidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 516 if deterministic { 517 return xxx_messageInfo_PidsRequest.Marshal(b, m, deterministic) 518 } else { 519 b = b[:cap(b)] 520 n, err := m.MarshalToSizedBuffer(b) 521 if err != nil { 522 return nil, err 523 } 524 return b[:n], nil 525 } 526 } 527 func (m *PidsRequest) XXX_Merge(src proto.Message) { 528 xxx_messageInfo_PidsRequest.Merge(m, src) 529 } 530 func (m *PidsRequest) XXX_Size() int { 531 return m.Size() 532 } 533 func (m *PidsRequest) XXX_DiscardUnknown() { 534 xxx_messageInfo_PidsRequest.DiscardUnknown(m) 535 } 536 537 var xxx_messageInfo_PidsRequest proto.InternalMessageInfo 538 539 type PidsResponse struct { 540 Processes []*task.ProcessInfo `protobuf:"bytes,1,rep,name=processes,proto3" json:"processes,omitempty"` 541 XXX_NoUnkeyedLiteral struct{} `json:"-"` 542 XXX_unrecognized []byte `json:"-"` 543 XXX_sizecache int32 `json:"-"` 544 } 545 546 func (m *PidsResponse) Reset() { *m = PidsResponse{} } 547 func (*PidsResponse) ProtoMessage() {} 548 func (*PidsResponse) Descriptor() ([]byte, []int) { 549 return fileDescriptor_9202ee34bc3ad8ca, []int{12} 550 } 551 func (m *PidsResponse) XXX_Unmarshal(b []byte) error { 552 return m.Unmarshal(b) 553 } 554 func (m *PidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 555 if deterministic { 556 return xxx_messageInfo_PidsResponse.Marshal(b, m, deterministic) 557 } else { 558 b = b[:cap(b)] 559 n, err := m.MarshalToSizedBuffer(b) 560 if err != nil { 561 return nil, err 562 } 563 return b[:n], nil 564 } 565 } 566 func (m *PidsResponse) XXX_Merge(src proto.Message) { 567 xxx_messageInfo_PidsResponse.Merge(m, src) 568 } 569 func (m *PidsResponse) XXX_Size() int { 570 return m.Size() 571 } 572 func (m *PidsResponse) XXX_DiscardUnknown() { 573 xxx_messageInfo_PidsResponse.DiscardUnknown(m) 574 } 575 576 var xxx_messageInfo_PidsResponse proto.InternalMessageInfo 577 578 type CheckpointTaskRequest struct { 579 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 580 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 581 Options *types1.Any `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` 582 XXX_NoUnkeyedLiteral struct{} `json:"-"` 583 XXX_unrecognized []byte `json:"-"` 584 XXX_sizecache int32 `json:"-"` 585 } 586 587 func (m *CheckpointTaskRequest) Reset() { *m = CheckpointTaskRequest{} } 588 func (*CheckpointTaskRequest) ProtoMessage() {} 589 func (*CheckpointTaskRequest) Descriptor() ([]byte, []int) { 590 return fileDescriptor_9202ee34bc3ad8ca, []int{13} 591 } 592 func (m *CheckpointTaskRequest) XXX_Unmarshal(b []byte) error { 593 return m.Unmarshal(b) 594 } 595 func (m *CheckpointTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 596 if deterministic { 597 return xxx_messageInfo_CheckpointTaskRequest.Marshal(b, m, deterministic) 598 } else { 599 b = b[:cap(b)] 600 n, err := m.MarshalToSizedBuffer(b) 601 if err != nil { 602 return nil, err 603 } 604 return b[:n], nil 605 } 606 } 607 func (m *CheckpointTaskRequest) XXX_Merge(src proto.Message) { 608 xxx_messageInfo_CheckpointTaskRequest.Merge(m, src) 609 } 610 func (m *CheckpointTaskRequest) XXX_Size() int { 611 return m.Size() 612 } 613 func (m *CheckpointTaskRequest) XXX_DiscardUnknown() { 614 xxx_messageInfo_CheckpointTaskRequest.DiscardUnknown(m) 615 } 616 617 var xxx_messageInfo_CheckpointTaskRequest proto.InternalMessageInfo 618 619 type UpdateTaskRequest struct { 620 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 621 Resources *types1.Any `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` 622 XXX_NoUnkeyedLiteral struct{} `json:"-"` 623 XXX_unrecognized []byte `json:"-"` 624 XXX_sizecache int32 `json:"-"` 625 } 626 627 func (m *UpdateTaskRequest) Reset() { *m = UpdateTaskRequest{} } 628 func (*UpdateTaskRequest) ProtoMessage() {} 629 func (*UpdateTaskRequest) Descriptor() ([]byte, []int) { 630 return fileDescriptor_9202ee34bc3ad8ca, []int{14} 631 } 632 func (m *UpdateTaskRequest) XXX_Unmarshal(b []byte) error { 633 return m.Unmarshal(b) 634 } 635 func (m *UpdateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 636 if deterministic { 637 return xxx_messageInfo_UpdateTaskRequest.Marshal(b, m, deterministic) 638 } else { 639 b = b[:cap(b)] 640 n, err := m.MarshalToSizedBuffer(b) 641 if err != nil { 642 return nil, err 643 } 644 return b[:n], nil 645 } 646 } 647 func (m *UpdateTaskRequest) XXX_Merge(src proto.Message) { 648 xxx_messageInfo_UpdateTaskRequest.Merge(m, src) 649 } 650 func (m *UpdateTaskRequest) XXX_Size() int { 651 return m.Size() 652 } 653 func (m *UpdateTaskRequest) XXX_DiscardUnknown() { 654 xxx_messageInfo_UpdateTaskRequest.DiscardUnknown(m) 655 } 656 657 var xxx_messageInfo_UpdateTaskRequest proto.InternalMessageInfo 658 659 type StartRequest struct { 660 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 661 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 662 XXX_NoUnkeyedLiteral struct{} `json:"-"` 663 XXX_unrecognized []byte `json:"-"` 664 XXX_sizecache int32 `json:"-"` 665 } 666 667 func (m *StartRequest) Reset() { *m = StartRequest{} } 668 func (*StartRequest) ProtoMessage() {} 669 func (*StartRequest) Descriptor() ([]byte, []int) { 670 return fileDescriptor_9202ee34bc3ad8ca, []int{15} 671 } 672 func (m *StartRequest) XXX_Unmarshal(b []byte) error { 673 return m.Unmarshal(b) 674 } 675 func (m *StartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 676 if deterministic { 677 return xxx_messageInfo_StartRequest.Marshal(b, m, deterministic) 678 } else { 679 b = b[:cap(b)] 680 n, err := m.MarshalToSizedBuffer(b) 681 if err != nil { 682 return nil, err 683 } 684 return b[:n], nil 685 } 686 } 687 func (m *StartRequest) XXX_Merge(src proto.Message) { 688 xxx_messageInfo_StartRequest.Merge(m, src) 689 } 690 func (m *StartRequest) XXX_Size() int { 691 return m.Size() 692 } 693 func (m *StartRequest) XXX_DiscardUnknown() { 694 xxx_messageInfo_StartRequest.DiscardUnknown(m) 695 } 696 697 var xxx_messageInfo_StartRequest proto.InternalMessageInfo 698 699 type StartResponse struct { 700 Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` 701 XXX_NoUnkeyedLiteral struct{} `json:"-"` 702 XXX_unrecognized []byte `json:"-"` 703 XXX_sizecache int32 `json:"-"` 704 } 705 706 func (m *StartResponse) Reset() { *m = StartResponse{} } 707 func (*StartResponse) ProtoMessage() {} 708 func (*StartResponse) Descriptor() ([]byte, []int) { 709 return fileDescriptor_9202ee34bc3ad8ca, []int{16} 710 } 711 func (m *StartResponse) XXX_Unmarshal(b []byte) error { 712 return m.Unmarshal(b) 713 } 714 func (m *StartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 715 if deterministic { 716 return xxx_messageInfo_StartResponse.Marshal(b, m, deterministic) 717 } else { 718 b = b[:cap(b)] 719 n, err := m.MarshalToSizedBuffer(b) 720 if err != nil { 721 return nil, err 722 } 723 return b[:n], nil 724 } 725 } 726 func (m *StartResponse) XXX_Merge(src proto.Message) { 727 xxx_messageInfo_StartResponse.Merge(m, src) 728 } 729 func (m *StartResponse) XXX_Size() int { 730 return m.Size() 731 } 732 func (m *StartResponse) XXX_DiscardUnknown() { 733 xxx_messageInfo_StartResponse.DiscardUnknown(m) 734 } 735 736 var xxx_messageInfo_StartResponse proto.InternalMessageInfo 737 738 type WaitRequest struct { 739 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 740 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 741 XXX_NoUnkeyedLiteral struct{} `json:"-"` 742 XXX_unrecognized []byte `json:"-"` 743 XXX_sizecache int32 `json:"-"` 744 } 745 746 func (m *WaitRequest) Reset() { *m = WaitRequest{} } 747 func (*WaitRequest) ProtoMessage() {} 748 func (*WaitRequest) Descriptor() ([]byte, []int) { 749 return fileDescriptor_9202ee34bc3ad8ca, []int{17} 750 } 751 func (m *WaitRequest) XXX_Unmarshal(b []byte) error { 752 return m.Unmarshal(b) 753 } 754 func (m *WaitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 755 if deterministic { 756 return xxx_messageInfo_WaitRequest.Marshal(b, m, deterministic) 757 } else { 758 b = b[:cap(b)] 759 n, err := m.MarshalToSizedBuffer(b) 760 if err != nil { 761 return nil, err 762 } 763 return b[:n], nil 764 } 765 } 766 func (m *WaitRequest) XXX_Merge(src proto.Message) { 767 xxx_messageInfo_WaitRequest.Merge(m, src) 768 } 769 func (m *WaitRequest) XXX_Size() int { 770 return m.Size() 771 } 772 func (m *WaitRequest) XXX_DiscardUnknown() { 773 xxx_messageInfo_WaitRequest.DiscardUnknown(m) 774 } 775 776 var xxx_messageInfo_WaitRequest proto.InternalMessageInfo 777 778 type WaitResponse struct { 779 ExitStatus uint32 `protobuf:"varint,1,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` 780 ExitedAt time.Time `protobuf:"bytes,2,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"` 781 XXX_NoUnkeyedLiteral struct{} `json:"-"` 782 XXX_unrecognized []byte `json:"-"` 783 XXX_sizecache int32 `json:"-"` 784 } 785 786 func (m *WaitResponse) Reset() { *m = WaitResponse{} } 787 func (*WaitResponse) ProtoMessage() {} 788 func (*WaitResponse) Descriptor() ([]byte, []int) { 789 return fileDescriptor_9202ee34bc3ad8ca, []int{18} 790 } 791 func (m *WaitResponse) XXX_Unmarshal(b []byte) error { 792 return m.Unmarshal(b) 793 } 794 func (m *WaitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 795 if deterministic { 796 return xxx_messageInfo_WaitResponse.Marshal(b, m, deterministic) 797 } else { 798 b = b[:cap(b)] 799 n, err := m.MarshalToSizedBuffer(b) 800 if err != nil { 801 return nil, err 802 } 803 return b[:n], nil 804 } 805 } 806 func (m *WaitResponse) XXX_Merge(src proto.Message) { 807 xxx_messageInfo_WaitResponse.Merge(m, src) 808 } 809 func (m *WaitResponse) XXX_Size() int { 810 return m.Size() 811 } 812 func (m *WaitResponse) XXX_DiscardUnknown() { 813 xxx_messageInfo_WaitResponse.DiscardUnknown(m) 814 } 815 816 var xxx_messageInfo_WaitResponse proto.InternalMessageInfo 817 818 type StatsRequest struct { 819 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 820 XXX_NoUnkeyedLiteral struct{} `json:"-"` 821 XXX_unrecognized []byte `json:"-"` 822 XXX_sizecache int32 `json:"-"` 823 } 824 825 func (m *StatsRequest) Reset() { *m = StatsRequest{} } 826 func (*StatsRequest) ProtoMessage() {} 827 func (*StatsRequest) Descriptor() ([]byte, []int) { 828 return fileDescriptor_9202ee34bc3ad8ca, []int{19} 829 } 830 func (m *StatsRequest) XXX_Unmarshal(b []byte) error { 831 return m.Unmarshal(b) 832 } 833 func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 834 if deterministic { 835 return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic) 836 } else { 837 b = b[:cap(b)] 838 n, err := m.MarshalToSizedBuffer(b) 839 if err != nil { 840 return nil, err 841 } 842 return b[:n], nil 843 } 844 } 845 func (m *StatsRequest) XXX_Merge(src proto.Message) { 846 xxx_messageInfo_StatsRequest.Merge(m, src) 847 } 848 func (m *StatsRequest) XXX_Size() int { 849 return m.Size() 850 } 851 func (m *StatsRequest) XXX_DiscardUnknown() { 852 xxx_messageInfo_StatsRequest.DiscardUnknown(m) 853 } 854 855 var xxx_messageInfo_StatsRequest proto.InternalMessageInfo 856 857 type StatsResponse struct { 858 Stats *types1.Any `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` 859 XXX_NoUnkeyedLiteral struct{} `json:"-"` 860 XXX_unrecognized []byte `json:"-"` 861 XXX_sizecache int32 `json:"-"` 862 } 863 864 func (m *StatsResponse) Reset() { *m = StatsResponse{} } 865 func (*StatsResponse) ProtoMessage() {} 866 func (*StatsResponse) Descriptor() ([]byte, []int) { 867 return fileDescriptor_9202ee34bc3ad8ca, []int{20} 868 } 869 func (m *StatsResponse) XXX_Unmarshal(b []byte) error { 870 return m.Unmarshal(b) 871 } 872 func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 873 if deterministic { 874 return xxx_messageInfo_StatsResponse.Marshal(b, m, deterministic) 875 } else { 876 b = b[:cap(b)] 877 n, err := m.MarshalToSizedBuffer(b) 878 if err != nil { 879 return nil, err 880 } 881 return b[:n], nil 882 } 883 } 884 func (m *StatsResponse) XXX_Merge(src proto.Message) { 885 xxx_messageInfo_StatsResponse.Merge(m, src) 886 } 887 func (m *StatsResponse) XXX_Size() int { 888 return m.Size() 889 } 890 func (m *StatsResponse) XXX_DiscardUnknown() { 891 xxx_messageInfo_StatsResponse.DiscardUnknown(m) 892 } 893 894 var xxx_messageInfo_StatsResponse proto.InternalMessageInfo 895 896 type ConnectRequest struct { 897 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 898 XXX_NoUnkeyedLiteral struct{} `json:"-"` 899 XXX_unrecognized []byte `json:"-"` 900 XXX_sizecache int32 `json:"-"` 901 } 902 903 func (m *ConnectRequest) Reset() { *m = ConnectRequest{} } 904 func (*ConnectRequest) ProtoMessage() {} 905 func (*ConnectRequest) Descriptor() ([]byte, []int) { 906 return fileDescriptor_9202ee34bc3ad8ca, []int{21} 907 } 908 func (m *ConnectRequest) XXX_Unmarshal(b []byte) error { 909 return m.Unmarshal(b) 910 } 911 func (m *ConnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 912 if deterministic { 913 return xxx_messageInfo_ConnectRequest.Marshal(b, m, deterministic) 914 } else { 915 b = b[:cap(b)] 916 n, err := m.MarshalToSizedBuffer(b) 917 if err != nil { 918 return nil, err 919 } 920 return b[:n], nil 921 } 922 } 923 func (m *ConnectRequest) XXX_Merge(src proto.Message) { 924 xxx_messageInfo_ConnectRequest.Merge(m, src) 925 } 926 func (m *ConnectRequest) XXX_Size() int { 927 return m.Size() 928 } 929 func (m *ConnectRequest) XXX_DiscardUnknown() { 930 xxx_messageInfo_ConnectRequest.DiscardUnknown(m) 931 } 932 933 var xxx_messageInfo_ConnectRequest proto.InternalMessageInfo 934 935 type ConnectResponse struct { 936 ShimPid uint32 `protobuf:"varint,1,opt,name=shim_pid,json=shimPid,proto3" json:"shim_pid,omitempty"` 937 TaskPid uint32 `protobuf:"varint,2,opt,name=task_pid,json=taskPid,proto3" json:"task_pid,omitempty"` 938 Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` 939 XXX_NoUnkeyedLiteral struct{} `json:"-"` 940 XXX_unrecognized []byte `json:"-"` 941 XXX_sizecache int32 `json:"-"` 942 } 943 944 func (m *ConnectResponse) Reset() { *m = ConnectResponse{} } 945 func (*ConnectResponse) ProtoMessage() {} 946 func (*ConnectResponse) Descriptor() ([]byte, []int) { 947 return fileDescriptor_9202ee34bc3ad8ca, []int{22} 948 } 949 func (m *ConnectResponse) XXX_Unmarshal(b []byte) error { 950 return m.Unmarshal(b) 951 } 952 func (m *ConnectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 953 if deterministic { 954 return xxx_messageInfo_ConnectResponse.Marshal(b, m, deterministic) 955 } else { 956 b = b[:cap(b)] 957 n, err := m.MarshalToSizedBuffer(b) 958 if err != nil { 959 return nil, err 960 } 961 return b[:n], nil 962 } 963 } 964 func (m *ConnectResponse) XXX_Merge(src proto.Message) { 965 xxx_messageInfo_ConnectResponse.Merge(m, src) 966 } 967 func (m *ConnectResponse) XXX_Size() int { 968 return m.Size() 969 } 970 func (m *ConnectResponse) XXX_DiscardUnknown() { 971 xxx_messageInfo_ConnectResponse.DiscardUnknown(m) 972 } 973 974 var xxx_messageInfo_ConnectResponse proto.InternalMessageInfo 975 976 type ShutdownRequest struct { 977 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 978 Now bool `protobuf:"varint,2,opt,name=now,proto3" json:"now,omitempty"` 979 XXX_NoUnkeyedLiteral struct{} `json:"-"` 980 XXX_unrecognized []byte `json:"-"` 981 XXX_sizecache int32 `json:"-"` 982 } 983 984 func (m *ShutdownRequest) Reset() { *m = ShutdownRequest{} } 985 func (*ShutdownRequest) ProtoMessage() {} 986 func (*ShutdownRequest) Descriptor() ([]byte, []int) { 987 return fileDescriptor_9202ee34bc3ad8ca, []int{23} 988 } 989 func (m *ShutdownRequest) XXX_Unmarshal(b []byte) error { 990 return m.Unmarshal(b) 991 } 992 func (m *ShutdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 993 if deterministic { 994 return xxx_messageInfo_ShutdownRequest.Marshal(b, m, deterministic) 995 } else { 996 b = b[:cap(b)] 997 n, err := m.MarshalToSizedBuffer(b) 998 if err != nil { 999 return nil, err 1000 } 1001 return b[:n], nil 1002 } 1003 } 1004 func (m *ShutdownRequest) XXX_Merge(src proto.Message) { 1005 xxx_messageInfo_ShutdownRequest.Merge(m, src) 1006 } 1007 func (m *ShutdownRequest) XXX_Size() int { 1008 return m.Size() 1009 } 1010 func (m *ShutdownRequest) XXX_DiscardUnknown() { 1011 xxx_messageInfo_ShutdownRequest.DiscardUnknown(m) 1012 } 1013 1014 var xxx_messageInfo_ShutdownRequest proto.InternalMessageInfo 1015 1016 type PauseRequest struct { 1017 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 1018 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1019 XXX_unrecognized []byte `json:"-"` 1020 XXX_sizecache int32 `json:"-"` 1021 } 1022 1023 func (m *PauseRequest) Reset() { *m = PauseRequest{} } 1024 func (*PauseRequest) ProtoMessage() {} 1025 func (*PauseRequest) Descriptor() ([]byte, []int) { 1026 return fileDescriptor_9202ee34bc3ad8ca, []int{24} 1027 } 1028 func (m *PauseRequest) XXX_Unmarshal(b []byte) error { 1029 return m.Unmarshal(b) 1030 } 1031 func (m *PauseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1032 if deterministic { 1033 return xxx_messageInfo_PauseRequest.Marshal(b, m, deterministic) 1034 } else { 1035 b = b[:cap(b)] 1036 n, err := m.MarshalToSizedBuffer(b) 1037 if err != nil { 1038 return nil, err 1039 } 1040 return b[:n], nil 1041 } 1042 } 1043 func (m *PauseRequest) XXX_Merge(src proto.Message) { 1044 xxx_messageInfo_PauseRequest.Merge(m, src) 1045 } 1046 func (m *PauseRequest) XXX_Size() int { 1047 return m.Size() 1048 } 1049 func (m *PauseRequest) XXX_DiscardUnknown() { 1050 xxx_messageInfo_PauseRequest.DiscardUnknown(m) 1051 } 1052 1053 var xxx_messageInfo_PauseRequest proto.InternalMessageInfo 1054 1055 type ResumeRequest struct { 1056 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 1057 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1058 XXX_unrecognized []byte `json:"-"` 1059 XXX_sizecache int32 `json:"-"` 1060 } 1061 1062 func (m *ResumeRequest) Reset() { *m = ResumeRequest{} } 1063 func (*ResumeRequest) ProtoMessage() {} 1064 func (*ResumeRequest) Descriptor() ([]byte, []int) { 1065 return fileDescriptor_9202ee34bc3ad8ca, []int{25} 1066 } 1067 func (m *ResumeRequest) XXX_Unmarshal(b []byte) error { 1068 return m.Unmarshal(b) 1069 } 1070 func (m *ResumeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1071 if deterministic { 1072 return xxx_messageInfo_ResumeRequest.Marshal(b, m, deterministic) 1073 } else { 1074 b = b[:cap(b)] 1075 n, err := m.MarshalToSizedBuffer(b) 1076 if err != nil { 1077 return nil, err 1078 } 1079 return b[:n], nil 1080 } 1081 } 1082 func (m *ResumeRequest) XXX_Merge(src proto.Message) { 1083 xxx_messageInfo_ResumeRequest.Merge(m, src) 1084 } 1085 func (m *ResumeRequest) XXX_Size() int { 1086 return m.Size() 1087 } 1088 func (m *ResumeRequest) XXX_DiscardUnknown() { 1089 xxx_messageInfo_ResumeRequest.DiscardUnknown(m) 1090 } 1091 1092 var xxx_messageInfo_ResumeRequest proto.InternalMessageInfo 1093 1094 func init() { 1095 proto.RegisterType((*CreateTaskRequest)(nil), "containerd.task.v2.CreateTaskRequest") 1096 proto.RegisterType((*CreateTaskResponse)(nil), "containerd.task.v2.CreateTaskResponse") 1097 proto.RegisterType((*DeleteRequest)(nil), "containerd.task.v2.DeleteRequest") 1098 proto.RegisterType((*DeleteResponse)(nil), "containerd.task.v2.DeleteResponse") 1099 proto.RegisterType((*ExecProcessRequest)(nil), "containerd.task.v2.ExecProcessRequest") 1100 proto.RegisterType((*ExecProcessResponse)(nil), "containerd.task.v2.ExecProcessResponse") 1101 proto.RegisterType((*ResizePtyRequest)(nil), "containerd.task.v2.ResizePtyRequest") 1102 proto.RegisterType((*StateRequest)(nil), "containerd.task.v2.StateRequest") 1103 proto.RegisterType((*StateResponse)(nil), "containerd.task.v2.StateResponse") 1104 proto.RegisterType((*KillRequest)(nil), "containerd.task.v2.KillRequest") 1105 proto.RegisterType((*CloseIORequest)(nil), "containerd.task.v2.CloseIORequest") 1106 proto.RegisterType((*PidsRequest)(nil), "containerd.task.v2.PidsRequest") 1107 proto.RegisterType((*PidsResponse)(nil), "containerd.task.v2.PidsResponse") 1108 proto.RegisterType((*CheckpointTaskRequest)(nil), "containerd.task.v2.CheckpointTaskRequest") 1109 proto.RegisterType((*UpdateTaskRequest)(nil), "containerd.task.v2.UpdateTaskRequest") 1110 proto.RegisterType((*StartRequest)(nil), "containerd.task.v2.StartRequest") 1111 proto.RegisterType((*StartResponse)(nil), "containerd.task.v2.StartResponse") 1112 proto.RegisterType((*WaitRequest)(nil), "containerd.task.v2.WaitRequest") 1113 proto.RegisterType((*WaitResponse)(nil), "containerd.task.v2.WaitResponse") 1114 proto.RegisterType((*StatsRequest)(nil), "containerd.task.v2.StatsRequest") 1115 proto.RegisterType((*StatsResponse)(nil), "containerd.task.v2.StatsResponse") 1116 proto.RegisterType((*ConnectRequest)(nil), "containerd.task.v2.ConnectRequest") 1117 proto.RegisterType((*ConnectResponse)(nil), "containerd.task.v2.ConnectResponse") 1118 proto.RegisterType((*ShutdownRequest)(nil), "containerd.task.v2.ShutdownRequest") 1119 proto.RegisterType((*PauseRequest)(nil), "containerd.task.v2.PauseRequest") 1120 proto.RegisterType((*ResumeRequest)(nil), "containerd.task.v2.ResumeRequest") 1121 } 1122 1123 func init() { 1124 proto.RegisterFile("github.com/containerd/containerd/runtime/v2/task/shim.proto", fileDescriptor_9202ee34bc3ad8ca) 1125 } 1126 1127 var fileDescriptor_9202ee34bc3ad8ca = []byte{ 1128 // 1246 bytes of a gzipped FileDescriptorProto 1129 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x5d, 0x6f, 0x1b, 0x45, 1130 0x17, 0xee, 0xfa, 0x63, 0x6d, 0x1f, 0xd7, 0x69, 0x3a, 0x6f, 0x9a, 0x77, 0xeb, 0x4a, 0xb6, 0xbb, 1131 0xa5, 0xc1, 0x80, 0x64, 0x0b, 0x57, 0x70, 0x41, 0x24, 0x50, 0xbe, 0xa8, 0x4c, 0x0b, 0x89, 0xb6, 1132 0x45, 0x45, 0xdc, 0x58, 0x1b, 0xef, 0xc4, 0x5e, 0xc5, 0xde, 0x59, 0x76, 0x66, 0xf3, 0x81, 0x84, 1133 0xc4, 0x15, 0x17, 0x5c, 0xf1, 0xb3, 0x72, 0x89, 0xc4, 0x0d, 0x37, 0x04, 0xea, 0x7f, 0xc0, 0x3f, 1134 0x40, 0xf3, 0xe1, 0x78, 0xed, 0xec, 0xda, 0x49, 0xe5, 0x9b, 0x68, 0xce, 0xce, 0x33, 0x67, 0xe6, 1135 0x9c, 0x79, 0xce, 0x73, 0x26, 0x86, 0xcd, 0x9e, 0xcb, 0xfa, 0xe1, 0x61, 0xa3, 0x4b, 0x86, 0xcd, 1136 0x2e, 0xf1, 0x98, 0xed, 0x7a, 0x38, 0x70, 0xa2, 0xc3, 0x20, 0xf4, 0x98, 0x3b, 0xc4, 0xcd, 0x93, 1137 0x56, 0x93, 0xd9, 0xf4, 0xb8, 0x49, 0xfb, 0xee, 0xb0, 0xe1, 0x07, 0x84, 0x11, 0x84, 0x26, 0xb0, 1138 0x06, 0x9f, 0x6b, 0x9c, 0xb4, 0xca, 0x0f, 0x7b, 0x84, 0xf4, 0x06, 0xb8, 0x29, 0x10, 0x87, 0xe1, 1139 0x51, 0xd3, 0xf6, 0xce, 0x25, 0xbc, 0xfc, 0x68, 0x76, 0x0a, 0x0f, 0x7d, 0x36, 0x9e, 0x5c, 0xeb, 1140 0x91, 0x1e, 0x11, 0xc3, 0x26, 0x1f, 0xa9, 0xaf, 0xd5, 0xd9, 0x25, 0xfc, 0x28, 0x94, 0xd9, 0x43, 1141 0x5f, 0x01, 0x3e, 0x5d, 0x78, 0x7e, 0xdb, 0x77, 0x9b, 0xec, 0xdc, 0xc7, 0xb4, 0x39, 0x24, 0xa1, 1142 0xc7, 0xd4, 0xba, 0xcf, 0x6e, 0xb1, 0x4e, 0x84, 0x2d, 0xe2, 0x13, 0x6b, 0xcd, 0x3f, 0x52, 0x70, 1143 0x7f, 0x27, 0xc0, 0x36, 0xc3, 0xaf, 0x6d, 0x7a, 0x6c, 0xe1, 0x1f, 0x42, 0x4c, 0x19, 0x5a, 0x87, 1144 0x94, 0xeb, 0x18, 0x5a, 0x4d, 0xab, 0x17, 0xb6, 0xf5, 0xd1, 0x65, 0x35, 0xd5, 0xde, 0xb5, 0x52, 1145 0xae, 0x83, 0xd6, 0x41, 0x3f, 0x0c, 0x3d, 0x67, 0x80, 0x8d, 0x14, 0x9f, 0xb3, 0x94, 0x85, 0x9a, 1146 0xa0, 0x07, 0x84, 0xb0, 0x23, 0x6a, 0xa4, 0x6b, 0xe9, 0x7a, 0xb1, 0xf5, 0xff, 0x46, 0x34, 0x9b, 1147 0x7c, 0xe3, 0xc6, 0xd7, 0xfc, 0xc0, 0x96, 0x82, 0xa1, 0x32, 0xe4, 0x19, 0x0e, 0x86, 0xae, 0x67, 1148 0x0f, 0x8c, 0x4c, 0x4d, 0xab, 0xe7, 0xad, 0x2b, 0x1b, 0xad, 0x41, 0x96, 0x32, 0xc7, 0xf5, 0x8c, 1149 0xac, 0xd8, 0x43, 0x1a, 0x7c, 0x6b, 0xca, 0x1c, 0x12, 0x32, 0x43, 0x97, 0x5b, 0x4b, 0x4b, 0x7d, 1150 0xc7, 0x41, 0x60, 0xe4, 0xae, 0xbe, 0xe3, 0x20, 0x40, 0x15, 0x80, 0x6e, 0x1f, 0x77, 0x8f, 0x7d, 1151 0xe2, 0x7a, 0xcc, 0xc8, 0x8b, 0xb9, 0xc8, 0x17, 0xf4, 0x11, 0xdc, 0xf7, 0xed, 0x00, 0x7b, 0xac, 1152 0x13, 0x81, 0x15, 0x04, 0x6c, 0x55, 0x4e, 0xec, 0x4c, 0xc0, 0x0d, 0xc8, 0x11, 0x9f, 0xb9, 0xc4, 1153 0xa3, 0x06, 0xd4, 0xb4, 0x7a, 0xb1, 0xb5, 0xd6, 0x90, 0x97, 0xd9, 0x18, 0x5f, 0x66, 0x63, 0xcb, 1154 0x3b, 0xb7, 0xc6, 0x20, 0x73, 0x03, 0x50, 0x34, 0xa9, 0xd4, 0x27, 0x1e, 0xc5, 0x68, 0x15, 0xd2, 1155 0xbe, 0x4a, 0x6b, 0xc9, 0xe2, 0x43, 0xf3, 0x25, 0x94, 0x76, 0xf1, 0x00, 0x33, 0xbc, 0x28, 0xf1, 1156 0x4f, 0x20, 0x87, 0xcf, 0x70, 0xb7, 0xe3, 0x3a, 0x32, 0xf3, 0xdb, 0x30, 0xba, 0xac, 0xea, 0x7b, 1157 0x67, 0xb8, 0xdb, 0xde, 0xb5, 0x74, 0x3e, 0xd5, 0x76, 0xcc, 0x5f, 0x34, 0x58, 0x19, 0xbb, 0x4b, 1158 0xda, 0x12, 0x55, 0xa1, 0x88, 0xcf, 0x5c, 0xd6, 0xa1, 0xcc, 0x66, 0x21, 0x15, 0xde, 0x4a, 0x16, 1159 0xf0, 0x4f, 0xaf, 0xc4, 0x17, 0xb4, 0x05, 0x05, 0x6e, 0x61, 0xa7, 0x63, 0x33, 0x23, 0x2d, 0xa2, 1160 0x2d, 0x5f, 0x8b, 0xf6, 0xf5, 0x98, 0xba, 0xdb, 0xf9, 0x8b, 0xcb, 0xea, 0x9d, 0xdf, 0xfe, 0xae, 1161 0x6a, 0x56, 0x5e, 0x2e, 0xdb, 0x62, 0xe6, 0x5f, 0x1a, 0x20, 0x7e, 0xb6, 0x83, 0x80, 0x74, 0x31, 1162 0xa5, 0xcb, 0x08, 0x6e, 0x8a, 0x31, 0xe9, 0x24, 0xc6, 0x64, 0xe2, 0x19, 0x93, 0x4d, 0x60, 0x8c, 1163 0x3e, 0xc5, 0x98, 0x3a, 0x64, 0xa8, 0x8f, 0xbb, 0x82, 0x47, 0x49, 0x37, 0x2c, 0x10, 0xe6, 0x03, 1164 0xf8, 0xdf, 0x54, 0x78, 0x32, 0xd9, 0xe6, 0x4f, 0xb0, 0x6a, 0x61, 0xea, 0xfe, 0x88, 0x0f, 0xd8, 1165 0xf9, 0x52, 0x62, 0x5e, 0x83, 0xec, 0xa9, 0xeb, 0xb0, 0xbe, 0x08, 0xb8, 0x64, 0x49, 0x83, 0x9f, 1166 0xbf, 0x8f, 0xdd, 0x5e, 0x9f, 0x89, 0x70, 0x4b, 0x96, 0xb2, 0xcc, 0x17, 0x70, 0x97, 0x5f, 0xe1, 1167 0x72, 0xb8, 0xf4, 0x6f, 0x0a, 0x4a, 0xca, 0x9b, 0xa2, 0xd2, 0x6d, 0x35, 0x41, 0x51, 0x2f, 0x3d, 1168 0xa1, 0xde, 0x33, 0x9e, 0x78, 0xc1, 0x3a, 0x7e, 0xf0, 0x95, 0xd6, 0xa3, 0xa8, 0x4a, 0x9c, 0x7c, 1169 0xac, 0x84, 0x42, 0xd2, 0xd0, 0x52, 0xd0, 0x25, 0xa9, 0x41, 0x94, 0x3d, 0xf9, 0x19, 0xf6, 0xcc, 1170 0x54, 0x44, 0x61, 0x7e, 0x45, 0xc0, 0xbb, 0x54, 0x44, 0x34, 0xe7, 0xc5, 0xc4, 0x9c, 0x33, 0x28, 1171 0xbe, 0x70, 0x07, 0x83, 0xa5, 0x50, 0x87, 0x27, 0xc2, 0xed, 0x8d, 0x8b, 0xa5, 0x64, 0x29, 0x8b, 1172 0xdf, 0x8a, 0x3d, 0x18, 0x6b, 0x2e, 0x1f, 0x9a, 0x5d, 0x58, 0xd9, 0x19, 0x10, 0x8a, 0xdb, 0xfb, 1173 0xcb, 0xe2, 0xac, 0xbc, 0x2f, 0x59, 0xa4, 0xd2, 0x30, 0x9f, 0x42, 0xf1, 0xc0, 0x75, 0x16, 0x29, 1174 0x81, 0xf9, 0x0d, 0xdc, 0x95, 0x30, 0xc5, 0xb9, 0xcf, 0xa1, 0xe0, 0xcb, 0x22, 0xc3, 0xd4, 0xd0, 1175 0x44, 0x6b, 0xa9, 0xc5, 0x92, 0x46, 0x95, 0x62, 0xdb, 0x3b, 0x22, 0xd6, 0x64, 0x89, 0x49, 0xe1, 1176 0xc1, 0x44, 0xc5, 0x6f, 0xd2, 0xe0, 0x10, 0x64, 0x7c, 0x9b, 0xf5, 0x15, 0x95, 0xc5, 0x38, 0x2a, 1177 0xfe, 0xe9, 0x9b, 0x88, 0x7f, 0x07, 0xee, 0x7f, 0xeb, 0x3b, 0x37, 0xec, 0xa8, 0x2d, 0x28, 0x04, 1178 0x98, 0x92, 0x30, 0xe8, 0x62, 0x29, 0xc6, 0x49, 0xee, 0x27, 0x30, 0x55, 0xe8, 0x01, 0x5b, 0x4a, 1179 0xa1, 0x3f, 0x16, 0x75, 0xce, 0x9d, 0x25, 0x76, 0xa9, 0xaf, 0xa0, 0xf8, 0xc6, 0x76, 0x97, 0xb3, 1180 0x5d, 0x00, 0x77, 0xa5, 0x2f, 0xb5, 0xdb, 0x4c, 0xf1, 0x69, 0xf3, 0x8b, 0x2f, 0xf5, 0x4e, 0xed, 1181 0x68, 0x43, 0x0a, 0xe3, 0x42, 0xf6, 0x6d, 0x4a, 0xc9, 0x9b, 0xd0, 0xef, 0x43, 0xce, 0x65, 0x9b, 1182 0xc9, 0x63, 0x25, 0x5d, 0x8c, 0x84, 0x98, 0x75, 0x58, 0xd9, 0x21, 0x9e, 0x87, 0xbb, 0x8b, 0xf2, 1183 0x64, 0xda, 0x70, 0xef, 0x0a, 0xa9, 0x36, 0x7a, 0x08, 0x79, 0xfe, 0x14, 0xed, 0x4c, 0x12, 0x9f, 1184 0xe3, 0xf6, 0x81, 0xeb, 0xf0, 0x29, 0xfe, 0x5c, 0x13, 0x53, 0xb2, 0x59, 0xe7, 0xb8, 0xcd, 0xa7, 1185 0x0c, 0xc8, 0x9d, 0xe0, 0x80, 0xba, 0x44, 0x16, 0x5b, 0xc1, 0x1a, 0x9b, 0xe6, 0x26, 0xdc, 0x7b, 1186 0xd5, 0x0f, 0x99, 0x43, 0x4e, 0xbd, 0x45, 0xb7, 0xb6, 0x0a, 0x69, 0x8f, 0x9c, 0x0a, 0xd7, 0x79, 1187 0x8b, 0x0f, 0x79, 0xba, 0x0e, 0xec, 0x90, 0x2e, 0xea, 0x23, 0xe6, 0xfb, 0x50, 0xb2, 0x30, 0x0d, 1188 0x87, 0x8b, 0x80, 0xad, 0x5f, 0x01, 0x32, 0xbc, 0x16, 0xd0, 0x4b, 0xc8, 0x8a, 0x9e, 0x82, 0xa6, 1189 0x8a, 0x58, 0xbd, 0xb6, 0x1b, 0xd1, 0xe6, 0x55, 0x7e, 0x3c, 0x07, 0xa1, 0x92, 0xf6, 0x06, 0x74, 1190 0xf9, 0xc8, 0x42, 0x4f, 0xe3, 0xc0, 0xd7, 0x5e, 0xb5, 0xe5, 0x8d, 0x45, 0x30, 0xe5, 0x58, 0x1e, 1191 0x33, 0x60, 0x89, 0xc7, 0xbc, 0x2a, 0xbd, 0xc4, 0x63, 0x46, 0xea, 0x69, 0x1f, 0x74, 0xf9, 0x28, 1192 0x43, 0xb1, 0xe0, 0xa9, 0xf7, 0x5f, 0xd9, 0x9c, 0x07, 0x51, 0x0e, 0xdb, 0x90, 0xe1, 0x22, 0x89, 1193 0xaa, 0x71, 0xd8, 0x88, 0xca, 0x96, 0x6b, 0xc9, 0x00, 0xe5, 0x6a, 0x0b, 0xb2, 0xe2, 0xaa, 0xe3, 1194 0x23, 0x8d, 0xb2, 0xa0, 0xbc, 0x7e, 0x8d, 0xfc, 0x7b, 0xfc, 0x3f, 0x1e, 0xb4, 0x03, 0xba, 0x64, 1195 0x41, 0x7c, 0x78, 0x53, 0x0c, 0x49, 0x74, 0xb2, 0x0f, 0x10, 0x79, 0x6d, 0x7f, 0x10, 0x7b, 0x4f, 1196 0x71, 0x3a, 0x9e, 0xe8, 0xf0, 0x0b, 0xc8, 0xf0, 0x56, 0x1a, 0x9f, 0xa3, 0x48, 0x93, 0x4d, 0x74, 1197 0xf0, 0x25, 0x64, 0xb8, 0x72, 0xa1, 0x58, 0xce, 0x5c, 0x7f, 0xdb, 0x26, 0xfa, 0x69, 0x43, 0xe1, 1198 0xea, 0x4d, 0x88, 0xde, 0x4b, 0xc8, 0xd0, 0xd4, 0x93, 0x31, 0xd1, 0xd5, 0x1e, 0xe4, 0x54, 0xa3, 1199 0x46, 0xb1, 0x34, 0x99, 0xee, 0xe2, 0x89, 0x6e, 0x9e, 0x83, 0x2e, 0xdb, 0x53, 0x7c, 0xd9, 0x5c, 1200 0x6b, 0x5d, 0x73, 0x42, 0xcb, 0x70, 0x29, 0x8f, 0xcf, 0x71, 0xa4, 0x61, 0xc4, 0xf3, 0x70, 0xaa, 1201 0x0b, 0x28, 0x61, 0xa0, 0xc9, 0xc2, 0x40, 0x17, 0x0a, 0xc3, 0x84, 0xd5, 0x16, 0xe4, 0x94, 0xc0, 1202 0x26, 0x24, 0x6a, 0x4a, 0xa7, 0xcb, 0x4f, 0xe6, 0x62, 0x94, 0xcf, 0xe7, 0x90, 0x1f, 0x2b, 0x2a, 1203 0x8a, 0x5d, 0x30, 0xa3, 0xb7, 0x49, 0x59, 0xdb, 0xde, 0xbf, 0x78, 0x5b, 0xb9, 0xf3, 0xe7, 0xdb, 1204 0xca, 0x9d, 0x9f, 0x47, 0x15, 0xed, 0x62, 0x54, 0xd1, 0x7e, 0x1f, 0x55, 0xb4, 0x7f, 0x46, 0x15, 1205 0xed, 0xfb, 0x4f, 0x6e, 0xfb, 0xf3, 0xc5, 0x26, 0xff, 0xf3, 0x5d, 0xea, 0x50, 0x17, 0x5b, 0x3c, 1206 0xfb, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x19, 0x17, 0x87, 0x57, 0x00, 0x11, 0x00, 0x00, 1207 } 1208 1209 func (m *CreateTaskRequest) Marshal() (dAtA []byte, err error) { 1210 size := m.Size() 1211 dAtA = make([]byte, size) 1212 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1213 if err != nil { 1214 return nil, err 1215 } 1216 return dAtA[:n], nil 1217 } 1218 1219 func (m *CreateTaskRequest) MarshalTo(dAtA []byte) (int, error) { 1220 size := m.Size() 1221 return m.MarshalToSizedBuffer(dAtA[:size]) 1222 } 1223 1224 func (m *CreateTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1225 i := len(dAtA) 1226 _ = i 1227 var l int 1228 _ = l 1229 if m.XXX_unrecognized != nil { 1230 i -= len(m.XXX_unrecognized) 1231 copy(dAtA[i:], m.XXX_unrecognized) 1232 } 1233 if m.Options != nil { 1234 { 1235 size, err := m.Options.MarshalToSizedBuffer(dAtA[:i]) 1236 if err != nil { 1237 return 0, err 1238 } 1239 i -= size 1240 i = encodeVarintShim(dAtA, i, uint64(size)) 1241 } 1242 i-- 1243 dAtA[i] = 0x52 1244 } 1245 if len(m.ParentCheckpoint) > 0 { 1246 i -= len(m.ParentCheckpoint) 1247 copy(dAtA[i:], m.ParentCheckpoint) 1248 i = encodeVarintShim(dAtA, i, uint64(len(m.ParentCheckpoint))) 1249 i-- 1250 dAtA[i] = 0x4a 1251 } 1252 if len(m.Checkpoint) > 0 { 1253 i -= len(m.Checkpoint) 1254 copy(dAtA[i:], m.Checkpoint) 1255 i = encodeVarintShim(dAtA, i, uint64(len(m.Checkpoint))) 1256 i-- 1257 dAtA[i] = 0x42 1258 } 1259 if len(m.Stderr) > 0 { 1260 i -= len(m.Stderr) 1261 copy(dAtA[i:], m.Stderr) 1262 i = encodeVarintShim(dAtA, i, uint64(len(m.Stderr))) 1263 i-- 1264 dAtA[i] = 0x3a 1265 } 1266 if len(m.Stdout) > 0 { 1267 i -= len(m.Stdout) 1268 copy(dAtA[i:], m.Stdout) 1269 i = encodeVarintShim(dAtA, i, uint64(len(m.Stdout))) 1270 i-- 1271 dAtA[i] = 0x32 1272 } 1273 if len(m.Stdin) > 0 { 1274 i -= len(m.Stdin) 1275 copy(dAtA[i:], m.Stdin) 1276 i = encodeVarintShim(dAtA, i, uint64(len(m.Stdin))) 1277 i-- 1278 dAtA[i] = 0x2a 1279 } 1280 if m.Terminal { 1281 i-- 1282 if m.Terminal { 1283 dAtA[i] = 1 1284 } else { 1285 dAtA[i] = 0 1286 } 1287 i-- 1288 dAtA[i] = 0x20 1289 } 1290 if len(m.Rootfs) > 0 { 1291 for iNdEx := len(m.Rootfs) - 1; iNdEx >= 0; iNdEx-- { 1292 { 1293 size, err := m.Rootfs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1294 if err != nil { 1295 return 0, err 1296 } 1297 i -= size 1298 i = encodeVarintShim(dAtA, i, uint64(size)) 1299 } 1300 i-- 1301 dAtA[i] = 0x1a 1302 } 1303 } 1304 if len(m.Bundle) > 0 { 1305 i -= len(m.Bundle) 1306 copy(dAtA[i:], m.Bundle) 1307 i = encodeVarintShim(dAtA, i, uint64(len(m.Bundle))) 1308 i-- 1309 dAtA[i] = 0x12 1310 } 1311 if len(m.ID) > 0 { 1312 i -= len(m.ID) 1313 copy(dAtA[i:], m.ID) 1314 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 1315 i-- 1316 dAtA[i] = 0xa 1317 } 1318 return len(dAtA) - i, nil 1319 } 1320 1321 func (m *CreateTaskResponse) Marshal() (dAtA []byte, err error) { 1322 size := m.Size() 1323 dAtA = make([]byte, size) 1324 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1325 if err != nil { 1326 return nil, err 1327 } 1328 return dAtA[:n], nil 1329 } 1330 1331 func (m *CreateTaskResponse) MarshalTo(dAtA []byte) (int, error) { 1332 size := m.Size() 1333 return m.MarshalToSizedBuffer(dAtA[:size]) 1334 } 1335 1336 func (m *CreateTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1337 i := len(dAtA) 1338 _ = i 1339 var l int 1340 _ = l 1341 if m.XXX_unrecognized != nil { 1342 i -= len(m.XXX_unrecognized) 1343 copy(dAtA[i:], m.XXX_unrecognized) 1344 } 1345 if m.Pid != 0 { 1346 i = encodeVarintShim(dAtA, i, uint64(m.Pid)) 1347 i-- 1348 dAtA[i] = 0x8 1349 } 1350 return len(dAtA) - i, nil 1351 } 1352 1353 func (m *DeleteRequest) Marshal() (dAtA []byte, err error) { 1354 size := m.Size() 1355 dAtA = make([]byte, size) 1356 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1357 if err != nil { 1358 return nil, err 1359 } 1360 return dAtA[:n], nil 1361 } 1362 1363 func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) { 1364 size := m.Size() 1365 return m.MarshalToSizedBuffer(dAtA[:size]) 1366 } 1367 1368 func (m *DeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1369 i := len(dAtA) 1370 _ = i 1371 var l int 1372 _ = l 1373 if m.XXX_unrecognized != nil { 1374 i -= len(m.XXX_unrecognized) 1375 copy(dAtA[i:], m.XXX_unrecognized) 1376 } 1377 if len(m.ExecID) > 0 { 1378 i -= len(m.ExecID) 1379 copy(dAtA[i:], m.ExecID) 1380 i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID))) 1381 i-- 1382 dAtA[i] = 0x12 1383 } 1384 if len(m.ID) > 0 { 1385 i -= len(m.ID) 1386 copy(dAtA[i:], m.ID) 1387 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 1388 i-- 1389 dAtA[i] = 0xa 1390 } 1391 return len(dAtA) - i, nil 1392 } 1393 1394 func (m *DeleteResponse) Marshal() (dAtA []byte, err error) { 1395 size := m.Size() 1396 dAtA = make([]byte, size) 1397 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1398 if err != nil { 1399 return nil, err 1400 } 1401 return dAtA[:n], nil 1402 } 1403 1404 func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error) { 1405 size := m.Size() 1406 return m.MarshalToSizedBuffer(dAtA[:size]) 1407 } 1408 1409 func (m *DeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1410 i := len(dAtA) 1411 _ = i 1412 var l int 1413 _ = l 1414 if m.XXX_unrecognized != nil { 1415 i -= len(m.XXX_unrecognized) 1416 copy(dAtA[i:], m.XXX_unrecognized) 1417 } 1418 n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt):]) 1419 if err2 != nil { 1420 return 0, err2 1421 } 1422 i -= n2 1423 i = encodeVarintShim(dAtA, i, uint64(n2)) 1424 i-- 1425 dAtA[i] = 0x1a 1426 if m.ExitStatus != 0 { 1427 i = encodeVarintShim(dAtA, i, uint64(m.ExitStatus)) 1428 i-- 1429 dAtA[i] = 0x10 1430 } 1431 if m.Pid != 0 { 1432 i = encodeVarintShim(dAtA, i, uint64(m.Pid)) 1433 i-- 1434 dAtA[i] = 0x8 1435 } 1436 return len(dAtA) - i, nil 1437 } 1438 1439 func (m *ExecProcessRequest) Marshal() (dAtA []byte, err error) { 1440 size := m.Size() 1441 dAtA = make([]byte, size) 1442 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1443 if err != nil { 1444 return nil, err 1445 } 1446 return dAtA[:n], nil 1447 } 1448 1449 func (m *ExecProcessRequest) MarshalTo(dAtA []byte) (int, error) { 1450 size := m.Size() 1451 return m.MarshalToSizedBuffer(dAtA[:size]) 1452 } 1453 1454 func (m *ExecProcessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1455 i := len(dAtA) 1456 _ = i 1457 var l int 1458 _ = l 1459 if m.XXX_unrecognized != nil { 1460 i -= len(m.XXX_unrecognized) 1461 copy(dAtA[i:], m.XXX_unrecognized) 1462 } 1463 if m.Spec != nil { 1464 { 1465 size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) 1466 if err != nil { 1467 return 0, err 1468 } 1469 i -= size 1470 i = encodeVarintShim(dAtA, i, uint64(size)) 1471 } 1472 i-- 1473 dAtA[i] = 0x3a 1474 } 1475 if len(m.Stderr) > 0 { 1476 i -= len(m.Stderr) 1477 copy(dAtA[i:], m.Stderr) 1478 i = encodeVarintShim(dAtA, i, uint64(len(m.Stderr))) 1479 i-- 1480 dAtA[i] = 0x32 1481 } 1482 if len(m.Stdout) > 0 { 1483 i -= len(m.Stdout) 1484 copy(dAtA[i:], m.Stdout) 1485 i = encodeVarintShim(dAtA, i, uint64(len(m.Stdout))) 1486 i-- 1487 dAtA[i] = 0x2a 1488 } 1489 if len(m.Stdin) > 0 { 1490 i -= len(m.Stdin) 1491 copy(dAtA[i:], m.Stdin) 1492 i = encodeVarintShim(dAtA, i, uint64(len(m.Stdin))) 1493 i-- 1494 dAtA[i] = 0x22 1495 } 1496 if m.Terminal { 1497 i-- 1498 if m.Terminal { 1499 dAtA[i] = 1 1500 } else { 1501 dAtA[i] = 0 1502 } 1503 i-- 1504 dAtA[i] = 0x18 1505 } 1506 if len(m.ExecID) > 0 { 1507 i -= len(m.ExecID) 1508 copy(dAtA[i:], m.ExecID) 1509 i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID))) 1510 i-- 1511 dAtA[i] = 0x12 1512 } 1513 if len(m.ID) > 0 { 1514 i -= len(m.ID) 1515 copy(dAtA[i:], m.ID) 1516 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 1517 i-- 1518 dAtA[i] = 0xa 1519 } 1520 return len(dAtA) - i, nil 1521 } 1522 1523 func (m *ExecProcessResponse) Marshal() (dAtA []byte, err error) { 1524 size := m.Size() 1525 dAtA = make([]byte, size) 1526 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1527 if err != nil { 1528 return nil, err 1529 } 1530 return dAtA[:n], nil 1531 } 1532 1533 func (m *ExecProcessResponse) MarshalTo(dAtA []byte) (int, error) { 1534 size := m.Size() 1535 return m.MarshalToSizedBuffer(dAtA[:size]) 1536 } 1537 1538 func (m *ExecProcessResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1539 i := len(dAtA) 1540 _ = i 1541 var l int 1542 _ = l 1543 if m.XXX_unrecognized != nil { 1544 i -= len(m.XXX_unrecognized) 1545 copy(dAtA[i:], m.XXX_unrecognized) 1546 } 1547 return len(dAtA) - i, nil 1548 } 1549 1550 func (m *ResizePtyRequest) Marshal() (dAtA []byte, err error) { 1551 size := m.Size() 1552 dAtA = make([]byte, size) 1553 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1554 if err != nil { 1555 return nil, err 1556 } 1557 return dAtA[:n], nil 1558 } 1559 1560 func (m *ResizePtyRequest) MarshalTo(dAtA []byte) (int, error) { 1561 size := m.Size() 1562 return m.MarshalToSizedBuffer(dAtA[:size]) 1563 } 1564 1565 func (m *ResizePtyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1566 i := len(dAtA) 1567 _ = i 1568 var l int 1569 _ = l 1570 if m.XXX_unrecognized != nil { 1571 i -= len(m.XXX_unrecognized) 1572 copy(dAtA[i:], m.XXX_unrecognized) 1573 } 1574 if m.Height != 0 { 1575 i = encodeVarintShim(dAtA, i, uint64(m.Height)) 1576 i-- 1577 dAtA[i] = 0x20 1578 } 1579 if m.Width != 0 { 1580 i = encodeVarintShim(dAtA, i, uint64(m.Width)) 1581 i-- 1582 dAtA[i] = 0x18 1583 } 1584 if len(m.ExecID) > 0 { 1585 i -= len(m.ExecID) 1586 copy(dAtA[i:], m.ExecID) 1587 i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID))) 1588 i-- 1589 dAtA[i] = 0x12 1590 } 1591 if len(m.ID) > 0 { 1592 i -= len(m.ID) 1593 copy(dAtA[i:], m.ID) 1594 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 1595 i-- 1596 dAtA[i] = 0xa 1597 } 1598 return len(dAtA) - i, nil 1599 } 1600 1601 func (m *StateRequest) Marshal() (dAtA []byte, err error) { 1602 size := m.Size() 1603 dAtA = make([]byte, size) 1604 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1605 if err != nil { 1606 return nil, err 1607 } 1608 return dAtA[:n], nil 1609 } 1610 1611 func (m *StateRequest) MarshalTo(dAtA []byte) (int, error) { 1612 size := m.Size() 1613 return m.MarshalToSizedBuffer(dAtA[:size]) 1614 } 1615 1616 func (m *StateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1617 i := len(dAtA) 1618 _ = i 1619 var l int 1620 _ = l 1621 if m.XXX_unrecognized != nil { 1622 i -= len(m.XXX_unrecognized) 1623 copy(dAtA[i:], m.XXX_unrecognized) 1624 } 1625 if len(m.ExecID) > 0 { 1626 i -= len(m.ExecID) 1627 copy(dAtA[i:], m.ExecID) 1628 i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID))) 1629 i-- 1630 dAtA[i] = 0x12 1631 } 1632 if len(m.ID) > 0 { 1633 i -= len(m.ID) 1634 copy(dAtA[i:], m.ID) 1635 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 1636 i-- 1637 dAtA[i] = 0xa 1638 } 1639 return len(dAtA) - i, nil 1640 } 1641 1642 func (m *StateResponse) Marshal() (dAtA []byte, err error) { 1643 size := m.Size() 1644 dAtA = make([]byte, size) 1645 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1646 if err != nil { 1647 return nil, err 1648 } 1649 return dAtA[:n], nil 1650 } 1651 1652 func (m *StateResponse) MarshalTo(dAtA []byte) (int, error) { 1653 size := m.Size() 1654 return m.MarshalToSizedBuffer(dAtA[:size]) 1655 } 1656 1657 func (m *StateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1658 i := len(dAtA) 1659 _ = i 1660 var l int 1661 _ = l 1662 if m.XXX_unrecognized != nil { 1663 i -= len(m.XXX_unrecognized) 1664 copy(dAtA[i:], m.XXX_unrecognized) 1665 } 1666 if len(m.ExecID) > 0 { 1667 i -= len(m.ExecID) 1668 copy(dAtA[i:], m.ExecID) 1669 i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID))) 1670 i-- 1671 dAtA[i] = 0x5a 1672 } 1673 n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt):]) 1674 if err4 != nil { 1675 return 0, err4 1676 } 1677 i -= n4 1678 i = encodeVarintShim(dAtA, i, uint64(n4)) 1679 i-- 1680 dAtA[i] = 0x52 1681 if m.ExitStatus != 0 { 1682 i = encodeVarintShim(dAtA, i, uint64(m.ExitStatus)) 1683 i-- 1684 dAtA[i] = 0x48 1685 } 1686 if m.Terminal { 1687 i-- 1688 if m.Terminal { 1689 dAtA[i] = 1 1690 } else { 1691 dAtA[i] = 0 1692 } 1693 i-- 1694 dAtA[i] = 0x40 1695 } 1696 if len(m.Stderr) > 0 { 1697 i -= len(m.Stderr) 1698 copy(dAtA[i:], m.Stderr) 1699 i = encodeVarintShim(dAtA, i, uint64(len(m.Stderr))) 1700 i-- 1701 dAtA[i] = 0x3a 1702 } 1703 if len(m.Stdout) > 0 { 1704 i -= len(m.Stdout) 1705 copy(dAtA[i:], m.Stdout) 1706 i = encodeVarintShim(dAtA, i, uint64(len(m.Stdout))) 1707 i-- 1708 dAtA[i] = 0x32 1709 } 1710 if len(m.Stdin) > 0 { 1711 i -= len(m.Stdin) 1712 copy(dAtA[i:], m.Stdin) 1713 i = encodeVarintShim(dAtA, i, uint64(len(m.Stdin))) 1714 i-- 1715 dAtA[i] = 0x2a 1716 } 1717 if m.Status != 0 { 1718 i = encodeVarintShim(dAtA, i, uint64(m.Status)) 1719 i-- 1720 dAtA[i] = 0x20 1721 } 1722 if m.Pid != 0 { 1723 i = encodeVarintShim(dAtA, i, uint64(m.Pid)) 1724 i-- 1725 dAtA[i] = 0x18 1726 } 1727 if len(m.Bundle) > 0 { 1728 i -= len(m.Bundle) 1729 copy(dAtA[i:], m.Bundle) 1730 i = encodeVarintShim(dAtA, i, uint64(len(m.Bundle))) 1731 i-- 1732 dAtA[i] = 0x12 1733 } 1734 if len(m.ID) > 0 { 1735 i -= len(m.ID) 1736 copy(dAtA[i:], m.ID) 1737 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 1738 i-- 1739 dAtA[i] = 0xa 1740 } 1741 return len(dAtA) - i, nil 1742 } 1743 1744 func (m *KillRequest) Marshal() (dAtA []byte, err error) { 1745 size := m.Size() 1746 dAtA = make([]byte, size) 1747 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1748 if err != nil { 1749 return nil, err 1750 } 1751 return dAtA[:n], nil 1752 } 1753 1754 func (m *KillRequest) MarshalTo(dAtA []byte) (int, error) { 1755 size := m.Size() 1756 return m.MarshalToSizedBuffer(dAtA[:size]) 1757 } 1758 1759 func (m *KillRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1760 i := len(dAtA) 1761 _ = i 1762 var l int 1763 _ = l 1764 if m.XXX_unrecognized != nil { 1765 i -= len(m.XXX_unrecognized) 1766 copy(dAtA[i:], m.XXX_unrecognized) 1767 } 1768 if m.All { 1769 i-- 1770 if m.All { 1771 dAtA[i] = 1 1772 } else { 1773 dAtA[i] = 0 1774 } 1775 i-- 1776 dAtA[i] = 0x20 1777 } 1778 if m.Signal != 0 { 1779 i = encodeVarintShim(dAtA, i, uint64(m.Signal)) 1780 i-- 1781 dAtA[i] = 0x18 1782 } 1783 if len(m.ExecID) > 0 { 1784 i -= len(m.ExecID) 1785 copy(dAtA[i:], m.ExecID) 1786 i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID))) 1787 i-- 1788 dAtA[i] = 0x12 1789 } 1790 if len(m.ID) > 0 { 1791 i -= len(m.ID) 1792 copy(dAtA[i:], m.ID) 1793 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 1794 i-- 1795 dAtA[i] = 0xa 1796 } 1797 return len(dAtA) - i, nil 1798 } 1799 1800 func (m *CloseIORequest) Marshal() (dAtA []byte, err error) { 1801 size := m.Size() 1802 dAtA = make([]byte, size) 1803 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1804 if err != nil { 1805 return nil, err 1806 } 1807 return dAtA[:n], nil 1808 } 1809 1810 func (m *CloseIORequest) MarshalTo(dAtA []byte) (int, error) { 1811 size := m.Size() 1812 return m.MarshalToSizedBuffer(dAtA[:size]) 1813 } 1814 1815 func (m *CloseIORequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1816 i := len(dAtA) 1817 _ = i 1818 var l int 1819 _ = l 1820 if m.XXX_unrecognized != nil { 1821 i -= len(m.XXX_unrecognized) 1822 copy(dAtA[i:], m.XXX_unrecognized) 1823 } 1824 if m.Stdin { 1825 i-- 1826 if m.Stdin { 1827 dAtA[i] = 1 1828 } else { 1829 dAtA[i] = 0 1830 } 1831 i-- 1832 dAtA[i] = 0x18 1833 } 1834 if len(m.ExecID) > 0 { 1835 i -= len(m.ExecID) 1836 copy(dAtA[i:], m.ExecID) 1837 i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID))) 1838 i-- 1839 dAtA[i] = 0x12 1840 } 1841 if len(m.ID) > 0 { 1842 i -= len(m.ID) 1843 copy(dAtA[i:], m.ID) 1844 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 1845 i-- 1846 dAtA[i] = 0xa 1847 } 1848 return len(dAtA) - i, nil 1849 } 1850 1851 func (m *PidsRequest) Marshal() (dAtA []byte, err error) { 1852 size := m.Size() 1853 dAtA = make([]byte, size) 1854 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1855 if err != nil { 1856 return nil, err 1857 } 1858 return dAtA[:n], nil 1859 } 1860 1861 func (m *PidsRequest) MarshalTo(dAtA []byte) (int, error) { 1862 size := m.Size() 1863 return m.MarshalToSizedBuffer(dAtA[:size]) 1864 } 1865 1866 func (m *PidsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1867 i := len(dAtA) 1868 _ = i 1869 var l int 1870 _ = l 1871 if m.XXX_unrecognized != nil { 1872 i -= len(m.XXX_unrecognized) 1873 copy(dAtA[i:], m.XXX_unrecognized) 1874 } 1875 if len(m.ID) > 0 { 1876 i -= len(m.ID) 1877 copy(dAtA[i:], m.ID) 1878 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 1879 i-- 1880 dAtA[i] = 0xa 1881 } 1882 return len(dAtA) - i, nil 1883 } 1884 1885 func (m *PidsResponse) Marshal() (dAtA []byte, err error) { 1886 size := m.Size() 1887 dAtA = make([]byte, size) 1888 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1889 if err != nil { 1890 return nil, err 1891 } 1892 return dAtA[:n], nil 1893 } 1894 1895 func (m *PidsResponse) MarshalTo(dAtA []byte) (int, error) { 1896 size := m.Size() 1897 return m.MarshalToSizedBuffer(dAtA[:size]) 1898 } 1899 1900 func (m *PidsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1901 i := len(dAtA) 1902 _ = i 1903 var l int 1904 _ = l 1905 if m.XXX_unrecognized != nil { 1906 i -= len(m.XXX_unrecognized) 1907 copy(dAtA[i:], m.XXX_unrecognized) 1908 } 1909 if len(m.Processes) > 0 { 1910 for iNdEx := len(m.Processes) - 1; iNdEx >= 0; iNdEx-- { 1911 { 1912 size, err := m.Processes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1913 if err != nil { 1914 return 0, err 1915 } 1916 i -= size 1917 i = encodeVarintShim(dAtA, i, uint64(size)) 1918 } 1919 i-- 1920 dAtA[i] = 0xa 1921 } 1922 } 1923 return len(dAtA) - i, nil 1924 } 1925 1926 func (m *CheckpointTaskRequest) Marshal() (dAtA []byte, err error) { 1927 size := m.Size() 1928 dAtA = make([]byte, size) 1929 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1930 if err != nil { 1931 return nil, err 1932 } 1933 return dAtA[:n], nil 1934 } 1935 1936 func (m *CheckpointTaskRequest) MarshalTo(dAtA []byte) (int, error) { 1937 size := m.Size() 1938 return m.MarshalToSizedBuffer(dAtA[:size]) 1939 } 1940 1941 func (m *CheckpointTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1942 i := len(dAtA) 1943 _ = i 1944 var l int 1945 _ = l 1946 if m.XXX_unrecognized != nil { 1947 i -= len(m.XXX_unrecognized) 1948 copy(dAtA[i:], m.XXX_unrecognized) 1949 } 1950 if m.Options != nil { 1951 { 1952 size, err := m.Options.MarshalToSizedBuffer(dAtA[:i]) 1953 if err != nil { 1954 return 0, err 1955 } 1956 i -= size 1957 i = encodeVarintShim(dAtA, i, uint64(size)) 1958 } 1959 i-- 1960 dAtA[i] = 0x1a 1961 } 1962 if len(m.Path) > 0 { 1963 i -= len(m.Path) 1964 copy(dAtA[i:], m.Path) 1965 i = encodeVarintShim(dAtA, i, uint64(len(m.Path))) 1966 i-- 1967 dAtA[i] = 0x12 1968 } 1969 if len(m.ID) > 0 { 1970 i -= len(m.ID) 1971 copy(dAtA[i:], m.ID) 1972 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 1973 i-- 1974 dAtA[i] = 0xa 1975 } 1976 return len(dAtA) - i, nil 1977 } 1978 1979 func (m *UpdateTaskRequest) Marshal() (dAtA []byte, err error) { 1980 size := m.Size() 1981 dAtA = make([]byte, size) 1982 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1983 if err != nil { 1984 return nil, err 1985 } 1986 return dAtA[:n], nil 1987 } 1988 1989 func (m *UpdateTaskRequest) MarshalTo(dAtA []byte) (int, error) { 1990 size := m.Size() 1991 return m.MarshalToSizedBuffer(dAtA[:size]) 1992 } 1993 1994 func (m *UpdateTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1995 i := len(dAtA) 1996 _ = i 1997 var l int 1998 _ = l 1999 if m.XXX_unrecognized != nil { 2000 i -= len(m.XXX_unrecognized) 2001 copy(dAtA[i:], m.XXX_unrecognized) 2002 } 2003 if m.Resources != nil { 2004 { 2005 size, err := m.Resources.MarshalToSizedBuffer(dAtA[:i]) 2006 if err != nil { 2007 return 0, err 2008 } 2009 i -= size 2010 i = encodeVarintShim(dAtA, i, uint64(size)) 2011 } 2012 i-- 2013 dAtA[i] = 0x12 2014 } 2015 if len(m.ID) > 0 { 2016 i -= len(m.ID) 2017 copy(dAtA[i:], m.ID) 2018 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 2019 i-- 2020 dAtA[i] = 0xa 2021 } 2022 return len(dAtA) - i, nil 2023 } 2024 2025 func (m *StartRequest) Marshal() (dAtA []byte, err error) { 2026 size := m.Size() 2027 dAtA = make([]byte, size) 2028 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2029 if err != nil { 2030 return nil, err 2031 } 2032 return dAtA[:n], nil 2033 } 2034 2035 func (m *StartRequest) MarshalTo(dAtA []byte) (int, error) { 2036 size := m.Size() 2037 return m.MarshalToSizedBuffer(dAtA[:size]) 2038 } 2039 2040 func (m *StartRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2041 i := len(dAtA) 2042 _ = i 2043 var l int 2044 _ = l 2045 if m.XXX_unrecognized != nil { 2046 i -= len(m.XXX_unrecognized) 2047 copy(dAtA[i:], m.XXX_unrecognized) 2048 } 2049 if len(m.ExecID) > 0 { 2050 i -= len(m.ExecID) 2051 copy(dAtA[i:], m.ExecID) 2052 i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID))) 2053 i-- 2054 dAtA[i] = 0x12 2055 } 2056 if len(m.ID) > 0 { 2057 i -= len(m.ID) 2058 copy(dAtA[i:], m.ID) 2059 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 2060 i-- 2061 dAtA[i] = 0xa 2062 } 2063 return len(dAtA) - i, nil 2064 } 2065 2066 func (m *StartResponse) Marshal() (dAtA []byte, err error) { 2067 size := m.Size() 2068 dAtA = make([]byte, size) 2069 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2070 if err != nil { 2071 return nil, err 2072 } 2073 return dAtA[:n], nil 2074 } 2075 2076 func (m *StartResponse) MarshalTo(dAtA []byte) (int, error) { 2077 size := m.Size() 2078 return m.MarshalToSizedBuffer(dAtA[:size]) 2079 } 2080 2081 func (m *StartResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2082 i := len(dAtA) 2083 _ = i 2084 var l int 2085 _ = l 2086 if m.XXX_unrecognized != nil { 2087 i -= len(m.XXX_unrecognized) 2088 copy(dAtA[i:], m.XXX_unrecognized) 2089 } 2090 if m.Pid != 0 { 2091 i = encodeVarintShim(dAtA, i, uint64(m.Pid)) 2092 i-- 2093 dAtA[i] = 0x8 2094 } 2095 return len(dAtA) - i, nil 2096 } 2097 2098 func (m *WaitRequest) Marshal() (dAtA []byte, err error) { 2099 size := m.Size() 2100 dAtA = make([]byte, size) 2101 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2102 if err != nil { 2103 return nil, err 2104 } 2105 return dAtA[:n], nil 2106 } 2107 2108 func (m *WaitRequest) MarshalTo(dAtA []byte) (int, error) { 2109 size := m.Size() 2110 return m.MarshalToSizedBuffer(dAtA[:size]) 2111 } 2112 2113 func (m *WaitRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2114 i := len(dAtA) 2115 _ = i 2116 var l int 2117 _ = l 2118 if m.XXX_unrecognized != nil { 2119 i -= len(m.XXX_unrecognized) 2120 copy(dAtA[i:], m.XXX_unrecognized) 2121 } 2122 if len(m.ExecID) > 0 { 2123 i -= len(m.ExecID) 2124 copy(dAtA[i:], m.ExecID) 2125 i = encodeVarintShim(dAtA, i, uint64(len(m.ExecID))) 2126 i-- 2127 dAtA[i] = 0x12 2128 } 2129 if len(m.ID) > 0 { 2130 i -= len(m.ID) 2131 copy(dAtA[i:], m.ID) 2132 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 2133 i-- 2134 dAtA[i] = 0xa 2135 } 2136 return len(dAtA) - i, nil 2137 } 2138 2139 func (m *WaitResponse) Marshal() (dAtA []byte, err error) { 2140 size := m.Size() 2141 dAtA = make([]byte, size) 2142 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2143 if err != nil { 2144 return nil, err 2145 } 2146 return dAtA[:n], nil 2147 } 2148 2149 func (m *WaitResponse) MarshalTo(dAtA []byte) (int, error) { 2150 size := m.Size() 2151 return m.MarshalToSizedBuffer(dAtA[:size]) 2152 } 2153 2154 func (m *WaitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2155 i := len(dAtA) 2156 _ = i 2157 var l int 2158 _ = l 2159 if m.XXX_unrecognized != nil { 2160 i -= len(m.XXX_unrecognized) 2161 copy(dAtA[i:], m.XXX_unrecognized) 2162 } 2163 n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt):]) 2164 if err7 != nil { 2165 return 0, err7 2166 } 2167 i -= n7 2168 i = encodeVarintShim(dAtA, i, uint64(n7)) 2169 i-- 2170 dAtA[i] = 0x12 2171 if m.ExitStatus != 0 { 2172 i = encodeVarintShim(dAtA, i, uint64(m.ExitStatus)) 2173 i-- 2174 dAtA[i] = 0x8 2175 } 2176 return len(dAtA) - i, nil 2177 } 2178 2179 func (m *StatsRequest) Marshal() (dAtA []byte, err error) { 2180 size := m.Size() 2181 dAtA = make([]byte, size) 2182 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2183 if err != nil { 2184 return nil, err 2185 } 2186 return dAtA[:n], nil 2187 } 2188 2189 func (m *StatsRequest) MarshalTo(dAtA []byte) (int, error) { 2190 size := m.Size() 2191 return m.MarshalToSizedBuffer(dAtA[:size]) 2192 } 2193 2194 func (m *StatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2195 i := len(dAtA) 2196 _ = i 2197 var l int 2198 _ = l 2199 if m.XXX_unrecognized != nil { 2200 i -= len(m.XXX_unrecognized) 2201 copy(dAtA[i:], m.XXX_unrecognized) 2202 } 2203 if len(m.ID) > 0 { 2204 i -= len(m.ID) 2205 copy(dAtA[i:], m.ID) 2206 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 2207 i-- 2208 dAtA[i] = 0xa 2209 } 2210 return len(dAtA) - i, nil 2211 } 2212 2213 func (m *StatsResponse) Marshal() (dAtA []byte, err error) { 2214 size := m.Size() 2215 dAtA = make([]byte, size) 2216 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2217 if err != nil { 2218 return nil, err 2219 } 2220 return dAtA[:n], nil 2221 } 2222 2223 func (m *StatsResponse) MarshalTo(dAtA []byte) (int, error) { 2224 size := m.Size() 2225 return m.MarshalToSizedBuffer(dAtA[:size]) 2226 } 2227 2228 func (m *StatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2229 i := len(dAtA) 2230 _ = i 2231 var l int 2232 _ = l 2233 if m.XXX_unrecognized != nil { 2234 i -= len(m.XXX_unrecognized) 2235 copy(dAtA[i:], m.XXX_unrecognized) 2236 } 2237 if m.Stats != nil { 2238 { 2239 size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i]) 2240 if err != nil { 2241 return 0, err 2242 } 2243 i -= size 2244 i = encodeVarintShim(dAtA, i, uint64(size)) 2245 } 2246 i-- 2247 dAtA[i] = 0xa 2248 } 2249 return len(dAtA) - i, nil 2250 } 2251 2252 func (m *ConnectRequest) Marshal() (dAtA []byte, err error) { 2253 size := m.Size() 2254 dAtA = make([]byte, size) 2255 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2256 if err != nil { 2257 return nil, err 2258 } 2259 return dAtA[:n], nil 2260 } 2261 2262 func (m *ConnectRequest) MarshalTo(dAtA []byte) (int, error) { 2263 size := m.Size() 2264 return m.MarshalToSizedBuffer(dAtA[:size]) 2265 } 2266 2267 func (m *ConnectRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2268 i := len(dAtA) 2269 _ = i 2270 var l int 2271 _ = l 2272 if m.XXX_unrecognized != nil { 2273 i -= len(m.XXX_unrecognized) 2274 copy(dAtA[i:], m.XXX_unrecognized) 2275 } 2276 if len(m.ID) > 0 { 2277 i -= len(m.ID) 2278 copy(dAtA[i:], m.ID) 2279 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 2280 i-- 2281 dAtA[i] = 0xa 2282 } 2283 return len(dAtA) - i, nil 2284 } 2285 2286 func (m *ConnectResponse) Marshal() (dAtA []byte, err error) { 2287 size := m.Size() 2288 dAtA = make([]byte, size) 2289 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2290 if err != nil { 2291 return nil, err 2292 } 2293 return dAtA[:n], nil 2294 } 2295 2296 func (m *ConnectResponse) MarshalTo(dAtA []byte) (int, error) { 2297 size := m.Size() 2298 return m.MarshalToSizedBuffer(dAtA[:size]) 2299 } 2300 2301 func (m *ConnectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2302 i := len(dAtA) 2303 _ = i 2304 var l int 2305 _ = l 2306 if m.XXX_unrecognized != nil { 2307 i -= len(m.XXX_unrecognized) 2308 copy(dAtA[i:], m.XXX_unrecognized) 2309 } 2310 if len(m.Version) > 0 { 2311 i -= len(m.Version) 2312 copy(dAtA[i:], m.Version) 2313 i = encodeVarintShim(dAtA, i, uint64(len(m.Version))) 2314 i-- 2315 dAtA[i] = 0x1a 2316 } 2317 if m.TaskPid != 0 { 2318 i = encodeVarintShim(dAtA, i, uint64(m.TaskPid)) 2319 i-- 2320 dAtA[i] = 0x10 2321 } 2322 if m.ShimPid != 0 { 2323 i = encodeVarintShim(dAtA, i, uint64(m.ShimPid)) 2324 i-- 2325 dAtA[i] = 0x8 2326 } 2327 return len(dAtA) - i, nil 2328 } 2329 2330 func (m *ShutdownRequest) Marshal() (dAtA []byte, err error) { 2331 size := m.Size() 2332 dAtA = make([]byte, size) 2333 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2334 if err != nil { 2335 return nil, err 2336 } 2337 return dAtA[:n], nil 2338 } 2339 2340 func (m *ShutdownRequest) MarshalTo(dAtA []byte) (int, error) { 2341 size := m.Size() 2342 return m.MarshalToSizedBuffer(dAtA[:size]) 2343 } 2344 2345 func (m *ShutdownRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2346 i := len(dAtA) 2347 _ = i 2348 var l int 2349 _ = l 2350 if m.XXX_unrecognized != nil { 2351 i -= len(m.XXX_unrecognized) 2352 copy(dAtA[i:], m.XXX_unrecognized) 2353 } 2354 if m.Now { 2355 i-- 2356 if m.Now { 2357 dAtA[i] = 1 2358 } else { 2359 dAtA[i] = 0 2360 } 2361 i-- 2362 dAtA[i] = 0x10 2363 } 2364 if len(m.ID) > 0 { 2365 i -= len(m.ID) 2366 copy(dAtA[i:], m.ID) 2367 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 2368 i-- 2369 dAtA[i] = 0xa 2370 } 2371 return len(dAtA) - i, nil 2372 } 2373 2374 func (m *PauseRequest) Marshal() (dAtA []byte, err error) { 2375 size := m.Size() 2376 dAtA = make([]byte, size) 2377 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2378 if err != nil { 2379 return nil, err 2380 } 2381 return dAtA[:n], nil 2382 } 2383 2384 func (m *PauseRequest) MarshalTo(dAtA []byte) (int, error) { 2385 size := m.Size() 2386 return m.MarshalToSizedBuffer(dAtA[:size]) 2387 } 2388 2389 func (m *PauseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2390 i := len(dAtA) 2391 _ = i 2392 var l int 2393 _ = l 2394 if m.XXX_unrecognized != nil { 2395 i -= len(m.XXX_unrecognized) 2396 copy(dAtA[i:], m.XXX_unrecognized) 2397 } 2398 if len(m.ID) > 0 { 2399 i -= len(m.ID) 2400 copy(dAtA[i:], m.ID) 2401 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 2402 i-- 2403 dAtA[i] = 0xa 2404 } 2405 return len(dAtA) - i, nil 2406 } 2407 2408 func (m *ResumeRequest) Marshal() (dAtA []byte, err error) { 2409 size := m.Size() 2410 dAtA = make([]byte, size) 2411 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2412 if err != nil { 2413 return nil, err 2414 } 2415 return dAtA[:n], nil 2416 } 2417 2418 func (m *ResumeRequest) MarshalTo(dAtA []byte) (int, error) { 2419 size := m.Size() 2420 return m.MarshalToSizedBuffer(dAtA[:size]) 2421 } 2422 2423 func (m *ResumeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2424 i := len(dAtA) 2425 _ = i 2426 var l int 2427 _ = l 2428 if m.XXX_unrecognized != nil { 2429 i -= len(m.XXX_unrecognized) 2430 copy(dAtA[i:], m.XXX_unrecognized) 2431 } 2432 if len(m.ID) > 0 { 2433 i -= len(m.ID) 2434 copy(dAtA[i:], m.ID) 2435 i = encodeVarintShim(dAtA, i, uint64(len(m.ID))) 2436 i-- 2437 dAtA[i] = 0xa 2438 } 2439 return len(dAtA) - i, nil 2440 } 2441 2442 func encodeVarintShim(dAtA []byte, offset int, v uint64) int { 2443 offset -= sovShim(v) 2444 base := offset 2445 for v >= 1<<7 { 2446 dAtA[offset] = uint8(v&0x7f | 0x80) 2447 v >>= 7 2448 offset++ 2449 } 2450 dAtA[offset] = uint8(v) 2451 return base 2452 } 2453 func (m *CreateTaskRequest) Size() (n int) { 2454 if m == nil { 2455 return 0 2456 } 2457 var l int 2458 _ = l 2459 l = len(m.ID) 2460 if l > 0 { 2461 n += 1 + l + sovShim(uint64(l)) 2462 } 2463 l = len(m.Bundle) 2464 if l > 0 { 2465 n += 1 + l + sovShim(uint64(l)) 2466 } 2467 if len(m.Rootfs) > 0 { 2468 for _, e := range m.Rootfs { 2469 l = e.Size() 2470 n += 1 + l + sovShim(uint64(l)) 2471 } 2472 } 2473 if m.Terminal { 2474 n += 2 2475 } 2476 l = len(m.Stdin) 2477 if l > 0 { 2478 n += 1 + l + sovShim(uint64(l)) 2479 } 2480 l = len(m.Stdout) 2481 if l > 0 { 2482 n += 1 + l + sovShim(uint64(l)) 2483 } 2484 l = len(m.Stderr) 2485 if l > 0 { 2486 n += 1 + l + sovShim(uint64(l)) 2487 } 2488 l = len(m.Checkpoint) 2489 if l > 0 { 2490 n += 1 + l + sovShim(uint64(l)) 2491 } 2492 l = len(m.ParentCheckpoint) 2493 if l > 0 { 2494 n += 1 + l + sovShim(uint64(l)) 2495 } 2496 if m.Options != nil { 2497 l = m.Options.Size() 2498 n += 1 + l + sovShim(uint64(l)) 2499 } 2500 if m.XXX_unrecognized != nil { 2501 n += len(m.XXX_unrecognized) 2502 } 2503 return n 2504 } 2505 2506 func (m *CreateTaskResponse) Size() (n int) { 2507 if m == nil { 2508 return 0 2509 } 2510 var l int 2511 _ = l 2512 if m.Pid != 0 { 2513 n += 1 + sovShim(uint64(m.Pid)) 2514 } 2515 if m.XXX_unrecognized != nil { 2516 n += len(m.XXX_unrecognized) 2517 } 2518 return n 2519 } 2520 2521 func (m *DeleteRequest) Size() (n int) { 2522 if m == nil { 2523 return 0 2524 } 2525 var l int 2526 _ = l 2527 l = len(m.ID) 2528 if l > 0 { 2529 n += 1 + l + sovShim(uint64(l)) 2530 } 2531 l = len(m.ExecID) 2532 if l > 0 { 2533 n += 1 + l + sovShim(uint64(l)) 2534 } 2535 if m.XXX_unrecognized != nil { 2536 n += len(m.XXX_unrecognized) 2537 } 2538 return n 2539 } 2540 2541 func (m *DeleteResponse) Size() (n int) { 2542 if m == nil { 2543 return 0 2544 } 2545 var l int 2546 _ = l 2547 if m.Pid != 0 { 2548 n += 1 + sovShim(uint64(m.Pid)) 2549 } 2550 if m.ExitStatus != 0 { 2551 n += 1 + sovShim(uint64(m.ExitStatus)) 2552 } 2553 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt) 2554 n += 1 + l + sovShim(uint64(l)) 2555 if m.XXX_unrecognized != nil { 2556 n += len(m.XXX_unrecognized) 2557 } 2558 return n 2559 } 2560 2561 func (m *ExecProcessRequest) Size() (n int) { 2562 if m == nil { 2563 return 0 2564 } 2565 var l int 2566 _ = l 2567 l = len(m.ID) 2568 if l > 0 { 2569 n += 1 + l + sovShim(uint64(l)) 2570 } 2571 l = len(m.ExecID) 2572 if l > 0 { 2573 n += 1 + l + sovShim(uint64(l)) 2574 } 2575 if m.Terminal { 2576 n += 2 2577 } 2578 l = len(m.Stdin) 2579 if l > 0 { 2580 n += 1 + l + sovShim(uint64(l)) 2581 } 2582 l = len(m.Stdout) 2583 if l > 0 { 2584 n += 1 + l + sovShim(uint64(l)) 2585 } 2586 l = len(m.Stderr) 2587 if l > 0 { 2588 n += 1 + l + sovShim(uint64(l)) 2589 } 2590 if m.Spec != nil { 2591 l = m.Spec.Size() 2592 n += 1 + l + sovShim(uint64(l)) 2593 } 2594 if m.XXX_unrecognized != nil { 2595 n += len(m.XXX_unrecognized) 2596 } 2597 return n 2598 } 2599 2600 func (m *ExecProcessResponse) Size() (n int) { 2601 if m == nil { 2602 return 0 2603 } 2604 var l int 2605 _ = l 2606 if m.XXX_unrecognized != nil { 2607 n += len(m.XXX_unrecognized) 2608 } 2609 return n 2610 } 2611 2612 func (m *ResizePtyRequest) Size() (n int) { 2613 if m == nil { 2614 return 0 2615 } 2616 var l int 2617 _ = l 2618 l = len(m.ID) 2619 if l > 0 { 2620 n += 1 + l + sovShim(uint64(l)) 2621 } 2622 l = len(m.ExecID) 2623 if l > 0 { 2624 n += 1 + l + sovShim(uint64(l)) 2625 } 2626 if m.Width != 0 { 2627 n += 1 + sovShim(uint64(m.Width)) 2628 } 2629 if m.Height != 0 { 2630 n += 1 + sovShim(uint64(m.Height)) 2631 } 2632 if m.XXX_unrecognized != nil { 2633 n += len(m.XXX_unrecognized) 2634 } 2635 return n 2636 } 2637 2638 func (m *StateRequest) Size() (n int) { 2639 if m == nil { 2640 return 0 2641 } 2642 var l int 2643 _ = l 2644 l = len(m.ID) 2645 if l > 0 { 2646 n += 1 + l + sovShim(uint64(l)) 2647 } 2648 l = len(m.ExecID) 2649 if l > 0 { 2650 n += 1 + l + sovShim(uint64(l)) 2651 } 2652 if m.XXX_unrecognized != nil { 2653 n += len(m.XXX_unrecognized) 2654 } 2655 return n 2656 } 2657 2658 func (m *StateResponse) Size() (n int) { 2659 if m == nil { 2660 return 0 2661 } 2662 var l int 2663 _ = l 2664 l = len(m.ID) 2665 if l > 0 { 2666 n += 1 + l + sovShim(uint64(l)) 2667 } 2668 l = len(m.Bundle) 2669 if l > 0 { 2670 n += 1 + l + sovShim(uint64(l)) 2671 } 2672 if m.Pid != 0 { 2673 n += 1 + sovShim(uint64(m.Pid)) 2674 } 2675 if m.Status != 0 { 2676 n += 1 + sovShim(uint64(m.Status)) 2677 } 2678 l = len(m.Stdin) 2679 if l > 0 { 2680 n += 1 + l + sovShim(uint64(l)) 2681 } 2682 l = len(m.Stdout) 2683 if l > 0 { 2684 n += 1 + l + sovShim(uint64(l)) 2685 } 2686 l = len(m.Stderr) 2687 if l > 0 { 2688 n += 1 + l + sovShim(uint64(l)) 2689 } 2690 if m.Terminal { 2691 n += 2 2692 } 2693 if m.ExitStatus != 0 { 2694 n += 1 + sovShim(uint64(m.ExitStatus)) 2695 } 2696 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt) 2697 n += 1 + l + sovShim(uint64(l)) 2698 l = len(m.ExecID) 2699 if l > 0 { 2700 n += 1 + l + sovShim(uint64(l)) 2701 } 2702 if m.XXX_unrecognized != nil { 2703 n += len(m.XXX_unrecognized) 2704 } 2705 return n 2706 } 2707 2708 func (m *KillRequest) Size() (n int) { 2709 if m == nil { 2710 return 0 2711 } 2712 var l int 2713 _ = l 2714 l = len(m.ID) 2715 if l > 0 { 2716 n += 1 + l + sovShim(uint64(l)) 2717 } 2718 l = len(m.ExecID) 2719 if l > 0 { 2720 n += 1 + l + sovShim(uint64(l)) 2721 } 2722 if m.Signal != 0 { 2723 n += 1 + sovShim(uint64(m.Signal)) 2724 } 2725 if m.All { 2726 n += 2 2727 } 2728 if m.XXX_unrecognized != nil { 2729 n += len(m.XXX_unrecognized) 2730 } 2731 return n 2732 } 2733 2734 func (m *CloseIORequest) Size() (n int) { 2735 if m == nil { 2736 return 0 2737 } 2738 var l int 2739 _ = l 2740 l = len(m.ID) 2741 if l > 0 { 2742 n += 1 + l + sovShim(uint64(l)) 2743 } 2744 l = len(m.ExecID) 2745 if l > 0 { 2746 n += 1 + l + sovShim(uint64(l)) 2747 } 2748 if m.Stdin { 2749 n += 2 2750 } 2751 if m.XXX_unrecognized != nil { 2752 n += len(m.XXX_unrecognized) 2753 } 2754 return n 2755 } 2756 2757 func (m *PidsRequest) Size() (n int) { 2758 if m == nil { 2759 return 0 2760 } 2761 var l int 2762 _ = l 2763 l = len(m.ID) 2764 if l > 0 { 2765 n += 1 + l + sovShim(uint64(l)) 2766 } 2767 if m.XXX_unrecognized != nil { 2768 n += len(m.XXX_unrecognized) 2769 } 2770 return n 2771 } 2772 2773 func (m *PidsResponse) Size() (n int) { 2774 if m == nil { 2775 return 0 2776 } 2777 var l int 2778 _ = l 2779 if len(m.Processes) > 0 { 2780 for _, e := range m.Processes { 2781 l = e.Size() 2782 n += 1 + l + sovShim(uint64(l)) 2783 } 2784 } 2785 if m.XXX_unrecognized != nil { 2786 n += len(m.XXX_unrecognized) 2787 } 2788 return n 2789 } 2790 2791 func (m *CheckpointTaskRequest) Size() (n int) { 2792 if m == nil { 2793 return 0 2794 } 2795 var l int 2796 _ = l 2797 l = len(m.ID) 2798 if l > 0 { 2799 n += 1 + l + sovShim(uint64(l)) 2800 } 2801 l = len(m.Path) 2802 if l > 0 { 2803 n += 1 + l + sovShim(uint64(l)) 2804 } 2805 if m.Options != nil { 2806 l = m.Options.Size() 2807 n += 1 + l + sovShim(uint64(l)) 2808 } 2809 if m.XXX_unrecognized != nil { 2810 n += len(m.XXX_unrecognized) 2811 } 2812 return n 2813 } 2814 2815 func (m *UpdateTaskRequest) Size() (n int) { 2816 if m == nil { 2817 return 0 2818 } 2819 var l int 2820 _ = l 2821 l = len(m.ID) 2822 if l > 0 { 2823 n += 1 + l + sovShim(uint64(l)) 2824 } 2825 if m.Resources != nil { 2826 l = m.Resources.Size() 2827 n += 1 + l + sovShim(uint64(l)) 2828 } 2829 if m.XXX_unrecognized != nil { 2830 n += len(m.XXX_unrecognized) 2831 } 2832 return n 2833 } 2834 2835 func (m *StartRequest) Size() (n int) { 2836 if m == nil { 2837 return 0 2838 } 2839 var l int 2840 _ = l 2841 l = len(m.ID) 2842 if l > 0 { 2843 n += 1 + l + sovShim(uint64(l)) 2844 } 2845 l = len(m.ExecID) 2846 if l > 0 { 2847 n += 1 + l + sovShim(uint64(l)) 2848 } 2849 if m.XXX_unrecognized != nil { 2850 n += len(m.XXX_unrecognized) 2851 } 2852 return n 2853 } 2854 2855 func (m *StartResponse) Size() (n int) { 2856 if m == nil { 2857 return 0 2858 } 2859 var l int 2860 _ = l 2861 if m.Pid != 0 { 2862 n += 1 + sovShim(uint64(m.Pid)) 2863 } 2864 if m.XXX_unrecognized != nil { 2865 n += len(m.XXX_unrecognized) 2866 } 2867 return n 2868 } 2869 2870 func (m *WaitRequest) Size() (n int) { 2871 if m == nil { 2872 return 0 2873 } 2874 var l int 2875 _ = l 2876 l = len(m.ID) 2877 if l > 0 { 2878 n += 1 + l + sovShim(uint64(l)) 2879 } 2880 l = len(m.ExecID) 2881 if l > 0 { 2882 n += 1 + l + sovShim(uint64(l)) 2883 } 2884 if m.XXX_unrecognized != nil { 2885 n += len(m.XXX_unrecognized) 2886 } 2887 return n 2888 } 2889 2890 func (m *WaitResponse) Size() (n int) { 2891 if m == nil { 2892 return 0 2893 } 2894 var l int 2895 _ = l 2896 if m.ExitStatus != 0 { 2897 n += 1 + sovShim(uint64(m.ExitStatus)) 2898 } 2899 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt) 2900 n += 1 + l + sovShim(uint64(l)) 2901 if m.XXX_unrecognized != nil { 2902 n += len(m.XXX_unrecognized) 2903 } 2904 return n 2905 } 2906 2907 func (m *StatsRequest) Size() (n int) { 2908 if m == nil { 2909 return 0 2910 } 2911 var l int 2912 _ = l 2913 l = len(m.ID) 2914 if l > 0 { 2915 n += 1 + l + sovShim(uint64(l)) 2916 } 2917 if m.XXX_unrecognized != nil { 2918 n += len(m.XXX_unrecognized) 2919 } 2920 return n 2921 } 2922 2923 func (m *StatsResponse) Size() (n int) { 2924 if m == nil { 2925 return 0 2926 } 2927 var l int 2928 _ = l 2929 if m.Stats != nil { 2930 l = m.Stats.Size() 2931 n += 1 + l + sovShim(uint64(l)) 2932 } 2933 if m.XXX_unrecognized != nil { 2934 n += len(m.XXX_unrecognized) 2935 } 2936 return n 2937 } 2938 2939 func (m *ConnectRequest) Size() (n int) { 2940 if m == nil { 2941 return 0 2942 } 2943 var l int 2944 _ = l 2945 l = len(m.ID) 2946 if l > 0 { 2947 n += 1 + l + sovShim(uint64(l)) 2948 } 2949 if m.XXX_unrecognized != nil { 2950 n += len(m.XXX_unrecognized) 2951 } 2952 return n 2953 } 2954 2955 func (m *ConnectResponse) Size() (n int) { 2956 if m == nil { 2957 return 0 2958 } 2959 var l int 2960 _ = l 2961 if m.ShimPid != 0 { 2962 n += 1 + sovShim(uint64(m.ShimPid)) 2963 } 2964 if m.TaskPid != 0 { 2965 n += 1 + sovShim(uint64(m.TaskPid)) 2966 } 2967 l = len(m.Version) 2968 if l > 0 { 2969 n += 1 + l + sovShim(uint64(l)) 2970 } 2971 if m.XXX_unrecognized != nil { 2972 n += len(m.XXX_unrecognized) 2973 } 2974 return n 2975 } 2976 2977 func (m *ShutdownRequest) Size() (n int) { 2978 if m == nil { 2979 return 0 2980 } 2981 var l int 2982 _ = l 2983 l = len(m.ID) 2984 if l > 0 { 2985 n += 1 + l + sovShim(uint64(l)) 2986 } 2987 if m.Now { 2988 n += 2 2989 } 2990 if m.XXX_unrecognized != nil { 2991 n += len(m.XXX_unrecognized) 2992 } 2993 return n 2994 } 2995 2996 func (m *PauseRequest) Size() (n int) { 2997 if m == nil { 2998 return 0 2999 } 3000 var l int 3001 _ = l 3002 l = len(m.ID) 3003 if l > 0 { 3004 n += 1 + l + sovShim(uint64(l)) 3005 } 3006 if m.XXX_unrecognized != nil { 3007 n += len(m.XXX_unrecognized) 3008 } 3009 return n 3010 } 3011 3012 func (m *ResumeRequest) Size() (n int) { 3013 if m == nil { 3014 return 0 3015 } 3016 var l int 3017 _ = l 3018 l = len(m.ID) 3019 if l > 0 { 3020 n += 1 + l + sovShim(uint64(l)) 3021 } 3022 if m.XXX_unrecognized != nil { 3023 n += len(m.XXX_unrecognized) 3024 } 3025 return n 3026 } 3027 3028 func sovShim(x uint64) (n int) { 3029 return (math_bits.Len64(x|1) + 6) / 7 3030 } 3031 func sozShim(x uint64) (n int) { 3032 return sovShim(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 3033 } 3034 func (this *CreateTaskRequest) String() string { 3035 if this == nil { 3036 return "nil" 3037 } 3038 repeatedStringForRootfs := "[]*Mount{" 3039 for _, f := range this.Rootfs { 3040 repeatedStringForRootfs += strings.Replace(fmt.Sprintf("%v", f), "Mount", "types.Mount", 1) + "," 3041 } 3042 repeatedStringForRootfs += "}" 3043 s := strings.Join([]string{`&CreateTaskRequest{`, 3044 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3045 `Bundle:` + fmt.Sprintf("%v", this.Bundle) + `,`, 3046 `Rootfs:` + repeatedStringForRootfs + `,`, 3047 `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, 3048 `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, 3049 `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, 3050 `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, 3051 `Checkpoint:` + fmt.Sprintf("%v", this.Checkpoint) + `,`, 3052 `ParentCheckpoint:` + fmt.Sprintf("%v", this.ParentCheckpoint) + `,`, 3053 `Options:` + strings.Replace(fmt.Sprintf("%v", this.Options), "Any", "types1.Any", 1) + `,`, 3054 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3055 `}`, 3056 }, "") 3057 return s 3058 } 3059 func (this *CreateTaskResponse) String() string { 3060 if this == nil { 3061 return "nil" 3062 } 3063 s := strings.Join([]string{`&CreateTaskResponse{`, 3064 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 3065 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3066 `}`, 3067 }, "") 3068 return s 3069 } 3070 func (this *DeleteRequest) String() string { 3071 if this == nil { 3072 return "nil" 3073 } 3074 s := strings.Join([]string{`&DeleteRequest{`, 3075 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3076 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3077 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3078 `}`, 3079 }, "") 3080 return s 3081 } 3082 func (this *DeleteResponse) String() string { 3083 if this == nil { 3084 return "nil" 3085 } 3086 s := strings.Join([]string{`&DeleteResponse{`, 3087 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 3088 `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`, 3089 `ExitedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ExitedAt), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 3090 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3091 `}`, 3092 }, "") 3093 return s 3094 } 3095 func (this *ExecProcessRequest) String() string { 3096 if this == nil { 3097 return "nil" 3098 } 3099 s := strings.Join([]string{`&ExecProcessRequest{`, 3100 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3101 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3102 `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, 3103 `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, 3104 `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, 3105 `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, 3106 `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "Any", "types1.Any", 1) + `,`, 3107 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3108 `}`, 3109 }, "") 3110 return s 3111 } 3112 func (this *ExecProcessResponse) String() string { 3113 if this == nil { 3114 return "nil" 3115 } 3116 s := strings.Join([]string{`&ExecProcessResponse{`, 3117 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3118 `}`, 3119 }, "") 3120 return s 3121 } 3122 func (this *ResizePtyRequest) String() string { 3123 if this == nil { 3124 return "nil" 3125 } 3126 s := strings.Join([]string{`&ResizePtyRequest{`, 3127 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3128 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3129 `Width:` + fmt.Sprintf("%v", this.Width) + `,`, 3130 `Height:` + fmt.Sprintf("%v", this.Height) + `,`, 3131 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3132 `}`, 3133 }, "") 3134 return s 3135 } 3136 func (this *StateRequest) String() string { 3137 if this == nil { 3138 return "nil" 3139 } 3140 s := strings.Join([]string{`&StateRequest{`, 3141 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3142 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3143 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3144 `}`, 3145 }, "") 3146 return s 3147 } 3148 func (this *StateResponse) String() string { 3149 if this == nil { 3150 return "nil" 3151 } 3152 s := strings.Join([]string{`&StateResponse{`, 3153 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3154 `Bundle:` + fmt.Sprintf("%v", this.Bundle) + `,`, 3155 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 3156 `Status:` + fmt.Sprintf("%v", this.Status) + `,`, 3157 `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, 3158 `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, 3159 `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, 3160 `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, 3161 `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`, 3162 `ExitedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ExitedAt), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 3163 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3164 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3165 `}`, 3166 }, "") 3167 return s 3168 } 3169 func (this *KillRequest) String() string { 3170 if this == nil { 3171 return "nil" 3172 } 3173 s := strings.Join([]string{`&KillRequest{`, 3174 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3175 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3176 `Signal:` + fmt.Sprintf("%v", this.Signal) + `,`, 3177 `All:` + fmt.Sprintf("%v", this.All) + `,`, 3178 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3179 `}`, 3180 }, "") 3181 return s 3182 } 3183 func (this *CloseIORequest) String() string { 3184 if this == nil { 3185 return "nil" 3186 } 3187 s := strings.Join([]string{`&CloseIORequest{`, 3188 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3189 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3190 `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, 3191 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3192 `}`, 3193 }, "") 3194 return s 3195 } 3196 func (this *PidsRequest) String() string { 3197 if this == nil { 3198 return "nil" 3199 } 3200 s := strings.Join([]string{`&PidsRequest{`, 3201 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3202 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3203 `}`, 3204 }, "") 3205 return s 3206 } 3207 func (this *PidsResponse) String() string { 3208 if this == nil { 3209 return "nil" 3210 } 3211 repeatedStringForProcesses := "[]*ProcessInfo{" 3212 for _, f := range this.Processes { 3213 repeatedStringForProcesses += strings.Replace(fmt.Sprintf("%v", f), "ProcessInfo", "task.ProcessInfo", 1) + "," 3214 } 3215 repeatedStringForProcesses += "}" 3216 s := strings.Join([]string{`&PidsResponse{`, 3217 `Processes:` + repeatedStringForProcesses + `,`, 3218 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3219 `}`, 3220 }, "") 3221 return s 3222 } 3223 func (this *CheckpointTaskRequest) String() string { 3224 if this == nil { 3225 return "nil" 3226 } 3227 s := strings.Join([]string{`&CheckpointTaskRequest{`, 3228 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3229 `Path:` + fmt.Sprintf("%v", this.Path) + `,`, 3230 `Options:` + strings.Replace(fmt.Sprintf("%v", this.Options), "Any", "types1.Any", 1) + `,`, 3231 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3232 `}`, 3233 }, "") 3234 return s 3235 } 3236 func (this *UpdateTaskRequest) String() string { 3237 if this == nil { 3238 return "nil" 3239 } 3240 s := strings.Join([]string{`&UpdateTaskRequest{`, 3241 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3242 `Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "Any", "types1.Any", 1) + `,`, 3243 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3244 `}`, 3245 }, "") 3246 return s 3247 } 3248 func (this *StartRequest) String() string { 3249 if this == nil { 3250 return "nil" 3251 } 3252 s := strings.Join([]string{`&StartRequest{`, 3253 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3254 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3255 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3256 `}`, 3257 }, "") 3258 return s 3259 } 3260 func (this *StartResponse) String() string { 3261 if this == nil { 3262 return "nil" 3263 } 3264 s := strings.Join([]string{`&StartResponse{`, 3265 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 3266 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3267 `}`, 3268 }, "") 3269 return s 3270 } 3271 func (this *WaitRequest) String() string { 3272 if this == nil { 3273 return "nil" 3274 } 3275 s := strings.Join([]string{`&WaitRequest{`, 3276 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3277 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3278 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3279 `}`, 3280 }, "") 3281 return s 3282 } 3283 func (this *WaitResponse) String() string { 3284 if this == nil { 3285 return "nil" 3286 } 3287 s := strings.Join([]string{`&WaitResponse{`, 3288 `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`, 3289 `ExitedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ExitedAt), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 3290 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3291 `}`, 3292 }, "") 3293 return s 3294 } 3295 func (this *StatsRequest) String() string { 3296 if this == nil { 3297 return "nil" 3298 } 3299 s := strings.Join([]string{`&StatsRequest{`, 3300 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3301 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3302 `}`, 3303 }, "") 3304 return s 3305 } 3306 func (this *StatsResponse) String() string { 3307 if this == nil { 3308 return "nil" 3309 } 3310 s := strings.Join([]string{`&StatsResponse{`, 3311 `Stats:` + strings.Replace(fmt.Sprintf("%v", this.Stats), "Any", "types1.Any", 1) + `,`, 3312 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3313 `}`, 3314 }, "") 3315 return s 3316 } 3317 func (this *ConnectRequest) String() string { 3318 if this == nil { 3319 return "nil" 3320 } 3321 s := strings.Join([]string{`&ConnectRequest{`, 3322 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3323 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3324 `}`, 3325 }, "") 3326 return s 3327 } 3328 func (this *ConnectResponse) String() string { 3329 if this == nil { 3330 return "nil" 3331 } 3332 s := strings.Join([]string{`&ConnectResponse{`, 3333 `ShimPid:` + fmt.Sprintf("%v", this.ShimPid) + `,`, 3334 `TaskPid:` + fmt.Sprintf("%v", this.TaskPid) + `,`, 3335 `Version:` + fmt.Sprintf("%v", this.Version) + `,`, 3336 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3337 `}`, 3338 }, "") 3339 return s 3340 } 3341 func (this *ShutdownRequest) String() string { 3342 if this == nil { 3343 return "nil" 3344 } 3345 s := strings.Join([]string{`&ShutdownRequest{`, 3346 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3347 `Now:` + fmt.Sprintf("%v", this.Now) + `,`, 3348 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3349 `}`, 3350 }, "") 3351 return s 3352 } 3353 func (this *PauseRequest) String() string { 3354 if this == nil { 3355 return "nil" 3356 } 3357 s := strings.Join([]string{`&PauseRequest{`, 3358 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3359 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3360 `}`, 3361 }, "") 3362 return s 3363 } 3364 func (this *ResumeRequest) String() string { 3365 if this == nil { 3366 return "nil" 3367 } 3368 s := strings.Join([]string{`&ResumeRequest{`, 3369 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3370 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3371 `}`, 3372 }, "") 3373 return s 3374 } 3375 func valueToStringShim(v interface{}) string { 3376 rv := reflect.ValueOf(v) 3377 if rv.IsNil() { 3378 return "nil" 3379 } 3380 pv := reflect.Indirect(rv).Interface() 3381 return fmt.Sprintf("*%v", pv) 3382 } 3383 3384 type TaskService interface { 3385 State(ctx context.Context, req *StateRequest) (*StateResponse, error) 3386 Create(ctx context.Context, req *CreateTaskRequest) (*CreateTaskResponse, error) 3387 Start(ctx context.Context, req *StartRequest) (*StartResponse, error) 3388 Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) 3389 Pids(ctx context.Context, req *PidsRequest) (*PidsResponse, error) 3390 Pause(ctx context.Context, req *PauseRequest) (*types1.Empty, error) 3391 Resume(ctx context.Context, req *ResumeRequest) (*types1.Empty, error) 3392 Checkpoint(ctx context.Context, req *CheckpointTaskRequest) (*types1.Empty, error) 3393 Kill(ctx context.Context, req *KillRequest) (*types1.Empty, error) 3394 Exec(ctx context.Context, req *ExecProcessRequest) (*types1.Empty, error) 3395 ResizePty(ctx context.Context, req *ResizePtyRequest) (*types1.Empty, error) 3396 CloseIO(ctx context.Context, req *CloseIORequest) (*types1.Empty, error) 3397 Update(ctx context.Context, req *UpdateTaskRequest) (*types1.Empty, error) 3398 Wait(ctx context.Context, req *WaitRequest) (*WaitResponse, error) 3399 Stats(ctx context.Context, req *StatsRequest) (*StatsResponse, error) 3400 Connect(ctx context.Context, req *ConnectRequest) (*ConnectResponse, error) 3401 Shutdown(ctx context.Context, req *ShutdownRequest) (*types1.Empty, error) 3402 } 3403 3404 func RegisterTaskService(srv *github_com_containerd_ttrpc.Server, svc TaskService) { 3405 srv.Register("containerd.task.v2.Task", map[string]github_com_containerd_ttrpc.Method{ 3406 "State": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3407 var req StateRequest 3408 if err := unmarshal(&req); err != nil { 3409 return nil, err 3410 } 3411 return svc.State(ctx, &req) 3412 }, 3413 "Create": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3414 var req CreateTaskRequest 3415 if err := unmarshal(&req); err != nil { 3416 return nil, err 3417 } 3418 return svc.Create(ctx, &req) 3419 }, 3420 "Start": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3421 var req StartRequest 3422 if err := unmarshal(&req); err != nil { 3423 return nil, err 3424 } 3425 return svc.Start(ctx, &req) 3426 }, 3427 "Delete": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3428 var req DeleteRequest 3429 if err := unmarshal(&req); err != nil { 3430 return nil, err 3431 } 3432 return svc.Delete(ctx, &req) 3433 }, 3434 "Pids": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3435 var req PidsRequest 3436 if err := unmarshal(&req); err != nil { 3437 return nil, err 3438 } 3439 return svc.Pids(ctx, &req) 3440 }, 3441 "Pause": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3442 var req PauseRequest 3443 if err := unmarshal(&req); err != nil { 3444 return nil, err 3445 } 3446 return svc.Pause(ctx, &req) 3447 }, 3448 "Resume": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3449 var req ResumeRequest 3450 if err := unmarshal(&req); err != nil { 3451 return nil, err 3452 } 3453 return svc.Resume(ctx, &req) 3454 }, 3455 "Checkpoint": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3456 var req CheckpointTaskRequest 3457 if err := unmarshal(&req); err != nil { 3458 return nil, err 3459 } 3460 return svc.Checkpoint(ctx, &req) 3461 }, 3462 "Kill": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3463 var req KillRequest 3464 if err := unmarshal(&req); err != nil { 3465 return nil, err 3466 } 3467 return svc.Kill(ctx, &req) 3468 }, 3469 "Exec": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3470 var req ExecProcessRequest 3471 if err := unmarshal(&req); err != nil { 3472 return nil, err 3473 } 3474 return svc.Exec(ctx, &req) 3475 }, 3476 "ResizePty": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3477 var req ResizePtyRequest 3478 if err := unmarshal(&req); err != nil { 3479 return nil, err 3480 } 3481 return svc.ResizePty(ctx, &req) 3482 }, 3483 "CloseIO": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3484 var req CloseIORequest 3485 if err := unmarshal(&req); err != nil { 3486 return nil, err 3487 } 3488 return svc.CloseIO(ctx, &req) 3489 }, 3490 "Update": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3491 var req UpdateTaskRequest 3492 if err := unmarshal(&req); err != nil { 3493 return nil, err 3494 } 3495 return svc.Update(ctx, &req) 3496 }, 3497 "Wait": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3498 var req WaitRequest 3499 if err := unmarshal(&req); err != nil { 3500 return nil, err 3501 } 3502 return svc.Wait(ctx, &req) 3503 }, 3504 "Stats": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3505 var req StatsRequest 3506 if err := unmarshal(&req); err != nil { 3507 return nil, err 3508 } 3509 return svc.Stats(ctx, &req) 3510 }, 3511 "Connect": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3512 var req ConnectRequest 3513 if err := unmarshal(&req); err != nil { 3514 return nil, err 3515 } 3516 return svc.Connect(ctx, &req) 3517 }, 3518 "Shutdown": func(ctx context.Context, unmarshal func(interface{}) error) (interface{}, error) { 3519 var req ShutdownRequest 3520 if err := unmarshal(&req); err != nil { 3521 return nil, err 3522 } 3523 return svc.Shutdown(ctx, &req) 3524 }, 3525 }) 3526 } 3527 3528 type taskClient struct { 3529 client *github_com_containerd_ttrpc.Client 3530 } 3531 3532 func NewTaskClient(client *github_com_containerd_ttrpc.Client) TaskService { 3533 return &taskClient{ 3534 client: client, 3535 } 3536 } 3537 3538 func (c *taskClient) State(ctx context.Context, req *StateRequest) (*StateResponse, error) { 3539 var resp StateResponse 3540 if err := c.client.Call(ctx, "containerd.task.v2.Task", "State", req, &resp); err != nil { 3541 return nil, err 3542 } 3543 return &resp, nil 3544 } 3545 3546 func (c *taskClient) Create(ctx context.Context, req *CreateTaskRequest) (*CreateTaskResponse, error) { 3547 var resp CreateTaskResponse 3548 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Create", req, &resp); err != nil { 3549 return nil, err 3550 } 3551 return &resp, nil 3552 } 3553 3554 func (c *taskClient) Start(ctx context.Context, req *StartRequest) (*StartResponse, error) { 3555 var resp StartResponse 3556 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Start", req, &resp); err != nil { 3557 return nil, err 3558 } 3559 return &resp, nil 3560 } 3561 3562 func (c *taskClient) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) { 3563 var resp DeleteResponse 3564 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Delete", req, &resp); err != nil { 3565 return nil, err 3566 } 3567 return &resp, nil 3568 } 3569 3570 func (c *taskClient) Pids(ctx context.Context, req *PidsRequest) (*PidsResponse, error) { 3571 var resp PidsResponse 3572 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Pids", req, &resp); err != nil { 3573 return nil, err 3574 } 3575 return &resp, nil 3576 } 3577 3578 func (c *taskClient) Pause(ctx context.Context, req *PauseRequest) (*types1.Empty, error) { 3579 var resp types1.Empty 3580 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Pause", req, &resp); err != nil { 3581 return nil, err 3582 } 3583 return &resp, nil 3584 } 3585 3586 func (c *taskClient) Resume(ctx context.Context, req *ResumeRequest) (*types1.Empty, error) { 3587 var resp types1.Empty 3588 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Resume", req, &resp); err != nil { 3589 return nil, err 3590 } 3591 return &resp, nil 3592 } 3593 3594 func (c *taskClient) Checkpoint(ctx context.Context, req *CheckpointTaskRequest) (*types1.Empty, error) { 3595 var resp types1.Empty 3596 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Checkpoint", req, &resp); err != nil { 3597 return nil, err 3598 } 3599 return &resp, nil 3600 } 3601 3602 func (c *taskClient) Kill(ctx context.Context, req *KillRequest) (*types1.Empty, error) { 3603 var resp types1.Empty 3604 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Kill", req, &resp); err != nil { 3605 return nil, err 3606 } 3607 return &resp, nil 3608 } 3609 3610 func (c *taskClient) Exec(ctx context.Context, req *ExecProcessRequest) (*types1.Empty, error) { 3611 var resp types1.Empty 3612 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Exec", req, &resp); err != nil { 3613 return nil, err 3614 } 3615 return &resp, nil 3616 } 3617 3618 func (c *taskClient) ResizePty(ctx context.Context, req *ResizePtyRequest) (*types1.Empty, error) { 3619 var resp types1.Empty 3620 if err := c.client.Call(ctx, "containerd.task.v2.Task", "ResizePty", req, &resp); err != nil { 3621 return nil, err 3622 } 3623 return &resp, nil 3624 } 3625 3626 func (c *taskClient) CloseIO(ctx context.Context, req *CloseIORequest) (*types1.Empty, error) { 3627 var resp types1.Empty 3628 if err := c.client.Call(ctx, "containerd.task.v2.Task", "CloseIO", req, &resp); err != nil { 3629 return nil, err 3630 } 3631 return &resp, nil 3632 } 3633 3634 func (c *taskClient) Update(ctx context.Context, req *UpdateTaskRequest) (*types1.Empty, error) { 3635 var resp types1.Empty 3636 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Update", req, &resp); err != nil { 3637 return nil, err 3638 } 3639 return &resp, nil 3640 } 3641 3642 func (c *taskClient) Wait(ctx context.Context, req *WaitRequest) (*WaitResponse, error) { 3643 var resp WaitResponse 3644 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Wait", req, &resp); err != nil { 3645 return nil, err 3646 } 3647 return &resp, nil 3648 } 3649 3650 func (c *taskClient) Stats(ctx context.Context, req *StatsRequest) (*StatsResponse, error) { 3651 var resp StatsResponse 3652 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Stats", req, &resp); err != nil { 3653 return nil, err 3654 } 3655 return &resp, nil 3656 } 3657 3658 func (c *taskClient) Connect(ctx context.Context, req *ConnectRequest) (*ConnectResponse, error) { 3659 var resp ConnectResponse 3660 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Connect", req, &resp); err != nil { 3661 return nil, err 3662 } 3663 return &resp, nil 3664 } 3665 3666 func (c *taskClient) Shutdown(ctx context.Context, req *ShutdownRequest) (*types1.Empty, error) { 3667 var resp types1.Empty 3668 if err := c.client.Call(ctx, "containerd.task.v2.Task", "Shutdown", req, &resp); err != nil { 3669 return nil, err 3670 } 3671 return &resp, nil 3672 } 3673 func (m *CreateTaskRequest) Unmarshal(dAtA []byte) error { 3674 l := len(dAtA) 3675 iNdEx := 0 3676 for iNdEx < l { 3677 preIndex := iNdEx 3678 var wire uint64 3679 for shift := uint(0); ; shift += 7 { 3680 if shift >= 64 { 3681 return ErrIntOverflowShim 3682 } 3683 if iNdEx >= l { 3684 return io.ErrUnexpectedEOF 3685 } 3686 b := dAtA[iNdEx] 3687 iNdEx++ 3688 wire |= uint64(b&0x7F) << shift 3689 if b < 0x80 { 3690 break 3691 } 3692 } 3693 fieldNum := int32(wire >> 3) 3694 wireType := int(wire & 0x7) 3695 if wireType == 4 { 3696 return fmt.Errorf("proto: CreateTaskRequest: wiretype end group for non-group") 3697 } 3698 if fieldNum <= 0 { 3699 return fmt.Errorf("proto: CreateTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3700 } 3701 switch fieldNum { 3702 case 1: 3703 if wireType != 2 { 3704 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 3705 } 3706 var stringLen uint64 3707 for shift := uint(0); ; shift += 7 { 3708 if shift >= 64 { 3709 return ErrIntOverflowShim 3710 } 3711 if iNdEx >= l { 3712 return io.ErrUnexpectedEOF 3713 } 3714 b := dAtA[iNdEx] 3715 iNdEx++ 3716 stringLen |= uint64(b&0x7F) << shift 3717 if b < 0x80 { 3718 break 3719 } 3720 } 3721 intStringLen := int(stringLen) 3722 if intStringLen < 0 { 3723 return ErrInvalidLengthShim 3724 } 3725 postIndex := iNdEx + intStringLen 3726 if postIndex < 0 { 3727 return ErrInvalidLengthShim 3728 } 3729 if postIndex > l { 3730 return io.ErrUnexpectedEOF 3731 } 3732 m.ID = string(dAtA[iNdEx:postIndex]) 3733 iNdEx = postIndex 3734 case 2: 3735 if wireType != 2 { 3736 return fmt.Errorf("proto: wrong wireType = %d for field Bundle", wireType) 3737 } 3738 var stringLen uint64 3739 for shift := uint(0); ; shift += 7 { 3740 if shift >= 64 { 3741 return ErrIntOverflowShim 3742 } 3743 if iNdEx >= l { 3744 return io.ErrUnexpectedEOF 3745 } 3746 b := dAtA[iNdEx] 3747 iNdEx++ 3748 stringLen |= uint64(b&0x7F) << shift 3749 if b < 0x80 { 3750 break 3751 } 3752 } 3753 intStringLen := int(stringLen) 3754 if intStringLen < 0 { 3755 return ErrInvalidLengthShim 3756 } 3757 postIndex := iNdEx + intStringLen 3758 if postIndex < 0 { 3759 return ErrInvalidLengthShim 3760 } 3761 if postIndex > l { 3762 return io.ErrUnexpectedEOF 3763 } 3764 m.Bundle = string(dAtA[iNdEx:postIndex]) 3765 iNdEx = postIndex 3766 case 3: 3767 if wireType != 2 { 3768 return fmt.Errorf("proto: wrong wireType = %d for field Rootfs", wireType) 3769 } 3770 var msglen int 3771 for shift := uint(0); ; shift += 7 { 3772 if shift >= 64 { 3773 return ErrIntOverflowShim 3774 } 3775 if iNdEx >= l { 3776 return io.ErrUnexpectedEOF 3777 } 3778 b := dAtA[iNdEx] 3779 iNdEx++ 3780 msglen |= int(b&0x7F) << shift 3781 if b < 0x80 { 3782 break 3783 } 3784 } 3785 if msglen < 0 { 3786 return ErrInvalidLengthShim 3787 } 3788 postIndex := iNdEx + msglen 3789 if postIndex < 0 { 3790 return ErrInvalidLengthShim 3791 } 3792 if postIndex > l { 3793 return io.ErrUnexpectedEOF 3794 } 3795 m.Rootfs = append(m.Rootfs, &types.Mount{}) 3796 if err := m.Rootfs[len(m.Rootfs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3797 return err 3798 } 3799 iNdEx = postIndex 3800 case 4: 3801 if wireType != 0 { 3802 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 3803 } 3804 var v int 3805 for shift := uint(0); ; shift += 7 { 3806 if shift >= 64 { 3807 return ErrIntOverflowShim 3808 } 3809 if iNdEx >= l { 3810 return io.ErrUnexpectedEOF 3811 } 3812 b := dAtA[iNdEx] 3813 iNdEx++ 3814 v |= int(b&0x7F) << shift 3815 if b < 0x80 { 3816 break 3817 } 3818 } 3819 m.Terminal = bool(v != 0) 3820 case 5: 3821 if wireType != 2 { 3822 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 3823 } 3824 var stringLen uint64 3825 for shift := uint(0); ; shift += 7 { 3826 if shift >= 64 { 3827 return ErrIntOverflowShim 3828 } 3829 if iNdEx >= l { 3830 return io.ErrUnexpectedEOF 3831 } 3832 b := dAtA[iNdEx] 3833 iNdEx++ 3834 stringLen |= uint64(b&0x7F) << shift 3835 if b < 0x80 { 3836 break 3837 } 3838 } 3839 intStringLen := int(stringLen) 3840 if intStringLen < 0 { 3841 return ErrInvalidLengthShim 3842 } 3843 postIndex := iNdEx + intStringLen 3844 if postIndex < 0 { 3845 return ErrInvalidLengthShim 3846 } 3847 if postIndex > l { 3848 return io.ErrUnexpectedEOF 3849 } 3850 m.Stdin = string(dAtA[iNdEx:postIndex]) 3851 iNdEx = postIndex 3852 case 6: 3853 if wireType != 2 { 3854 return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) 3855 } 3856 var stringLen uint64 3857 for shift := uint(0); ; shift += 7 { 3858 if shift >= 64 { 3859 return ErrIntOverflowShim 3860 } 3861 if iNdEx >= l { 3862 return io.ErrUnexpectedEOF 3863 } 3864 b := dAtA[iNdEx] 3865 iNdEx++ 3866 stringLen |= uint64(b&0x7F) << shift 3867 if b < 0x80 { 3868 break 3869 } 3870 } 3871 intStringLen := int(stringLen) 3872 if intStringLen < 0 { 3873 return ErrInvalidLengthShim 3874 } 3875 postIndex := iNdEx + intStringLen 3876 if postIndex < 0 { 3877 return ErrInvalidLengthShim 3878 } 3879 if postIndex > l { 3880 return io.ErrUnexpectedEOF 3881 } 3882 m.Stdout = string(dAtA[iNdEx:postIndex]) 3883 iNdEx = postIndex 3884 case 7: 3885 if wireType != 2 { 3886 return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) 3887 } 3888 var stringLen uint64 3889 for shift := uint(0); ; shift += 7 { 3890 if shift >= 64 { 3891 return ErrIntOverflowShim 3892 } 3893 if iNdEx >= l { 3894 return io.ErrUnexpectedEOF 3895 } 3896 b := dAtA[iNdEx] 3897 iNdEx++ 3898 stringLen |= uint64(b&0x7F) << shift 3899 if b < 0x80 { 3900 break 3901 } 3902 } 3903 intStringLen := int(stringLen) 3904 if intStringLen < 0 { 3905 return ErrInvalidLengthShim 3906 } 3907 postIndex := iNdEx + intStringLen 3908 if postIndex < 0 { 3909 return ErrInvalidLengthShim 3910 } 3911 if postIndex > l { 3912 return io.ErrUnexpectedEOF 3913 } 3914 m.Stderr = string(dAtA[iNdEx:postIndex]) 3915 iNdEx = postIndex 3916 case 8: 3917 if wireType != 2 { 3918 return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType) 3919 } 3920 var stringLen uint64 3921 for shift := uint(0); ; shift += 7 { 3922 if shift >= 64 { 3923 return ErrIntOverflowShim 3924 } 3925 if iNdEx >= l { 3926 return io.ErrUnexpectedEOF 3927 } 3928 b := dAtA[iNdEx] 3929 iNdEx++ 3930 stringLen |= uint64(b&0x7F) << shift 3931 if b < 0x80 { 3932 break 3933 } 3934 } 3935 intStringLen := int(stringLen) 3936 if intStringLen < 0 { 3937 return ErrInvalidLengthShim 3938 } 3939 postIndex := iNdEx + intStringLen 3940 if postIndex < 0 { 3941 return ErrInvalidLengthShim 3942 } 3943 if postIndex > l { 3944 return io.ErrUnexpectedEOF 3945 } 3946 m.Checkpoint = string(dAtA[iNdEx:postIndex]) 3947 iNdEx = postIndex 3948 case 9: 3949 if wireType != 2 { 3950 return fmt.Errorf("proto: wrong wireType = %d for field ParentCheckpoint", wireType) 3951 } 3952 var stringLen uint64 3953 for shift := uint(0); ; shift += 7 { 3954 if shift >= 64 { 3955 return ErrIntOverflowShim 3956 } 3957 if iNdEx >= l { 3958 return io.ErrUnexpectedEOF 3959 } 3960 b := dAtA[iNdEx] 3961 iNdEx++ 3962 stringLen |= uint64(b&0x7F) << shift 3963 if b < 0x80 { 3964 break 3965 } 3966 } 3967 intStringLen := int(stringLen) 3968 if intStringLen < 0 { 3969 return ErrInvalidLengthShim 3970 } 3971 postIndex := iNdEx + intStringLen 3972 if postIndex < 0 { 3973 return ErrInvalidLengthShim 3974 } 3975 if postIndex > l { 3976 return io.ErrUnexpectedEOF 3977 } 3978 m.ParentCheckpoint = string(dAtA[iNdEx:postIndex]) 3979 iNdEx = postIndex 3980 case 10: 3981 if wireType != 2 { 3982 return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) 3983 } 3984 var msglen int 3985 for shift := uint(0); ; shift += 7 { 3986 if shift >= 64 { 3987 return ErrIntOverflowShim 3988 } 3989 if iNdEx >= l { 3990 return io.ErrUnexpectedEOF 3991 } 3992 b := dAtA[iNdEx] 3993 iNdEx++ 3994 msglen |= int(b&0x7F) << shift 3995 if b < 0x80 { 3996 break 3997 } 3998 } 3999 if msglen < 0 { 4000 return ErrInvalidLengthShim 4001 } 4002 postIndex := iNdEx + msglen 4003 if postIndex < 0 { 4004 return ErrInvalidLengthShim 4005 } 4006 if postIndex > l { 4007 return io.ErrUnexpectedEOF 4008 } 4009 if m.Options == nil { 4010 m.Options = &types1.Any{} 4011 } 4012 if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4013 return err 4014 } 4015 iNdEx = postIndex 4016 default: 4017 iNdEx = preIndex 4018 skippy, err := skipShim(dAtA[iNdEx:]) 4019 if err != nil { 4020 return err 4021 } 4022 if skippy < 0 { 4023 return ErrInvalidLengthShim 4024 } 4025 if (iNdEx + skippy) < 0 { 4026 return ErrInvalidLengthShim 4027 } 4028 if (iNdEx + skippy) > l { 4029 return io.ErrUnexpectedEOF 4030 } 4031 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4032 iNdEx += skippy 4033 } 4034 } 4035 4036 if iNdEx > l { 4037 return io.ErrUnexpectedEOF 4038 } 4039 return nil 4040 } 4041 func (m *CreateTaskResponse) Unmarshal(dAtA []byte) error { 4042 l := len(dAtA) 4043 iNdEx := 0 4044 for iNdEx < l { 4045 preIndex := iNdEx 4046 var wire uint64 4047 for shift := uint(0); ; shift += 7 { 4048 if shift >= 64 { 4049 return ErrIntOverflowShim 4050 } 4051 if iNdEx >= l { 4052 return io.ErrUnexpectedEOF 4053 } 4054 b := dAtA[iNdEx] 4055 iNdEx++ 4056 wire |= uint64(b&0x7F) << shift 4057 if b < 0x80 { 4058 break 4059 } 4060 } 4061 fieldNum := int32(wire >> 3) 4062 wireType := int(wire & 0x7) 4063 if wireType == 4 { 4064 return fmt.Errorf("proto: CreateTaskResponse: wiretype end group for non-group") 4065 } 4066 if fieldNum <= 0 { 4067 return fmt.Errorf("proto: CreateTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4068 } 4069 switch fieldNum { 4070 case 1: 4071 if wireType != 0 { 4072 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 4073 } 4074 m.Pid = 0 4075 for shift := uint(0); ; shift += 7 { 4076 if shift >= 64 { 4077 return ErrIntOverflowShim 4078 } 4079 if iNdEx >= l { 4080 return io.ErrUnexpectedEOF 4081 } 4082 b := dAtA[iNdEx] 4083 iNdEx++ 4084 m.Pid |= uint32(b&0x7F) << shift 4085 if b < 0x80 { 4086 break 4087 } 4088 } 4089 default: 4090 iNdEx = preIndex 4091 skippy, err := skipShim(dAtA[iNdEx:]) 4092 if err != nil { 4093 return err 4094 } 4095 if skippy < 0 { 4096 return ErrInvalidLengthShim 4097 } 4098 if (iNdEx + skippy) < 0 { 4099 return ErrInvalidLengthShim 4100 } 4101 if (iNdEx + skippy) > l { 4102 return io.ErrUnexpectedEOF 4103 } 4104 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4105 iNdEx += skippy 4106 } 4107 } 4108 4109 if iNdEx > l { 4110 return io.ErrUnexpectedEOF 4111 } 4112 return nil 4113 } 4114 func (m *DeleteRequest) Unmarshal(dAtA []byte) error { 4115 l := len(dAtA) 4116 iNdEx := 0 4117 for iNdEx < l { 4118 preIndex := iNdEx 4119 var wire uint64 4120 for shift := uint(0); ; shift += 7 { 4121 if shift >= 64 { 4122 return ErrIntOverflowShim 4123 } 4124 if iNdEx >= l { 4125 return io.ErrUnexpectedEOF 4126 } 4127 b := dAtA[iNdEx] 4128 iNdEx++ 4129 wire |= uint64(b&0x7F) << shift 4130 if b < 0x80 { 4131 break 4132 } 4133 } 4134 fieldNum := int32(wire >> 3) 4135 wireType := int(wire & 0x7) 4136 if wireType == 4 { 4137 return fmt.Errorf("proto: DeleteRequest: wiretype end group for non-group") 4138 } 4139 if fieldNum <= 0 { 4140 return fmt.Errorf("proto: DeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4141 } 4142 switch fieldNum { 4143 case 1: 4144 if wireType != 2 { 4145 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 4146 } 4147 var stringLen uint64 4148 for shift := uint(0); ; shift += 7 { 4149 if shift >= 64 { 4150 return ErrIntOverflowShim 4151 } 4152 if iNdEx >= l { 4153 return io.ErrUnexpectedEOF 4154 } 4155 b := dAtA[iNdEx] 4156 iNdEx++ 4157 stringLen |= uint64(b&0x7F) << shift 4158 if b < 0x80 { 4159 break 4160 } 4161 } 4162 intStringLen := int(stringLen) 4163 if intStringLen < 0 { 4164 return ErrInvalidLengthShim 4165 } 4166 postIndex := iNdEx + intStringLen 4167 if postIndex < 0 { 4168 return ErrInvalidLengthShim 4169 } 4170 if postIndex > l { 4171 return io.ErrUnexpectedEOF 4172 } 4173 m.ID = string(dAtA[iNdEx:postIndex]) 4174 iNdEx = postIndex 4175 case 2: 4176 if wireType != 2 { 4177 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 4178 } 4179 var stringLen uint64 4180 for shift := uint(0); ; shift += 7 { 4181 if shift >= 64 { 4182 return ErrIntOverflowShim 4183 } 4184 if iNdEx >= l { 4185 return io.ErrUnexpectedEOF 4186 } 4187 b := dAtA[iNdEx] 4188 iNdEx++ 4189 stringLen |= uint64(b&0x7F) << shift 4190 if b < 0x80 { 4191 break 4192 } 4193 } 4194 intStringLen := int(stringLen) 4195 if intStringLen < 0 { 4196 return ErrInvalidLengthShim 4197 } 4198 postIndex := iNdEx + intStringLen 4199 if postIndex < 0 { 4200 return ErrInvalidLengthShim 4201 } 4202 if postIndex > l { 4203 return io.ErrUnexpectedEOF 4204 } 4205 m.ExecID = string(dAtA[iNdEx:postIndex]) 4206 iNdEx = postIndex 4207 default: 4208 iNdEx = preIndex 4209 skippy, err := skipShim(dAtA[iNdEx:]) 4210 if err != nil { 4211 return err 4212 } 4213 if skippy < 0 { 4214 return ErrInvalidLengthShim 4215 } 4216 if (iNdEx + skippy) < 0 { 4217 return ErrInvalidLengthShim 4218 } 4219 if (iNdEx + skippy) > l { 4220 return io.ErrUnexpectedEOF 4221 } 4222 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4223 iNdEx += skippy 4224 } 4225 } 4226 4227 if iNdEx > l { 4228 return io.ErrUnexpectedEOF 4229 } 4230 return nil 4231 } 4232 func (m *DeleteResponse) Unmarshal(dAtA []byte) error { 4233 l := len(dAtA) 4234 iNdEx := 0 4235 for iNdEx < l { 4236 preIndex := iNdEx 4237 var wire uint64 4238 for shift := uint(0); ; shift += 7 { 4239 if shift >= 64 { 4240 return ErrIntOverflowShim 4241 } 4242 if iNdEx >= l { 4243 return io.ErrUnexpectedEOF 4244 } 4245 b := dAtA[iNdEx] 4246 iNdEx++ 4247 wire |= uint64(b&0x7F) << shift 4248 if b < 0x80 { 4249 break 4250 } 4251 } 4252 fieldNum := int32(wire >> 3) 4253 wireType := int(wire & 0x7) 4254 if wireType == 4 { 4255 return fmt.Errorf("proto: DeleteResponse: wiretype end group for non-group") 4256 } 4257 if fieldNum <= 0 { 4258 return fmt.Errorf("proto: DeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4259 } 4260 switch fieldNum { 4261 case 1: 4262 if wireType != 0 { 4263 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 4264 } 4265 m.Pid = 0 4266 for shift := uint(0); ; shift += 7 { 4267 if shift >= 64 { 4268 return ErrIntOverflowShim 4269 } 4270 if iNdEx >= l { 4271 return io.ErrUnexpectedEOF 4272 } 4273 b := dAtA[iNdEx] 4274 iNdEx++ 4275 m.Pid |= uint32(b&0x7F) << shift 4276 if b < 0x80 { 4277 break 4278 } 4279 } 4280 case 2: 4281 if wireType != 0 { 4282 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 4283 } 4284 m.ExitStatus = 0 4285 for shift := uint(0); ; shift += 7 { 4286 if shift >= 64 { 4287 return ErrIntOverflowShim 4288 } 4289 if iNdEx >= l { 4290 return io.ErrUnexpectedEOF 4291 } 4292 b := dAtA[iNdEx] 4293 iNdEx++ 4294 m.ExitStatus |= uint32(b&0x7F) << shift 4295 if b < 0x80 { 4296 break 4297 } 4298 } 4299 case 3: 4300 if wireType != 2 { 4301 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 4302 } 4303 var msglen int 4304 for shift := uint(0); ; shift += 7 { 4305 if shift >= 64 { 4306 return ErrIntOverflowShim 4307 } 4308 if iNdEx >= l { 4309 return io.ErrUnexpectedEOF 4310 } 4311 b := dAtA[iNdEx] 4312 iNdEx++ 4313 msglen |= int(b&0x7F) << shift 4314 if b < 0x80 { 4315 break 4316 } 4317 } 4318 if msglen < 0 { 4319 return ErrInvalidLengthShim 4320 } 4321 postIndex := iNdEx + msglen 4322 if postIndex < 0 { 4323 return ErrInvalidLengthShim 4324 } 4325 if postIndex > l { 4326 return io.ErrUnexpectedEOF 4327 } 4328 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 4329 return err 4330 } 4331 iNdEx = postIndex 4332 default: 4333 iNdEx = preIndex 4334 skippy, err := skipShim(dAtA[iNdEx:]) 4335 if err != nil { 4336 return err 4337 } 4338 if skippy < 0 { 4339 return ErrInvalidLengthShim 4340 } 4341 if (iNdEx + skippy) < 0 { 4342 return ErrInvalidLengthShim 4343 } 4344 if (iNdEx + skippy) > l { 4345 return io.ErrUnexpectedEOF 4346 } 4347 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4348 iNdEx += skippy 4349 } 4350 } 4351 4352 if iNdEx > l { 4353 return io.ErrUnexpectedEOF 4354 } 4355 return nil 4356 } 4357 func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { 4358 l := len(dAtA) 4359 iNdEx := 0 4360 for iNdEx < l { 4361 preIndex := iNdEx 4362 var wire uint64 4363 for shift := uint(0); ; shift += 7 { 4364 if shift >= 64 { 4365 return ErrIntOverflowShim 4366 } 4367 if iNdEx >= l { 4368 return io.ErrUnexpectedEOF 4369 } 4370 b := dAtA[iNdEx] 4371 iNdEx++ 4372 wire |= uint64(b&0x7F) << shift 4373 if b < 0x80 { 4374 break 4375 } 4376 } 4377 fieldNum := int32(wire >> 3) 4378 wireType := int(wire & 0x7) 4379 if wireType == 4 { 4380 return fmt.Errorf("proto: ExecProcessRequest: wiretype end group for non-group") 4381 } 4382 if fieldNum <= 0 { 4383 return fmt.Errorf("proto: ExecProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4384 } 4385 switch fieldNum { 4386 case 1: 4387 if wireType != 2 { 4388 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 4389 } 4390 var stringLen uint64 4391 for shift := uint(0); ; shift += 7 { 4392 if shift >= 64 { 4393 return ErrIntOverflowShim 4394 } 4395 if iNdEx >= l { 4396 return io.ErrUnexpectedEOF 4397 } 4398 b := dAtA[iNdEx] 4399 iNdEx++ 4400 stringLen |= uint64(b&0x7F) << shift 4401 if b < 0x80 { 4402 break 4403 } 4404 } 4405 intStringLen := int(stringLen) 4406 if intStringLen < 0 { 4407 return ErrInvalidLengthShim 4408 } 4409 postIndex := iNdEx + intStringLen 4410 if postIndex < 0 { 4411 return ErrInvalidLengthShim 4412 } 4413 if postIndex > l { 4414 return io.ErrUnexpectedEOF 4415 } 4416 m.ID = string(dAtA[iNdEx:postIndex]) 4417 iNdEx = postIndex 4418 case 2: 4419 if wireType != 2 { 4420 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 4421 } 4422 var stringLen uint64 4423 for shift := uint(0); ; shift += 7 { 4424 if shift >= 64 { 4425 return ErrIntOverflowShim 4426 } 4427 if iNdEx >= l { 4428 return io.ErrUnexpectedEOF 4429 } 4430 b := dAtA[iNdEx] 4431 iNdEx++ 4432 stringLen |= uint64(b&0x7F) << shift 4433 if b < 0x80 { 4434 break 4435 } 4436 } 4437 intStringLen := int(stringLen) 4438 if intStringLen < 0 { 4439 return ErrInvalidLengthShim 4440 } 4441 postIndex := iNdEx + intStringLen 4442 if postIndex < 0 { 4443 return ErrInvalidLengthShim 4444 } 4445 if postIndex > l { 4446 return io.ErrUnexpectedEOF 4447 } 4448 m.ExecID = string(dAtA[iNdEx:postIndex]) 4449 iNdEx = postIndex 4450 case 3: 4451 if wireType != 0 { 4452 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 4453 } 4454 var v int 4455 for shift := uint(0); ; shift += 7 { 4456 if shift >= 64 { 4457 return ErrIntOverflowShim 4458 } 4459 if iNdEx >= l { 4460 return io.ErrUnexpectedEOF 4461 } 4462 b := dAtA[iNdEx] 4463 iNdEx++ 4464 v |= int(b&0x7F) << shift 4465 if b < 0x80 { 4466 break 4467 } 4468 } 4469 m.Terminal = bool(v != 0) 4470 case 4: 4471 if wireType != 2 { 4472 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 4473 } 4474 var stringLen uint64 4475 for shift := uint(0); ; shift += 7 { 4476 if shift >= 64 { 4477 return ErrIntOverflowShim 4478 } 4479 if iNdEx >= l { 4480 return io.ErrUnexpectedEOF 4481 } 4482 b := dAtA[iNdEx] 4483 iNdEx++ 4484 stringLen |= uint64(b&0x7F) << shift 4485 if b < 0x80 { 4486 break 4487 } 4488 } 4489 intStringLen := int(stringLen) 4490 if intStringLen < 0 { 4491 return ErrInvalidLengthShim 4492 } 4493 postIndex := iNdEx + intStringLen 4494 if postIndex < 0 { 4495 return ErrInvalidLengthShim 4496 } 4497 if postIndex > l { 4498 return io.ErrUnexpectedEOF 4499 } 4500 m.Stdin = string(dAtA[iNdEx:postIndex]) 4501 iNdEx = postIndex 4502 case 5: 4503 if wireType != 2 { 4504 return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) 4505 } 4506 var stringLen uint64 4507 for shift := uint(0); ; shift += 7 { 4508 if shift >= 64 { 4509 return ErrIntOverflowShim 4510 } 4511 if iNdEx >= l { 4512 return io.ErrUnexpectedEOF 4513 } 4514 b := dAtA[iNdEx] 4515 iNdEx++ 4516 stringLen |= uint64(b&0x7F) << shift 4517 if b < 0x80 { 4518 break 4519 } 4520 } 4521 intStringLen := int(stringLen) 4522 if intStringLen < 0 { 4523 return ErrInvalidLengthShim 4524 } 4525 postIndex := iNdEx + intStringLen 4526 if postIndex < 0 { 4527 return ErrInvalidLengthShim 4528 } 4529 if postIndex > l { 4530 return io.ErrUnexpectedEOF 4531 } 4532 m.Stdout = string(dAtA[iNdEx:postIndex]) 4533 iNdEx = postIndex 4534 case 6: 4535 if wireType != 2 { 4536 return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) 4537 } 4538 var stringLen uint64 4539 for shift := uint(0); ; shift += 7 { 4540 if shift >= 64 { 4541 return ErrIntOverflowShim 4542 } 4543 if iNdEx >= l { 4544 return io.ErrUnexpectedEOF 4545 } 4546 b := dAtA[iNdEx] 4547 iNdEx++ 4548 stringLen |= uint64(b&0x7F) << shift 4549 if b < 0x80 { 4550 break 4551 } 4552 } 4553 intStringLen := int(stringLen) 4554 if intStringLen < 0 { 4555 return ErrInvalidLengthShim 4556 } 4557 postIndex := iNdEx + intStringLen 4558 if postIndex < 0 { 4559 return ErrInvalidLengthShim 4560 } 4561 if postIndex > l { 4562 return io.ErrUnexpectedEOF 4563 } 4564 m.Stderr = string(dAtA[iNdEx:postIndex]) 4565 iNdEx = postIndex 4566 case 7: 4567 if wireType != 2 { 4568 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) 4569 } 4570 var msglen int 4571 for shift := uint(0); ; shift += 7 { 4572 if shift >= 64 { 4573 return ErrIntOverflowShim 4574 } 4575 if iNdEx >= l { 4576 return io.ErrUnexpectedEOF 4577 } 4578 b := dAtA[iNdEx] 4579 iNdEx++ 4580 msglen |= int(b&0x7F) << shift 4581 if b < 0x80 { 4582 break 4583 } 4584 } 4585 if msglen < 0 { 4586 return ErrInvalidLengthShim 4587 } 4588 postIndex := iNdEx + msglen 4589 if postIndex < 0 { 4590 return ErrInvalidLengthShim 4591 } 4592 if postIndex > l { 4593 return io.ErrUnexpectedEOF 4594 } 4595 if m.Spec == nil { 4596 m.Spec = &types1.Any{} 4597 } 4598 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4599 return err 4600 } 4601 iNdEx = postIndex 4602 default: 4603 iNdEx = preIndex 4604 skippy, err := skipShim(dAtA[iNdEx:]) 4605 if err != nil { 4606 return err 4607 } 4608 if skippy < 0 { 4609 return ErrInvalidLengthShim 4610 } 4611 if (iNdEx + skippy) < 0 { 4612 return ErrInvalidLengthShim 4613 } 4614 if (iNdEx + skippy) > l { 4615 return io.ErrUnexpectedEOF 4616 } 4617 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4618 iNdEx += skippy 4619 } 4620 } 4621 4622 if iNdEx > l { 4623 return io.ErrUnexpectedEOF 4624 } 4625 return nil 4626 } 4627 func (m *ExecProcessResponse) Unmarshal(dAtA []byte) error { 4628 l := len(dAtA) 4629 iNdEx := 0 4630 for iNdEx < l { 4631 preIndex := iNdEx 4632 var wire uint64 4633 for shift := uint(0); ; shift += 7 { 4634 if shift >= 64 { 4635 return ErrIntOverflowShim 4636 } 4637 if iNdEx >= l { 4638 return io.ErrUnexpectedEOF 4639 } 4640 b := dAtA[iNdEx] 4641 iNdEx++ 4642 wire |= uint64(b&0x7F) << shift 4643 if b < 0x80 { 4644 break 4645 } 4646 } 4647 fieldNum := int32(wire >> 3) 4648 wireType := int(wire & 0x7) 4649 if wireType == 4 { 4650 return fmt.Errorf("proto: ExecProcessResponse: wiretype end group for non-group") 4651 } 4652 if fieldNum <= 0 { 4653 return fmt.Errorf("proto: ExecProcessResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4654 } 4655 switch fieldNum { 4656 default: 4657 iNdEx = preIndex 4658 skippy, err := skipShim(dAtA[iNdEx:]) 4659 if err != nil { 4660 return err 4661 } 4662 if skippy < 0 { 4663 return ErrInvalidLengthShim 4664 } 4665 if (iNdEx + skippy) < 0 { 4666 return ErrInvalidLengthShim 4667 } 4668 if (iNdEx + skippy) > l { 4669 return io.ErrUnexpectedEOF 4670 } 4671 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4672 iNdEx += skippy 4673 } 4674 } 4675 4676 if iNdEx > l { 4677 return io.ErrUnexpectedEOF 4678 } 4679 return nil 4680 } 4681 func (m *ResizePtyRequest) Unmarshal(dAtA []byte) error { 4682 l := len(dAtA) 4683 iNdEx := 0 4684 for iNdEx < l { 4685 preIndex := iNdEx 4686 var wire uint64 4687 for shift := uint(0); ; shift += 7 { 4688 if shift >= 64 { 4689 return ErrIntOverflowShim 4690 } 4691 if iNdEx >= l { 4692 return io.ErrUnexpectedEOF 4693 } 4694 b := dAtA[iNdEx] 4695 iNdEx++ 4696 wire |= uint64(b&0x7F) << shift 4697 if b < 0x80 { 4698 break 4699 } 4700 } 4701 fieldNum := int32(wire >> 3) 4702 wireType := int(wire & 0x7) 4703 if wireType == 4 { 4704 return fmt.Errorf("proto: ResizePtyRequest: wiretype end group for non-group") 4705 } 4706 if fieldNum <= 0 { 4707 return fmt.Errorf("proto: ResizePtyRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4708 } 4709 switch fieldNum { 4710 case 1: 4711 if wireType != 2 { 4712 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 4713 } 4714 var stringLen uint64 4715 for shift := uint(0); ; shift += 7 { 4716 if shift >= 64 { 4717 return ErrIntOverflowShim 4718 } 4719 if iNdEx >= l { 4720 return io.ErrUnexpectedEOF 4721 } 4722 b := dAtA[iNdEx] 4723 iNdEx++ 4724 stringLen |= uint64(b&0x7F) << shift 4725 if b < 0x80 { 4726 break 4727 } 4728 } 4729 intStringLen := int(stringLen) 4730 if intStringLen < 0 { 4731 return ErrInvalidLengthShim 4732 } 4733 postIndex := iNdEx + intStringLen 4734 if postIndex < 0 { 4735 return ErrInvalidLengthShim 4736 } 4737 if postIndex > l { 4738 return io.ErrUnexpectedEOF 4739 } 4740 m.ID = string(dAtA[iNdEx:postIndex]) 4741 iNdEx = postIndex 4742 case 2: 4743 if wireType != 2 { 4744 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 4745 } 4746 var stringLen uint64 4747 for shift := uint(0); ; shift += 7 { 4748 if shift >= 64 { 4749 return ErrIntOverflowShim 4750 } 4751 if iNdEx >= l { 4752 return io.ErrUnexpectedEOF 4753 } 4754 b := dAtA[iNdEx] 4755 iNdEx++ 4756 stringLen |= uint64(b&0x7F) << shift 4757 if b < 0x80 { 4758 break 4759 } 4760 } 4761 intStringLen := int(stringLen) 4762 if intStringLen < 0 { 4763 return ErrInvalidLengthShim 4764 } 4765 postIndex := iNdEx + intStringLen 4766 if postIndex < 0 { 4767 return ErrInvalidLengthShim 4768 } 4769 if postIndex > l { 4770 return io.ErrUnexpectedEOF 4771 } 4772 m.ExecID = string(dAtA[iNdEx:postIndex]) 4773 iNdEx = postIndex 4774 case 3: 4775 if wireType != 0 { 4776 return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) 4777 } 4778 m.Width = 0 4779 for shift := uint(0); ; shift += 7 { 4780 if shift >= 64 { 4781 return ErrIntOverflowShim 4782 } 4783 if iNdEx >= l { 4784 return io.ErrUnexpectedEOF 4785 } 4786 b := dAtA[iNdEx] 4787 iNdEx++ 4788 m.Width |= uint32(b&0x7F) << shift 4789 if b < 0x80 { 4790 break 4791 } 4792 } 4793 case 4: 4794 if wireType != 0 { 4795 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 4796 } 4797 m.Height = 0 4798 for shift := uint(0); ; shift += 7 { 4799 if shift >= 64 { 4800 return ErrIntOverflowShim 4801 } 4802 if iNdEx >= l { 4803 return io.ErrUnexpectedEOF 4804 } 4805 b := dAtA[iNdEx] 4806 iNdEx++ 4807 m.Height |= uint32(b&0x7F) << shift 4808 if b < 0x80 { 4809 break 4810 } 4811 } 4812 default: 4813 iNdEx = preIndex 4814 skippy, err := skipShim(dAtA[iNdEx:]) 4815 if err != nil { 4816 return err 4817 } 4818 if skippy < 0 { 4819 return ErrInvalidLengthShim 4820 } 4821 if (iNdEx + skippy) < 0 { 4822 return ErrInvalidLengthShim 4823 } 4824 if (iNdEx + skippy) > l { 4825 return io.ErrUnexpectedEOF 4826 } 4827 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4828 iNdEx += skippy 4829 } 4830 } 4831 4832 if iNdEx > l { 4833 return io.ErrUnexpectedEOF 4834 } 4835 return nil 4836 } 4837 func (m *StateRequest) Unmarshal(dAtA []byte) error { 4838 l := len(dAtA) 4839 iNdEx := 0 4840 for iNdEx < l { 4841 preIndex := iNdEx 4842 var wire uint64 4843 for shift := uint(0); ; shift += 7 { 4844 if shift >= 64 { 4845 return ErrIntOverflowShim 4846 } 4847 if iNdEx >= l { 4848 return io.ErrUnexpectedEOF 4849 } 4850 b := dAtA[iNdEx] 4851 iNdEx++ 4852 wire |= uint64(b&0x7F) << shift 4853 if b < 0x80 { 4854 break 4855 } 4856 } 4857 fieldNum := int32(wire >> 3) 4858 wireType := int(wire & 0x7) 4859 if wireType == 4 { 4860 return fmt.Errorf("proto: StateRequest: wiretype end group for non-group") 4861 } 4862 if fieldNum <= 0 { 4863 return fmt.Errorf("proto: StateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4864 } 4865 switch fieldNum { 4866 case 1: 4867 if wireType != 2 { 4868 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 4869 } 4870 var stringLen uint64 4871 for shift := uint(0); ; shift += 7 { 4872 if shift >= 64 { 4873 return ErrIntOverflowShim 4874 } 4875 if iNdEx >= l { 4876 return io.ErrUnexpectedEOF 4877 } 4878 b := dAtA[iNdEx] 4879 iNdEx++ 4880 stringLen |= uint64(b&0x7F) << shift 4881 if b < 0x80 { 4882 break 4883 } 4884 } 4885 intStringLen := int(stringLen) 4886 if intStringLen < 0 { 4887 return ErrInvalidLengthShim 4888 } 4889 postIndex := iNdEx + intStringLen 4890 if postIndex < 0 { 4891 return ErrInvalidLengthShim 4892 } 4893 if postIndex > l { 4894 return io.ErrUnexpectedEOF 4895 } 4896 m.ID = string(dAtA[iNdEx:postIndex]) 4897 iNdEx = postIndex 4898 case 2: 4899 if wireType != 2 { 4900 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 4901 } 4902 var stringLen uint64 4903 for shift := uint(0); ; shift += 7 { 4904 if shift >= 64 { 4905 return ErrIntOverflowShim 4906 } 4907 if iNdEx >= l { 4908 return io.ErrUnexpectedEOF 4909 } 4910 b := dAtA[iNdEx] 4911 iNdEx++ 4912 stringLen |= uint64(b&0x7F) << shift 4913 if b < 0x80 { 4914 break 4915 } 4916 } 4917 intStringLen := int(stringLen) 4918 if intStringLen < 0 { 4919 return ErrInvalidLengthShim 4920 } 4921 postIndex := iNdEx + intStringLen 4922 if postIndex < 0 { 4923 return ErrInvalidLengthShim 4924 } 4925 if postIndex > l { 4926 return io.ErrUnexpectedEOF 4927 } 4928 m.ExecID = string(dAtA[iNdEx:postIndex]) 4929 iNdEx = postIndex 4930 default: 4931 iNdEx = preIndex 4932 skippy, err := skipShim(dAtA[iNdEx:]) 4933 if err != nil { 4934 return err 4935 } 4936 if skippy < 0 { 4937 return ErrInvalidLengthShim 4938 } 4939 if (iNdEx + skippy) < 0 { 4940 return ErrInvalidLengthShim 4941 } 4942 if (iNdEx + skippy) > l { 4943 return io.ErrUnexpectedEOF 4944 } 4945 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4946 iNdEx += skippy 4947 } 4948 } 4949 4950 if iNdEx > l { 4951 return io.ErrUnexpectedEOF 4952 } 4953 return nil 4954 } 4955 func (m *StateResponse) Unmarshal(dAtA []byte) error { 4956 l := len(dAtA) 4957 iNdEx := 0 4958 for iNdEx < l { 4959 preIndex := iNdEx 4960 var wire uint64 4961 for shift := uint(0); ; shift += 7 { 4962 if shift >= 64 { 4963 return ErrIntOverflowShim 4964 } 4965 if iNdEx >= l { 4966 return io.ErrUnexpectedEOF 4967 } 4968 b := dAtA[iNdEx] 4969 iNdEx++ 4970 wire |= uint64(b&0x7F) << shift 4971 if b < 0x80 { 4972 break 4973 } 4974 } 4975 fieldNum := int32(wire >> 3) 4976 wireType := int(wire & 0x7) 4977 if wireType == 4 { 4978 return fmt.Errorf("proto: StateResponse: wiretype end group for non-group") 4979 } 4980 if fieldNum <= 0 { 4981 return fmt.Errorf("proto: StateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4982 } 4983 switch fieldNum { 4984 case 1: 4985 if wireType != 2 { 4986 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 4987 } 4988 var stringLen uint64 4989 for shift := uint(0); ; shift += 7 { 4990 if shift >= 64 { 4991 return ErrIntOverflowShim 4992 } 4993 if iNdEx >= l { 4994 return io.ErrUnexpectedEOF 4995 } 4996 b := dAtA[iNdEx] 4997 iNdEx++ 4998 stringLen |= uint64(b&0x7F) << shift 4999 if b < 0x80 { 5000 break 5001 } 5002 } 5003 intStringLen := int(stringLen) 5004 if intStringLen < 0 { 5005 return ErrInvalidLengthShim 5006 } 5007 postIndex := iNdEx + intStringLen 5008 if postIndex < 0 { 5009 return ErrInvalidLengthShim 5010 } 5011 if postIndex > l { 5012 return io.ErrUnexpectedEOF 5013 } 5014 m.ID = string(dAtA[iNdEx:postIndex]) 5015 iNdEx = postIndex 5016 case 2: 5017 if wireType != 2 { 5018 return fmt.Errorf("proto: wrong wireType = %d for field Bundle", wireType) 5019 } 5020 var stringLen uint64 5021 for shift := uint(0); ; shift += 7 { 5022 if shift >= 64 { 5023 return ErrIntOverflowShim 5024 } 5025 if iNdEx >= l { 5026 return io.ErrUnexpectedEOF 5027 } 5028 b := dAtA[iNdEx] 5029 iNdEx++ 5030 stringLen |= uint64(b&0x7F) << shift 5031 if b < 0x80 { 5032 break 5033 } 5034 } 5035 intStringLen := int(stringLen) 5036 if intStringLen < 0 { 5037 return ErrInvalidLengthShim 5038 } 5039 postIndex := iNdEx + intStringLen 5040 if postIndex < 0 { 5041 return ErrInvalidLengthShim 5042 } 5043 if postIndex > l { 5044 return io.ErrUnexpectedEOF 5045 } 5046 m.Bundle = string(dAtA[iNdEx:postIndex]) 5047 iNdEx = postIndex 5048 case 3: 5049 if wireType != 0 { 5050 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 5051 } 5052 m.Pid = 0 5053 for shift := uint(0); ; shift += 7 { 5054 if shift >= 64 { 5055 return ErrIntOverflowShim 5056 } 5057 if iNdEx >= l { 5058 return io.ErrUnexpectedEOF 5059 } 5060 b := dAtA[iNdEx] 5061 iNdEx++ 5062 m.Pid |= uint32(b&0x7F) << shift 5063 if b < 0x80 { 5064 break 5065 } 5066 } 5067 case 4: 5068 if wireType != 0 { 5069 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 5070 } 5071 m.Status = 0 5072 for shift := uint(0); ; shift += 7 { 5073 if shift >= 64 { 5074 return ErrIntOverflowShim 5075 } 5076 if iNdEx >= l { 5077 return io.ErrUnexpectedEOF 5078 } 5079 b := dAtA[iNdEx] 5080 iNdEx++ 5081 m.Status |= task.Status(b&0x7F) << shift 5082 if b < 0x80 { 5083 break 5084 } 5085 } 5086 case 5: 5087 if wireType != 2 { 5088 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 5089 } 5090 var stringLen uint64 5091 for shift := uint(0); ; shift += 7 { 5092 if shift >= 64 { 5093 return ErrIntOverflowShim 5094 } 5095 if iNdEx >= l { 5096 return io.ErrUnexpectedEOF 5097 } 5098 b := dAtA[iNdEx] 5099 iNdEx++ 5100 stringLen |= uint64(b&0x7F) << shift 5101 if b < 0x80 { 5102 break 5103 } 5104 } 5105 intStringLen := int(stringLen) 5106 if intStringLen < 0 { 5107 return ErrInvalidLengthShim 5108 } 5109 postIndex := iNdEx + intStringLen 5110 if postIndex < 0 { 5111 return ErrInvalidLengthShim 5112 } 5113 if postIndex > l { 5114 return io.ErrUnexpectedEOF 5115 } 5116 m.Stdin = string(dAtA[iNdEx:postIndex]) 5117 iNdEx = postIndex 5118 case 6: 5119 if wireType != 2 { 5120 return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) 5121 } 5122 var stringLen uint64 5123 for shift := uint(0); ; shift += 7 { 5124 if shift >= 64 { 5125 return ErrIntOverflowShim 5126 } 5127 if iNdEx >= l { 5128 return io.ErrUnexpectedEOF 5129 } 5130 b := dAtA[iNdEx] 5131 iNdEx++ 5132 stringLen |= uint64(b&0x7F) << shift 5133 if b < 0x80 { 5134 break 5135 } 5136 } 5137 intStringLen := int(stringLen) 5138 if intStringLen < 0 { 5139 return ErrInvalidLengthShim 5140 } 5141 postIndex := iNdEx + intStringLen 5142 if postIndex < 0 { 5143 return ErrInvalidLengthShim 5144 } 5145 if postIndex > l { 5146 return io.ErrUnexpectedEOF 5147 } 5148 m.Stdout = string(dAtA[iNdEx:postIndex]) 5149 iNdEx = postIndex 5150 case 7: 5151 if wireType != 2 { 5152 return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) 5153 } 5154 var stringLen uint64 5155 for shift := uint(0); ; shift += 7 { 5156 if shift >= 64 { 5157 return ErrIntOverflowShim 5158 } 5159 if iNdEx >= l { 5160 return io.ErrUnexpectedEOF 5161 } 5162 b := dAtA[iNdEx] 5163 iNdEx++ 5164 stringLen |= uint64(b&0x7F) << shift 5165 if b < 0x80 { 5166 break 5167 } 5168 } 5169 intStringLen := int(stringLen) 5170 if intStringLen < 0 { 5171 return ErrInvalidLengthShim 5172 } 5173 postIndex := iNdEx + intStringLen 5174 if postIndex < 0 { 5175 return ErrInvalidLengthShim 5176 } 5177 if postIndex > l { 5178 return io.ErrUnexpectedEOF 5179 } 5180 m.Stderr = string(dAtA[iNdEx:postIndex]) 5181 iNdEx = postIndex 5182 case 8: 5183 if wireType != 0 { 5184 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 5185 } 5186 var v int 5187 for shift := uint(0); ; shift += 7 { 5188 if shift >= 64 { 5189 return ErrIntOverflowShim 5190 } 5191 if iNdEx >= l { 5192 return io.ErrUnexpectedEOF 5193 } 5194 b := dAtA[iNdEx] 5195 iNdEx++ 5196 v |= int(b&0x7F) << shift 5197 if b < 0x80 { 5198 break 5199 } 5200 } 5201 m.Terminal = bool(v != 0) 5202 case 9: 5203 if wireType != 0 { 5204 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 5205 } 5206 m.ExitStatus = 0 5207 for shift := uint(0); ; shift += 7 { 5208 if shift >= 64 { 5209 return ErrIntOverflowShim 5210 } 5211 if iNdEx >= l { 5212 return io.ErrUnexpectedEOF 5213 } 5214 b := dAtA[iNdEx] 5215 iNdEx++ 5216 m.ExitStatus |= uint32(b&0x7F) << shift 5217 if b < 0x80 { 5218 break 5219 } 5220 } 5221 case 10: 5222 if wireType != 2 { 5223 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 5224 } 5225 var msglen int 5226 for shift := uint(0); ; shift += 7 { 5227 if shift >= 64 { 5228 return ErrIntOverflowShim 5229 } 5230 if iNdEx >= l { 5231 return io.ErrUnexpectedEOF 5232 } 5233 b := dAtA[iNdEx] 5234 iNdEx++ 5235 msglen |= int(b&0x7F) << shift 5236 if b < 0x80 { 5237 break 5238 } 5239 } 5240 if msglen < 0 { 5241 return ErrInvalidLengthShim 5242 } 5243 postIndex := iNdEx + msglen 5244 if postIndex < 0 { 5245 return ErrInvalidLengthShim 5246 } 5247 if postIndex > l { 5248 return io.ErrUnexpectedEOF 5249 } 5250 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 5251 return err 5252 } 5253 iNdEx = postIndex 5254 case 11: 5255 if wireType != 2 { 5256 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 5257 } 5258 var stringLen uint64 5259 for shift := uint(0); ; shift += 7 { 5260 if shift >= 64 { 5261 return ErrIntOverflowShim 5262 } 5263 if iNdEx >= l { 5264 return io.ErrUnexpectedEOF 5265 } 5266 b := dAtA[iNdEx] 5267 iNdEx++ 5268 stringLen |= uint64(b&0x7F) << shift 5269 if b < 0x80 { 5270 break 5271 } 5272 } 5273 intStringLen := int(stringLen) 5274 if intStringLen < 0 { 5275 return ErrInvalidLengthShim 5276 } 5277 postIndex := iNdEx + intStringLen 5278 if postIndex < 0 { 5279 return ErrInvalidLengthShim 5280 } 5281 if postIndex > l { 5282 return io.ErrUnexpectedEOF 5283 } 5284 m.ExecID = string(dAtA[iNdEx:postIndex]) 5285 iNdEx = postIndex 5286 default: 5287 iNdEx = preIndex 5288 skippy, err := skipShim(dAtA[iNdEx:]) 5289 if err != nil { 5290 return err 5291 } 5292 if skippy < 0 { 5293 return ErrInvalidLengthShim 5294 } 5295 if (iNdEx + skippy) < 0 { 5296 return ErrInvalidLengthShim 5297 } 5298 if (iNdEx + skippy) > l { 5299 return io.ErrUnexpectedEOF 5300 } 5301 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5302 iNdEx += skippy 5303 } 5304 } 5305 5306 if iNdEx > l { 5307 return io.ErrUnexpectedEOF 5308 } 5309 return nil 5310 } 5311 func (m *KillRequest) Unmarshal(dAtA []byte) error { 5312 l := len(dAtA) 5313 iNdEx := 0 5314 for iNdEx < l { 5315 preIndex := iNdEx 5316 var wire uint64 5317 for shift := uint(0); ; shift += 7 { 5318 if shift >= 64 { 5319 return ErrIntOverflowShim 5320 } 5321 if iNdEx >= l { 5322 return io.ErrUnexpectedEOF 5323 } 5324 b := dAtA[iNdEx] 5325 iNdEx++ 5326 wire |= uint64(b&0x7F) << shift 5327 if b < 0x80 { 5328 break 5329 } 5330 } 5331 fieldNum := int32(wire >> 3) 5332 wireType := int(wire & 0x7) 5333 if wireType == 4 { 5334 return fmt.Errorf("proto: KillRequest: wiretype end group for non-group") 5335 } 5336 if fieldNum <= 0 { 5337 return fmt.Errorf("proto: KillRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5338 } 5339 switch fieldNum { 5340 case 1: 5341 if wireType != 2 { 5342 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 5343 } 5344 var stringLen uint64 5345 for shift := uint(0); ; shift += 7 { 5346 if shift >= 64 { 5347 return ErrIntOverflowShim 5348 } 5349 if iNdEx >= l { 5350 return io.ErrUnexpectedEOF 5351 } 5352 b := dAtA[iNdEx] 5353 iNdEx++ 5354 stringLen |= uint64(b&0x7F) << shift 5355 if b < 0x80 { 5356 break 5357 } 5358 } 5359 intStringLen := int(stringLen) 5360 if intStringLen < 0 { 5361 return ErrInvalidLengthShim 5362 } 5363 postIndex := iNdEx + intStringLen 5364 if postIndex < 0 { 5365 return ErrInvalidLengthShim 5366 } 5367 if postIndex > l { 5368 return io.ErrUnexpectedEOF 5369 } 5370 m.ID = string(dAtA[iNdEx:postIndex]) 5371 iNdEx = postIndex 5372 case 2: 5373 if wireType != 2 { 5374 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 5375 } 5376 var stringLen uint64 5377 for shift := uint(0); ; shift += 7 { 5378 if shift >= 64 { 5379 return ErrIntOverflowShim 5380 } 5381 if iNdEx >= l { 5382 return io.ErrUnexpectedEOF 5383 } 5384 b := dAtA[iNdEx] 5385 iNdEx++ 5386 stringLen |= uint64(b&0x7F) << shift 5387 if b < 0x80 { 5388 break 5389 } 5390 } 5391 intStringLen := int(stringLen) 5392 if intStringLen < 0 { 5393 return ErrInvalidLengthShim 5394 } 5395 postIndex := iNdEx + intStringLen 5396 if postIndex < 0 { 5397 return ErrInvalidLengthShim 5398 } 5399 if postIndex > l { 5400 return io.ErrUnexpectedEOF 5401 } 5402 m.ExecID = string(dAtA[iNdEx:postIndex]) 5403 iNdEx = postIndex 5404 case 3: 5405 if wireType != 0 { 5406 return fmt.Errorf("proto: wrong wireType = %d for field Signal", wireType) 5407 } 5408 m.Signal = 0 5409 for shift := uint(0); ; shift += 7 { 5410 if shift >= 64 { 5411 return ErrIntOverflowShim 5412 } 5413 if iNdEx >= l { 5414 return io.ErrUnexpectedEOF 5415 } 5416 b := dAtA[iNdEx] 5417 iNdEx++ 5418 m.Signal |= uint32(b&0x7F) << shift 5419 if b < 0x80 { 5420 break 5421 } 5422 } 5423 case 4: 5424 if wireType != 0 { 5425 return fmt.Errorf("proto: wrong wireType = %d for field All", wireType) 5426 } 5427 var v int 5428 for shift := uint(0); ; shift += 7 { 5429 if shift >= 64 { 5430 return ErrIntOverflowShim 5431 } 5432 if iNdEx >= l { 5433 return io.ErrUnexpectedEOF 5434 } 5435 b := dAtA[iNdEx] 5436 iNdEx++ 5437 v |= int(b&0x7F) << shift 5438 if b < 0x80 { 5439 break 5440 } 5441 } 5442 m.All = bool(v != 0) 5443 default: 5444 iNdEx = preIndex 5445 skippy, err := skipShim(dAtA[iNdEx:]) 5446 if err != nil { 5447 return err 5448 } 5449 if skippy < 0 { 5450 return ErrInvalidLengthShim 5451 } 5452 if (iNdEx + skippy) < 0 { 5453 return ErrInvalidLengthShim 5454 } 5455 if (iNdEx + skippy) > l { 5456 return io.ErrUnexpectedEOF 5457 } 5458 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5459 iNdEx += skippy 5460 } 5461 } 5462 5463 if iNdEx > l { 5464 return io.ErrUnexpectedEOF 5465 } 5466 return nil 5467 } 5468 func (m *CloseIORequest) Unmarshal(dAtA []byte) error { 5469 l := len(dAtA) 5470 iNdEx := 0 5471 for iNdEx < l { 5472 preIndex := iNdEx 5473 var wire uint64 5474 for shift := uint(0); ; shift += 7 { 5475 if shift >= 64 { 5476 return ErrIntOverflowShim 5477 } 5478 if iNdEx >= l { 5479 return io.ErrUnexpectedEOF 5480 } 5481 b := dAtA[iNdEx] 5482 iNdEx++ 5483 wire |= uint64(b&0x7F) << shift 5484 if b < 0x80 { 5485 break 5486 } 5487 } 5488 fieldNum := int32(wire >> 3) 5489 wireType := int(wire & 0x7) 5490 if wireType == 4 { 5491 return fmt.Errorf("proto: CloseIORequest: wiretype end group for non-group") 5492 } 5493 if fieldNum <= 0 { 5494 return fmt.Errorf("proto: CloseIORequest: illegal tag %d (wire type %d)", fieldNum, wire) 5495 } 5496 switch fieldNum { 5497 case 1: 5498 if wireType != 2 { 5499 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 5500 } 5501 var stringLen uint64 5502 for shift := uint(0); ; shift += 7 { 5503 if shift >= 64 { 5504 return ErrIntOverflowShim 5505 } 5506 if iNdEx >= l { 5507 return io.ErrUnexpectedEOF 5508 } 5509 b := dAtA[iNdEx] 5510 iNdEx++ 5511 stringLen |= uint64(b&0x7F) << shift 5512 if b < 0x80 { 5513 break 5514 } 5515 } 5516 intStringLen := int(stringLen) 5517 if intStringLen < 0 { 5518 return ErrInvalidLengthShim 5519 } 5520 postIndex := iNdEx + intStringLen 5521 if postIndex < 0 { 5522 return ErrInvalidLengthShim 5523 } 5524 if postIndex > l { 5525 return io.ErrUnexpectedEOF 5526 } 5527 m.ID = string(dAtA[iNdEx:postIndex]) 5528 iNdEx = postIndex 5529 case 2: 5530 if wireType != 2 { 5531 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 5532 } 5533 var stringLen uint64 5534 for shift := uint(0); ; shift += 7 { 5535 if shift >= 64 { 5536 return ErrIntOverflowShim 5537 } 5538 if iNdEx >= l { 5539 return io.ErrUnexpectedEOF 5540 } 5541 b := dAtA[iNdEx] 5542 iNdEx++ 5543 stringLen |= uint64(b&0x7F) << shift 5544 if b < 0x80 { 5545 break 5546 } 5547 } 5548 intStringLen := int(stringLen) 5549 if intStringLen < 0 { 5550 return ErrInvalidLengthShim 5551 } 5552 postIndex := iNdEx + intStringLen 5553 if postIndex < 0 { 5554 return ErrInvalidLengthShim 5555 } 5556 if postIndex > l { 5557 return io.ErrUnexpectedEOF 5558 } 5559 m.ExecID = string(dAtA[iNdEx:postIndex]) 5560 iNdEx = postIndex 5561 case 3: 5562 if wireType != 0 { 5563 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 5564 } 5565 var v int 5566 for shift := uint(0); ; shift += 7 { 5567 if shift >= 64 { 5568 return ErrIntOverflowShim 5569 } 5570 if iNdEx >= l { 5571 return io.ErrUnexpectedEOF 5572 } 5573 b := dAtA[iNdEx] 5574 iNdEx++ 5575 v |= int(b&0x7F) << shift 5576 if b < 0x80 { 5577 break 5578 } 5579 } 5580 m.Stdin = bool(v != 0) 5581 default: 5582 iNdEx = preIndex 5583 skippy, err := skipShim(dAtA[iNdEx:]) 5584 if err != nil { 5585 return err 5586 } 5587 if skippy < 0 { 5588 return ErrInvalidLengthShim 5589 } 5590 if (iNdEx + skippy) < 0 { 5591 return ErrInvalidLengthShim 5592 } 5593 if (iNdEx + skippy) > l { 5594 return io.ErrUnexpectedEOF 5595 } 5596 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5597 iNdEx += skippy 5598 } 5599 } 5600 5601 if iNdEx > l { 5602 return io.ErrUnexpectedEOF 5603 } 5604 return nil 5605 } 5606 func (m *PidsRequest) Unmarshal(dAtA []byte) error { 5607 l := len(dAtA) 5608 iNdEx := 0 5609 for iNdEx < l { 5610 preIndex := iNdEx 5611 var wire uint64 5612 for shift := uint(0); ; shift += 7 { 5613 if shift >= 64 { 5614 return ErrIntOverflowShim 5615 } 5616 if iNdEx >= l { 5617 return io.ErrUnexpectedEOF 5618 } 5619 b := dAtA[iNdEx] 5620 iNdEx++ 5621 wire |= uint64(b&0x7F) << shift 5622 if b < 0x80 { 5623 break 5624 } 5625 } 5626 fieldNum := int32(wire >> 3) 5627 wireType := int(wire & 0x7) 5628 if wireType == 4 { 5629 return fmt.Errorf("proto: PidsRequest: wiretype end group for non-group") 5630 } 5631 if fieldNum <= 0 { 5632 return fmt.Errorf("proto: PidsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5633 } 5634 switch fieldNum { 5635 case 1: 5636 if wireType != 2 { 5637 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 5638 } 5639 var stringLen uint64 5640 for shift := uint(0); ; shift += 7 { 5641 if shift >= 64 { 5642 return ErrIntOverflowShim 5643 } 5644 if iNdEx >= l { 5645 return io.ErrUnexpectedEOF 5646 } 5647 b := dAtA[iNdEx] 5648 iNdEx++ 5649 stringLen |= uint64(b&0x7F) << shift 5650 if b < 0x80 { 5651 break 5652 } 5653 } 5654 intStringLen := int(stringLen) 5655 if intStringLen < 0 { 5656 return ErrInvalidLengthShim 5657 } 5658 postIndex := iNdEx + intStringLen 5659 if postIndex < 0 { 5660 return ErrInvalidLengthShim 5661 } 5662 if postIndex > l { 5663 return io.ErrUnexpectedEOF 5664 } 5665 m.ID = string(dAtA[iNdEx:postIndex]) 5666 iNdEx = postIndex 5667 default: 5668 iNdEx = preIndex 5669 skippy, err := skipShim(dAtA[iNdEx:]) 5670 if err != nil { 5671 return err 5672 } 5673 if skippy < 0 { 5674 return ErrInvalidLengthShim 5675 } 5676 if (iNdEx + skippy) < 0 { 5677 return ErrInvalidLengthShim 5678 } 5679 if (iNdEx + skippy) > l { 5680 return io.ErrUnexpectedEOF 5681 } 5682 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5683 iNdEx += skippy 5684 } 5685 } 5686 5687 if iNdEx > l { 5688 return io.ErrUnexpectedEOF 5689 } 5690 return nil 5691 } 5692 func (m *PidsResponse) Unmarshal(dAtA []byte) error { 5693 l := len(dAtA) 5694 iNdEx := 0 5695 for iNdEx < l { 5696 preIndex := iNdEx 5697 var wire uint64 5698 for shift := uint(0); ; shift += 7 { 5699 if shift >= 64 { 5700 return ErrIntOverflowShim 5701 } 5702 if iNdEx >= l { 5703 return io.ErrUnexpectedEOF 5704 } 5705 b := dAtA[iNdEx] 5706 iNdEx++ 5707 wire |= uint64(b&0x7F) << shift 5708 if b < 0x80 { 5709 break 5710 } 5711 } 5712 fieldNum := int32(wire >> 3) 5713 wireType := int(wire & 0x7) 5714 if wireType == 4 { 5715 return fmt.Errorf("proto: PidsResponse: wiretype end group for non-group") 5716 } 5717 if fieldNum <= 0 { 5718 return fmt.Errorf("proto: PidsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5719 } 5720 switch fieldNum { 5721 case 1: 5722 if wireType != 2 { 5723 return fmt.Errorf("proto: wrong wireType = %d for field Processes", wireType) 5724 } 5725 var msglen int 5726 for shift := uint(0); ; shift += 7 { 5727 if shift >= 64 { 5728 return ErrIntOverflowShim 5729 } 5730 if iNdEx >= l { 5731 return io.ErrUnexpectedEOF 5732 } 5733 b := dAtA[iNdEx] 5734 iNdEx++ 5735 msglen |= int(b&0x7F) << shift 5736 if b < 0x80 { 5737 break 5738 } 5739 } 5740 if msglen < 0 { 5741 return ErrInvalidLengthShim 5742 } 5743 postIndex := iNdEx + msglen 5744 if postIndex < 0 { 5745 return ErrInvalidLengthShim 5746 } 5747 if postIndex > l { 5748 return io.ErrUnexpectedEOF 5749 } 5750 m.Processes = append(m.Processes, &task.ProcessInfo{}) 5751 if err := m.Processes[len(m.Processes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5752 return err 5753 } 5754 iNdEx = postIndex 5755 default: 5756 iNdEx = preIndex 5757 skippy, err := skipShim(dAtA[iNdEx:]) 5758 if err != nil { 5759 return err 5760 } 5761 if skippy < 0 { 5762 return ErrInvalidLengthShim 5763 } 5764 if (iNdEx + skippy) < 0 { 5765 return ErrInvalidLengthShim 5766 } 5767 if (iNdEx + skippy) > l { 5768 return io.ErrUnexpectedEOF 5769 } 5770 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5771 iNdEx += skippy 5772 } 5773 } 5774 5775 if iNdEx > l { 5776 return io.ErrUnexpectedEOF 5777 } 5778 return nil 5779 } 5780 func (m *CheckpointTaskRequest) Unmarshal(dAtA []byte) error { 5781 l := len(dAtA) 5782 iNdEx := 0 5783 for iNdEx < l { 5784 preIndex := iNdEx 5785 var wire uint64 5786 for shift := uint(0); ; shift += 7 { 5787 if shift >= 64 { 5788 return ErrIntOverflowShim 5789 } 5790 if iNdEx >= l { 5791 return io.ErrUnexpectedEOF 5792 } 5793 b := dAtA[iNdEx] 5794 iNdEx++ 5795 wire |= uint64(b&0x7F) << shift 5796 if b < 0x80 { 5797 break 5798 } 5799 } 5800 fieldNum := int32(wire >> 3) 5801 wireType := int(wire & 0x7) 5802 if wireType == 4 { 5803 return fmt.Errorf("proto: CheckpointTaskRequest: wiretype end group for non-group") 5804 } 5805 if fieldNum <= 0 { 5806 return fmt.Errorf("proto: CheckpointTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5807 } 5808 switch fieldNum { 5809 case 1: 5810 if wireType != 2 { 5811 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 5812 } 5813 var stringLen uint64 5814 for shift := uint(0); ; shift += 7 { 5815 if shift >= 64 { 5816 return ErrIntOverflowShim 5817 } 5818 if iNdEx >= l { 5819 return io.ErrUnexpectedEOF 5820 } 5821 b := dAtA[iNdEx] 5822 iNdEx++ 5823 stringLen |= uint64(b&0x7F) << shift 5824 if b < 0x80 { 5825 break 5826 } 5827 } 5828 intStringLen := int(stringLen) 5829 if intStringLen < 0 { 5830 return ErrInvalidLengthShim 5831 } 5832 postIndex := iNdEx + intStringLen 5833 if postIndex < 0 { 5834 return ErrInvalidLengthShim 5835 } 5836 if postIndex > l { 5837 return io.ErrUnexpectedEOF 5838 } 5839 m.ID = string(dAtA[iNdEx:postIndex]) 5840 iNdEx = postIndex 5841 case 2: 5842 if wireType != 2 { 5843 return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) 5844 } 5845 var stringLen uint64 5846 for shift := uint(0); ; shift += 7 { 5847 if shift >= 64 { 5848 return ErrIntOverflowShim 5849 } 5850 if iNdEx >= l { 5851 return io.ErrUnexpectedEOF 5852 } 5853 b := dAtA[iNdEx] 5854 iNdEx++ 5855 stringLen |= uint64(b&0x7F) << shift 5856 if b < 0x80 { 5857 break 5858 } 5859 } 5860 intStringLen := int(stringLen) 5861 if intStringLen < 0 { 5862 return ErrInvalidLengthShim 5863 } 5864 postIndex := iNdEx + intStringLen 5865 if postIndex < 0 { 5866 return ErrInvalidLengthShim 5867 } 5868 if postIndex > l { 5869 return io.ErrUnexpectedEOF 5870 } 5871 m.Path = string(dAtA[iNdEx:postIndex]) 5872 iNdEx = postIndex 5873 case 3: 5874 if wireType != 2 { 5875 return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) 5876 } 5877 var msglen int 5878 for shift := uint(0); ; shift += 7 { 5879 if shift >= 64 { 5880 return ErrIntOverflowShim 5881 } 5882 if iNdEx >= l { 5883 return io.ErrUnexpectedEOF 5884 } 5885 b := dAtA[iNdEx] 5886 iNdEx++ 5887 msglen |= int(b&0x7F) << shift 5888 if b < 0x80 { 5889 break 5890 } 5891 } 5892 if msglen < 0 { 5893 return ErrInvalidLengthShim 5894 } 5895 postIndex := iNdEx + msglen 5896 if postIndex < 0 { 5897 return ErrInvalidLengthShim 5898 } 5899 if postIndex > l { 5900 return io.ErrUnexpectedEOF 5901 } 5902 if m.Options == nil { 5903 m.Options = &types1.Any{} 5904 } 5905 if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5906 return err 5907 } 5908 iNdEx = postIndex 5909 default: 5910 iNdEx = preIndex 5911 skippy, err := skipShim(dAtA[iNdEx:]) 5912 if err != nil { 5913 return err 5914 } 5915 if skippy < 0 { 5916 return ErrInvalidLengthShim 5917 } 5918 if (iNdEx + skippy) < 0 { 5919 return ErrInvalidLengthShim 5920 } 5921 if (iNdEx + skippy) > l { 5922 return io.ErrUnexpectedEOF 5923 } 5924 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5925 iNdEx += skippy 5926 } 5927 } 5928 5929 if iNdEx > l { 5930 return io.ErrUnexpectedEOF 5931 } 5932 return nil 5933 } 5934 func (m *UpdateTaskRequest) Unmarshal(dAtA []byte) error { 5935 l := len(dAtA) 5936 iNdEx := 0 5937 for iNdEx < l { 5938 preIndex := iNdEx 5939 var wire uint64 5940 for shift := uint(0); ; shift += 7 { 5941 if shift >= 64 { 5942 return ErrIntOverflowShim 5943 } 5944 if iNdEx >= l { 5945 return io.ErrUnexpectedEOF 5946 } 5947 b := dAtA[iNdEx] 5948 iNdEx++ 5949 wire |= uint64(b&0x7F) << shift 5950 if b < 0x80 { 5951 break 5952 } 5953 } 5954 fieldNum := int32(wire >> 3) 5955 wireType := int(wire & 0x7) 5956 if wireType == 4 { 5957 return fmt.Errorf("proto: UpdateTaskRequest: wiretype end group for non-group") 5958 } 5959 if fieldNum <= 0 { 5960 return fmt.Errorf("proto: UpdateTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5961 } 5962 switch fieldNum { 5963 case 1: 5964 if wireType != 2 { 5965 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 5966 } 5967 var stringLen uint64 5968 for shift := uint(0); ; shift += 7 { 5969 if shift >= 64 { 5970 return ErrIntOverflowShim 5971 } 5972 if iNdEx >= l { 5973 return io.ErrUnexpectedEOF 5974 } 5975 b := dAtA[iNdEx] 5976 iNdEx++ 5977 stringLen |= uint64(b&0x7F) << shift 5978 if b < 0x80 { 5979 break 5980 } 5981 } 5982 intStringLen := int(stringLen) 5983 if intStringLen < 0 { 5984 return ErrInvalidLengthShim 5985 } 5986 postIndex := iNdEx + intStringLen 5987 if postIndex < 0 { 5988 return ErrInvalidLengthShim 5989 } 5990 if postIndex > l { 5991 return io.ErrUnexpectedEOF 5992 } 5993 m.ID = string(dAtA[iNdEx:postIndex]) 5994 iNdEx = postIndex 5995 case 2: 5996 if wireType != 2 { 5997 return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) 5998 } 5999 var msglen int 6000 for shift := uint(0); ; shift += 7 { 6001 if shift >= 64 { 6002 return ErrIntOverflowShim 6003 } 6004 if iNdEx >= l { 6005 return io.ErrUnexpectedEOF 6006 } 6007 b := dAtA[iNdEx] 6008 iNdEx++ 6009 msglen |= int(b&0x7F) << shift 6010 if b < 0x80 { 6011 break 6012 } 6013 } 6014 if msglen < 0 { 6015 return ErrInvalidLengthShim 6016 } 6017 postIndex := iNdEx + msglen 6018 if postIndex < 0 { 6019 return ErrInvalidLengthShim 6020 } 6021 if postIndex > l { 6022 return io.ErrUnexpectedEOF 6023 } 6024 if m.Resources == nil { 6025 m.Resources = &types1.Any{} 6026 } 6027 if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6028 return err 6029 } 6030 iNdEx = postIndex 6031 default: 6032 iNdEx = preIndex 6033 skippy, err := skipShim(dAtA[iNdEx:]) 6034 if err != nil { 6035 return err 6036 } 6037 if skippy < 0 { 6038 return ErrInvalidLengthShim 6039 } 6040 if (iNdEx + skippy) < 0 { 6041 return ErrInvalidLengthShim 6042 } 6043 if (iNdEx + skippy) > l { 6044 return io.ErrUnexpectedEOF 6045 } 6046 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6047 iNdEx += skippy 6048 } 6049 } 6050 6051 if iNdEx > l { 6052 return io.ErrUnexpectedEOF 6053 } 6054 return nil 6055 } 6056 func (m *StartRequest) Unmarshal(dAtA []byte) error { 6057 l := len(dAtA) 6058 iNdEx := 0 6059 for iNdEx < l { 6060 preIndex := iNdEx 6061 var wire uint64 6062 for shift := uint(0); ; shift += 7 { 6063 if shift >= 64 { 6064 return ErrIntOverflowShim 6065 } 6066 if iNdEx >= l { 6067 return io.ErrUnexpectedEOF 6068 } 6069 b := dAtA[iNdEx] 6070 iNdEx++ 6071 wire |= uint64(b&0x7F) << shift 6072 if b < 0x80 { 6073 break 6074 } 6075 } 6076 fieldNum := int32(wire >> 3) 6077 wireType := int(wire & 0x7) 6078 if wireType == 4 { 6079 return fmt.Errorf("proto: StartRequest: wiretype end group for non-group") 6080 } 6081 if fieldNum <= 0 { 6082 return fmt.Errorf("proto: StartRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6083 } 6084 switch fieldNum { 6085 case 1: 6086 if wireType != 2 { 6087 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6088 } 6089 var stringLen uint64 6090 for shift := uint(0); ; shift += 7 { 6091 if shift >= 64 { 6092 return ErrIntOverflowShim 6093 } 6094 if iNdEx >= l { 6095 return io.ErrUnexpectedEOF 6096 } 6097 b := dAtA[iNdEx] 6098 iNdEx++ 6099 stringLen |= uint64(b&0x7F) << shift 6100 if b < 0x80 { 6101 break 6102 } 6103 } 6104 intStringLen := int(stringLen) 6105 if intStringLen < 0 { 6106 return ErrInvalidLengthShim 6107 } 6108 postIndex := iNdEx + intStringLen 6109 if postIndex < 0 { 6110 return ErrInvalidLengthShim 6111 } 6112 if postIndex > l { 6113 return io.ErrUnexpectedEOF 6114 } 6115 m.ID = string(dAtA[iNdEx:postIndex]) 6116 iNdEx = postIndex 6117 case 2: 6118 if wireType != 2 { 6119 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 6120 } 6121 var stringLen uint64 6122 for shift := uint(0); ; shift += 7 { 6123 if shift >= 64 { 6124 return ErrIntOverflowShim 6125 } 6126 if iNdEx >= l { 6127 return io.ErrUnexpectedEOF 6128 } 6129 b := dAtA[iNdEx] 6130 iNdEx++ 6131 stringLen |= uint64(b&0x7F) << shift 6132 if b < 0x80 { 6133 break 6134 } 6135 } 6136 intStringLen := int(stringLen) 6137 if intStringLen < 0 { 6138 return ErrInvalidLengthShim 6139 } 6140 postIndex := iNdEx + intStringLen 6141 if postIndex < 0 { 6142 return ErrInvalidLengthShim 6143 } 6144 if postIndex > l { 6145 return io.ErrUnexpectedEOF 6146 } 6147 m.ExecID = string(dAtA[iNdEx:postIndex]) 6148 iNdEx = postIndex 6149 default: 6150 iNdEx = preIndex 6151 skippy, err := skipShim(dAtA[iNdEx:]) 6152 if err != nil { 6153 return err 6154 } 6155 if skippy < 0 { 6156 return ErrInvalidLengthShim 6157 } 6158 if (iNdEx + skippy) < 0 { 6159 return ErrInvalidLengthShim 6160 } 6161 if (iNdEx + skippy) > l { 6162 return io.ErrUnexpectedEOF 6163 } 6164 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6165 iNdEx += skippy 6166 } 6167 } 6168 6169 if iNdEx > l { 6170 return io.ErrUnexpectedEOF 6171 } 6172 return nil 6173 } 6174 func (m *StartResponse) Unmarshal(dAtA []byte) error { 6175 l := len(dAtA) 6176 iNdEx := 0 6177 for iNdEx < l { 6178 preIndex := iNdEx 6179 var wire uint64 6180 for shift := uint(0); ; shift += 7 { 6181 if shift >= 64 { 6182 return ErrIntOverflowShim 6183 } 6184 if iNdEx >= l { 6185 return io.ErrUnexpectedEOF 6186 } 6187 b := dAtA[iNdEx] 6188 iNdEx++ 6189 wire |= uint64(b&0x7F) << shift 6190 if b < 0x80 { 6191 break 6192 } 6193 } 6194 fieldNum := int32(wire >> 3) 6195 wireType := int(wire & 0x7) 6196 if wireType == 4 { 6197 return fmt.Errorf("proto: StartResponse: wiretype end group for non-group") 6198 } 6199 if fieldNum <= 0 { 6200 return fmt.Errorf("proto: StartResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6201 } 6202 switch fieldNum { 6203 case 1: 6204 if wireType != 0 { 6205 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 6206 } 6207 m.Pid = 0 6208 for shift := uint(0); ; shift += 7 { 6209 if shift >= 64 { 6210 return ErrIntOverflowShim 6211 } 6212 if iNdEx >= l { 6213 return io.ErrUnexpectedEOF 6214 } 6215 b := dAtA[iNdEx] 6216 iNdEx++ 6217 m.Pid |= uint32(b&0x7F) << shift 6218 if b < 0x80 { 6219 break 6220 } 6221 } 6222 default: 6223 iNdEx = preIndex 6224 skippy, err := skipShim(dAtA[iNdEx:]) 6225 if err != nil { 6226 return err 6227 } 6228 if skippy < 0 { 6229 return ErrInvalidLengthShim 6230 } 6231 if (iNdEx + skippy) < 0 { 6232 return ErrInvalidLengthShim 6233 } 6234 if (iNdEx + skippy) > l { 6235 return io.ErrUnexpectedEOF 6236 } 6237 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6238 iNdEx += skippy 6239 } 6240 } 6241 6242 if iNdEx > l { 6243 return io.ErrUnexpectedEOF 6244 } 6245 return nil 6246 } 6247 func (m *WaitRequest) Unmarshal(dAtA []byte) error { 6248 l := len(dAtA) 6249 iNdEx := 0 6250 for iNdEx < l { 6251 preIndex := iNdEx 6252 var wire uint64 6253 for shift := uint(0); ; shift += 7 { 6254 if shift >= 64 { 6255 return ErrIntOverflowShim 6256 } 6257 if iNdEx >= l { 6258 return io.ErrUnexpectedEOF 6259 } 6260 b := dAtA[iNdEx] 6261 iNdEx++ 6262 wire |= uint64(b&0x7F) << shift 6263 if b < 0x80 { 6264 break 6265 } 6266 } 6267 fieldNum := int32(wire >> 3) 6268 wireType := int(wire & 0x7) 6269 if wireType == 4 { 6270 return fmt.Errorf("proto: WaitRequest: wiretype end group for non-group") 6271 } 6272 if fieldNum <= 0 { 6273 return fmt.Errorf("proto: WaitRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6274 } 6275 switch fieldNum { 6276 case 1: 6277 if wireType != 2 { 6278 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6279 } 6280 var stringLen uint64 6281 for shift := uint(0); ; shift += 7 { 6282 if shift >= 64 { 6283 return ErrIntOverflowShim 6284 } 6285 if iNdEx >= l { 6286 return io.ErrUnexpectedEOF 6287 } 6288 b := dAtA[iNdEx] 6289 iNdEx++ 6290 stringLen |= uint64(b&0x7F) << shift 6291 if b < 0x80 { 6292 break 6293 } 6294 } 6295 intStringLen := int(stringLen) 6296 if intStringLen < 0 { 6297 return ErrInvalidLengthShim 6298 } 6299 postIndex := iNdEx + intStringLen 6300 if postIndex < 0 { 6301 return ErrInvalidLengthShim 6302 } 6303 if postIndex > l { 6304 return io.ErrUnexpectedEOF 6305 } 6306 m.ID = string(dAtA[iNdEx:postIndex]) 6307 iNdEx = postIndex 6308 case 2: 6309 if wireType != 2 { 6310 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 6311 } 6312 var stringLen uint64 6313 for shift := uint(0); ; shift += 7 { 6314 if shift >= 64 { 6315 return ErrIntOverflowShim 6316 } 6317 if iNdEx >= l { 6318 return io.ErrUnexpectedEOF 6319 } 6320 b := dAtA[iNdEx] 6321 iNdEx++ 6322 stringLen |= uint64(b&0x7F) << shift 6323 if b < 0x80 { 6324 break 6325 } 6326 } 6327 intStringLen := int(stringLen) 6328 if intStringLen < 0 { 6329 return ErrInvalidLengthShim 6330 } 6331 postIndex := iNdEx + intStringLen 6332 if postIndex < 0 { 6333 return ErrInvalidLengthShim 6334 } 6335 if postIndex > l { 6336 return io.ErrUnexpectedEOF 6337 } 6338 m.ExecID = string(dAtA[iNdEx:postIndex]) 6339 iNdEx = postIndex 6340 default: 6341 iNdEx = preIndex 6342 skippy, err := skipShim(dAtA[iNdEx:]) 6343 if err != nil { 6344 return err 6345 } 6346 if skippy < 0 { 6347 return ErrInvalidLengthShim 6348 } 6349 if (iNdEx + skippy) < 0 { 6350 return ErrInvalidLengthShim 6351 } 6352 if (iNdEx + skippy) > l { 6353 return io.ErrUnexpectedEOF 6354 } 6355 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6356 iNdEx += skippy 6357 } 6358 } 6359 6360 if iNdEx > l { 6361 return io.ErrUnexpectedEOF 6362 } 6363 return nil 6364 } 6365 func (m *WaitResponse) Unmarshal(dAtA []byte) error { 6366 l := len(dAtA) 6367 iNdEx := 0 6368 for iNdEx < l { 6369 preIndex := iNdEx 6370 var wire uint64 6371 for shift := uint(0); ; shift += 7 { 6372 if shift >= 64 { 6373 return ErrIntOverflowShim 6374 } 6375 if iNdEx >= l { 6376 return io.ErrUnexpectedEOF 6377 } 6378 b := dAtA[iNdEx] 6379 iNdEx++ 6380 wire |= uint64(b&0x7F) << shift 6381 if b < 0x80 { 6382 break 6383 } 6384 } 6385 fieldNum := int32(wire >> 3) 6386 wireType := int(wire & 0x7) 6387 if wireType == 4 { 6388 return fmt.Errorf("proto: WaitResponse: wiretype end group for non-group") 6389 } 6390 if fieldNum <= 0 { 6391 return fmt.Errorf("proto: WaitResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6392 } 6393 switch fieldNum { 6394 case 1: 6395 if wireType != 0 { 6396 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 6397 } 6398 m.ExitStatus = 0 6399 for shift := uint(0); ; shift += 7 { 6400 if shift >= 64 { 6401 return ErrIntOverflowShim 6402 } 6403 if iNdEx >= l { 6404 return io.ErrUnexpectedEOF 6405 } 6406 b := dAtA[iNdEx] 6407 iNdEx++ 6408 m.ExitStatus |= uint32(b&0x7F) << shift 6409 if b < 0x80 { 6410 break 6411 } 6412 } 6413 case 2: 6414 if wireType != 2 { 6415 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 6416 } 6417 var msglen int 6418 for shift := uint(0); ; shift += 7 { 6419 if shift >= 64 { 6420 return ErrIntOverflowShim 6421 } 6422 if iNdEx >= l { 6423 return io.ErrUnexpectedEOF 6424 } 6425 b := dAtA[iNdEx] 6426 iNdEx++ 6427 msglen |= int(b&0x7F) << shift 6428 if b < 0x80 { 6429 break 6430 } 6431 } 6432 if msglen < 0 { 6433 return ErrInvalidLengthShim 6434 } 6435 postIndex := iNdEx + msglen 6436 if postIndex < 0 { 6437 return ErrInvalidLengthShim 6438 } 6439 if postIndex > l { 6440 return io.ErrUnexpectedEOF 6441 } 6442 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 6443 return err 6444 } 6445 iNdEx = postIndex 6446 default: 6447 iNdEx = preIndex 6448 skippy, err := skipShim(dAtA[iNdEx:]) 6449 if err != nil { 6450 return err 6451 } 6452 if skippy < 0 { 6453 return ErrInvalidLengthShim 6454 } 6455 if (iNdEx + skippy) < 0 { 6456 return ErrInvalidLengthShim 6457 } 6458 if (iNdEx + skippy) > l { 6459 return io.ErrUnexpectedEOF 6460 } 6461 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6462 iNdEx += skippy 6463 } 6464 } 6465 6466 if iNdEx > l { 6467 return io.ErrUnexpectedEOF 6468 } 6469 return nil 6470 } 6471 func (m *StatsRequest) Unmarshal(dAtA []byte) error { 6472 l := len(dAtA) 6473 iNdEx := 0 6474 for iNdEx < l { 6475 preIndex := iNdEx 6476 var wire uint64 6477 for shift := uint(0); ; shift += 7 { 6478 if shift >= 64 { 6479 return ErrIntOverflowShim 6480 } 6481 if iNdEx >= l { 6482 return io.ErrUnexpectedEOF 6483 } 6484 b := dAtA[iNdEx] 6485 iNdEx++ 6486 wire |= uint64(b&0x7F) << shift 6487 if b < 0x80 { 6488 break 6489 } 6490 } 6491 fieldNum := int32(wire >> 3) 6492 wireType := int(wire & 0x7) 6493 if wireType == 4 { 6494 return fmt.Errorf("proto: StatsRequest: wiretype end group for non-group") 6495 } 6496 if fieldNum <= 0 { 6497 return fmt.Errorf("proto: StatsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6498 } 6499 switch fieldNum { 6500 case 1: 6501 if wireType != 2 { 6502 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6503 } 6504 var stringLen uint64 6505 for shift := uint(0); ; shift += 7 { 6506 if shift >= 64 { 6507 return ErrIntOverflowShim 6508 } 6509 if iNdEx >= l { 6510 return io.ErrUnexpectedEOF 6511 } 6512 b := dAtA[iNdEx] 6513 iNdEx++ 6514 stringLen |= uint64(b&0x7F) << shift 6515 if b < 0x80 { 6516 break 6517 } 6518 } 6519 intStringLen := int(stringLen) 6520 if intStringLen < 0 { 6521 return ErrInvalidLengthShim 6522 } 6523 postIndex := iNdEx + intStringLen 6524 if postIndex < 0 { 6525 return ErrInvalidLengthShim 6526 } 6527 if postIndex > l { 6528 return io.ErrUnexpectedEOF 6529 } 6530 m.ID = string(dAtA[iNdEx:postIndex]) 6531 iNdEx = postIndex 6532 default: 6533 iNdEx = preIndex 6534 skippy, err := skipShim(dAtA[iNdEx:]) 6535 if err != nil { 6536 return err 6537 } 6538 if skippy < 0 { 6539 return ErrInvalidLengthShim 6540 } 6541 if (iNdEx + skippy) < 0 { 6542 return ErrInvalidLengthShim 6543 } 6544 if (iNdEx + skippy) > l { 6545 return io.ErrUnexpectedEOF 6546 } 6547 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6548 iNdEx += skippy 6549 } 6550 } 6551 6552 if iNdEx > l { 6553 return io.ErrUnexpectedEOF 6554 } 6555 return nil 6556 } 6557 func (m *StatsResponse) Unmarshal(dAtA []byte) error { 6558 l := len(dAtA) 6559 iNdEx := 0 6560 for iNdEx < l { 6561 preIndex := iNdEx 6562 var wire uint64 6563 for shift := uint(0); ; shift += 7 { 6564 if shift >= 64 { 6565 return ErrIntOverflowShim 6566 } 6567 if iNdEx >= l { 6568 return io.ErrUnexpectedEOF 6569 } 6570 b := dAtA[iNdEx] 6571 iNdEx++ 6572 wire |= uint64(b&0x7F) << shift 6573 if b < 0x80 { 6574 break 6575 } 6576 } 6577 fieldNum := int32(wire >> 3) 6578 wireType := int(wire & 0x7) 6579 if wireType == 4 { 6580 return fmt.Errorf("proto: StatsResponse: wiretype end group for non-group") 6581 } 6582 if fieldNum <= 0 { 6583 return fmt.Errorf("proto: StatsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6584 } 6585 switch fieldNum { 6586 case 1: 6587 if wireType != 2 { 6588 return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) 6589 } 6590 var msglen int 6591 for shift := uint(0); ; shift += 7 { 6592 if shift >= 64 { 6593 return ErrIntOverflowShim 6594 } 6595 if iNdEx >= l { 6596 return io.ErrUnexpectedEOF 6597 } 6598 b := dAtA[iNdEx] 6599 iNdEx++ 6600 msglen |= int(b&0x7F) << shift 6601 if b < 0x80 { 6602 break 6603 } 6604 } 6605 if msglen < 0 { 6606 return ErrInvalidLengthShim 6607 } 6608 postIndex := iNdEx + msglen 6609 if postIndex < 0 { 6610 return ErrInvalidLengthShim 6611 } 6612 if postIndex > l { 6613 return io.ErrUnexpectedEOF 6614 } 6615 if m.Stats == nil { 6616 m.Stats = &types1.Any{} 6617 } 6618 if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6619 return err 6620 } 6621 iNdEx = postIndex 6622 default: 6623 iNdEx = preIndex 6624 skippy, err := skipShim(dAtA[iNdEx:]) 6625 if err != nil { 6626 return err 6627 } 6628 if skippy < 0 { 6629 return ErrInvalidLengthShim 6630 } 6631 if (iNdEx + skippy) < 0 { 6632 return ErrInvalidLengthShim 6633 } 6634 if (iNdEx + skippy) > l { 6635 return io.ErrUnexpectedEOF 6636 } 6637 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6638 iNdEx += skippy 6639 } 6640 } 6641 6642 if iNdEx > l { 6643 return io.ErrUnexpectedEOF 6644 } 6645 return nil 6646 } 6647 func (m *ConnectRequest) Unmarshal(dAtA []byte) error { 6648 l := len(dAtA) 6649 iNdEx := 0 6650 for iNdEx < l { 6651 preIndex := iNdEx 6652 var wire uint64 6653 for shift := uint(0); ; shift += 7 { 6654 if shift >= 64 { 6655 return ErrIntOverflowShim 6656 } 6657 if iNdEx >= l { 6658 return io.ErrUnexpectedEOF 6659 } 6660 b := dAtA[iNdEx] 6661 iNdEx++ 6662 wire |= uint64(b&0x7F) << shift 6663 if b < 0x80 { 6664 break 6665 } 6666 } 6667 fieldNum := int32(wire >> 3) 6668 wireType := int(wire & 0x7) 6669 if wireType == 4 { 6670 return fmt.Errorf("proto: ConnectRequest: wiretype end group for non-group") 6671 } 6672 if fieldNum <= 0 { 6673 return fmt.Errorf("proto: ConnectRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6674 } 6675 switch fieldNum { 6676 case 1: 6677 if wireType != 2 { 6678 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6679 } 6680 var stringLen uint64 6681 for shift := uint(0); ; shift += 7 { 6682 if shift >= 64 { 6683 return ErrIntOverflowShim 6684 } 6685 if iNdEx >= l { 6686 return io.ErrUnexpectedEOF 6687 } 6688 b := dAtA[iNdEx] 6689 iNdEx++ 6690 stringLen |= uint64(b&0x7F) << shift 6691 if b < 0x80 { 6692 break 6693 } 6694 } 6695 intStringLen := int(stringLen) 6696 if intStringLen < 0 { 6697 return ErrInvalidLengthShim 6698 } 6699 postIndex := iNdEx + intStringLen 6700 if postIndex < 0 { 6701 return ErrInvalidLengthShim 6702 } 6703 if postIndex > l { 6704 return io.ErrUnexpectedEOF 6705 } 6706 m.ID = string(dAtA[iNdEx:postIndex]) 6707 iNdEx = postIndex 6708 default: 6709 iNdEx = preIndex 6710 skippy, err := skipShim(dAtA[iNdEx:]) 6711 if err != nil { 6712 return err 6713 } 6714 if skippy < 0 { 6715 return ErrInvalidLengthShim 6716 } 6717 if (iNdEx + skippy) < 0 { 6718 return ErrInvalidLengthShim 6719 } 6720 if (iNdEx + skippy) > l { 6721 return io.ErrUnexpectedEOF 6722 } 6723 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6724 iNdEx += skippy 6725 } 6726 } 6727 6728 if iNdEx > l { 6729 return io.ErrUnexpectedEOF 6730 } 6731 return nil 6732 } 6733 func (m *ConnectResponse) Unmarshal(dAtA []byte) error { 6734 l := len(dAtA) 6735 iNdEx := 0 6736 for iNdEx < l { 6737 preIndex := iNdEx 6738 var wire uint64 6739 for shift := uint(0); ; shift += 7 { 6740 if shift >= 64 { 6741 return ErrIntOverflowShim 6742 } 6743 if iNdEx >= l { 6744 return io.ErrUnexpectedEOF 6745 } 6746 b := dAtA[iNdEx] 6747 iNdEx++ 6748 wire |= uint64(b&0x7F) << shift 6749 if b < 0x80 { 6750 break 6751 } 6752 } 6753 fieldNum := int32(wire >> 3) 6754 wireType := int(wire & 0x7) 6755 if wireType == 4 { 6756 return fmt.Errorf("proto: ConnectResponse: wiretype end group for non-group") 6757 } 6758 if fieldNum <= 0 { 6759 return fmt.Errorf("proto: ConnectResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6760 } 6761 switch fieldNum { 6762 case 1: 6763 if wireType != 0 { 6764 return fmt.Errorf("proto: wrong wireType = %d for field ShimPid", wireType) 6765 } 6766 m.ShimPid = 0 6767 for shift := uint(0); ; shift += 7 { 6768 if shift >= 64 { 6769 return ErrIntOverflowShim 6770 } 6771 if iNdEx >= l { 6772 return io.ErrUnexpectedEOF 6773 } 6774 b := dAtA[iNdEx] 6775 iNdEx++ 6776 m.ShimPid |= uint32(b&0x7F) << shift 6777 if b < 0x80 { 6778 break 6779 } 6780 } 6781 case 2: 6782 if wireType != 0 { 6783 return fmt.Errorf("proto: wrong wireType = %d for field TaskPid", wireType) 6784 } 6785 m.TaskPid = 0 6786 for shift := uint(0); ; shift += 7 { 6787 if shift >= 64 { 6788 return ErrIntOverflowShim 6789 } 6790 if iNdEx >= l { 6791 return io.ErrUnexpectedEOF 6792 } 6793 b := dAtA[iNdEx] 6794 iNdEx++ 6795 m.TaskPid |= uint32(b&0x7F) << shift 6796 if b < 0x80 { 6797 break 6798 } 6799 } 6800 case 3: 6801 if wireType != 2 { 6802 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 6803 } 6804 var stringLen uint64 6805 for shift := uint(0); ; shift += 7 { 6806 if shift >= 64 { 6807 return ErrIntOverflowShim 6808 } 6809 if iNdEx >= l { 6810 return io.ErrUnexpectedEOF 6811 } 6812 b := dAtA[iNdEx] 6813 iNdEx++ 6814 stringLen |= uint64(b&0x7F) << shift 6815 if b < 0x80 { 6816 break 6817 } 6818 } 6819 intStringLen := int(stringLen) 6820 if intStringLen < 0 { 6821 return ErrInvalidLengthShim 6822 } 6823 postIndex := iNdEx + intStringLen 6824 if postIndex < 0 { 6825 return ErrInvalidLengthShim 6826 } 6827 if postIndex > l { 6828 return io.ErrUnexpectedEOF 6829 } 6830 m.Version = string(dAtA[iNdEx:postIndex]) 6831 iNdEx = postIndex 6832 default: 6833 iNdEx = preIndex 6834 skippy, err := skipShim(dAtA[iNdEx:]) 6835 if err != nil { 6836 return err 6837 } 6838 if skippy < 0 { 6839 return ErrInvalidLengthShim 6840 } 6841 if (iNdEx + skippy) < 0 { 6842 return ErrInvalidLengthShim 6843 } 6844 if (iNdEx + skippy) > l { 6845 return io.ErrUnexpectedEOF 6846 } 6847 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6848 iNdEx += skippy 6849 } 6850 } 6851 6852 if iNdEx > l { 6853 return io.ErrUnexpectedEOF 6854 } 6855 return nil 6856 } 6857 func (m *ShutdownRequest) Unmarshal(dAtA []byte) error { 6858 l := len(dAtA) 6859 iNdEx := 0 6860 for iNdEx < l { 6861 preIndex := iNdEx 6862 var wire uint64 6863 for shift := uint(0); ; shift += 7 { 6864 if shift >= 64 { 6865 return ErrIntOverflowShim 6866 } 6867 if iNdEx >= l { 6868 return io.ErrUnexpectedEOF 6869 } 6870 b := dAtA[iNdEx] 6871 iNdEx++ 6872 wire |= uint64(b&0x7F) << shift 6873 if b < 0x80 { 6874 break 6875 } 6876 } 6877 fieldNum := int32(wire >> 3) 6878 wireType := int(wire & 0x7) 6879 if wireType == 4 { 6880 return fmt.Errorf("proto: ShutdownRequest: wiretype end group for non-group") 6881 } 6882 if fieldNum <= 0 { 6883 return fmt.Errorf("proto: ShutdownRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6884 } 6885 switch fieldNum { 6886 case 1: 6887 if wireType != 2 { 6888 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6889 } 6890 var stringLen uint64 6891 for shift := uint(0); ; shift += 7 { 6892 if shift >= 64 { 6893 return ErrIntOverflowShim 6894 } 6895 if iNdEx >= l { 6896 return io.ErrUnexpectedEOF 6897 } 6898 b := dAtA[iNdEx] 6899 iNdEx++ 6900 stringLen |= uint64(b&0x7F) << shift 6901 if b < 0x80 { 6902 break 6903 } 6904 } 6905 intStringLen := int(stringLen) 6906 if intStringLen < 0 { 6907 return ErrInvalidLengthShim 6908 } 6909 postIndex := iNdEx + intStringLen 6910 if postIndex < 0 { 6911 return ErrInvalidLengthShim 6912 } 6913 if postIndex > l { 6914 return io.ErrUnexpectedEOF 6915 } 6916 m.ID = string(dAtA[iNdEx:postIndex]) 6917 iNdEx = postIndex 6918 case 2: 6919 if wireType != 0 { 6920 return fmt.Errorf("proto: wrong wireType = %d for field Now", wireType) 6921 } 6922 var v int 6923 for shift := uint(0); ; shift += 7 { 6924 if shift >= 64 { 6925 return ErrIntOverflowShim 6926 } 6927 if iNdEx >= l { 6928 return io.ErrUnexpectedEOF 6929 } 6930 b := dAtA[iNdEx] 6931 iNdEx++ 6932 v |= int(b&0x7F) << shift 6933 if b < 0x80 { 6934 break 6935 } 6936 } 6937 m.Now = bool(v != 0) 6938 default: 6939 iNdEx = preIndex 6940 skippy, err := skipShim(dAtA[iNdEx:]) 6941 if err != nil { 6942 return err 6943 } 6944 if skippy < 0 { 6945 return ErrInvalidLengthShim 6946 } 6947 if (iNdEx + skippy) < 0 { 6948 return ErrInvalidLengthShim 6949 } 6950 if (iNdEx + skippy) > l { 6951 return io.ErrUnexpectedEOF 6952 } 6953 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6954 iNdEx += skippy 6955 } 6956 } 6957 6958 if iNdEx > l { 6959 return io.ErrUnexpectedEOF 6960 } 6961 return nil 6962 } 6963 func (m *PauseRequest) Unmarshal(dAtA []byte) error { 6964 l := len(dAtA) 6965 iNdEx := 0 6966 for iNdEx < l { 6967 preIndex := iNdEx 6968 var wire uint64 6969 for shift := uint(0); ; shift += 7 { 6970 if shift >= 64 { 6971 return ErrIntOverflowShim 6972 } 6973 if iNdEx >= l { 6974 return io.ErrUnexpectedEOF 6975 } 6976 b := dAtA[iNdEx] 6977 iNdEx++ 6978 wire |= uint64(b&0x7F) << shift 6979 if b < 0x80 { 6980 break 6981 } 6982 } 6983 fieldNum := int32(wire >> 3) 6984 wireType := int(wire & 0x7) 6985 if wireType == 4 { 6986 return fmt.Errorf("proto: PauseRequest: wiretype end group for non-group") 6987 } 6988 if fieldNum <= 0 { 6989 return fmt.Errorf("proto: PauseRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6990 } 6991 switch fieldNum { 6992 case 1: 6993 if wireType != 2 { 6994 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6995 } 6996 var stringLen uint64 6997 for shift := uint(0); ; shift += 7 { 6998 if shift >= 64 { 6999 return ErrIntOverflowShim 7000 } 7001 if iNdEx >= l { 7002 return io.ErrUnexpectedEOF 7003 } 7004 b := dAtA[iNdEx] 7005 iNdEx++ 7006 stringLen |= uint64(b&0x7F) << shift 7007 if b < 0x80 { 7008 break 7009 } 7010 } 7011 intStringLen := int(stringLen) 7012 if intStringLen < 0 { 7013 return ErrInvalidLengthShim 7014 } 7015 postIndex := iNdEx + intStringLen 7016 if postIndex < 0 { 7017 return ErrInvalidLengthShim 7018 } 7019 if postIndex > l { 7020 return io.ErrUnexpectedEOF 7021 } 7022 m.ID = string(dAtA[iNdEx:postIndex]) 7023 iNdEx = postIndex 7024 default: 7025 iNdEx = preIndex 7026 skippy, err := skipShim(dAtA[iNdEx:]) 7027 if err != nil { 7028 return err 7029 } 7030 if skippy < 0 { 7031 return ErrInvalidLengthShim 7032 } 7033 if (iNdEx + skippy) < 0 { 7034 return ErrInvalidLengthShim 7035 } 7036 if (iNdEx + skippy) > l { 7037 return io.ErrUnexpectedEOF 7038 } 7039 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7040 iNdEx += skippy 7041 } 7042 } 7043 7044 if iNdEx > l { 7045 return io.ErrUnexpectedEOF 7046 } 7047 return nil 7048 } 7049 func (m *ResumeRequest) Unmarshal(dAtA []byte) error { 7050 l := len(dAtA) 7051 iNdEx := 0 7052 for iNdEx < l { 7053 preIndex := iNdEx 7054 var wire uint64 7055 for shift := uint(0); ; shift += 7 { 7056 if shift >= 64 { 7057 return ErrIntOverflowShim 7058 } 7059 if iNdEx >= l { 7060 return io.ErrUnexpectedEOF 7061 } 7062 b := dAtA[iNdEx] 7063 iNdEx++ 7064 wire |= uint64(b&0x7F) << shift 7065 if b < 0x80 { 7066 break 7067 } 7068 } 7069 fieldNum := int32(wire >> 3) 7070 wireType := int(wire & 0x7) 7071 if wireType == 4 { 7072 return fmt.Errorf("proto: ResumeRequest: wiretype end group for non-group") 7073 } 7074 if fieldNum <= 0 { 7075 return fmt.Errorf("proto: ResumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7076 } 7077 switch fieldNum { 7078 case 1: 7079 if wireType != 2 { 7080 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 7081 } 7082 var stringLen uint64 7083 for shift := uint(0); ; shift += 7 { 7084 if shift >= 64 { 7085 return ErrIntOverflowShim 7086 } 7087 if iNdEx >= l { 7088 return io.ErrUnexpectedEOF 7089 } 7090 b := dAtA[iNdEx] 7091 iNdEx++ 7092 stringLen |= uint64(b&0x7F) << shift 7093 if b < 0x80 { 7094 break 7095 } 7096 } 7097 intStringLen := int(stringLen) 7098 if intStringLen < 0 { 7099 return ErrInvalidLengthShim 7100 } 7101 postIndex := iNdEx + intStringLen 7102 if postIndex < 0 { 7103 return ErrInvalidLengthShim 7104 } 7105 if postIndex > l { 7106 return io.ErrUnexpectedEOF 7107 } 7108 m.ID = string(dAtA[iNdEx:postIndex]) 7109 iNdEx = postIndex 7110 default: 7111 iNdEx = preIndex 7112 skippy, err := skipShim(dAtA[iNdEx:]) 7113 if err != nil { 7114 return err 7115 } 7116 if skippy < 0 { 7117 return ErrInvalidLengthShim 7118 } 7119 if (iNdEx + skippy) < 0 { 7120 return ErrInvalidLengthShim 7121 } 7122 if (iNdEx + skippy) > l { 7123 return io.ErrUnexpectedEOF 7124 } 7125 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7126 iNdEx += skippy 7127 } 7128 } 7129 7130 if iNdEx > l { 7131 return io.ErrUnexpectedEOF 7132 } 7133 return nil 7134 } 7135 func skipShim(dAtA []byte) (n int, err error) { 7136 l := len(dAtA) 7137 iNdEx := 0 7138 depth := 0 7139 for iNdEx < l { 7140 var wire uint64 7141 for shift := uint(0); ; shift += 7 { 7142 if shift >= 64 { 7143 return 0, ErrIntOverflowShim 7144 } 7145 if iNdEx >= l { 7146 return 0, io.ErrUnexpectedEOF 7147 } 7148 b := dAtA[iNdEx] 7149 iNdEx++ 7150 wire |= (uint64(b) & 0x7F) << shift 7151 if b < 0x80 { 7152 break 7153 } 7154 } 7155 wireType := int(wire & 0x7) 7156 switch wireType { 7157 case 0: 7158 for shift := uint(0); ; shift += 7 { 7159 if shift >= 64 { 7160 return 0, ErrIntOverflowShim 7161 } 7162 if iNdEx >= l { 7163 return 0, io.ErrUnexpectedEOF 7164 } 7165 iNdEx++ 7166 if dAtA[iNdEx-1] < 0x80 { 7167 break 7168 } 7169 } 7170 case 1: 7171 iNdEx += 8 7172 case 2: 7173 var length int 7174 for shift := uint(0); ; shift += 7 { 7175 if shift >= 64 { 7176 return 0, ErrIntOverflowShim 7177 } 7178 if iNdEx >= l { 7179 return 0, io.ErrUnexpectedEOF 7180 } 7181 b := dAtA[iNdEx] 7182 iNdEx++ 7183 length |= (int(b) & 0x7F) << shift 7184 if b < 0x80 { 7185 break 7186 } 7187 } 7188 if length < 0 { 7189 return 0, ErrInvalidLengthShim 7190 } 7191 iNdEx += length 7192 case 3: 7193 depth++ 7194 case 4: 7195 if depth == 0 { 7196 return 0, ErrUnexpectedEndOfGroupShim 7197 } 7198 depth-- 7199 case 5: 7200 iNdEx += 4 7201 default: 7202 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 7203 } 7204 if iNdEx < 0 { 7205 return 0, ErrInvalidLengthShim 7206 } 7207 if depth == 0 { 7208 return iNdEx, nil 7209 } 7210 } 7211 return 0, io.ErrUnexpectedEOF 7212 } 7213 7214 var ( 7215 ErrInvalidLengthShim = fmt.Errorf("proto: negative length found during unmarshaling") 7216 ErrIntOverflowShim = fmt.Errorf("proto: integer overflow") 7217 ErrUnexpectedEndOfGroupShim = fmt.Errorf("proto: unexpected end of group") 7218 )