github.com/containerd/Containerd@v1.4.13/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) || (iNdEx+skippy) < 0 { 4023 return ErrInvalidLengthShim 4024 } 4025 if (iNdEx + skippy) > l { 4026 return io.ErrUnexpectedEOF 4027 } 4028 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4029 iNdEx += skippy 4030 } 4031 } 4032 4033 if iNdEx > l { 4034 return io.ErrUnexpectedEOF 4035 } 4036 return nil 4037 } 4038 func (m *CreateTaskResponse) Unmarshal(dAtA []byte) error { 4039 l := len(dAtA) 4040 iNdEx := 0 4041 for iNdEx < l { 4042 preIndex := iNdEx 4043 var wire uint64 4044 for shift := uint(0); ; shift += 7 { 4045 if shift >= 64 { 4046 return ErrIntOverflowShim 4047 } 4048 if iNdEx >= l { 4049 return io.ErrUnexpectedEOF 4050 } 4051 b := dAtA[iNdEx] 4052 iNdEx++ 4053 wire |= uint64(b&0x7F) << shift 4054 if b < 0x80 { 4055 break 4056 } 4057 } 4058 fieldNum := int32(wire >> 3) 4059 wireType := int(wire & 0x7) 4060 if wireType == 4 { 4061 return fmt.Errorf("proto: CreateTaskResponse: wiretype end group for non-group") 4062 } 4063 if fieldNum <= 0 { 4064 return fmt.Errorf("proto: CreateTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4065 } 4066 switch fieldNum { 4067 case 1: 4068 if wireType != 0 { 4069 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 4070 } 4071 m.Pid = 0 4072 for shift := uint(0); ; shift += 7 { 4073 if shift >= 64 { 4074 return ErrIntOverflowShim 4075 } 4076 if iNdEx >= l { 4077 return io.ErrUnexpectedEOF 4078 } 4079 b := dAtA[iNdEx] 4080 iNdEx++ 4081 m.Pid |= uint32(b&0x7F) << shift 4082 if b < 0x80 { 4083 break 4084 } 4085 } 4086 default: 4087 iNdEx = preIndex 4088 skippy, err := skipShim(dAtA[iNdEx:]) 4089 if err != nil { 4090 return err 4091 } 4092 if (skippy < 0) || (iNdEx+skippy) < 0 { 4093 return ErrInvalidLengthShim 4094 } 4095 if (iNdEx + skippy) > l { 4096 return io.ErrUnexpectedEOF 4097 } 4098 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4099 iNdEx += skippy 4100 } 4101 } 4102 4103 if iNdEx > l { 4104 return io.ErrUnexpectedEOF 4105 } 4106 return nil 4107 } 4108 func (m *DeleteRequest) Unmarshal(dAtA []byte) error { 4109 l := len(dAtA) 4110 iNdEx := 0 4111 for iNdEx < l { 4112 preIndex := iNdEx 4113 var wire uint64 4114 for shift := uint(0); ; shift += 7 { 4115 if shift >= 64 { 4116 return ErrIntOverflowShim 4117 } 4118 if iNdEx >= l { 4119 return io.ErrUnexpectedEOF 4120 } 4121 b := dAtA[iNdEx] 4122 iNdEx++ 4123 wire |= uint64(b&0x7F) << shift 4124 if b < 0x80 { 4125 break 4126 } 4127 } 4128 fieldNum := int32(wire >> 3) 4129 wireType := int(wire & 0x7) 4130 if wireType == 4 { 4131 return fmt.Errorf("proto: DeleteRequest: wiretype end group for non-group") 4132 } 4133 if fieldNum <= 0 { 4134 return fmt.Errorf("proto: DeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4135 } 4136 switch fieldNum { 4137 case 1: 4138 if wireType != 2 { 4139 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 4140 } 4141 var stringLen uint64 4142 for shift := uint(0); ; shift += 7 { 4143 if shift >= 64 { 4144 return ErrIntOverflowShim 4145 } 4146 if iNdEx >= l { 4147 return io.ErrUnexpectedEOF 4148 } 4149 b := dAtA[iNdEx] 4150 iNdEx++ 4151 stringLen |= uint64(b&0x7F) << shift 4152 if b < 0x80 { 4153 break 4154 } 4155 } 4156 intStringLen := int(stringLen) 4157 if intStringLen < 0 { 4158 return ErrInvalidLengthShim 4159 } 4160 postIndex := iNdEx + intStringLen 4161 if postIndex < 0 { 4162 return ErrInvalidLengthShim 4163 } 4164 if postIndex > l { 4165 return io.ErrUnexpectedEOF 4166 } 4167 m.ID = string(dAtA[iNdEx:postIndex]) 4168 iNdEx = postIndex 4169 case 2: 4170 if wireType != 2 { 4171 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 4172 } 4173 var stringLen uint64 4174 for shift := uint(0); ; shift += 7 { 4175 if shift >= 64 { 4176 return ErrIntOverflowShim 4177 } 4178 if iNdEx >= l { 4179 return io.ErrUnexpectedEOF 4180 } 4181 b := dAtA[iNdEx] 4182 iNdEx++ 4183 stringLen |= uint64(b&0x7F) << shift 4184 if b < 0x80 { 4185 break 4186 } 4187 } 4188 intStringLen := int(stringLen) 4189 if intStringLen < 0 { 4190 return ErrInvalidLengthShim 4191 } 4192 postIndex := iNdEx + intStringLen 4193 if postIndex < 0 { 4194 return ErrInvalidLengthShim 4195 } 4196 if postIndex > l { 4197 return io.ErrUnexpectedEOF 4198 } 4199 m.ExecID = string(dAtA[iNdEx:postIndex]) 4200 iNdEx = postIndex 4201 default: 4202 iNdEx = preIndex 4203 skippy, err := skipShim(dAtA[iNdEx:]) 4204 if err != nil { 4205 return err 4206 } 4207 if (skippy < 0) || (iNdEx+skippy) < 0 { 4208 return ErrInvalidLengthShim 4209 } 4210 if (iNdEx + skippy) > l { 4211 return io.ErrUnexpectedEOF 4212 } 4213 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4214 iNdEx += skippy 4215 } 4216 } 4217 4218 if iNdEx > l { 4219 return io.ErrUnexpectedEOF 4220 } 4221 return nil 4222 } 4223 func (m *DeleteResponse) Unmarshal(dAtA []byte) error { 4224 l := len(dAtA) 4225 iNdEx := 0 4226 for iNdEx < l { 4227 preIndex := iNdEx 4228 var wire uint64 4229 for shift := uint(0); ; shift += 7 { 4230 if shift >= 64 { 4231 return ErrIntOverflowShim 4232 } 4233 if iNdEx >= l { 4234 return io.ErrUnexpectedEOF 4235 } 4236 b := dAtA[iNdEx] 4237 iNdEx++ 4238 wire |= uint64(b&0x7F) << shift 4239 if b < 0x80 { 4240 break 4241 } 4242 } 4243 fieldNum := int32(wire >> 3) 4244 wireType := int(wire & 0x7) 4245 if wireType == 4 { 4246 return fmt.Errorf("proto: DeleteResponse: wiretype end group for non-group") 4247 } 4248 if fieldNum <= 0 { 4249 return fmt.Errorf("proto: DeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4250 } 4251 switch fieldNum { 4252 case 1: 4253 if wireType != 0 { 4254 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 4255 } 4256 m.Pid = 0 4257 for shift := uint(0); ; shift += 7 { 4258 if shift >= 64 { 4259 return ErrIntOverflowShim 4260 } 4261 if iNdEx >= l { 4262 return io.ErrUnexpectedEOF 4263 } 4264 b := dAtA[iNdEx] 4265 iNdEx++ 4266 m.Pid |= uint32(b&0x7F) << shift 4267 if b < 0x80 { 4268 break 4269 } 4270 } 4271 case 2: 4272 if wireType != 0 { 4273 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 4274 } 4275 m.ExitStatus = 0 4276 for shift := uint(0); ; shift += 7 { 4277 if shift >= 64 { 4278 return ErrIntOverflowShim 4279 } 4280 if iNdEx >= l { 4281 return io.ErrUnexpectedEOF 4282 } 4283 b := dAtA[iNdEx] 4284 iNdEx++ 4285 m.ExitStatus |= uint32(b&0x7F) << shift 4286 if b < 0x80 { 4287 break 4288 } 4289 } 4290 case 3: 4291 if wireType != 2 { 4292 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 4293 } 4294 var msglen int 4295 for shift := uint(0); ; shift += 7 { 4296 if shift >= 64 { 4297 return ErrIntOverflowShim 4298 } 4299 if iNdEx >= l { 4300 return io.ErrUnexpectedEOF 4301 } 4302 b := dAtA[iNdEx] 4303 iNdEx++ 4304 msglen |= int(b&0x7F) << shift 4305 if b < 0x80 { 4306 break 4307 } 4308 } 4309 if msglen < 0 { 4310 return ErrInvalidLengthShim 4311 } 4312 postIndex := iNdEx + msglen 4313 if postIndex < 0 { 4314 return ErrInvalidLengthShim 4315 } 4316 if postIndex > l { 4317 return io.ErrUnexpectedEOF 4318 } 4319 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 4320 return err 4321 } 4322 iNdEx = postIndex 4323 default: 4324 iNdEx = preIndex 4325 skippy, err := skipShim(dAtA[iNdEx:]) 4326 if err != nil { 4327 return err 4328 } 4329 if (skippy < 0) || (iNdEx+skippy) < 0 { 4330 return ErrInvalidLengthShim 4331 } 4332 if (iNdEx + skippy) > l { 4333 return io.ErrUnexpectedEOF 4334 } 4335 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4336 iNdEx += skippy 4337 } 4338 } 4339 4340 if iNdEx > l { 4341 return io.ErrUnexpectedEOF 4342 } 4343 return nil 4344 } 4345 func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { 4346 l := len(dAtA) 4347 iNdEx := 0 4348 for iNdEx < l { 4349 preIndex := iNdEx 4350 var wire uint64 4351 for shift := uint(0); ; shift += 7 { 4352 if shift >= 64 { 4353 return ErrIntOverflowShim 4354 } 4355 if iNdEx >= l { 4356 return io.ErrUnexpectedEOF 4357 } 4358 b := dAtA[iNdEx] 4359 iNdEx++ 4360 wire |= uint64(b&0x7F) << shift 4361 if b < 0x80 { 4362 break 4363 } 4364 } 4365 fieldNum := int32(wire >> 3) 4366 wireType := int(wire & 0x7) 4367 if wireType == 4 { 4368 return fmt.Errorf("proto: ExecProcessRequest: wiretype end group for non-group") 4369 } 4370 if fieldNum <= 0 { 4371 return fmt.Errorf("proto: ExecProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4372 } 4373 switch fieldNum { 4374 case 1: 4375 if wireType != 2 { 4376 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 4377 } 4378 var stringLen uint64 4379 for shift := uint(0); ; shift += 7 { 4380 if shift >= 64 { 4381 return ErrIntOverflowShim 4382 } 4383 if iNdEx >= l { 4384 return io.ErrUnexpectedEOF 4385 } 4386 b := dAtA[iNdEx] 4387 iNdEx++ 4388 stringLen |= uint64(b&0x7F) << shift 4389 if b < 0x80 { 4390 break 4391 } 4392 } 4393 intStringLen := int(stringLen) 4394 if intStringLen < 0 { 4395 return ErrInvalidLengthShim 4396 } 4397 postIndex := iNdEx + intStringLen 4398 if postIndex < 0 { 4399 return ErrInvalidLengthShim 4400 } 4401 if postIndex > l { 4402 return io.ErrUnexpectedEOF 4403 } 4404 m.ID = string(dAtA[iNdEx:postIndex]) 4405 iNdEx = postIndex 4406 case 2: 4407 if wireType != 2 { 4408 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 4409 } 4410 var stringLen uint64 4411 for shift := uint(0); ; shift += 7 { 4412 if shift >= 64 { 4413 return ErrIntOverflowShim 4414 } 4415 if iNdEx >= l { 4416 return io.ErrUnexpectedEOF 4417 } 4418 b := dAtA[iNdEx] 4419 iNdEx++ 4420 stringLen |= uint64(b&0x7F) << shift 4421 if b < 0x80 { 4422 break 4423 } 4424 } 4425 intStringLen := int(stringLen) 4426 if intStringLen < 0 { 4427 return ErrInvalidLengthShim 4428 } 4429 postIndex := iNdEx + intStringLen 4430 if postIndex < 0 { 4431 return ErrInvalidLengthShim 4432 } 4433 if postIndex > l { 4434 return io.ErrUnexpectedEOF 4435 } 4436 m.ExecID = string(dAtA[iNdEx:postIndex]) 4437 iNdEx = postIndex 4438 case 3: 4439 if wireType != 0 { 4440 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 4441 } 4442 var v int 4443 for shift := uint(0); ; shift += 7 { 4444 if shift >= 64 { 4445 return ErrIntOverflowShim 4446 } 4447 if iNdEx >= l { 4448 return io.ErrUnexpectedEOF 4449 } 4450 b := dAtA[iNdEx] 4451 iNdEx++ 4452 v |= int(b&0x7F) << shift 4453 if b < 0x80 { 4454 break 4455 } 4456 } 4457 m.Terminal = bool(v != 0) 4458 case 4: 4459 if wireType != 2 { 4460 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 4461 } 4462 var stringLen uint64 4463 for shift := uint(0); ; shift += 7 { 4464 if shift >= 64 { 4465 return ErrIntOverflowShim 4466 } 4467 if iNdEx >= l { 4468 return io.ErrUnexpectedEOF 4469 } 4470 b := dAtA[iNdEx] 4471 iNdEx++ 4472 stringLen |= uint64(b&0x7F) << shift 4473 if b < 0x80 { 4474 break 4475 } 4476 } 4477 intStringLen := int(stringLen) 4478 if intStringLen < 0 { 4479 return ErrInvalidLengthShim 4480 } 4481 postIndex := iNdEx + intStringLen 4482 if postIndex < 0 { 4483 return ErrInvalidLengthShim 4484 } 4485 if postIndex > l { 4486 return io.ErrUnexpectedEOF 4487 } 4488 m.Stdin = string(dAtA[iNdEx:postIndex]) 4489 iNdEx = postIndex 4490 case 5: 4491 if wireType != 2 { 4492 return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) 4493 } 4494 var stringLen uint64 4495 for shift := uint(0); ; shift += 7 { 4496 if shift >= 64 { 4497 return ErrIntOverflowShim 4498 } 4499 if iNdEx >= l { 4500 return io.ErrUnexpectedEOF 4501 } 4502 b := dAtA[iNdEx] 4503 iNdEx++ 4504 stringLen |= uint64(b&0x7F) << shift 4505 if b < 0x80 { 4506 break 4507 } 4508 } 4509 intStringLen := int(stringLen) 4510 if intStringLen < 0 { 4511 return ErrInvalidLengthShim 4512 } 4513 postIndex := iNdEx + intStringLen 4514 if postIndex < 0 { 4515 return ErrInvalidLengthShim 4516 } 4517 if postIndex > l { 4518 return io.ErrUnexpectedEOF 4519 } 4520 m.Stdout = string(dAtA[iNdEx:postIndex]) 4521 iNdEx = postIndex 4522 case 6: 4523 if wireType != 2 { 4524 return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) 4525 } 4526 var stringLen uint64 4527 for shift := uint(0); ; shift += 7 { 4528 if shift >= 64 { 4529 return ErrIntOverflowShim 4530 } 4531 if iNdEx >= l { 4532 return io.ErrUnexpectedEOF 4533 } 4534 b := dAtA[iNdEx] 4535 iNdEx++ 4536 stringLen |= uint64(b&0x7F) << shift 4537 if b < 0x80 { 4538 break 4539 } 4540 } 4541 intStringLen := int(stringLen) 4542 if intStringLen < 0 { 4543 return ErrInvalidLengthShim 4544 } 4545 postIndex := iNdEx + intStringLen 4546 if postIndex < 0 { 4547 return ErrInvalidLengthShim 4548 } 4549 if postIndex > l { 4550 return io.ErrUnexpectedEOF 4551 } 4552 m.Stderr = string(dAtA[iNdEx:postIndex]) 4553 iNdEx = postIndex 4554 case 7: 4555 if wireType != 2 { 4556 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) 4557 } 4558 var msglen int 4559 for shift := uint(0); ; shift += 7 { 4560 if shift >= 64 { 4561 return ErrIntOverflowShim 4562 } 4563 if iNdEx >= l { 4564 return io.ErrUnexpectedEOF 4565 } 4566 b := dAtA[iNdEx] 4567 iNdEx++ 4568 msglen |= int(b&0x7F) << shift 4569 if b < 0x80 { 4570 break 4571 } 4572 } 4573 if msglen < 0 { 4574 return ErrInvalidLengthShim 4575 } 4576 postIndex := iNdEx + msglen 4577 if postIndex < 0 { 4578 return ErrInvalidLengthShim 4579 } 4580 if postIndex > l { 4581 return io.ErrUnexpectedEOF 4582 } 4583 if m.Spec == nil { 4584 m.Spec = &types1.Any{} 4585 } 4586 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4587 return err 4588 } 4589 iNdEx = postIndex 4590 default: 4591 iNdEx = preIndex 4592 skippy, err := skipShim(dAtA[iNdEx:]) 4593 if err != nil { 4594 return err 4595 } 4596 if (skippy < 0) || (iNdEx+skippy) < 0 { 4597 return ErrInvalidLengthShim 4598 } 4599 if (iNdEx + skippy) > l { 4600 return io.ErrUnexpectedEOF 4601 } 4602 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4603 iNdEx += skippy 4604 } 4605 } 4606 4607 if iNdEx > l { 4608 return io.ErrUnexpectedEOF 4609 } 4610 return nil 4611 } 4612 func (m *ExecProcessResponse) Unmarshal(dAtA []byte) error { 4613 l := len(dAtA) 4614 iNdEx := 0 4615 for iNdEx < l { 4616 preIndex := iNdEx 4617 var wire uint64 4618 for shift := uint(0); ; shift += 7 { 4619 if shift >= 64 { 4620 return ErrIntOverflowShim 4621 } 4622 if iNdEx >= l { 4623 return io.ErrUnexpectedEOF 4624 } 4625 b := dAtA[iNdEx] 4626 iNdEx++ 4627 wire |= uint64(b&0x7F) << shift 4628 if b < 0x80 { 4629 break 4630 } 4631 } 4632 fieldNum := int32(wire >> 3) 4633 wireType := int(wire & 0x7) 4634 if wireType == 4 { 4635 return fmt.Errorf("proto: ExecProcessResponse: wiretype end group for non-group") 4636 } 4637 if fieldNum <= 0 { 4638 return fmt.Errorf("proto: ExecProcessResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4639 } 4640 switch fieldNum { 4641 default: 4642 iNdEx = preIndex 4643 skippy, err := skipShim(dAtA[iNdEx:]) 4644 if err != nil { 4645 return err 4646 } 4647 if (skippy < 0) || (iNdEx+skippy) < 0 { 4648 return ErrInvalidLengthShim 4649 } 4650 if (iNdEx + skippy) > l { 4651 return io.ErrUnexpectedEOF 4652 } 4653 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4654 iNdEx += skippy 4655 } 4656 } 4657 4658 if iNdEx > l { 4659 return io.ErrUnexpectedEOF 4660 } 4661 return nil 4662 } 4663 func (m *ResizePtyRequest) Unmarshal(dAtA []byte) error { 4664 l := len(dAtA) 4665 iNdEx := 0 4666 for iNdEx < l { 4667 preIndex := iNdEx 4668 var wire uint64 4669 for shift := uint(0); ; shift += 7 { 4670 if shift >= 64 { 4671 return ErrIntOverflowShim 4672 } 4673 if iNdEx >= l { 4674 return io.ErrUnexpectedEOF 4675 } 4676 b := dAtA[iNdEx] 4677 iNdEx++ 4678 wire |= uint64(b&0x7F) << shift 4679 if b < 0x80 { 4680 break 4681 } 4682 } 4683 fieldNum := int32(wire >> 3) 4684 wireType := int(wire & 0x7) 4685 if wireType == 4 { 4686 return fmt.Errorf("proto: ResizePtyRequest: wiretype end group for non-group") 4687 } 4688 if fieldNum <= 0 { 4689 return fmt.Errorf("proto: ResizePtyRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4690 } 4691 switch fieldNum { 4692 case 1: 4693 if wireType != 2 { 4694 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 4695 } 4696 var stringLen uint64 4697 for shift := uint(0); ; shift += 7 { 4698 if shift >= 64 { 4699 return ErrIntOverflowShim 4700 } 4701 if iNdEx >= l { 4702 return io.ErrUnexpectedEOF 4703 } 4704 b := dAtA[iNdEx] 4705 iNdEx++ 4706 stringLen |= uint64(b&0x7F) << shift 4707 if b < 0x80 { 4708 break 4709 } 4710 } 4711 intStringLen := int(stringLen) 4712 if intStringLen < 0 { 4713 return ErrInvalidLengthShim 4714 } 4715 postIndex := iNdEx + intStringLen 4716 if postIndex < 0 { 4717 return ErrInvalidLengthShim 4718 } 4719 if postIndex > l { 4720 return io.ErrUnexpectedEOF 4721 } 4722 m.ID = string(dAtA[iNdEx:postIndex]) 4723 iNdEx = postIndex 4724 case 2: 4725 if wireType != 2 { 4726 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 4727 } 4728 var stringLen uint64 4729 for shift := uint(0); ; shift += 7 { 4730 if shift >= 64 { 4731 return ErrIntOverflowShim 4732 } 4733 if iNdEx >= l { 4734 return io.ErrUnexpectedEOF 4735 } 4736 b := dAtA[iNdEx] 4737 iNdEx++ 4738 stringLen |= uint64(b&0x7F) << shift 4739 if b < 0x80 { 4740 break 4741 } 4742 } 4743 intStringLen := int(stringLen) 4744 if intStringLen < 0 { 4745 return ErrInvalidLengthShim 4746 } 4747 postIndex := iNdEx + intStringLen 4748 if postIndex < 0 { 4749 return ErrInvalidLengthShim 4750 } 4751 if postIndex > l { 4752 return io.ErrUnexpectedEOF 4753 } 4754 m.ExecID = string(dAtA[iNdEx:postIndex]) 4755 iNdEx = postIndex 4756 case 3: 4757 if wireType != 0 { 4758 return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) 4759 } 4760 m.Width = 0 4761 for shift := uint(0); ; shift += 7 { 4762 if shift >= 64 { 4763 return ErrIntOverflowShim 4764 } 4765 if iNdEx >= l { 4766 return io.ErrUnexpectedEOF 4767 } 4768 b := dAtA[iNdEx] 4769 iNdEx++ 4770 m.Width |= uint32(b&0x7F) << shift 4771 if b < 0x80 { 4772 break 4773 } 4774 } 4775 case 4: 4776 if wireType != 0 { 4777 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 4778 } 4779 m.Height = 0 4780 for shift := uint(0); ; shift += 7 { 4781 if shift >= 64 { 4782 return ErrIntOverflowShim 4783 } 4784 if iNdEx >= l { 4785 return io.ErrUnexpectedEOF 4786 } 4787 b := dAtA[iNdEx] 4788 iNdEx++ 4789 m.Height |= uint32(b&0x7F) << shift 4790 if b < 0x80 { 4791 break 4792 } 4793 } 4794 default: 4795 iNdEx = preIndex 4796 skippy, err := skipShim(dAtA[iNdEx:]) 4797 if err != nil { 4798 return err 4799 } 4800 if (skippy < 0) || (iNdEx+skippy) < 0 { 4801 return ErrInvalidLengthShim 4802 } 4803 if (iNdEx + skippy) > l { 4804 return io.ErrUnexpectedEOF 4805 } 4806 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4807 iNdEx += skippy 4808 } 4809 } 4810 4811 if iNdEx > l { 4812 return io.ErrUnexpectedEOF 4813 } 4814 return nil 4815 } 4816 func (m *StateRequest) Unmarshal(dAtA []byte) error { 4817 l := len(dAtA) 4818 iNdEx := 0 4819 for iNdEx < l { 4820 preIndex := iNdEx 4821 var wire uint64 4822 for shift := uint(0); ; shift += 7 { 4823 if shift >= 64 { 4824 return ErrIntOverflowShim 4825 } 4826 if iNdEx >= l { 4827 return io.ErrUnexpectedEOF 4828 } 4829 b := dAtA[iNdEx] 4830 iNdEx++ 4831 wire |= uint64(b&0x7F) << shift 4832 if b < 0x80 { 4833 break 4834 } 4835 } 4836 fieldNum := int32(wire >> 3) 4837 wireType := int(wire & 0x7) 4838 if wireType == 4 { 4839 return fmt.Errorf("proto: StateRequest: wiretype end group for non-group") 4840 } 4841 if fieldNum <= 0 { 4842 return fmt.Errorf("proto: StateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4843 } 4844 switch fieldNum { 4845 case 1: 4846 if wireType != 2 { 4847 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 4848 } 4849 var stringLen uint64 4850 for shift := uint(0); ; shift += 7 { 4851 if shift >= 64 { 4852 return ErrIntOverflowShim 4853 } 4854 if iNdEx >= l { 4855 return io.ErrUnexpectedEOF 4856 } 4857 b := dAtA[iNdEx] 4858 iNdEx++ 4859 stringLen |= uint64(b&0x7F) << shift 4860 if b < 0x80 { 4861 break 4862 } 4863 } 4864 intStringLen := int(stringLen) 4865 if intStringLen < 0 { 4866 return ErrInvalidLengthShim 4867 } 4868 postIndex := iNdEx + intStringLen 4869 if postIndex < 0 { 4870 return ErrInvalidLengthShim 4871 } 4872 if postIndex > l { 4873 return io.ErrUnexpectedEOF 4874 } 4875 m.ID = string(dAtA[iNdEx:postIndex]) 4876 iNdEx = postIndex 4877 case 2: 4878 if wireType != 2 { 4879 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 4880 } 4881 var stringLen uint64 4882 for shift := uint(0); ; shift += 7 { 4883 if shift >= 64 { 4884 return ErrIntOverflowShim 4885 } 4886 if iNdEx >= l { 4887 return io.ErrUnexpectedEOF 4888 } 4889 b := dAtA[iNdEx] 4890 iNdEx++ 4891 stringLen |= uint64(b&0x7F) << shift 4892 if b < 0x80 { 4893 break 4894 } 4895 } 4896 intStringLen := int(stringLen) 4897 if intStringLen < 0 { 4898 return ErrInvalidLengthShim 4899 } 4900 postIndex := iNdEx + intStringLen 4901 if postIndex < 0 { 4902 return ErrInvalidLengthShim 4903 } 4904 if postIndex > l { 4905 return io.ErrUnexpectedEOF 4906 } 4907 m.ExecID = string(dAtA[iNdEx:postIndex]) 4908 iNdEx = postIndex 4909 default: 4910 iNdEx = preIndex 4911 skippy, err := skipShim(dAtA[iNdEx:]) 4912 if err != nil { 4913 return err 4914 } 4915 if (skippy < 0) || (iNdEx+skippy) < 0 { 4916 return ErrInvalidLengthShim 4917 } 4918 if (iNdEx + skippy) > l { 4919 return io.ErrUnexpectedEOF 4920 } 4921 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4922 iNdEx += skippy 4923 } 4924 } 4925 4926 if iNdEx > l { 4927 return io.ErrUnexpectedEOF 4928 } 4929 return nil 4930 } 4931 func (m *StateResponse) Unmarshal(dAtA []byte) error { 4932 l := len(dAtA) 4933 iNdEx := 0 4934 for iNdEx < l { 4935 preIndex := iNdEx 4936 var wire uint64 4937 for shift := uint(0); ; shift += 7 { 4938 if shift >= 64 { 4939 return ErrIntOverflowShim 4940 } 4941 if iNdEx >= l { 4942 return io.ErrUnexpectedEOF 4943 } 4944 b := dAtA[iNdEx] 4945 iNdEx++ 4946 wire |= uint64(b&0x7F) << shift 4947 if b < 0x80 { 4948 break 4949 } 4950 } 4951 fieldNum := int32(wire >> 3) 4952 wireType := int(wire & 0x7) 4953 if wireType == 4 { 4954 return fmt.Errorf("proto: StateResponse: wiretype end group for non-group") 4955 } 4956 if fieldNum <= 0 { 4957 return fmt.Errorf("proto: StateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4958 } 4959 switch fieldNum { 4960 case 1: 4961 if wireType != 2 { 4962 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 4963 } 4964 var stringLen uint64 4965 for shift := uint(0); ; shift += 7 { 4966 if shift >= 64 { 4967 return ErrIntOverflowShim 4968 } 4969 if iNdEx >= l { 4970 return io.ErrUnexpectedEOF 4971 } 4972 b := dAtA[iNdEx] 4973 iNdEx++ 4974 stringLen |= uint64(b&0x7F) << shift 4975 if b < 0x80 { 4976 break 4977 } 4978 } 4979 intStringLen := int(stringLen) 4980 if intStringLen < 0 { 4981 return ErrInvalidLengthShim 4982 } 4983 postIndex := iNdEx + intStringLen 4984 if postIndex < 0 { 4985 return ErrInvalidLengthShim 4986 } 4987 if postIndex > l { 4988 return io.ErrUnexpectedEOF 4989 } 4990 m.ID = string(dAtA[iNdEx:postIndex]) 4991 iNdEx = postIndex 4992 case 2: 4993 if wireType != 2 { 4994 return fmt.Errorf("proto: wrong wireType = %d for field Bundle", wireType) 4995 } 4996 var stringLen uint64 4997 for shift := uint(0); ; shift += 7 { 4998 if shift >= 64 { 4999 return ErrIntOverflowShim 5000 } 5001 if iNdEx >= l { 5002 return io.ErrUnexpectedEOF 5003 } 5004 b := dAtA[iNdEx] 5005 iNdEx++ 5006 stringLen |= uint64(b&0x7F) << shift 5007 if b < 0x80 { 5008 break 5009 } 5010 } 5011 intStringLen := int(stringLen) 5012 if intStringLen < 0 { 5013 return ErrInvalidLengthShim 5014 } 5015 postIndex := iNdEx + intStringLen 5016 if postIndex < 0 { 5017 return ErrInvalidLengthShim 5018 } 5019 if postIndex > l { 5020 return io.ErrUnexpectedEOF 5021 } 5022 m.Bundle = string(dAtA[iNdEx:postIndex]) 5023 iNdEx = postIndex 5024 case 3: 5025 if wireType != 0 { 5026 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 5027 } 5028 m.Pid = 0 5029 for shift := uint(0); ; shift += 7 { 5030 if shift >= 64 { 5031 return ErrIntOverflowShim 5032 } 5033 if iNdEx >= l { 5034 return io.ErrUnexpectedEOF 5035 } 5036 b := dAtA[iNdEx] 5037 iNdEx++ 5038 m.Pid |= uint32(b&0x7F) << shift 5039 if b < 0x80 { 5040 break 5041 } 5042 } 5043 case 4: 5044 if wireType != 0 { 5045 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 5046 } 5047 m.Status = 0 5048 for shift := uint(0); ; shift += 7 { 5049 if shift >= 64 { 5050 return ErrIntOverflowShim 5051 } 5052 if iNdEx >= l { 5053 return io.ErrUnexpectedEOF 5054 } 5055 b := dAtA[iNdEx] 5056 iNdEx++ 5057 m.Status |= task.Status(b&0x7F) << shift 5058 if b < 0x80 { 5059 break 5060 } 5061 } 5062 case 5: 5063 if wireType != 2 { 5064 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 5065 } 5066 var stringLen uint64 5067 for shift := uint(0); ; shift += 7 { 5068 if shift >= 64 { 5069 return ErrIntOverflowShim 5070 } 5071 if iNdEx >= l { 5072 return io.ErrUnexpectedEOF 5073 } 5074 b := dAtA[iNdEx] 5075 iNdEx++ 5076 stringLen |= uint64(b&0x7F) << shift 5077 if b < 0x80 { 5078 break 5079 } 5080 } 5081 intStringLen := int(stringLen) 5082 if intStringLen < 0 { 5083 return ErrInvalidLengthShim 5084 } 5085 postIndex := iNdEx + intStringLen 5086 if postIndex < 0 { 5087 return ErrInvalidLengthShim 5088 } 5089 if postIndex > l { 5090 return io.ErrUnexpectedEOF 5091 } 5092 m.Stdin = string(dAtA[iNdEx:postIndex]) 5093 iNdEx = postIndex 5094 case 6: 5095 if wireType != 2 { 5096 return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) 5097 } 5098 var stringLen uint64 5099 for shift := uint(0); ; shift += 7 { 5100 if shift >= 64 { 5101 return ErrIntOverflowShim 5102 } 5103 if iNdEx >= l { 5104 return io.ErrUnexpectedEOF 5105 } 5106 b := dAtA[iNdEx] 5107 iNdEx++ 5108 stringLen |= uint64(b&0x7F) << shift 5109 if b < 0x80 { 5110 break 5111 } 5112 } 5113 intStringLen := int(stringLen) 5114 if intStringLen < 0 { 5115 return ErrInvalidLengthShim 5116 } 5117 postIndex := iNdEx + intStringLen 5118 if postIndex < 0 { 5119 return ErrInvalidLengthShim 5120 } 5121 if postIndex > l { 5122 return io.ErrUnexpectedEOF 5123 } 5124 m.Stdout = string(dAtA[iNdEx:postIndex]) 5125 iNdEx = postIndex 5126 case 7: 5127 if wireType != 2 { 5128 return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) 5129 } 5130 var stringLen uint64 5131 for shift := uint(0); ; shift += 7 { 5132 if shift >= 64 { 5133 return ErrIntOverflowShim 5134 } 5135 if iNdEx >= l { 5136 return io.ErrUnexpectedEOF 5137 } 5138 b := dAtA[iNdEx] 5139 iNdEx++ 5140 stringLen |= uint64(b&0x7F) << shift 5141 if b < 0x80 { 5142 break 5143 } 5144 } 5145 intStringLen := int(stringLen) 5146 if intStringLen < 0 { 5147 return ErrInvalidLengthShim 5148 } 5149 postIndex := iNdEx + intStringLen 5150 if postIndex < 0 { 5151 return ErrInvalidLengthShim 5152 } 5153 if postIndex > l { 5154 return io.ErrUnexpectedEOF 5155 } 5156 m.Stderr = string(dAtA[iNdEx:postIndex]) 5157 iNdEx = postIndex 5158 case 8: 5159 if wireType != 0 { 5160 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 5161 } 5162 var v int 5163 for shift := uint(0); ; shift += 7 { 5164 if shift >= 64 { 5165 return ErrIntOverflowShim 5166 } 5167 if iNdEx >= l { 5168 return io.ErrUnexpectedEOF 5169 } 5170 b := dAtA[iNdEx] 5171 iNdEx++ 5172 v |= int(b&0x7F) << shift 5173 if b < 0x80 { 5174 break 5175 } 5176 } 5177 m.Terminal = bool(v != 0) 5178 case 9: 5179 if wireType != 0 { 5180 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 5181 } 5182 m.ExitStatus = 0 5183 for shift := uint(0); ; shift += 7 { 5184 if shift >= 64 { 5185 return ErrIntOverflowShim 5186 } 5187 if iNdEx >= l { 5188 return io.ErrUnexpectedEOF 5189 } 5190 b := dAtA[iNdEx] 5191 iNdEx++ 5192 m.ExitStatus |= uint32(b&0x7F) << shift 5193 if b < 0x80 { 5194 break 5195 } 5196 } 5197 case 10: 5198 if wireType != 2 { 5199 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 5200 } 5201 var msglen int 5202 for shift := uint(0); ; shift += 7 { 5203 if shift >= 64 { 5204 return ErrIntOverflowShim 5205 } 5206 if iNdEx >= l { 5207 return io.ErrUnexpectedEOF 5208 } 5209 b := dAtA[iNdEx] 5210 iNdEx++ 5211 msglen |= int(b&0x7F) << shift 5212 if b < 0x80 { 5213 break 5214 } 5215 } 5216 if msglen < 0 { 5217 return ErrInvalidLengthShim 5218 } 5219 postIndex := iNdEx + msglen 5220 if postIndex < 0 { 5221 return ErrInvalidLengthShim 5222 } 5223 if postIndex > l { 5224 return io.ErrUnexpectedEOF 5225 } 5226 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 5227 return err 5228 } 5229 iNdEx = postIndex 5230 case 11: 5231 if wireType != 2 { 5232 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 5233 } 5234 var stringLen uint64 5235 for shift := uint(0); ; shift += 7 { 5236 if shift >= 64 { 5237 return ErrIntOverflowShim 5238 } 5239 if iNdEx >= l { 5240 return io.ErrUnexpectedEOF 5241 } 5242 b := dAtA[iNdEx] 5243 iNdEx++ 5244 stringLen |= uint64(b&0x7F) << shift 5245 if b < 0x80 { 5246 break 5247 } 5248 } 5249 intStringLen := int(stringLen) 5250 if intStringLen < 0 { 5251 return ErrInvalidLengthShim 5252 } 5253 postIndex := iNdEx + intStringLen 5254 if postIndex < 0 { 5255 return ErrInvalidLengthShim 5256 } 5257 if postIndex > l { 5258 return io.ErrUnexpectedEOF 5259 } 5260 m.ExecID = string(dAtA[iNdEx:postIndex]) 5261 iNdEx = postIndex 5262 default: 5263 iNdEx = preIndex 5264 skippy, err := skipShim(dAtA[iNdEx:]) 5265 if err != nil { 5266 return err 5267 } 5268 if (skippy < 0) || (iNdEx+skippy) < 0 { 5269 return ErrInvalidLengthShim 5270 } 5271 if (iNdEx + skippy) > l { 5272 return io.ErrUnexpectedEOF 5273 } 5274 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5275 iNdEx += skippy 5276 } 5277 } 5278 5279 if iNdEx > l { 5280 return io.ErrUnexpectedEOF 5281 } 5282 return nil 5283 } 5284 func (m *KillRequest) Unmarshal(dAtA []byte) error { 5285 l := len(dAtA) 5286 iNdEx := 0 5287 for iNdEx < l { 5288 preIndex := iNdEx 5289 var wire uint64 5290 for shift := uint(0); ; shift += 7 { 5291 if shift >= 64 { 5292 return ErrIntOverflowShim 5293 } 5294 if iNdEx >= l { 5295 return io.ErrUnexpectedEOF 5296 } 5297 b := dAtA[iNdEx] 5298 iNdEx++ 5299 wire |= uint64(b&0x7F) << shift 5300 if b < 0x80 { 5301 break 5302 } 5303 } 5304 fieldNum := int32(wire >> 3) 5305 wireType := int(wire & 0x7) 5306 if wireType == 4 { 5307 return fmt.Errorf("proto: KillRequest: wiretype end group for non-group") 5308 } 5309 if fieldNum <= 0 { 5310 return fmt.Errorf("proto: KillRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5311 } 5312 switch fieldNum { 5313 case 1: 5314 if wireType != 2 { 5315 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 5316 } 5317 var stringLen uint64 5318 for shift := uint(0); ; shift += 7 { 5319 if shift >= 64 { 5320 return ErrIntOverflowShim 5321 } 5322 if iNdEx >= l { 5323 return io.ErrUnexpectedEOF 5324 } 5325 b := dAtA[iNdEx] 5326 iNdEx++ 5327 stringLen |= uint64(b&0x7F) << shift 5328 if b < 0x80 { 5329 break 5330 } 5331 } 5332 intStringLen := int(stringLen) 5333 if intStringLen < 0 { 5334 return ErrInvalidLengthShim 5335 } 5336 postIndex := iNdEx + intStringLen 5337 if postIndex < 0 { 5338 return ErrInvalidLengthShim 5339 } 5340 if postIndex > l { 5341 return io.ErrUnexpectedEOF 5342 } 5343 m.ID = string(dAtA[iNdEx:postIndex]) 5344 iNdEx = postIndex 5345 case 2: 5346 if wireType != 2 { 5347 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 5348 } 5349 var stringLen uint64 5350 for shift := uint(0); ; shift += 7 { 5351 if shift >= 64 { 5352 return ErrIntOverflowShim 5353 } 5354 if iNdEx >= l { 5355 return io.ErrUnexpectedEOF 5356 } 5357 b := dAtA[iNdEx] 5358 iNdEx++ 5359 stringLen |= uint64(b&0x7F) << shift 5360 if b < 0x80 { 5361 break 5362 } 5363 } 5364 intStringLen := int(stringLen) 5365 if intStringLen < 0 { 5366 return ErrInvalidLengthShim 5367 } 5368 postIndex := iNdEx + intStringLen 5369 if postIndex < 0 { 5370 return ErrInvalidLengthShim 5371 } 5372 if postIndex > l { 5373 return io.ErrUnexpectedEOF 5374 } 5375 m.ExecID = string(dAtA[iNdEx:postIndex]) 5376 iNdEx = postIndex 5377 case 3: 5378 if wireType != 0 { 5379 return fmt.Errorf("proto: wrong wireType = %d for field Signal", wireType) 5380 } 5381 m.Signal = 0 5382 for shift := uint(0); ; shift += 7 { 5383 if shift >= 64 { 5384 return ErrIntOverflowShim 5385 } 5386 if iNdEx >= l { 5387 return io.ErrUnexpectedEOF 5388 } 5389 b := dAtA[iNdEx] 5390 iNdEx++ 5391 m.Signal |= uint32(b&0x7F) << shift 5392 if b < 0x80 { 5393 break 5394 } 5395 } 5396 case 4: 5397 if wireType != 0 { 5398 return fmt.Errorf("proto: wrong wireType = %d for field All", wireType) 5399 } 5400 var v int 5401 for shift := uint(0); ; shift += 7 { 5402 if shift >= 64 { 5403 return ErrIntOverflowShim 5404 } 5405 if iNdEx >= l { 5406 return io.ErrUnexpectedEOF 5407 } 5408 b := dAtA[iNdEx] 5409 iNdEx++ 5410 v |= int(b&0x7F) << shift 5411 if b < 0x80 { 5412 break 5413 } 5414 } 5415 m.All = bool(v != 0) 5416 default: 5417 iNdEx = preIndex 5418 skippy, err := skipShim(dAtA[iNdEx:]) 5419 if err != nil { 5420 return err 5421 } 5422 if (skippy < 0) || (iNdEx+skippy) < 0 { 5423 return ErrInvalidLengthShim 5424 } 5425 if (iNdEx + skippy) > l { 5426 return io.ErrUnexpectedEOF 5427 } 5428 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5429 iNdEx += skippy 5430 } 5431 } 5432 5433 if iNdEx > l { 5434 return io.ErrUnexpectedEOF 5435 } 5436 return nil 5437 } 5438 func (m *CloseIORequest) Unmarshal(dAtA []byte) error { 5439 l := len(dAtA) 5440 iNdEx := 0 5441 for iNdEx < l { 5442 preIndex := iNdEx 5443 var wire uint64 5444 for shift := uint(0); ; shift += 7 { 5445 if shift >= 64 { 5446 return ErrIntOverflowShim 5447 } 5448 if iNdEx >= l { 5449 return io.ErrUnexpectedEOF 5450 } 5451 b := dAtA[iNdEx] 5452 iNdEx++ 5453 wire |= uint64(b&0x7F) << shift 5454 if b < 0x80 { 5455 break 5456 } 5457 } 5458 fieldNum := int32(wire >> 3) 5459 wireType := int(wire & 0x7) 5460 if wireType == 4 { 5461 return fmt.Errorf("proto: CloseIORequest: wiretype end group for non-group") 5462 } 5463 if fieldNum <= 0 { 5464 return fmt.Errorf("proto: CloseIORequest: illegal tag %d (wire type %d)", fieldNum, wire) 5465 } 5466 switch fieldNum { 5467 case 1: 5468 if wireType != 2 { 5469 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 5470 } 5471 var stringLen uint64 5472 for shift := uint(0); ; shift += 7 { 5473 if shift >= 64 { 5474 return ErrIntOverflowShim 5475 } 5476 if iNdEx >= l { 5477 return io.ErrUnexpectedEOF 5478 } 5479 b := dAtA[iNdEx] 5480 iNdEx++ 5481 stringLen |= uint64(b&0x7F) << shift 5482 if b < 0x80 { 5483 break 5484 } 5485 } 5486 intStringLen := int(stringLen) 5487 if intStringLen < 0 { 5488 return ErrInvalidLengthShim 5489 } 5490 postIndex := iNdEx + intStringLen 5491 if postIndex < 0 { 5492 return ErrInvalidLengthShim 5493 } 5494 if postIndex > l { 5495 return io.ErrUnexpectedEOF 5496 } 5497 m.ID = string(dAtA[iNdEx:postIndex]) 5498 iNdEx = postIndex 5499 case 2: 5500 if wireType != 2 { 5501 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 5502 } 5503 var stringLen uint64 5504 for shift := uint(0); ; shift += 7 { 5505 if shift >= 64 { 5506 return ErrIntOverflowShim 5507 } 5508 if iNdEx >= l { 5509 return io.ErrUnexpectedEOF 5510 } 5511 b := dAtA[iNdEx] 5512 iNdEx++ 5513 stringLen |= uint64(b&0x7F) << shift 5514 if b < 0x80 { 5515 break 5516 } 5517 } 5518 intStringLen := int(stringLen) 5519 if intStringLen < 0 { 5520 return ErrInvalidLengthShim 5521 } 5522 postIndex := iNdEx + intStringLen 5523 if postIndex < 0 { 5524 return ErrInvalidLengthShim 5525 } 5526 if postIndex > l { 5527 return io.ErrUnexpectedEOF 5528 } 5529 m.ExecID = string(dAtA[iNdEx:postIndex]) 5530 iNdEx = postIndex 5531 case 3: 5532 if wireType != 0 { 5533 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 5534 } 5535 var v int 5536 for shift := uint(0); ; shift += 7 { 5537 if shift >= 64 { 5538 return ErrIntOverflowShim 5539 } 5540 if iNdEx >= l { 5541 return io.ErrUnexpectedEOF 5542 } 5543 b := dAtA[iNdEx] 5544 iNdEx++ 5545 v |= int(b&0x7F) << shift 5546 if b < 0x80 { 5547 break 5548 } 5549 } 5550 m.Stdin = bool(v != 0) 5551 default: 5552 iNdEx = preIndex 5553 skippy, err := skipShim(dAtA[iNdEx:]) 5554 if err != nil { 5555 return err 5556 } 5557 if (skippy < 0) || (iNdEx+skippy) < 0 { 5558 return ErrInvalidLengthShim 5559 } 5560 if (iNdEx + skippy) > l { 5561 return io.ErrUnexpectedEOF 5562 } 5563 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5564 iNdEx += skippy 5565 } 5566 } 5567 5568 if iNdEx > l { 5569 return io.ErrUnexpectedEOF 5570 } 5571 return nil 5572 } 5573 func (m *PidsRequest) Unmarshal(dAtA []byte) error { 5574 l := len(dAtA) 5575 iNdEx := 0 5576 for iNdEx < l { 5577 preIndex := iNdEx 5578 var wire uint64 5579 for shift := uint(0); ; shift += 7 { 5580 if shift >= 64 { 5581 return ErrIntOverflowShim 5582 } 5583 if iNdEx >= l { 5584 return io.ErrUnexpectedEOF 5585 } 5586 b := dAtA[iNdEx] 5587 iNdEx++ 5588 wire |= uint64(b&0x7F) << shift 5589 if b < 0x80 { 5590 break 5591 } 5592 } 5593 fieldNum := int32(wire >> 3) 5594 wireType := int(wire & 0x7) 5595 if wireType == 4 { 5596 return fmt.Errorf("proto: PidsRequest: wiretype end group for non-group") 5597 } 5598 if fieldNum <= 0 { 5599 return fmt.Errorf("proto: PidsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5600 } 5601 switch fieldNum { 5602 case 1: 5603 if wireType != 2 { 5604 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 5605 } 5606 var stringLen uint64 5607 for shift := uint(0); ; shift += 7 { 5608 if shift >= 64 { 5609 return ErrIntOverflowShim 5610 } 5611 if iNdEx >= l { 5612 return io.ErrUnexpectedEOF 5613 } 5614 b := dAtA[iNdEx] 5615 iNdEx++ 5616 stringLen |= uint64(b&0x7F) << shift 5617 if b < 0x80 { 5618 break 5619 } 5620 } 5621 intStringLen := int(stringLen) 5622 if intStringLen < 0 { 5623 return ErrInvalidLengthShim 5624 } 5625 postIndex := iNdEx + intStringLen 5626 if postIndex < 0 { 5627 return ErrInvalidLengthShim 5628 } 5629 if postIndex > l { 5630 return io.ErrUnexpectedEOF 5631 } 5632 m.ID = string(dAtA[iNdEx:postIndex]) 5633 iNdEx = postIndex 5634 default: 5635 iNdEx = preIndex 5636 skippy, err := skipShim(dAtA[iNdEx:]) 5637 if err != nil { 5638 return err 5639 } 5640 if (skippy < 0) || (iNdEx+skippy) < 0 { 5641 return ErrInvalidLengthShim 5642 } 5643 if (iNdEx + skippy) > l { 5644 return io.ErrUnexpectedEOF 5645 } 5646 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5647 iNdEx += skippy 5648 } 5649 } 5650 5651 if iNdEx > l { 5652 return io.ErrUnexpectedEOF 5653 } 5654 return nil 5655 } 5656 func (m *PidsResponse) Unmarshal(dAtA []byte) error { 5657 l := len(dAtA) 5658 iNdEx := 0 5659 for iNdEx < l { 5660 preIndex := iNdEx 5661 var wire uint64 5662 for shift := uint(0); ; shift += 7 { 5663 if shift >= 64 { 5664 return ErrIntOverflowShim 5665 } 5666 if iNdEx >= l { 5667 return io.ErrUnexpectedEOF 5668 } 5669 b := dAtA[iNdEx] 5670 iNdEx++ 5671 wire |= uint64(b&0x7F) << shift 5672 if b < 0x80 { 5673 break 5674 } 5675 } 5676 fieldNum := int32(wire >> 3) 5677 wireType := int(wire & 0x7) 5678 if wireType == 4 { 5679 return fmt.Errorf("proto: PidsResponse: wiretype end group for non-group") 5680 } 5681 if fieldNum <= 0 { 5682 return fmt.Errorf("proto: PidsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5683 } 5684 switch fieldNum { 5685 case 1: 5686 if wireType != 2 { 5687 return fmt.Errorf("proto: wrong wireType = %d for field Processes", wireType) 5688 } 5689 var msglen int 5690 for shift := uint(0); ; shift += 7 { 5691 if shift >= 64 { 5692 return ErrIntOverflowShim 5693 } 5694 if iNdEx >= l { 5695 return io.ErrUnexpectedEOF 5696 } 5697 b := dAtA[iNdEx] 5698 iNdEx++ 5699 msglen |= int(b&0x7F) << shift 5700 if b < 0x80 { 5701 break 5702 } 5703 } 5704 if msglen < 0 { 5705 return ErrInvalidLengthShim 5706 } 5707 postIndex := iNdEx + msglen 5708 if postIndex < 0 { 5709 return ErrInvalidLengthShim 5710 } 5711 if postIndex > l { 5712 return io.ErrUnexpectedEOF 5713 } 5714 m.Processes = append(m.Processes, &task.ProcessInfo{}) 5715 if err := m.Processes[len(m.Processes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5716 return err 5717 } 5718 iNdEx = postIndex 5719 default: 5720 iNdEx = preIndex 5721 skippy, err := skipShim(dAtA[iNdEx:]) 5722 if err != nil { 5723 return err 5724 } 5725 if (skippy < 0) || (iNdEx+skippy) < 0 { 5726 return ErrInvalidLengthShim 5727 } 5728 if (iNdEx + skippy) > l { 5729 return io.ErrUnexpectedEOF 5730 } 5731 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5732 iNdEx += skippy 5733 } 5734 } 5735 5736 if iNdEx > l { 5737 return io.ErrUnexpectedEOF 5738 } 5739 return nil 5740 } 5741 func (m *CheckpointTaskRequest) Unmarshal(dAtA []byte) error { 5742 l := len(dAtA) 5743 iNdEx := 0 5744 for iNdEx < l { 5745 preIndex := iNdEx 5746 var wire uint64 5747 for shift := uint(0); ; shift += 7 { 5748 if shift >= 64 { 5749 return ErrIntOverflowShim 5750 } 5751 if iNdEx >= l { 5752 return io.ErrUnexpectedEOF 5753 } 5754 b := dAtA[iNdEx] 5755 iNdEx++ 5756 wire |= uint64(b&0x7F) << shift 5757 if b < 0x80 { 5758 break 5759 } 5760 } 5761 fieldNum := int32(wire >> 3) 5762 wireType := int(wire & 0x7) 5763 if wireType == 4 { 5764 return fmt.Errorf("proto: CheckpointTaskRequest: wiretype end group for non-group") 5765 } 5766 if fieldNum <= 0 { 5767 return fmt.Errorf("proto: CheckpointTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5768 } 5769 switch fieldNum { 5770 case 1: 5771 if wireType != 2 { 5772 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 5773 } 5774 var stringLen uint64 5775 for shift := uint(0); ; shift += 7 { 5776 if shift >= 64 { 5777 return ErrIntOverflowShim 5778 } 5779 if iNdEx >= l { 5780 return io.ErrUnexpectedEOF 5781 } 5782 b := dAtA[iNdEx] 5783 iNdEx++ 5784 stringLen |= uint64(b&0x7F) << shift 5785 if b < 0x80 { 5786 break 5787 } 5788 } 5789 intStringLen := int(stringLen) 5790 if intStringLen < 0 { 5791 return ErrInvalidLengthShim 5792 } 5793 postIndex := iNdEx + intStringLen 5794 if postIndex < 0 { 5795 return ErrInvalidLengthShim 5796 } 5797 if postIndex > l { 5798 return io.ErrUnexpectedEOF 5799 } 5800 m.ID = string(dAtA[iNdEx:postIndex]) 5801 iNdEx = postIndex 5802 case 2: 5803 if wireType != 2 { 5804 return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) 5805 } 5806 var stringLen uint64 5807 for shift := uint(0); ; shift += 7 { 5808 if shift >= 64 { 5809 return ErrIntOverflowShim 5810 } 5811 if iNdEx >= l { 5812 return io.ErrUnexpectedEOF 5813 } 5814 b := dAtA[iNdEx] 5815 iNdEx++ 5816 stringLen |= uint64(b&0x7F) << shift 5817 if b < 0x80 { 5818 break 5819 } 5820 } 5821 intStringLen := int(stringLen) 5822 if intStringLen < 0 { 5823 return ErrInvalidLengthShim 5824 } 5825 postIndex := iNdEx + intStringLen 5826 if postIndex < 0 { 5827 return ErrInvalidLengthShim 5828 } 5829 if postIndex > l { 5830 return io.ErrUnexpectedEOF 5831 } 5832 m.Path = string(dAtA[iNdEx:postIndex]) 5833 iNdEx = postIndex 5834 case 3: 5835 if wireType != 2 { 5836 return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) 5837 } 5838 var msglen int 5839 for shift := uint(0); ; shift += 7 { 5840 if shift >= 64 { 5841 return ErrIntOverflowShim 5842 } 5843 if iNdEx >= l { 5844 return io.ErrUnexpectedEOF 5845 } 5846 b := dAtA[iNdEx] 5847 iNdEx++ 5848 msglen |= int(b&0x7F) << shift 5849 if b < 0x80 { 5850 break 5851 } 5852 } 5853 if msglen < 0 { 5854 return ErrInvalidLengthShim 5855 } 5856 postIndex := iNdEx + msglen 5857 if postIndex < 0 { 5858 return ErrInvalidLengthShim 5859 } 5860 if postIndex > l { 5861 return io.ErrUnexpectedEOF 5862 } 5863 if m.Options == nil { 5864 m.Options = &types1.Any{} 5865 } 5866 if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5867 return err 5868 } 5869 iNdEx = postIndex 5870 default: 5871 iNdEx = preIndex 5872 skippy, err := skipShim(dAtA[iNdEx:]) 5873 if err != nil { 5874 return err 5875 } 5876 if (skippy < 0) || (iNdEx+skippy) < 0 { 5877 return ErrInvalidLengthShim 5878 } 5879 if (iNdEx + skippy) > l { 5880 return io.ErrUnexpectedEOF 5881 } 5882 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5883 iNdEx += skippy 5884 } 5885 } 5886 5887 if iNdEx > l { 5888 return io.ErrUnexpectedEOF 5889 } 5890 return nil 5891 } 5892 func (m *UpdateTaskRequest) Unmarshal(dAtA []byte) error { 5893 l := len(dAtA) 5894 iNdEx := 0 5895 for iNdEx < l { 5896 preIndex := iNdEx 5897 var wire uint64 5898 for shift := uint(0); ; shift += 7 { 5899 if shift >= 64 { 5900 return ErrIntOverflowShim 5901 } 5902 if iNdEx >= l { 5903 return io.ErrUnexpectedEOF 5904 } 5905 b := dAtA[iNdEx] 5906 iNdEx++ 5907 wire |= uint64(b&0x7F) << shift 5908 if b < 0x80 { 5909 break 5910 } 5911 } 5912 fieldNum := int32(wire >> 3) 5913 wireType := int(wire & 0x7) 5914 if wireType == 4 { 5915 return fmt.Errorf("proto: UpdateTaskRequest: wiretype end group for non-group") 5916 } 5917 if fieldNum <= 0 { 5918 return fmt.Errorf("proto: UpdateTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5919 } 5920 switch fieldNum { 5921 case 1: 5922 if wireType != 2 { 5923 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 5924 } 5925 var stringLen uint64 5926 for shift := uint(0); ; shift += 7 { 5927 if shift >= 64 { 5928 return ErrIntOverflowShim 5929 } 5930 if iNdEx >= l { 5931 return io.ErrUnexpectedEOF 5932 } 5933 b := dAtA[iNdEx] 5934 iNdEx++ 5935 stringLen |= uint64(b&0x7F) << shift 5936 if b < 0x80 { 5937 break 5938 } 5939 } 5940 intStringLen := int(stringLen) 5941 if intStringLen < 0 { 5942 return ErrInvalidLengthShim 5943 } 5944 postIndex := iNdEx + intStringLen 5945 if postIndex < 0 { 5946 return ErrInvalidLengthShim 5947 } 5948 if postIndex > l { 5949 return io.ErrUnexpectedEOF 5950 } 5951 m.ID = string(dAtA[iNdEx:postIndex]) 5952 iNdEx = postIndex 5953 case 2: 5954 if wireType != 2 { 5955 return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) 5956 } 5957 var msglen int 5958 for shift := uint(0); ; shift += 7 { 5959 if shift >= 64 { 5960 return ErrIntOverflowShim 5961 } 5962 if iNdEx >= l { 5963 return io.ErrUnexpectedEOF 5964 } 5965 b := dAtA[iNdEx] 5966 iNdEx++ 5967 msglen |= int(b&0x7F) << shift 5968 if b < 0x80 { 5969 break 5970 } 5971 } 5972 if msglen < 0 { 5973 return ErrInvalidLengthShim 5974 } 5975 postIndex := iNdEx + msglen 5976 if postIndex < 0 { 5977 return ErrInvalidLengthShim 5978 } 5979 if postIndex > l { 5980 return io.ErrUnexpectedEOF 5981 } 5982 if m.Resources == nil { 5983 m.Resources = &types1.Any{} 5984 } 5985 if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5986 return err 5987 } 5988 iNdEx = postIndex 5989 default: 5990 iNdEx = preIndex 5991 skippy, err := skipShim(dAtA[iNdEx:]) 5992 if err != nil { 5993 return err 5994 } 5995 if (skippy < 0) || (iNdEx+skippy) < 0 { 5996 return ErrInvalidLengthShim 5997 } 5998 if (iNdEx + skippy) > l { 5999 return io.ErrUnexpectedEOF 6000 } 6001 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6002 iNdEx += skippy 6003 } 6004 } 6005 6006 if iNdEx > l { 6007 return io.ErrUnexpectedEOF 6008 } 6009 return nil 6010 } 6011 func (m *StartRequest) Unmarshal(dAtA []byte) error { 6012 l := len(dAtA) 6013 iNdEx := 0 6014 for iNdEx < l { 6015 preIndex := iNdEx 6016 var wire uint64 6017 for shift := uint(0); ; shift += 7 { 6018 if shift >= 64 { 6019 return ErrIntOverflowShim 6020 } 6021 if iNdEx >= l { 6022 return io.ErrUnexpectedEOF 6023 } 6024 b := dAtA[iNdEx] 6025 iNdEx++ 6026 wire |= uint64(b&0x7F) << shift 6027 if b < 0x80 { 6028 break 6029 } 6030 } 6031 fieldNum := int32(wire >> 3) 6032 wireType := int(wire & 0x7) 6033 if wireType == 4 { 6034 return fmt.Errorf("proto: StartRequest: wiretype end group for non-group") 6035 } 6036 if fieldNum <= 0 { 6037 return fmt.Errorf("proto: StartRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6038 } 6039 switch fieldNum { 6040 case 1: 6041 if wireType != 2 { 6042 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6043 } 6044 var stringLen uint64 6045 for shift := uint(0); ; shift += 7 { 6046 if shift >= 64 { 6047 return ErrIntOverflowShim 6048 } 6049 if iNdEx >= l { 6050 return io.ErrUnexpectedEOF 6051 } 6052 b := dAtA[iNdEx] 6053 iNdEx++ 6054 stringLen |= uint64(b&0x7F) << shift 6055 if b < 0x80 { 6056 break 6057 } 6058 } 6059 intStringLen := int(stringLen) 6060 if intStringLen < 0 { 6061 return ErrInvalidLengthShim 6062 } 6063 postIndex := iNdEx + intStringLen 6064 if postIndex < 0 { 6065 return ErrInvalidLengthShim 6066 } 6067 if postIndex > l { 6068 return io.ErrUnexpectedEOF 6069 } 6070 m.ID = string(dAtA[iNdEx:postIndex]) 6071 iNdEx = postIndex 6072 case 2: 6073 if wireType != 2 { 6074 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 6075 } 6076 var stringLen uint64 6077 for shift := uint(0); ; shift += 7 { 6078 if shift >= 64 { 6079 return ErrIntOverflowShim 6080 } 6081 if iNdEx >= l { 6082 return io.ErrUnexpectedEOF 6083 } 6084 b := dAtA[iNdEx] 6085 iNdEx++ 6086 stringLen |= uint64(b&0x7F) << shift 6087 if b < 0x80 { 6088 break 6089 } 6090 } 6091 intStringLen := int(stringLen) 6092 if intStringLen < 0 { 6093 return ErrInvalidLengthShim 6094 } 6095 postIndex := iNdEx + intStringLen 6096 if postIndex < 0 { 6097 return ErrInvalidLengthShim 6098 } 6099 if postIndex > l { 6100 return io.ErrUnexpectedEOF 6101 } 6102 m.ExecID = string(dAtA[iNdEx:postIndex]) 6103 iNdEx = postIndex 6104 default: 6105 iNdEx = preIndex 6106 skippy, err := skipShim(dAtA[iNdEx:]) 6107 if err != nil { 6108 return err 6109 } 6110 if (skippy < 0) || (iNdEx+skippy) < 0 { 6111 return ErrInvalidLengthShim 6112 } 6113 if (iNdEx + skippy) > l { 6114 return io.ErrUnexpectedEOF 6115 } 6116 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6117 iNdEx += skippy 6118 } 6119 } 6120 6121 if iNdEx > l { 6122 return io.ErrUnexpectedEOF 6123 } 6124 return nil 6125 } 6126 func (m *StartResponse) Unmarshal(dAtA []byte) error { 6127 l := len(dAtA) 6128 iNdEx := 0 6129 for iNdEx < l { 6130 preIndex := iNdEx 6131 var wire uint64 6132 for shift := uint(0); ; shift += 7 { 6133 if shift >= 64 { 6134 return ErrIntOverflowShim 6135 } 6136 if iNdEx >= l { 6137 return io.ErrUnexpectedEOF 6138 } 6139 b := dAtA[iNdEx] 6140 iNdEx++ 6141 wire |= uint64(b&0x7F) << shift 6142 if b < 0x80 { 6143 break 6144 } 6145 } 6146 fieldNum := int32(wire >> 3) 6147 wireType := int(wire & 0x7) 6148 if wireType == 4 { 6149 return fmt.Errorf("proto: StartResponse: wiretype end group for non-group") 6150 } 6151 if fieldNum <= 0 { 6152 return fmt.Errorf("proto: StartResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6153 } 6154 switch fieldNum { 6155 case 1: 6156 if wireType != 0 { 6157 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 6158 } 6159 m.Pid = 0 6160 for shift := uint(0); ; shift += 7 { 6161 if shift >= 64 { 6162 return ErrIntOverflowShim 6163 } 6164 if iNdEx >= l { 6165 return io.ErrUnexpectedEOF 6166 } 6167 b := dAtA[iNdEx] 6168 iNdEx++ 6169 m.Pid |= uint32(b&0x7F) << shift 6170 if b < 0x80 { 6171 break 6172 } 6173 } 6174 default: 6175 iNdEx = preIndex 6176 skippy, err := skipShim(dAtA[iNdEx:]) 6177 if err != nil { 6178 return err 6179 } 6180 if (skippy < 0) || (iNdEx+skippy) < 0 { 6181 return ErrInvalidLengthShim 6182 } 6183 if (iNdEx + skippy) > l { 6184 return io.ErrUnexpectedEOF 6185 } 6186 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6187 iNdEx += skippy 6188 } 6189 } 6190 6191 if iNdEx > l { 6192 return io.ErrUnexpectedEOF 6193 } 6194 return nil 6195 } 6196 func (m *WaitRequest) Unmarshal(dAtA []byte) error { 6197 l := len(dAtA) 6198 iNdEx := 0 6199 for iNdEx < l { 6200 preIndex := iNdEx 6201 var wire uint64 6202 for shift := uint(0); ; shift += 7 { 6203 if shift >= 64 { 6204 return ErrIntOverflowShim 6205 } 6206 if iNdEx >= l { 6207 return io.ErrUnexpectedEOF 6208 } 6209 b := dAtA[iNdEx] 6210 iNdEx++ 6211 wire |= uint64(b&0x7F) << shift 6212 if b < 0x80 { 6213 break 6214 } 6215 } 6216 fieldNum := int32(wire >> 3) 6217 wireType := int(wire & 0x7) 6218 if wireType == 4 { 6219 return fmt.Errorf("proto: WaitRequest: wiretype end group for non-group") 6220 } 6221 if fieldNum <= 0 { 6222 return fmt.Errorf("proto: WaitRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6223 } 6224 switch fieldNum { 6225 case 1: 6226 if wireType != 2 { 6227 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6228 } 6229 var stringLen uint64 6230 for shift := uint(0); ; shift += 7 { 6231 if shift >= 64 { 6232 return ErrIntOverflowShim 6233 } 6234 if iNdEx >= l { 6235 return io.ErrUnexpectedEOF 6236 } 6237 b := dAtA[iNdEx] 6238 iNdEx++ 6239 stringLen |= uint64(b&0x7F) << shift 6240 if b < 0x80 { 6241 break 6242 } 6243 } 6244 intStringLen := int(stringLen) 6245 if intStringLen < 0 { 6246 return ErrInvalidLengthShim 6247 } 6248 postIndex := iNdEx + intStringLen 6249 if postIndex < 0 { 6250 return ErrInvalidLengthShim 6251 } 6252 if postIndex > l { 6253 return io.ErrUnexpectedEOF 6254 } 6255 m.ID = string(dAtA[iNdEx:postIndex]) 6256 iNdEx = postIndex 6257 case 2: 6258 if wireType != 2 { 6259 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 6260 } 6261 var stringLen uint64 6262 for shift := uint(0); ; shift += 7 { 6263 if shift >= 64 { 6264 return ErrIntOverflowShim 6265 } 6266 if iNdEx >= l { 6267 return io.ErrUnexpectedEOF 6268 } 6269 b := dAtA[iNdEx] 6270 iNdEx++ 6271 stringLen |= uint64(b&0x7F) << shift 6272 if b < 0x80 { 6273 break 6274 } 6275 } 6276 intStringLen := int(stringLen) 6277 if intStringLen < 0 { 6278 return ErrInvalidLengthShim 6279 } 6280 postIndex := iNdEx + intStringLen 6281 if postIndex < 0 { 6282 return ErrInvalidLengthShim 6283 } 6284 if postIndex > l { 6285 return io.ErrUnexpectedEOF 6286 } 6287 m.ExecID = string(dAtA[iNdEx:postIndex]) 6288 iNdEx = postIndex 6289 default: 6290 iNdEx = preIndex 6291 skippy, err := skipShim(dAtA[iNdEx:]) 6292 if err != nil { 6293 return err 6294 } 6295 if (skippy < 0) || (iNdEx+skippy) < 0 { 6296 return ErrInvalidLengthShim 6297 } 6298 if (iNdEx + skippy) > l { 6299 return io.ErrUnexpectedEOF 6300 } 6301 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6302 iNdEx += skippy 6303 } 6304 } 6305 6306 if iNdEx > l { 6307 return io.ErrUnexpectedEOF 6308 } 6309 return nil 6310 } 6311 func (m *WaitResponse) Unmarshal(dAtA []byte) error { 6312 l := len(dAtA) 6313 iNdEx := 0 6314 for iNdEx < l { 6315 preIndex := iNdEx 6316 var wire uint64 6317 for shift := uint(0); ; shift += 7 { 6318 if shift >= 64 { 6319 return ErrIntOverflowShim 6320 } 6321 if iNdEx >= l { 6322 return io.ErrUnexpectedEOF 6323 } 6324 b := dAtA[iNdEx] 6325 iNdEx++ 6326 wire |= uint64(b&0x7F) << shift 6327 if b < 0x80 { 6328 break 6329 } 6330 } 6331 fieldNum := int32(wire >> 3) 6332 wireType := int(wire & 0x7) 6333 if wireType == 4 { 6334 return fmt.Errorf("proto: WaitResponse: wiretype end group for non-group") 6335 } 6336 if fieldNum <= 0 { 6337 return fmt.Errorf("proto: WaitResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6338 } 6339 switch fieldNum { 6340 case 1: 6341 if wireType != 0 { 6342 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 6343 } 6344 m.ExitStatus = 0 6345 for shift := uint(0); ; shift += 7 { 6346 if shift >= 64 { 6347 return ErrIntOverflowShim 6348 } 6349 if iNdEx >= l { 6350 return io.ErrUnexpectedEOF 6351 } 6352 b := dAtA[iNdEx] 6353 iNdEx++ 6354 m.ExitStatus |= uint32(b&0x7F) << shift 6355 if b < 0x80 { 6356 break 6357 } 6358 } 6359 case 2: 6360 if wireType != 2 { 6361 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 6362 } 6363 var msglen int 6364 for shift := uint(0); ; shift += 7 { 6365 if shift >= 64 { 6366 return ErrIntOverflowShim 6367 } 6368 if iNdEx >= l { 6369 return io.ErrUnexpectedEOF 6370 } 6371 b := dAtA[iNdEx] 6372 iNdEx++ 6373 msglen |= int(b&0x7F) << shift 6374 if b < 0x80 { 6375 break 6376 } 6377 } 6378 if msglen < 0 { 6379 return ErrInvalidLengthShim 6380 } 6381 postIndex := iNdEx + msglen 6382 if postIndex < 0 { 6383 return ErrInvalidLengthShim 6384 } 6385 if postIndex > l { 6386 return io.ErrUnexpectedEOF 6387 } 6388 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 6389 return err 6390 } 6391 iNdEx = postIndex 6392 default: 6393 iNdEx = preIndex 6394 skippy, err := skipShim(dAtA[iNdEx:]) 6395 if err != nil { 6396 return err 6397 } 6398 if (skippy < 0) || (iNdEx+skippy) < 0 { 6399 return ErrInvalidLengthShim 6400 } 6401 if (iNdEx + skippy) > l { 6402 return io.ErrUnexpectedEOF 6403 } 6404 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6405 iNdEx += skippy 6406 } 6407 } 6408 6409 if iNdEx > l { 6410 return io.ErrUnexpectedEOF 6411 } 6412 return nil 6413 } 6414 func (m *StatsRequest) Unmarshal(dAtA []byte) error { 6415 l := len(dAtA) 6416 iNdEx := 0 6417 for iNdEx < l { 6418 preIndex := iNdEx 6419 var wire uint64 6420 for shift := uint(0); ; shift += 7 { 6421 if shift >= 64 { 6422 return ErrIntOverflowShim 6423 } 6424 if iNdEx >= l { 6425 return io.ErrUnexpectedEOF 6426 } 6427 b := dAtA[iNdEx] 6428 iNdEx++ 6429 wire |= uint64(b&0x7F) << shift 6430 if b < 0x80 { 6431 break 6432 } 6433 } 6434 fieldNum := int32(wire >> 3) 6435 wireType := int(wire & 0x7) 6436 if wireType == 4 { 6437 return fmt.Errorf("proto: StatsRequest: wiretype end group for non-group") 6438 } 6439 if fieldNum <= 0 { 6440 return fmt.Errorf("proto: StatsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6441 } 6442 switch fieldNum { 6443 case 1: 6444 if wireType != 2 { 6445 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6446 } 6447 var stringLen uint64 6448 for shift := uint(0); ; shift += 7 { 6449 if shift >= 64 { 6450 return ErrIntOverflowShim 6451 } 6452 if iNdEx >= l { 6453 return io.ErrUnexpectedEOF 6454 } 6455 b := dAtA[iNdEx] 6456 iNdEx++ 6457 stringLen |= uint64(b&0x7F) << shift 6458 if b < 0x80 { 6459 break 6460 } 6461 } 6462 intStringLen := int(stringLen) 6463 if intStringLen < 0 { 6464 return ErrInvalidLengthShim 6465 } 6466 postIndex := iNdEx + intStringLen 6467 if postIndex < 0 { 6468 return ErrInvalidLengthShim 6469 } 6470 if postIndex > l { 6471 return io.ErrUnexpectedEOF 6472 } 6473 m.ID = string(dAtA[iNdEx:postIndex]) 6474 iNdEx = postIndex 6475 default: 6476 iNdEx = preIndex 6477 skippy, err := skipShim(dAtA[iNdEx:]) 6478 if err != nil { 6479 return err 6480 } 6481 if (skippy < 0) || (iNdEx+skippy) < 0 { 6482 return ErrInvalidLengthShim 6483 } 6484 if (iNdEx + skippy) > l { 6485 return io.ErrUnexpectedEOF 6486 } 6487 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6488 iNdEx += skippy 6489 } 6490 } 6491 6492 if iNdEx > l { 6493 return io.ErrUnexpectedEOF 6494 } 6495 return nil 6496 } 6497 func (m *StatsResponse) Unmarshal(dAtA []byte) error { 6498 l := len(dAtA) 6499 iNdEx := 0 6500 for iNdEx < l { 6501 preIndex := iNdEx 6502 var wire uint64 6503 for shift := uint(0); ; shift += 7 { 6504 if shift >= 64 { 6505 return ErrIntOverflowShim 6506 } 6507 if iNdEx >= l { 6508 return io.ErrUnexpectedEOF 6509 } 6510 b := dAtA[iNdEx] 6511 iNdEx++ 6512 wire |= uint64(b&0x7F) << shift 6513 if b < 0x80 { 6514 break 6515 } 6516 } 6517 fieldNum := int32(wire >> 3) 6518 wireType := int(wire & 0x7) 6519 if wireType == 4 { 6520 return fmt.Errorf("proto: StatsResponse: wiretype end group for non-group") 6521 } 6522 if fieldNum <= 0 { 6523 return fmt.Errorf("proto: StatsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6524 } 6525 switch fieldNum { 6526 case 1: 6527 if wireType != 2 { 6528 return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType) 6529 } 6530 var msglen int 6531 for shift := uint(0); ; shift += 7 { 6532 if shift >= 64 { 6533 return ErrIntOverflowShim 6534 } 6535 if iNdEx >= l { 6536 return io.ErrUnexpectedEOF 6537 } 6538 b := dAtA[iNdEx] 6539 iNdEx++ 6540 msglen |= int(b&0x7F) << shift 6541 if b < 0x80 { 6542 break 6543 } 6544 } 6545 if msglen < 0 { 6546 return ErrInvalidLengthShim 6547 } 6548 postIndex := iNdEx + msglen 6549 if postIndex < 0 { 6550 return ErrInvalidLengthShim 6551 } 6552 if postIndex > l { 6553 return io.ErrUnexpectedEOF 6554 } 6555 if m.Stats == nil { 6556 m.Stats = &types1.Any{} 6557 } 6558 if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6559 return err 6560 } 6561 iNdEx = postIndex 6562 default: 6563 iNdEx = preIndex 6564 skippy, err := skipShim(dAtA[iNdEx:]) 6565 if err != nil { 6566 return err 6567 } 6568 if (skippy < 0) || (iNdEx+skippy) < 0 { 6569 return ErrInvalidLengthShim 6570 } 6571 if (iNdEx + skippy) > l { 6572 return io.ErrUnexpectedEOF 6573 } 6574 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6575 iNdEx += skippy 6576 } 6577 } 6578 6579 if iNdEx > l { 6580 return io.ErrUnexpectedEOF 6581 } 6582 return nil 6583 } 6584 func (m *ConnectRequest) Unmarshal(dAtA []byte) error { 6585 l := len(dAtA) 6586 iNdEx := 0 6587 for iNdEx < l { 6588 preIndex := iNdEx 6589 var wire uint64 6590 for shift := uint(0); ; shift += 7 { 6591 if shift >= 64 { 6592 return ErrIntOverflowShim 6593 } 6594 if iNdEx >= l { 6595 return io.ErrUnexpectedEOF 6596 } 6597 b := dAtA[iNdEx] 6598 iNdEx++ 6599 wire |= uint64(b&0x7F) << shift 6600 if b < 0x80 { 6601 break 6602 } 6603 } 6604 fieldNum := int32(wire >> 3) 6605 wireType := int(wire & 0x7) 6606 if wireType == 4 { 6607 return fmt.Errorf("proto: ConnectRequest: wiretype end group for non-group") 6608 } 6609 if fieldNum <= 0 { 6610 return fmt.Errorf("proto: ConnectRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6611 } 6612 switch fieldNum { 6613 case 1: 6614 if wireType != 2 { 6615 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6616 } 6617 var stringLen uint64 6618 for shift := uint(0); ; shift += 7 { 6619 if shift >= 64 { 6620 return ErrIntOverflowShim 6621 } 6622 if iNdEx >= l { 6623 return io.ErrUnexpectedEOF 6624 } 6625 b := dAtA[iNdEx] 6626 iNdEx++ 6627 stringLen |= uint64(b&0x7F) << shift 6628 if b < 0x80 { 6629 break 6630 } 6631 } 6632 intStringLen := int(stringLen) 6633 if intStringLen < 0 { 6634 return ErrInvalidLengthShim 6635 } 6636 postIndex := iNdEx + intStringLen 6637 if postIndex < 0 { 6638 return ErrInvalidLengthShim 6639 } 6640 if postIndex > l { 6641 return io.ErrUnexpectedEOF 6642 } 6643 m.ID = string(dAtA[iNdEx:postIndex]) 6644 iNdEx = postIndex 6645 default: 6646 iNdEx = preIndex 6647 skippy, err := skipShim(dAtA[iNdEx:]) 6648 if err != nil { 6649 return err 6650 } 6651 if (skippy < 0) || (iNdEx+skippy) < 0 { 6652 return ErrInvalidLengthShim 6653 } 6654 if (iNdEx + skippy) > l { 6655 return io.ErrUnexpectedEOF 6656 } 6657 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6658 iNdEx += skippy 6659 } 6660 } 6661 6662 if iNdEx > l { 6663 return io.ErrUnexpectedEOF 6664 } 6665 return nil 6666 } 6667 func (m *ConnectResponse) Unmarshal(dAtA []byte) error { 6668 l := len(dAtA) 6669 iNdEx := 0 6670 for iNdEx < l { 6671 preIndex := iNdEx 6672 var wire uint64 6673 for shift := uint(0); ; shift += 7 { 6674 if shift >= 64 { 6675 return ErrIntOverflowShim 6676 } 6677 if iNdEx >= l { 6678 return io.ErrUnexpectedEOF 6679 } 6680 b := dAtA[iNdEx] 6681 iNdEx++ 6682 wire |= uint64(b&0x7F) << shift 6683 if b < 0x80 { 6684 break 6685 } 6686 } 6687 fieldNum := int32(wire >> 3) 6688 wireType := int(wire & 0x7) 6689 if wireType == 4 { 6690 return fmt.Errorf("proto: ConnectResponse: wiretype end group for non-group") 6691 } 6692 if fieldNum <= 0 { 6693 return fmt.Errorf("proto: ConnectResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6694 } 6695 switch fieldNum { 6696 case 1: 6697 if wireType != 0 { 6698 return fmt.Errorf("proto: wrong wireType = %d for field ShimPid", wireType) 6699 } 6700 m.ShimPid = 0 6701 for shift := uint(0); ; shift += 7 { 6702 if shift >= 64 { 6703 return ErrIntOverflowShim 6704 } 6705 if iNdEx >= l { 6706 return io.ErrUnexpectedEOF 6707 } 6708 b := dAtA[iNdEx] 6709 iNdEx++ 6710 m.ShimPid |= uint32(b&0x7F) << shift 6711 if b < 0x80 { 6712 break 6713 } 6714 } 6715 case 2: 6716 if wireType != 0 { 6717 return fmt.Errorf("proto: wrong wireType = %d for field TaskPid", wireType) 6718 } 6719 m.TaskPid = 0 6720 for shift := uint(0); ; shift += 7 { 6721 if shift >= 64 { 6722 return ErrIntOverflowShim 6723 } 6724 if iNdEx >= l { 6725 return io.ErrUnexpectedEOF 6726 } 6727 b := dAtA[iNdEx] 6728 iNdEx++ 6729 m.TaskPid |= uint32(b&0x7F) << shift 6730 if b < 0x80 { 6731 break 6732 } 6733 } 6734 case 3: 6735 if wireType != 2 { 6736 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 6737 } 6738 var stringLen 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 stringLen |= uint64(b&0x7F) << shift 6749 if b < 0x80 { 6750 break 6751 } 6752 } 6753 intStringLen := int(stringLen) 6754 if intStringLen < 0 { 6755 return ErrInvalidLengthShim 6756 } 6757 postIndex := iNdEx + intStringLen 6758 if postIndex < 0 { 6759 return ErrInvalidLengthShim 6760 } 6761 if postIndex > l { 6762 return io.ErrUnexpectedEOF 6763 } 6764 m.Version = string(dAtA[iNdEx:postIndex]) 6765 iNdEx = postIndex 6766 default: 6767 iNdEx = preIndex 6768 skippy, err := skipShim(dAtA[iNdEx:]) 6769 if err != nil { 6770 return err 6771 } 6772 if (skippy < 0) || (iNdEx+skippy) < 0 { 6773 return ErrInvalidLengthShim 6774 } 6775 if (iNdEx + skippy) > l { 6776 return io.ErrUnexpectedEOF 6777 } 6778 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6779 iNdEx += skippy 6780 } 6781 } 6782 6783 if iNdEx > l { 6784 return io.ErrUnexpectedEOF 6785 } 6786 return nil 6787 } 6788 func (m *ShutdownRequest) Unmarshal(dAtA []byte) error { 6789 l := len(dAtA) 6790 iNdEx := 0 6791 for iNdEx < l { 6792 preIndex := iNdEx 6793 var wire uint64 6794 for shift := uint(0); ; shift += 7 { 6795 if shift >= 64 { 6796 return ErrIntOverflowShim 6797 } 6798 if iNdEx >= l { 6799 return io.ErrUnexpectedEOF 6800 } 6801 b := dAtA[iNdEx] 6802 iNdEx++ 6803 wire |= uint64(b&0x7F) << shift 6804 if b < 0x80 { 6805 break 6806 } 6807 } 6808 fieldNum := int32(wire >> 3) 6809 wireType := int(wire & 0x7) 6810 if wireType == 4 { 6811 return fmt.Errorf("proto: ShutdownRequest: wiretype end group for non-group") 6812 } 6813 if fieldNum <= 0 { 6814 return fmt.Errorf("proto: ShutdownRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6815 } 6816 switch fieldNum { 6817 case 1: 6818 if wireType != 2 { 6819 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6820 } 6821 var stringLen uint64 6822 for shift := uint(0); ; shift += 7 { 6823 if shift >= 64 { 6824 return ErrIntOverflowShim 6825 } 6826 if iNdEx >= l { 6827 return io.ErrUnexpectedEOF 6828 } 6829 b := dAtA[iNdEx] 6830 iNdEx++ 6831 stringLen |= uint64(b&0x7F) << shift 6832 if b < 0x80 { 6833 break 6834 } 6835 } 6836 intStringLen := int(stringLen) 6837 if intStringLen < 0 { 6838 return ErrInvalidLengthShim 6839 } 6840 postIndex := iNdEx + intStringLen 6841 if postIndex < 0 { 6842 return ErrInvalidLengthShim 6843 } 6844 if postIndex > l { 6845 return io.ErrUnexpectedEOF 6846 } 6847 m.ID = string(dAtA[iNdEx:postIndex]) 6848 iNdEx = postIndex 6849 case 2: 6850 if wireType != 0 { 6851 return fmt.Errorf("proto: wrong wireType = %d for field Now", wireType) 6852 } 6853 var v int 6854 for shift := uint(0); ; shift += 7 { 6855 if shift >= 64 { 6856 return ErrIntOverflowShim 6857 } 6858 if iNdEx >= l { 6859 return io.ErrUnexpectedEOF 6860 } 6861 b := dAtA[iNdEx] 6862 iNdEx++ 6863 v |= int(b&0x7F) << shift 6864 if b < 0x80 { 6865 break 6866 } 6867 } 6868 m.Now = bool(v != 0) 6869 default: 6870 iNdEx = preIndex 6871 skippy, err := skipShim(dAtA[iNdEx:]) 6872 if err != nil { 6873 return err 6874 } 6875 if (skippy < 0) || (iNdEx+skippy) < 0 { 6876 return ErrInvalidLengthShim 6877 } 6878 if (iNdEx + skippy) > l { 6879 return io.ErrUnexpectedEOF 6880 } 6881 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6882 iNdEx += skippy 6883 } 6884 } 6885 6886 if iNdEx > l { 6887 return io.ErrUnexpectedEOF 6888 } 6889 return nil 6890 } 6891 func (m *PauseRequest) Unmarshal(dAtA []byte) error { 6892 l := len(dAtA) 6893 iNdEx := 0 6894 for iNdEx < l { 6895 preIndex := iNdEx 6896 var wire uint64 6897 for shift := uint(0); ; shift += 7 { 6898 if shift >= 64 { 6899 return ErrIntOverflowShim 6900 } 6901 if iNdEx >= l { 6902 return io.ErrUnexpectedEOF 6903 } 6904 b := dAtA[iNdEx] 6905 iNdEx++ 6906 wire |= uint64(b&0x7F) << shift 6907 if b < 0x80 { 6908 break 6909 } 6910 } 6911 fieldNum := int32(wire >> 3) 6912 wireType := int(wire & 0x7) 6913 if wireType == 4 { 6914 return fmt.Errorf("proto: PauseRequest: wiretype end group for non-group") 6915 } 6916 if fieldNum <= 0 { 6917 return fmt.Errorf("proto: PauseRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6918 } 6919 switch fieldNum { 6920 case 1: 6921 if wireType != 2 { 6922 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6923 } 6924 var stringLen uint64 6925 for shift := uint(0); ; shift += 7 { 6926 if shift >= 64 { 6927 return ErrIntOverflowShim 6928 } 6929 if iNdEx >= l { 6930 return io.ErrUnexpectedEOF 6931 } 6932 b := dAtA[iNdEx] 6933 iNdEx++ 6934 stringLen |= uint64(b&0x7F) << shift 6935 if b < 0x80 { 6936 break 6937 } 6938 } 6939 intStringLen := int(stringLen) 6940 if intStringLen < 0 { 6941 return ErrInvalidLengthShim 6942 } 6943 postIndex := iNdEx + intStringLen 6944 if postIndex < 0 { 6945 return ErrInvalidLengthShim 6946 } 6947 if postIndex > l { 6948 return io.ErrUnexpectedEOF 6949 } 6950 m.ID = string(dAtA[iNdEx:postIndex]) 6951 iNdEx = postIndex 6952 default: 6953 iNdEx = preIndex 6954 skippy, err := skipShim(dAtA[iNdEx:]) 6955 if err != nil { 6956 return err 6957 } 6958 if (skippy < 0) || (iNdEx+skippy) < 0 { 6959 return ErrInvalidLengthShim 6960 } 6961 if (iNdEx + skippy) > l { 6962 return io.ErrUnexpectedEOF 6963 } 6964 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6965 iNdEx += skippy 6966 } 6967 } 6968 6969 if iNdEx > l { 6970 return io.ErrUnexpectedEOF 6971 } 6972 return nil 6973 } 6974 func (m *ResumeRequest) Unmarshal(dAtA []byte) error { 6975 l := len(dAtA) 6976 iNdEx := 0 6977 for iNdEx < l { 6978 preIndex := iNdEx 6979 var wire uint64 6980 for shift := uint(0); ; shift += 7 { 6981 if shift >= 64 { 6982 return ErrIntOverflowShim 6983 } 6984 if iNdEx >= l { 6985 return io.ErrUnexpectedEOF 6986 } 6987 b := dAtA[iNdEx] 6988 iNdEx++ 6989 wire |= uint64(b&0x7F) << shift 6990 if b < 0x80 { 6991 break 6992 } 6993 } 6994 fieldNum := int32(wire >> 3) 6995 wireType := int(wire & 0x7) 6996 if wireType == 4 { 6997 return fmt.Errorf("proto: ResumeRequest: wiretype end group for non-group") 6998 } 6999 if fieldNum <= 0 { 7000 return fmt.Errorf("proto: ResumeRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7001 } 7002 switch fieldNum { 7003 case 1: 7004 if wireType != 2 { 7005 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 7006 } 7007 var stringLen uint64 7008 for shift := uint(0); ; shift += 7 { 7009 if shift >= 64 { 7010 return ErrIntOverflowShim 7011 } 7012 if iNdEx >= l { 7013 return io.ErrUnexpectedEOF 7014 } 7015 b := dAtA[iNdEx] 7016 iNdEx++ 7017 stringLen |= uint64(b&0x7F) << shift 7018 if b < 0x80 { 7019 break 7020 } 7021 } 7022 intStringLen := int(stringLen) 7023 if intStringLen < 0 { 7024 return ErrInvalidLengthShim 7025 } 7026 postIndex := iNdEx + intStringLen 7027 if postIndex < 0 { 7028 return ErrInvalidLengthShim 7029 } 7030 if postIndex > l { 7031 return io.ErrUnexpectedEOF 7032 } 7033 m.ID = string(dAtA[iNdEx:postIndex]) 7034 iNdEx = postIndex 7035 default: 7036 iNdEx = preIndex 7037 skippy, err := skipShim(dAtA[iNdEx:]) 7038 if err != nil { 7039 return err 7040 } 7041 if (skippy < 0) || (iNdEx+skippy) < 0 { 7042 return ErrInvalidLengthShim 7043 } 7044 if (iNdEx + skippy) > l { 7045 return io.ErrUnexpectedEOF 7046 } 7047 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7048 iNdEx += skippy 7049 } 7050 } 7051 7052 if iNdEx > l { 7053 return io.ErrUnexpectedEOF 7054 } 7055 return nil 7056 } 7057 func skipShim(dAtA []byte) (n int, err error) { 7058 l := len(dAtA) 7059 iNdEx := 0 7060 depth := 0 7061 for iNdEx < l { 7062 var wire uint64 7063 for shift := uint(0); ; shift += 7 { 7064 if shift >= 64 { 7065 return 0, ErrIntOverflowShim 7066 } 7067 if iNdEx >= l { 7068 return 0, io.ErrUnexpectedEOF 7069 } 7070 b := dAtA[iNdEx] 7071 iNdEx++ 7072 wire |= (uint64(b) & 0x7F) << shift 7073 if b < 0x80 { 7074 break 7075 } 7076 } 7077 wireType := int(wire & 0x7) 7078 switch wireType { 7079 case 0: 7080 for shift := uint(0); ; shift += 7 { 7081 if shift >= 64 { 7082 return 0, ErrIntOverflowShim 7083 } 7084 if iNdEx >= l { 7085 return 0, io.ErrUnexpectedEOF 7086 } 7087 iNdEx++ 7088 if dAtA[iNdEx-1] < 0x80 { 7089 break 7090 } 7091 } 7092 case 1: 7093 iNdEx += 8 7094 case 2: 7095 var length int 7096 for shift := uint(0); ; shift += 7 { 7097 if shift >= 64 { 7098 return 0, ErrIntOverflowShim 7099 } 7100 if iNdEx >= l { 7101 return 0, io.ErrUnexpectedEOF 7102 } 7103 b := dAtA[iNdEx] 7104 iNdEx++ 7105 length |= (int(b) & 0x7F) << shift 7106 if b < 0x80 { 7107 break 7108 } 7109 } 7110 if length < 0 { 7111 return 0, ErrInvalidLengthShim 7112 } 7113 iNdEx += length 7114 case 3: 7115 depth++ 7116 case 4: 7117 if depth == 0 { 7118 return 0, ErrUnexpectedEndOfGroupShim 7119 } 7120 depth-- 7121 case 5: 7122 iNdEx += 4 7123 default: 7124 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 7125 } 7126 if iNdEx < 0 { 7127 return 0, ErrInvalidLengthShim 7128 } 7129 if depth == 0 { 7130 return iNdEx, nil 7131 } 7132 } 7133 return 0, io.ErrUnexpectedEOF 7134 } 7135 7136 var ( 7137 ErrInvalidLengthShim = fmt.Errorf("proto: negative length found during unmarshaling") 7138 ErrIntOverflowShim = fmt.Errorf("proto: integer overflow") 7139 ErrUnexpectedEndOfGroupShim = fmt.Errorf("proto: unexpected end of group") 7140 )