github.com/containerd/Containerd@v1.4.13/api/events/task.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/containerd/containerd/api/events/task.proto 3 4 package events 5 6 import ( 7 fmt "fmt" 8 types "github.com/containerd/containerd/api/types" 9 proto "github.com/gogo/protobuf/proto" 10 _ "github.com/gogo/protobuf/types" 11 github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 12 io "io" 13 math "math" 14 math_bits "math/bits" 15 reflect "reflect" 16 strings "strings" 17 time "time" 18 ) 19 20 // Reference imports to suppress errors if they are not otherwise used. 21 var _ = proto.Marshal 22 var _ = fmt.Errorf 23 var _ = math.Inf 24 var _ = time.Kitchen 25 26 // This is a compile-time assertion to ensure that this generated file 27 // is compatible with the proto package it is being compiled against. 28 // A compilation error at this line likely means your copy of the 29 // proto package needs to be updated. 30 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 31 32 type TaskCreate struct { 33 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 34 Bundle string `protobuf:"bytes,2,opt,name=bundle,proto3" json:"bundle,omitempty"` 35 Rootfs []*types.Mount `protobuf:"bytes,3,rep,name=rootfs,proto3" json:"rootfs,omitempty"` 36 IO *TaskIO `protobuf:"bytes,4,opt,name=io,proto3" json:"io,omitempty"` 37 Checkpoint string `protobuf:"bytes,5,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` 38 Pid uint32 `protobuf:"varint,6,opt,name=pid,proto3" json:"pid,omitempty"` 39 XXX_NoUnkeyedLiteral struct{} `json:"-"` 40 XXX_unrecognized []byte `json:"-"` 41 XXX_sizecache int32 `json:"-"` 42 } 43 44 func (m *TaskCreate) Reset() { *m = TaskCreate{} } 45 func (*TaskCreate) ProtoMessage() {} 46 func (*TaskCreate) Descriptor() ([]byte, []int) { 47 return fileDescriptor_8db0813f7adfb63c, []int{0} 48 } 49 func (m *TaskCreate) XXX_Unmarshal(b []byte) error { 50 return m.Unmarshal(b) 51 } 52 func (m *TaskCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 53 if deterministic { 54 return xxx_messageInfo_TaskCreate.Marshal(b, m, deterministic) 55 } else { 56 b = b[:cap(b)] 57 n, err := m.MarshalToSizedBuffer(b) 58 if err != nil { 59 return nil, err 60 } 61 return b[:n], nil 62 } 63 } 64 func (m *TaskCreate) XXX_Merge(src proto.Message) { 65 xxx_messageInfo_TaskCreate.Merge(m, src) 66 } 67 func (m *TaskCreate) XXX_Size() int { 68 return m.Size() 69 } 70 func (m *TaskCreate) XXX_DiscardUnknown() { 71 xxx_messageInfo_TaskCreate.DiscardUnknown(m) 72 } 73 74 var xxx_messageInfo_TaskCreate proto.InternalMessageInfo 75 76 type TaskStart struct { 77 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 78 Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` 79 XXX_NoUnkeyedLiteral struct{} `json:"-"` 80 XXX_unrecognized []byte `json:"-"` 81 XXX_sizecache int32 `json:"-"` 82 } 83 84 func (m *TaskStart) Reset() { *m = TaskStart{} } 85 func (*TaskStart) ProtoMessage() {} 86 func (*TaskStart) Descriptor() ([]byte, []int) { 87 return fileDescriptor_8db0813f7adfb63c, []int{1} 88 } 89 func (m *TaskStart) XXX_Unmarshal(b []byte) error { 90 return m.Unmarshal(b) 91 } 92 func (m *TaskStart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 93 if deterministic { 94 return xxx_messageInfo_TaskStart.Marshal(b, m, deterministic) 95 } else { 96 b = b[:cap(b)] 97 n, err := m.MarshalToSizedBuffer(b) 98 if err != nil { 99 return nil, err 100 } 101 return b[:n], nil 102 } 103 } 104 func (m *TaskStart) XXX_Merge(src proto.Message) { 105 xxx_messageInfo_TaskStart.Merge(m, src) 106 } 107 func (m *TaskStart) XXX_Size() int { 108 return m.Size() 109 } 110 func (m *TaskStart) XXX_DiscardUnknown() { 111 xxx_messageInfo_TaskStart.DiscardUnknown(m) 112 } 113 114 var xxx_messageInfo_TaskStart proto.InternalMessageInfo 115 116 type TaskDelete struct { 117 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 118 Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` 119 ExitStatus uint32 `protobuf:"varint,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` 120 ExitedAt time.Time `protobuf:"bytes,4,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"` 121 // id is the specific exec. By default if omitted will be `""` thus matches 122 // the init exec of the task matching `container_id`. 123 ID string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` 124 XXX_NoUnkeyedLiteral struct{} `json:"-"` 125 XXX_unrecognized []byte `json:"-"` 126 XXX_sizecache int32 `json:"-"` 127 } 128 129 func (m *TaskDelete) Reset() { *m = TaskDelete{} } 130 func (*TaskDelete) ProtoMessage() {} 131 func (*TaskDelete) Descriptor() ([]byte, []int) { 132 return fileDescriptor_8db0813f7adfb63c, []int{2} 133 } 134 func (m *TaskDelete) XXX_Unmarshal(b []byte) error { 135 return m.Unmarshal(b) 136 } 137 func (m *TaskDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 138 if deterministic { 139 return xxx_messageInfo_TaskDelete.Marshal(b, m, deterministic) 140 } else { 141 b = b[:cap(b)] 142 n, err := m.MarshalToSizedBuffer(b) 143 if err != nil { 144 return nil, err 145 } 146 return b[:n], nil 147 } 148 } 149 func (m *TaskDelete) XXX_Merge(src proto.Message) { 150 xxx_messageInfo_TaskDelete.Merge(m, src) 151 } 152 func (m *TaskDelete) XXX_Size() int { 153 return m.Size() 154 } 155 func (m *TaskDelete) XXX_DiscardUnknown() { 156 xxx_messageInfo_TaskDelete.DiscardUnknown(m) 157 } 158 159 var xxx_messageInfo_TaskDelete proto.InternalMessageInfo 160 161 type TaskIO struct { 162 Stdin string `protobuf:"bytes,1,opt,name=stdin,proto3" json:"stdin,omitempty"` 163 Stdout string `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"` 164 Stderr string `protobuf:"bytes,3,opt,name=stderr,proto3" json:"stderr,omitempty"` 165 Terminal bool `protobuf:"varint,4,opt,name=terminal,proto3" json:"terminal,omitempty"` 166 XXX_NoUnkeyedLiteral struct{} `json:"-"` 167 XXX_unrecognized []byte `json:"-"` 168 XXX_sizecache int32 `json:"-"` 169 } 170 171 func (m *TaskIO) Reset() { *m = TaskIO{} } 172 func (*TaskIO) ProtoMessage() {} 173 func (*TaskIO) Descriptor() ([]byte, []int) { 174 return fileDescriptor_8db0813f7adfb63c, []int{3} 175 } 176 func (m *TaskIO) XXX_Unmarshal(b []byte) error { 177 return m.Unmarshal(b) 178 } 179 func (m *TaskIO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 180 if deterministic { 181 return xxx_messageInfo_TaskIO.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 *TaskIO) XXX_Merge(src proto.Message) { 192 xxx_messageInfo_TaskIO.Merge(m, src) 193 } 194 func (m *TaskIO) XXX_Size() int { 195 return m.Size() 196 } 197 func (m *TaskIO) XXX_DiscardUnknown() { 198 xxx_messageInfo_TaskIO.DiscardUnknown(m) 199 } 200 201 var xxx_messageInfo_TaskIO proto.InternalMessageInfo 202 203 type TaskExit struct { 204 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 205 ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 206 Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"` 207 ExitStatus uint32 `protobuf:"varint,4,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` 208 ExitedAt time.Time `protobuf:"bytes,5,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"` 209 XXX_NoUnkeyedLiteral struct{} `json:"-"` 210 XXX_unrecognized []byte `json:"-"` 211 XXX_sizecache int32 `json:"-"` 212 } 213 214 func (m *TaskExit) Reset() { *m = TaskExit{} } 215 func (*TaskExit) ProtoMessage() {} 216 func (*TaskExit) Descriptor() ([]byte, []int) { 217 return fileDescriptor_8db0813f7adfb63c, []int{4} 218 } 219 func (m *TaskExit) XXX_Unmarshal(b []byte) error { 220 return m.Unmarshal(b) 221 } 222 func (m *TaskExit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 223 if deterministic { 224 return xxx_messageInfo_TaskExit.Marshal(b, m, deterministic) 225 } else { 226 b = b[:cap(b)] 227 n, err := m.MarshalToSizedBuffer(b) 228 if err != nil { 229 return nil, err 230 } 231 return b[:n], nil 232 } 233 } 234 func (m *TaskExit) XXX_Merge(src proto.Message) { 235 xxx_messageInfo_TaskExit.Merge(m, src) 236 } 237 func (m *TaskExit) XXX_Size() int { 238 return m.Size() 239 } 240 func (m *TaskExit) XXX_DiscardUnknown() { 241 xxx_messageInfo_TaskExit.DiscardUnknown(m) 242 } 243 244 var xxx_messageInfo_TaskExit proto.InternalMessageInfo 245 246 type TaskOOM struct { 247 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 248 XXX_NoUnkeyedLiteral struct{} `json:"-"` 249 XXX_unrecognized []byte `json:"-"` 250 XXX_sizecache int32 `json:"-"` 251 } 252 253 func (m *TaskOOM) Reset() { *m = TaskOOM{} } 254 func (*TaskOOM) ProtoMessage() {} 255 func (*TaskOOM) Descriptor() ([]byte, []int) { 256 return fileDescriptor_8db0813f7adfb63c, []int{5} 257 } 258 func (m *TaskOOM) XXX_Unmarshal(b []byte) error { 259 return m.Unmarshal(b) 260 } 261 func (m *TaskOOM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 262 if deterministic { 263 return xxx_messageInfo_TaskOOM.Marshal(b, m, deterministic) 264 } else { 265 b = b[:cap(b)] 266 n, err := m.MarshalToSizedBuffer(b) 267 if err != nil { 268 return nil, err 269 } 270 return b[:n], nil 271 } 272 } 273 func (m *TaskOOM) XXX_Merge(src proto.Message) { 274 xxx_messageInfo_TaskOOM.Merge(m, src) 275 } 276 func (m *TaskOOM) XXX_Size() int { 277 return m.Size() 278 } 279 func (m *TaskOOM) XXX_DiscardUnknown() { 280 xxx_messageInfo_TaskOOM.DiscardUnknown(m) 281 } 282 283 var xxx_messageInfo_TaskOOM proto.InternalMessageInfo 284 285 type TaskExecAdded struct { 286 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 287 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 288 XXX_NoUnkeyedLiteral struct{} `json:"-"` 289 XXX_unrecognized []byte `json:"-"` 290 XXX_sizecache int32 `json:"-"` 291 } 292 293 func (m *TaskExecAdded) Reset() { *m = TaskExecAdded{} } 294 func (*TaskExecAdded) ProtoMessage() {} 295 func (*TaskExecAdded) Descriptor() ([]byte, []int) { 296 return fileDescriptor_8db0813f7adfb63c, []int{6} 297 } 298 func (m *TaskExecAdded) XXX_Unmarshal(b []byte) error { 299 return m.Unmarshal(b) 300 } 301 func (m *TaskExecAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 302 if deterministic { 303 return xxx_messageInfo_TaskExecAdded.Marshal(b, m, deterministic) 304 } else { 305 b = b[:cap(b)] 306 n, err := m.MarshalToSizedBuffer(b) 307 if err != nil { 308 return nil, err 309 } 310 return b[:n], nil 311 } 312 } 313 func (m *TaskExecAdded) XXX_Merge(src proto.Message) { 314 xxx_messageInfo_TaskExecAdded.Merge(m, src) 315 } 316 func (m *TaskExecAdded) XXX_Size() int { 317 return m.Size() 318 } 319 func (m *TaskExecAdded) XXX_DiscardUnknown() { 320 xxx_messageInfo_TaskExecAdded.DiscardUnknown(m) 321 } 322 323 var xxx_messageInfo_TaskExecAdded proto.InternalMessageInfo 324 325 type TaskExecStarted struct { 326 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 327 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 328 Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"` 329 XXX_NoUnkeyedLiteral struct{} `json:"-"` 330 XXX_unrecognized []byte `json:"-"` 331 XXX_sizecache int32 `json:"-"` 332 } 333 334 func (m *TaskExecStarted) Reset() { *m = TaskExecStarted{} } 335 func (*TaskExecStarted) ProtoMessage() {} 336 func (*TaskExecStarted) Descriptor() ([]byte, []int) { 337 return fileDescriptor_8db0813f7adfb63c, []int{7} 338 } 339 func (m *TaskExecStarted) XXX_Unmarshal(b []byte) error { 340 return m.Unmarshal(b) 341 } 342 func (m *TaskExecStarted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 343 if deterministic { 344 return xxx_messageInfo_TaskExecStarted.Marshal(b, m, deterministic) 345 } else { 346 b = b[:cap(b)] 347 n, err := m.MarshalToSizedBuffer(b) 348 if err != nil { 349 return nil, err 350 } 351 return b[:n], nil 352 } 353 } 354 func (m *TaskExecStarted) XXX_Merge(src proto.Message) { 355 xxx_messageInfo_TaskExecStarted.Merge(m, src) 356 } 357 func (m *TaskExecStarted) XXX_Size() int { 358 return m.Size() 359 } 360 func (m *TaskExecStarted) XXX_DiscardUnknown() { 361 xxx_messageInfo_TaskExecStarted.DiscardUnknown(m) 362 } 363 364 var xxx_messageInfo_TaskExecStarted proto.InternalMessageInfo 365 366 type TaskPaused struct { 367 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 368 XXX_NoUnkeyedLiteral struct{} `json:"-"` 369 XXX_unrecognized []byte `json:"-"` 370 XXX_sizecache int32 `json:"-"` 371 } 372 373 func (m *TaskPaused) Reset() { *m = TaskPaused{} } 374 func (*TaskPaused) ProtoMessage() {} 375 func (*TaskPaused) Descriptor() ([]byte, []int) { 376 return fileDescriptor_8db0813f7adfb63c, []int{8} 377 } 378 func (m *TaskPaused) XXX_Unmarshal(b []byte) error { 379 return m.Unmarshal(b) 380 } 381 func (m *TaskPaused) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 382 if deterministic { 383 return xxx_messageInfo_TaskPaused.Marshal(b, m, deterministic) 384 } else { 385 b = b[:cap(b)] 386 n, err := m.MarshalToSizedBuffer(b) 387 if err != nil { 388 return nil, err 389 } 390 return b[:n], nil 391 } 392 } 393 func (m *TaskPaused) XXX_Merge(src proto.Message) { 394 xxx_messageInfo_TaskPaused.Merge(m, src) 395 } 396 func (m *TaskPaused) XXX_Size() int { 397 return m.Size() 398 } 399 func (m *TaskPaused) XXX_DiscardUnknown() { 400 xxx_messageInfo_TaskPaused.DiscardUnknown(m) 401 } 402 403 var xxx_messageInfo_TaskPaused proto.InternalMessageInfo 404 405 type TaskResumed struct { 406 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 407 XXX_NoUnkeyedLiteral struct{} `json:"-"` 408 XXX_unrecognized []byte `json:"-"` 409 XXX_sizecache int32 `json:"-"` 410 } 411 412 func (m *TaskResumed) Reset() { *m = TaskResumed{} } 413 func (*TaskResumed) ProtoMessage() {} 414 func (*TaskResumed) Descriptor() ([]byte, []int) { 415 return fileDescriptor_8db0813f7adfb63c, []int{9} 416 } 417 func (m *TaskResumed) XXX_Unmarshal(b []byte) error { 418 return m.Unmarshal(b) 419 } 420 func (m *TaskResumed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 421 if deterministic { 422 return xxx_messageInfo_TaskResumed.Marshal(b, m, deterministic) 423 } else { 424 b = b[:cap(b)] 425 n, err := m.MarshalToSizedBuffer(b) 426 if err != nil { 427 return nil, err 428 } 429 return b[:n], nil 430 } 431 } 432 func (m *TaskResumed) XXX_Merge(src proto.Message) { 433 xxx_messageInfo_TaskResumed.Merge(m, src) 434 } 435 func (m *TaskResumed) XXX_Size() int { 436 return m.Size() 437 } 438 func (m *TaskResumed) XXX_DiscardUnknown() { 439 xxx_messageInfo_TaskResumed.DiscardUnknown(m) 440 } 441 442 var xxx_messageInfo_TaskResumed proto.InternalMessageInfo 443 444 type TaskCheckpointed struct { 445 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 446 Checkpoint string `protobuf:"bytes,2,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` 447 XXX_NoUnkeyedLiteral struct{} `json:"-"` 448 XXX_unrecognized []byte `json:"-"` 449 XXX_sizecache int32 `json:"-"` 450 } 451 452 func (m *TaskCheckpointed) Reset() { *m = TaskCheckpointed{} } 453 func (*TaskCheckpointed) ProtoMessage() {} 454 func (*TaskCheckpointed) Descriptor() ([]byte, []int) { 455 return fileDescriptor_8db0813f7adfb63c, []int{10} 456 } 457 func (m *TaskCheckpointed) XXX_Unmarshal(b []byte) error { 458 return m.Unmarshal(b) 459 } 460 func (m *TaskCheckpointed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 461 if deterministic { 462 return xxx_messageInfo_TaskCheckpointed.Marshal(b, m, deterministic) 463 } else { 464 b = b[:cap(b)] 465 n, err := m.MarshalToSizedBuffer(b) 466 if err != nil { 467 return nil, err 468 } 469 return b[:n], nil 470 } 471 } 472 func (m *TaskCheckpointed) XXX_Merge(src proto.Message) { 473 xxx_messageInfo_TaskCheckpointed.Merge(m, src) 474 } 475 func (m *TaskCheckpointed) XXX_Size() int { 476 return m.Size() 477 } 478 func (m *TaskCheckpointed) XXX_DiscardUnknown() { 479 xxx_messageInfo_TaskCheckpointed.DiscardUnknown(m) 480 } 481 482 var xxx_messageInfo_TaskCheckpointed proto.InternalMessageInfo 483 484 func init() { 485 proto.RegisterType((*TaskCreate)(nil), "containerd.events.TaskCreate") 486 proto.RegisterType((*TaskStart)(nil), "containerd.events.TaskStart") 487 proto.RegisterType((*TaskDelete)(nil), "containerd.events.TaskDelete") 488 proto.RegisterType((*TaskIO)(nil), "containerd.events.TaskIO") 489 proto.RegisterType((*TaskExit)(nil), "containerd.events.TaskExit") 490 proto.RegisterType((*TaskOOM)(nil), "containerd.events.TaskOOM") 491 proto.RegisterType((*TaskExecAdded)(nil), "containerd.events.TaskExecAdded") 492 proto.RegisterType((*TaskExecStarted)(nil), "containerd.events.TaskExecStarted") 493 proto.RegisterType((*TaskPaused)(nil), "containerd.events.TaskPaused") 494 proto.RegisterType((*TaskResumed)(nil), "containerd.events.TaskResumed") 495 proto.RegisterType((*TaskCheckpointed)(nil), "containerd.events.TaskCheckpointed") 496 } 497 498 func init() { 499 proto.RegisterFile("github.com/containerd/containerd/api/events/task.proto", fileDescriptor_8db0813f7adfb63c) 500 } 501 502 var fileDescriptor_8db0813f7adfb63c = []byte{ 503 // 644 bytes of a gzipped FileDescriptorProto 504 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x95, 0xcd, 0x6e, 0xd3, 0x40, 505 0x10, 0xc7, 0x63, 0xa7, 0x75, 0xd3, 0x09, 0x55, 0x8b, 0x55, 0x95, 0x90, 0x83, 0x1d, 0x99, 0x4b, 506 0x4e, 0xb6, 0x08, 0x12, 0x17, 0x84, 0xd4, 0xa4, 0xe1, 0x90, 0x43, 0x95, 0xe2, 0xf6, 0x50, 0x71, 507 0x89, 0x36, 0xd9, 0x4d, 0xb2, 0x34, 0xf1, 0x5a, 0xf6, 0x18, 0x15, 0x89, 0x03, 0x8f, 0xc0, 0x23, 508 0xf0, 0x38, 0x3d, 0x20, 0xc4, 0x91, 0x53, 0xa0, 0x7e, 0x00, 0x4e, 0x3c, 0x00, 0x5a, 0xaf, 0x93, 509 0xb6, 0x54, 0x7c, 0x59, 0xe2, 0x94, 0x9d, 0xd9, 0xd9, 0xff, 0xec, 0xfc, 0x76, 0x3c, 0x81, 0xc7, 510 0x13, 0x8e, 0xd3, 0x64, 0xe8, 0x8e, 0xc4, 0xdc, 0x1b, 0x89, 0x00, 0x09, 0x0f, 0x58, 0x44, 0xaf, 511 0x2f, 0x49, 0xc8, 0x3d, 0xf6, 0x8a, 0x05, 0x18, 0x7b, 0x48, 0xe2, 0x33, 0x37, 0x8c, 0x04, 0x0a, 512 0xf3, 0xee, 0x55, 0x84, 0xab, 0x76, 0xeb, 0xbb, 0x13, 0x31, 0x11, 0xd9, 0xae, 0x27, 0x57, 0x2a, 513 0xb0, 0x6e, 0x4f, 0x84, 0x98, 0xcc, 0x98, 0x97, 0x59, 0xc3, 0x64, 0xec, 0x21, 0x9f, 0xb3, 0x18, 514 0xc9, 0x3c, 0xcc, 0x03, 0xfe, 0xee, 0x06, 0xf8, 0x3a, 0x64, 0xb1, 0x37, 0x17, 0x49, 0x80, 0xf9, 515 0xb9, 0xfd, 0x3f, 0x9e, 0x5b, 0xa5, 0x0c, 0x67, 0xc9, 0x84, 0x07, 0xde, 0x98, 0xb3, 0x19, 0x0d, 516 0x09, 0x4e, 0x95, 0x82, 0xf3, 0x4d, 0x03, 0x38, 0x21, 0xf1, 0xd9, 0x41, 0xc4, 0x08, 0x32, 0xb3, 517 0x05, 0x77, 0x56, 0x87, 0x07, 0x9c, 0xd6, 0xb4, 0x86, 0xd6, 0xdc, 0xec, 0x6c, 0xa7, 0x0b, 0xbb, 518 0x7a, 0xb0, 0xf4, 0xf7, 0xba, 0x7e, 0x75, 0x15, 0xd4, 0xa3, 0xe6, 0x1e, 0x18, 0xc3, 0x24, 0xa0, 519 0x33, 0x56, 0xd3, 0x65, 0xb4, 0x9f, 0x5b, 0xa6, 0x07, 0x46, 0x24, 0x04, 0x8e, 0xe3, 0x5a, 0xb9, 520 0x51, 0x6e, 0x56, 0x5b, 0xf7, 0xdc, 0x6b, 0xbc, 0xb2, 0x5a, 0xdc, 0x43, 0x59, 0x8b, 0x9f, 0x87, 521 0x99, 0x0f, 0x41, 0xe7, 0xa2, 0xb6, 0xd6, 0xd0, 0x9a, 0xd5, 0xd6, 0x7d, 0xf7, 0x16, 0x5c, 0x57, 522 0xde, 0xb3, 0xd7, 0xef, 0x18, 0xe9, 0xc2, 0xd6, 0x7b, 0x7d, 0x5f, 0xe7, 0xc2, 0xb4, 0x00, 0x46, 523 0x53, 0x36, 0x3a, 0x0b, 0x05, 0x0f, 0xb0, 0xb6, 0x9e, 0xe5, 0xbf, 0xe6, 0x31, 0x77, 0xa0, 0x1c, 524 0x72, 0x5a, 0x33, 0x1a, 0x5a, 0x73, 0xcb, 0x97, 0x4b, 0xe7, 0x39, 0x6c, 0x4a, 0x9d, 0x63, 0x24, 525 0x11, 0x16, 0x2a, 0x37, 0x97, 0xd4, 0xaf, 0x24, 0x3f, 0xe6, 0x0c, 0xbb, 0x6c, 0xc6, 0x0a, 0x32, 526 0xbc, 0x25, 0x6a, 0xda, 0x50, 0x65, 0xe7, 0x1c, 0x07, 0x31, 0x12, 0x4c, 0x24, 0x42, 0xb9, 0x03, 527 0xd2, 0x75, 0x9c, 0x79, 0xcc, 0x36, 0x6c, 0x4a, 0x8b, 0xd1, 0x01, 0xc1, 0x1c, 0x5a, 0xdd, 0x55, 528 0x8d, 0xe6, 0x2e, 0x5f, 0xdd, 0x3d, 0x59, 0x36, 0x5a, 0xa7, 0x72, 0xb1, 0xb0, 0x4b, 0xef, 0xbe, 529 0xd8, 0x9a, 0x5f, 0x51, 0xc7, 0xda, 0x68, 0xee, 0x81, 0xce, 0xa9, 0xa2, 0x96, 0x53, 0xed, 0xfa, 530 0x3a, 0xa7, 0xce, 0x4b, 0x30, 0x14, 0x6b, 0x73, 0x17, 0xd6, 0x63, 0xa4, 0x3c, 0x50, 0x45, 0xf8, 531 0xca, 0x90, 0x2f, 0x1e, 0x23, 0x15, 0x09, 0x2e, 0x5f, 0x5c, 0x59, 0xb9, 0x9f, 0x45, 0x51, 0x76, 532 0x5d, 0xe5, 0x67, 0x51, 0x64, 0xd6, 0xa1, 0x82, 0x2c, 0x9a, 0xf3, 0x80, 0xcc, 0xb2, 0x9b, 0x56, 533 0xfc, 0x95, 0xed, 0x7c, 0xd0, 0xa0, 0x22, 0x93, 0x3d, 0x3b, 0xe7, 0x58, 0xb0, 0xfd, 0xf4, 0x9c, 534 0xdc, 0x8d, 0x22, 0x96, 0x48, 0xcb, 0xbf, 0x44, 0xba, 0xf6, 0x7b, 0xa4, 0xeb, 0x45, 0x90, 0x3a, 535 0x4f, 0x61, 0x43, 0x56, 0xd3, 0xef, 0x1f, 0x16, 0x29, 0xc6, 0x99, 0xc2, 0x96, 0x82, 0xc1, 0x46, 536 0x6d, 0x4a, 0x19, 0x2d, 0x44, 0xe4, 0x01, 0x6c, 0xb0, 0x73, 0x36, 0x1a, 0xac, 0xb0, 0x40, 0xba, 537 0xb0, 0x0d, 0xa9, 0xd9, 0xeb, 0xfa, 0x86, 0xdc, 0xea, 0x51, 0xe7, 0x0d, 0x6c, 0x2f, 0x33, 0x65, 538 0xdf, 0xc2, 0x7f, 0xcc, 0x75, 0xfb, 0x29, 0x9c, 0x7d, 0xf5, 0xc5, 0x1c, 0x91, 0x24, 0x2e, 0x96, 539 0xd8, 0x69, 0x43, 0x55, 0x2a, 0xf8, 0x2c, 0x4e, 0xe6, 0x05, 0x25, 0xc6, 0xb0, 0x93, 0x8d, 0xbe, 540 0xd5, 0xb8, 0x28, 0xc8, 0xe0, 0xe6, 0x10, 0xd2, 0x7f, 0x1e, 0x42, 0x9d, 0xa3, 0x8b, 0x4b, 0xab, 541 0xf4, 0xf9, 0xd2, 0x2a, 0xbd, 0x4d, 0x2d, 0xed, 0x22, 0xb5, 0xb4, 0x4f, 0xa9, 0xa5, 0x7d, 0x4d, 542 0x2d, 0xed, 0xfd, 0x77, 0x4b, 0x7b, 0xd1, 0xfa, 0x87, 0x7f, 0x9f, 0x27, 0xea, 0xe7, 0xb4, 0x74, 543 0x5a, 0x1e, 0x1a, 0x59, 0x47, 0x3e, 0xfa, 0x11, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x58, 0x0f, 0xec, 544 0xbe, 0x06, 0x00, 0x00, 545 } 546 547 // Field returns the value for the given fieldpath as a string, if defined. 548 // If the value is not defined, the second value will be false. 549 func (m *TaskCreate) Field(fieldpath []string) (string, bool) { 550 if len(fieldpath) == 0 { 551 return "", false 552 } 553 554 switch fieldpath[0] { 555 // unhandled: rootfs 556 // unhandled: pid 557 case "container_id": 558 return string(m.ContainerID), len(m.ContainerID) > 0 559 case "bundle": 560 return string(m.Bundle), len(m.Bundle) > 0 561 case "io": 562 // NOTE(stevvooe): This is probably not correct in many cases. 563 // We assume that the target message also implements the Field 564 // method, which isn't likely true in a lot of cases. 565 // 566 // If you have a broken build and have found this comment, 567 // you may be closer to a solution. 568 if m.IO == nil { 569 return "", false 570 } 571 572 return m.IO.Field(fieldpath[1:]) 573 case "checkpoint": 574 return string(m.Checkpoint), len(m.Checkpoint) > 0 575 } 576 return "", false 577 } 578 579 // Field returns the value for the given fieldpath as a string, if defined. 580 // If the value is not defined, the second value will be false. 581 func (m *TaskStart) Field(fieldpath []string) (string, bool) { 582 if len(fieldpath) == 0 { 583 return "", false 584 } 585 586 switch fieldpath[0] { 587 // unhandled: pid 588 case "container_id": 589 return string(m.ContainerID), len(m.ContainerID) > 0 590 } 591 return "", false 592 } 593 594 // Field returns the value for the given fieldpath as a string, if defined. 595 // If the value is not defined, the second value will be false. 596 func (m *TaskDelete) Field(fieldpath []string) (string, bool) { 597 if len(fieldpath) == 0 { 598 return "", false 599 } 600 601 switch fieldpath[0] { 602 // unhandled: pid 603 // unhandled: exit_status 604 // unhandled: exited_at 605 case "container_id": 606 return string(m.ContainerID), len(m.ContainerID) > 0 607 case "id": 608 return string(m.ID), len(m.ID) > 0 609 } 610 return "", false 611 } 612 613 // Field returns the value for the given fieldpath as a string, if defined. 614 // If the value is not defined, the second value will be false. 615 func (m *TaskIO) Field(fieldpath []string) (string, bool) { 616 if len(fieldpath) == 0 { 617 return "", false 618 } 619 620 switch fieldpath[0] { 621 case "stdin": 622 return string(m.Stdin), len(m.Stdin) > 0 623 case "stdout": 624 return string(m.Stdout), len(m.Stdout) > 0 625 case "stderr": 626 return string(m.Stderr), len(m.Stderr) > 0 627 case "terminal": 628 return fmt.Sprint(m.Terminal), true 629 } 630 return "", false 631 } 632 633 // Field returns the value for the given fieldpath as a string, if defined. 634 // If the value is not defined, the second value will be false. 635 func (m *TaskExit) Field(fieldpath []string) (string, bool) { 636 if len(fieldpath) == 0 { 637 return "", false 638 } 639 640 switch fieldpath[0] { 641 // unhandled: pid 642 // unhandled: exit_status 643 // unhandled: exited_at 644 case "container_id": 645 return string(m.ContainerID), len(m.ContainerID) > 0 646 case "id": 647 return string(m.ID), len(m.ID) > 0 648 } 649 return "", false 650 } 651 652 // Field returns the value for the given fieldpath as a string, if defined. 653 // If the value is not defined, the second value will be false. 654 func (m *TaskOOM) Field(fieldpath []string) (string, bool) { 655 if len(fieldpath) == 0 { 656 return "", false 657 } 658 659 switch fieldpath[0] { 660 case "container_id": 661 return string(m.ContainerID), len(m.ContainerID) > 0 662 } 663 return "", false 664 } 665 666 // Field returns the value for the given fieldpath as a string, if defined. 667 // If the value is not defined, the second value will be false. 668 func (m *TaskExecAdded) Field(fieldpath []string) (string, bool) { 669 if len(fieldpath) == 0 { 670 return "", false 671 } 672 673 switch fieldpath[0] { 674 case "container_id": 675 return string(m.ContainerID), len(m.ContainerID) > 0 676 case "exec_id": 677 return string(m.ExecID), len(m.ExecID) > 0 678 } 679 return "", false 680 } 681 682 // Field returns the value for the given fieldpath as a string, if defined. 683 // If the value is not defined, the second value will be false. 684 func (m *TaskExecStarted) Field(fieldpath []string) (string, bool) { 685 if len(fieldpath) == 0 { 686 return "", false 687 } 688 689 switch fieldpath[0] { 690 // unhandled: pid 691 case "container_id": 692 return string(m.ContainerID), len(m.ContainerID) > 0 693 case "exec_id": 694 return string(m.ExecID), len(m.ExecID) > 0 695 } 696 return "", false 697 } 698 699 // Field returns the value for the given fieldpath as a string, if defined. 700 // If the value is not defined, the second value will be false. 701 func (m *TaskPaused) Field(fieldpath []string) (string, bool) { 702 if len(fieldpath) == 0 { 703 return "", false 704 } 705 706 switch fieldpath[0] { 707 case "container_id": 708 return string(m.ContainerID), len(m.ContainerID) > 0 709 } 710 return "", false 711 } 712 713 // Field returns the value for the given fieldpath as a string, if defined. 714 // If the value is not defined, the second value will be false. 715 func (m *TaskResumed) Field(fieldpath []string) (string, bool) { 716 if len(fieldpath) == 0 { 717 return "", false 718 } 719 720 switch fieldpath[0] { 721 case "container_id": 722 return string(m.ContainerID), len(m.ContainerID) > 0 723 } 724 return "", false 725 } 726 727 // Field returns the value for the given fieldpath as a string, if defined. 728 // If the value is not defined, the second value will be false. 729 func (m *TaskCheckpointed) Field(fieldpath []string) (string, bool) { 730 if len(fieldpath) == 0 { 731 return "", false 732 } 733 734 switch fieldpath[0] { 735 case "container_id": 736 return string(m.ContainerID), len(m.ContainerID) > 0 737 case "checkpoint": 738 return string(m.Checkpoint), len(m.Checkpoint) > 0 739 } 740 return "", false 741 } 742 func (m *TaskCreate) Marshal() (dAtA []byte, err error) { 743 size := m.Size() 744 dAtA = make([]byte, size) 745 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 746 if err != nil { 747 return nil, err 748 } 749 return dAtA[:n], nil 750 } 751 752 func (m *TaskCreate) MarshalTo(dAtA []byte) (int, error) { 753 size := m.Size() 754 return m.MarshalToSizedBuffer(dAtA[:size]) 755 } 756 757 func (m *TaskCreate) MarshalToSizedBuffer(dAtA []byte) (int, error) { 758 i := len(dAtA) 759 _ = i 760 var l int 761 _ = l 762 if m.XXX_unrecognized != nil { 763 i -= len(m.XXX_unrecognized) 764 copy(dAtA[i:], m.XXX_unrecognized) 765 } 766 if m.Pid != 0 { 767 i = encodeVarintTask(dAtA, i, uint64(m.Pid)) 768 i-- 769 dAtA[i] = 0x30 770 } 771 if len(m.Checkpoint) > 0 { 772 i -= len(m.Checkpoint) 773 copy(dAtA[i:], m.Checkpoint) 774 i = encodeVarintTask(dAtA, i, uint64(len(m.Checkpoint))) 775 i-- 776 dAtA[i] = 0x2a 777 } 778 if m.IO != nil { 779 { 780 size, err := m.IO.MarshalToSizedBuffer(dAtA[:i]) 781 if err != nil { 782 return 0, err 783 } 784 i -= size 785 i = encodeVarintTask(dAtA, i, uint64(size)) 786 } 787 i-- 788 dAtA[i] = 0x22 789 } 790 if len(m.Rootfs) > 0 { 791 for iNdEx := len(m.Rootfs) - 1; iNdEx >= 0; iNdEx-- { 792 { 793 size, err := m.Rootfs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 794 if err != nil { 795 return 0, err 796 } 797 i -= size 798 i = encodeVarintTask(dAtA, i, uint64(size)) 799 } 800 i-- 801 dAtA[i] = 0x1a 802 } 803 } 804 if len(m.Bundle) > 0 { 805 i -= len(m.Bundle) 806 copy(dAtA[i:], m.Bundle) 807 i = encodeVarintTask(dAtA, i, uint64(len(m.Bundle))) 808 i-- 809 dAtA[i] = 0x12 810 } 811 if len(m.ContainerID) > 0 { 812 i -= len(m.ContainerID) 813 copy(dAtA[i:], m.ContainerID) 814 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 815 i-- 816 dAtA[i] = 0xa 817 } 818 return len(dAtA) - i, nil 819 } 820 821 func (m *TaskStart) Marshal() (dAtA []byte, err error) { 822 size := m.Size() 823 dAtA = make([]byte, size) 824 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 825 if err != nil { 826 return nil, err 827 } 828 return dAtA[:n], nil 829 } 830 831 func (m *TaskStart) MarshalTo(dAtA []byte) (int, error) { 832 size := m.Size() 833 return m.MarshalToSizedBuffer(dAtA[:size]) 834 } 835 836 func (m *TaskStart) MarshalToSizedBuffer(dAtA []byte) (int, error) { 837 i := len(dAtA) 838 _ = i 839 var l int 840 _ = l 841 if m.XXX_unrecognized != nil { 842 i -= len(m.XXX_unrecognized) 843 copy(dAtA[i:], m.XXX_unrecognized) 844 } 845 if m.Pid != 0 { 846 i = encodeVarintTask(dAtA, i, uint64(m.Pid)) 847 i-- 848 dAtA[i] = 0x10 849 } 850 if len(m.ContainerID) > 0 { 851 i -= len(m.ContainerID) 852 copy(dAtA[i:], m.ContainerID) 853 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 854 i-- 855 dAtA[i] = 0xa 856 } 857 return len(dAtA) - i, nil 858 } 859 860 func (m *TaskDelete) Marshal() (dAtA []byte, err error) { 861 size := m.Size() 862 dAtA = make([]byte, size) 863 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 864 if err != nil { 865 return nil, err 866 } 867 return dAtA[:n], nil 868 } 869 870 func (m *TaskDelete) MarshalTo(dAtA []byte) (int, error) { 871 size := m.Size() 872 return m.MarshalToSizedBuffer(dAtA[:size]) 873 } 874 875 func (m *TaskDelete) MarshalToSizedBuffer(dAtA []byte) (int, error) { 876 i := len(dAtA) 877 _ = i 878 var l int 879 _ = l 880 if m.XXX_unrecognized != nil { 881 i -= len(m.XXX_unrecognized) 882 copy(dAtA[i:], m.XXX_unrecognized) 883 } 884 if len(m.ID) > 0 { 885 i -= len(m.ID) 886 copy(dAtA[i:], m.ID) 887 i = encodeVarintTask(dAtA, i, uint64(len(m.ID))) 888 i-- 889 dAtA[i] = 0x2a 890 } 891 n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt):]) 892 if err2 != nil { 893 return 0, err2 894 } 895 i -= n2 896 i = encodeVarintTask(dAtA, i, uint64(n2)) 897 i-- 898 dAtA[i] = 0x22 899 if m.ExitStatus != 0 { 900 i = encodeVarintTask(dAtA, i, uint64(m.ExitStatus)) 901 i-- 902 dAtA[i] = 0x18 903 } 904 if m.Pid != 0 { 905 i = encodeVarintTask(dAtA, i, uint64(m.Pid)) 906 i-- 907 dAtA[i] = 0x10 908 } 909 if len(m.ContainerID) > 0 { 910 i -= len(m.ContainerID) 911 copy(dAtA[i:], m.ContainerID) 912 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 913 i-- 914 dAtA[i] = 0xa 915 } 916 return len(dAtA) - i, nil 917 } 918 919 func (m *TaskIO) Marshal() (dAtA []byte, err error) { 920 size := m.Size() 921 dAtA = make([]byte, size) 922 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 923 if err != nil { 924 return nil, err 925 } 926 return dAtA[:n], nil 927 } 928 929 func (m *TaskIO) MarshalTo(dAtA []byte) (int, error) { 930 size := m.Size() 931 return m.MarshalToSizedBuffer(dAtA[:size]) 932 } 933 934 func (m *TaskIO) MarshalToSizedBuffer(dAtA []byte) (int, error) { 935 i := len(dAtA) 936 _ = i 937 var l int 938 _ = l 939 if m.XXX_unrecognized != nil { 940 i -= len(m.XXX_unrecognized) 941 copy(dAtA[i:], m.XXX_unrecognized) 942 } 943 if m.Terminal { 944 i-- 945 if m.Terminal { 946 dAtA[i] = 1 947 } else { 948 dAtA[i] = 0 949 } 950 i-- 951 dAtA[i] = 0x20 952 } 953 if len(m.Stderr) > 0 { 954 i -= len(m.Stderr) 955 copy(dAtA[i:], m.Stderr) 956 i = encodeVarintTask(dAtA, i, uint64(len(m.Stderr))) 957 i-- 958 dAtA[i] = 0x1a 959 } 960 if len(m.Stdout) > 0 { 961 i -= len(m.Stdout) 962 copy(dAtA[i:], m.Stdout) 963 i = encodeVarintTask(dAtA, i, uint64(len(m.Stdout))) 964 i-- 965 dAtA[i] = 0x12 966 } 967 if len(m.Stdin) > 0 { 968 i -= len(m.Stdin) 969 copy(dAtA[i:], m.Stdin) 970 i = encodeVarintTask(dAtA, i, uint64(len(m.Stdin))) 971 i-- 972 dAtA[i] = 0xa 973 } 974 return len(dAtA) - i, nil 975 } 976 977 func (m *TaskExit) Marshal() (dAtA []byte, err error) { 978 size := m.Size() 979 dAtA = make([]byte, size) 980 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 981 if err != nil { 982 return nil, err 983 } 984 return dAtA[:n], nil 985 } 986 987 func (m *TaskExit) MarshalTo(dAtA []byte) (int, error) { 988 size := m.Size() 989 return m.MarshalToSizedBuffer(dAtA[:size]) 990 } 991 992 func (m *TaskExit) MarshalToSizedBuffer(dAtA []byte) (int, error) { 993 i := len(dAtA) 994 _ = i 995 var l int 996 _ = l 997 if m.XXX_unrecognized != nil { 998 i -= len(m.XXX_unrecognized) 999 copy(dAtA[i:], m.XXX_unrecognized) 1000 } 1001 n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt):]) 1002 if err3 != nil { 1003 return 0, err3 1004 } 1005 i -= n3 1006 i = encodeVarintTask(dAtA, i, uint64(n3)) 1007 i-- 1008 dAtA[i] = 0x2a 1009 if m.ExitStatus != 0 { 1010 i = encodeVarintTask(dAtA, i, uint64(m.ExitStatus)) 1011 i-- 1012 dAtA[i] = 0x20 1013 } 1014 if m.Pid != 0 { 1015 i = encodeVarintTask(dAtA, i, uint64(m.Pid)) 1016 i-- 1017 dAtA[i] = 0x18 1018 } 1019 if len(m.ID) > 0 { 1020 i -= len(m.ID) 1021 copy(dAtA[i:], m.ID) 1022 i = encodeVarintTask(dAtA, i, uint64(len(m.ID))) 1023 i-- 1024 dAtA[i] = 0x12 1025 } 1026 if len(m.ContainerID) > 0 { 1027 i -= len(m.ContainerID) 1028 copy(dAtA[i:], m.ContainerID) 1029 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1030 i-- 1031 dAtA[i] = 0xa 1032 } 1033 return len(dAtA) - i, nil 1034 } 1035 1036 func (m *TaskOOM) Marshal() (dAtA []byte, err error) { 1037 size := m.Size() 1038 dAtA = make([]byte, size) 1039 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1040 if err != nil { 1041 return nil, err 1042 } 1043 return dAtA[:n], nil 1044 } 1045 1046 func (m *TaskOOM) MarshalTo(dAtA []byte) (int, error) { 1047 size := m.Size() 1048 return m.MarshalToSizedBuffer(dAtA[:size]) 1049 } 1050 1051 func (m *TaskOOM) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1052 i := len(dAtA) 1053 _ = i 1054 var l int 1055 _ = l 1056 if m.XXX_unrecognized != nil { 1057 i -= len(m.XXX_unrecognized) 1058 copy(dAtA[i:], m.XXX_unrecognized) 1059 } 1060 if len(m.ContainerID) > 0 { 1061 i -= len(m.ContainerID) 1062 copy(dAtA[i:], m.ContainerID) 1063 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1064 i-- 1065 dAtA[i] = 0xa 1066 } 1067 return len(dAtA) - i, nil 1068 } 1069 1070 func (m *TaskExecAdded) Marshal() (dAtA []byte, err error) { 1071 size := m.Size() 1072 dAtA = make([]byte, size) 1073 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1074 if err != nil { 1075 return nil, err 1076 } 1077 return dAtA[:n], nil 1078 } 1079 1080 func (m *TaskExecAdded) MarshalTo(dAtA []byte) (int, error) { 1081 size := m.Size() 1082 return m.MarshalToSizedBuffer(dAtA[:size]) 1083 } 1084 1085 func (m *TaskExecAdded) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1086 i := len(dAtA) 1087 _ = i 1088 var l int 1089 _ = l 1090 if m.XXX_unrecognized != nil { 1091 i -= len(m.XXX_unrecognized) 1092 copy(dAtA[i:], m.XXX_unrecognized) 1093 } 1094 if len(m.ExecID) > 0 { 1095 i -= len(m.ExecID) 1096 copy(dAtA[i:], m.ExecID) 1097 i = encodeVarintTask(dAtA, i, uint64(len(m.ExecID))) 1098 i-- 1099 dAtA[i] = 0x12 1100 } 1101 if len(m.ContainerID) > 0 { 1102 i -= len(m.ContainerID) 1103 copy(dAtA[i:], m.ContainerID) 1104 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1105 i-- 1106 dAtA[i] = 0xa 1107 } 1108 return len(dAtA) - i, nil 1109 } 1110 1111 func (m *TaskExecStarted) Marshal() (dAtA []byte, err error) { 1112 size := m.Size() 1113 dAtA = make([]byte, size) 1114 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1115 if err != nil { 1116 return nil, err 1117 } 1118 return dAtA[:n], nil 1119 } 1120 1121 func (m *TaskExecStarted) MarshalTo(dAtA []byte) (int, error) { 1122 size := m.Size() 1123 return m.MarshalToSizedBuffer(dAtA[:size]) 1124 } 1125 1126 func (m *TaskExecStarted) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1127 i := len(dAtA) 1128 _ = i 1129 var l int 1130 _ = l 1131 if m.XXX_unrecognized != nil { 1132 i -= len(m.XXX_unrecognized) 1133 copy(dAtA[i:], m.XXX_unrecognized) 1134 } 1135 if m.Pid != 0 { 1136 i = encodeVarintTask(dAtA, i, uint64(m.Pid)) 1137 i-- 1138 dAtA[i] = 0x18 1139 } 1140 if len(m.ExecID) > 0 { 1141 i -= len(m.ExecID) 1142 copy(dAtA[i:], m.ExecID) 1143 i = encodeVarintTask(dAtA, i, uint64(len(m.ExecID))) 1144 i-- 1145 dAtA[i] = 0x12 1146 } 1147 if len(m.ContainerID) > 0 { 1148 i -= len(m.ContainerID) 1149 copy(dAtA[i:], m.ContainerID) 1150 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1151 i-- 1152 dAtA[i] = 0xa 1153 } 1154 return len(dAtA) - i, nil 1155 } 1156 1157 func (m *TaskPaused) Marshal() (dAtA []byte, err error) { 1158 size := m.Size() 1159 dAtA = make([]byte, size) 1160 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1161 if err != nil { 1162 return nil, err 1163 } 1164 return dAtA[:n], nil 1165 } 1166 1167 func (m *TaskPaused) MarshalTo(dAtA []byte) (int, error) { 1168 size := m.Size() 1169 return m.MarshalToSizedBuffer(dAtA[:size]) 1170 } 1171 1172 func (m *TaskPaused) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1173 i := len(dAtA) 1174 _ = i 1175 var l int 1176 _ = l 1177 if m.XXX_unrecognized != nil { 1178 i -= len(m.XXX_unrecognized) 1179 copy(dAtA[i:], m.XXX_unrecognized) 1180 } 1181 if len(m.ContainerID) > 0 { 1182 i -= len(m.ContainerID) 1183 copy(dAtA[i:], m.ContainerID) 1184 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1185 i-- 1186 dAtA[i] = 0xa 1187 } 1188 return len(dAtA) - i, nil 1189 } 1190 1191 func (m *TaskResumed) Marshal() (dAtA []byte, err error) { 1192 size := m.Size() 1193 dAtA = make([]byte, size) 1194 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1195 if err != nil { 1196 return nil, err 1197 } 1198 return dAtA[:n], nil 1199 } 1200 1201 func (m *TaskResumed) MarshalTo(dAtA []byte) (int, error) { 1202 size := m.Size() 1203 return m.MarshalToSizedBuffer(dAtA[:size]) 1204 } 1205 1206 func (m *TaskResumed) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1207 i := len(dAtA) 1208 _ = i 1209 var l int 1210 _ = l 1211 if m.XXX_unrecognized != nil { 1212 i -= len(m.XXX_unrecognized) 1213 copy(dAtA[i:], m.XXX_unrecognized) 1214 } 1215 if len(m.ContainerID) > 0 { 1216 i -= len(m.ContainerID) 1217 copy(dAtA[i:], m.ContainerID) 1218 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1219 i-- 1220 dAtA[i] = 0xa 1221 } 1222 return len(dAtA) - i, nil 1223 } 1224 1225 func (m *TaskCheckpointed) Marshal() (dAtA []byte, err error) { 1226 size := m.Size() 1227 dAtA = make([]byte, size) 1228 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1229 if err != nil { 1230 return nil, err 1231 } 1232 return dAtA[:n], nil 1233 } 1234 1235 func (m *TaskCheckpointed) MarshalTo(dAtA []byte) (int, error) { 1236 size := m.Size() 1237 return m.MarshalToSizedBuffer(dAtA[:size]) 1238 } 1239 1240 func (m *TaskCheckpointed) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1241 i := len(dAtA) 1242 _ = i 1243 var l int 1244 _ = l 1245 if m.XXX_unrecognized != nil { 1246 i -= len(m.XXX_unrecognized) 1247 copy(dAtA[i:], m.XXX_unrecognized) 1248 } 1249 if len(m.Checkpoint) > 0 { 1250 i -= len(m.Checkpoint) 1251 copy(dAtA[i:], m.Checkpoint) 1252 i = encodeVarintTask(dAtA, i, uint64(len(m.Checkpoint))) 1253 i-- 1254 dAtA[i] = 0x12 1255 } 1256 if len(m.ContainerID) > 0 { 1257 i -= len(m.ContainerID) 1258 copy(dAtA[i:], m.ContainerID) 1259 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1260 i-- 1261 dAtA[i] = 0xa 1262 } 1263 return len(dAtA) - i, nil 1264 } 1265 1266 func encodeVarintTask(dAtA []byte, offset int, v uint64) int { 1267 offset -= sovTask(v) 1268 base := offset 1269 for v >= 1<<7 { 1270 dAtA[offset] = uint8(v&0x7f | 0x80) 1271 v >>= 7 1272 offset++ 1273 } 1274 dAtA[offset] = uint8(v) 1275 return base 1276 } 1277 func (m *TaskCreate) Size() (n int) { 1278 if m == nil { 1279 return 0 1280 } 1281 var l int 1282 _ = l 1283 l = len(m.ContainerID) 1284 if l > 0 { 1285 n += 1 + l + sovTask(uint64(l)) 1286 } 1287 l = len(m.Bundle) 1288 if l > 0 { 1289 n += 1 + l + sovTask(uint64(l)) 1290 } 1291 if len(m.Rootfs) > 0 { 1292 for _, e := range m.Rootfs { 1293 l = e.Size() 1294 n += 1 + l + sovTask(uint64(l)) 1295 } 1296 } 1297 if m.IO != nil { 1298 l = m.IO.Size() 1299 n += 1 + l + sovTask(uint64(l)) 1300 } 1301 l = len(m.Checkpoint) 1302 if l > 0 { 1303 n += 1 + l + sovTask(uint64(l)) 1304 } 1305 if m.Pid != 0 { 1306 n += 1 + sovTask(uint64(m.Pid)) 1307 } 1308 if m.XXX_unrecognized != nil { 1309 n += len(m.XXX_unrecognized) 1310 } 1311 return n 1312 } 1313 1314 func (m *TaskStart) Size() (n int) { 1315 if m == nil { 1316 return 0 1317 } 1318 var l int 1319 _ = l 1320 l = len(m.ContainerID) 1321 if l > 0 { 1322 n += 1 + l + sovTask(uint64(l)) 1323 } 1324 if m.Pid != 0 { 1325 n += 1 + sovTask(uint64(m.Pid)) 1326 } 1327 if m.XXX_unrecognized != nil { 1328 n += len(m.XXX_unrecognized) 1329 } 1330 return n 1331 } 1332 1333 func (m *TaskDelete) Size() (n int) { 1334 if m == nil { 1335 return 0 1336 } 1337 var l int 1338 _ = l 1339 l = len(m.ContainerID) 1340 if l > 0 { 1341 n += 1 + l + sovTask(uint64(l)) 1342 } 1343 if m.Pid != 0 { 1344 n += 1 + sovTask(uint64(m.Pid)) 1345 } 1346 if m.ExitStatus != 0 { 1347 n += 1 + sovTask(uint64(m.ExitStatus)) 1348 } 1349 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt) 1350 n += 1 + l + sovTask(uint64(l)) 1351 l = len(m.ID) 1352 if l > 0 { 1353 n += 1 + l + sovTask(uint64(l)) 1354 } 1355 if m.XXX_unrecognized != nil { 1356 n += len(m.XXX_unrecognized) 1357 } 1358 return n 1359 } 1360 1361 func (m *TaskIO) Size() (n int) { 1362 if m == nil { 1363 return 0 1364 } 1365 var l int 1366 _ = l 1367 l = len(m.Stdin) 1368 if l > 0 { 1369 n += 1 + l + sovTask(uint64(l)) 1370 } 1371 l = len(m.Stdout) 1372 if l > 0 { 1373 n += 1 + l + sovTask(uint64(l)) 1374 } 1375 l = len(m.Stderr) 1376 if l > 0 { 1377 n += 1 + l + sovTask(uint64(l)) 1378 } 1379 if m.Terminal { 1380 n += 2 1381 } 1382 if m.XXX_unrecognized != nil { 1383 n += len(m.XXX_unrecognized) 1384 } 1385 return n 1386 } 1387 1388 func (m *TaskExit) Size() (n int) { 1389 if m == nil { 1390 return 0 1391 } 1392 var l int 1393 _ = l 1394 l = len(m.ContainerID) 1395 if l > 0 { 1396 n += 1 + l + sovTask(uint64(l)) 1397 } 1398 l = len(m.ID) 1399 if l > 0 { 1400 n += 1 + l + sovTask(uint64(l)) 1401 } 1402 if m.Pid != 0 { 1403 n += 1 + sovTask(uint64(m.Pid)) 1404 } 1405 if m.ExitStatus != 0 { 1406 n += 1 + sovTask(uint64(m.ExitStatus)) 1407 } 1408 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt) 1409 n += 1 + l + sovTask(uint64(l)) 1410 if m.XXX_unrecognized != nil { 1411 n += len(m.XXX_unrecognized) 1412 } 1413 return n 1414 } 1415 1416 func (m *TaskOOM) Size() (n int) { 1417 if m == nil { 1418 return 0 1419 } 1420 var l int 1421 _ = l 1422 l = len(m.ContainerID) 1423 if l > 0 { 1424 n += 1 + l + sovTask(uint64(l)) 1425 } 1426 if m.XXX_unrecognized != nil { 1427 n += len(m.XXX_unrecognized) 1428 } 1429 return n 1430 } 1431 1432 func (m *TaskExecAdded) Size() (n int) { 1433 if m == nil { 1434 return 0 1435 } 1436 var l int 1437 _ = l 1438 l = len(m.ContainerID) 1439 if l > 0 { 1440 n += 1 + l + sovTask(uint64(l)) 1441 } 1442 l = len(m.ExecID) 1443 if l > 0 { 1444 n += 1 + l + sovTask(uint64(l)) 1445 } 1446 if m.XXX_unrecognized != nil { 1447 n += len(m.XXX_unrecognized) 1448 } 1449 return n 1450 } 1451 1452 func (m *TaskExecStarted) Size() (n int) { 1453 if m == nil { 1454 return 0 1455 } 1456 var l int 1457 _ = l 1458 l = len(m.ContainerID) 1459 if l > 0 { 1460 n += 1 + l + sovTask(uint64(l)) 1461 } 1462 l = len(m.ExecID) 1463 if l > 0 { 1464 n += 1 + l + sovTask(uint64(l)) 1465 } 1466 if m.Pid != 0 { 1467 n += 1 + sovTask(uint64(m.Pid)) 1468 } 1469 if m.XXX_unrecognized != nil { 1470 n += len(m.XXX_unrecognized) 1471 } 1472 return n 1473 } 1474 1475 func (m *TaskPaused) Size() (n int) { 1476 if m == nil { 1477 return 0 1478 } 1479 var l int 1480 _ = l 1481 l = len(m.ContainerID) 1482 if l > 0 { 1483 n += 1 + l + sovTask(uint64(l)) 1484 } 1485 if m.XXX_unrecognized != nil { 1486 n += len(m.XXX_unrecognized) 1487 } 1488 return n 1489 } 1490 1491 func (m *TaskResumed) Size() (n int) { 1492 if m == nil { 1493 return 0 1494 } 1495 var l int 1496 _ = l 1497 l = len(m.ContainerID) 1498 if l > 0 { 1499 n += 1 + l + sovTask(uint64(l)) 1500 } 1501 if m.XXX_unrecognized != nil { 1502 n += len(m.XXX_unrecognized) 1503 } 1504 return n 1505 } 1506 1507 func (m *TaskCheckpointed) Size() (n int) { 1508 if m == nil { 1509 return 0 1510 } 1511 var l int 1512 _ = l 1513 l = len(m.ContainerID) 1514 if l > 0 { 1515 n += 1 + l + sovTask(uint64(l)) 1516 } 1517 l = len(m.Checkpoint) 1518 if l > 0 { 1519 n += 1 + l + sovTask(uint64(l)) 1520 } 1521 if m.XXX_unrecognized != nil { 1522 n += len(m.XXX_unrecognized) 1523 } 1524 return n 1525 } 1526 1527 func sovTask(x uint64) (n int) { 1528 return (math_bits.Len64(x|1) + 6) / 7 1529 } 1530 func sozTask(x uint64) (n int) { 1531 return sovTask(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1532 } 1533 func (this *TaskCreate) String() string { 1534 if this == nil { 1535 return "nil" 1536 } 1537 repeatedStringForRootfs := "[]*Mount{" 1538 for _, f := range this.Rootfs { 1539 repeatedStringForRootfs += strings.Replace(fmt.Sprintf("%v", f), "Mount", "types.Mount", 1) + "," 1540 } 1541 repeatedStringForRootfs += "}" 1542 s := strings.Join([]string{`&TaskCreate{`, 1543 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1544 `Bundle:` + fmt.Sprintf("%v", this.Bundle) + `,`, 1545 `Rootfs:` + repeatedStringForRootfs + `,`, 1546 `IO:` + strings.Replace(this.IO.String(), "TaskIO", "TaskIO", 1) + `,`, 1547 `Checkpoint:` + fmt.Sprintf("%v", this.Checkpoint) + `,`, 1548 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 1549 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1550 `}`, 1551 }, "") 1552 return s 1553 } 1554 func (this *TaskStart) String() string { 1555 if this == nil { 1556 return "nil" 1557 } 1558 s := strings.Join([]string{`&TaskStart{`, 1559 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1560 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 1561 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1562 `}`, 1563 }, "") 1564 return s 1565 } 1566 func (this *TaskDelete) String() string { 1567 if this == nil { 1568 return "nil" 1569 } 1570 s := strings.Join([]string{`&TaskDelete{`, 1571 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1572 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 1573 `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`, 1574 `ExitedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ExitedAt), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 1575 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 1576 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1577 `}`, 1578 }, "") 1579 return s 1580 } 1581 func (this *TaskIO) String() string { 1582 if this == nil { 1583 return "nil" 1584 } 1585 s := strings.Join([]string{`&TaskIO{`, 1586 `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, 1587 `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, 1588 `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, 1589 `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, 1590 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1591 `}`, 1592 }, "") 1593 return s 1594 } 1595 func (this *TaskExit) String() string { 1596 if this == nil { 1597 return "nil" 1598 } 1599 s := strings.Join([]string{`&TaskExit{`, 1600 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1601 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 1602 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 1603 `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`, 1604 `ExitedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ExitedAt), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 1605 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1606 `}`, 1607 }, "") 1608 return s 1609 } 1610 func (this *TaskOOM) String() string { 1611 if this == nil { 1612 return "nil" 1613 } 1614 s := strings.Join([]string{`&TaskOOM{`, 1615 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1616 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1617 `}`, 1618 }, "") 1619 return s 1620 } 1621 func (this *TaskExecAdded) String() string { 1622 if this == nil { 1623 return "nil" 1624 } 1625 s := strings.Join([]string{`&TaskExecAdded{`, 1626 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1627 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 1628 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1629 `}`, 1630 }, "") 1631 return s 1632 } 1633 func (this *TaskExecStarted) String() string { 1634 if this == nil { 1635 return "nil" 1636 } 1637 s := strings.Join([]string{`&TaskExecStarted{`, 1638 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1639 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 1640 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 1641 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1642 `}`, 1643 }, "") 1644 return s 1645 } 1646 func (this *TaskPaused) String() string { 1647 if this == nil { 1648 return "nil" 1649 } 1650 s := strings.Join([]string{`&TaskPaused{`, 1651 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1652 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1653 `}`, 1654 }, "") 1655 return s 1656 } 1657 func (this *TaskResumed) String() string { 1658 if this == nil { 1659 return "nil" 1660 } 1661 s := strings.Join([]string{`&TaskResumed{`, 1662 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1663 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1664 `}`, 1665 }, "") 1666 return s 1667 } 1668 func (this *TaskCheckpointed) String() string { 1669 if this == nil { 1670 return "nil" 1671 } 1672 s := strings.Join([]string{`&TaskCheckpointed{`, 1673 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1674 `Checkpoint:` + fmt.Sprintf("%v", this.Checkpoint) + `,`, 1675 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1676 `}`, 1677 }, "") 1678 return s 1679 } 1680 func valueToStringTask(v interface{}) string { 1681 rv := reflect.ValueOf(v) 1682 if rv.IsNil() { 1683 return "nil" 1684 } 1685 pv := reflect.Indirect(rv).Interface() 1686 return fmt.Sprintf("*%v", pv) 1687 } 1688 func (m *TaskCreate) Unmarshal(dAtA []byte) error { 1689 l := len(dAtA) 1690 iNdEx := 0 1691 for iNdEx < l { 1692 preIndex := iNdEx 1693 var wire uint64 1694 for shift := uint(0); ; shift += 7 { 1695 if shift >= 64 { 1696 return ErrIntOverflowTask 1697 } 1698 if iNdEx >= l { 1699 return io.ErrUnexpectedEOF 1700 } 1701 b := dAtA[iNdEx] 1702 iNdEx++ 1703 wire |= uint64(b&0x7F) << shift 1704 if b < 0x80 { 1705 break 1706 } 1707 } 1708 fieldNum := int32(wire >> 3) 1709 wireType := int(wire & 0x7) 1710 if wireType == 4 { 1711 return fmt.Errorf("proto: TaskCreate: wiretype end group for non-group") 1712 } 1713 if fieldNum <= 0 { 1714 return fmt.Errorf("proto: TaskCreate: illegal tag %d (wire type %d)", fieldNum, wire) 1715 } 1716 switch fieldNum { 1717 case 1: 1718 if wireType != 2 { 1719 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 1720 } 1721 var stringLen uint64 1722 for shift := uint(0); ; shift += 7 { 1723 if shift >= 64 { 1724 return ErrIntOverflowTask 1725 } 1726 if iNdEx >= l { 1727 return io.ErrUnexpectedEOF 1728 } 1729 b := dAtA[iNdEx] 1730 iNdEx++ 1731 stringLen |= uint64(b&0x7F) << shift 1732 if b < 0x80 { 1733 break 1734 } 1735 } 1736 intStringLen := int(stringLen) 1737 if intStringLen < 0 { 1738 return ErrInvalidLengthTask 1739 } 1740 postIndex := iNdEx + intStringLen 1741 if postIndex < 0 { 1742 return ErrInvalidLengthTask 1743 } 1744 if postIndex > l { 1745 return io.ErrUnexpectedEOF 1746 } 1747 m.ContainerID = string(dAtA[iNdEx:postIndex]) 1748 iNdEx = postIndex 1749 case 2: 1750 if wireType != 2 { 1751 return fmt.Errorf("proto: wrong wireType = %d for field Bundle", wireType) 1752 } 1753 var stringLen uint64 1754 for shift := uint(0); ; shift += 7 { 1755 if shift >= 64 { 1756 return ErrIntOverflowTask 1757 } 1758 if iNdEx >= l { 1759 return io.ErrUnexpectedEOF 1760 } 1761 b := dAtA[iNdEx] 1762 iNdEx++ 1763 stringLen |= uint64(b&0x7F) << shift 1764 if b < 0x80 { 1765 break 1766 } 1767 } 1768 intStringLen := int(stringLen) 1769 if intStringLen < 0 { 1770 return ErrInvalidLengthTask 1771 } 1772 postIndex := iNdEx + intStringLen 1773 if postIndex < 0 { 1774 return ErrInvalidLengthTask 1775 } 1776 if postIndex > l { 1777 return io.ErrUnexpectedEOF 1778 } 1779 m.Bundle = string(dAtA[iNdEx:postIndex]) 1780 iNdEx = postIndex 1781 case 3: 1782 if wireType != 2 { 1783 return fmt.Errorf("proto: wrong wireType = %d for field Rootfs", wireType) 1784 } 1785 var msglen int 1786 for shift := uint(0); ; shift += 7 { 1787 if shift >= 64 { 1788 return ErrIntOverflowTask 1789 } 1790 if iNdEx >= l { 1791 return io.ErrUnexpectedEOF 1792 } 1793 b := dAtA[iNdEx] 1794 iNdEx++ 1795 msglen |= int(b&0x7F) << shift 1796 if b < 0x80 { 1797 break 1798 } 1799 } 1800 if msglen < 0 { 1801 return ErrInvalidLengthTask 1802 } 1803 postIndex := iNdEx + msglen 1804 if postIndex < 0 { 1805 return ErrInvalidLengthTask 1806 } 1807 if postIndex > l { 1808 return io.ErrUnexpectedEOF 1809 } 1810 m.Rootfs = append(m.Rootfs, &types.Mount{}) 1811 if err := m.Rootfs[len(m.Rootfs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1812 return err 1813 } 1814 iNdEx = postIndex 1815 case 4: 1816 if wireType != 2 { 1817 return fmt.Errorf("proto: wrong wireType = %d for field IO", wireType) 1818 } 1819 var msglen int 1820 for shift := uint(0); ; shift += 7 { 1821 if shift >= 64 { 1822 return ErrIntOverflowTask 1823 } 1824 if iNdEx >= l { 1825 return io.ErrUnexpectedEOF 1826 } 1827 b := dAtA[iNdEx] 1828 iNdEx++ 1829 msglen |= int(b&0x7F) << shift 1830 if b < 0x80 { 1831 break 1832 } 1833 } 1834 if msglen < 0 { 1835 return ErrInvalidLengthTask 1836 } 1837 postIndex := iNdEx + msglen 1838 if postIndex < 0 { 1839 return ErrInvalidLengthTask 1840 } 1841 if postIndex > l { 1842 return io.ErrUnexpectedEOF 1843 } 1844 if m.IO == nil { 1845 m.IO = &TaskIO{} 1846 } 1847 if err := m.IO.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1848 return err 1849 } 1850 iNdEx = postIndex 1851 case 5: 1852 if wireType != 2 { 1853 return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType) 1854 } 1855 var stringLen uint64 1856 for shift := uint(0); ; shift += 7 { 1857 if shift >= 64 { 1858 return ErrIntOverflowTask 1859 } 1860 if iNdEx >= l { 1861 return io.ErrUnexpectedEOF 1862 } 1863 b := dAtA[iNdEx] 1864 iNdEx++ 1865 stringLen |= uint64(b&0x7F) << shift 1866 if b < 0x80 { 1867 break 1868 } 1869 } 1870 intStringLen := int(stringLen) 1871 if intStringLen < 0 { 1872 return ErrInvalidLengthTask 1873 } 1874 postIndex := iNdEx + intStringLen 1875 if postIndex < 0 { 1876 return ErrInvalidLengthTask 1877 } 1878 if postIndex > l { 1879 return io.ErrUnexpectedEOF 1880 } 1881 m.Checkpoint = string(dAtA[iNdEx:postIndex]) 1882 iNdEx = postIndex 1883 case 6: 1884 if wireType != 0 { 1885 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 1886 } 1887 m.Pid = 0 1888 for shift := uint(0); ; shift += 7 { 1889 if shift >= 64 { 1890 return ErrIntOverflowTask 1891 } 1892 if iNdEx >= l { 1893 return io.ErrUnexpectedEOF 1894 } 1895 b := dAtA[iNdEx] 1896 iNdEx++ 1897 m.Pid |= uint32(b&0x7F) << shift 1898 if b < 0x80 { 1899 break 1900 } 1901 } 1902 default: 1903 iNdEx = preIndex 1904 skippy, err := skipTask(dAtA[iNdEx:]) 1905 if err != nil { 1906 return err 1907 } 1908 if (skippy < 0) || (iNdEx+skippy) < 0 { 1909 return ErrInvalidLengthTask 1910 } 1911 if (iNdEx + skippy) > l { 1912 return io.ErrUnexpectedEOF 1913 } 1914 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1915 iNdEx += skippy 1916 } 1917 } 1918 1919 if iNdEx > l { 1920 return io.ErrUnexpectedEOF 1921 } 1922 return nil 1923 } 1924 func (m *TaskStart) Unmarshal(dAtA []byte) error { 1925 l := len(dAtA) 1926 iNdEx := 0 1927 for iNdEx < l { 1928 preIndex := iNdEx 1929 var wire uint64 1930 for shift := uint(0); ; shift += 7 { 1931 if shift >= 64 { 1932 return ErrIntOverflowTask 1933 } 1934 if iNdEx >= l { 1935 return io.ErrUnexpectedEOF 1936 } 1937 b := dAtA[iNdEx] 1938 iNdEx++ 1939 wire |= uint64(b&0x7F) << shift 1940 if b < 0x80 { 1941 break 1942 } 1943 } 1944 fieldNum := int32(wire >> 3) 1945 wireType := int(wire & 0x7) 1946 if wireType == 4 { 1947 return fmt.Errorf("proto: TaskStart: wiretype end group for non-group") 1948 } 1949 if fieldNum <= 0 { 1950 return fmt.Errorf("proto: TaskStart: illegal tag %d (wire type %d)", fieldNum, wire) 1951 } 1952 switch fieldNum { 1953 case 1: 1954 if wireType != 2 { 1955 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 1956 } 1957 var stringLen uint64 1958 for shift := uint(0); ; shift += 7 { 1959 if shift >= 64 { 1960 return ErrIntOverflowTask 1961 } 1962 if iNdEx >= l { 1963 return io.ErrUnexpectedEOF 1964 } 1965 b := dAtA[iNdEx] 1966 iNdEx++ 1967 stringLen |= uint64(b&0x7F) << shift 1968 if b < 0x80 { 1969 break 1970 } 1971 } 1972 intStringLen := int(stringLen) 1973 if intStringLen < 0 { 1974 return ErrInvalidLengthTask 1975 } 1976 postIndex := iNdEx + intStringLen 1977 if postIndex < 0 { 1978 return ErrInvalidLengthTask 1979 } 1980 if postIndex > l { 1981 return io.ErrUnexpectedEOF 1982 } 1983 m.ContainerID = string(dAtA[iNdEx:postIndex]) 1984 iNdEx = postIndex 1985 case 2: 1986 if wireType != 0 { 1987 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 1988 } 1989 m.Pid = 0 1990 for shift := uint(0); ; shift += 7 { 1991 if shift >= 64 { 1992 return ErrIntOverflowTask 1993 } 1994 if iNdEx >= l { 1995 return io.ErrUnexpectedEOF 1996 } 1997 b := dAtA[iNdEx] 1998 iNdEx++ 1999 m.Pid |= uint32(b&0x7F) << shift 2000 if b < 0x80 { 2001 break 2002 } 2003 } 2004 default: 2005 iNdEx = preIndex 2006 skippy, err := skipTask(dAtA[iNdEx:]) 2007 if err != nil { 2008 return err 2009 } 2010 if (skippy < 0) || (iNdEx+skippy) < 0 { 2011 return ErrInvalidLengthTask 2012 } 2013 if (iNdEx + skippy) > l { 2014 return io.ErrUnexpectedEOF 2015 } 2016 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2017 iNdEx += skippy 2018 } 2019 } 2020 2021 if iNdEx > l { 2022 return io.ErrUnexpectedEOF 2023 } 2024 return nil 2025 } 2026 func (m *TaskDelete) Unmarshal(dAtA []byte) error { 2027 l := len(dAtA) 2028 iNdEx := 0 2029 for iNdEx < l { 2030 preIndex := iNdEx 2031 var wire uint64 2032 for shift := uint(0); ; shift += 7 { 2033 if shift >= 64 { 2034 return ErrIntOverflowTask 2035 } 2036 if iNdEx >= l { 2037 return io.ErrUnexpectedEOF 2038 } 2039 b := dAtA[iNdEx] 2040 iNdEx++ 2041 wire |= uint64(b&0x7F) << shift 2042 if b < 0x80 { 2043 break 2044 } 2045 } 2046 fieldNum := int32(wire >> 3) 2047 wireType := int(wire & 0x7) 2048 if wireType == 4 { 2049 return fmt.Errorf("proto: TaskDelete: wiretype end group for non-group") 2050 } 2051 if fieldNum <= 0 { 2052 return fmt.Errorf("proto: TaskDelete: illegal tag %d (wire type %d)", fieldNum, wire) 2053 } 2054 switch fieldNum { 2055 case 1: 2056 if wireType != 2 { 2057 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 2058 } 2059 var stringLen uint64 2060 for shift := uint(0); ; shift += 7 { 2061 if shift >= 64 { 2062 return ErrIntOverflowTask 2063 } 2064 if iNdEx >= l { 2065 return io.ErrUnexpectedEOF 2066 } 2067 b := dAtA[iNdEx] 2068 iNdEx++ 2069 stringLen |= uint64(b&0x7F) << shift 2070 if b < 0x80 { 2071 break 2072 } 2073 } 2074 intStringLen := int(stringLen) 2075 if intStringLen < 0 { 2076 return ErrInvalidLengthTask 2077 } 2078 postIndex := iNdEx + intStringLen 2079 if postIndex < 0 { 2080 return ErrInvalidLengthTask 2081 } 2082 if postIndex > l { 2083 return io.ErrUnexpectedEOF 2084 } 2085 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2086 iNdEx = postIndex 2087 case 2: 2088 if wireType != 0 { 2089 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 2090 } 2091 m.Pid = 0 2092 for shift := uint(0); ; shift += 7 { 2093 if shift >= 64 { 2094 return ErrIntOverflowTask 2095 } 2096 if iNdEx >= l { 2097 return io.ErrUnexpectedEOF 2098 } 2099 b := dAtA[iNdEx] 2100 iNdEx++ 2101 m.Pid |= uint32(b&0x7F) << shift 2102 if b < 0x80 { 2103 break 2104 } 2105 } 2106 case 3: 2107 if wireType != 0 { 2108 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 2109 } 2110 m.ExitStatus = 0 2111 for shift := uint(0); ; shift += 7 { 2112 if shift >= 64 { 2113 return ErrIntOverflowTask 2114 } 2115 if iNdEx >= l { 2116 return io.ErrUnexpectedEOF 2117 } 2118 b := dAtA[iNdEx] 2119 iNdEx++ 2120 m.ExitStatus |= uint32(b&0x7F) << shift 2121 if b < 0x80 { 2122 break 2123 } 2124 } 2125 case 4: 2126 if wireType != 2 { 2127 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 2128 } 2129 var msglen int 2130 for shift := uint(0); ; shift += 7 { 2131 if shift >= 64 { 2132 return ErrIntOverflowTask 2133 } 2134 if iNdEx >= l { 2135 return io.ErrUnexpectedEOF 2136 } 2137 b := dAtA[iNdEx] 2138 iNdEx++ 2139 msglen |= int(b&0x7F) << shift 2140 if b < 0x80 { 2141 break 2142 } 2143 } 2144 if msglen < 0 { 2145 return ErrInvalidLengthTask 2146 } 2147 postIndex := iNdEx + msglen 2148 if postIndex < 0 { 2149 return ErrInvalidLengthTask 2150 } 2151 if postIndex > l { 2152 return io.ErrUnexpectedEOF 2153 } 2154 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 2155 return err 2156 } 2157 iNdEx = postIndex 2158 case 5: 2159 if wireType != 2 { 2160 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 2161 } 2162 var stringLen uint64 2163 for shift := uint(0); ; shift += 7 { 2164 if shift >= 64 { 2165 return ErrIntOverflowTask 2166 } 2167 if iNdEx >= l { 2168 return io.ErrUnexpectedEOF 2169 } 2170 b := dAtA[iNdEx] 2171 iNdEx++ 2172 stringLen |= uint64(b&0x7F) << shift 2173 if b < 0x80 { 2174 break 2175 } 2176 } 2177 intStringLen := int(stringLen) 2178 if intStringLen < 0 { 2179 return ErrInvalidLengthTask 2180 } 2181 postIndex := iNdEx + intStringLen 2182 if postIndex < 0 { 2183 return ErrInvalidLengthTask 2184 } 2185 if postIndex > l { 2186 return io.ErrUnexpectedEOF 2187 } 2188 m.ID = string(dAtA[iNdEx:postIndex]) 2189 iNdEx = postIndex 2190 default: 2191 iNdEx = preIndex 2192 skippy, err := skipTask(dAtA[iNdEx:]) 2193 if err != nil { 2194 return err 2195 } 2196 if (skippy < 0) || (iNdEx+skippy) < 0 { 2197 return ErrInvalidLengthTask 2198 } 2199 if (iNdEx + skippy) > l { 2200 return io.ErrUnexpectedEOF 2201 } 2202 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2203 iNdEx += skippy 2204 } 2205 } 2206 2207 if iNdEx > l { 2208 return io.ErrUnexpectedEOF 2209 } 2210 return nil 2211 } 2212 func (m *TaskIO) Unmarshal(dAtA []byte) error { 2213 l := len(dAtA) 2214 iNdEx := 0 2215 for iNdEx < l { 2216 preIndex := iNdEx 2217 var wire uint64 2218 for shift := uint(0); ; shift += 7 { 2219 if shift >= 64 { 2220 return ErrIntOverflowTask 2221 } 2222 if iNdEx >= l { 2223 return io.ErrUnexpectedEOF 2224 } 2225 b := dAtA[iNdEx] 2226 iNdEx++ 2227 wire |= uint64(b&0x7F) << shift 2228 if b < 0x80 { 2229 break 2230 } 2231 } 2232 fieldNum := int32(wire >> 3) 2233 wireType := int(wire & 0x7) 2234 if wireType == 4 { 2235 return fmt.Errorf("proto: TaskIO: wiretype end group for non-group") 2236 } 2237 if fieldNum <= 0 { 2238 return fmt.Errorf("proto: TaskIO: illegal tag %d (wire type %d)", fieldNum, wire) 2239 } 2240 switch fieldNum { 2241 case 1: 2242 if wireType != 2 { 2243 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 2244 } 2245 var stringLen uint64 2246 for shift := uint(0); ; shift += 7 { 2247 if shift >= 64 { 2248 return ErrIntOverflowTask 2249 } 2250 if iNdEx >= l { 2251 return io.ErrUnexpectedEOF 2252 } 2253 b := dAtA[iNdEx] 2254 iNdEx++ 2255 stringLen |= uint64(b&0x7F) << shift 2256 if b < 0x80 { 2257 break 2258 } 2259 } 2260 intStringLen := int(stringLen) 2261 if intStringLen < 0 { 2262 return ErrInvalidLengthTask 2263 } 2264 postIndex := iNdEx + intStringLen 2265 if postIndex < 0 { 2266 return ErrInvalidLengthTask 2267 } 2268 if postIndex > l { 2269 return io.ErrUnexpectedEOF 2270 } 2271 m.Stdin = string(dAtA[iNdEx:postIndex]) 2272 iNdEx = postIndex 2273 case 2: 2274 if wireType != 2 { 2275 return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) 2276 } 2277 var stringLen uint64 2278 for shift := uint(0); ; shift += 7 { 2279 if shift >= 64 { 2280 return ErrIntOverflowTask 2281 } 2282 if iNdEx >= l { 2283 return io.ErrUnexpectedEOF 2284 } 2285 b := dAtA[iNdEx] 2286 iNdEx++ 2287 stringLen |= uint64(b&0x7F) << shift 2288 if b < 0x80 { 2289 break 2290 } 2291 } 2292 intStringLen := int(stringLen) 2293 if intStringLen < 0 { 2294 return ErrInvalidLengthTask 2295 } 2296 postIndex := iNdEx + intStringLen 2297 if postIndex < 0 { 2298 return ErrInvalidLengthTask 2299 } 2300 if postIndex > l { 2301 return io.ErrUnexpectedEOF 2302 } 2303 m.Stdout = string(dAtA[iNdEx:postIndex]) 2304 iNdEx = postIndex 2305 case 3: 2306 if wireType != 2 { 2307 return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) 2308 } 2309 var stringLen uint64 2310 for shift := uint(0); ; shift += 7 { 2311 if shift >= 64 { 2312 return ErrIntOverflowTask 2313 } 2314 if iNdEx >= l { 2315 return io.ErrUnexpectedEOF 2316 } 2317 b := dAtA[iNdEx] 2318 iNdEx++ 2319 stringLen |= uint64(b&0x7F) << shift 2320 if b < 0x80 { 2321 break 2322 } 2323 } 2324 intStringLen := int(stringLen) 2325 if intStringLen < 0 { 2326 return ErrInvalidLengthTask 2327 } 2328 postIndex := iNdEx + intStringLen 2329 if postIndex < 0 { 2330 return ErrInvalidLengthTask 2331 } 2332 if postIndex > l { 2333 return io.ErrUnexpectedEOF 2334 } 2335 m.Stderr = string(dAtA[iNdEx:postIndex]) 2336 iNdEx = postIndex 2337 case 4: 2338 if wireType != 0 { 2339 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 2340 } 2341 var v int 2342 for shift := uint(0); ; shift += 7 { 2343 if shift >= 64 { 2344 return ErrIntOverflowTask 2345 } 2346 if iNdEx >= l { 2347 return io.ErrUnexpectedEOF 2348 } 2349 b := dAtA[iNdEx] 2350 iNdEx++ 2351 v |= int(b&0x7F) << shift 2352 if b < 0x80 { 2353 break 2354 } 2355 } 2356 m.Terminal = bool(v != 0) 2357 default: 2358 iNdEx = preIndex 2359 skippy, err := skipTask(dAtA[iNdEx:]) 2360 if err != nil { 2361 return err 2362 } 2363 if (skippy < 0) || (iNdEx+skippy) < 0 { 2364 return ErrInvalidLengthTask 2365 } 2366 if (iNdEx + skippy) > l { 2367 return io.ErrUnexpectedEOF 2368 } 2369 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2370 iNdEx += skippy 2371 } 2372 } 2373 2374 if iNdEx > l { 2375 return io.ErrUnexpectedEOF 2376 } 2377 return nil 2378 } 2379 func (m *TaskExit) Unmarshal(dAtA []byte) error { 2380 l := len(dAtA) 2381 iNdEx := 0 2382 for iNdEx < l { 2383 preIndex := iNdEx 2384 var wire uint64 2385 for shift := uint(0); ; shift += 7 { 2386 if shift >= 64 { 2387 return ErrIntOverflowTask 2388 } 2389 if iNdEx >= l { 2390 return io.ErrUnexpectedEOF 2391 } 2392 b := dAtA[iNdEx] 2393 iNdEx++ 2394 wire |= uint64(b&0x7F) << shift 2395 if b < 0x80 { 2396 break 2397 } 2398 } 2399 fieldNum := int32(wire >> 3) 2400 wireType := int(wire & 0x7) 2401 if wireType == 4 { 2402 return fmt.Errorf("proto: TaskExit: wiretype end group for non-group") 2403 } 2404 if fieldNum <= 0 { 2405 return fmt.Errorf("proto: TaskExit: illegal tag %d (wire type %d)", fieldNum, wire) 2406 } 2407 switch fieldNum { 2408 case 1: 2409 if wireType != 2 { 2410 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 2411 } 2412 var stringLen uint64 2413 for shift := uint(0); ; shift += 7 { 2414 if shift >= 64 { 2415 return ErrIntOverflowTask 2416 } 2417 if iNdEx >= l { 2418 return io.ErrUnexpectedEOF 2419 } 2420 b := dAtA[iNdEx] 2421 iNdEx++ 2422 stringLen |= uint64(b&0x7F) << shift 2423 if b < 0x80 { 2424 break 2425 } 2426 } 2427 intStringLen := int(stringLen) 2428 if intStringLen < 0 { 2429 return ErrInvalidLengthTask 2430 } 2431 postIndex := iNdEx + intStringLen 2432 if postIndex < 0 { 2433 return ErrInvalidLengthTask 2434 } 2435 if postIndex > l { 2436 return io.ErrUnexpectedEOF 2437 } 2438 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2439 iNdEx = postIndex 2440 case 2: 2441 if wireType != 2 { 2442 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 2443 } 2444 var stringLen uint64 2445 for shift := uint(0); ; shift += 7 { 2446 if shift >= 64 { 2447 return ErrIntOverflowTask 2448 } 2449 if iNdEx >= l { 2450 return io.ErrUnexpectedEOF 2451 } 2452 b := dAtA[iNdEx] 2453 iNdEx++ 2454 stringLen |= uint64(b&0x7F) << shift 2455 if b < 0x80 { 2456 break 2457 } 2458 } 2459 intStringLen := int(stringLen) 2460 if intStringLen < 0 { 2461 return ErrInvalidLengthTask 2462 } 2463 postIndex := iNdEx + intStringLen 2464 if postIndex < 0 { 2465 return ErrInvalidLengthTask 2466 } 2467 if postIndex > l { 2468 return io.ErrUnexpectedEOF 2469 } 2470 m.ID = string(dAtA[iNdEx:postIndex]) 2471 iNdEx = postIndex 2472 case 3: 2473 if wireType != 0 { 2474 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 2475 } 2476 m.Pid = 0 2477 for shift := uint(0); ; shift += 7 { 2478 if shift >= 64 { 2479 return ErrIntOverflowTask 2480 } 2481 if iNdEx >= l { 2482 return io.ErrUnexpectedEOF 2483 } 2484 b := dAtA[iNdEx] 2485 iNdEx++ 2486 m.Pid |= uint32(b&0x7F) << shift 2487 if b < 0x80 { 2488 break 2489 } 2490 } 2491 case 4: 2492 if wireType != 0 { 2493 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 2494 } 2495 m.ExitStatus = 0 2496 for shift := uint(0); ; shift += 7 { 2497 if shift >= 64 { 2498 return ErrIntOverflowTask 2499 } 2500 if iNdEx >= l { 2501 return io.ErrUnexpectedEOF 2502 } 2503 b := dAtA[iNdEx] 2504 iNdEx++ 2505 m.ExitStatus |= uint32(b&0x7F) << shift 2506 if b < 0x80 { 2507 break 2508 } 2509 } 2510 case 5: 2511 if wireType != 2 { 2512 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 2513 } 2514 var msglen int 2515 for shift := uint(0); ; shift += 7 { 2516 if shift >= 64 { 2517 return ErrIntOverflowTask 2518 } 2519 if iNdEx >= l { 2520 return io.ErrUnexpectedEOF 2521 } 2522 b := dAtA[iNdEx] 2523 iNdEx++ 2524 msglen |= int(b&0x7F) << shift 2525 if b < 0x80 { 2526 break 2527 } 2528 } 2529 if msglen < 0 { 2530 return ErrInvalidLengthTask 2531 } 2532 postIndex := iNdEx + msglen 2533 if postIndex < 0 { 2534 return ErrInvalidLengthTask 2535 } 2536 if postIndex > l { 2537 return io.ErrUnexpectedEOF 2538 } 2539 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 2540 return err 2541 } 2542 iNdEx = postIndex 2543 default: 2544 iNdEx = preIndex 2545 skippy, err := skipTask(dAtA[iNdEx:]) 2546 if err != nil { 2547 return err 2548 } 2549 if (skippy < 0) || (iNdEx+skippy) < 0 { 2550 return ErrInvalidLengthTask 2551 } 2552 if (iNdEx + skippy) > l { 2553 return io.ErrUnexpectedEOF 2554 } 2555 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2556 iNdEx += skippy 2557 } 2558 } 2559 2560 if iNdEx > l { 2561 return io.ErrUnexpectedEOF 2562 } 2563 return nil 2564 } 2565 func (m *TaskOOM) Unmarshal(dAtA []byte) error { 2566 l := len(dAtA) 2567 iNdEx := 0 2568 for iNdEx < l { 2569 preIndex := iNdEx 2570 var wire uint64 2571 for shift := uint(0); ; shift += 7 { 2572 if shift >= 64 { 2573 return ErrIntOverflowTask 2574 } 2575 if iNdEx >= l { 2576 return io.ErrUnexpectedEOF 2577 } 2578 b := dAtA[iNdEx] 2579 iNdEx++ 2580 wire |= uint64(b&0x7F) << shift 2581 if b < 0x80 { 2582 break 2583 } 2584 } 2585 fieldNum := int32(wire >> 3) 2586 wireType := int(wire & 0x7) 2587 if wireType == 4 { 2588 return fmt.Errorf("proto: TaskOOM: wiretype end group for non-group") 2589 } 2590 if fieldNum <= 0 { 2591 return fmt.Errorf("proto: TaskOOM: illegal tag %d (wire type %d)", fieldNum, wire) 2592 } 2593 switch fieldNum { 2594 case 1: 2595 if wireType != 2 { 2596 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 2597 } 2598 var stringLen uint64 2599 for shift := uint(0); ; shift += 7 { 2600 if shift >= 64 { 2601 return ErrIntOverflowTask 2602 } 2603 if iNdEx >= l { 2604 return io.ErrUnexpectedEOF 2605 } 2606 b := dAtA[iNdEx] 2607 iNdEx++ 2608 stringLen |= uint64(b&0x7F) << shift 2609 if b < 0x80 { 2610 break 2611 } 2612 } 2613 intStringLen := int(stringLen) 2614 if intStringLen < 0 { 2615 return ErrInvalidLengthTask 2616 } 2617 postIndex := iNdEx + intStringLen 2618 if postIndex < 0 { 2619 return ErrInvalidLengthTask 2620 } 2621 if postIndex > l { 2622 return io.ErrUnexpectedEOF 2623 } 2624 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2625 iNdEx = postIndex 2626 default: 2627 iNdEx = preIndex 2628 skippy, err := skipTask(dAtA[iNdEx:]) 2629 if err != nil { 2630 return err 2631 } 2632 if (skippy < 0) || (iNdEx+skippy) < 0 { 2633 return ErrInvalidLengthTask 2634 } 2635 if (iNdEx + skippy) > l { 2636 return io.ErrUnexpectedEOF 2637 } 2638 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2639 iNdEx += skippy 2640 } 2641 } 2642 2643 if iNdEx > l { 2644 return io.ErrUnexpectedEOF 2645 } 2646 return nil 2647 } 2648 func (m *TaskExecAdded) Unmarshal(dAtA []byte) error { 2649 l := len(dAtA) 2650 iNdEx := 0 2651 for iNdEx < l { 2652 preIndex := iNdEx 2653 var wire uint64 2654 for shift := uint(0); ; shift += 7 { 2655 if shift >= 64 { 2656 return ErrIntOverflowTask 2657 } 2658 if iNdEx >= l { 2659 return io.ErrUnexpectedEOF 2660 } 2661 b := dAtA[iNdEx] 2662 iNdEx++ 2663 wire |= uint64(b&0x7F) << shift 2664 if b < 0x80 { 2665 break 2666 } 2667 } 2668 fieldNum := int32(wire >> 3) 2669 wireType := int(wire & 0x7) 2670 if wireType == 4 { 2671 return fmt.Errorf("proto: TaskExecAdded: wiretype end group for non-group") 2672 } 2673 if fieldNum <= 0 { 2674 return fmt.Errorf("proto: TaskExecAdded: illegal tag %d (wire type %d)", fieldNum, wire) 2675 } 2676 switch fieldNum { 2677 case 1: 2678 if wireType != 2 { 2679 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 2680 } 2681 var stringLen uint64 2682 for shift := uint(0); ; shift += 7 { 2683 if shift >= 64 { 2684 return ErrIntOverflowTask 2685 } 2686 if iNdEx >= l { 2687 return io.ErrUnexpectedEOF 2688 } 2689 b := dAtA[iNdEx] 2690 iNdEx++ 2691 stringLen |= uint64(b&0x7F) << shift 2692 if b < 0x80 { 2693 break 2694 } 2695 } 2696 intStringLen := int(stringLen) 2697 if intStringLen < 0 { 2698 return ErrInvalidLengthTask 2699 } 2700 postIndex := iNdEx + intStringLen 2701 if postIndex < 0 { 2702 return ErrInvalidLengthTask 2703 } 2704 if postIndex > l { 2705 return io.ErrUnexpectedEOF 2706 } 2707 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2708 iNdEx = postIndex 2709 case 2: 2710 if wireType != 2 { 2711 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 2712 } 2713 var stringLen uint64 2714 for shift := uint(0); ; shift += 7 { 2715 if shift >= 64 { 2716 return ErrIntOverflowTask 2717 } 2718 if iNdEx >= l { 2719 return io.ErrUnexpectedEOF 2720 } 2721 b := dAtA[iNdEx] 2722 iNdEx++ 2723 stringLen |= uint64(b&0x7F) << shift 2724 if b < 0x80 { 2725 break 2726 } 2727 } 2728 intStringLen := int(stringLen) 2729 if intStringLen < 0 { 2730 return ErrInvalidLengthTask 2731 } 2732 postIndex := iNdEx + intStringLen 2733 if postIndex < 0 { 2734 return ErrInvalidLengthTask 2735 } 2736 if postIndex > l { 2737 return io.ErrUnexpectedEOF 2738 } 2739 m.ExecID = string(dAtA[iNdEx:postIndex]) 2740 iNdEx = postIndex 2741 default: 2742 iNdEx = preIndex 2743 skippy, err := skipTask(dAtA[iNdEx:]) 2744 if err != nil { 2745 return err 2746 } 2747 if (skippy < 0) || (iNdEx+skippy) < 0 { 2748 return ErrInvalidLengthTask 2749 } 2750 if (iNdEx + skippy) > l { 2751 return io.ErrUnexpectedEOF 2752 } 2753 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2754 iNdEx += skippy 2755 } 2756 } 2757 2758 if iNdEx > l { 2759 return io.ErrUnexpectedEOF 2760 } 2761 return nil 2762 } 2763 func (m *TaskExecStarted) Unmarshal(dAtA []byte) error { 2764 l := len(dAtA) 2765 iNdEx := 0 2766 for iNdEx < l { 2767 preIndex := iNdEx 2768 var wire uint64 2769 for shift := uint(0); ; shift += 7 { 2770 if shift >= 64 { 2771 return ErrIntOverflowTask 2772 } 2773 if iNdEx >= l { 2774 return io.ErrUnexpectedEOF 2775 } 2776 b := dAtA[iNdEx] 2777 iNdEx++ 2778 wire |= uint64(b&0x7F) << shift 2779 if b < 0x80 { 2780 break 2781 } 2782 } 2783 fieldNum := int32(wire >> 3) 2784 wireType := int(wire & 0x7) 2785 if wireType == 4 { 2786 return fmt.Errorf("proto: TaskExecStarted: wiretype end group for non-group") 2787 } 2788 if fieldNum <= 0 { 2789 return fmt.Errorf("proto: TaskExecStarted: illegal tag %d (wire type %d)", fieldNum, wire) 2790 } 2791 switch fieldNum { 2792 case 1: 2793 if wireType != 2 { 2794 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 2795 } 2796 var stringLen uint64 2797 for shift := uint(0); ; shift += 7 { 2798 if shift >= 64 { 2799 return ErrIntOverflowTask 2800 } 2801 if iNdEx >= l { 2802 return io.ErrUnexpectedEOF 2803 } 2804 b := dAtA[iNdEx] 2805 iNdEx++ 2806 stringLen |= uint64(b&0x7F) << shift 2807 if b < 0x80 { 2808 break 2809 } 2810 } 2811 intStringLen := int(stringLen) 2812 if intStringLen < 0 { 2813 return ErrInvalidLengthTask 2814 } 2815 postIndex := iNdEx + intStringLen 2816 if postIndex < 0 { 2817 return ErrInvalidLengthTask 2818 } 2819 if postIndex > l { 2820 return io.ErrUnexpectedEOF 2821 } 2822 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2823 iNdEx = postIndex 2824 case 2: 2825 if wireType != 2 { 2826 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 2827 } 2828 var stringLen uint64 2829 for shift := uint(0); ; shift += 7 { 2830 if shift >= 64 { 2831 return ErrIntOverflowTask 2832 } 2833 if iNdEx >= l { 2834 return io.ErrUnexpectedEOF 2835 } 2836 b := dAtA[iNdEx] 2837 iNdEx++ 2838 stringLen |= uint64(b&0x7F) << shift 2839 if b < 0x80 { 2840 break 2841 } 2842 } 2843 intStringLen := int(stringLen) 2844 if intStringLen < 0 { 2845 return ErrInvalidLengthTask 2846 } 2847 postIndex := iNdEx + intStringLen 2848 if postIndex < 0 { 2849 return ErrInvalidLengthTask 2850 } 2851 if postIndex > l { 2852 return io.ErrUnexpectedEOF 2853 } 2854 m.ExecID = string(dAtA[iNdEx:postIndex]) 2855 iNdEx = postIndex 2856 case 3: 2857 if wireType != 0 { 2858 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 2859 } 2860 m.Pid = 0 2861 for shift := uint(0); ; shift += 7 { 2862 if shift >= 64 { 2863 return ErrIntOverflowTask 2864 } 2865 if iNdEx >= l { 2866 return io.ErrUnexpectedEOF 2867 } 2868 b := dAtA[iNdEx] 2869 iNdEx++ 2870 m.Pid |= uint32(b&0x7F) << shift 2871 if b < 0x80 { 2872 break 2873 } 2874 } 2875 default: 2876 iNdEx = preIndex 2877 skippy, err := skipTask(dAtA[iNdEx:]) 2878 if err != nil { 2879 return err 2880 } 2881 if (skippy < 0) || (iNdEx+skippy) < 0 { 2882 return ErrInvalidLengthTask 2883 } 2884 if (iNdEx + skippy) > l { 2885 return io.ErrUnexpectedEOF 2886 } 2887 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2888 iNdEx += skippy 2889 } 2890 } 2891 2892 if iNdEx > l { 2893 return io.ErrUnexpectedEOF 2894 } 2895 return nil 2896 } 2897 func (m *TaskPaused) Unmarshal(dAtA []byte) error { 2898 l := len(dAtA) 2899 iNdEx := 0 2900 for iNdEx < l { 2901 preIndex := iNdEx 2902 var wire uint64 2903 for shift := uint(0); ; shift += 7 { 2904 if shift >= 64 { 2905 return ErrIntOverflowTask 2906 } 2907 if iNdEx >= l { 2908 return io.ErrUnexpectedEOF 2909 } 2910 b := dAtA[iNdEx] 2911 iNdEx++ 2912 wire |= uint64(b&0x7F) << shift 2913 if b < 0x80 { 2914 break 2915 } 2916 } 2917 fieldNum := int32(wire >> 3) 2918 wireType := int(wire & 0x7) 2919 if wireType == 4 { 2920 return fmt.Errorf("proto: TaskPaused: wiretype end group for non-group") 2921 } 2922 if fieldNum <= 0 { 2923 return fmt.Errorf("proto: TaskPaused: illegal tag %d (wire type %d)", fieldNum, wire) 2924 } 2925 switch fieldNum { 2926 case 1: 2927 if wireType != 2 { 2928 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 2929 } 2930 var stringLen uint64 2931 for shift := uint(0); ; shift += 7 { 2932 if shift >= 64 { 2933 return ErrIntOverflowTask 2934 } 2935 if iNdEx >= l { 2936 return io.ErrUnexpectedEOF 2937 } 2938 b := dAtA[iNdEx] 2939 iNdEx++ 2940 stringLen |= uint64(b&0x7F) << shift 2941 if b < 0x80 { 2942 break 2943 } 2944 } 2945 intStringLen := int(stringLen) 2946 if intStringLen < 0 { 2947 return ErrInvalidLengthTask 2948 } 2949 postIndex := iNdEx + intStringLen 2950 if postIndex < 0 { 2951 return ErrInvalidLengthTask 2952 } 2953 if postIndex > l { 2954 return io.ErrUnexpectedEOF 2955 } 2956 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2957 iNdEx = postIndex 2958 default: 2959 iNdEx = preIndex 2960 skippy, err := skipTask(dAtA[iNdEx:]) 2961 if err != nil { 2962 return err 2963 } 2964 if (skippy < 0) || (iNdEx+skippy) < 0 { 2965 return ErrInvalidLengthTask 2966 } 2967 if (iNdEx + skippy) > l { 2968 return io.ErrUnexpectedEOF 2969 } 2970 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2971 iNdEx += skippy 2972 } 2973 } 2974 2975 if iNdEx > l { 2976 return io.ErrUnexpectedEOF 2977 } 2978 return nil 2979 } 2980 func (m *TaskResumed) Unmarshal(dAtA []byte) error { 2981 l := len(dAtA) 2982 iNdEx := 0 2983 for iNdEx < l { 2984 preIndex := iNdEx 2985 var wire uint64 2986 for shift := uint(0); ; shift += 7 { 2987 if shift >= 64 { 2988 return ErrIntOverflowTask 2989 } 2990 if iNdEx >= l { 2991 return io.ErrUnexpectedEOF 2992 } 2993 b := dAtA[iNdEx] 2994 iNdEx++ 2995 wire |= uint64(b&0x7F) << shift 2996 if b < 0x80 { 2997 break 2998 } 2999 } 3000 fieldNum := int32(wire >> 3) 3001 wireType := int(wire & 0x7) 3002 if wireType == 4 { 3003 return fmt.Errorf("proto: TaskResumed: wiretype end group for non-group") 3004 } 3005 if fieldNum <= 0 { 3006 return fmt.Errorf("proto: TaskResumed: illegal tag %d (wire type %d)", fieldNum, wire) 3007 } 3008 switch fieldNum { 3009 case 1: 3010 if wireType != 2 { 3011 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 3012 } 3013 var stringLen uint64 3014 for shift := uint(0); ; shift += 7 { 3015 if shift >= 64 { 3016 return ErrIntOverflowTask 3017 } 3018 if iNdEx >= l { 3019 return io.ErrUnexpectedEOF 3020 } 3021 b := dAtA[iNdEx] 3022 iNdEx++ 3023 stringLen |= uint64(b&0x7F) << shift 3024 if b < 0x80 { 3025 break 3026 } 3027 } 3028 intStringLen := int(stringLen) 3029 if intStringLen < 0 { 3030 return ErrInvalidLengthTask 3031 } 3032 postIndex := iNdEx + intStringLen 3033 if postIndex < 0 { 3034 return ErrInvalidLengthTask 3035 } 3036 if postIndex > l { 3037 return io.ErrUnexpectedEOF 3038 } 3039 m.ContainerID = string(dAtA[iNdEx:postIndex]) 3040 iNdEx = postIndex 3041 default: 3042 iNdEx = preIndex 3043 skippy, err := skipTask(dAtA[iNdEx:]) 3044 if err != nil { 3045 return err 3046 } 3047 if (skippy < 0) || (iNdEx+skippy) < 0 { 3048 return ErrInvalidLengthTask 3049 } 3050 if (iNdEx + skippy) > l { 3051 return io.ErrUnexpectedEOF 3052 } 3053 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3054 iNdEx += skippy 3055 } 3056 } 3057 3058 if iNdEx > l { 3059 return io.ErrUnexpectedEOF 3060 } 3061 return nil 3062 } 3063 func (m *TaskCheckpointed) Unmarshal(dAtA []byte) error { 3064 l := len(dAtA) 3065 iNdEx := 0 3066 for iNdEx < l { 3067 preIndex := iNdEx 3068 var wire uint64 3069 for shift := uint(0); ; shift += 7 { 3070 if shift >= 64 { 3071 return ErrIntOverflowTask 3072 } 3073 if iNdEx >= l { 3074 return io.ErrUnexpectedEOF 3075 } 3076 b := dAtA[iNdEx] 3077 iNdEx++ 3078 wire |= uint64(b&0x7F) << shift 3079 if b < 0x80 { 3080 break 3081 } 3082 } 3083 fieldNum := int32(wire >> 3) 3084 wireType := int(wire & 0x7) 3085 if wireType == 4 { 3086 return fmt.Errorf("proto: TaskCheckpointed: wiretype end group for non-group") 3087 } 3088 if fieldNum <= 0 { 3089 return fmt.Errorf("proto: TaskCheckpointed: illegal tag %d (wire type %d)", fieldNum, wire) 3090 } 3091 switch fieldNum { 3092 case 1: 3093 if wireType != 2 { 3094 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 3095 } 3096 var stringLen uint64 3097 for shift := uint(0); ; shift += 7 { 3098 if shift >= 64 { 3099 return ErrIntOverflowTask 3100 } 3101 if iNdEx >= l { 3102 return io.ErrUnexpectedEOF 3103 } 3104 b := dAtA[iNdEx] 3105 iNdEx++ 3106 stringLen |= uint64(b&0x7F) << shift 3107 if b < 0x80 { 3108 break 3109 } 3110 } 3111 intStringLen := int(stringLen) 3112 if intStringLen < 0 { 3113 return ErrInvalidLengthTask 3114 } 3115 postIndex := iNdEx + intStringLen 3116 if postIndex < 0 { 3117 return ErrInvalidLengthTask 3118 } 3119 if postIndex > l { 3120 return io.ErrUnexpectedEOF 3121 } 3122 m.ContainerID = string(dAtA[iNdEx:postIndex]) 3123 iNdEx = postIndex 3124 case 2: 3125 if wireType != 2 { 3126 return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType) 3127 } 3128 var stringLen uint64 3129 for shift := uint(0); ; shift += 7 { 3130 if shift >= 64 { 3131 return ErrIntOverflowTask 3132 } 3133 if iNdEx >= l { 3134 return io.ErrUnexpectedEOF 3135 } 3136 b := dAtA[iNdEx] 3137 iNdEx++ 3138 stringLen |= uint64(b&0x7F) << shift 3139 if b < 0x80 { 3140 break 3141 } 3142 } 3143 intStringLen := int(stringLen) 3144 if intStringLen < 0 { 3145 return ErrInvalidLengthTask 3146 } 3147 postIndex := iNdEx + intStringLen 3148 if postIndex < 0 { 3149 return ErrInvalidLengthTask 3150 } 3151 if postIndex > l { 3152 return io.ErrUnexpectedEOF 3153 } 3154 m.Checkpoint = string(dAtA[iNdEx:postIndex]) 3155 iNdEx = postIndex 3156 default: 3157 iNdEx = preIndex 3158 skippy, err := skipTask(dAtA[iNdEx:]) 3159 if err != nil { 3160 return err 3161 } 3162 if (skippy < 0) || (iNdEx+skippy) < 0 { 3163 return ErrInvalidLengthTask 3164 } 3165 if (iNdEx + skippy) > l { 3166 return io.ErrUnexpectedEOF 3167 } 3168 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3169 iNdEx += skippy 3170 } 3171 } 3172 3173 if iNdEx > l { 3174 return io.ErrUnexpectedEOF 3175 } 3176 return nil 3177 } 3178 func skipTask(dAtA []byte) (n int, err error) { 3179 l := len(dAtA) 3180 iNdEx := 0 3181 depth := 0 3182 for iNdEx < l { 3183 var wire uint64 3184 for shift := uint(0); ; shift += 7 { 3185 if shift >= 64 { 3186 return 0, ErrIntOverflowTask 3187 } 3188 if iNdEx >= l { 3189 return 0, io.ErrUnexpectedEOF 3190 } 3191 b := dAtA[iNdEx] 3192 iNdEx++ 3193 wire |= (uint64(b) & 0x7F) << shift 3194 if b < 0x80 { 3195 break 3196 } 3197 } 3198 wireType := int(wire & 0x7) 3199 switch wireType { 3200 case 0: 3201 for shift := uint(0); ; shift += 7 { 3202 if shift >= 64 { 3203 return 0, ErrIntOverflowTask 3204 } 3205 if iNdEx >= l { 3206 return 0, io.ErrUnexpectedEOF 3207 } 3208 iNdEx++ 3209 if dAtA[iNdEx-1] < 0x80 { 3210 break 3211 } 3212 } 3213 case 1: 3214 iNdEx += 8 3215 case 2: 3216 var length int 3217 for shift := uint(0); ; shift += 7 { 3218 if shift >= 64 { 3219 return 0, ErrIntOverflowTask 3220 } 3221 if iNdEx >= l { 3222 return 0, io.ErrUnexpectedEOF 3223 } 3224 b := dAtA[iNdEx] 3225 iNdEx++ 3226 length |= (int(b) & 0x7F) << shift 3227 if b < 0x80 { 3228 break 3229 } 3230 } 3231 if length < 0 { 3232 return 0, ErrInvalidLengthTask 3233 } 3234 iNdEx += length 3235 case 3: 3236 depth++ 3237 case 4: 3238 if depth == 0 { 3239 return 0, ErrUnexpectedEndOfGroupTask 3240 } 3241 depth-- 3242 case 5: 3243 iNdEx += 4 3244 default: 3245 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 3246 } 3247 if iNdEx < 0 { 3248 return 0, ErrInvalidLengthTask 3249 } 3250 if depth == 0 { 3251 return iNdEx, nil 3252 } 3253 } 3254 return 0, io.ErrUnexpectedEOF 3255 } 3256 3257 var ( 3258 ErrInvalidLengthTask = fmt.Errorf("proto: negative length found during unmarshaling") 3259 ErrIntOverflowTask = fmt.Errorf("proto: integer overflow") 3260 ErrUnexpectedEndOfGroupTask = fmt.Errorf("proto: unexpected end of group") 3261 )