github.com/containerd/containerd@v22.0.0-20200918172823-438c87b8e050+incompatible/api/services/snapshots/v1/snapshots.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/containerd/containerd/api/services/snapshots/v1/snapshots.proto 3 4 package snapshots 5 6 import ( 7 context "context" 8 fmt "fmt" 9 types "github.com/containerd/containerd/api/types" 10 proto "github.com/gogo/protobuf/proto" 11 github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" 12 github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 13 types1 "github.com/gogo/protobuf/types" 14 grpc "google.golang.org/grpc" 15 codes "google.golang.org/grpc/codes" 16 status "google.golang.org/grpc/status" 17 io "io" 18 math "math" 19 math_bits "math/bits" 20 reflect "reflect" 21 strings "strings" 22 time "time" 23 ) 24 25 // Reference imports to suppress errors if they are not otherwise used. 26 var _ = proto.Marshal 27 var _ = fmt.Errorf 28 var _ = math.Inf 29 var _ = time.Kitchen 30 31 // This is a compile-time assertion to ensure that this generated file 32 // is compatible with the proto package it is being compiled against. 33 // A compilation error at this line likely means your copy of the 34 // proto package needs to be updated. 35 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 36 37 type Kind int32 38 39 const ( 40 KindUnknown Kind = 0 41 KindView Kind = 1 42 KindActive Kind = 2 43 KindCommitted Kind = 3 44 ) 45 46 var Kind_name = map[int32]string{ 47 0: "UNKNOWN", 48 1: "VIEW", 49 2: "ACTIVE", 50 3: "COMMITTED", 51 } 52 53 var Kind_value = map[string]int32{ 54 "UNKNOWN": 0, 55 "VIEW": 1, 56 "ACTIVE": 2, 57 "COMMITTED": 3, 58 } 59 60 func (x Kind) String() string { 61 return proto.EnumName(Kind_name, int32(x)) 62 } 63 64 func (Kind) EnumDescriptor() ([]byte, []int) { 65 return fileDescriptor_cfc0ddf12791f168, []int{0} 66 } 67 68 type PrepareSnapshotRequest struct { 69 Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` 70 Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` 71 Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"` 72 // Labels are arbitrary data on snapshots. 73 // 74 // The combined size of a key/value pair cannot exceed 4096 bytes. 75 Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 76 XXX_NoUnkeyedLiteral struct{} `json:"-"` 77 XXX_unrecognized []byte `json:"-"` 78 XXX_sizecache int32 `json:"-"` 79 } 80 81 func (m *PrepareSnapshotRequest) Reset() { *m = PrepareSnapshotRequest{} } 82 func (*PrepareSnapshotRequest) ProtoMessage() {} 83 func (*PrepareSnapshotRequest) Descriptor() ([]byte, []int) { 84 return fileDescriptor_cfc0ddf12791f168, []int{0} 85 } 86 func (m *PrepareSnapshotRequest) XXX_Unmarshal(b []byte) error { 87 return m.Unmarshal(b) 88 } 89 func (m *PrepareSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 90 if deterministic { 91 return xxx_messageInfo_PrepareSnapshotRequest.Marshal(b, m, deterministic) 92 } else { 93 b = b[:cap(b)] 94 n, err := m.MarshalToSizedBuffer(b) 95 if err != nil { 96 return nil, err 97 } 98 return b[:n], nil 99 } 100 } 101 func (m *PrepareSnapshotRequest) XXX_Merge(src proto.Message) { 102 xxx_messageInfo_PrepareSnapshotRequest.Merge(m, src) 103 } 104 func (m *PrepareSnapshotRequest) XXX_Size() int { 105 return m.Size() 106 } 107 func (m *PrepareSnapshotRequest) XXX_DiscardUnknown() { 108 xxx_messageInfo_PrepareSnapshotRequest.DiscardUnknown(m) 109 } 110 111 var xxx_messageInfo_PrepareSnapshotRequest proto.InternalMessageInfo 112 113 type PrepareSnapshotResponse struct { 114 Mounts []*types.Mount `protobuf:"bytes,1,rep,name=mounts,proto3" json:"mounts,omitempty"` 115 XXX_NoUnkeyedLiteral struct{} `json:"-"` 116 XXX_unrecognized []byte `json:"-"` 117 XXX_sizecache int32 `json:"-"` 118 } 119 120 func (m *PrepareSnapshotResponse) Reset() { *m = PrepareSnapshotResponse{} } 121 func (*PrepareSnapshotResponse) ProtoMessage() {} 122 func (*PrepareSnapshotResponse) Descriptor() ([]byte, []int) { 123 return fileDescriptor_cfc0ddf12791f168, []int{1} 124 } 125 func (m *PrepareSnapshotResponse) XXX_Unmarshal(b []byte) error { 126 return m.Unmarshal(b) 127 } 128 func (m *PrepareSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 129 if deterministic { 130 return xxx_messageInfo_PrepareSnapshotResponse.Marshal(b, m, deterministic) 131 } else { 132 b = b[:cap(b)] 133 n, err := m.MarshalToSizedBuffer(b) 134 if err != nil { 135 return nil, err 136 } 137 return b[:n], nil 138 } 139 } 140 func (m *PrepareSnapshotResponse) XXX_Merge(src proto.Message) { 141 xxx_messageInfo_PrepareSnapshotResponse.Merge(m, src) 142 } 143 func (m *PrepareSnapshotResponse) XXX_Size() int { 144 return m.Size() 145 } 146 func (m *PrepareSnapshotResponse) XXX_DiscardUnknown() { 147 xxx_messageInfo_PrepareSnapshotResponse.DiscardUnknown(m) 148 } 149 150 var xxx_messageInfo_PrepareSnapshotResponse proto.InternalMessageInfo 151 152 type ViewSnapshotRequest struct { 153 Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` 154 Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` 155 Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"` 156 // Labels are arbitrary data on snapshots. 157 // 158 // The combined size of a key/value pair cannot exceed 4096 bytes. 159 Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 160 XXX_NoUnkeyedLiteral struct{} `json:"-"` 161 XXX_unrecognized []byte `json:"-"` 162 XXX_sizecache int32 `json:"-"` 163 } 164 165 func (m *ViewSnapshotRequest) Reset() { *m = ViewSnapshotRequest{} } 166 func (*ViewSnapshotRequest) ProtoMessage() {} 167 func (*ViewSnapshotRequest) Descriptor() ([]byte, []int) { 168 return fileDescriptor_cfc0ddf12791f168, []int{2} 169 } 170 func (m *ViewSnapshotRequest) XXX_Unmarshal(b []byte) error { 171 return m.Unmarshal(b) 172 } 173 func (m *ViewSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 174 if deterministic { 175 return xxx_messageInfo_ViewSnapshotRequest.Marshal(b, m, deterministic) 176 } else { 177 b = b[:cap(b)] 178 n, err := m.MarshalToSizedBuffer(b) 179 if err != nil { 180 return nil, err 181 } 182 return b[:n], nil 183 } 184 } 185 func (m *ViewSnapshotRequest) XXX_Merge(src proto.Message) { 186 xxx_messageInfo_ViewSnapshotRequest.Merge(m, src) 187 } 188 func (m *ViewSnapshotRequest) XXX_Size() int { 189 return m.Size() 190 } 191 func (m *ViewSnapshotRequest) XXX_DiscardUnknown() { 192 xxx_messageInfo_ViewSnapshotRequest.DiscardUnknown(m) 193 } 194 195 var xxx_messageInfo_ViewSnapshotRequest proto.InternalMessageInfo 196 197 type ViewSnapshotResponse struct { 198 Mounts []*types.Mount `protobuf:"bytes,1,rep,name=mounts,proto3" json:"mounts,omitempty"` 199 XXX_NoUnkeyedLiteral struct{} `json:"-"` 200 XXX_unrecognized []byte `json:"-"` 201 XXX_sizecache int32 `json:"-"` 202 } 203 204 func (m *ViewSnapshotResponse) Reset() { *m = ViewSnapshotResponse{} } 205 func (*ViewSnapshotResponse) ProtoMessage() {} 206 func (*ViewSnapshotResponse) Descriptor() ([]byte, []int) { 207 return fileDescriptor_cfc0ddf12791f168, []int{3} 208 } 209 func (m *ViewSnapshotResponse) XXX_Unmarshal(b []byte) error { 210 return m.Unmarshal(b) 211 } 212 func (m *ViewSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 213 if deterministic { 214 return xxx_messageInfo_ViewSnapshotResponse.Marshal(b, m, deterministic) 215 } else { 216 b = b[:cap(b)] 217 n, err := m.MarshalToSizedBuffer(b) 218 if err != nil { 219 return nil, err 220 } 221 return b[:n], nil 222 } 223 } 224 func (m *ViewSnapshotResponse) XXX_Merge(src proto.Message) { 225 xxx_messageInfo_ViewSnapshotResponse.Merge(m, src) 226 } 227 func (m *ViewSnapshotResponse) XXX_Size() int { 228 return m.Size() 229 } 230 func (m *ViewSnapshotResponse) XXX_DiscardUnknown() { 231 xxx_messageInfo_ViewSnapshotResponse.DiscardUnknown(m) 232 } 233 234 var xxx_messageInfo_ViewSnapshotResponse proto.InternalMessageInfo 235 236 type MountsRequest struct { 237 Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` 238 Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` 239 XXX_NoUnkeyedLiteral struct{} `json:"-"` 240 XXX_unrecognized []byte `json:"-"` 241 XXX_sizecache int32 `json:"-"` 242 } 243 244 func (m *MountsRequest) Reset() { *m = MountsRequest{} } 245 func (*MountsRequest) ProtoMessage() {} 246 func (*MountsRequest) Descriptor() ([]byte, []int) { 247 return fileDescriptor_cfc0ddf12791f168, []int{4} 248 } 249 func (m *MountsRequest) XXX_Unmarshal(b []byte) error { 250 return m.Unmarshal(b) 251 } 252 func (m *MountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 253 if deterministic { 254 return xxx_messageInfo_MountsRequest.Marshal(b, m, deterministic) 255 } else { 256 b = b[:cap(b)] 257 n, err := m.MarshalToSizedBuffer(b) 258 if err != nil { 259 return nil, err 260 } 261 return b[:n], nil 262 } 263 } 264 func (m *MountsRequest) XXX_Merge(src proto.Message) { 265 xxx_messageInfo_MountsRequest.Merge(m, src) 266 } 267 func (m *MountsRequest) XXX_Size() int { 268 return m.Size() 269 } 270 func (m *MountsRequest) XXX_DiscardUnknown() { 271 xxx_messageInfo_MountsRequest.DiscardUnknown(m) 272 } 273 274 var xxx_messageInfo_MountsRequest proto.InternalMessageInfo 275 276 type MountsResponse struct { 277 Mounts []*types.Mount `protobuf:"bytes,1,rep,name=mounts,proto3" json:"mounts,omitempty"` 278 XXX_NoUnkeyedLiteral struct{} `json:"-"` 279 XXX_unrecognized []byte `json:"-"` 280 XXX_sizecache int32 `json:"-"` 281 } 282 283 func (m *MountsResponse) Reset() { *m = MountsResponse{} } 284 func (*MountsResponse) ProtoMessage() {} 285 func (*MountsResponse) Descriptor() ([]byte, []int) { 286 return fileDescriptor_cfc0ddf12791f168, []int{5} 287 } 288 func (m *MountsResponse) XXX_Unmarshal(b []byte) error { 289 return m.Unmarshal(b) 290 } 291 func (m *MountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 292 if deterministic { 293 return xxx_messageInfo_MountsResponse.Marshal(b, m, deterministic) 294 } else { 295 b = b[:cap(b)] 296 n, err := m.MarshalToSizedBuffer(b) 297 if err != nil { 298 return nil, err 299 } 300 return b[:n], nil 301 } 302 } 303 func (m *MountsResponse) XXX_Merge(src proto.Message) { 304 xxx_messageInfo_MountsResponse.Merge(m, src) 305 } 306 func (m *MountsResponse) XXX_Size() int { 307 return m.Size() 308 } 309 func (m *MountsResponse) XXX_DiscardUnknown() { 310 xxx_messageInfo_MountsResponse.DiscardUnknown(m) 311 } 312 313 var xxx_messageInfo_MountsResponse proto.InternalMessageInfo 314 315 type RemoveSnapshotRequest struct { 316 Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` 317 Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` 318 XXX_NoUnkeyedLiteral struct{} `json:"-"` 319 XXX_unrecognized []byte `json:"-"` 320 XXX_sizecache int32 `json:"-"` 321 } 322 323 func (m *RemoveSnapshotRequest) Reset() { *m = RemoveSnapshotRequest{} } 324 func (*RemoveSnapshotRequest) ProtoMessage() {} 325 func (*RemoveSnapshotRequest) Descriptor() ([]byte, []int) { 326 return fileDescriptor_cfc0ddf12791f168, []int{6} 327 } 328 func (m *RemoveSnapshotRequest) XXX_Unmarshal(b []byte) error { 329 return m.Unmarshal(b) 330 } 331 func (m *RemoveSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 332 if deterministic { 333 return xxx_messageInfo_RemoveSnapshotRequest.Marshal(b, m, deterministic) 334 } else { 335 b = b[:cap(b)] 336 n, err := m.MarshalToSizedBuffer(b) 337 if err != nil { 338 return nil, err 339 } 340 return b[:n], nil 341 } 342 } 343 func (m *RemoveSnapshotRequest) XXX_Merge(src proto.Message) { 344 xxx_messageInfo_RemoveSnapshotRequest.Merge(m, src) 345 } 346 func (m *RemoveSnapshotRequest) XXX_Size() int { 347 return m.Size() 348 } 349 func (m *RemoveSnapshotRequest) XXX_DiscardUnknown() { 350 xxx_messageInfo_RemoveSnapshotRequest.DiscardUnknown(m) 351 } 352 353 var xxx_messageInfo_RemoveSnapshotRequest proto.InternalMessageInfo 354 355 type CommitSnapshotRequest struct { 356 Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` 357 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 358 Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` 359 // Labels are arbitrary data on snapshots. 360 // 361 // The combined size of a key/value pair cannot exceed 4096 bytes. 362 Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 363 XXX_NoUnkeyedLiteral struct{} `json:"-"` 364 XXX_unrecognized []byte `json:"-"` 365 XXX_sizecache int32 `json:"-"` 366 } 367 368 func (m *CommitSnapshotRequest) Reset() { *m = CommitSnapshotRequest{} } 369 func (*CommitSnapshotRequest) ProtoMessage() {} 370 func (*CommitSnapshotRequest) Descriptor() ([]byte, []int) { 371 return fileDescriptor_cfc0ddf12791f168, []int{7} 372 } 373 func (m *CommitSnapshotRequest) XXX_Unmarshal(b []byte) error { 374 return m.Unmarshal(b) 375 } 376 func (m *CommitSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 377 if deterministic { 378 return xxx_messageInfo_CommitSnapshotRequest.Marshal(b, m, deterministic) 379 } else { 380 b = b[:cap(b)] 381 n, err := m.MarshalToSizedBuffer(b) 382 if err != nil { 383 return nil, err 384 } 385 return b[:n], nil 386 } 387 } 388 func (m *CommitSnapshotRequest) XXX_Merge(src proto.Message) { 389 xxx_messageInfo_CommitSnapshotRequest.Merge(m, src) 390 } 391 func (m *CommitSnapshotRequest) XXX_Size() int { 392 return m.Size() 393 } 394 func (m *CommitSnapshotRequest) XXX_DiscardUnknown() { 395 xxx_messageInfo_CommitSnapshotRequest.DiscardUnknown(m) 396 } 397 398 var xxx_messageInfo_CommitSnapshotRequest proto.InternalMessageInfo 399 400 type StatSnapshotRequest struct { 401 Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` 402 Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` 403 XXX_NoUnkeyedLiteral struct{} `json:"-"` 404 XXX_unrecognized []byte `json:"-"` 405 XXX_sizecache int32 `json:"-"` 406 } 407 408 func (m *StatSnapshotRequest) Reset() { *m = StatSnapshotRequest{} } 409 func (*StatSnapshotRequest) ProtoMessage() {} 410 func (*StatSnapshotRequest) Descriptor() ([]byte, []int) { 411 return fileDescriptor_cfc0ddf12791f168, []int{8} 412 } 413 func (m *StatSnapshotRequest) XXX_Unmarshal(b []byte) error { 414 return m.Unmarshal(b) 415 } 416 func (m *StatSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 417 if deterministic { 418 return xxx_messageInfo_StatSnapshotRequest.Marshal(b, m, deterministic) 419 } else { 420 b = b[:cap(b)] 421 n, err := m.MarshalToSizedBuffer(b) 422 if err != nil { 423 return nil, err 424 } 425 return b[:n], nil 426 } 427 } 428 func (m *StatSnapshotRequest) XXX_Merge(src proto.Message) { 429 xxx_messageInfo_StatSnapshotRequest.Merge(m, src) 430 } 431 func (m *StatSnapshotRequest) XXX_Size() int { 432 return m.Size() 433 } 434 func (m *StatSnapshotRequest) XXX_DiscardUnknown() { 435 xxx_messageInfo_StatSnapshotRequest.DiscardUnknown(m) 436 } 437 438 var xxx_messageInfo_StatSnapshotRequest proto.InternalMessageInfo 439 440 type Info struct { 441 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 442 Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` 443 Kind Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=containerd.services.snapshots.v1.Kind" json:"kind,omitempty"` 444 // CreatedAt provides the time at which the snapshot was created. 445 CreatedAt time.Time `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"` 446 // UpdatedAt provides the time the info was last updated. 447 UpdatedAt time.Time `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"` 448 // Labels are arbitrary data on snapshots. 449 // 450 // The combined size of a key/value pair cannot exceed 4096 bytes. 451 Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 452 XXX_NoUnkeyedLiteral struct{} `json:"-"` 453 XXX_unrecognized []byte `json:"-"` 454 XXX_sizecache int32 `json:"-"` 455 } 456 457 func (m *Info) Reset() { *m = Info{} } 458 func (*Info) ProtoMessage() {} 459 func (*Info) Descriptor() ([]byte, []int) { 460 return fileDescriptor_cfc0ddf12791f168, []int{9} 461 } 462 func (m *Info) XXX_Unmarshal(b []byte) error { 463 return m.Unmarshal(b) 464 } 465 func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 466 if deterministic { 467 return xxx_messageInfo_Info.Marshal(b, m, deterministic) 468 } else { 469 b = b[:cap(b)] 470 n, err := m.MarshalToSizedBuffer(b) 471 if err != nil { 472 return nil, err 473 } 474 return b[:n], nil 475 } 476 } 477 func (m *Info) XXX_Merge(src proto.Message) { 478 xxx_messageInfo_Info.Merge(m, src) 479 } 480 func (m *Info) XXX_Size() int { 481 return m.Size() 482 } 483 func (m *Info) XXX_DiscardUnknown() { 484 xxx_messageInfo_Info.DiscardUnknown(m) 485 } 486 487 var xxx_messageInfo_Info proto.InternalMessageInfo 488 489 type StatSnapshotResponse struct { 490 Info Info `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` 491 XXX_NoUnkeyedLiteral struct{} `json:"-"` 492 XXX_unrecognized []byte `json:"-"` 493 XXX_sizecache int32 `json:"-"` 494 } 495 496 func (m *StatSnapshotResponse) Reset() { *m = StatSnapshotResponse{} } 497 func (*StatSnapshotResponse) ProtoMessage() {} 498 func (*StatSnapshotResponse) Descriptor() ([]byte, []int) { 499 return fileDescriptor_cfc0ddf12791f168, []int{10} 500 } 501 func (m *StatSnapshotResponse) XXX_Unmarshal(b []byte) error { 502 return m.Unmarshal(b) 503 } 504 func (m *StatSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 505 if deterministic { 506 return xxx_messageInfo_StatSnapshotResponse.Marshal(b, m, deterministic) 507 } else { 508 b = b[:cap(b)] 509 n, err := m.MarshalToSizedBuffer(b) 510 if err != nil { 511 return nil, err 512 } 513 return b[:n], nil 514 } 515 } 516 func (m *StatSnapshotResponse) XXX_Merge(src proto.Message) { 517 xxx_messageInfo_StatSnapshotResponse.Merge(m, src) 518 } 519 func (m *StatSnapshotResponse) XXX_Size() int { 520 return m.Size() 521 } 522 func (m *StatSnapshotResponse) XXX_DiscardUnknown() { 523 xxx_messageInfo_StatSnapshotResponse.DiscardUnknown(m) 524 } 525 526 var xxx_messageInfo_StatSnapshotResponse proto.InternalMessageInfo 527 528 type UpdateSnapshotRequest struct { 529 Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` 530 Info Info `protobuf:"bytes,2,opt,name=info,proto3" json:"info"` 531 // UpdateMask specifies which fields to perform the update on. If empty, 532 // the operation applies to all fields. 533 // 534 // In info, Name, Parent, Kind, Created are immutable, 535 // other field may be updated using this mask. 536 // If no mask is provided, all mutable field are updated. 537 UpdateMask *types1.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 538 XXX_NoUnkeyedLiteral struct{} `json:"-"` 539 XXX_unrecognized []byte `json:"-"` 540 XXX_sizecache int32 `json:"-"` 541 } 542 543 func (m *UpdateSnapshotRequest) Reset() { *m = UpdateSnapshotRequest{} } 544 func (*UpdateSnapshotRequest) ProtoMessage() {} 545 func (*UpdateSnapshotRequest) Descriptor() ([]byte, []int) { 546 return fileDescriptor_cfc0ddf12791f168, []int{11} 547 } 548 func (m *UpdateSnapshotRequest) XXX_Unmarshal(b []byte) error { 549 return m.Unmarshal(b) 550 } 551 func (m *UpdateSnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 552 if deterministic { 553 return xxx_messageInfo_UpdateSnapshotRequest.Marshal(b, m, deterministic) 554 } else { 555 b = b[:cap(b)] 556 n, err := m.MarshalToSizedBuffer(b) 557 if err != nil { 558 return nil, err 559 } 560 return b[:n], nil 561 } 562 } 563 func (m *UpdateSnapshotRequest) XXX_Merge(src proto.Message) { 564 xxx_messageInfo_UpdateSnapshotRequest.Merge(m, src) 565 } 566 func (m *UpdateSnapshotRequest) XXX_Size() int { 567 return m.Size() 568 } 569 func (m *UpdateSnapshotRequest) XXX_DiscardUnknown() { 570 xxx_messageInfo_UpdateSnapshotRequest.DiscardUnknown(m) 571 } 572 573 var xxx_messageInfo_UpdateSnapshotRequest proto.InternalMessageInfo 574 575 type UpdateSnapshotResponse struct { 576 Info Info `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` 577 XXX_NoUnkeyedLiteral struct{} `json:"-"` 578 XXX_unrecognized []byte `json:"-"` 579 XXX_sizecache int32 `json:"-"` 580 } 581 582 func (m *UpdateSnapshotResponse) Reset() { *m = UpdateSnapshotResponse{} } 583 func (*UpdateSnapshotResponse) ProtoMessage() {} 584 func (*UpdateSnapshotResponse) Descriptor() ([]byte, []int) { 585 return fileDescriptor_cfc0ddf12791f168, []int{12} 586 } 587 func (m *UpdateSnapshotResponse) XXX_Unmarshal(b []byte) error { 588 return m.Unmarshal(b) 589 } 590 func (m *UpdateSnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 591 if deterministic { 592 return xxx_messageInfo_UpdateSnapshotResponse.Marshal(b, m, deterministic) 593 } else { 594 b = b[:cap(b)] 595 n, err := m.MarshalToSizedBuffer(b) 596 if err != nil { 597 return nil, err 598 } 599 return b[:n], nil 600 } 601 } 602 func (m *UpdateSnapshotResponse) XXX_Merge(src proto.Message) { 603 xxx_messageInfo_UpdateSnapshotResponse.Merge(m, src) 604 } 605 func (m *UpdateSnapshotResponse) XXX_Size() int { 606 return m.Size() 607 } 608 func (m *UpdateSnapshotResponse) XXX_DiscardUnknown() { 609 xxx_messageInfo_UpdateSnapshotResponse.DiscardUnknown(m) 610 } 611 612 var xxx_messageInfo_UpdateSnapshotResponse proto.InternalMessageInfo 613 614 type ListSnapshotsRequest struct { 615 Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` 616 // Filters contains one or more filters using the syntax defined in the 617 // containerd filter package. 618 // 619 // The returned result will be those that match any of the provided 620 // filters. Expanded, images that match the following will be 621 // returned: 622 // 623 // filters[0] or filters[1] or ... or filters[n-1] or filters[n] 624 // 625 // If filters is zero-length or nil, all items will be returned. 626 Filters []string `protobuf:"bytes,2,rep,name=filters,proto3" json:"filters,omitempty"` 627 XXX_NoUnkeyedLiteral struct{} `json:"-"` 628 XXX_unrecognized []byte `json:"-"` 629 XXX_sizecache int32 `json:"-"` 630 } 631 632 func (m *ListSnapshotsRequest) Reset() { *m = ListSnapshotsRequest{} } 633 func (*ListSnapshotsRequest) ProtoMessage() {} 634 func (*ListSnapshotsRequest) Descriptor() ([]byte, []int) { 635 return fileDescriptor_cfc0ddf12791f168, []int{13} 636 } 637 func (m *ListSnapshotsRequest) XXX_Unmarshal(b []byte) error { 638 return m.Unmarshal(b) 639 } 640 func (m *ListSnapshotsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 641 if deterministic { 642 return xxx_messageInfo_ListSnapshotsRequest.Marshal(b, m, deterministic) 643 } else { 644 b = b[:cap(b)] 645 n, err := m.MarshalToSizedBuffer(b) 646 if err != nil { 647 return nil, err 648 } 649 return b[:n], nil 650 } 651 } 652 func (m *ListSnapshotsRequest) XXX_Merge(src proto.Message) { 653 xxx_messageInfo_ListSnapshotsRequest.Merge(m, src) 654 } 655 func (m *ListSnapshotsRequest) XXX_Size() int { 656 return m.Size() 657 } 658 func (m *ListSnapshotsRequest) XXX_DiscardUnknown() { 659 xxx_messageInfo_ListSnapshotsRequest.DiscardUnknown(m) 660 } 661 662 var xxx_messageInfo_ListSnapshotsRequest proto.InternalMessageInfo 663 664 type ListSnapshotsResponse struct { 665 Info []Info `protobuf:"bytes,1,rep,name=info,proto3" json:"info"` 666 XXX_NoUnkeyedLiteral struct{} `json:"-"` 667 XXX_unrecognized []byte `json:"-"` 668 XXX_sizecache int32 `json:"-"` 669 } 670 671 func (m *ListSnapshotsResponse) Reset() { *m = ListSnapshotsResponse{} } 672 func (*ListSnapshotsResponse) ProtoMessage() {} 673 func (*ListSnapshotsResponse) Descriptor() ([]byte, []int) { 674 return fileDescriptor_cfc0ddf12791f168, []int{14} 675 } 676 func (m *ListSnapshotsResponse) XXX_Unmarshal(b []byte) error { 677 return m.Unmarshal(b) 678 } 679 func (m *ListSnapshotsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 680 if deterministic { 681 return xxx_messageInfo_ListSnapshotsResponse.Marshal(b, m, deterministic) 682 } else { 683 b = b[:cap(b)] 684 n, err := m.MarshalToSizedBuffer(b) 685 if err != nil { 686 return nil, err 687 } 688 return b[:n], nil 689 } 690 } 691 func (m *ListSnapshotsResponse) XXX_Merge(src proto.Message) { 692 xxx_messageInfo_ListSnapshotsResponse.Merge(m, src) 693 } 694 func (m *ListSnapshotsResponse) XXX_Size() int { 695 return m.Size() 696 } 697 func (m *ListSnapshotsResponse) XXX_DiscardUnknown() { 698 xxx_messageInfo_ListSnapshotsResponse.DiscardUnknown(m) 699 } 700 701 var xxx_messageInfo_ListSnapshotsResponse proto.InternalMessageInfo 702 703 type UsageRequest struct { 704 Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` 705 Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` 706 XXX_NoUnkeyedLiteral struct{} `json:"-"` 707 XXX_unrecognized []byte `json:"-"` 708 XXX_sizecache int32 `json:"-"` 709 } 710 711 func (m *UsageRequest) Reset() { *m = UsageRequest{} } 712 func (*UsageRequest) ProtoMessage() {} 713 func (*UsageRequest) Descriptor() ([]byte, []int) { 714 return fileDescriptor_cfc0ddf12791f168, []int{15} 715 } 716 func (m *UsageRequest) XXX_Unmarshal(b []byte) error { 717 return m.Unmarshal(b) 718 } 719 func (m *UsageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 720 if deterministic { 721 return xxx_messageInfo_UsageRequest.Marshal(b, m, deterministic) 722 } else { 723 b = b[:cap(b)] 724 n, err := m.MarshalToSizedBuffer(b) 725 if err != nil { 726 return nil, err 727 } 728 return b[:n], nil 729 } 730 } 731 func (m *UsageRequest) XXX_Merge(src proto.Message) { 732 xxx_messageInfo_UsageRequest.Merge(m, src) 733 } 734 func (m *UsageRequest) XXX_Size() int { 735 return m.Size() 736 } 737 func (m *UsageRequest) XXX_DiscardUnknown() { 738 xxx_messageInfo_UsageRequest.DiscardUnknown(m) 739 } 740 741 var xxx_messageInfo_UsageRequest proto.InternalMessageInfo 742 743 type UsageResponse struct { 744 Size_ int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` 745 Inodes int64 `protobuf:"varint,2,opt,name=inodes,proto3" json:"inodes,omitempty"` 746 XXX_NoUnkeyedLiteral struct{} `json:"-"` 747 XXX_unrecognized []byte `json:"-"` 748 XXX_sizecache int32 `json:"-"` 749 } 750 751 func (m *UsageResponse) Reset() { *m = UsageResponse{} } 752 func (*UsageResponse) ProtoMessage() {} 753 func (*UsageResponse) Descriptor() ([]byte, []int) { 754 return fileDescriptor_cfc0ddf12791f168, []int{16} 755 } 756 func (m *UsageResponse) XXX_Unmarshal(b []byte) error { 757 return m.Unmarshal(b) 758 } 759 func (m *UsageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 760 if deterministic { 761 return xxx_messageInfo_UsageResponse.Marshal(b, m, deterministic) 762 } else { 763 b = b[:cap(b)] 764 n, err := m.MarshalToSizedBuffer(b) 765 if err != nil { 766 return nil, err 767 } 768 return b[:n], nil 769 } 770 } 771 func (m *UsageResponse) XXX_Merge(src proto.Message) { 772 xxx_messageInfo_UsageResponse.Merge(m, src) 773 } 774 func (m *UsageResponse) XXX_Size() int { 775 return m.Size() 776 } 777 func (m *UsageResponse) XXX_DiscardUnknown() { 778 xxx_messageInfo_UsageResponse.DiscardUnknown(m) 779 } 780 781 var xxx_messageInfo_UsageResponse proto.InternalMessageInfo 782 783 type CleanupRequest struct { 784 Snapshotter string `protobuf:"bytes,1,opt,name=snapshotter,proto3" json:"snapshotter,omitempty"` 785 XXX_NoUnkeyedLiteral struct{} `json:"-"` 786 XXX_unrecognized []byte `json:"-"` 787 XXX_sizecache int32 `json:"-"` 788 } 789 790 func (m *CleanupRequest) Reset() { *m = CleanupRequest{} } 791 func (*CleanupRequest) ProtoMessage() {} 792 func (*CleanupRequest) Descriptor() ([]byte, []int) { 793 return fileDescriptor_cfc0ddf12791f168, []int{17} 794 } 795 func (m *CleanupRequest) XXX_Unmarshal(b []byte) error { 796 return m.Unmarshal(b) 797 } 798 func (m *CleanupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 799 if deterministic { 800 return xxx_messageInfo_CleanupRequest.Marshal(b, m, deterministic) 801 } else { 802 b = b[:cap(b)] 803 n, err := m.MarshalToSizedBuffer(b) 804 if err != nil { 805 return nil, err 806 } 807 return b[:n], nil 808 } 809 } 810 func (m *CleanupRequest) XXX_Merge(src proto.Message) { 811 xxx_messageInfo_CleanupRequest.Merge(m, src) 812 } 813 func (m *CleanupRequest) XXX_Size() int { 814 return m.Size() 815 } 816 func (m *CleanupRequest) XXX_DiscardUnknown() { 817 xxx_messageInfo_CleanupRequest.DiscardUnknown(m) 818 } 819 820 var xxx_messageInfo_CleanupRequest proto.InternalMessageInfo 821 822 func init() { 823 proto.RegisterEnum("containerd.services.snapshots.v1.Kind", Kind_name, Kind_value) 824 proto.RegisterType((*PrepareSnapshotRequest)(nil), "containerd.services.snapshots.v1.PrepareSnapshotRequest") 825 proto.RegisterMapType((map[string]string)(nil), "containerd.services.snapshots.v1.PrepareSnapshotRequest.LabelsEntry") 826 proto.RegisterType((*PrepareSnapshotResponse)(nil), "containerd.services.snapshots.v1.PrepareSnapshotResponse") 827 proto.RegisterType((*ViewSnapshotRequest)(nil), "containerd.services.snapshots.v1.ViewSnapshotRequest") 828 proto.RegisterMapType((map[string]string)(nil), "containerd.services.snapshots.v1.ViewSnapshotRequest.LabelsEntry") 829 proto.RegisterType((*ViewSnapshotResponse)(nil), "containerd.services.snapshots.v1.ViewSnapshotResponse") 830 proto.RegisterType((*MountsRequest)(nil), "containerd.services.snapshots.v1.MountsRequest") 831 proto.RegisterType((*MountsResponse)(nil), "containerd.services.snapshots.v1.MountsResponse") 832 proto.RegisterType((*RemoveSnapshotRequest)(nil), "containerd.services.snapshots.v1.RemoveSnapshotRequest") 833 proto.RegisterType((*CommitSnapshotRequest)(nil), "containerd.services.snapshots.v1.CommitSnapshotRequest") 834 proto.RegisterMapType((map[string]string)(nil), "containerd.services.snapshots.v1.CommitSnapshotRequest.LabelsEntry") 835 proto.RegisterType((*StatSnapshotRequest)(nil), "containerd.services.snapshots.v1.StatSnapshotRequest") 836 proto.RegisterType((*Info)(nil), "containerd.services.snapshots.v1.Info") 837 proto.RegisterMapType((map[string]string)(nil), "containerd.services.snapshots.v1.Info.LabelsEntry") 838 proto.RegisterType((*StatSnapshotResponse)(nil), "containerd.services.snapshots.v1.StatSnapshotResponse") 839 proto.RegisterType((*UpdateSnapshotRequest)(nil), "containerd.services.snapshots.v1.UpdateSnapshotRequest") 840 proto.RegisterType((*UpdateSnapshotResponse)(nil), "containerd.services.snapshots.v1.UpdateSnapshotResponse") 841 proto.RegisterType((*ListSnapshotsRequest)(nil), "containerd.services.snapshots.v1.ListSnapshotsRequest") 842 proto.RegisterType((*ListSnapshotsResponse)(nil), "containerd.services.snapshots.v1.ListSnapshotsResponse") 843 proto.RegisterType((*UsageRequest)(nil), "containerd.services.snapshots.v1.UsageRequest") 844 proto.RegisterType((*UsageResponse)(nil), "containerd.services.snapshots.v1.UsageResponse") 845 proto.RegisterType((*CleanupRequest)(nil), "containerd.services.snapshots.v1.CleanupRequest") 846 } 847 848 func init() { 849 proto.RegisterFile("github.com/containerd/containerd/api/services/snapshots/v1/snapshots.proto", fileDescriptor_cfc0ddf12791f168) 850 } 851 852 var fileDescriptor_cfc0ddf12791f168 = []byte{ 853 // 1047 bytes of a gzipped FileDescriptorProto 854 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0x4f, 0x6f, 0x1b, 0x45, 855 0x14, 0xf7, 0xda, 0x5b, 0x27, 0x79, 0x4e, 0x82, 0x99, 0x3a, 0xae, 0xb5, 0x20, 0x67, 0xe5, 0x03, 856 0x8a, 0x38, 0xec, 0xb6, 0x46, 0xb4, 0x69, 0x73, 0xc1, 0x71, 0x0c, 0x72, 0xd2, 0xa4, 0x68, 0xf3, 857 0xa7, 0x4d, 0x41, 0x54, 0x1b, 0x7b, 0xec, 0xac, 0xec, 0xfd, 0x83, 0x67, 0xec, 0xca, 0x20, 0x21, 858 0x8e, 0x55, 0x4e, 0x7c, 0x81, 0x9c, 0xe0, 0x43, 0x20, 0x3e, 0x41, 0x8e, 0x48, 0x5c, 0x38, 0x01, 859 0xcd, 0x97, 0xe0, 0x84, 0x40, 0x33, 0x3b, 0xeb, 0x7f, 0x71, 0xe5, 0xb5, 0x6b, 0x6e, 0x33, 0x3b, 860 0xf3, 0xde, 0xfb, 0xbd, 0xdf, 0x9b, 0xf7, 0x9b, 0x59, 0xd8, 0xad, 0x5b, 0xf4, 0xbc, 0x7d, 0xa6, 861 0x55, 0x5c, 0x5b, 0xaf, 0xb8, 0x0e, 0x35, 0x2d, 0x07, 0xb7, 0xaa, 0x83, 0x43, 0xd3, 0xb3, 0x74, 862 0x82, 0x5b, 0x1d, 0xab, 0x82, 0x89, 0x4e, 0x1c, 0xd3, 0x23, 0xe7, 0x2e, 0x25, 0x7a, 0xe7, 0x5e, 863 0x7f, 0xa2, 0x79, 0x2d, 0x97, 0xba, 0x48, 0xed, 0x5b, 0x69, 0x81, 0x85, 0xd6, 0xdf, 0xd4, 0xb9, 864 0xa7, 0xa4, 0xea, 0x6e, 0xdd, 0xe5, 0x9b, 0x75, 0x36, 0xf2, 0xed, 0x94, 0xf7, 0xea, 0xae, 0x5b, 865 0x6f, 0x62, 0x9d, 0xcf, 0xce, 0xda, 0x35, 0x1d, 0xdb, 0x1e, 0xed, 0x8a, 0x45, 0x75, 0x74, 0xb1, 866 0x66, 0xe1, 0x66, 0xf5, 0x85, 0x6d, 0x92, 0x86, 0xd8, 0xb1, 0x3e, 0xba, 0x83, 0x5a, 0x36, 0x26, 867 0xd4, 0xb4, 0x3d, 0xb1, 0xe1, 0x7e, 0xa8, 0x1c, 0x69, 0xd7, 0xc3, 0x44, 0xb7, 0xdd, 0xb6, 0x43, 868 0x7d, 0xbb, 0xdc, 0x3f, 0x12, 0xa4, 0x3f, 0x6f, 0x61, 0xcf, 0x6c, 0xe1, 0x43, 0x91, 0x85, 0x81, 869 0xbf, 0x6e, 0x63, 0x42, 0x91, 0x0a, 0x89, 0x20, 0x31, 0x8a, 0x5b, 0x19, 0x49, 0x95, 0x36, 0x96, 870 0x8c, 0xc1, 0x4f, 0x28, 0x09, 0xb1, 0x06, 0xee, 0x66, 0xa2, 0x7c, 0x85, 0x0d, 0x51, 0x1a, 0xe2, 871 0xcc, 0x95, 0x43, 0x33, 0x31, 0xfe, 0x51, 0xcc, 0xd0, 0x97, 0x10, 0x6f, 0x9a, 0x67, 0xb8, 0x49, 872 0x32, 0xb2, 0x1a, 0xdb, 0x48, 0xe4, 0x77, 0xb4, 0x49, 0x3c, 0x6a, 0xe3, 0x51, 0x69, 0x8f, 0xb9, 873 0x9b, 0x92, 0x43, 0x5b, 0x5d, 0x43, 0xf8, 0x54, 0x1e, 0x42, 0x62, 0xe0, 0x73, 0x00, 0x4b, 0xea, 874 0xc3, 0x4a, 0xc1, 0xad, 0x8e, 0xd9, 0x6c, 0x63, 0x01, 0xd5, 0x9f, 0x3c, 0x8a, 0x6e, 0x4a, 0xb9, 875 0x5d, 0xb8, 0x73, 0x23, 0x10, 0xf1, 0x5c, 0x87, 0x60, 0xa4, 0x43, 0x9c, 0x33, 0x45, 0x32, 0x12, 876 0xc7, 0x7c, 0x67, 0x10, 0x33, 0x67, 0x52, 0xdb, 0x67, 0xeb, 0x86, 0xd8, 0x96, 0xfb, 0x5b, 0x82, 877 0xdb, 0x27, 0x16, 0x7e, 0xf9, 0x7f, 0x12, 0x79, 0x3a, 0x42, 0x64, 0x61, 0x32, 0x91, 0x63, 0x20, 878 0xcd, 0x9b, 0xc5, 0xcf, 0x20, 0x35, 0x1c, 0x65, 0x56, 0x0a, 0x8b, 0xb0, 0xc2, 0x3f, 0x90, 0xb7, 879 0xe0, 0x2e, 0x57, 0x80, 0xd5, 0xc0, 0xc9, 0xac, 0x38, 0xf6, 0x60, 0xcd, 0xc0, 0xb6, 0xdb, 0x99, 880 0x47, 0x53, 0xb0, 0x73, 0xb1, 0x56, 0x74, 0x6d, 0xdb, 0xa2, 0xd3, 0x7b, 0x43, 0x20, 0x3b, 0xa6, 881 0x1d, 0x50, 0xce, 0xc7, 0x41, 0x84, 0x58, 0xbf, 0x32, 0x5f, 0x8c, 0x9c, 0x8a, 0xe2, 0xe4, 0x53, 882 0x31, 0x16, 0xd0, 0xbc, 0xcf, 0x45, 0x19, 0x6e, 0x1f, 0x52, 0x93, 0xce, 0x83, 0xc4, 0x7f, 0xa3, 883 0x20, 0x97, 0x9d, 0x9a, 0xdb, 0x63, 0x44, 0x1a, 0x60, 0xa4, 0xdf, 0x2d, 0xd1, 0xa1, 0x6e, 0x79, 884 0x04, 0x72, 0xc3, 0x72, 0xaa, 0x9c, 0xaa, 0xd5, 0xfc, 0x07, 0x93, 0x59, 0xd9, 0xb3, 0x9c, 0xaa, 885 0xc1, 0x6d, 0x50, 0x11, 0xa0, 0xd2, 0xc2, 0x26, 0xc5, 0xd5, 0x17, 0x26, 0xcd, 0xc8, 0xaa, 0xb4, 886 0x91, 0xc8, 0x2b, 0x9a, 0xaf, 0xc3, 0x5a, 0xa0, 0xc3, 0xda, 0x51, 0xa0, 0xc3, 0xdb, 0x8b, 0x57, 887 0x7f, 0xac, 0x47, 0x7e, 0xf8, 0x73, 0x5d, 0x32, 0x96, 0x84, 0x5d, 0x81, 0x32, 0x27, 0x6d, 0xaf, 888 0x1a, 0x38, 0xb9, 0x35, 0x8d, 0x13, 0x61, 0x57, 0xa0, 0x68, 0xb7, 0x57, 0xdd, 0x38, 0xaf, 0x6e, 889 0x7e, 0x72, 0x1e, 0x8c, 0xa9, 0x79, 0x17, 0xf3, 0x19, 0xa4, 0x86, 0x8b, 0x29, 0x9a, 0xeb, 0x13, 890 0x90, 0x2d, 0xa7, 0xe6, 0x72, 0x27, 0x89, 0x30, 0x24, 0x33, 0x70, 0xdb, 0x32, 0xcb, 0xd4, 0xe0, 891 0x96, 0xb9, 0x9f, 0x25, 0x58, 0x3b, 0xe6, 0xe9, 0x4e, 0x7f, 0x52, 0x82, 0xe8, 0xd1, 0x59, 0xa3, 892 0xa3, 0x2d, 0x48, 0xf8, 0x5c, 0xf3, 0x0b, 0x97, 0x9f, 0x95, 0x71, 0x45, 0xfa, 0x94, 0xdd, 0xc9, 893 0xfb, 0x26, 0x69, 0x18, 0xa2, 0xa4, 0x6c, 0x9c, 0x7b, 0x0e, 0xe9, 0x51, 0xe4, 0x73, 0xa3, 0xc5, 894 0x80, 0xd4, 0x63, 0x8b, 0xf4, 0x08, 0x9f, 0x42, 0x13, 0x33, 0xb0, 0x50, 0xb3, 0x9a, 0x14, 0xb7, 895 0x48, 0x26, 0xaa, 0xc6, 0x36, 0x96, 0x8c, 0x60, 0x9a, 0x3b, 0x85, 0xb5, 0x11, 0x9f, 0x37, 0xe0, 896 0xc6, 0x66, 0x84, 0xbb, 0x0d, 0xcb, 0xc7, 0xc4, 0xac, 0xe3, 0xb7, 0xe9, 0xf2, 0x2d, 0x58, 0x11, 897 0x3e, 0x04, 0x2c, 0x04, 0x32, 0xb1, 0xbe, 0xf1, 0xbb, 0x3d, 0x66, 0xf0, 0x31, 0xeb, 0x76, 0xcb, 898 0x71, 0xab, 0x98, 0x70, 0xcb, 0x98, 0x21, 0x66, 0xb9, 0x3c, 0xac, 0x16, 0x9b, 0xd8, 0x74, 0xda, 899 0x5e, 0x68, 0x08, 0x1f, 0xbe, 0x92, 0x40, 0x66, 0x4d, 0x8f, 0xde, 0x87, 0x85, 0xe3, 0x83, 0xbd, 900 0x83, 0x27, 0x4f, 0x0f, 0x92, 0x11, 0xe5, 0x9d, 0x8b, 0x4b, 0x35, 0xc1, 0x3e, 0x1f, 0x3b, 0x0d, 901 0xc7, 0x7d, 0xe9, 0xa0, 0x34, 0xc8, 0x27, 0xe5, 0xd2, 0xd3, 0xa4, 0xa4, 0x2c, 0x5f, 0x5c, 0xaa, 902 0x8b, 0x6c, 0x89, 0x5d, 0x78, 0x48, 0x81, 0x78, 0xa1, 0x78, 0x54, 0x3e, 0x29, 0x25, 0xa3, 0xca, 903 0xea, 0xc5, 0xa5, 0x0a, 0x6c, 0xa5, 0x50, 0xa1, 0x56, 0x07, 0x23, 0x15, 0x96, 0x8a, 0x4f, 0xf6, 904 0xf7, 0xcb, 0x47, 0x47, 0xa5, 0x9d, 0x64, 0x4c, 0x79, 0xf7, 0xe2, 0x52, 0x5d, 0x61, 0xcb, 0xbe, 905 0xf2, 0x52, 0x5c, 0x55, 0x96, 0x5f, 0xfd, 0x98, 0x8d, 0xfc, 0xf2, 0x53, 0x96, 0x23, 0xc8, 0xff, 906 0xb6, 0x08, 0x4b, 0xbd, 0xba, 0xa0, 0xef, 0x60, 0x41, 0x3c, 0x4c, 0xd0, 0xe6, 0xac, 0x8f, 0x25, 907 0xe5, 0xe1, 0x0c, 0x96, 0x82, 0xf8, 0x36, 0xc8, 0x3c, 0xc3, 0x8f, 0x67, 0x7a, 0x60, 0x28, 0xf7, 908 0xa7, 0x35, 0x13, 0x61, 0x1b, 0x10, 0xf7, 0xef, 0x6e, 0xa4, 0x4f, 0xf6, 0x30, 0xf4, 0x54, 0x50, 909 0xee, 0x86, 0x37, 0x10, 0xc1, 0x4e, 0x21, 0xee, 0x17, 0x03, 0x3d, 0x98, 0xf1, 0xc2, 0x54, 0xd2, 910 0x37, 0x74, 0xa2, 0xc4, 0x1e, 0xf6, 0xcc, 0xb5, 0xff, 0x80, 0x08, 0xe3, 0x7a, 0xec, 0x53, 0xe3, 911 0x8d, 0xae, 0xdb, 0x20, 0x33, 0x1d, 0x0e, 0x53, 0x99, 0x31, 0x97, 0x6f, 0x98, 0xca, 0x8c, 0x95, 912 0xf9, 0x6f, 0x21, 0xee, 0x2b, 0x5d, 0x98, 0x8c, 0xc6, 0xaa, 0xb9, 0xb2, 0x39, 0xbd, 0xa1, 0x08, 913 0xde, 0x05, 0x99, 0xc9, 0x16, 0x0a, 0x01, 0x7e, 0x9c, 0x64, 0x2a, 0x0f, 0xa6, 0xb6, 0xf3, 0x03, 914 0xdf, 0x95, 0xd0, 0x39, 0xdc, 0xe2, 0x92, 0x84, 0xb4, 0x10, 0xe8, 0x07, 0xf4, 0x4f, 0xd1, 0x43, 915 0xef, 0x17, 0x49, 0x1e, 0xc2, 0x82, 0xd0, 0x2f, 0x14, 0xe2, 0x2c, 0x0f, 0x4b, 0xdd, 0x9b, 0x4e, 916 0xcb, 0xf6, 0x57, 0x57, 0xaf, 0xb3, 0x91, 0xdf, 0x5f, 0x67, 0x23, 0xdf, 0x5f, 0x67, 0xa5, 0xab, 917 0xeb, 0xac, 0xf4, 0xeb, 0x75, 0x56, 0xfa, 0xeb, 0x3a, 0x2b, 0x3d, 0xdf, 0x99, 0xfd, 0xb7, 0x78, 918 0xab, 0x37, 0x79, 0x16, 0x39, 0x8b, 0xf3, 0x88, 0x1f, 0xfd, 0x17, 0x00, 0x00, 0xff, 0xff, 0x20, 919 0x9c, 0x85, 0x7f, 0x67, 0x0f, 0x00, 0x00, 920 } 921 922 // Reference imports to suppress errors if they are not otherwise used. 923 var _ context.Context 924 var _ grpc.ClientConn 925 926 // This is a compile-time assertion to ensure that this generated file 927 // is compatible with the grpc package it is being compiled against. 928 const _ = grpc.SupportPackageIsVersion4 929 930 // SnapshotsClient is the client API for Snapshots service. 931 // 932 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 933 type SnapshotsClient interface { 934 Prepare(ctx context.Context, in *PrepareSnapshotRequest, opts ...grpc.CallOption) (*PrepareSnapshotResponse, error) 935 View(ctx context.Context, in *ViewSnapshotRequest, opts ...grpc.CallOption) (*ViewSnapshotResponse, error) 936 Mounts(ctx context.Context, in *MountsRequest, opts ...grpc.CallOption) (*MountsResponse, error) 937 Commit(ctx context.Context, in *CommitSnapshotRequest, opts ...grpc.CallOption) (*types1.Empty, error) 938 Remove(ctx context.Context, in *RemoveSnapshotRequest, opts ...grpc.CallOption) (*types1.Empty, error) 939 Stat(ctx context.Context, in *StatSnapshotRequest, opts ...grpc.CallOption) (*StatSnapshotResponse, error) 940 Update(ctx context.Context, in *UpdateSnapshotRequest, opts ...grpc.CallOption) (*UpdateSnapshotResponse, error) 941 List(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (Snapshots_ListClient, error) 942 Usage(ctx context.Context, in *UsageRequest, opts ...grpc.CallOption) (*UsageResponse, error) 943 Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*types1.Empty, error) 944 } 945 946 type snapshotsClient struct { 947 cc *grpc.ClientConn 948 } 949 950 func NewSnapshotsClient(cc *grpc.ClientConn) SnapshotsClient { 951 return &snapshotsClient{cc} 952 } 953 954 func (c *snapshotsClient) Prepare(ctx context.Context, in *PrepareSnapshotRequest, opts ...grpc.CallOption) (*PrepareSnapshotResponse, error) { 955 out := new(PrepareSnapshotResponse) 956 err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Prepare", in, out, opts...) 957 if err != nil { 958 return nil, err 959 } 960 return out, nil 961 } 962 963 func (c *snapshotsClient) View(ctx context.Context, in *ViewSnapshotRequest, opts ...grpc.CallOption) (*ViewSnapshotResponse, error) { 964 out := new(ViewSnapshotResponse) 965 err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/View", in, out, opts...) 966 if err != nil { 967 return nil, err 968 } 969 return out, nil 970 } 971 972 func (c *snapshotsClient) Mounts(ctx context.Context, in *MountsRequest, opts ...grpc.CallOption) (*MountsResponse, error) { 973 out := new(MountsResponse) 974 err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Mounts", in, out, opts...) 975 if err != nil { 976 return nil, err 977 } 978 return out, nil 979 } 980 981 func (c *snapshotsClient) Commit(ctx context.Context, in *CommitSnapshotRequest, opts ...grpc.CallOption) (*types1.Empty, error) { 982 out := new(types1.Empty) 983 err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Commit", in, out, opts...) 984 if err != nil { 985 return nil, err 986 } 987 return out, nil 988 } 989 990 func (c *snapshotsClient) Remove(ctx context.Context, in *RemoveSnapshotRequest, opts ...grpc.CallOption) (*types1.Empty, error) { 991 out := new(types1.Empty) 992 err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Remove", in, out, opts...) 993 if err != nil { 994 return nil, err 995 } 996 return out, nil 997 } 998 999 func (c *snapshotsClient) Stat(ctx context.Context, in *StatSnapshotRequest, opts ...grpc.CallOption) (*StatSnapshotResponse, error) { 1000 out := new(StatSnapshotResponse) 1001 err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Stat", in, out, opts...) 1002 if err != nil { 1003 return nil, err 1004 } 1005 return out, nil 1006 } 1007 1008 func (c *snapshotsClient) Update(ctx context.Context, in *UpdateSnapshotRequest, opts ...grpc.CallOption) (*UpdateSnapshotResponse, error) { 1009 out := new(UpdateSnapshotResponse) 1010 err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Update", in, out, opts...) 1011 if err != nil { 1012 return nil, err 1013 } 1014 return out, nil 1015 } 1016 1017 func (c *snapshotsClient) List(ctx context.Context, in *ListSnapshotsRequest, opts ...grpc.CallOption) (Snapshots_ListClient, error) { 1018 stream, err := c.cc.NewStream(ctx, &_Snapshots_serviceDesc.Streams[0], "/containerd.services.snapshots.v1.Snapshots/List", opts...) 1019 if err != nil { 1020 return nil, err 1021 } 1022 x := &snapshotsListClient{stream} 1023 if err := x.ClientStream.SendMsg(in); err != nil { 1024 return nil, err 1025 } 1026 if err := x.ClientStream.CloseSend(); err != nil { 1027 return nil, err 1028 } 1029 return x, nil 1030 } 1031 1032 type Snapshots_ListClient interface { 1033 Recv() (*ListSnapshotsResponse, error) 1034 grpc.ClientStream 1035 } 1036 1037 type snapshotsListClient struct { 1038 grpc.ClientStream 1039 } 1040 1041 func (x *snapshotsListClient) Recv() (*ListSnapshotsResponse, error) { 1042 m := new(ListSnapshotsResponse) 1043 if err := x.ClientStream.RecvMsg(m); err != nil { 1044 return nil, err 1045 } 1046 return m, nil 1047 } 1048 1049 func (c *snapshotsClient) Usage(ctx context.Context, in *UsageRequest, opts ...grpc.CallOption) (*UsageResponse, error) { 1050 out := new(UsageResponse) 1051 err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Usage", in, out, opts...) 1052 if err != nil { 1053 return nil, err 1054 } 1055 return out, nil 1056 } 1057 1058 func (c *snapshotsClient) Cleanup(ctx context.Context, in *CleanupRequest, opts ...grpc.CallOption) (*types1.Empty, error) { 1059 out := new(types1.Empty) 1060 err := c.cc.Invoke(ctx, "/containerd.services.snapshots.v1.Snapshots/Cleanup", in, out, opts...) 1061 if err != nil { 1062 return nil, err 1063 } 1064 return out, nil 1065 } 1066 1067 // SnapshotsServer is the server API for Snapshots service. 1068 type SnapshotsServer interface { 1069 Prepare(context.Context, *PrepareSnapshotRequest) (*PrepareSnapshotResponse, error) 1070 View(context.Context, *ViewSnapshotRequest) (*ViewSnapshotResponse, error) 1071 Mounts(context.Context, *MountsRequest) (*MountsResponse, error) 1072 Commit(context.Context, *CommitSnapshotRequest) (*types1.Empty, error) 1073 Remove(context.Context, *RemoveSnapshotRequest) (*types1.Empty, error) 1074 Stat(context.Context, *StatSnapshotRequest) (*StatSnapshotResponse, error) 1075 Update(context.Context, *UpdateSnapshotRequest) (*UpdateSnapshotResponse, error) 1076 List(*ListSnapshotsRequest, Snapshots_ListServer) error 1077 Usage(context.Context, *UsageRequest) (*UsageResponse, error) 1078 Cleanup(context.Context, *CleanupRequest) (*types1.Empty, error) 1079 } 1080 1081 // UnimplementedSnapshotsServer can be embedded to have forward compatible implementations. 1082 type UnimplementedSnapshotsServer struct { 1083 } 1084 1085 func (*UnimplementedSnapshotsServer) Prepare(ctx context.Context, req *PrepareSnapshotRequest) (*PrepareSnapshotResponse, error) { 1086 return nil, status.Errorf(codes.Unimplemented, "method Prepare not implemented") 1087 } 1088 func (*UnimplementedSnapshotsServer) View(ctx context.Context, req *ViewSnapshotRequest) (*ViewSnapshotResponse, error) { 1089 return nil, status.Errorf(codes.Unimplemented, "method View not implemented") 1090 } 1091 func (*UnimplementedSnapshotsServer) Mounts(ctx context.Context, req *MountsRequest) (*MountsResponse, error) { 1092 return nil, status.Errorf(codes.Unimplemented, "method Mounts not implemented") 1093 } 1094 func (*UnimplementedSnapshotsServer) Commit(ctx context.Context, req *CommitSnapshotRequest) (*types1.Empty, error) { 1095 return nil, status.Errorf(codes.Unimplemented, "method Commit not implemented") 1096 } 1097 func (*UnimplementedSnapshotsServer) Remove(ctx context.Context, req *RemoveSnapshotRequest) (*types1.Empty, error) { 1098 return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented") 1099 } 1100 func (*UnimplementedSnapshotsServer) Stat(ctx context.Context, req *StatSnapshotRequest) (*StatSnapshotResponse, error) { 1101 return nil, status.Errorf(codes.Unimplemented, "method Stat not implemented") 1102 } 1103 func (*UnimplementedSnapshotsServer) Update(ctx context.Context, req *UpdateSnapshotRequest) (*UpdateSnapshotResponse, error) { 1104 return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") 1105 } 1106 func (*UnimplementedSnapshotsServer) List(req *ListSnapshotsRequest, srv Snapshots_ListServer) error { 1107 return status.Errorf(codes.Unimplemented, "method List not implemented") 1108 } 1109 func (*UnimplementedSnapshotsServer) Usage(ctx context.Context, req *UsageRequest) (*UsageResponse, error) { 1110 return nil, status.Errorf(codes.Unimplemented, "method Usage not implemented") 1111 } 1112 func (*UnimplementedSnapshotsServer) Cleanup(ctx context.Context, req *CleanupRequest) (*types1.Empty, error) { 1113 return nil, status.Errorf(codes.Unimplemented, "method Cleanup not implemented") 1114 } 1115 1116 func RegisterSnapshotsServer(s *grpc.Server, srv SnapshotsServer) { 1117 s.RegisterService(&_Snapshots_serviceDesc, srv) 1118 } 1119 1120 func _Snapshots_Prepare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1121 in := new(PrepareSnapshotRequest) 1122 if err := dec(in); err != nil { 1123 return nil, err 1124 } 1125 if interceptor == nil { 1126 return srv.(SnapshotsServer).Prepare(ctx, in) 1127 } 1128 info := &grpc.UnaryServerInfo{ 1129 Server: srv, 1130 FullMethod: "/containerd.services.snapshots.v1.Snapshots/Prepare", 1131 } 1132 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1133 return srv.(SnapshotsServer).Prepare(ctx, req.(*PrepareSnapshotRequest)) 1134 } 1135 return interceptor(ctx, in, info, handler) 1136 } 1137 1138 func _Snapshots_View_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1139 in := new(ViewSnapshotRequest) 1140 if err := dec(in); err != nil { 1141 return nil, err 1142 } 1143 if interceptor == nil { 1144 return srv.(SnapshotsServer).View(ctx, in) 1145 } 1146 info := &grpc.UnaryServerInfo{ 1147 Server: srv, 1148 FullMethod: "/containerd.services.snapshots.v1.Snapshots/View", 1149 } 1150 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1151 return srv.(SnapshotsServer).View(ctx, req.(*ViewSnapshotRequest)) 1152 } 1153 return interceptor(ctx, in, info, handler) 1154 } 1155 1156 func _Snapshots_Mounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1157 in := new(MountsRequest) 1158 if err := dec(in); err != nil { 1159 return nil, err 1160 } 1161 if interceptor == nil { 1162 return srv.(SnapshotsServer).Mounts(ctx, in) 1163 } 1164 info := &grpc.UnaryServerInfo{ 1165 Server: srv, 1166 FullMethod: "/containerd.services.snapshots.v1.Snapshots/Mounts", 1167 } 1168 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1169 return srv.(SnapshotsServer).Mounts(ctx, req.(*MountsRequest)) 1170 } 1171 return interceptor(ctx, in, info, handler) 1172 } 1173 1174 func _Snapshots_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1175 in := new(CommitSnapshotRequest) 1176 if err := dec(in); err != nil { 1177 return nil, err 1178 } 1179 if interceptor == nil { 1180 return srv.(SnapshotsServer).Commit(ctx, in) 1181 } 1182 info := &grpc.UnaryServerInfo{ 1183 Server: srv, 1184 FullMethod: "/containerd.services.snapshots.v1.Snapshots/Commit", 1185 } 1186 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1187 return srv.(SnapshotsServer).Commit(ctx, req.(*CommitSnapshotRequest)) 1188 } 1189 return interceptor(ctx, in, info, handler) 1190 } 1191 1192 func _Snapshots_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1193 in := new(RemoveSnapshotRequest) 1194 if err := dec(in); err != nil { 1195 return nil, err 1196 } 1197 if interceptor == nil { 1198 return srv.(SnapshotsServer).Remove(ctx, in) 1199 } 1200 info := &grpc.UnaryServerInfo{ 1201 Server: srv, 1202 FullMethod: "/containerd.services.snapshots.v1.Snapshots/Remove", 1203 } 1204 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1205 return srv.(SnapshotsServer).Remove(ctx, req.(*RemoveSnapshotRequest)) 1206 } 1207 return interceptor(ctx, in, info, handler) 1208 } 1209 1210 func _Snapshots_Stat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1211 in := new(StatSnapshotRequest) 1212 if err := dec(in); err != nil { 1213 return nil, err 1214 } 1215 if interceptor == nil { 1216 return srv.(SnapshotsServer).Stat(ctx, in) 1217 } 1218 info := &grpc.UnaryServerInfo{ 1219 Server: srv, 1220 FullMethod: "/containerd.services.snapshots.v1.Snapshots/Stat", 1221 } 1222 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1223 return srv.(SnapshotsServer).Stat(ctx, req.(*StatSnapshotRequest)) 1224 } 1225 return interceptor(ctx, in, info, handler) 1226 } 1227 1228 func _Snapshots_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1229 in := new(UpdateSnapshotRequest) 1230 if err := dec(in); err != nil { 1231 return nil, err 1232 } 1233 if interceptor == nil { 1234 return srv.(SnapshotsServer).Update(ctx, in) 1235 } 1236 info := &grpc.UnaryServerInfo{ 1237 Server: srv, 1238 FullMethod: "/containerd.services.snapshots.v1.Snapshots/Update", 1239 } 1240 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1241 return srv.(SnapshotsServer).Update(ctx, req.(*UpdateSnapshotRequest)) 1242 } 1243 return interceptor(ctx, in, info, handler) 1244 } 1245 1246 func _Snapshots_List_Handler(srv interface{}, stream grpc.ServerStream) error { 1247 m := new(ListSnapshotsRequest) 1248 if err := stream.RecvMsg(m); err != nil { 1249 return err 1250 } 1251 return srv.(SnapshotsServer).List(m, &snapshotsListServer{stream}) 1252 } 1253 1254 type Snapshots_ListServer interface { 1255 Send(*ListSnapshotsResponse) error 1256 grpc.ServerStream 1257 } 1258 1259 type snapshotsListServer struct { 1260 grpc.ServerStream 1261 } 1262 1263 func (x *snapshotsListServer) Send(m *ListSnapshotsResponse) error { 1264 return x.ServerStream.SendMsg(m) 1265 } 1266 1267 func _Snapshots_Usage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1268 in := new(UsageRequest) 1269 if err := dec(in); err != nil { 1270 return nil, err 1271 } 1272 if interceptor == nil { 1273 return srv.(SnapshotsServer).Usage(ctx, in) 1274 } 1275 info := &grpc.UnaryServerInfo{ 1276 Server: srv, 1277 FullMethod: "/containerd.services.snapshots.v1.Snapshots/Usage", 1278 } 1279 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1280 return srv.(SnapshotsServer).Usage(ctx, req.(*UsageRequest)) 1281 } 1282 return interceptor(ctx, in, info, handler) 1283 } 1284 1285 func _Snapshots_Cleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1286 in := new(CleanupRequest) 1287 if err := dec(in); err != nil { 1288 return nil, err 1289 } 1290 if interceptor == nil { 1291 return srv.(SnapshotsServer).Cleanup(ctx, in) 1292 } 1293 info := &grpc.UnaryServerInfo{ 1294 Server: srv, 1295 FullMethod: "/containerd.services.snapshots.v1.Snapshots/Cleanup", 1296 } 1297 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1298 return srv.(SnapshotsServer).Cleanup(ctx, req.(*CleanupRequest)) 1299 } 1300 return interceptor(ctx, in, info, handler) 1301 } 1302 1303 var _Snapshots_serviceDesc = grpc.ServiceDesc{ 1304 ServiceName: "containerd.services.snapshots.v1.Snapshots", 1305 HandlerType: (*SnapshotsServer)(nil), 1306 Methods: []grpc.MethodDesc{ 1307 { 1308 MethodName: "Prepare", 1309 Handler: _Snapshots_Prepare_Handler, 1310 }, 1311 { 1312 MethodName: "View", 1313 Handler: _Snapshots_View_Handler, 1314 }, 1315 { 1316 MethodName: "Mounts", 1317 Handler: _Snapshots_Mounts_Handler, 1318 }, 1319 { 1320 MethodName: "Commit", 1321 Handler: _Snapshots_Commit_Handler, 1322 }, 1323 { 1324 MethodName: "Remove", 1325 Handler: _Snapshots_Remove_Handler, 1326 }, 1327 { 1328 MethodName: "Stat", 1329 Handler: _Snapshots_Stat_Handler, 1330 }, 1331 { 1332 MethodName: "Update", 1333 Handler: _Snapshots_Update_Handler, 1334 }, 1335 { 1336 MethodName: "Usage", 1337 Handler: _Snapshots_Usage_Handler, 1338 }, 1339 { 1340 MethodName: "Cleanup", 1341 Handler: _Snapshots_Cleanup_Handler, 1342 }, 1343 }, 1344 Streams: []grpc.StreamDesc{ 1345 { 1346 StreamName: "List", 1347 Handler: _Snapshots_List_Handler, 1348 ServerStreams: true, 1349 }, 1350 }, 1351 Metadata: "github.com/containerd/containerd/api/services/snapshots/v1/snapshots.proto", 1352 } 1353 1354 func (m *PrepareSnapshotRequest) Marshal() (dAtA []byte, err error) { 1355 size := m.Size() 1356 dAtA = make([]byte, size) 1357 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1358 if err != nil { 1359 return nil, err 1360 } 1361 return dAtA[:n], nil 1362 } 1363 1364 func (m *PrepareSnapshotRequest) MarshalTo(dAtA []byte) (int, error) { 1365 size := m.Size() 1366 return m.MarshalToSizedBuffer(dAtA[:size]) 1367 } 1368 1369 func (m *PrepareSnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1370 i := len(dAtA) 1371 _ = i 1372 var l int 1373 _ = l 1374 if m.XXX_unrecognized != nil { 1375 i -= len(m.XXX_unrecognized) 1376 copy(dAtA[i:], m.XXX_unrecognized) 1377 } 1378 if len(m.Labels) > 0 { 1379 for k := range m.Labels { 1380 v := m.Labels[k] 1381 baseI := i 1382 i -= len(v) 1383 copy(dAtA[i:], v) 1384 i = encodeVarintSnapshots(dAtA, i, uint64(len(v))) 1385 i-- 1386 dAtA[i] = 0x12 1387 i -= len(k) 1388 copy(dAtA[i:], k) 1389 i = encodeVarintSnapshots(dAtA, i, uint64(len(k))) 1390 i-- 1391 dAtA[i] = 0xa 1392 i = encodeVarintSnapshots(dAtA, i, uint64(baseI-i)) 1393 i-- 1394 dAtA[i] = 0x22 1395 } 1396 } 1397 if len(m.Parent) > 0 { 1398 i -= len(m.Parent) 1399 copy(dAtA[i:], m.Parent) 1400 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Parent))) 1401 i-- 1402 dAtA[i] = 0x1a 1403 } 1404 if len(m.Key) > 0 { 1405 i -= len(m.Key) 1406 copy(dAtA[i:], m.Key) 1407 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key))) 1408 i-- 1409 dAtA[i] = 0x12 1410 } 1411 if len(m.Snapshotter) > 0 { 1412 i -= len(m.Snapshotter) 1413 copy(dAtA[i:], m.Snapshotter) 1414 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter))) 1415 i-- 1416 dAtA[i] = 0xa 1417 } 1418 return len(dAtA) - i, nil 1419 } 1420 1421 func (m *PrepareSnapshotResponse) Marshal() (dAtA []byte, err error) { 1422 size := m.Size() 1423 dAtA = make([]byte, size) 1424 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1425 if err != nil { 1426 return nil, err 1427 } 1428 return dAtA[:n], nil 1429 } 1430 1431 func (m *PrepareSnapshotResponse) MarshalTo(dAtA []byte) (int, error) { 1432 size := m.Size() 1433 return m.MarshalToSizedBuffer(dAtA[:size]) 1434 } 1435 1436 func (m *PrepareSnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1437 i := len(dAtA) 1438 _ = i 1439 var l int 1440 _ = l 1441 if m.XXX_unrecognized != nil { 1442 i -= len(m.XXX_unrecognized) 1443 copy(dAtA[i:], m.XXX_unrecognized) 1444 } 1445 if len(m.Mounts) > 0 { 1446 for iNdEx := len(m.Mounts) - 1; iNdEx >= 0; iNdEx-- { 1447 { 1448 size, err := m.Mounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1449 if err != nil { 1450 return 0, err 1451 } 1452 i -= size 1453 i = encodeVarintSnapshots(dAtA, i, uint64(size)) 1454 } 1455 i-- 1456 dAtA[i] = 0xa 1457 } 1458 } 1459 return len(dAtA) - i, nil 1460 } 1461 1462 func (m *ViewSnapshotRequest) Marshal() (dAtA []byte, err error) { 1463 size := m.Size() 1464 dAtA = make([]byte, size) 1465 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1466 if err != nil { 1467 return nil, err 1468 } 1469 return dAtA[:n], nil 1470 } 1471 1472 func (m *ViewSnapshotRequest) MarshalTo(dAtA []byte) (int, error) { 1473 size := m.Size() 1474 return m.MarshalToSizedBuffer(dAtA[:size]) 1475 } 1476 1477 func (m *ViewSnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1478 i := len(dAtA) 1479 _ = i 1480 var l int 1481 _ = l 1482 if m.XXX_unrecognized != nil { 1483 i -= len(m.XXX_unrecognized) 1484 copy(dAtA[i:], m.XXX_unrecognized) 1485 } 1486 if len(m.Labels) > 0 { 1487 for k := range m.Labels { 1488 v := m.Labels[k] 1489 baseI := i 1490 i -= len(v) 1491 copy(dAtA[i:], v) 1492 i = encodeVarintSnapshots(dAtA, i, uint64(len(v))) 1493 i-- 1494 dAtA[i] = 0x12 1495 i -= len(k) 1496 copy(dAtA[i:], k) 1497 i = encodeVarintSnapshots(dAtA, i, uint64(len(k))) 1498 i-- 1499 dAtA[i] = 0xa 1500 i = encodeVarintSnapshots(dAtA, i, uint64(baseI-i)) 1501 i-- 1502 dAtA[i] = 0x22 1503 } 1504 } 1505 if len(m.Parent) > 0 { 1506 i -= len(m.Parent) 1507 copy(dAtA[i:], m.Parent) 1508 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Parent))) 1509 i-- 1510 dAtA[i] = 0x1a 1511 } 1512 if len(m.Key) > 0 { 1513 i -= len(m.Key) 1514 copy(dAtA[i:], m.Key) 1515 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key))) 1516 i-- 1517 dAtA[i] = 0x12 1518 } 1519 if len(m.Snapshotter) > 0 { 1520 i -= len(m.Snapshotter) 1521 copy(dAtA[i:], m.Snapshotter) 1522 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter))) 1523 i-- 1524 dAtA[i] = 0xa 1525 } 1526 return len(dAtA) - i, nil 1527 } 1528 1529 func (m *ViewSnapshotResponse) Marshal() (dAtA []byte, err error) { 1530 size := m.Size() 1531 dAtA = make([]byte, size) 1532 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1533 if err != nil { 1534 return nil, err 1535 } 1536 return dAtA[:n], nil 1537 } 1538 1539 func (m *ViewSnapshotResponse) MarshalTo(dAtA []byte) (int, error) { 1540 size := m.Size() 1541 return m.MarshalToSizedBuffer(dAtA[:size]) 1542 } 1543 1544 func (m *ViewSnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1545 i := len(dAtA) 1546 _ = i 1547 var l int 1548 _ = l 1549 if m.XXX_unrecognized != nil { 1550 i -= len(m.XXX_unrecognized) 1551 copy(dAtA[i:], m.XXX_unrecognized) 1552 } 1553 if len(m.Mounts) > 0 { 1554 for iNdEx := len(m.Mounts) - 1; iNdEx >= 0; iNdEx-- { 1555 { 1556 size, err := m.Mounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1557 if err != nil { 1558 return 0, err 1559 } 1560 i -= size 1561 i = encodeVarintSnapshots(dAtA, i, uint64(size)) 1562 } 1563 i-- 1564 dAtA[i] = 0xa 1565 } 1566 } 1567 return len(dAtA) - i, nil 1568 } 1569 1570 func (m *MountsRequest) Marshal() (dAtA []byte, err error) { 1571 size := m.Size() 1572 dAtA = make([]byte, size) 1573 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1574 if err != nil { 1575 return nil, err 1576 } 1577 return dAtA[:n], nil 1578 } 1579 1580 func (m *MountsRequest) MarshalTo(dAtA []byte) (int, error) { 1581 size := m.Size() 1582 return m.MarshalToSizedBuffer(dAtA[:size]) 1583 } 1584 1585 func (m *MountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1586 i := len(dAtA) 1587 _ = i 1588 var l int 1589 _ = l 1590 if m.XXX_unrecognized != nil { 1591 i -= len(m.XXX_unrecognized) 1592 copy(dAtA[i:], m.XXX_unrecognized) 1593 } 1594 if len(m.Key) > 0 { 1595 i -= len(m.Key) 1596 copy(dAtA[i:], m.Key) 1597 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key))) 1598 i-- 1599 dAtA[i] = 0x12 1600 } 1601 if len(m.Snapshotter) > 0 { 1602 i -= len(m.Snapshotter) 1603 copy(dAtA[i:], m.Snapshotter) 1604 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter))) 1605 i-- 1606 dAtA[i] = 0xa 1607 } 1608 return len(dAtA) - i, nil 1609 } 1610 1611 func (m *MountsResponse) Marshal() (dAtA []byte, err error) { 1612 size := m.Size() 1613 dAtA = make([]byte, size) 1614 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1615 if err != nil { 1616 return nil, err 1617 } 1618 return dAtA[:n], nil 1619 } 1620 1621 func (m *MountsResponse) MarshalTo(dAtA []byte) (int, error) { 1622 size := m.Size() 1623 return m.MarshalToSizedBuffer(dAtA[:size]) 1624 } 1625 1626 func (m *MountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1627 i := len(dAtA) 1628 _ = i 1629 var l int 1630 _ = l 1631 if m.XXX_unrecognized != nil { 1632 i -= len(m.XXX_unrecognized) 1633 copy(dAtA[i:], m.XXX_unrecognized) 1634 } 1635 if len(m.Mounts) > 0 { 1636 for iNdEx := len(m.Mounts) - 1; iNdEx >= 0; iNdEx-- { 1637 { 1638 size, err := m.Mounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 1639 if err != nil { 1640 return 0, err 1641 } 1642 i -= size 1643 i = encodeVarintSnapshots(dAtA, i, uint64(size)) 1644 } 1645 i-- 1646 dAtA[i] = 0xa 1647 } 1648 } 1649 return len(dAtA) - i, nil 1650 } 1651 1652 func (m *RemoveSnapshotRequest) Marshal() (dAtA []byte, err error) { 1653 size := m.Size() 1654 dAtA = make([]byte, size) 1655 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1656 if err != nil { 1657 return nil, err 1658 } 1659 return dAtA[:n], nil 1660 } 1661 1662 func (m *RemoveSnapshotRequest) MarshalTo(dAtA []byte) (int, error) { 1663 size := m.Size() 1664 return m.MarshalToSizedBuffer(dAtA[:size]) 1665 } 1666 1667 func (m *RemoveSnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1668 i := len(dAtA) 1669 _ = i 1670 var l int 1671 _ = l 1672 if m.XXX_unrecognized != nil { 1673 i -= len(m.XXX_unrecognized) 1674 copy(dAtA[i:], m.XXX_unrecognized) 1675 } 1676 if len(m.Key) > 0 { 1677 i -= len(m.Key) 1678 copy(dAtA[i:], m.Key) 1679 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key))) 1680 i-- 1681 dAtA[i] = 0x12 1682 } 1683 if len(m.Snapshotter) > 0 { 1684 i -= len(m.Snapshotter) 1685 copy(dAtA[i:], m.Snapshotter) 1686 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter))) 1687 i-- 1688 dAtA[i] = 0xa 1689 } 1690 return len(dAtA) - i, nil 1691 } 1692 1693 func (m *CommitSnapshotRequest) Marshal() (dAtA []byte, err error) { 1694 size := m.Size() 1695 dAtA = make([]byte, size) 1696 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1697 if err != nil { 1698 return nil, err 1699 } 1700 return dAtA[:n], nil 1701 } 1702 1703 func (m *CommitSnapshotRequest) MarshalTo(dAtA []byte) (int, error) { 1704 size := m.Size() 1705 return m.MarshalToSizedBuffer(dAtA[:size]) 1706 } 1707 1708 func (m *CommitSnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1709 i := len(dAtA) 1710 _ = i 1711 var l int 1712 _ = l 1713 if m.XXX_unrecognized != nil { 1714 i -= len(m.XXX_unrecognized) 1715 copy(dAtA[i:], m.XXX_unrecognized) 1716 } 1717 if len(m.Labels) > 0 { 1718 for k := range m.Labels { 1719 v := m.Labels[k] 1720 baseI := i 1721 i -= len(v) 1722 copy(dAtA[i:], v) 1723 i = encodeVarintSnapshots(dAtA, i, uint64(len(v))) 1724 i-- 1725 dAtA[i] = 0x12 1726 i -= len(k) 1727 copy(dAtA[i:], k) 1728 i = encodeVarintSnapshots(dAtA, i, uint64(len(k))) 1729 i-- 1730 dAtA[i] = 0xa 1731 i = encodeVarintSnapshots(dAtA, i, uint64(baseI-i)) 1732 i-- 1733 dAtA[i] = 0x22 1734 } 1735 } 1736 if len(m.Key) > 0 { 1737 i -= len(m.Key) 1738 copy(dAtA[i:], m.Key) 1739 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key))) 1740 i-- 1741 dAtA[i] = 0x1a 1742 } 1743 if len(m.Name) > 0 { 1744 i -= len(m.Name) 1745 copy(dAtA[i:], m.Name) 1746 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Name))) 1747 i-- 1748 dAtA[i] = 0x12 1749 } 1750 if len(m.Snapshotter) > 0 { 1751 i -= len(m.Snapshotter) 1752 copy(dAtA[i:], m.Snapshotter) 1753 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter))) 1754 i-- 1755 dAtA[i] = 0xa 1756 } 1757 return len(dAtA) - i, nil 1758 } 1759 1760 func (m *StatSnapshotRequest) Marshal() (dAtA []byte, err error) { 1761 size := m.Size() 1762 dAtA = make([]byte, size) 1763 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1764 if err != nil { 1765 return nil, err 1766 } 1767 return dAtA[:n], nil 1768 } 1769 1770 func (m *StatSnapshotRequest) MarshalTo(dAtA []byte) (int, error) { 1771 size := m.Size() 1772 return m.MarshalToSizedBuffer(dAtA[:size]) 1773 } 1774 1775 func (m *StatSnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1776 i := len(dAtA) 1777 _ = i 1778 var l int 1779 _ = l 1780 if m.XXX_unrecognized != nil { 1781 i -= len(m.XXX_unrecognized) 1782 copy(dAtA[i:], m.XXX_unrecognized) 1783 } 1784 if len(m.Key) > 0 { 1785 i -= len(m.Key) 1786 copy(dAtA[i:], m.Key) 1787 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key))) 1788 i-- 1789 dAtA[i] = 0x12 1790 } 1791 if len(m.Snapshotter) > 0 { 1792 i -= len(m.Snapshotter) 1793 copy(dAtA[i:], m.Snapshotter) 1794 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter))) 1795 i-- 1796 dAtA[i] = 0xa 1797 } 1798 return len(dAtA) - i, nil 1799 } 1800 1801 func (m *Info) Marshal() (dAtA []byte, err error) { 1802 size := m.Size() 1803 dAtA = make([]byte, size) 1804 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1805 if err != nil { 1806 return nil, err 1807 } 1808 return dAtA[:n], nil 1809 } 1810 1811 func (m *Info) MarshalTo(dAtA []byte) (int, error) { 1812 size := m.Size() 1813 return m.MarshalToSizedBuffer(dAtA[:size]) 1814 } 1815 1816 func (m *Info) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1817 i := len(dAtA) 1818 _ = i 1819 var l int 1820 _ = l 1821 if m.XXX_unrecognized != nil { 1822 i -= len(m.XXX_unrecognized) 1823 copy(dAtA[i:], m.XXX_unrecognized) 1824 } 1825 if len(m.Labels) > 0 { 1826 for k := range m.Labels { 1827 v := m.Labels[k] 1828 baseI := i 1829 i -= len(v) 1830 copy(dAtA[i:], v) 1831 i = encodeVarintSnapshots(dAtA, i, uint64(len(v))) 1832 i-- 1833 dAtA[i] = 0x12 1834 i -= len(k) 1835 copy(dAtA[i:], k) 1836 i = encodeVarintSnapshots(dAtA, i, uint64(len(k))) 1837 i-- 1838 dAtA[i] = 0xa 1839 i = encodeVarintSnapshots(dAtA, i, uint64(baseI-i)) 1840 i-- 1841 dAtA[i] = 0x32 1842 } 1843 } 1844 n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.UpdatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt):]) 1845 if err1 != nil { 1846 return 0, err1 1847 } 1848 i -= n1 1849 i = encodeVarintSnapshots(dAtA, i, uint64(n1)) 1850 i-- 1851 dAtA[i] = 0x2a 1852 n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CreatedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt):]) 1853 if err2 != nil { 1854 return 0, err2 1855 } 1856 i -= n2 1857 i = encodeVarintSnapshots(dAtA, i, uint64(n2)) 1858 i-- 1859 dAtA[i] = 0x22 1860 if m.Kind != 0 { 1861 i = encodeVarintSnapshots(dAtA, i, uint64(m.Kind)) 1862 i-- 1863 dAtA[i] = 0x18 1864 } 1865 if len(m.Parent) > 0 { 1866 i -= len(m.Parent) 1867 copy(dAtA[i:], m.Parent) 1868 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Parent))) 1869 i-- 1870 dAtA[i] = 0x12 1871 } 1872 if len(m.Name) > 0 { 1873 i -= len(m.Name) 1874 copy(dAtA[i:], m.Name) 1875 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Name))) 1876 i-- 1877 dAtA[i] = 0xa 1878 } 1879 return len(dAtA) - i, nil 1880 } 1881 1882 func (m *StatSnapshotResponse) Marshal() (dAtA []byte, err error) { 1883 size := m.Size() 1884 dAtA = make([]byte, size) 1885 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1886 if err != nil { 1887 return nil, err 1888 } 1889 return dAtA[:n], nil 1890 } 1891 1892 func (m *StatSnapshotResponse) MarshalTo(dAtA []byte) (int, error) { 1893 size := m.Size() 1894 return m.MarshalToSizedBuffer(dAtA[:size]) 1895 } 1896 1897 func (m *StatSnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1898 i := len(dAtA) 1899 _ = i 1900 var l int 1901 _ = l 1902 if m.XXX_unrecognized != nil { 1903 i -= len(m.XXX_unrecognized) 1904 copy(dAtA[i:], m.XXX_unrecognized) 1905 } 1906 { 1907 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 1908 if err != nil { 1909 return 0, err 1910 } 1911 i -= size 1912 i = encodeVarintSnapshots(dAtA, i, uint64(size)) 1913 } 1914 i-- 1915 dAtA[i] = 0xa 1916 return len(dAtA) - i, nil 1917 } 1918 1919 func (m *UpdateSnapshotRequest) Marshal() (dAtA []byte, err error) { 1920 size := m.Size() 1921 dAtA = make([]byte, size) 1922 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1923 if err != nil { 1924 return nil, err 1925 } 1926 return dAtA[:n], nil 1927 } 1928 1929 func (m *UpdateSnapshotRequest) MarshalTo(dAtA []byte) (int, error) { 1930 size := m.Size() 1931 return m.MarshalToSizedBuffer(dAtA[:size]) 1932 } 1933 1934 func (m *UpdateSnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1935 i := len(dAtA) 1936 _ = i 1937 var l int 1938 _ = l 1939 if m.XXX_unrecognized != nil { 1940 i -= len(m.XXX_unrecognized) 1941 copy(dAtA[i:], m.XXX_unrecognized) 1942 } 1943 if m.UpdateMask != nil { 1944 { 1945 size, err := m.UpdateMask.MarshalToSizedBuffer(dAtA[:i]) 1946 if err != nil { 1947 return 0, err 1948 } 1949 i -= size 1950 i = encodeVarintSnapshots(dAtA, i, uint64(size)) 1951 } 1952 i-- 1953 dAtA[i] = 0x1a 1954 } 1955 { 1956 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 1957 if err != nil { 1958 return 0, err 1959 } 1960 i -= size 1961 i = encodeVarintSnapshots(dAtA, i, uint64(size)) 1962 } 1963 i-- 1964 dAtA[i] = 0x12 1965 if len(m.Snapshotter) > 0 { 1966 i -= len(m.Snapshotter) 1967 copy(dAtA[i:], m.Snapshotter) 1968 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter))) 1969 i-- 1970 dAtA[i] = 0xa 1971 } 1972 return len(dAtA) - i, nil 1973 } 1974 1975 func (m *UpdateSnapshotResponse) Marshal() (dAtA []byte, err error) { 1976 size := m.Size() 1977 dAtA = make([]byte, size) 1978 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 1979 if err != nil { 1980 return nil, err 1981 } 1982 return dAtA[:n], nil 1983 } 1984 1985 func (m *UpdateSnapshotResponse) MarshalTo(dAtA []byte) (int, error) { 1986 size := m.Size() 1987 return m.MarshalToSizedBuffer(dAtA[:size]) 1988 } 1989 1990 func (m *UpdateSnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 1991 i := len(dAtA) 1992 _ = i 1993 var l int 1994 _ = l 1995 if m.XXX_unrecognized != nil { 1996 i -= len(m.XXX_unrecognized) 1997 copy(dAtA[i:], m.XXX_unrecognized) 1998 } 1999 { 2000 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 2001 if err != nil { 2002 return 0, err 2003 } 2004 i -= size 2005 i = encodeVarintSnapshots(dAtA, i, uint64(size)) 2006 } 2007 i-- 2008 dAtA[i] = 0xa 2009 return len(dAtA) - i, nil 2010 } 2011 2012 func (m *ListSnapshotsRequest) Marshal() (dAtA []byte, err error) { 2013 size := m.Size() 2014 dAtA = make([]byte, size) 2015 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2016 if err != nil { 2017 return nil, err 2018 } 2019 return dAtA[:n], nil 2020 } 2021 2022 func (m *ListSnapshotsRequest) MarshalTo(dAtA []byte) (int, error) { 2023 size := m.Size() 2024 return m.MarshalToSizedBuffer(dAtA[:size]) 2025 } 2026 2027 func (m *ListSnapshotsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2028 i := len(dAtA) 2029 _ = i 2030 var l int 2031 _ = l 2032 if m.XXX_unrecognized != nil { 2033 i -= len(m.XXX_unrecognized) 2034 copy(dAtA[i:], m.XXX_unrecognized) 2035 } 2036 if len(m.Filters) > 0 { 2037 for iNdEx := len(m.Filters) - 1; iNdEx >= 0; iNdEx-- { 2038 i -= len(m.Filters[iNdEx]) 2039 copy(dAtA[i:], m.Filters[iNdEx]) 2040 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Filters[iNdEx]))) 2041 i-- 2042 dAtA[i] = 0x12 2043 } 2044 } 2045 if len(m.Snapshotter) > 0 { 2046 i -= len(m.Snapshotter) 2047 copy(dAtA[i:], m.Snapshotter) 2048 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter))) 2049 i-- 2050 dAtA[i] = 0xa 2051 } 2052 return len(dAtA) - i, nil 2053 } 2054 2055 func (m *ListSnapshotsResponse) Marshal() (dAtA []byte, err error) { 2056 size := m.Size() 2057 dAtA = make([]byte, size) 2058 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2059 if err != nil { 2060 return nil, err 2061 } 2062 return dAtA[:n], nil 2063 } 2064 2065 func (m *ListSnapshotsResponse) MarshalTo(dAtA []byte) (int, error) { 2066 size := m.Size() 2067 return m.MarshalToSizedBuffer(dAtA[:size]) 2068 } 2069 2070 func (m *ListSnapshotsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2071 i := len(dAtA) 2072 _ = i 2073 var l int 2074 _ = l 2075 if m.XXX_unrecognized != nil { 2076 i -= len(m.XXX_unrecognized) 2077 copy(dAtA[i:], m.XXX_unrecognized) 2078 } 2079 if len(m.Info) > 0 { 2080 for iNdEx := len(m.Info) - 1; iNdEx >= 0; iNdEx-- { 2081 { 2082 size, err := m.Info[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 2083 if err != nil { 2084 return 0, err 2085 } 2086 i -= size 2087 i = encodeVarintSnapshots(dAtA, i, uint64(size)) 2088 } 2089 i-- 2090 dAtA[i] = 0xa 2091 } 2092 } 2093 return len(dAtA) - i, nil 2094 } 2095 2096 func (m *UsageRequest) Marshal() (dAtA []byte, err error) { 2097 size := m.Size() 2098 dAtA = make([]byte, size) 2099 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2100 if err != nil { 2101 return nil, err 2102 } 2103 return dAtA[:n], nil 2104 } 2105 2106 func (m *UsageRequest) MarshalTo(dAtA []byte) (int, error) { 2107 size := m.Size() 2108 return m.MarshalToSizedBuffer(dAtA[:size]) 2109 } 2110 2111 func (m *UsageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2112 i := len(dAtA) 2113 _ = i 2114 var l int 2115 _ = l 2116 if m.XXX_unrecognized != nil { 2117 i -= len(m.XXX_unrecognized) 2118 copy(dAtA[i:], m.XXX_unrecognized) 2119 } 2120 if len(m.Key) > 0 { 2121 i -= len(m.Key) 2122 copy(dAtA[i:], m.Key) 2123 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Key))) 2124 i-- 2125 dAtA[i] = 0x12 2126 } 2127 if len(m.Snapshotter) > 0 { 2128 i -= len(m.Snapshotter) 2129 copy(dAtA[i:], m.Snapshotter) 2130 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter))) 2131 i-- 2132 dAtA[i] = 0xa 2133 } 2134 return len(dAtA) - i, nil 2135 } 2136 2137 func (m *UsageResponse) Marshal() (dAtA []byte, err error) { 2138 size := m.Size() 2139 dAtA = make([]byte, size) 2140 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2141 if err != nil { 2142 return nil, err 2143 } 2144 return dAtA[:n], nil 2145 } 2146 2147 func (m *UsageResponse) MarshalTo(dAtA []byte) (int, error) { 2148 size := m.Size() 2149 return m.MarshalToSizedBuffer(dAtA[:size]) 2150 } 2151 2152 func (m *UsageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2153 i := len(dAtA) 2154 _ = i 2155 var l int 2156 _ = l 2157 if m.XXX_unrecognized != nil { 2158 i -= len(m.XXX_unrecognized) 2159 copy(dAtA[i:], m.XXX_unrecognized) 2160 } 2161 if m.Inodes != 0 { 2162 i = encodeVarintSnapshots(dAtA, i, uint64(m.Inodes)) 2163 i-- 2164 dAtA[i] = 0x10 2165 } 2166 if m.Size_ != 0 { 2167 i = encodeVarintSnapshots(dAtA, i, uint64(m.Size_)) 2168 i-- 2169 dAtA[i] = 0x8 2170 } 2171 return len(dAtA) - i, nil 2172 } 2173 2174 func (m *CleanupRequest) Marshal() (dAtA []byte, err error) { 2175 size := m.Size() 2176 dAtA = make([]byte, size) 2177 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 2178 if err != nil { 2179 return nil, err 2180 } 2181 return dAtA[:n], nil 2182 } 2183 2184 func (m *CleanupRequest) MarshalTo(dAtA []byte) (int, error) { 2185 size := m.Size() 2186 return m.MarshalToSizedBuffer(dAtA[:size]) 2187 } 2188 2189 func (m *CleanupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 2190 i := len(dAtA) 2191 _ = i 2192 var l int 2193 _ = l 2194 if m.XXX_unrecognized != nil { 2195 i -= len(m.XXX_unrecognized) 2196 copy(dAtA[i:], m.XXX_unrecognized) 2197 } 2198 if len(m.Snapshotter) > 0 { 2199 i -= len(m.Snapshotter) 2200 copy(dAtA[i:], m.Snapshotter) 2201 i = encodeVarintSnapshots(dAtA, i, uint64(len(m.Snapshotter))) 2202 i-- 2203 dAtA[i] = 0xa 2204 } 2205 return len(dAtA) - i, nil 2206 } 2207 2208 func encodeVarintSnapshots(dAtA []byte, offset int, v uint64) int { 2209 offset -= sovSnapshots(v) 2210 base := offset 2211 for v >= 1<<7 { 2212 dAtA[offset] = uint8(v&0x7f | 0x80) 2213 v >>= 7 2214 offset++ 2215 } 2216 dAtA[offset] = uint8(v) 2217 return base 2218 } 2219 func (m *PrepareSnapshotRequest) Size() (n int) { 2220 if m == nil { 2221 return 0 2222 } 2223 var l int 2224 _ = l 2225 l = len(m.Snapshotter) 2226 if l > 0 { 2227 n += 1 + l + sovSnapshots(uint64(l)) 2228 } 2229 l = len(m.Key) 2230 if l > 0 { 2231 n += 1 + l + sovSnapshots(uint64(l)) 2232 } 2233 l = len(m.Parent) 2234 if l > 0 { 2235 n += 1 + l + sovSnapshots(uint64(l)) 2236 } 2237 if len(m.Labels) > 0 { 2238 for k, v := range m.Labels { 2239 _ = k 2240 _ = v 2241 mapEntrySize := 1 + len(k) + sovSnapshots(uint64(len(k))) + 1 + len(v) + sovSnapshots(uint64(len(v))) 2242 n += mapEntrySize + 1 + sovSnapshots(uint64(mapEntrySize)) 2243 } 2244 } 2245 if m.XXX_unrecognized != nil { 2246 n += len(m.XXX_unrecognized) 2247 } 2248 return n 2249 } 2250 2251 func (m *PrepareSnapshotResponse) Size() (n int) { 2252 if m == nil { 2253 return 0 2254 } 2255 var l int 2256 _ = l 2257 if len(m.Mounts) > 0 { 2258 for _, e := range m.Mounts { 2259 l = e.Size() 2260 n += 1 + l + sovSnapshots(uint64(l)) 2261 } 2262 } 2263 if m.XXX_unrecognized != nil { 2264 n += len(m.XXX_unrecognized) 2265 } 2266 return n 2267 } 2268 2269 func (m *ViewSnapshotRequest) Size() (n int) { 2270 if m == nil { 2271 return 0 2272 } 2273 var l int 2274 _ = l 2275 l = len(m.Snapshotter) 2276 if l > 0 { 2277 n += 1 + l + sovSnapshots(uint64(l)) 2278 } 2279 l = len(m.Key) 2280 if l > 0 { 2281 n += 1 + l + sovSnapshots(uint64(l)) 2282 } 2283 l = len(m.Parent) 2284 if l > 0 { 2285 n += 1 + l + sovSnapshots(uint64(l)) 2286 } 2287 if len(m.Labels) > 0 { 2288 for k, v := range m.Labels { 2289 _ = k 2290 _ = v 2291 mapEntrySize := 1 + len(k) + sovSnapshots(uint64(len(k))) + 1 + len(v) + sovSnapshots(uint64(len(v))) 2292 n += mapEntrySize + 1 + sovSnapshots(uint64(mapEntrySize)) 2293 } 2294 } 2295 if m.XXX_unrecognized != nil { 2296 n += len(m.XXX_unrecognized) 2297 } 2298 return n 2299 } 2300 2301 func (m *ViewSnapshotResponse) Size() (n int) { 2302 if m == nil { 2303 return 0 2304 } 2305 var l int 2306 _ = l 2307 if len(m.Mounts) > 0 { 2308 for _, e := range m.Mounts { 2309 l = e.Size() 2310 n += 1 + l + sovSnapshots(uint64(l)) 2311 } 2312 } 2313 if m.XXX_unrecognized != nil { 2314 n += len(m.XXX_unrecognized) 2315 } 2316 return n 2317 } 2318 2319 func (m *MountsRequest) Size() (n int) { 2320 if m == nil { 2321 return 0 2322 } 2323 var l int 2324 _ = l 2325 l = len(m.Snapshotter) 2326 if l > 0 { 2327 n += 1 + l + sovSnapshots(uint64(l)) 2328 } 2329 l = len(m.Key) 2330 if l > 0 { 2331 n += 1 + l + sovSnapshots(uint64(l)) 2332 } 2333 if m.XXX_unrecognized != nil { 2334 n += len(m.XXX_unrecognized) 2335 } 2336 return n 2337 } 2338 2339 func (m *MountsResponse) Size() (n int) { 2340 if m == nil { 2341 return 0 2342 } 2343 var l int 2344 _ = l 2345 if len(m.Mounts) > 0 { 2346 for _, e := range m.Mounts { 2347 l = e.Size() 2348 n += 1 + l + sovSnapshots(uint64(l)) 2349 } 2350 } 2351 if m.XXX_unrecognized != nil { 2352 n += len(m.XXX_unrecognized) 2353 } 2354 return n 2355 } 2356 2357 func (m *RemoveSnapshotRequest) Size() (n int) { 2358 if m == nil { 2359 return 0 2360 } 2361 var l int 2362 _ = l 2363 l = len(m.Snapshotter) 2364 if l > 0 { 2365 n += 1 + l + sovSnapshots(uint64(l)) 2366 } 2367 l = len(m.Key) 2368 if l > 0 { 2369 n += 1 + l + sovSnapshots(uint64(l)) 2370 } 2371 if m.XXX_unrecognized != nil { 2372 n += len(m.XXX_unrecognized) 2373 } 2374 return n 2375 } 2376 2377 func (m *CommitSnapshotRequest) Size() (n int) { 2378 if m == nil { 2379 return 0 2380 } 2381 var l int 2382 _ = l 2383 l = len(m.Snapshotter) 2384 if l > 0 { 2385 n += 1 + l + sovSnapshots(uint64(l)) 2386 } 2387 l = len(m.Name) 2388 if l > 0 { 2389 n += 1 + l + sovSnapshots(uint64(l)) 2390 } 2391 l = len(m.Key) 2392 if l > 0 { 2393 n += 1 + l + sovSnapshots(uint64(l)) 2394 } 2395 if len(m.Labels) > 0 { 2396 for k, v := range m.Labels { 2397 _ = k 2398 _ = v 2399 mapEntrySize := 1 + len(k) + sovSnapshots(uint64(len(k))) + 1 + len(v) + sovSnapshots(uint64(len(v))) 2400 n += mapEntrySize + 1 + sovSnapshots(uint64(mapEntrySize)) 2401 } 2402 } 2403 if m.XXX_unrecognized != nil { 2404 n += len(m.XXX_unrecognized) 2405 } 2406 return n 2407 } 2408 2409 func (m *StatSnapshotRequest) Size() (n int) { 2410 if m == nil { 2411 return 0 2412 } 2413 var l int 2414 _ = l 2415 l = len(m.Snapshotter) 2416 if l > 0 { 2417 n += 1 + l + sovSnapshots(uint64(l)) 2418 } 2419 l = len(m.Key) 2420 if l > 0 { 2421 n += 1 + l + sovSnapshots(uint64(l)) 2422 } 2423 if m.XXX_unrecognized != nil { 2424 n += len(m.XXX_unrecognized) 2425 } 2426 return n 2427 } 2428 2429 func (m *Info) Size() (n int) { 2430 if m == nil { 2431 return 0 2432 } 2433 var l int 2434 _ = l 2435 l = len(m.Name) 2436 if l > 0 { 2437 n += 1 + l + sovSnapshots(uint64(l)) 2438 } 2439 l = len(m.Parent) 2440 if l > 0 { 2441 n += 1 + l + sovSnapshots(uint64(l)) 2442 } 2443 if m.Kind != 0 { 2444 n += 1 + sovSnapshots(uint64(m.Kind)) 2445 } 2446 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt) 2447 n += 1 + l + sovSnapshots(uint64(l)) 2448 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt) 2449 n += 1 + l + sovSnapshots(uint64(l)) 2450 if len(m.Labels) > 0 { 2451 for k, v := range m.Labels { 2452 _ = k 2453 _ = v 2454 mapEntrySize := 1 + len(k) + sovSnapshots(uint64(len(k))) + 1 + len(v) + sovSnapshots(uint64(len(v))) 2455 n += mapEntrySize + 1 + sovSnapshots(uint64(mapEntrySize)) 2456 } 2457 } 2458 if m.XXX_unrecognized != nil { 2459 n += len(m.XXX_unrecognized) 2460 } 2461 return n 2462 } 2463 2464 func (m *StatSnapshotResponse) Size() (n int) { 2465 if m == nil { 2466 return 0 2467 } 2468 var l int 2469 _ = l 2470 l = m.Info.Size() 2471 n += 1 + l + sovSnapshots(uint64(l)) 2472 if m.XXX_unrecognized != nil { 2473 n += len(m.XXX_unrecognized) 2474 } 2475 return n 2476 } 2477 2478 func (m *UpdateSnapshotRequest) Size() (n int) { 2479 if m == nil { 2480 return 0 2481 } 2482 var l int 2483 _ = l 2484 l = len(m.Snapshotter) 2485 if l > 0 { 2486 n += 1 + l + sovSnapshots(uint64(l)) 2487 } 2488 l = m.Info.Size() 2489 n += 1 + l + sovSnapshots(uint64(l)) 2490 if m.UpdateMask != nil { 2491 l = m.UpdateMask.Size() 2492 n += 1 + l + sovSnapshots(uint64(l)) 2493 } 2494 if m.XXX_unrecognized != nil { 2495 n += len(m.XXX_unrecognized) 2496 } 2497 return n 2498 } 2499 2500 func (m *UpdateSnapshotResponse) Size() (n int) { 2501 if m == nil { 2502 return 0 2503 } 2504 var l int 2505 _ = l 2506 l = m.Info.Size() 2507 n += 1 + l + sovSnapshots(uint64(l)) 2508 if m.XXX_unrecognized != nil { 2509 n += len(m.XXX_unrecognized) 2510 } 2511 return n 2512 } 2513 2514 func (m *ListSnapshotsRequest) Size() (n int) { 2515 if m == nil { 2516 return 0 2517 } 2518 var l int 2519 _ = l 2520 l = len(m.Snapshotter) 2521 if l > 0 { 2522 n += 1 + l + sovSnapshots(uint64(l)) 2523 } 2524 if len(m.Filters) > 0 { 2525 for _, s := range m.Filters { 2526 l = len(s) 2527 n += 1 + l + sovSnapshots(uint64(l)) 2528 } 2529 } 2530 if m.XXX_unrecognized != nil { 2531 n += len(m.XXX_unrecognized) 2532 } 2533 return n 2534 } 2535 2536 func (m *ListSnapshotsResponse) Size() (n int) { 2537 if m == nil { 2538 return 0 2539 } 2540 var l int 2541 _ = l 2542 if len(m.Info) > 0 { 2543 for _, e := range m.Info { 2544 l = e.Size() 2545 n += 1 + l + sovSnapshots(uint64(l)) 2546 } 2547 } 2548 if m.XXX_unrecognized != nil { 2549 n += len(m.XXX_unrecognized) 2550 } 2551 return n 2552 } 2553 2554 func (m *UsageRequest) Size() (n int) { 2555 if m == nil { 2556 return 0 2557 } 2558 var l int 2559 _ = l 2560 l = len(m.Snapshotter) 2561 if l > 0 { 2562 n += 1 + l + sovSnapshots(uint64(l)) 2563 } 2564 l = len(m.Key) 2565 if l > 0 { 2566 n += 1 + l + sovSnapshots(uint64(l)) 2567 } 2568 if m.XXX_unrecognized != nil { 2569 n += len(m.XXX_unrecognized) 2570 } 2571 return n 2572 } 2573 2574 func (m *UsageResponse) Size() (n int) { 2575 if m == nil { 2576 return 0 2577 } 2578 var l int 2579 _ = l 2580 if m.Size_ != 0 { 2581 n += 1 + sovSnapshots(uint64(m.Size_)) 2582 } 2583 if m.Inodes != 0 { 2584 n += 1 + sovSnapshots(uint64(m.Inodes)) 2585 } 2586 if m.XXX_unrecognized != nil { 2587 n += len(m.XXX_unrecognized) 2588 } 2589 return n 2590 } 2591 2592 func (m *CleanupRequest) Size() (n int) { 2593 if m == nil { 2594 return 0 2595 } 2596 var l int 2597 _ = l 2598 l = len(m.Snapshotter) 2599 if l > 0 { 2600 n += 1 + l + sovSnapshots(uint64(l)) 2601 } 2602 if m.XXX_unrecognized != nil { 2603 n += len(m.XXX_unrecognized) 2604 } 2605 return n 2606 } 2607 2608 func sovSnapshots(x uint64) (n int) { 2609 return (math_bits.Len64(x|1) + 6) / 7 2610 } 2611 func sozSnapshots(x uint64) (n int) { 2612 return sovSnapshots(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 2613 } 2614 func (this *PrepareSnapshotRequest) String() string { 2615 if this == nil { 2616 return "nil" 2617 } 2618 keysForLabels := make([]string, 0, len(this.Labels)) 2619 for k, _ := range this.Labels { 2620 keysForLabels = append(keysForLabels, k) 2621 } 2622 github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) 2623 mapStringForLabels := "map[string]string{" 2624 for _, k := range keysForLabels { 2625 mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k]) 2626 } 2627 mapStringForLabels += "}" 2628 s := strings.Join([]string{`&PrepareSnapshotRequest{`, 2629 `Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`, 2630 `Key:` + fmt.Sprintf("%v", this.Key) + `,`, 2631 `Parent:` + fmt.Sprintf("%v", this.Parent) + `,`, 2632 `Labels:` + mapStringForLabels + `,`, 2633 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2634 `}`, 2635 }, "") 2636 return s 2637 } 2638 func (this *PrepareSnapshotResponse) String() string { 2639 if this == nil { 2640 return "nil" 2641 } 2642 repeatedStringForMounts := "[]*Mount{" 2643 for _, f := range this.Mounts { 2644 repeatedStringForMounts += strings.Replace(fmt.Sprintf("%v", f), "Mount", "types.Mount", 1) + "," 2645 } 2646 repeatedStringForMounts += "}" 2647 s := strings.Join([]string{`&PrepareSnapshotResponse{`, 2648 `Mounts:` + repeatedStringForMounts + `,`, 2649 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2650 `}`, 2651 }, "") 2652 return s 2653 } 2654 func (this *ViewSnapshotRequest) String() string { 2655 if this == nil { 2656 return "nil" 2657 } 2658 keysForLabels := make([]string, 0, len(this.Labels)) 2659 for k, _ := range this.Labels { 2660 keysForLabels = append(keysForLabels, k) 2661 } 2662 github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) 2663 mapStringForLabels := "map[string]string{" 2664 for _, k := range keysForLabels { 2665 mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k]) 2666 } 2667 mapStringForLabels += "}" 2668 s := strings.Join([]string{`&ViewSnapshotRequest{`, 2669 `Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`, 2670 `Key:` + fmt.Sprintf("%v", this.Key) + `,`, 2671 `Parent:` + fmt.Sprintf("%v", this.Parent) + `,`, 2672 `Labels:` + mapStringForLabels + `,`, 2673 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2674 `}`, 2675 }, "") 2676 return s 2677 } 2678 func (this *ViewSnapshotResponse) String() string { 2679 if this == nil { 2680 return "nil" 2681 } 2682 repeatedStringForMounts := "[]*Mount{" 2683 for _, f := range this.Mounts { 2684 repeatedStringForMounts += strings.Replace(fmt.Sprintf("%v", f), "Mount", "types.Mount", 1) + "," 2685 } 2686 repeatedStringForMounts += "}" 2687 s := strings.Join([]string{`&ViewSnapshotResponse{`, 2688 `Mounts:` + repeatedStringForMounts + `,`, 2689 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2690 `}`, 2691 }, "") 2692 return s 2693 } 2694 func (this *MountsRequest) String() string { 2695 if this == nil { 2696 return "nil" 2697 } 2698 s := strings.Join([]string{`&MountsRequest{`, 2699 `Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`, 2700 `Key:` + fmt.Sprintf("%v", this.Key) + `,`, 2701 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2702 `}`, 2703 }, "") 2704 return s 2705 } 2706 func (this *MountsResponse) String() string { 2707 if this == nil { 2708 return "nil" 2709 } 2710 repeatedStringForMounts := "[]*Mount{" 2711 for _, f := range this.Mounts { 2712 repeatedStringForMounts += strings.Replace(fmt.Sprintf("%v", f), "Mount", "types.Mount", 1) + "," 2713 } 2714 repeatedStringForMounts += "}" 2715 s := strings.Join([]string{`&MountsResponse{`, 2716 `Mounts:` + repeatedStringForMounts + `,`, 2717 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2718 `}`, 2719 }, "") 2720 return s 2721 } 2722 func (this *RemoveSnapshotRequest) String() string { 2723 if this == nil { 2724 return "nil" 2725 } 2726 s := strings.Join([]string{`&RemoveSnapshotRequest{`, 2727 `Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`, 2728 `Key:` + fmt.Sprintf("%v", this.Key) + `,`, 2729 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2730 `}`, 2731 }, "") 2732 return s 2733 } 2734 func (this *CommitSnapshotRequest) String() string { 2735 if this == nil { 2736 return "nil" 2737 } 2738 keysForLabels := make([]string, 0, len(this.Labels)) 2739 for k, _ := range this.Labels { 2740 keysForLabels = append(keysForLabels, k) 2741 } 2742 github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) 2743 mapStringForLabels := "map[string]string{" 2744 for _, k := range keysForLabels { 2745 mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k]) 2746 } 2747 mapStringForLabels += "}" 2748 s := strings.Join([]string{`&CommitSnapshotRequest{`, 2749 `Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`, 2750 `Name:` + fmt.Sprintf("%v", this.Name) + `,`, 2751 `Key:` + fmt.Sprintf("%v", this.Key) + `,`, 2752 `Labels:` + mapStringForLabels + `,`, 2753 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2754 `}`, 2755 }, "") 2756 return s 2757 } 2758 func (this *StatSnapshotRequest) String() string { 2759 if this == nil { 2760 return "nil" 2761 } 2762 s := strings.Join([]string{`&StatSnapshotRequest{`, 2763 `Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`, 2764 `Key:` + fmt.Sprintf("%v", this.Key) + `,`, 2765 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2766 `}`, 2767 }, "") 2768 return s 2769 } 2770 func (this *Info) String() string { 2771 if this == nil { 2772 return "nil" 2773 } 2774 keysForLabels := make([]string, 0, len(this.Labels)) 2775 for k, _ := range this.Labels { 2776 keysForLabels = append(keysForLabels, k) 2777 } 2778 github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) 2779 mapStringForLabels := "map[string]string{" 2780 for _, k := range keysForLabels { 2781 mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k]) 2782 } 2783 mapStringForLabels += "}" 2784 s := strings.Join([]string{`&Info{`, 2785 `Name:` + fmt.Sprintf("%v", this.Name) + `,`, 2786 `Parent:` + fmt.Sprintf("%v", this.Parent) + `,`, 2787 `Kind:` + fmt.Sprintf("%v", this.Kind) + `,`, 2788 `CreatedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.CreatedAt), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 2789 `UpdatedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.UpdatedAt), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 2790 `Labels:` + mapStringForLabels + `,`, 2791 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2792 `}`, 2793 }, "") 2794 return s 2795 } 2796 func (this *StatSnapshotResponse) String() string { 2797 if this == nil { 2798 return "nil" 2799 } 2800 s := strings.Join([]string{`&StatSnapshotResponse{`, 2801 `Info:` + strings.Replace(strings.Replace(this.Info.String(), "Info", "Info", 1), `&`, ``, 1) + `,`, 2802 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2803 `}`, 2804 }, "") 2805 return s 2806 } 2807 func (this *UpdateSnapshotRequest) String() string { 2808 if this == nil { 2809 return "nil" 2810 } 2811 s := strings.Join([]string{`&UpdateSnapshotRequest{`, 2812 `Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`, 2813 `Info:` + strings.Replace(strings.Replace(this.Info.String(), "Info", "Info", 1), `&`, ``, 1) + `,`, 2814 `UpdateMask:` + strings.Replace(fmt.Sprintf("%v", this.UpdateMask), "FieldMask", "types1.FieldMask", 1) + `,`, 2815 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2816 `}`, 2817 }, "") 2818 return s 2819 } 2820 func (this *UpdateSnapshotResponse) String() string { 2821 if this == nil { 2822 return "nil" 2823 } 2824 s := strings.Join([]string{`&UpdateSnapshotResponse{`, 2825 `Info:` + strings.Replace(strings.Replace(this.Info.String(), "Info", "Info", 1), `&`, ``, 1) + `,`, 2826 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2827 `}`, 2828 }, "") 2829 return s 2830 } 2831 func (this *ListSnapshotsRequest) String() string { 2832 if this == nil { 2833 return "nil" 2834 } 2835 s := strings.Join([]string{`&ListSnapshotsRequest{`, 2836 `Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`, 2837 `Filters:` + fmt.Sprintf("%v", this.Filters) + `,`, 2838 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2839 `}`, 2840 }, "") 2841 return s 2842 } 2843 func (this *ListSnapshotsResponse) String() string { 2844 if this == nil { 2845 return "nil" 2846 } 2847 repeatedStringForInfo := "[]Info{" 2848 for _, f := range this.Info { 2849 repeatedStringForInfo += strings.Replace(strings.Replace(f.String(), "Info", "Info", 1), `&`, ``, 1) + "," 2850 } 2851 repeatedStringForInfo += "}" 2852 s := strings.Join([]string{`&ListSnapshotsResponse{`, 2853 `Info:` + repeatedStringForInfo + `,`, 2854 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2855 `}`, 2856 }, "") 2857 return s 2858 } 2859 func (this *UsageRequest) String() string { 2860 if this == nil { 2861 return "nil" 2862 } 2863 s := strings.Join([]string{`&UsageRequest{`, 2864 `Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`, 2865 `Key:` + fmt.Sprintf("%v", this.Key) + `,`, 2866 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2867 `}`, 2868 }, "") 2869 return s 2870 } 2871 func (this *UsageResponse) String() string { 2872 if this == nil { 2873 return "nil" 2874 } 2875 s := strings.Join([]string{`&UsageResponse{`, 2876 `Size_:` + fmt.Sprintf("%v", this.Size_) + `,`, 2877 `Inodes:` + fmt.Sprintf("%v", this.Inodes) + `,`, 2878 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2879 `}`, 2880 }, "") 2881 return s 2882 } 2883 func (this *CleanupRequest) String() string { 2884 if this == nil { 2885 return "nil" 2886 } 2887 s := strings.Join([]string{`&CleanupRequest{`, 2888 `Snapshotter:` + fmt.Sprintf("%v", this.Snapshotter) + `,`, 2889 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 2890 `}`, 2891 }, "") 2892 return s 2893 } 2894 func valueToStringSnapshots(v interface{}) string { 2895 rv := reflect.ValueOf(v) 2896 if rv.IsNil() { 2897 return "nil" 2898 } 2899 pv := reflect.Indirect(rv).Interface() 2900 return fmt.Sprintf("*%v", pv) 2901 } 2902 func (m *PrepareSnapshotRequest) Unmarshal(dAtA []byte) error { 2903 l := len(dAtA) 2904 iNdEx := 0 2905 for iNdEx < l { 2906 preIndex := iNdEx 2907 var wire uint64 2908 for shift := uint(0); ; shift += 7 { 2909 if shift >= 64 { 2910 return ErrIntOverflowSnapshots 2911 } 2912 if iNdEx >= l { 2913 return io.ErrUnexpectedEOF 2914 } 2915 b := dAtA[iNdEx] 2916 iNdEx++ 2917 wire |= uint64(b&0x7F) << shift 2918 if b < 0x80 { 2919 break 2920 } 2921 } 2922 fieldNum := int32(wire >> 3) 2923 wireType := int(wire & 0x7) 2924 if wireType == 4 { 2925 return fmt.Errorf("proto: PrepareSnapshotRequest: wiretype end group for non-group") 2926 } 2927 if fieldNum <= 0 { 2928 return fmt.Errorf("proto: PrepareSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2929 } 2930 switch fieldNum { 2931 case 1: 2932 if wireType != 2 { 2933 return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType) 2934 } 2935 var stringLen uint64 2936 for shift := uint(0); ; shift += 7 { 2937 if shift >= 64 { 2938 return ErrIntOverflowSnapshots 2939 } 2940 if iNdEx >= l { 2941 return io.ErrUnexpectedEOF 2942 } 2943 b := dAtA[iNdEx] 2944 iNdEx++ 2945 stringLen |= uint64(b&0x7F) << shift 2946 if b < 0x80 { 2947 break 2948 } 2949 } 2950 intStringLen := int(stringLen) 2951 if intStringLen < 0 { 2952 return ErrInvalidLengthSnapshots 2953 } 2954 postIndex := iNdEx + intStringLen 2955 if postIndex < 0 { 2956 return ErrInvalidLengthSnapshots 2957 } 2958 if postIndex > l { 2959 return io.ErrUnexpectedEOF 2960 } 2961 m.Snapshotter = string(dAtA[iNdEx:postIndex]) 2962 iNdEx = postIndex 2963 case 2: 2964 if wireType != 2 { 2965 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 2966 } 2967 var stringLen uint64 2968 for shift := uint(0); ; shift += 7 { 2969 if shift >= 64 { 2970 return ErrIntOverflowSnapshots 2971 } 2972 if iNdEx >= l { 2973 return io.ErrUnexpectedEOF 2974 } 2975 b := dAtA[iNdEx] 2976 iNdEx++ 2977 stringLen |= uint64(b&0x7F) << shift 2978 if b < 0x80 { 2979 break 2980 } 2981 } 2982 intStringLen := int(stringLen) 2983 if intStringLen < 0 { 2984 return ErrInvalidLengthSnapshots 2985 } 2986 postIndex := iNdEx + intStringLen 2987 if postIndex < 0 { 2988 return ErrInvalidLengthSnapshots 2989 } 2990 if postIndex > l { 2991 return io.ErrUnexpectedEOF 2992 } 2993 m.Key = string(dAtA[iNdEx:postIndex]) 2994 iNdEx = postIndex 2995 case 3: 2996 if wireType != 2 { 2997 return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) 2998 } 2999 var stringLen uint64 3000 for shift := uint(0); ; shift += 7 { 3001 if shift >= 64 { 3002 return ErrIntOverflowSnapshots 3003 } 3004 if iNdEx >= l { 3005 return io.ErrUnexpectedEOF 3006 } 3007 b := dAtA[iNdEx] 3008 iNdEx++ 3009 stringLen |= uint64(b&0x7F) << shift 3010 if b < 0x80 { 3011 break 3012 } 3013 } 3014 intStringLen := int(stringLen) 3015 if intStringLen < 0 { 3016 return ErrInvalidLengthSnapshots 3017 } 3018 postIndex := iNdEx + intStringLen 3019 if postIndex < 0 { 3020 return ErrInvalidLengthSnapshots 3021 } 3022 if postIndex > l { 3023 return io.ErrUnexpectedEOF 3024 } 3025 m.Parent = string(dAtA[iNdEx:postIndex]) 3026 iNdEx = postIndex 3027 case 4: 3028 if wireType != 2 { 3029 return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) 3030 } 3031 var msglen int 3032 for shift := uint(0); ; shift += 7 { 3033 if shift >= 64 { 3034 return ErrIntOverflowSnapshots 3035 } 3036 if iNdEx >= l { 3037 return io.ErrUnexpectedEOF 3038 } 3039 b := dAtA[iNdEx] 3040 iNdEx++ 3041 msglen |= int(b&0x7F) << shift 3042 if b < 0x80 { 3043 break 3044 } 3045 } 3046 if msglen < 0 { 3047 return ErrInvalidLengthSnapshots 3048 } 3049 postIndex := iNdEx + msglen 3050 if postIndex < 0 { 3051 return ErrInvalidLengthSnapshots 3052 } 3053 if postIndex > l { 3054 return io.ErrUnexpectedEOF 3055 } 3056 if m.Labels == nil { 3057 m.Labels = make(map[string]string) 3058 } 3059 var mapkey string 3060 var mapvalue string 3061 for iNdEx < postIndex { 3062 entryPreIndex := iNdEx 3063 var wire uint64 3064 for shift := uint(0); ; shift += 7 { 3065 if shift >= 64 { 3066 return ErrIntOverflowSnapshots 3067 } 3068 if iNdEx >= l { 3069 return io.ErrUnexpectedEOF 3070 } 3071 b := dAtA[iNdEx] 3072 iNdEx++ 3073 wire |= uint64(b&0x7F) << shift 3074 if b < 0x80 { 3075 break 3076 } 3077 } 3078 fieldNum := int32(wire >> 3) 3079 if fieldNum == 1 { 3080 var stringLenmapkey uint64 3081 for shift := uint(0); ; shift += 7 { 3082 if shift >= 64 { 3083 return ErrIntOverflowSnapshots 3084 } 3085 if iNdEx >= l { 3086 return io.ErrUnexpectedEOF 3087 } 3088 b := dAtA[iNdEx] 3089 iNdEx++ 3090 stringLenmapkey |= uint64(b&0x7F) << shift 3091 if b < 0x80 { 3092 break 3093 } 3094 } 3095 intStringLenmapkey := int(stringLenmapkey) 3096 if intStringLenmapkey < 0 { 3097 return ErrInvalidLengthSnapshots 3098 } 3099 postStringIndexmapkey := iNdEx + intStringLenmapkey 3100 if postStringIndexmapkey < 0 { 3101 return ErrInvalidLengthSnapshots 3102 } 3103 if postStringIndexmapkey > l { 3104 return io.ErrUnexpectedEOF 3105 } 3106 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 3107 iNdEx = postStringIndexmapkey 3108 } else if fieldNum == 2 { 3109 var stringLenmapvalue uint64 3110 for shift := uint(0); ; shift += 7 { 3111 if shift >= 64 { 3112 return ErrIntOverflowSnapshots 3113 } 3114 if iNdEx >= l { 3115 return io.ErrUnexpectedEOF 3116 } 3117 b := dAtA[iNdEx] 3118 iNdEx++ 3119 stringLenmapvalue |= uint64(b&0x7F) << shift 3120 if b < 0x80 { 3121 break 3122 } 3123 } 3124 intStringLenmapvalue := int(stringLenmapvalue) 3125 if intStringLenmapvalue < 0 { 3126 return ErrInvalidLengthSnapshots 3127 } 3128 postStringIndexmapvalue := iNdEx + intStringLenmapvalue 3129 if postStringIndexmapvalue < 0 { 3130 return ErrInvalidLengthSnapshots 3131 } 3132 if postStringIndexmapvalue > l { 3133 return io.ErrUnexpectedEOF 3134 } 3135 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) 3136 iNdEx = postStringIndexmapvalue 3137 } else { 3138 iNdEx = entryPreIndex 3139 skippy, err := skipSnapshots(dAtA[iNdEx:]) 3140 if err != nil { 3141 return err 3142 } 3143 if skippy < 0 { 3144 return ErrInvalidLengthSnapshots 3145 } 3146 if (iNdEx + skippy) > postIndex { 3147 return io.ErrUnexpectedEOF 3148 } 3149 iNdEx += skippy 3150 } 3151 } 3152 m.Labels[mapkey] = mapvalue 3153 iNdEx = postIndex 3154 default: 3155 iNdEx = preIndex 3156 skippy, err := skipSnapshots(dAtA[iNdEx:]) 3157 if err != nil { 3158 return err 3159 } 3160 if skippy < 0 { 3161 return ErrInvalidLengthSnapshots 3162 } 3163 if (iNdEx + skippy) < 0 { 3164 return ErrInvalidLengthSnapshots 3165 } 3166 if (iNdEx + skippy) > l { 3167 return io.ErrUnexpectedEOF 3168 } 3169 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3170 iNdEx += skippy 3171 } 3172 } 3173 3174 if iNdEx > l { 3175 return io.ErrUnexpectedEOF 3176 } 3177 return nil 3178 } 3179 func (m *PrepareSnapshotResponse) Unmarshal(dAtA []byte) error { 3180 l := len(dAtA) 3181 iNdEx := 0 3182 for iNdEx < l { 3183 preIndex := iNdEx 3184 var wire uint64 3185 for shift := uint(0); ; shift += 7 { 3186 if shift >= 64 { 3187 return ErrIntOverflowSnapshots 3188 } 3189 if iNdEx >= l { 3190 return io.ErrUnexpectedEOF 3191 } 3192 b := dAtA[iNdEx] 3193 iNdEx++ 3194 wire |= uint64(b&0x7F) << shift 3195 if b < 0x80 { 3196 break 3197 } 3198 } 3199 fieldNum := int32(wire >> 3) 3200 wireType := int(wire & 0x7) 3201 if wireType == 4 { 3202 return fmt.Errorf("proto: PrepareSnapshotResponse: wiretype end group for non-group") 3203 } 3204 if fieldNum <= 0 { 3205 return fmt.Errorf("proto: PrepareSnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire) 3206 } 3207 switch fieldNum { 3208 case 1: 3209 if wireType != 2 { 3210 return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType) 3211 } 3212 var msglen int 3213 for shift := uint(0); ; shift += 7 { 3214 if shift >= 64 { 3215 return ErrIntOverflowSnapshots 3216 } 3217 if iNdEx >= l { 3218 return io.ErrUnexpectedEOF 3219 } 3220 b := dAtA[iNdEx] 3221 iNdEx++ 3222 msglen |= int(b&0x7F) << shift 3223 if b < 0x80 { 3224 break 3225 } 3226 } 3227 if msglen < 0 { 3228 return ErrInvalidLengthSnapshots 3229 } 3230 postIndex := iNdEx + msglen 3231 if postIndex < 0 { 3232 return ErrInvalidLengthSnapshots 3233 } 3234 if postIndex > l { 3235 return io.ErrUnexpectedEOF 3236 } 3237 m.Mounts = append(m.Mounts, &types.Mount{}) 3238 if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3239 return err 3240 } 3241 iNdEx = postIndex 3242 default: 3243 iNdEx = preIndex 3244 skippy, err := skipSnapshots(dAtA[iNdEx:]) 3245 if err != nil { 3246 return err 3247 } 3248 if skippy < 0 { 3249 return ErrInvalidLengthSnapshots 3250 } 3251 if (iNdEx + skippy) < 0 { 3252 return ErrInvalidLengthSnapshots 3253 } 3254 if (iNdEx + skippy) > l { 3255 return io.ErrUnexpectedEOF 3256 } 3257 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3258 iNdEx += skippy 3259 } 3260 } 3261 3262 if iNdEx > l { 3263 return io.ErrUnexpectedEOF 3264 } 3265 return nil 3266 } 3267 func (m *ViewSnapshotRequest) Unmarshal(dAtA []byte) error { 3268 l := len(dAtA) 3269 iNdEx := 0 3270 for iNdEx < l { 3271 preIndex := iNdEx 3272 var wire uint64 3273 for shift := uint(0); ; shift += 7 { 3274 if shift >= 64 { 3275 return ErrIntOverflowSnapshots 3276 } 3277 if iNdEx >= l { 3278 return io.ErrUnexpectedEOF 3279 } 3280 b := dAtA[iNdEx] 3281 iNdEx++ 3282 wire |= uint64(b&0x7F) << shift 3283 if b < 0x80 { 3284 break 3285 } 3286 } 3287 fieldNum := int32(wire >> 3) 3288 wireType := int(wire & 0x7) 3289 if wireType == 4 { 3290 return fmt.Errorf("proto: ViewSnapshotRequest: wiretype end group for non-group") 3291 } 3292 if fieldNum <= 0 { 3293 return fmt.Errorf("proto: ViewSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3294 } 3295 switch fieldNum { 3296 case 1: 3297 if wireType != 2 { 3298 return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType) 3299 } 3300 var stringLen uint64 3301 for shift := uint(0); ; shift += 7 { 3302 if shift >= 64 { 3303 return ErrIntOverflowSnapshots 3304 } 3305 if iNdEx >= l { 3306 return io.ErrUnexpectedEOF 3307 } 3308 b := dAtA[iNdEx] 3309 iNdEx++ 3310 stringLen |= uint64(b&0x7F) << shift 3311 if b < 0x80 { 3312 break 3313 } 3314 } 3315 intStringLen := int(stringLen) 3316 if intStringLen < 0 { 3317 return ErrInvalidLengthSnapshots 3318 } 3319 postIndex := iNdEx + intStringLen 3320 if postIndex < 0 { 3321 return ErrInvalidLengthSnapshots 3322 } 3323 if postIndex > l { 3324 return io.ErrUnexpectedEOF 3325 } 3326 m.Snapshotter = string(dAtA[iNdEx:postIndex]) 3327 iNdEx = postIndex 3328 case 2: 3329 if wireType != 2 { 3330 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 3331 } 3332 var stringLen uint64 3333 for shift := uint(0); ; shift += 7 { 3334 if shift >= 64 { 3335 return ErrIntOverflowSnapshots 3336 } 3337 if iNdEx >= l { 3338 return io.ErrUnexpectedEOF 3339 } 3340 b := dAtA[iNdEx] 3341 iNdEx++ 3342 stringLen |= uint64(b&0x7F) << shift 3343 if b < 0x80 { 3344 break 3345 } 3346 } 3347 intStringLen := int(stringLen) 3348 if intStringLen < 0 { 3349 return ErrInvalidLengthSnapshots 3350 } 3351 postIndex := iNdEx + intStringLen 3352 if postIndex < 0 { 3353 return ErrInvalidLengthSnapshots 3354 } 3355 if postIndex > l { 3356 return io.ErrUnexpectedEOF 3357 } 3358 m.Key = string(dAtA[iNdEx:postIndex]) 3359 iNdEx = postIndex 3360 case 3: 3361 if wireType != 2 { 3362 return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) 3363 } 3364 var stringLen uint64 3365 for shift := uint(0); ; shift += 7 { 3366 if shift >= 64 { 3367 return ErrIntOverflowSnapshots 3368 } 3369 if iNdEx >= l { 3370 return io.ErrUnexpectedEOF 3371 } 3372 b := dAtA[iNdEx] 3373 iNdEx++ 3374 stringLen |= uint64(b&0x7F) << shift 3375 if b < 0x80 { 3376 break 3377 } 3378 } 3379 intStringLen := int(stringLen) 3380 if intStringLen < 0 { 3381 return ErrInvalidLengthSnapshots 3382 } 3383 postIndex := iNdEx + intStringLen 3384 if postIndex < 0 { 3385 return ErrInvalidLengthSnapshots 3386 } 3387 if postIndex > l { 3388 return io.ErrUnexpectedEOF 3389 } 3390 m.Parent = string(dAtA[iNdEx:postIndex]) 3391 iNdEx = postIndex 3392 case 4: 3393 if wireType != 2 { 3394 return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) 3395 } 3396 var msglen int 3397 for shift := uint(0); ; shift += 7 { 3398 if shift >= 64 { 3399 return ErrIntOverflowSnapshots 3400 } 3401 if iNdEx >= l { 3402 return io.ErrUnexpectedEOF 3403 } 3404 b := dAtA[iNdEx] 3405 iNdEx++ 3406 msglen |= int(b&0x7F) << shift 3407 if b < 0x80 { 3408 break 3409 } 3410 } 3411 if msglen < 0 { 3412 return ErrInvalidLengthSnapshots 3413 } 3414 postIndex := iNdEx + msglen 3415 if postIndex < 0 { 3416 return ErrInvalidLengthSnapshots 3417 } 3418 if postIndex > l { 3419 return io.ErrUnexpectedEOF 3420 } 3421 if m.Labels == nil { 3422 m.Labels = make(map[string]string) 3423 } 3424 var mapkey string 3425 var mapvalue string 3426 for iNdEx < postIndex { 3427 entryPreIndex := iNdEx 3428 var wire uint64 3429 for shift := uint(0); ; shift += 7 { 3430 if shift >= 64 { 3431 return ErrIntOverflowSnapshots 3432 } 3433 if iNdEx >= l { 3434 return io.ErrUnexpectedEOF 3435 } 3436 b := dAtA[iNdEx] 3437 iNdEx++ 3438 wire |= uint64(b&0x7F) << shift 3439 if b < 0x80 { 3440 break 3441 } 3442 } 3443 fieldNum := int32(wire >> 3) 3444 if fieldNum == 1 { 3445 var stringLenmapkey uint64 3446 for shift := uint(0); ; shift += 7 { 3447 if shift >= 64 { 3448 return ErrIntOverflowSnapshots 3449 } 3450 if iNdEx >= l { 3451 return io.ErrUnexpectedEOF 3452 } 3453 b := dAtA[iNdEx] 3454 iNdEx++ 3455 stringLenmapkey |= uint64(b&0x7F) << shift 3456 if b < 0x80 { 3457 break 3458 } 3459 } 3460 intStringLenmapkey := int(stringLenmapkey) 3461 if intStringLenmapkey < 0 { 3462 return ErrInvalidLengthSnapshots 3463 } 3464 postStringIndexmapkey := iNdEx + intStringLenmapkey 3465 if postStringIndexmapkey < 0 { 3466 return ErrInvalidLengthSnapshots 3467 } 3468 if postStringIndexmapkey > l { 3469 return io.ErrUnexpectedEOF 3470 } 3471 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 3472 iNdEx = postStringIndexmapkey 3473 } else if fieldNum == 2 { 3474 var stringLenmapvalue uint64 3475 for shift := uint(0); ; shift += 7 { 3476 if shift >= 64 { 3477 return ErrIntOverflowSnapshots 3478 } 3479 if iNdEx >= l { 3480 return io.ErrUnexpectedEOF 3481 } 3482 b := dAtA[iNdEx] 3483 iNdEx++ 3484 stringLenmapvalue |= uint64(b&0x7F) << shift 3485 if b < 0x80 { 3486 break 3487 } 3488 } 3489 intStringLenmapvalue := int(stringLenmapvalue) 3490 if intStringLenmapvalue < 0 { 3491 return ErrInvalidLengthSnapshots 3492 } 3493 postStringIndexmapvalue := iNdEx + intStringLenmapvalue 3494 if postStringIndexmapvalue < 0 { 3495 return ErrInvalidLengthSnapshots 3496 } 3497 if postStringIndexmapvalue > l { 3498 return io.ErrUnexpectedEOF 3499 } 3500 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) 3501 iNdEx = postStringIndexmapvalue 3502 } else { 3503 iNdEx = entryPreIndex 3504 skippy, err := skipSnapshots(dAtA[iNdEx:]) 3505 if err != nil { 3506 return err 3507 } 3508 if skippy < 0 { 3509 return ErrInvalidLengthSnapshots 3510 } 3511 if (iNdEx + skippy) > postIndex { 3512 return io.ErrUnexpectedEOF 3513 } 3514 iNdEx += skippy 3515 } 3516 } 3517 m.Labels[mapkey] = mapvalue 3518 iNdEx = postIndex 3519 default: 3520 iNdEx = preIndex 3521 skippy, err := skipSnapshots(dAtA[iNdEx:]) 3522 if err != nil { 3523 return err 3524 } 3525 if skippy < 0 { 3526 return ErrInvalidLengthSnapshots 3527 } 3528 if (iNdEx + skippy) < 0 { 3529 return ErrInvalidLengthSnapshots 3530 } 3531 if (iNdEx + skippy) > l { 3532 return io.ErrUnexpectedEOF 3533 } 3534 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3535 iNdEx += skippy 3536 } 3537 } 3538 3539 if iNdEx > l { 3540 return io.ErrUnexpectedEOF 3541 } 3542 return nil 3543 } 3544 func (m *ViewSnapshotResponse) Unmarshal(dAtA []byte) error { 3545 l := len(dAtA) 3546 iNdEx := 0 3547 for iNdEx < l { 3548 preIndex := iNdEx 3549 var wire uint64 3550 for shift := uint(0); ; shift += 7 { 3551 if shift >= 64 { 3552 return ErrIntOverflowSnapshots 3553 } 3554 if iNdEx >= l { 3555 return io.ErrUnexpectedEOF 3556 } 3557 b := dAtA[iNdEx] 3558 iNdEx++ 3559 wire |= uint64(b&0x7F) << shift 3560 if b < 0x80 { 3561 break 3562 } 3563 } 3564 fieldNum := int32(wire >> 3) 3565 wireType := int(wire & 0x7) 3566 if wireType == 4 { 3567 return fmt.Errorf("proto: ViewSnapshotResponse: wiretype end group for non-group") 3568 } 3569 if fieldNum <= 0 { 3570 return fmt.Errorf("proto: ViewSnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire) 3571 } 3572 switch fieldNum { 3573 case 1: 3574 if wireType != 2 { 3575 return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType) 3576 } 3577 var msglen int 3578 for shift := uint(0); ; shift += 7 { 3579 if shift >= 64 { 3580 return ErrIntOverflowSnapshots 3581 } 3582 if iNdEx >= l { 3583 return io.ErrUnexpectedEOF 3584 } 3585 b := dAtA[iNdEx] 3586 iNdEx++ 3587 msglen |= int(b&0x7F) << shift 3588 if b < 0x80 { 3589 break 3590 } 3591 } 3592 if msglen < 0 { 3593 return ErrInvalidLengthSnapshots 3594 } 3595 postIndex := iNdEx + msglen 3596 if postIndex < 0 { 3597 return ErrInvalidLengthSnapshots 3598 } 3599 if postIndex > l { 3600 return io.ErrUnexpectedEOF 3601 } 3602 m.Mounts = append(m.Mounts, &types.Mount{}) 3603 if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3604 return err 3605 } 3606 iNdEx = postIndex 3607 default: 3608 iNdEx = preIndex 3609 skippy, err := skipSnapshots(dAtA[iNdEx:]) 3610 if err != nil { 3611 return err 3612 } 3613 if skippy < 0 { 3614 return ErrInvalidLengthSnapshots 3615 } 3616 if (iNdEx + skippy) < 0 { 3617 return ErrInvalidLengthSnapshots 3618 } 3619 if (iNdEx + skippy) > l { 3620 return io.ErrUnexpectedEOF 3621 } 3622 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3623 iNdEx += skippy 3624 } 3625 } 3626 3627 if iNdEx > l { 3628 return io.ErrUnexpectedEOF 3629 } 3630 return nil 3631 } 3632 func (m *MountsRequest) Unmarshal(dAtA []byte) error { 3633 l := len(dAtA) 3634 iNdEx := 0 3635 for iNdEx < l { 3636 preIndex := iNdEx 3637 var wire uint64 3638 for shift := uint(0); ; shift += 7 { 3639 if shift >= 64 { 3640 return ErrIntOverflowSnapshots 3641 } 3642 if iNdEx >= l { 3643 return io.ErrUnexpectedEOF 3644 } 3645 b := dAtA[iNdEx] 3646 iNdEx++ 3647 wire |= uint64(b&0x7F) << shift 3648 if b < 0x80 { 3649 break 3650 } 3651 } 3652 fieldNum := int32(wire >> 3) 3653 wireType := int(wire & 0x7) 3654 if wireType == 4 { 3655 return fmt.Errorf("proto: MountsRequest: wiretype end group for non-group") 3656 } 3657 if fieldNum <= 0 { 3658 return fmt.Errorf("proto: MountsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3659 } 3660 switch fieldNum { 3661 case 1: 3662 if wireType != 2 { 3663 return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType) 3664 } 3665 var stringLen uint64 3666 for shift := uint(0); ; shift += 7 { 3667 if shift >= 64 { 3668 return ErrIntOverflowSnapshots 3669 } 3670 if iNdEx >= l { 3671 return io.ErrUnexpectedEOF 3672 } 3673 b := dAtA[iNdEx] 3674 iNdEx++ 3675 stringLen |= uint64(b&0x7F) << shift 3676 if b < 0x80 { 3677 break 3678 } 3679 } 3680 intStringLen := int(stringLen) 3681 if intStringLen < 0 { 3682 return ErrInvalidLengthSnapshots 3683 } 3684 postIndex := iNdEx + intStringLen 3685 if postIndex < 0 { 3686 return ErrInvalidLengthSnapshots 3687 } 3688 if postIndex > l { 3689 return io.ErrUnexpectedEOF 3690 } 3691 m.Snapshotter = string(dAtA[iNdEx:postIndex]) 3692 iNdEx = postIndex 3693 case 2: 3694 if wireType != 2 { 3695 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 3696 } 3697 var stringLen uint64 3698 for shift := uint(0); ; shift += 7 { 3699 if shift >= 64 { 3700 return ErrIntOverflowSnapshots 3701 } 3702 if iNdEx >= l { 3703 return io.ErrUnexpectedEOF 3704 } 3705 b := dAtA[iNdEx] 3706 iNdEx++ 3707 stringLen |= uint64(b&0x7F) << shift 3708 if b < 0x80 { 3709 break 3710 } 3711 } 3712 intStringLen := int(stringLen) 3713 if intStringLen < 0 { 3714 return ErrInvalidLengthSnapshots 3715 } 3716 postIndex := iNdEx + intStringLen 3717 if postIndex < 0 { 3718 return ErrInvalidLengthSnapshots 3719 } 3720 if postIndex > l { 3721 return io.ErrUnexpectedEOF 3722 } 3723 m.Key = string(dAtA[iNdEx:postIndex]) 3724 iNdEx = postIndex 3725 default: 3726 iNdEx = preIndex 3727 skippy, err := skipSnapshots(dAtA[iNdEx:]) 3728 if err != nil { 3729 return err 3730 } 3731 if skippy < 0 { 3732 return ErrInvalidLengthSnapshots 3733 } 3734 if (iNdEx + skippy) < 0 { 3735 return ErrInvalidLengthSnapshots 3736 } 3737 if (iNdEx + skippy) > l { 3738 return io.ErrUnexpectedEOF 3739 } 3740 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3741 iNdEx += skippy 3742 } 3743 } 3744 3745 if iNdEx > l { 3746 return io.ErrUnexpectedEOF 3747 } 3748 return nil 3749 } 3750 func (m *MountsResponse) Unmarshal(dAtA []byte) error { 3751 l := len(dAtA) 3752 iNdEx := 0 3753 for iNdEx < l { 3754 preIndex := iNdEx 3755 var wire uint64 3756 for shift := uint(0); ; shift += 7 { 3757 if shift >= 64 { 3758 return ErrIntOverflowSnapshots 3759 } 3760 if iNdEx >= l { 3761 return io.ErrUnexpectedEOF 3762 } 3763 b := dAtA[iNdEx] 3764 iNdEx++ 3765 wire |= uint64(b&0x7F) << shift 3766 if b < 0x80 { 3767 break 3768 } 3769 } 3770 fieldNum := int32(wire >> 3) 3771 wireType := int(wire & 0x7) 3772 if wireType == 4 { 3773 return fmt.Errorf("proto: MountsResponse: wiretype end group for non-group") 3774 } 3775 if fieldNum <= 0 { 3776 return fmt.Errorf("proto: MountsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 3777 } 3778 switch fieldNum { 3779 case 1: 3780 if wireType != 2 { 3781 return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType) 3782 } 3783 var msglen int 3784 for shift := uint(0); ; shift += 7 { 3785 if shift >= 64 { 3786 return ErrIntOverflowSnapshots 3787 } 3788 if iNdEx >= l { 3789 return io.ErrUnexpectedEOF 3790 } 3791 b := dAtA[iNdEx] 3792 iNdEx++ 3793 msglen |= int(b&0x7F) << shift 3794 if b < 0x80 { 3795 break 3796 } 3797 } 3798 if msglen < 0 { 3799 return ErrInvalidLengthSnapshots 3800 } 3801 postIndex := iNdEx + msglen 3802 if postIndex < 0 { 3803 return ErrInvalidLengthSnapshots 3804 } 3805 if postIndex > l { 3806 return io.ErrUnexpectedEOF 3807 } 3808 m.Mounts = append(m.Mounts, &types.Mount{}) 3809 if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3810 return err 3811 } 3812 iNdEx = postIndex 3813 default: 3814 iNdEx = preIndex 3815 skippy, err := skipSnapshots(dAtA[iNdEx:]) 3816 if err != nil { 3817 return err 3818 } 3819 if skippy < 0 { 3820 return ErrInvalidLengthSnapshots 3821 } 3822 if (iNdEx + skippy) < 0 { 3823 return ErrInvalidLengthSnapshots 3824 } 3825 if (iNdEx + skippy) > l { 3826 return io.ErrUnexpectedEOF 3827 } 3828 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3829 iNdEx += skippy 3830 } 3831 } 3832 3833 if iNdEx > l { 3834 return io.ErrUnexpectedEOF 3835 } 3836 return nil 3837 } 3838 func (m *RemoveSnapshotRequest) Unmarshal(dAtA []byte) error { 3839 l := len(dAtA) 3840 iNdEx := 0 3841 for iNdEx < l { 3842 preIndex := iNdEx 3843 var wire uint64 3844 for shift := uint(0); ; shift += 7 { 3845 if shift >= 64 { 3846 return ErrIntOverflowSnapshots 3847 } 3848 if iNdEx >= l { 3849 return io.ErrUnexpectedEOF 3850 } 3851 b := dAtA[iNdEx] 3852 iNdEx++ 3853 wire |= uint64(b&0x7F) << shift 3854 if b < 0x80 { 3855 break 3856 } 3857 } 3858 fieldNum := int32(wire >> 3) 3859 wireType := int(wire & 0x7) 3860 if wireType == 4 { 3861 return fmt.Errorf("proto: RemoveSnapshotRequest: wiretype end group for non-group") 3862 } 3863 if fieldNum <= 0 { 3864 return fmt.Errorf("proto: RemoveSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3865 } 3866 switch fieldNum { 3867 case 1: 3868 if wireType != 2 { 3869 return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType) 3870 } 3871 var stringLen uint64 3872 for shift := uint(0); ; shift += 7 { 3873 if shift >= 64 { 3874 return ErrIntOverflowSnapshots 3875 } 3876 if iNdEx >= l { 3877 return io.ErrUnexpectedEOF 3878 } 3879 b := dAtA[iNdEx] 3880 iNdEx++ 3881 stringLen |= uint64(b&0x7F) << shift 3882 if b < 0x80 { 3883 break 3884 } 3885 } 3886 intStringLen := int(stringLen) 3887 if intStringLen < 0 { 3888 return ErrInvalidLengthSnapshots 3889 } 3890 postIndex := iNdEx + intStringLen 3891 if postIndex < 0 { 3892 return ErrInvalidLengthSnapshots 3893 } 3894 if postIndex > l { 3895 return io.ErrUnexpectedEOF 3896 } 3897 m.Snapshotter = string(dAtA[iNdEx:postIndex]) 3898 iNdEx = postIndex 3899 case 2: 3900 if wireType != 2 { 3901 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 3902 } 3903 var stringLen uint64 3904 for shift := uint(0); ; shift += 7 { 3905 if shift >= 64 { 3906 return ErrIntOverflowSnapshots 3907 } 3908 if iNdEx >= l { 3909 return io.ErrUnexpectedEOF 3910 } 3911 b := dAtA[iNdEx] 3912 iNdEx++ 3913 stringLen |= uint64(b&0x7F) << shift 3914 if b < 0x80 { 3915 break 3916 } 3917 } 3918 intStringLen := int(stringLen) 3919 if intStringLen < 0 { 3920 return ErrInvalidLengthSnapshots 3921 } 3922 postIndex := iNdEx + intStringLen 3923 if postIndex < 0 { 3924 return ErrInvalidLengthSnapshots 3925 } 3926 if postIndex > l { 3927 return io.ErrUnexpectedEOF 3928 } 3929 m.Key = string(dAtA[iNdEx:postIndex]) 3930 iNdEx = postIndex 3931 default: 3932 iNdEx = preIndex 3933 skippy, err := skipSnapshots(dAtA[iNdEx:]) 3934 if err != nil { 3935 return err 3936 } 3937 if skippy < 0 { 3938 return ErrInvalidLengthSnapshots 3939 } 3940 if (iNdEx + skippy) < 0 { 3941 return ErrInvalidLengthSnapshots 3942 } 3943 if (iNdEx + skippy) > l { 3944 return io.ErrUnexpectedEOF 3945 } 3946 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3947 iNdEx += skippy 3948 } 3949 } 3950 3951 if iNdEx > l { 3952 return io.ErrUnexpectedEOF 3953 } 3954 return nil 3955 } 3956 func (m *CommitSnapshotRequest) Unmarshal(dAtA []byte) error { 3957 l := len(dAtA) 3958 iNdEx := 0 3959 for iNdEx < l { 3960 preIndex := iNdEx 3961 var wire uint64 3962 for shift := uint(0); ; shift += 7 { 3963 if shift >= 64 { 3964 return ErrIntOverflowSnapshots 3965 } 3966 if iNdEx >= l { 3967 return io.ErrUnexpectedEOF 3968 } 3969 b := dAtA[iNdEx] 3970 iNdEx++ 3971 wire |= uint64(b&0x7F) << shift 3972 if b < 0x80 { 3973 break 3974 } 3975 } 3976 fieldNum := int32(wire >> 3) 3977 wireType := int(wire & 0x7) 3978 if wireType == 4 { 3979 return fmt.Errorf("proto: CommitSnapshotRequest: wiretype end group for non-group") 3980 } 3981 if fieldNum <= 0 { 3982 return fmt.Errorf("proto: CommitSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3983 } 3984 switch fieldNum { 3985 case 1: 3986 if wireType != 2 { 3987 return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType) 3988 } 3989 var stringLen uint64 3990 for shift := uint(0); ; shift += 7 { 3991 if shift >= 64 { 3992 return ErrIntOverflowSnapshots 3993 } 3994 if iNdEx >= l { 3995 return io.ErrUnexpectedEOF 3996 } 3997 b := dAtA[iNdEx] 3998 iNdEx++ 3999 stringLen |= uint64(b&0x7F) << shift 4000 if b < 0x80 { 4001 break 4002 } 4003 } 4004 intStringLen := int(stringLen) 4005 if intStringLen < 0 { 4006 return ErrInvalidLengthSnapshots 4007 } 4008 postIndex := iNdEx + intStringLen 4009 if postIndex < 0 { 4010 return ErrInvalidLengthSnapshots 4011 } 4012 if postIndex > l { 4013 return io.ErrUnexpectedEOF 4014 } 4015 m.Snapshotter = string(dAtA[iNdEx:postIndex]) 4016 iNdEx = postIndex 4017 case 2: 4018 if wireType != 2 { 4019 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 4020 } 4021 var stringLen uint64 4022 for shift := uint(0); ; shift += 7 { 4023 if shift >= 64 { 4024 return ErrIntOverflowSnapshots 4025 } 4026 if iNdEx >= l { 4027 return io.ErrUnexpectedEOF 4028 } 4029 b := dAtA[iNdEx] 4030 iNdEx++ 4031 stringLen |= uint64(b&0x7F) << shift 4032 if b < 0x80 { 4033 break 4034 } 4035 } 4036 intStringLen := int(stringLen) 4037 if intStringLen < 0 { 4038 return ErrInvalidLengthSnapshots 4039 } 4040 postIndex := iNdEx + intStringLen 4041 if postIndex < 0 { 4042 return ErrInvalidLengthSnapshots 4043 } 4044 if postIndex > l { 4045 return io.ErrUnexpectedEOF 4046 } 4047 m.Name = string(dAtA[iNdEx:postIndex]) 4048 iNdEx = postIndex 4049 case 3: 4050 if wireType != 2 { 4051 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 4052 } 4053 var stringLen uint64 4054 for shift := uint(0); ; shift += 7 { 4055 if shift >= 64 { 4056 return ErrIntOverflowSnapshots 4057 } 4058 if iNdEx >= l { 4059 return io.ErrUnexpectedEOF 4060 } 4061 b := dAtA[iNdEx] 4062 iNdEx++ 4063 stringLen |= uint64(b&0x7F) << shift 4064 if b < 0x80 { 4065 break 4066 } 4067 } 4068 intStringLen := int(stringLen) 4069 if intStringLen < 0 { 4070 return ErrInvalidLengthSnapshots 4071 } 4072 postIndex := iNdEx + intStringLen 4073 if postIndex < 0 { 4074 return ErrInvalidLengthSnapshots 4075 } 4076 if postIndex > l { 4077 return io.ErrUnexpectedEOF 4078 } 4079 m.Key = string(dAtA[iNdEx:postIndex]) 4080 iNdEx = postIndex 4081 case 4: 4082 if wireType != 2 { 4083 return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) 4084 } 4085 var msglen int 4086 for shift := uint(0); ; shift += 7 { 4087 if shift >= 64 { 4088 return ErrIntOverflowSnapshots 4089 } 4090 if iNdEx >= l { 4091 return io.ErrUnexpectedEOF 4092 } 4093 b := dAtA[iNdEx] 4094 iNdEx++ 4095 msglen |= int(b&0x7F) << shift 4096 if b < 0x80 { 4097 break 4098 } 4099 } 4100 if msglen < 0 { 4101 return ErrInvalidLengthSnapshots 4102 } 4103 postIndex := iNdEx + msglen 4104 if postIndex < 0 { 4105 return ErrInvalidLengthSnapshots 4106 } 4107 if postIndex > l { 4108 return io.ErrUnexpectedEOF 4109 } 4110 if m.Labels == nil { 4111 m.Labels = make(map[string]string) 4112 } 4113 var mapkey string 4114 var mapvalue string 4115 for iNdEx < postIndex { 4116 entryPreIndex := iNdEx 4117 var wire uint64 4118 for shift := uint(0); ; shift += 7 { 4119 if shift >= 64 { 4120 return ErrIntOverflowSnapshots 4121 } 4122 if iNdEx >= l { 4123 return io.ErrUnexpectedEOF 4124 } 4125 b := dAtA[iNdEx] 4126 iNdEx++ 4127 wire |= uint64(b&0x7F) << shift 4128 if b < 0x80 { 4129 break 4130 } 4131 } 4132 fieldNum := int32(wire >> 3) 4133 if fieldNum == 1 { 4134 var stringLenmapkey uint64 4135 for shift := uint(0); ; shift += 7 { 4136 if shift >= 64 { 4137 return ErrIntOverflowSnapshots 4138 } 4139 if iNdEx >= l { 4140 return io.ErrUnexpectedEOF 4141 } 4142 b := dAtA[iNdEx] 4143 iNdEx++ 4144 stringLenmapkey |= uint64(b&0x7F) << shift 4145 if b < 0x80 { 4146 break 4147 } 4148 } 4149 intStringLenmapkey := int(stringLenmapkey) 4150 if intStringLenmapkey < 0 { 4151 return ErrInvalidLengthSnapshots 4152 } 4153 postStringIndexmapkey := iNdEx + intStringLenmapkey 4154 if postStringIndexmapkey < 0 { 4155 return ErrInvalidLengthSnapshots 4156 } 4157 if postStringIndexmapkey > l { 4158 return io.ErrUnexpectedEOF 4159 } 4160 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 4161 iNdEx = postStringIndexmapkey 4162 } else if fieldNum == 2 { 4163 var stringLenmapvalue uint64 4164 for shift := uint(0); ; shift += 7 { 4165 if shift >= 64 { 4166 return ErrIntOverflowSnapshots 4167 } 4168 if iNdEx >= l { 4169 return io.ErrUnexpectedEOF 4170 } 4171 b := dAtA[iNdEx] 4172 iNdEx++ 4173 stringLenmapvalue |= uint64(b&0x7F) << shift 4174 if b < 0x80 { 4175 break 4176 } 4177 } 4178 intStringLenmapvalue := int(stringLenmapvalue) 4179 if intStringLenmapvalue < 0 { 4180 return ErrInvalidLengthSnapshots 4181 } 4182 postStringIndexmapvalue := iNdEx + intStringLenmapvalue 4183 if postStringIndexmapvalue < 0 { 4184 return ErrInvalidLengthSnapshots 4185 } 4186 if postStringIndexmapvalue > l { 4187 return io.ErrUnexpectedEOF 4188 } 4189 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) 4190 iNdEx = postStringIndexmapvalue 4191 } else { 4192 iNdEx = entryPreIndex 4193 skippy, err := skipSnapshots(dAtA[iNdEx:]) 4194 if err != nil { 4195 return err 4196 } 4197 if skippy < 0 { 4198 return ErrInvalidLengthSnapshots 4199 } 4200 if (iNdEx + skippy) > postIndex { 4201 return io.ErrUnexpectedEOF 4202 } 4203 iNdEx += skippy 4204 } 4205 } 4206 m.Labels[mapkey] = mapvalue 4207 iNdEx = postIndex 4208 default: 4209 iNdEx = preIndex 4210 skippy, err := skipSnapshots(dAtA[iNdEx:]) 4211 if err != nil { 4212 return err 4213 } 4214 if skippy < 0 { 4215 return ErrInvalidLengthSnapshots 4216 } 4217 if (iNdEx + skippy) < 0 { 4218 return ErrInvalidLengthSnapshots 4219 } 4220 if (iNdEx + skippy) > l { 4221 return io.ErrUnexpectedEOF 4222 } 4223 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4224 iNdEx += skippy 4225 } 4226 } 4227 4228 if iNdEx > l { 4229 return io.ErrUnexpectedEOF 4230 } 4231 return nil 4232 } 4233 func (m *StatSnapshotRequest) Unmarshal(dAtA []byte) error { 4234 l := len(dAtA) 4235 iNdEx := 0 4236 for iNdEx < l { 4237 preIndex := iNdEx 4238 var wire uint64 4239 for shift := uint(0); ; shift += 7 { 4240 if shift >= 64 { 4241 return ErrIntOverflowSnapshots 4242 } 4243 if iNdEx >= l { 4244 return io.ErrUnexpectedEOF 4245 } 4246 b := dAtA[iNdEx] 4247 iNdEx++ 4248 wire |= uint64(b&0x7F) << shift 4249 if b < 0x80 { 4250 break 4251 } 4252 } 4253 fieldNum := int32(wire >> 3) 4254 wireType := int(wire & 0x7) 4255 if wireType == 4 { 4256 return fmt.Errorf("proto: StatSnapshotRequest: wiretype end group for non-group") 4257 } 4258 if fieldNum <= 0 { 4259 return fmt.Errorf("proto: StatSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4260 } 4261 switch fieldNum { 4262 case 1: 4263 if wireType != 2 { 4264 return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType) 4265 } 4266 var stringLen uint64 4267 for shift := uint(0); ; shift += 7 { 4268 if shift >= 64 { 4269 return ErrIntOverflowSnapshots 4270 } 4271 if iNdEx >= l { 4272 return io.ErrUnexpectedEOF 4273 } 4274 b := dAtA[iNdEx] 4275 iNdEx++ 4276 stringLen |= uint64(b&0x7F) << shift 4277 if b < 0x80 { 4278 break 4279 } 4280 } 4281 intStringLen := int(stringLen) 4282 if intStringLen < 0 { 4283 return ErrInvalidLengthSnapshots 4284 } 4285 postIndex := iNdEx + intStringLen 4286 if postIndex < 0 { 4287 return ErrInvalidLengthSnapshots 4288 } 4289 if postIndex > l { 4290 return io.ErrUnexpectedEOF 4291 } 4292 m.Snapshotter = string(dAtA[iNdEx:postIndex]) 4293 iNdEx = postIndex 4294 case 2: 4295 if wireType != 2 { 4296 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 4297 } 4298 var stringLen uint64 4299 for shift := uint(0); ; shift += 7 { 4300 if shift >= 64 { 4301 return ErrIntOverflowSnapshots 4302 } 4303 if iNdEx >= l { 4304 return io.ErrUnexpectedEOF 4305 } 4306 b := dAtA[iNdEx] 4307 iNdEx++ 4308 stringLen |= uint64(b&0x7F) << shift 4309 if b < 0x80 { 4310 break 4311 } 4312 } 4313 intStringLen := int(stringLen) 4314 if intStringLen < 0 { 4315 return ErrInvalidLengthSnapshots 4316 } 4317 postIndex := iNdEx + intStringLen 4318 if postIndex < 0 { 4319 return ErrInvalidLengthSnapshots 4320 } 4321 if postIndex > l { 4322 return io.ErrUnexpectedEOF 4323 } 4324 m.Key = string(dAtA[iNdEx:postIndex]) 4325 iNdEx = postIndex 4326 default: 4327 iNdEx = preIndex 4328 skippy, err := skipSnapshots(dAtA[iNdEx:]) 4329 if err != nil { 4330 return err 4331 } 4332 if skippy < 0 { 4333 return ErrInvalidLengthSnapshots 4334 } 4335 if (iNdEx + skippy) < 0 { 4336 return ErrInvalidLengthSnapshots 4337 } 4338 if (iNdEx + skippy) > l { 4339 return io.ErrUnexpectedEOF 4340 } 4341 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4342 iNdEx += skippy 4343 } 4344 } 4345 4346 if iNdEx > l { 4347 return io.ErrUnexpectedEOF 4348 } 4349 return nil 4350 } 4351 func (m *Info) Unmarshal(dAtA []byte) error { 4352 l := len(dAtA) 4353 iNdEx := 0 4354 for iNdEx < l { 4355 preIndex := iNdEx 4356 var wire uint64 4357 for shift := uint(0); ; shift += 7 { 4358 if shift >= 64 { 4359 return ErrIntOverflowSnapshots 4360 } 4361 if iNdEx >= l { 4362 return io.ErrUnexpectedEOF 4363 } 4364 b := dAtA[iNdEx] 4365 iNdEx++ 4366 wire |= uint64(b&0x7F) << shift 4367 if b < 0x80 { 4368 break 4369 } 4370 } 4371 fieldNum := int32(wire >> 3) 4372 wireType := int(wire & 0x7) 4373 if wireType == 4 { 4374 return fmt.Errorf("proto: Info: wiretype end group for non-group") 4375 } 4376 if fieldNum <= 0 { 4377 return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire) 4378 } 4379 switch fieldNum { 4380 case 1: 4381 if wireType != 2 { 4382 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 4383 } 4384 var stringLen uint64 4385 for shift := uint(0); ; shift += 7 { 4386 if shift >= 64 { 4387 return ErrIntOverflowSnapshots 4388 } 4389 if iNdEx >= l { 4390 return io.ErrUnexpectedEOF 4391 } 4392 b := dAtA[iNdEx] 4393 iNdEx++ 4394 stringLen |= uint64(b&0x7F) << shift 4395 if b < 0x80 { 4396 break 4397 } 4398 } 4399 intStringLen := int(stringLen) 4400 if intStringLen < 0 { 4401 return ErrInvalidLengthSnapshots 4402 } 4403 postIndex := iNdEx + intStringLen 4404 if postIndex < 0 { 4405 return ErrInvalidLengthSnapshots 4406 } 4407 if postIndex > l { 4408 return io.ErrUnexpectedEOF 4409 } 4410 m.Name = string(dAtA[iNdEx:postIndex]) 4411 iNdEx = postIndex 4412 case 2: 4413 if wireType != 2 { 4414 return fmt.Errorf("proto: wrong wireType = %d for field Parent", wireType) 4415 } 4416 var stringLen uint64 4417 for shift := uint(0); ; shift += 7 { 4418 if shift >= 64 { 4419 return ErrIntOverflowSnapshots 4420 } 4421 if iNdEx >= l { 4422 return io.ErrUnexpectedEOF 4423 } 4424 b := dAtA[iNdEx] 4425 iNdEx++ 4426 stringLen |= uint64(b&0x7F) << shift 4427 if b < 0x80 { 4428 break 4429 } 4430 } 4431 intStringLen := int(stringLen) 4432 if intStringLen < 0 { 4433 return ErrInvalidLengthSnapshots 4434 } 4435 postIndex := iNdEx + intStringLen 4436 if postIndex < 0 { 4437 return ErrInvalidLengthSnapshots 4438 } 4439 if postIndex > l { 4440 return io.ErrUnexpectedEOF 4441 } 4442 m.Parent = string(dAtA[iNdEx:postIndex]) 4443 iNdEx = postIndex 4444 case 3: 4445 if wireType != 0 { 4446 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) 4447 } 4448 m.Kind = 0 4449 for shift := uint(0); ; shift += 7 { 4450 if shift >= 64 { 4451 return ErrIntOverflowSnapshots 4452 } 4453 if iNdEx >= l { 4454 return io.ErrUnexpectedEOF 4455 } 4456 b := dAtA[iNdEx] 4457 iNdEx++ 4458 m.Kind |= Kind(b&0x7F) << shift 4459 if b < 0x80 { 4460 break 4461 } 4462 } 4463 case 4: 4464 if wireType != 2 { 4465 return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) 4466 } 4467 var msglen int 4468 for shift := uint(0); ; shift += 7 { 4469 if shift >= 64 { 4470 return ErrIntOverflowSnapshots 4471 } 4472 if iNdEx >= l { 4473 return io.ErrUnexpectedEOF 4474 } 4475 b := dAtA[iNdEx] 4476 iNdEx++ 4477 msglen |= int(b&0x7F) << shift 4478 if b < 0x80 { 4479 break 4480 } 4481 } 4482 if msglen < 0 { 4483 return ErrInvalidLengthSnapshots 4484 } 4485 postIndex := iNdEx + msglen 4486 if postIndex < 0 { 4487 return ErrInvalidLengthSnapshots 4488 } 4489 if postIndex > l { 4490 return io.ErrUnexpectedEOF 4491 } 4492 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil { 4493 return err 4494 } 4495 iNdEx = postIndex 4496 case 5: 4497 if wireType != 2 { 4498 return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType) 4499 } 4500 var msglen int 4501 for shift := uint(0); ; shift += 7 { 4502 if shift >= 64 { 4503 return ErrIntOverflowSnapshots 4504 } 4505 if iNdEx >= l { 4506 return io.ErrUnexpectedEOF 4507 } 4508 b := dAtA[iNdEx] 4509 iNdEx++ 4510 msglen |= int(b&0x7F) << shift 4511 if b < 0x80 { 4512 break 4513 } 4514 } 4515 if msglen < 0 { 4516 return ErrInvalidLengthSnapshots 4517 } 4518 postIndex := iNdEx + msglen 4519 if postIndex < 0 { 4520 return ErrInvalidLengthSnapshots 4521 } 4522 if postIndex > l { 4523 return io.ErrUnexpectedEOF 4524 } 4525 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.UpdatedAt, dAtA[iNdEx:postIndex]); err != nil { 4526 return err 4527 } 4528 iNdEx = postIndex 4529 case 6: 4530 if wireType != 2 { 4531 return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) 4532 } 4533 var msglen int 4534 for shift := uint(0); ; shift += 7 { 4535 if shift >= 64 { 4536 return ErrIntOverflowSnapshots 4537 } 4538 if iNdEx >= l { 4539 return io.ErrUnexpectedEOF 4540 } 4541 b := dAtA[iNdEx] 4542 iNdEx++ 4543 msglen |= int(b&0x7F) << shift 4544 if b < 0x80 { 4545 break 4546 } 4547 } 4548 if msglen < 0 { 4549 return ErrInvalidLengthSnapshots 4550 } 4551 postIndex := iNdEx + msglen 4552 if postIndex < 0 { 4553 return ErrInvalidLengthSnapshots 4554 } 4555 if postIndex > l { 4556 return io.ErrUnexpectedEOF 4557 } 4558 if m.Labels == nil { 4559 m.Labels = make(map[string]string) 4560 } 4561 var mapkey string 4562 var mapvalue string 4563 for iNdEx < postIndex { 4564 entryPreIndex := iNdEx 4565 var wire uint64 4566 for shift := uint(0); ; shift += 7 { 4567 if shift >= 64 { 4568 return ErrIntOverflowSnapshots 4569 } 4570 if iNdEx >= l { 4571 return io.ErrUnexpectedEOF 4572 } 4573 b := dAtA[iNdEx] 4574 iNdEx++ 4575 wire |= uint64(b&0x7F) << shift 4576 if b < 0x80 { 4577 break 4578 } 4579 } 4580 fieldNum := int32(wire >> 3) 4581 if fieldNum == 1 { 4582 var stringLenmapkey uint64 4583 for shift := uint(0); ; shift += 7 { 4584 if shift >= 64 { 4585 return ErrIntOverflowSnapshots 4586 } 4587 if iNdEx >= l { 4588 return io.ErrUnexpectedEOF 4589 } 4590 b := dAtA[iNdEx] 4591 iNdEx++ 4592 stringLenmapkey |= uint64(b&0x7F) << shift 4593 if b < 0x80 { 4594 break 4595 } 4596 } 4597 intStringLenmapkey := int(stringLenmapkey) 4598 if intStringLenmapkey < 0 { 4599 return ErrInvalidLengthSnapshots 4600 } 4601 postStringIndexmapkey := iNdEx + intStringLenmapkey 4602 if postStringIndexmapkey < 0 { 4603 return ErrInvalidLengthSnapshots 4604 } 4605 if postStringIndexmapkey > l { 4606 return io.ErrUnexpectedEOF 4607 } 4608 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 4609 iNdEx = postStringIndexmapkey 4610 } else if fieldNum == 2 { 4611 var stringLenmapvalue uint64 4612 for shift := uint(0); ; shift += 7 { 4613 if shift >= 64 { 4614 return ErrIntOverflowSnapshots 4615 } 4616 if iNdEx >= l { 4617 return io.ErrUnexpectedEOF 4618 } 4619 b := dAtA[iNdEx] 4620 iNdEx++ 4621 stringLenmapvalue |= uint64(b&0x7F) << shift 4622 if b < 0x80 { 4623 break 4624 } 4625 } 4626 intStringLenmapvalue := int(stringLenmapvalue) 4627 if intStringLenmapvalue < 0 { 4628 return ErrInvalidLengthSnapshots 4629 } 4630 postStringIndexmapvalue := iNdEx + intStringLenmapvalue 4631 if postStringIndexmapvalue < 0 { 4632 return ErrInvalidLengthSnapshots 4633 } 4634 if postStringIndexmapvalue > l { 4635 return io.ErrUnexpectedEOF 4636 } 4637 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) 4638 iNdEx = postStringIndexmapvalue 4639 } else { 4640 iNdEx = entryPreIndex 4641 skippy, err := skipSnapshots(dAtA[iNdEx:]) 4642 if err != nil { 4643 return err 4644 } 4645 if skippy < 0 { 4646 return ErrInvalidLengthSnapshots 4647 } 4648 if (iNdEx + skippy) > postIndex { 4649 return io.ErrUnexpectedEOF 4650 } 4651 iNdEx += skippy 4652 } 4653 } 4654 m.Labels[mapkey] = mapvalue 4655 iNdEx = postIndex 4656 default: 4657 iNdEx = preIndex 4658 skippy, err := skipSnapshots(dAtA[iNdEx:]) 4659 if err != nil { 4660 return err 4661 } 4662 if skippy < 0 { 4663 return ErrInvalidLengthSnapshots 4664 } 4665 if (iNdEx + skippy) < 0 { 4666 return ErrInvalidLengthSnapshots 4667 } 4668 if (iNdEx + skippy) > l { 4669 return io.ErrUnexpectedEOF 4670 } 4671 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4672 iNdEx += skippy 4673 } 4674 } 4675 4676 if iNdEx > l { 4677 return io.ErrUnexpectedEOF 4678 } 4679 return nil 4680 } 4681 func (m *StatSnapshotResponse) Unmarshal(dAtA []byte) error { 4682 l := len(dAtA) 4683 iNdEx := 0 4684 for iNdEx < l { 4685 preIndex := iNdEx 4686 var wire uint64 4687 for shift := uint(0); ; shift += 7 { 4688 if shift >= 64 { 4689 return ErrIntOverflowSnapshots 4690 } 4691 if iNdEx >= l { 4692 return io.ErrUnexpectedEOF 4693 } 4694 b := dAtA[iNdEx] 4695 iNdEx++ 4696 wire |= uint64(b&0x7F) << shift 4697 if b < 0x80 { 4698 break 4699 } 4700 } 4701 fieldNum := int32(wire >> 3) 4702 wireType := int(wire & 0x7) 4703 if wireType == 4 { 4704 return fmt.Errorf("proto: StatSnapshotResponse: wiretype end group for non-group") 4705 } 4706 if fieldNum <= 0 { 4707 return fmt.Errorf("proto: StatSnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4708 } 4709 switch fieldNum { 4710 case 1: 4711 if wireType != 2 { 4712 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 4713 } 4714 var msglen int 4715 for shift := uint(0); ; shift += 7 { 4716 if shift >= 64 { 4717 return ErrIntOverflowSnapshots 4718 } 4719 if iNdEx >= l { 4720 return io.ErrUnexpectedEOF 4721 } 4722 b := dAtA[iNdEx] 4723 iNdEx++ 4724 msglen |= int(b&0x7F) << shift 4725 if b < 0x80 { 4726 break 4727 } 4728 } 4729 if msglen < 0 { 4730 return ErrInvalidLengthSnapshots 4731 } 4732 postIndex := iNdEx + msglen 4733 if postIndex < 0 { 4734 return ErrInvalidLengthSnapshots 4735 } 4736 if postIndex > l { 4737 return io.ErrUnexpectedEOF 4738 } 4739 if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4740 return err 4741 } 4742 iNdEx = postIndex 4743 default: 4744 iNdEx = preIndex 4745 skippy, err := skipSnapshots(dAtA[iNdEx:]) 4746 if err != nil { 4747 return err 4748 } 4749 if skippy < 0 { 4750 return ErrInvalidLengthSnapshots 4751 } 4752 if (iNdEx + skippy) < 0 { 4753 return ErrInvalidLengthSnapshots 4754 } 4755 if (iNdEx + skippy) > l { 4756 return io.ErrUnexpectedEOF 4757 } 4758 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4759 iNdEx += skippy 4760 } 4761 } 4762 4763 if iNdEx > l { 4764 return io.ErrUnexpectedEOF 4765 } 4766 return nil 4767 } 4768 func (m *UpdateSnapshotRequest) Unmarshal(dAtA []byte) error { 4769 l := len(dAtA) 4770 iNdEx := 0 4771 for iNdEx < l { 4772 preIndex := iNdEx 4773 var wire uint64 4774 for shift := uint(0); ; shift += 7 { 4775 if shift >= 64 { 4776 return ErrIntOverflowSnapshots 4777 } 4778 if iNdEx >= l { 4779 return io.ErrUnexpectedEOF 4780 } 4781 b := dAtA[iNdEx] 4782 iNdEx++ 4783 wire |= uint64(b&0x7F) << shift 4784 if b < 0x80 { 4785 break 4786 } 4787 } 4788 fieldNum := int32(wire >> 3) 4789 wireType := int(wire & 0x7) 4790 if wireType == 4 { 4791 return fmt.Errorf("proto: UpdateSnapshotRequest: wiretype end group for non-group") 4792 } 4793 if fieldNum <= 0 { 4794 return fmt.Errorf("proto: UpdateSnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4795 } 4796 switch fieldNum { 4797 case 1: 4798 if wireType != 2 { 4799 return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType) 4800 } 4801 var stringLen uint64 4802 for shift := uint(0); ; shift += 7 { 4803 if shift >= 64 { 4804 return ErrIntOverflowSnapshots 4805 } 4806 if iNdEx >= l { 4807 return io.ErrUnexpectedEOF 4808 } 4809 b := dAtA[iNdEx] 4810 iNdEx++ 4811 stringLen |= uint64(b&0x7F) << shift 4812 if b < 0x80 { 4813 break 4814 } 4815 } 4816 intStringLen := int(stringLen) 4817 if intStringLen < 0 { 4818 return ErrInvalidLengthSnapshots 4819 } 4820 postIndex := iNdEx + intStringLen 4821 if postIndex < 0 { 4822 return ErrInvalidLengthSnapshots 4823 } 4824 if postIndex > l { 4825 return io.ErrUnexpectedEOF 4826 } 4827 m.Snapshotter = string(dAtA[iNdEx:postIndex]) 4828 iNdEx = postIndex 4829 case 2: 4830 if wireType != 2 { 4831 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 4832 } 4833 var msglen int 4834 for shift := uint(0); ; shift += 7 { 4835 if shift >= 64 { 4836 return ErrIntOverflowSnapshots 4837 } 4838 if iNdEx >= l { 4839 return io.ErrUnexpectedEOF 4840 } 4841 b := dAtA[iNdEx] 4842 iNdEx++ 4843 msglen |= int(b&0x7F) << shift 4844 if b < 0x80 { 4845 break 4846 } 4847 } 4848 if msglen < 0 { 4849 return ErrInvalidLengthSnapshots 4850 } 4851 postIndex := iNdEx + msglen 4852 if postIndex < 0 { 4853 return ErrInvalidLengthSnapshots 4854 } 4855 if postIndex > l { 4856 return io.ErrUnexpectedEOF 4857 } 4858 if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4859 return err 4860 } 4861 iNdEx = postIndex 4862 case 3: 4863 if wireType != 2 { 4864 return fmt.Errorf("proto: wrong wireType = %d for field UpdateMask", wireType) 4865 } 4866 var msglen int 4867 for shift := uint(0); ; shift += 7 { 4868 if shift >= 64 { 4869 return ErrIntOverflowSnapshots 4870 } 4871 if iNdEx >= l { 4872 return io.ErrUnexpectedEOF 4873 } 4874 b := dAtA[iNdEx] 4875 iNdEx++ 4876 msglen |= int(b&0x7F) << shift 4877 if b < 0x80 { 4878 break 4879 } 4880 } 4881 if msglen < 0 { 4882 return ErrInvalidLengthSnapshots 4883 } 4884 postIndex := iNdEx + msglen 4885 if postIndex < 0 { 4886 return ErrInvalidLengthSnapshots 4887 } 4888 if postIndex > l { 4889 return io.ErrUnexpectedEOF 4890 } 4891 if m.UpdateMask == nil { 4892 m.UpdateMask = &types1.FieldMask{} 4893 } 4894 if err := m.UpdateMask.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4895 return err 4896 } 4897 iNdEx = postIndex 4898 default: 4899 iNdEx = preIndex 4900 skippy, err := skipSnapshots(dAtA[iNdEx:]) 4901 if err != nil { 4902 return err 4903 } 4904 if skippy < 0 { 4905 return ErrInvalidLengthSnapshots 4906 } 4907 if (iNdEx + skippy) < 0 { 4908 return ErrInvalidLengthSnapshots 4909 } 4910 if (iNdEx + skippy) > l { 4911 return io.ErrUnexpectedEOF 4912 } 4913 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4914 iNdEx += skippy 4915 } 4916 } 4917 4918 if iNdEx > l { 4919 return io.ErrUnexpectedEOF 4920 } 4921 return nil 4922 } 4923 func (m *UpdateSnapshotResponse) Unmarshal(dAtA []byte) error { 4924 l := len(dAtA) 4925 iNdEx := 0 4926 for iNdEx < l { 4927 preIndex := iNdEx 4928 var wire uint64 4929 for shift := uint(0); ; shift += 7 { 4930 if shift >= 64 { 4931 return ErrIntOverflowSnapshots 4932 } 4933 if iNdEx >= l { 4934 return io.ErrUnexpectedEOF 4935 } 4936 b := dAtA[iNdEx] 4937 iNdEx++ 4938 wire |= uint64(b&0x7F) << shift 4939 if b < 0x80 { 4940 break 4941 } 4942 } 4943 fieldNum := int32(wire >> 3) 4944 wireType := int(wire & 0x7) 4945 if wireType == 4 { 4946 return fmt.Errorf("proto: UpdateSnapshotResponse: wiretype end group for non-group") 4947 } 4948 if fieldNum <= 0 { 4949 return fmt.Errorf("proto: UpdateSnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4950 } 4951 switch fieldNum { 4952 case 1: 4953 if wireType != 2 { 4954 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 4955 } 4956 var msglen int 4957 for shift := uint(0); ; shift += 7 { 4958 if shift >= 64 { 4959 return ErrIntOverflowSnapshots 4960 } 4961 if iNdEx >= l { 4962 return io.ErrUnexpectedEOF 4963 } 4964 b := dAtA[iNdEx] 4965 iNdEx++ 4966 msglen |= int(b&0x7F) << shift 4967 if b < 0x80 { 4968 break 4969 } 4970 } 4971 if msglen < 0 { 4972 return ErrInvalidLengthSnapshots 4973 } 4974 postIndex := iNdEx + msglen 4975 if postIndex < 0 { 4976 return ErrInvalidLengthSnapshots 4977 } 4978 if postIndex > l { 4979 return io.ErrUnexpectedEOF 4980 } 4981 if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4982 return err 4983 } 4984 iNdEx = postIndex 4985 default: 4986 iNdEx = preIndex 4987 skippy, err := skipSnapshots(dAtA[iNdEx:]) 4988 if err != nil { 4989 return err 4990 } 4991 if skippy < 0 { 4992 return ErrInvalidLengthSnapshots 4993 } 4994 if (iNdEx + skippy) < 0 { 4995 return ErrInvalidLengthSnapshots 4996 } 4997 if (iNdEx + skippy) > l { 4998 return io.ErrUnexpectedEOF 4999 } 5000 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5001 iNdEx += skippy 5002 } 5003 } 5004 5005 if iNdEx > l { 5006 return io.ErrUnexpectedEOF 5007 } 5008 return nil 5009 } 5010 func (m *ListSnapshotsRequest) Unmarshal(dAtA []byte) error { 5011 l := len(dAtA) 5012 iNdEx := 0 5013 for iNdEx < l { 5014 preIndex := iNdEx 5015 var wire uint64 5016 for shift := uint(0); ; shift += 7 { 5017 if shift >= 64 { 5018 return ErrIntOverflowSnapshots 5019 } 5020 if iNdEx >= l { 5021 return io.ErrUnexpectedEOF 5022 } 5023 b := dAtA[iNdEx] 5024 iNdEx++ 5025 wire |= uint64(b&0x7F) << shift 5026 if b < 0x80 { 5027 break 5028 } 5029 } 5030 fieldNum := int32(wire >> 3) 5031 wireType := int(wire & 0x7) 5032 if wireType == 4 { 5033 return fmt.Errorf("proto: ListSnapshotsRequest: wiretype end group for non-group") 5034 } 5035 if fieldNum <= 0 { 5036 return fmt.Errorf("proto: ListSnapshotsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5037 } 5038 switch fieldNum { 5039 case 1: 5040 if wireType != 2 { 5041 return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType) 5042 } 5043 var stringLen uint64 5044 for shift := uint(0); ; shift += 7 { 5045 if shift >= 64 { 5046 return ErrIntOverflowSnapshots 5047 } 5048 if iNdEx >= l { 5049 return io.ErrUnexpectedEOF 5050 } 5051 b := dAtA[iNdEx] 5052 iNdEx++ 5053 stringLen |= uint64(b&0x7F) << shift 5054 if b < 0x80 { 5055 break 5056 } 5057 } 5058 intStringLen := int(stringLen) 5059 if intStringLen < 0 { 5060 return ErrInvalidLengthSnapshots 5061 } 5062 postIndex := iNdEx + intStringLen 5063 if postIndex < 0 { 5064 return ErrInvalidLengthSnapshots 5065 } 5066 if postIndex > l { 5067 return io.ErrUnexpectedEOF 5068 } 5069 m.Snapshotter = string(dAtA[iNdEx:postIndex]) 5070 iNdEx = postIndex 5071 case 2: 5072 if wireType != 2 { 5073 return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) 5074 } 5075 var stringLen uint64 5076 for shift := uint(0); ; shift += 7 { 5077 if shift >= 64 { 5078 return ErrIntOverflowSnapshots 5079 } 5080 if iNdEx >= l { 5081 return io.ErrUnexpectedEOF 5082 } 5083 b := dAtA[iNdEx] 5084 iNdEx++ 5085 stringLen |= uint64(b&0x7F) << shift 5086 if b < 0x80 { 5087 break 5088 } 5089 } 5090 intStringLen := int(stringLen) 5091 if intStringLen < 0 { 5092 return ErrInvalidLengthSnapshots 5093 } 5094 postIndex := iNdEx + intStringLen 5095 if postIndex < 0 { 5096 return ErrInvalidLengthSnapshots 5097 } 5098 if postIndex > l { 5099 return io.ErrUnexpectedEOF 5100 } 5101 m.Filters = append(m.Filters, string(dAtA[iNdEx:postIndex])) 5102 iNdEx = postIndex 5103 default: 5104 iNdEx = preIndex 5105 skippy, err := skipSnapshots(dAtA[iNdEx:]) 5106 if err != nil { 5107 return err 5108 } 5109 if skippy < 0 { 5110 return ErrInvalidLengthSnapshots 5111 } 5112 if (iNdEx + skippy) < 0 { 5113 return ErrInvalidLengthSnapshots 5114 } 5115 if (iNdEx + skippy) > l { 5116 return io.ErrUnexpectedEOF 5117 } 5118 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5119 iNdEx += skippy 5120 } 5121 } 5122 5123 if iNdEx > l { 5124 return io.ErrUnexpectedEOF 5125 } 5126 return nil 5127 } 5128 func (m *ListSnapshotsResponse) Unmarshal(dAtA []byte) error { 5129 l := len(dAtA) 5130 iNdEx := 0 5131 for iNdEx < l { 5132 preIndex := iNdEx 5133 var wire uint64 5134 for shift := uint(0); ; shift += 7 { 5135 if shift >= 64 { 5136 return ErrIntOverflowSnapshots 5137 } 5138 if iNdEx >= l { 5139 return io.ErrUnexpectedEOF 5140 } 5141 b := dAtA[iNdEx] 5142 iNdEx++ 5143 wire |= uint64(b&0x7F) << shift 5144 if b < 0x80 { 5145 break 5146 } 5147 } 5148 fieldNum := int32(wire >> 3) 5149 wireType := int(wire & 0x7) 5150 if wireType == 4 { 5151 return fmt.Errorf("proto: ListSnapshotsResponse: wiretype end group for non-group") 5152 } 5153 if fieldNum <= 0 { 5154 return fmt.Errorf("proto: ListSnapshotsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5155 } 5156 switch fieldNum { 5157 case 1: 5158 if wireType != 2 { 5159 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 5160 } 5161 var msglen int 5162 for shift := uint(0); ; shift += 7 { 5163 if shift >= 64 { 5164 return ErrIntOverflowSnapshots 5165 } 5166 if iNdEx >= l { 5167 return io.ErrUnexpectedEOF 5168 } 5169 b := dAtA[iNdEx] 5170 iNdEx++ 5171 msglen |= int(b&0x7F) << shift 5172 if b < 0x80 { 5173 break 5174 } 5175 } 5176 if msglen < 0 { 5177 return ErrInvalidLengthSnapshots 5178 } 5179 postIndex := iNdEx + msglen 5180 if postIndex < 0 { 5181 return ErrInvalidLengthSnapshots 5182 } 5183 if postIndex > l { 5184 return io.ErrUnexpectedEOF 5185 } 5186 m.Info = append(m.Info, Info{}) 5187 if err := m.Info[len(m.Info)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5188 return err 5189 } 5190 iNdEx = postIndex 5191 default: 5192 iNdEx = preIndex 5193 skippy, err := skipSnapshots(dAtA[iNdEx:]) 5194 if err != nil { 5195 return err 5196 } 5197 if skippy < 0 { 5198 return ErrInvalidLengthSnapshots 5199 } 5200 if (iNdEx + skippy) < 0 { 5201 return ErrInvalidLengthSnapshots 5202 } 5203 if (iNdEx + skippy) > l { 5204 return io.ErrUnexpectedEOF 5205 } 5206 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5207 iNdEx += skippy 5208 } 5209 } 5210 5211 if iNdEx > l { 5212 return io.ErrUnexpectedEOF 5213 } 5214 return nil 5215 } 5216 func (m *UsageRequest) Unmarshal(dAtA []byte) error { 5217 l := len(dAtA) 5218 iNdEx := 0 5219 for iNdEx < l { 5220 preIndex := iNdEx 5221 var wire uint64 5222 for shift := uint(0); ; shift += 7 { 5223 if shift >= 64 { 5224 return ErrIntOverflowSnapshots 5225 } 5226 if iNdEx >= l { 5227 return io.ErrUnexpectedEOF 5228 } 5229 b := dAtA[iNdEx] 5230 iNdEx++ 5231 wire |= uint64(b&0x7F) << shift 5232 if b < 0x80 { 5233 break 5234 } 5235 } 5236 fieldNum := int32(wire >> 3) 5237 wireType := int(wire & 0x7) 5238 if wireType == 4 { 5239 return fmt.Errorf("proto: UsageRequest: wiretype end group for non-group") 5240 } 5241 if fieldNum <= 0 { 5242 return fmt.Errorf("proto: UsageRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5243 } 5244 switch fieldNum { 5245 case 1: 5246 if wireType != 2 { 5247 return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType) 5248 } 5249 var stringLen uint64 5250 for shift := uint(0); ; shift += 7 { 5251 if shift >= 64 { 5252 return ErrIntOverflowSnapshots 5253 } 5254 if iNdEx >= l { 5255 return io.ErrUnexpectedEOF 5256 } 5257 b := dAtA[iNdEx] 5258 iNdEx++ 5259 stringLen |= uint64(b&0x7F) << shift 5260 if b < 0x80 { 5261 break 5262 } 5263 } 5264 intStringLen := int(stringLen) 5265 if intStringLen < 0 { 5266 return ErrInvalidLengthSnapshots 5267 } 5268 postIndex := iNdEx + intStringLen 5269 if postIndex < 0 { 5270 return ErrInvalidLengthSnapshots 5271 } 5272 if postIndex > l { 5273 return io.ErrUnexpectedEOF 5274 } 5275 m.Snapshotter = string(dAtA[iNdEx:postIndex]) 5276 iNdEx = postIndex 5277 case 2: 5278 if wireType != 2 { 5279 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 5280 } 5281 var stringLen uint64 5282 for shift := uint(0); ; shift += 7 { 5283 if shift >= 64 { 5284 return ErrIntOverflowSnapshots 5285 } 5286 if iNdEx >= l { 5287 return io.ErrUnexpectedEOF 5288 } 5289 b := dAtA[iNdEx] 5290 iNdEx++ 5291 stringLen |= uint64(b&0x7F) << shift 5292 if b < 0x80 { 5293 break 5294 } 5295 } 5296 intStringLen := int(stringLen) 5297 if intStringLen < 0 { 5298 return ErrInvalidLengthSnapshots 5299 } 5300 postIndex := iNdEx + intStringLen 5301 if postIndex < 0 { 5302 return ErrInvalidLengthSnapshots 5303 } 5304 if postIndex > l { 5305 return io.ErrUnexpectedEOF 5306 } 5307 m.Key = string(dAtA[iNdEx:postIndex]) 5308 iNdEx = postIndex 5309 default: 5310 iNdEx = preIndex 5311 skippy, err := skipSnapshots(dAtA[iNdEx:]) 5312 if err != nil { 5313 return err 5314 } 5315 if skippy < 0 { 5316 return ErrInvalidLengthSnapshots 5317 } 5318 if (iNdEx + skippy) < 0 { 5319 return ErrInvalidLengthSnapshots 5320 } 5321 if (iNdEx + skippy) > l { 5322 return io.ErrUnexpectedEOF 5323 } 5324 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5325 iNdEx += skippy 5326 } 5327 } 5328 5329 if iNdEx > l { 5330 return io.ErrUnexpectedEOF 5331 } 5332 return nil 5333 } 5334 func (m *UsageResponse) Unmarshal(dAtA []byte) error { 5335 l := len(dAtA) 5336 iNdEx := 0 5337 for iNdEx < l { 5338 preIndex := iNdEx 5339 var wire uint64 5340 for shift := uint(0); ; shift += 7 { 5341 if shift >= 64 { 5342 return ErrIntOverflowSnapshots 5343 } 5344 if iNdEx >= l { 5345 return io.ErrUnexpectedEOF 5346 } 5347 b := dAtA[iNdEx] 5348 iNdEx++ 5349 wire |= uint64(b&0x7F) << shift 5350 if b < 0x80 { 5351 break 5352 } 5353 } 5354 fieldNum := int32(wire >> 3) 5355 wireType := int(wire & 0x7) 5356 if wireType == 4 { 5357 return fmt.Errorf("proto: UsageResponse: wiretype end group for non-group") 5358 } 5359 if fieldNum <= 0 { 5360 return fmt.Errorf("proto: UsageResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5361 } 5362 switch fieldNum { 5363 case 1: 5364 if wireType != 0 { 5365 return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType) 5366 } 5367 m.Size_ = 0 5368 for shift := uint(0); ; shift += 7 { 5369 if shift >= 64 { 5370 return ErrIntOverflowSnapshots 5371 } 5372 if iNdEx >= l { 5373 return io.ErrUnexpectedEOF 5374 } 5375 b := dAtA[iNdEx] 5376 iNdEx++ 5377 m.Size_ |= int64(b&0x7F) << shift 5378 if b < 0x80 { 5379 break 5380 } 5381 } 5382 case 2: 5383 if wireType != 0 { 5384 return fmt.Errorf("proto: wrong wireType = %d for field Inodes", wireType) 5385 } 5386 m.Inodes = 0 5387 for shift := uint(0); ; shift += 7 { 5388 if shift >= 64 { 5389 return ErrIntOverflowSnapshots 5390 } 5391 if iNdEx >= l { 5392 return io.ErrUnexpectedEOF 5393 } 5394 b := dAtA[iNdEx] 5395 iNdEx++ 5396 m.Inodes |= int64(b&0x7F) << shift 5397 if b < 0x80 { 5398 break 5399 } 5400 } 5401 default: 5402 iNdEx = preIndex 5403 skippy, err := skipSnapshots(dAtA[iNdEx:]) 5404 if err != nil { 5405 return err 5406 } 5407 if skippy < 0 { 5408 return ErrInvalidLengthSnapshots 5409 } 5410 if (iNdEx + skippy) < 0 { 5411 return ErrInvalidLengthSnapshots 5412 } 5413 if (iNdEx + skippy) > l { 5414 return io.ErrUnexpectedEOF 5415 } 5416 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5417 iNdEx += skippy 5418 } 5419 } 5420 5421 if iNdEx > l { 5422 return io.ErrUnexpectedEOF 5423 } 5424 return nil 5425 } 5426 func (m *CleanupRequest) Unmarshal(dAtA []byte) error { 5427 l := len(dAtA) 5428 iNdEx := 0 5429 for iNdEx < l { 5430 preIndex := iNdEx 5431 var wire uint64 5432 for shift := uint(0); ; shift += 7 { 5433 if shift >= 64 { 5434 return ErrIntOverflowSnapshots 5435 } 5436 if iNdEx >= l { 5437 return io.ErrUnexpectedEOF 5438 } 5439 b := dAtA[iNdEx] 5440 iNdEx++ 5441 wire |= uint64(b&0x7F) << shift 5442 if b < 0x80 { 5443 break 5444 } 5445 } 5446 fieldNum := int32(wire >> 3) 5447 wireType := int(wire & 0x7) 5448 if wireType == 4 { 5449 return fmt.Errorf("proto: CleanupRequest: wiretype end group for non-group") 5450 } 5451 if fieldNum <= 0 { 5452 return fmt.Errorf("proto: CleanupRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5453 } 5454 switch fieldNum { 5455 case 1: 5456 if wireType != 2 { 5457 return fmt.Errorf("proto: wrong wireType = %d for field Snapshotter", wireType) 5458 } 5459 var stringLen uint64 5460 for shift := uint(0); ; shift += 7 { 5461 if shift >= 64 { 5462 return ErrIntOverflowSnapshots 5463 } 5464 if iNdEx >= l { 5465 return io.ErrUnexpectedEOF 5466 } 5467 b := dAtA[iNdEx] 5468 iNdEx++ 5469 stringLen |= uint64(b&0x7F) << shift 5470 if b < 0x80 { 5471 break 5472 } 5473 } 5474 intStringLen := int(stringLen) 5475 if intStringLen < 0 { 5476 return ErrInvalidLengthSnapshots 5477 } 5478 postIndex := iNdEx + intStringLen 5479 if postIndex < 0 { 5480 return ErrInvalidLengthSnapshots 5481 } 5482 if postIndex > l { 5483 return io.ErrUnexpectedEOF 5484 } 5485 m.Snapshotter = string(dAtA[iNdEx:postIndex]) 5486 iNdEx = postIndex 5487 default: 5488 iNdEx = preIndex 5489 skippy, err := skipSnapshots(dAtA[iNdEx:]) 5490 if err != nil { 5491 return err 5492 } 5493 if skippy < 0 { 5494 return ErrInvalidLengthSnapshots 5495 } 5496 if (iNdEx + skippy) < 0 { 5497 return ErrInvalidLengthSnapshots 5498 } 5499 if (iNdEx + skippy) > l { 5500 return io.ErrUnexpectedEOF 5501 } 5502 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5503 iNdEx += skippy 5504 } 5505 } 5506 5507 if iNdEx > l { 5508 return io.ErrUnexpectedEOF 5509 } 5510 return nil 5511 } 5512 func skipSnapshots(dAtA []byte) (n int, err error) { 5513 l := len(dAtA) 5514 iNdEx := 0 5515 depth := 0 5516 for iNdEx < l { 5517 var wire uint64 5518 for shift := uint(0); ; shift += 7 { 5519 if shift >= 64 { 5520 return 0, ErrIntOverflowSnapshots 5521 } 5522 if iNdEx >= l { 5523 return 0, io.ErrUnexpectedEOF 5524 } 5525 b := dAtA[iNdEx] 5526 iNdEx++ 5527 wire |= (uint64(b) & 0x7F) << shift 5528 if b < 0x80 { 5529 break 5530 } 5531 } 5532 wireType := int(wire & 0x7) 5533 switch wireType { 5534 case 0: 5535 for shift := uint(0); ; shift += 7 { 5536 if shift >= 64 { 5537 return 0, ErrIntOverflowSnapshots 5538 } 5539 if iNdEx >= l { 5540 return 0, io.ErrUnexpectedEOF 5541 } 5542 iNdEx++ 5543 if dAtA[iNdEx-1] < 0x80 { 5544 break 5545 } 5546 } 5547 case 1: 5548 iNdEx += 8 5549 case 2: 5550 var length int 5551 for shift := uint(0); ; shift += 7 { 5552 if shift >= 64 { 5553 return 0, ErrIntOverflowSnapshots 5554 } 5555 if iNdEx >= l { 5556 return 0, io.ErrUnexpectedEOF 5557 } 5558 b := dAtA[iNdEx] 5559 iNdEx++ 5560 length |= (int(b) & 0x7F) << shift 5561 if b < 0x80 { 5562 break 5563 } 5564 } 5565 if length < 0 { 5566 return 0, ErrInvalidLengthSnapshots 5567 } 5568 iNdEx += length 5569 case 3: 5570 depth++ 5571 case 4: 5572 if depth == 0 { 5573 return 0, ErrUnexpectedEndOfGroupSnapshots 5574 } 5575 depth-- 5576 case 5: 5577 iNdEx += 4 5578 default: 5579 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 5580 } 5581 if iNdEx < 0 { 5582 return 0, ErrInvalidLengthSnapshots 5583 } 5584 if depth == 0 { 5585 return iNdEx, nil 5586 } 5587 } 5588 return 0, io.ErrUnexpectedEOF 5589 } 5590 5591 var ( 5592 ErrInvalidLengthSnapshots = fmt.Errorf("proto: negative length found during unmarshaling") 5593 ErrIntOverflowSnapshots = fmt.Errorf("proto: integer overflow") 5594 ErrUnexpectedEndOfGroupSnapshots = fmt.Errorf("proto: unexpected end of group") 5595 )