github.com/demonoid81/containerd@v1.3.4/api/services/images/v1/images.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/containerd/containerd/api/services/images/v1/images.proto 3 4 package images 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 io "io" 16 math "math" 17 reflect "reflect" 18 strings "strings" 19 time "time" 20 ) 21 22 // Reference imports to suppress errors if they are not otherwise used. 23 var _ = proto.Marshal 24 var _ = fmt.Errorf 25 var _ = math.Inf 26 var _ = time.Kitchen 27 28 // This is a compile-time assertion to ensure that this generated file 29 // is compatible with the proto package it is being compiled against. 30 // A compilation error at this line likely means your copy of the 31 // proto package needs to be updated. 32 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 33 34 type Image struct { 35 // Name provides a unique name for the image. 36 // 37 // Containerd treats this as the primary identifier. 38 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 39 // Labels provides free form labels for the image. These are runtime only 40 // and do not get inherited into the package image in any way. 41 // 42 // Labels may be updated using the field mask. 43 // The combined size of a key/value pair cannot exceed 4096 bytes. 44 Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 45 // Target describes the content entry point of the image. 46 Target types.Descriptor `protobuf:"bytes,3,opt,name=target,proto3" json:"target"` 47 // CreatedAt is the time the image was first created. 48 CreatedAt time.Time `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3,stdtime" json:"created_at"` 49 // UpdatedAt is the last time the image was mutated. 50 UpdatedAt time.Time `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3,stdtime" json:"updated_at"` 51 XXX_NoUnkeyedLiteral struct{} `json:"-"` 52 XXX_unrecognized []byte `json:"-"` 53 XXX_sizecache int32 `json:"-"` 54 } 55 56 func (m *Image) Reset() { *m = Image{} } 57 func (*Image) ProtoMessage() {} 58 func (*Image) Descriptor() ([]byte, []int) { 59 return fileDescriptor_8666fa071128ae5f, []int{0} 60 } 61 func (m *Image) XXX_Unmarshal(b []byte) error { 62 return m.Unmarshal(b) 63 } 64 func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 65 if deterministic { 66 return xxx_messageInfo_Image.Marshal(b, m, deterministic) 67 } else { 68 b = b[:cap(b)] 69 n, err := m.MarshalTo(b) 70 if err != nil { 71 return nil, err 72 } 73 return b[:n], nil 74 } 75 } 76 func (m *Image) XXX_Merge(src proto.Message) { 77 xxx_messageInfo_Image.Merge(m, src) 78 } 79 func (m *Image) XXX_Size() int { 80 return m.Size() 81 } 82 func (m *Image) XXX_DiscardUnknown() { 83 xxx_messageInfo_Image.DiscardUnknown(m) 84 } 85 86 var xxx_messageInfo_Image proto.InternalMessageInfo 87 88 type GetImageRequest struct { 89 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 90 XXX_NoUnkeyedLiteral struct{} `json:"-"` 91 XXX_unrecognized []byte `json:"-"` 92 XXX_sizecache int32 `json:"-"` 93 } 94 95 func (m *GetImageRequest) Reset() { *m = GetImageRequest{} } 96 func (*GetImageRequest) ProtoMessage() {} 97 func (*GetImageRequest) Descriptor() ([]byte, []int) { 98 return fileDescriptor_8666fa071128ae5f, []int{1} 99 } 100 func (m *GetImageRequest) XXX_Unmarshal(b []byte) error { 101 return m.Unmarshal(b) 102 } 103 func (m *GetImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 104 if deterministic { 105 return xxx_messageInfo_GetImageRequest.Marshal(b, m, deterministic) 106 } else { 107 b = b[:cap(b)] 108 n, err := m.MarshalTo(b) 109 if err != nil { 110 return nil, err 111 } 112 return b[:n], nil 113 } 114 } 115 func (m *GetImageRequest) XXX_Merge(src proto.Message) { 116 xxx_messageInfo_GetImageRequest.Merge(m, src) 117 } 118 func (m *GetImageRequest) XXX_Size() int { 119 return m.Size() 120 } 121 func (m *GetImageRequest) XXX_DiscardUnknown() { 122 xxx_messageInfo_GetImageRequest.DiscardUnknown(m) 123 } 124 125 var xxx_messageInfo_GetImageRequest proto.InternalMessageInfo 126 127 type GetImageResponse struct { 128 Image *Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` 129 XXX_NoUnkeyedLiteral struct{} `json:"-"` 130 XXX_unrecognized []byte `json:"-"` 131 XXX_sizecache int32 `json:"-"` 132 } 133 134 func (m *GetImageResponse) Reset() { *m = GetImageResponse{} } 135 func (*GetImageResponse) ProtoMessage() {} 136 func (*GetImageResponse) Descriptor() ([]byte, []int) { 137 return fileDescriptor_8666fa071128ae5f, []int{2} 138 } 139 func (m *GetImageResponse) XXX_Unmarshal(b []byte) error { 140 return m.Unmarshal(b) 141 } 142 func (m *GetImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 143 if deterministic { 144 return xxx_messageInfo_GetImageResponse.Marshal(b, m, deterministic) 145 } else { 146 b = b[:cap(b)] 147 n, err := m.MarshalTo(b) 148 if err != nil { 149 return nil, err 150 } 151 return b[:n], nil 152 } 153 } 154 func (m *GetImageResponse) XXX_Merge(src proto.Message) { 155 xxx_messageInfo_GetImageResponse.Merge(m, src) 156 } 157 func (m *GetImageResponse) XXX_Size() int { 158 return m.Size() 159 } 160 func (m *GetImageResponse) XXX_DiscardUnknown() { 161 xxx_messageInfo_GetImageResponse.DiscardUnknown(m) 162 } 163 164 var xxx_messageInfo_GetImageResponse proto.InternalMessageInfo 165 166 type CreateImageRequest struct { 167 Image Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image"` 168 XXX_NoUnkeyedLiteral struct{} `json:"-"` 169 XXX_unrecognized []byte `json:"-"` 170 XXX_sizecache int32 `json:"-"` 171 } 172 173 func (m *CreateImageRequest) Reset() { *m = CreateImageRequest{} } 174 func (*CreateImageRequest) ProtoMessage() {} 175 func (*CreateImageRequest) Descriptor() ([]byte, []int) { 176 return fileDescriptor_8666fa071128ae5f, []int{3} 177 } 178 func (m *CreateImageRequest) XXX_Unmarshal(b []byte) error { 179 return m.Unmarshal(b) 180 } 181 func (m *CreateImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 182 if deterministic { 183 return xxx_messageInfo_CreateImageRequest.Marshal(b, m, deterministic) 184 } else { 185 b = b[:cap(b)] 186 n, err := m.MarshalTo(b) 187 if err != nil { 188 return nil, err 189 } 190 return b[:n], nil 191 } 192 } 193 func (m *CreateImageRequest) XXX_Merge(src proto.Message) { 194 xxx_messageInfo_CreateImageRequest.Merge(m, src) 195 } 196 func (m *CreateImageRequest) XXX_Size() int { 197 return m.Size() 198 } 199 func (m *CreateImageRequest) XXX_DiscardUnknown() { 200 xxx_messageInfo_CreateImageRequest.DiscardUnknown(m) 201 } 202 203 var xxx_messageInfo_CreateImageRequest proto.InternalMessageInfo 204 205 type CreateImageResponse struct { 206 Image Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image"` 207 XXX_NoUnkeyedLiteral struct{} `json:"-"` 208 XXX_unrecognized []byte `json:"-"` 209 XXX_sizecache int32 `json:"-"` 210 } 211 212 func (m *CreateImageResponse) Reset() { *m = CreateImageResponse{} } 213 func (*CreateImageResponse) ProtoMessage() {} 214 func (*CreateImageResponse) Descriptor() ([]byte, []int) { 215 return fileDescriptor_8666fa071128ae5f, []int{4} 216 } 217 func (m *CreateImageResponse) XXX_Unmarshal(b []byte) error { 218 return m.Unmarshal(b) 219 } 220 func (m *CreateImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 221 if deterministic { 222 return xxx_messageInfo_CreateImageResponse.Marshal(b, m, deterministic) 223 } else { 224 b = b[:cap(b)] 225 n, err := m.MarshalTo(b) 226 if err != nil { 227 return nil, err 228 } 229 return b[:n], nil 230 } 231 } 232 func (m *CreateImageResponse) XXX_Merge(src proto.Message) { 233 xxx_messageInfo_CreateImageResponse.Merge(m, src) 234 } 235 func (m *CreateImageResponse) XXX_Size() int { 236 return m.Size() 237 } 238 func (m *CreateImageResponse) XXX_DiscardUnknown() { 239 xxx_messageInfo_CreateImageResponse.DiscardUnknown(m) 240 } 241 242 var xxx_messageInfo_CreateImageResponse proto.InternalMessageInfo 243 244 type UpdateImageRequest struct { 245 // Image provides a full or partial image for update. 246 // 247 // The name field must be set or an error will be returned. 248 Image Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image"` 249 // UpdateMask specifies which fields to perform the update on. If empty, 250 // the operation applies to all fields. 251 UpdateMask *types1.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 252 XXX_NoUnkeyedLiteral struct{} `json:"-"` 253 XXX_unrecognized []byte `json:"-"` 254 XXX_sizecache int32 `json:"-"` 255 } 256 257 func (m *UpdateImageRequest) Reset() { *m = UpdateImageRequest{} } 258 func (*UpdateImageRequest) ProtoMessage() {} 259 func (*UpdateImageRequest) Descriptor() ([]byte, []int) { 260 return fileDescriptor_8666fa071128ae5f, []int{5} 261 } 262 func (m *UpdateImageRequest) XXX_Unmarshal(b []byte) error { 263 return m.Unmarshal(b) 264 } 265 func (m *UpdateImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 266 if deterministic { 267 return xxx_messageInfo_UpdateImageRequest.Marshal(b, m, deterministic) 268 } else { 269 b = b[:cap(b)] 270 n, err := m.MarshalTo(b) 271 if err != nil { 272 return nil, err 273 } 274 return b[:n], nil 275 } 276 } 277 func (m *UpdateImageRequest) XXX_Merge(src proto.Message) { 278 xxx_messageInfo_UpdateImageRequest.Merge(m, src) 279 } 280 func (m *UpdateImageRequest) XXX_Size() int { 281 return m.Size() 282 } 283 func (m *UpdateImageRequest) XXX_DiscardUnknown() { 284 xxx_messageInfo_UpdateImageRequest.DiscardUnknown(m) 285 } 286 287 var xxx_messageInfo_UpdateImageRequest proto.InternalMessageInfo 288 289 type UpdateImageResponse struct { 290 Image Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image"` 291 XXX_NoUnkeyedLiteral struct{} `json:"-"` 292 XXX_unrecognized []byte `json:"-"` 293 XXX_sizecache int32 `json:"-"` 294 } 295 296 func (m *UpdateImageResponse) Reset() { *m = UpdateImageResponse{} } 297 func (*UpdateImageResponse) ProtoMessage() {} 298 func (*UpdateImageResponse) Descriptor() ([]byte, []int) { 299 return fileDescriptor_8666fa071128ae5f, []int{6} 300 } 301 func (m *UpdateImageResponse) XXX_Unmarshal(b []byte) error { 302 return m.Unmarshal(b) 303 } 304 func (m *UpdateImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 305 if deterministic { 306 return xxx_messageInfo_UpdateImageResponse.Marshal(b, m, deterministic) 307 } else { 308 b = b[:cap(b)] 309 n, err := m.MarshalTo(b) 310 if err != nil { 311 return nil, err 312 } 313 return b[:n], nil 314 } 315 } 316 func (m *UpdateImageResponse) XXX_Merge(src proto.Message) { 317 xxx_messageInfo_UpdateImageResponse.Merge(m, src) 318 } 319 func (m *UpdateImageResponse) XXX_Size() int { 320 return m.Size() 321 } 322 func (m *UpdateImageResponse) XXX_DiscardUnknown() { 323 xxx_messageInfo_UpdateImageResponse.DiscardUnknown(m) 324 } 325 326 var xxx_messageInfo_UpdateImageResponse proto.InternalMessageInfo 327 328 type ListImagesRequest struct { 329 // Filters contains one or more filters using the syntax defined in the 330 // containerd filter package. 331 // 332 // The returned result will be those that match any of the provided 333 // filters. Expanded, images that match the following will be 334 // returned: 335 // 336 // filters[0] or filters[1] or ... or filters[n-1] or filters[n] 337 // 338 // If filters is zero-length or nil, all items will be returned. 339 Filters []string `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` 340 XXX_NoUnkeyedLiteral struct{} `json:"-"` 341 XXX_unrecognized []byte `json:"-"` 342 XXX_sizecache int32 `json:"-"` 343 } 344 345 func (m *ListImagesRequest) Reset() { *m = ListImagesRequest{} } 346 func (*ListImagesRequest) ProtoMessage() {} 347 func (*ListImagesRequest) Descriptor() ([]byte, []int) { 348 return fileDescriptor_8666fa071128ae5f, []int{7} 349 } 350 func (m *ListImagesRequest) XXX_Unmarshal(b []byte) error { 351 return m.Unmarshal(b) 352 } 353 func (m *ListImagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 354 if deterministic { 355 return xxx_messageInfo_ListImagesRequest.Marshal(b, m, deterministic) 356 } else { 357 b = b[:cap(b)] 358 n, err := m.MarshalTo(b) 359 if err != nil { 360 return nil, err 361 } 362 return b[:n], nil 363 } 364 } 365 func (m *ListImagesRequest) XXX_Merge(src proto.Message) { 366 xxx_messageInfo_ListImagesRequest.Merge(m, src) 367 } 368 func (m *ListImagesRequest) XXX_Size() int { 369 return m.Size() 370 } 371 func (m *ListImagesRequest) XXX_DiscardUnknown() { 372 xxx_messageInfo_ListImagesRequest.DiscardUnknown(m) 373 } 374 375 var xxx_messageInfo_ListImagesRequest proto.InternalMessageInfo 376 377 type ListImagesResponse struct { 378 Images []Image `protobuf:"bytes,1,rep,name=images,proto3" json:"images"` 379 XXX_NoUnkeyedLiteral struct{} `json:"-"` 380 XXX_unrecognized []byte `json:"-"` 381 XXX_sizecache int32 `json:"-"` 382 } 383 384 func (m *ListImagesResponse) Reset() { *m = ListImagesResponse{} } 385 func (*ListImagesResponse) ProtoMessage() {} 386 func (*ListImagesResponse) Descriptor() ([]byte, []int) { 387 return fileDescriptor_8666fa071128ae5f, []int{8} 388 } 389 func (m *ListImagesResponse) XXX_Unmarshal(b []byte) error { 390 return m.Unmarshal(b) 391 } 392 func (m *ListImagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 393 if deterministic { 394 return xxx_messageInfo_ListImagesResponse.Marshal(b, m, deterministic) 395 } else { 396 b = b[:cap(b)] 397 n, err := m.MarshalTo(b) 398 if err != nil { 399 return nil, err 400 } 401 return b[:n], nil 402 } 403 } 404 func (m *ListImagesResponse) XXX_Merge(src proto.Message) { 405 xxx_messageInfo_ListImagesResponse.Merge(m, src) 406 } 407 func (m *ListImagesResponse) XXX_Size() int { 408 return m.Size() 409 } 410 func (m *ListImagesResponse) XXX_DiscardUnknown() { 411 xxx_messageInfo_ListImagesResponse.DiscardUnknown(m) 412 } 413 414 var xxx_messageInfo_ListImagesResponse proto.InternalMessageInfo 415 416 type DeleteImageRequest struct { 417 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 418 // Sync indicates that the delete and cleanup should be done 419 // synchronously before returning to the caller 420 // 421 // Default is false 422 Sync bool `protobuf:"varint,2,opt,name=sync,proto3" json:"sync,omitempty"` 423 XXX_NoUnkeyedLiteral struct{} `json:"-"` 424 XXX_unrecognized []byte `json:"-"` 425 XXX_sizecache int32 `json:"-"` 426 } 427 428 func (m *DeleteImageRequest) Reset() { *m = DeleteImageRequest{} } 429 func (*DeleteImageRequest) ProtoMessage() {} 430 func (*DeleteImageRequest) Descriptor() ([]byte, []int) { 431 return fileDescriptor_8666fa071128ae5f, []int{9} 432 } 433 func (m *DeleteImageRequest) XXX_Unmarshal(b []byte) error { 434 return m.Unmarshal(b) 435 } 436 func (m *DeleteImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 437 if deterministic { 438 return xxx_messageInfo_DeleteImageRequest.Marshal(b, m, deterministic) 439 } else { 440 b = b[:cap(b)] 441 n, err := m.MarshalTo(b) 442 if err != nil { 443 return nil, err 444 } 445 return b[:n], nil 446 } 447 } 448 func (m *DeleteImageRequest) XXX_Merge(src proto.Message) { 449 xxx_messageInfo_DeleteImageRequest.Merge(m, src) 450 } 451 func (m *DeleteImageRequest) XXX_Size() int { 452 return m.Size() 453 } 454 func (m *DeleteImageRequest) XXX_DiscardUnknown() { 455 xxx_messageInfo_DeleteImageRequest.DiscardUnknown(m) 456 } 457 458 var xxx_messageInfo_DeleteImageRequest proto.InternalMessageInfo 459 460 func init() { 461 proto.RegisterType((*Image)(nil), "containerd.services.images.v1.Image") 462 proto.RegisterMapType((map[string]string)(nil), "containerd.services.images.v1.Image.LabelsEntry") 463 proto.RegisterType((*GetImageRequest)(nil), "containerd.services.images.v1.GetImageRequest") 464 proto.RegisterType((*GetImageResponse)(nil), "containerd.services.images.v1.GetImageResponse") 465 proto.RegisterType((*CreateImageRequest)(nil), "containerd.services.images.v1.CreateImageRequest") 466 proto.RegisterType((*CreateImageResponse)(nil), "containerd.services.images.v1.CreateImageResponse") 467 proto.RegisterType((*UpdateImageRequest)(nil), "containerd.services.images.v1.UpdateImageRequest") 468 proto.RegisterType((*UpdateImageResponse)(nil), "containerd.services.images.v1.UpdateImageResponse") 469 proto.RegisterType((*ListImagesRequest)(nil), "containerd.services.images.v1.ListImagesRequest") 470 proto.RegisterType((*ListImagesResponse)(nil), "containerd.services.images.v1.ListImagesResponse") 471 proto.RegisterType((*DeleteImageRequest)(nil), "containerd.services.images.v1.DeleteImageRequest") 472 } 473 474 func init() { 475 proto.RegisterFile("github.com/containerd/containerd/api/services/images/v1/images.proto", fileDescriptor_8666fa071128ae5f) 476 } 477 478 var fileDescriptor_8666fa071128ae5f = []byte{ 479 // 659 bytes of a gzipped FileDescriptorProto 480 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcd, 0x6e, 0xd3, 0x40, 481 0x10, 0x8e, 0x93, 0xd4, 0x6d, 0x27, 0x07, 0xca, 0x52, 0x21, 0xcb, 0x40, 0x1a, 0x45, 0x20, 0xe5, 482 0xc2, 0x9a, 0x86, 0x0b, 0xb4, 0x08, 0xd1, 0xb4, 0xa5, 0x20, 0x15, 0x0e, 0xe6, 0xaf, 0xe2, 0x52, 483 0x6d, 0x92, 0x89, 0xb1, 0x62, 0xc7, 0xc6, 0xbb, 0x89, 0x94, 0x1b, 0x8f, 0x80, 0x04, 0x0f, 0xd5, 484 0x23, 0x47, 0x4e, 0x40, 0x73, 0xe0, 0x39, 0x90, 0x77, 0x37, 0x34, 0x4d, 0x22, 0x92, 0x94, 0xde, 485 0x66, 0xed, 0xef, 0x9b, 0x9f, 0x6f, 0x66, 0x76, 0x61, 0xcf, 0xf3, 0xc5, 0x87, 0x6e, 0x9d, 0x36, 486 0xa2, 0xd0, 0x69, 0x44, 0x1d, 0xc1, 0xfc, 0x0e, 0x26, 0xcd, 0x51, 0x93, 0xc5, 0xbe, 0xc3, 0x31, 487 0xe9, 0xf9, 0x0d, 0xe4, 0x8e, 0x1f, 0x32, 0x0f, 0xb9, 0xd3, 0xdb, 0xd4, 0x16, 0x8d, 0x93, 0x48, 488 0x44, 0xe4, 0xd6, 0x19, 0x9e, 0x0e, 0xb1, 0x54, 0x23, 0x7a, 0x9b, 0xf6, 0xba, 0x17, 0x79, 0x91, 489 0x44, 0x3a, 0xa9, 0xa5, 0x48, 0xf6, 0x0d, 0x2f, 0x8a, 0xbc, 0x00, 0x1d, 0x79, 0xaa, 0x77, 0x5b, 490 0x0e, 0x86, 0xb1, 0xe8, 0xeb, 0x9f, 0xa5, 0xf1, 0x9f, 0x2d, 0x1f, 0x83, 0xe6, 0x71, 0xc8, 0x78, 491 0x5b, 0x23, 0x36, 0xc6, 0x11, 0xc2, 0x0f, 0x91, 0x0b, 0x16, 0xc6, 0x1a, 0xb0, 0x3d, 0x57, 0x69, 492 0xa2, 0x1f, 0x23, 0x77, 0x9a, 0xc8, 0x1b, 0x89, 0x1f, 0x8b, 0x28, 0x51, 0xe4, 0xf2, 0xef, 0x2c, 493 0x2c, 0x3d, 0x4f, 0x0b, 0x20, 0x04, 0xf2, 0x1d, 0x16, 0xa2, 0x65, 0x94, 0x8c, 0xca, 0xaa, 0x2b, 494 0x6d, 0xf2, 0x0c, 0xcc, 0x80, 0xd5, 0x31, 0xe0, 0x56, 0xb6, 0x94, 0xab, 0x14, 0xaa, 0xf7, 0xe8, 495 0x3f, 0x05, 0xa0, 0xd2, 0x13, 0x3d, 0x94, 0x94, 0xfd, 0x8e, 0x48, 0xfa, 0xae, 0xe6, 0x93, 0x2d, 496 0x30, 0x05, 0x4b, 0x3c, 0x14, 0x56, 0xae, 0x64, 0x54, 0x0a, 0xd5, 0x9b, 0xa3, 0x9e, 0x64, 0x6e, 497 0x74, 0xef, 0x6f, 0x6e, 0xb5, 0xfc, 0xc9, 0x8f, 0x8d, 0x8c, 0xab, 0x19, 0x64, 0x17, 0xa0, 0x91, 498 0x20, 0x13, 0xd8, 0x3c, 0x66, 0xc2, 0x5a, 0x96, 0x7c, 0x9b, 0x2a, 0x59, 0xe8, 0x50, 0x16, 0xfa, 499 0x7a, 0x28, 0x4b, 0x6d, 0x25, 0x65, 0x7f, 0xfe, 0xb9, 0x61, 0xb8, 0xab, 0x9a, 0xb7, 0x23, 0x9d, 500 0x74, 0xe3, 0xe6, 0xd0, 0xc9, 0xca, 0x22, 0x4e, 0x34, 0x6f, 0x47, 0xd8, 0x0f, 0xa1, 0x30, 0x52, 501 0x1c, 0x59, 0x83, 0x5c, 0x1b, 0xfb, 0x5a, 0xb1, 0xd4, 0x24, 0xeb, 0xb0, 0xd4, 0x63, 0x41, 0x17, 502 0xad, 0xac, 0xfc, 0xa6, 0x0e, 0x5b, 0xd9, 0x07, 0x46, 0xf9, 0x0e, 0x5c, 0x39, 0x40, 0x21, 0x05, 503 0x72, 0xf1, 0x63, 0x17, 0xb9, 0x98, 0xa6, 0x78, 0xf9, 0x25, 0xac, 0x9d, 0xc1, 0x78, 0x1c, 0x75, 504 0x38, 0x92, 0x2d, 0x58, 0x92, 0x12, 0x4b, 0x60, 0xa1, 0x7a, 0x7b, 0x9e, 0x26, 0xb8, 0x8a, 0x52, 505 0x7e, 0x0b, 0x64, 0x57, 0x6a, 0x70, 0x2e, 0xf2, 0x93, 0x0b, 0x78, 0xd4, 0x4d, 0xd1, 0x7e, 0xdf, 506 0xc1, 0xb5, 0x73, 0x7e, 0x75, 0xaa, 0xff, 0xef, 0xf8, 0x8b, 0x01, 0xe4, 0x8d, 0x14, 0xfc, 0x72, 507 0x33, 0x26, 0xdb, 0x50, 0x50, 0x8d, 0x94, 0xcb, 0x25, 0x1b, 0x34, 0x6d, 0x02, 0x9e, 0xa6, 0xfb, 508 0xf7, 0x82, 0xf1, 0xb6, 0xab, 0xe7, 0x25, 0xb5, 0xd3, 0x72, 0xcf, 0x25, 0x75, 0x69, 0xe5, 0xde, 509 0x85, 0xab, 0x87, 0x3e, 0x57, 0x0d, 0xe7, 0xc3, 0x62, 0x2d, 0x58, 0x6e, 0xf9, 0x81, 0xc0, 0x84, 510 0x5b, 0x46, 0x29, 0x57, 0x59, 0x75, 0x87, 0xc7, 0xf2, 0x11, 0x90, 0x51, 0xb8, 0x4e, 0xa3, 0x06, 511 0xa6, 0x0a, 0x22, 0xe1, 0x8b, 0xe5, 0xa1, 0x99, 0xe5, 0x47, 0x40, 0xf6, 0x30, 0xc0, 0x31, 0xd9, 512 0xa7, 0x5d, 0x0a, 0x04, 0xf2, 0xbc, 0xdf, 0x69, 0x48, 0x05, 0x57, 0x5c, 0x69, 0x57, 0xbf, 0xe6, 513 0xc1, 0x54, 0x49, 0x91, 0x16, 0xe4, 0x0e, 0x50, 0x10, 0x3a, 0x23, 0x87, 0xb1, 0x65, 0xb0, 0x9d, 514 0xb9, 0xf1, 0xba, 0xe8, 0x36, 0xe4, 0x53, 0x29, 0xc8, 0xac, 0x3b, 0x69, 0x42, 0x5e, 0x7b, 0x73, 515 0x01, 0x86, 0x0e, 0x16, 0x81, 0xa9, 0xc6, 0x9d, 0xcc, 0x22, 0x4f, 0x6e, 0x9b, 0x5d, 0x5d, 0x84, 516 0x72, 0x16, 0x50, 0x0d, 0xdc, 0xcc, 0x80, 0x93, 0xcb, 0x32, 0x33, 0xe0, 0xb4, 0x51, 0x7e, 0x05, 517 0xa6, 0xea, 0xff, 0xcc, 0x80, 0x93, 0x63, 0x62, 0x5f, 0x9f, 0x58, 0xa3, 0xfd, 0xf4, 0x8d, 0xab, 518 0x1d, 0x9d, 0x9c, 0x16, 0x33, 0xdf, 0x4f, 0x8b, 0x99, 0x4f, 0x83, 0xa2, 0x71, 0x32, 0x28, 0x1a, 519 0xdf, 0x06, 0x45, 0xe3, 0xd7, 0xa0, 0x68, 0xbc, 0x7f, 0x7c, 0xc1, 0xf7, 0x78, 0x5b, 0x59, 0x47, 520 0x99, 0xba, 0x29, 0x63, 0xdd, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0x24, 0x4e, 0xca, 0x64, 0xda, 521 0x07, 0x00, 0x00, 522 } 523 524 // Reference imports to suppress errors if they are not otherwise used. 525 var _ context.Context 526 var _ grpc.ClientConn 527 528 // This is a compile-time assertion to ensure that this generated file 529 // is compatible with the grpc package it is being compiled against. 530 const _ = grpc.SupportPackageIsVersion4 531 532 // ImagesClient is the client API for Images service. 533 // 534 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 535 type ImagesClient interface { 536 // Get returns an image by name. 537 Get(ctx context.Context, in *GetImageRequest, opts ...grpc.CallOption) (*GetImageResponse, error) 538 // List returns a list of all images known to containerd. 539 List(ctx context.Context, in *ListImagesRequest, opts ...grpc.CallOption) (*ListImagesResponse, error) 540 // Create an image record in the metadata store. 541 // 542 // The name of the image must be unique. 543 Create(ctx context.Context, in *CreateImageRequest, opts ...grpc.CallOption) (*CreateImageResponse, error) 544 // Update assigns the name to a given target image based on the provided 545 // image. 546 Update(ctx context.Context, in *UpdateImageRequest, opts ...grpc.CallOption) (*UpdateImageResponse, error) 547 // Delete deletes the image by name. 548 Delete(ctx context.Context, in *DeleteImageRequest, opts ...grpc.CallOption) (*types1.Empty, error) 549 } 550 551 type imagesClient struct { 552 cc *grpc.ClientConn 553 } 554 555 func NewImagesClient(cc *grpc.ClientConn) ImagesClient { 556 return &imagesClient{cc} 557 } 558 559 func (c *imagesClient) Get(ctx context.Context, in *GetImageRequest, opts ...grpc.CallOption) (*GetImageResponse, error) { 560 out := new(GetImageResponse) 561 err := c.cc.Invoke(ctx, "/containerd.services.images.v1.Images/Get", in, out, opts...) 562 if err != nil { 563 return nil, err 564 } 565 return out, nil 566 } 567 568 func (c *imagesClient) List(ctx context.Context, in *ListImagesRequest, opts ...grpc.CallOption) (*ListImagesResponse, error) { 569 out := new(ListImagesResponse) 570 err := c.cc.Invoke(ctx, "/containerd.services.images.v1.Images/List", in, out, opts...) 571 if err != nil { 572 return nil, err 573 } 574 return out, nil 575 } 576 577 func (c *imagesClient) Create(ctx context.Context, in *CreateImageRequest, opts ...grpc.CallOption) (*CreateImageResponse, error) { 578 out := new(CreateImageResponse) 579 err := c.cc.Invoke(ctx, "/containerd.services.images.v1.Images/Create", in, out, opts...) 580 if err != nil { 581 return nil, err 582 } 583 return out, nil 584 } 585 586 func (c *imagesClient) Update(ctx context.Context, in *UpdateImageRequest, opts ...grpc.CallOption) (*UpdateImageResponse, error) { 587 out := new(UpdateImageResponse) 588 err := c.cc.Invoke(ctx, "/containerd.services.images.v1.Images/Update", in, out, opts...) 589 if err != nil { 590 return nil, err 591 } 592 return out, nil 593 } 594 595 func (c *imagesClient) Delete(ctx context.Context, in *DeleteImageRequest, opts ...grpc.CallOption) (*types1.Empty, error) { 596 out := new(types1.Empty) 597 err := c.cc.Invoke(ctx, "/containerd.services.images.v1.Images/Delete", in, out, opts...) 598 if err != nil { 599 return nil, err 600 } 601 return out, nil 602 } 603 604 // ImagesServer is the server API for Images service. 605 type ImagesServer interface { 606 // Get returns an image by name. 607 Get(context.Context, *GetImageRequest) (*GetImageResponse, error) 608 // List returns a list of all images known to containerd. 609 List(context.Context, *ListImagesRequest) (*ListImagesResponse, error) 610 // Create an image record in the metadata store. 611 // 612 // The name of the image must be unique. 613 Create(context.Context, *CreateImageRequest) (*CreateImageResponse, error) 614 // Update assigns the name to a given target image based on the provided 615 // image. 616 Update(context.Context, *UpdateImageRequest) (*UpdateImageResponse, error) 617 // Delete deletes the image by name. 618 Delete(context.Context, *DeleteImageRequest) (*types1.Empty, error) 619 } 620 621 func RegisterImagesServer(s *grpc.Server, srv ImagesServer) { 622 s.RegisterService(&_Images_serviceDesc, srv) 623 } 624 625 func _Images_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 626 in := new(GetImageRequest) 627 if err := dec(in); err != nil { 628 return nil, err 629 } 630 if interceptor == nil { 631 return srv.(ImagesServer).Get(ctx, in) 632 } 633 info := &grpc.UnaryServerInfo{ 634 Server: srv, 635 FullMethod: "/containerd.services.images.v1.Images/Get", 636 } 637 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 638 return srv.(ImagesServer).Get(ctx, req.(*GetImageRequest)) 639 } 640 return interceptor(ctx, in, info, handler) 641 } 642 643 func _Images_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 644 in := new(ListImagesRequest) 645 if err := dec(in); err != nil { 646 return nil, err 647 } 648 if interceptor == nil { 649 return srv.(ImagesServer).List(ctx, in) 650 } 651 info := &grpc.UnaryServerInfo{ 652 Server: srv, 653 FullMethod: "/containerd.services.images.v1.Images/List", 654 } 655 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 656 return srv.(ImagesServer).List(ctx, req.(*ListImagesRequest)) 657 } 658 return interceptor(ctx, in, info, handler) 659 } 660 661 func _Images_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 662 in := new(CreateImageRequest) 663 if err := dec(in); err != nil { 664 return nil, err 665 } 666 if interceptor == nil { 667 return srv.(ImagesServer).Create(ctx, in) 668 } 669 info := &grpc.UnaryServerInfo{ 670 Server: srv, 671 FullMethod: "/containerd.services.images.v1.Images/Create", 672 } 673 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 674 return srv.(ImagesServer).Create(ctx, req.(*CreateImageRequest)) 675 } 676 return interceptor(ctx, in, info, handler) 677 } 678 679 func _Images_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 680 in := new(UpdateImageRequest) 681 if err := dec(in); err != nil { 682 return nil, err 683 } 684 if interceptor == nil { 685 return srv.(ImagesServer).Update(ctx, in) 686 } 687 info := &grpc.UnaryServerInfo{ 688 Server: srv, 689 FullMethod: "/containerd.services.images.v1.Images/Update", 690 } 691 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 692 return srv.(ImagesServer).Update(ctx, req.(*UpdateImageRequest)) 693 } 694 return interceptor(ctx, in, info, handler) 695 } 696 697 func _Images_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 698 in := new(DeleteImageRequest) 699 if err := dec(in); err != nil { 700 return nil, err 701 } 702 if interceptor == nil { 703 return srv.(ImagesServer).Delete(ctx, in) 704 } 705 info := &grpc.UnaryServerInfo{ 706 Server: srv, 707 FullMethod: "/containerd.services.images.v1.Images/Delete", 708 } 709 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 710 return srv.(ImagesServer).Delete(ctx, req.(*DeleteImageRequest)) 711 } 712 return interceptor(ctx, in, info, handler) 713 } 714 715 var _Images_serviceDesc = grpc.ServiceDesc{ 716 ServiceName: "containerd.services.images.v1.Images", 717 HandlerType: (*ImagesServer)(nil), 718 Methods: []grpc.MethodDesc{ 719 { 720 MethodName: "Get", 721 Handler: _Images_Get_Handler, 722 }, 723 { 724 MethodName: "List", 725 Handler: _Images_List_Handler, 726 }, 727 { 728 MethodName: "Create", 729 Handler: _Images_Create_Handler, 730 }, 731 { 732 MethodName: "Update", 733 Handler: _Images_Update_Handler, 734 }, 735 { 736 MethodName: "Delete", 737 Handler: _Images_Delete_Handler, 738 }, 739 }, 740 Streams: []grpc.StreamDesc{}, 741 Metadata: "github.com/containerd/containerd/api/services/images/v1/images.proto", 742 } 743 744 func (m *Image) Marshal() (dAtA []byte, err error) { 745 size := m.Size() 746 dAtA = make([]byte, size) 747 n, err := m.MarshalTo(dAtA) 748 if err != nil { 749 return nil, err 750 } 751 return dAtA[:n], nil 752 } 753 754 func (m *Image) MarshalTo(dAtA []byte) (int, error) { 755 var i int 756 _ = i 757 var l int 758 _ = l 759 if len(m.Name) > 0 { 760 dAtA[i] = 0xa 761 i++ 762 i = encodeVarintImages(dAtA, i, uint64(len(m.Name))) 763 i += copy(dAtA[i:], m.Name) 764 } 765 if len(m.Labels) > 0 { 766 for k, _ := range m.Labels { 767 dAtA[i] = 0x12 768 i++ 769 v := m.Labels[k] 770 mapSize := 1 + len(k) + sovImages(uint64(len(k))) + 1 + len(v) + sovImages(uint64(len(v))) 771 i = encodeVarintImages(dAtA, i, uint64(mapSize)) 772 dAtA[i] = 0xa 773 i++ 774 i = encodeVarintImages(dAtA, i, uint64(len(k))) 775 i += copy(dAtA[i:], k) 776 dAtA[i] = 0x12 777 i++ 778 i = encodeVarintImages(dAtA, i, uint64(len(v))) 779 i += copy(dAtA[i:], v) 780 } 781 } 782 dAtA[i] = 0x1a 783 i++ 784 i = encodeVarintImages(dAtA, i, uint64(m.Target.Size())) 785 n1, err := m.Target.MarshalTo(dAtA[i:]) 786 if err != nil { 787 return 0, err 788 } 789 i += n1 790 dAtA[i] = 0x3a 791 i++ 792 i = encodeVarintImages(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt))) 793 n2, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.CreatedAt, dAtA[i:]) 794 if err != nil { 795 return 0, err 796 } 797 i += n2 798 dAtA[i] = 0x42 799 i++ 800 i = encodeVarintImages(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt))) 801 n3, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.UpdatedAt, dAtA[i:]) 802 if err != nil { 803 return 0, err 804 } 805 i += n3 806 if m.XXX_unrecognized != nil { 807 i += copy(dAtA[i:], m.XXX_unrecognized) 808 } 809 return i, nil 810 } 811 812 func (m *GetImageRequest) Marshal() (dAtA []byte, err error) { 813 size := m.Size() 814 dAtA = make([]byte, size) 815 n, err := m.MarshalTo(dAtA) 816 if err != nil { 817 return nil, err 818 } 819 return dAtA[:n], nil 820 } 821 822 func (m *GetImageRequest) MarshalTo(dAtA []byte) (int, error) { 823 var i int 824 _ = i 825 var l int 826 _ = l 827 if len(m.Name) > 0 { 828 dAtA[i] = 0xa 829 i++ 830 i = encodeVarintImages(dAtA, i, uint64(len(m.Name))) 831 i += copy(dAtA[i:], m.Name) 832 } 833 if m.XXX_unrecognized != nil { 834 i += copy(dAtA[i:], m.XXX_unrecognized) 835 } 836 return i, nil 837 } 838 839 func (m *GetImageResponse) Marshal() (dAtA []byte, err error) { 840 size := m.Size() 841 dAtA = make([]byte, size) 842 n, err := m.MarshalTo(dAtA) 843 if err != nil { 844 return nil, err 845 } 846 return dAtA[:n], nil 847 } 848 849 func (m *GetImageResponse) MarshalTo(dAtA []byte) (int, error) { 850 var i int 851 _ = i 852 var l int 853 _ = l 854 if m.Image != nil { 855 dAtA[i] = 0xa 856 i++ 857 i = encodeVarintImages(dAtA, i, uint64(m.Image.Size())) 858 n4, err := m.Image.MarshalTo(dAtA[i:]) 859 if err != nil { 860 return 0, err 861 } 862 i += n4 863 } 864 if m.XXX_unrecognized != nil { 865 i += copy(dAtA[i:], m.XXX_unrecognized) 866 } 867 return i, nil 868 } 869 870 func (m *CreateImageRequest) Marshal() (dAtA []byte, err error) { 871 size := m.Size() 872 dAtA = make([]byte, size) 873 n, err := m.MarshalTo(dAtA) 874 if err != nil { 875 return nil, err 876 } 877 return dAtA[:n], nil 878 } 879 880 func (m *CreateImageRequest) MarshalTo(dAtA []byte) (int, error) { 881 var i int 882 _ = i 883 var l int 884 _ = l 885 dAtA[i] = 0xa 886 i++ 887 i = encodeVarintImages(dAtA, i, uint64(m.Image.Size())) 888 n5, err := m.Image.MarshalTo(dAtA[i:]) 889 if err != nil { 890 return 0, err 891 } 892 i += n5 893 if m.XXX_unrecognized != nil { 894 i += copy(dAtA[i:], m.XXX_unrecognized) 895 } 896 return i, nil 897 } 898 899 func (m *CreateImageResponse) Marshal() (dAtA []byte, err error) { 900 size := m.Size() 901 dAtA = make([]byte, size) 902 n, err := m.MarshalTo(dAtA) 903 if err != nil { 904 return nil, err 905 } 906 return dAtA[:n], nil 907 } 908 909 func (m *CreateImageResponse) MarshalTo(dAtA []byte) (int, error) { 910 var i int 911 _ = i 912 var l int 913 _ = l 914 dAtA[i] = 0xa 915 i++ 916 i = encodeVarintImages(dAtA, i, uint64(m.Image.Size())) 917 n6, err := m.Image.MarshalTo(dAtA[i:]) 918 if err != nil { 919 return 0, err 920 } 921 i += n6 922 if m.XXX_unrecognized != nil { 923 i += copy(dAtA[i:], m.XXX_unrecognized) 924 } 925 return i, nil 926 } 927 928 func (m *UpdateImageRequest) Marshal() (dAtA []byte, err error) { 929 size := m.Size() 930 dAtA = make([]byte, size) 931 n, err := m.MarshalTo(dAtA) 932 if err != nil { 933 return nil, err 934 } 935 return dAtA[:n], nil 936 } 937 938 func (m *UpdateImageRequest) MarshalTo(dAtA []byte) (int, error) { 939 var i int 940 _ = i 941 var l int 942 _ = l 943 dAtA[i] = 0xa 944 i++ 945 i = encodeVarintImages(dAtA, i, uint64(m.Image.Size())) 946 n7, err := m.Image.MarshalTo(dAtA[i:]) 947 if err != nil { 948 return 0, err 949 } 950 i += n7 951 if m.UpdateMask != nil { 952 dAtA[i] = 0x12 953 i++ 954 i = encodeVarintImages(dAtA, i, uint64(m.UpdateMask.Size())) 955 n8, err := m.UpdateMask.MarshalTo(dAtA[i:]) 956 if err != nil { 957 return 0, err 958 } 959 i += n8 960 } 961 if m.XXX_unrecognized != nil { 962 i += copy(dAtA[i:], m.XXX_unrecognized) 963 } 964 return i, nil 965 } 966 967 func (m *UpdateImageResponse) Marshal() (dAtA []byte, err error) { 968 size := m.Size() 969 dAtA = make([]byte, size) 970 n, err := m.MarshalTo(dAtA) 971 if err != nil { 972 return nil, err 973 } 974 return dAtA[:n], nil 975 } 976 977 func (m *UpdateImageResponse) MarshalTo(dAtA []byte) (int, error) { 978 var i int 979 _ = i 980 var l int 981 _ = l 982 dAtA[i] = 0xa 983 i++ 984 i = encodeVarintImages(dAtA, i, uint64(m.Image.Size())) 985 n9, err := m.Image.MarshalTo(dAtA[i:]) 986 if err != nil { 987 return 0, err 988 } 989 i += n9 990 if m.XXX_unrecognized != nil { 991 i += copy(dAtA[i:], m.XXX_unrecognized) 992 } 993 return i, nil 994 } 995 996 func (m *ListImagesRequest) Marshal() (dAtA []byte, err error) { 997 size := m.Size() 998 dAtA = make([]byte, size) 999 n, err := m.MarshalTo(dAtA) 1000 if err != nil { 1001 return nil, err 1002 } 1003 return dAtA[:n], nil 1004 } 1005 1006 func (m *ListImagesRequest) MarshalTo(dAtA []byte) (int, error) { 1007 var i int 1008 _ = i 1009 var l int 1010 _ = l 1011 if len(m.Filters) > 0 { 1012 for _, s := range m.Filters { 1013 dAtA[i] = 0xa 1014 i++ 1015 l = len(s) 1016 for l >= 1<<7 { 1017 dAtA[i] = uint8(uint64(l)&0x7f | 0x80) 1018 l >>= 7 1019 i++ 1020 } 1021 dAtA[i] = uint8(l) 1022 i++ 1023 i += copy(dAtA[i:], s) 1024 } 1025 } 1026 if m.XXX_unrecognized != nil { 1027 i += copy(dAtA[i:], m.XXX_unrecognized) 1028 } 1029 return i, nil 1030 } 1031 1032 func (m *ListImagesResponse) Marshal() (dAtA []byte, err error) { 1033 size := m.Size() 1034 dAtA = make([]byte, size) 1035 n, err := m.MarshalTo(dAtA) 1036 if err != nil { 1037 return nil, err 1038 } 1039 return dAtA[:n], nil 1040 } 1041 1042 func (m *ListImagesResponse) MarshalTo(dAtA []byte) (int, error) { 1043 var i int 1044 _ = i 1045 var l int 1046 _ = l 1047 if len(m.Images) > 0 { 1048 for _, msg := range m.Images { 1049 dAtA[i] = 0xa 1050 i++ 1051 i = encodeVarintImages(dAtA, i, uint64(msg.Size())) 1052 n, err := msg.MarshalTo(dAtA[i:]) 1053 if err != nil { 1054 return 0, err 1055 } 1056 i += n 1057 } 1058 } 1059 if m.XXX_unrecognized != nil { 1060 i += copy(dAtA[i:], m.XXX_unrecognized) 1061 } 1062 return i, nil 1063 } 1064 1065 func (m *DeleteImageRequest) Marshal() (dAtA []byte, err error) { 1066 size := m.Size() 1067 dAtA = make([]byte, size) 1068 n, err := m.MarshalTo(dAtA) 1069 if err != nil { 1070 return nil, err 1071 } 1072 return dAtA[:n], nil 1073 } 1074 1075 func (m *DeleteImageRequest) MarshalTo(dAtA []byte) (int, error) { 1076 var i int 1077 _ = i 1078 var l int 1079 _ = l 1080 if len(m.Name) > 0 { 1081 dAtA[i] = 0xa 1082 i++ 1083 i = encodeVarintImages(dAtA, i, uint64(len(m.Name))) 1084 i += copy(dAtA[i:], m.Name) 1085 } 1086 if m.Sync { 1087 dAtA[i] = 0x10 1088 i++ 1089 if m.Sync { 1090 dAtA[i] = 1 1091 } else { 1092 dAtA[i] = 0 1093 } 1094 i++ 1095 } 1096 if m.XXX_unrecognized != nil { 1097 i += copy(dAtA[i:], m.XXX_unrecognized) 1098 } 1099 return i, nil 1100 } 1101 1102 func encodeVarintImages(dAtA []byte, offset int, v uint64) int { 1103 for v >= 1<<7 { 1104 dAtA[offset] = uint8(v&0x7f | 0x80) 1105 v >>= 7 1106 offset++ 1107 } 1108 dAtA[offset] = uint8(v) 1109 return offset + 1 1110 } 1111 func (m *Image) Size() (n int) { 1112 if m == nil { 1113 return 0 1114 } 1115 var l int 1116 _ = l 1117 l = len(m.Name) 1118 if l > 0 { 1119 n += 1 + l + sovImages(uint64(l)) 1120 } 1121 if len(m.Labels) > 0 { 1122 for k, v := range m.Labels { 1123 _ = k 1124 _ = v 1125 mapEntrySize := 1 + len(k) + sovImages(uint64(len(k))) + 1 + len(v) + sovImages(uint64(len(v))) 1126 n += mapEntrySize + 1 + sovImages(uint64(mapEntrySize)) 1127 } 1128 } 1129 l = m.Target.Size() 1130 n += 1 + l + sovImages(uint64(l)) 1131 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.CreatedAt) 1132 n += 1 + l + sovImages(uint64(l)) 1133 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.UpdatedAt) 1134 n += 1 + l + sovImages(uint64(l)) 1135 if m.XXX_unrecognized != nil { 1136 n += len(m.XXX_unrecognized) 1137 } 1138 return n 1139 } 1140 1141 func (m *GetImageRequest) Size() (n int) { 1142 if m == nil { 1143 return 0 1144 } 1145 var l int 1146 _ = l 1147 l = len(m.Name) 1148 if l > 0 { 1149 n += 1 + l + sovImages(uint64(l)) 1150 } 1151 if m.XXX_unrecognized != nil { 1152 n += len(m.XXX_unrecognized) 1153 } 1154 return n 1155 } 1156 1157 func (m *GetImageResponse) Size() (n int) { 1158 if m == nil { 1159 return 0 1160 } 1161 var l int 1162 _ = l 1163 if m.Image != nil { 1164 l = m.Image.Size() 1165 n += 1 + l + sovImages(uint64(l)) 1166 } 1167 if m.XXX_unrecognized != nil { 1168 n += len(m.XXX_unrecognized) 1169 } 1170 return n 1171 } 1172 1173 func (m *CreateImageRequest) Size() (n int) { 1174 if m == nil { 1175 return 0 1176 } 1177 var l int 1178 _ = l 1179 l = m.Image.Size() 1180 n += 1 + l + sovImages(uint64(l)) 1181 if m.XXX_unrecognized != nil { 1182 n += len(m.XXX_unrecognized) 1183 } 1184 return n 1185 } 1186 1187 func (m *CreateImageResponse) Size() (n int) { 1188 if m == nil { 1189 return 0 1190 } 1191 var l int 1192 _ = l 1193 l = m.Image.Size() 1194 n += 1 + l + sovImages(uint64(l)) 1195 if m.XXX_unrecognized != nil { 1196 n += len(m.XXX_unrecognized) 1197 } 1198 return n 1199 } 1200 1201 func (m *UpdateImageRequest) Size() (n int) { 1202 if m == nil { 1203 return 0 1204 } 1205 var l int 1206 _ = l 1207 l = m.Image.Size() 1208 n += 1 + l + sovImages(uint64(l)) 1209 if m.UpdateMask != nil { 1210 l = m.UpdateMask.Size() 1211 n += 1 + l + sovImages(uint64(l)) 1212 } 1213 if m.XXX_unrecognized != nil { 1214 n += len(m.XXX_unrecognized) 1215 } 1216 return n 1217 } 1218 1219 func (m *UpdateImageResponse) Size() (n int) { 1220 if m == nil { 1221 return 0 1222 } 1223 var l int 1224 _ = l 1225 l = m.Image.Size() 1226 n += 1 + l + sovImages(uint64(l)) 1227 if m.XXX_unrecognized != nil { 1228 n += len(m.XXX_unrecognized) 1229 } 1230 return n 1231 } 1232 1233 func (m *ListImagesRequest) Size() (n int) { 1234 if m == nil { 1235 return 0 1236 } 1237 var l int 1238 _ = l 1239 if len(m.Filters) > 0 { 1240 for _, s := range m.Filters { 1241 l = len(s) 1242 n += 1 + l + sovImages(uint64(l)) 1243 } 1244 } 1245 if m.XXX_unrecognized != nil { 1246 n += len(m.XXX_unrecognized) 1247 } 1248 return n 1249 } 1250 1251 func (m *ListImagesResponse) Size() (n int) { 1252 if m == nil { 1253 return 0 1254 } 1255 var l int 1256 _ = l 1257 if len(m.Images) > 0 { 1258 for _, e := range m.Images { 1259 l = e.Size() 1260 n += 1 + l + sovImages(uint64(l)) 1261 } 1262 } 1263 if m.XXX_unrecognized != nil { 1264 n += len(m.XXX_unrecognized) 1265 } 1266 return n 1267 } 1268 1269 func (m *DeleteImageRequest) Size() (n int) { 1270 if m == nil { 1271 return 0 1272 } 1273 var l int 1274 _ = l 1275 l = len(m.Name) 1276 if l > 0 { 1277 n += 1 + l + sovImages(uint64(l)) 1278 } 1279 if m.Sync { 1280 n += 2 1281 } 1282 if m.XXX_unrecognized != nil { 1283 n += len(m.XXX_unrecognized) 1284 } 1285 return n 1286 } 1287 1288 func sovImages(x uint64) (n int) { 1289 for { 1290 n++ 1291 x >>= 7 1292 if x == 0 { 1293 break 1294 } 1295 } 1296 return n 1297 } 1298 func sozImages(x uint64) (n int) { 1299 return sovImages(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1300 } 1301 func (this *Image) String() string { 1302 if this == nil { 1303 return "nil" 1304 } 1305 keysForLabels := make([]string, 0, len(this.Labels)) 1306 for k, _ := range this.Labels { 1307 keysForLabels = append(keysForLabels, k) 1308 } 1309 github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) 1310 mapStringForLabels := "map[string]string{" 1311 for _, k := range keysForLabels { 1312 mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k]) 1313 } 1314 mapStringForLabels += "}" 1315 s := strings.Join([]string{`&Image{`, 1316 `Name:` + fmt.Sprintf("%v", this.Name) + `,`, 1317 `Labels:` + mapStringForLabels + `,`, 1318 `Target:` + strings.Replace(strings.Replace(this.Target.String(), "Descriptor", "types.Descriptor", 1), `&`, ``, 1) + `,`, 1319 `CreatedAt:` + strings.Replace(strings.Replace(this.CreatedAt.String(), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 1320 `UpdatedAt:` + strings.Replace(strings.Replace(this.UpdatedAt.String(), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 1321 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1322 `}`, 1323 }, "") 1324 return s 1325 } 1326 func (this *GetImageRequest) String() string { 1327 if this == nil { 1328 return "nil" 1329 } 1330 s := strings.Join([]string{`&GetImageRequest{`, 1331 `Name:` + fmt.Sprintf("%v", this.Name) + `,`, 1332 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1333 `}`, 1334 }, "") 1335 return s 1336 } 1337 func (this *GetImageResponse) String() string { 1338 if this == nil { 1339 return "nil" 1340 } 1341 s := strings.Join([]string{`&GetImageResponse{`, 1342 `Image:` + strings.Replace(fmt.Sprintf("%v", this.Image), "Image", "Image", 1) + `,`, 1343 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1344 `}`, 1345 }, "") 1346 return s 1347 } 1348 func (this *CreateImageRequest) String() string { 1349 if this == nil { 1350 return "nil" 1351 } 1352 s := strings.Join([]string{`&CreateImageRequest{`, 1353 `Image:` + strings.Replace(strings.Replace(this.Image.String(), "Image", "Image", 1), `&`, ``, 1) + `,`, 1354 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1355 `}`, 1356 }, "") 1357 return s 1358 } 1359 func (this *CreateImageResponse) String() string { 1360 if this == nil { 1361 return "nil" 1362 } 1363 s := strings.Join([]string{`&CreateImageResponse{`, 1364 `Image:` + strings.Replace(strings.Replace(this.Image.String(), "Image", "Image", 1), `&`, ``, 1) + `,`, 1365 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1366 `}`, 1367 }, "") 1368 return s 1369 } 1370 func (this *UpdateImageRequest) String() string { 1371 if this == nil { 1372 return "nil" 1373 } 1374 s := strings.Join([]string{`&UpdateImageRequest{`, 1375 `Image:` + strings.Replace(strings.Replace(this.Image.String(), "Image", "Image", 1), `&`, ``, 1) + `,`, 1376 `UpdateMask:` + strings.Replace(fmt.Sprintf("%v", this.UpdateMask), "FieldMask", "types1.FieldMask", 1) + `,`, 1377 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1378 `}`, 1379 }, "") 1380 return s 1381 } 1382 func (this *UpdateImageResponse) String() string { 1383 if this == nil { 1384 return "nil" 1385 } 1386 s := strings.Join([]string{`&UpdateImageResponse{`, 1387 `Image:` + strings.Replace(strings.Replace(this.Image.String(), "Image", "Image", 1), `&`, ``, 1) + `,`, 1388 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1389 `}`, 1390 }, "") 1391 return s 1392 } 1393 func (this *ListImagesRequest) String() string { 1394 if this == nil { 1395 return "nil" 1396 } 1397 s := strings.Join([]string{`&ListImagesRequest{`, 1398 `Filters:` + fmt.Sprintf("%v", this.Filters) + `,`, 1399 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1400 `}`, 1401 }, "") 1402 return s 1403 } 1404 func (this *ListImagesResponse) String() string { 1405 if this == nil { 1406 return "nil" 1407 } 1408 s := strings.Join([]string{`&ListImagesResponse{`, 1409 `Images:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Images), "Image", "Image", 1), `&`, ``, 1) + `,`, 1410 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1411 `}`, 1412 }, "") 1413 return s 1414 } 1415 func (this *DeleteImageRequest) String() string { 1416 if this == nil { 1417 return "nil" 1418 } 1419 s := strings.Join([]string{`&DeleteImageRequest{`, 1420 `Name:` + fmt.Sprintf("%v", this.Name) + `,`, 1421 `Sync:` + fmt.Sprintf("%v", this.Sync) + `,`, 1422 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1423 `}`, 1424 }, "") 1425 return s 1426 } 1427 func valueToStringImages(v interface{}) string { 1428 rv := reflect.ValueOf(v) 1429 if rv.IsNil() { 1430 return "nil" 1431 } 1432 pv := reflect.Indirect(rv).Interface() 1433 return fmt.Sprintf("*%v", pv) 1434 } 1435 func (m *Image) Unmarshal(dAtA []byte) error { 1436 l := len(dAtA) 1437 iNdEx := 0 1438 for iNdEx < l { 1439 preIndex := iNdEx 1440 var wire uint64 1441 for shift := uint(0); ; shift += 7 { 1442 if shift >= 64 { 1443 return ErrIntOverflowImages 1444 } 1445 if iNdEx >= l { 1446 return io.ErrUnexpectedEOF 1447 } 1448 b := dAtA[iNdEx] 1449 iNdEx++ 1450 wire |= uint64(b&0x7F) << shift 1451 if b < 0x80 { 1452 break 1453 } 1454 } 1455 fieldNum := int32(wire >> 3) 1456 wireType := int(wire & 0x7) 1457 if wireType == 4 { 1458 return fmt.Errorf("proto: Image: wiretype end group for non-group") 1459 } 1460 if fieldNum <= 0 { 1461 return fmt.Errorf("proto: Image: illegal tag %d (wire type %d)", fieldNum, wire) 1462 } 1463 switch fieldNum { 1464 case 1: 1465 if wireType != 2 { 1466 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 1467 } 1468 var stringLen uint64 1469 for shift := uint(0); ; shift += 7 { 1470 if shift >= 64 { 1471 return ErrIntOverflowImages 1472 } 1473 if iNdEx >= l { 1474 return io.ErrUnexpectedEOF 1475 } 1476 b := dAtA[iNdEx] 1477 iNdEx++ 1478 stringLen |= uint64(b&0x7F) << shift 1479 if b < 0x80 { 1480 break 1481 } 1482 } 1483 intStringLen := int(stringLen) 1484 if intStringLen < 0 { 1485 return ErrInvalidLengthImages 1486 } 1487 postIndex := iNdEx + intStringLen 1488 if postIndex < 0 { 1489 return ErrInvalidLengthImages 1490 } 1491 if postIndex > l { 1492 return io.ErrUnexpectedEOF 1493 } 1494 m.Name = string(dAtA[iNdEx:postIndex]) 1495 iNdEx = postIndex 1496 case 2: 1497 if wireType != 2 { 1498 return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) 1499 } 1500 var msglen int 1501 for shift := uint(0); ; shift += 7 { 1502 if shift >= 64 { 1503 return ErrIntOverflowImages 1504 } 1505 if iNdEx >= l { 1506 return io.ErrUnexpectedEOF 1507 } 1508 b := dAtA[iNdEx] 1509 iNdEx++ 1510 msglen |= int(b&0x7F) << shift 1511 if b < 0x80 { 1512 break 1513 } 1514 } 1515 if msglen < 0 { 1516 return ErrInvalidLengthImages 1517 } 1518 postIndex := iNdEx + msglen 1519 if postIndex < 0 { 1520 return ErrInvalidLengthImages 1521 } 1522 if postIndex > l { 1523 return io.ErrUnexpectedEOF 1524 } 1525 if m.Labels == nil { 1526 m.Labels = make(map[string]string) 1527 } 1528 var mapkey string 1529 var mapvalue string 1530 for iNdEx < postIndex { 1531 entryPreIndex := iNdEx 1532 var wire uint64 1533 for shift := uint(0); ; shift += 7 { 1534 if shift >= 64 { 1535 return ErrIntOverflowImages 1536 } 1537 if iNdEx >= l { 1538 return io.ErrUnexpectedEOF 1539 } 1540 b := dAtA[iNdEx] 1541 iNdEx++ 1542 wire |= uint64(b&0x7F) << shift 1543 if b < 0x80 { 1544 break 1545 } 1546 } 1547 fieldNum := int32(wire >> 3) 1548 if fieldNum == 1 { 1549 var stringLenmapkey uint64 1550 for shift := uint(0); ; shift += 7 { 1551 if shift >= 64 { 1552 return ErrIntOverflowImages 1553 } 1554 if iNdEx >= l { 1555 return io.ErrUnexpectedEOF 1556 } 1557 b := dAtA[iNdEx] 1558 iNdEx++ 1559 stringLenmapkey |= uint64(b&0x7F) << shift 1560 if b < 0x80 { 1561 break 1562 } 1563 } 1564 intStringLenmapkey := int(stringLenmapkey) 1565 if intStringLenmapkey < 0 { 1566 return ErrInvalidLengthImages 1567 } 1568 postStringIndexmapkey := iNdEx + intStringLenmapkey 1569 if postStringIndexmapkey < 0 { 1570 return ErrInvalidLengthImages 1571 } 1572 if postStringIndexmapkey > l { 1573 return io.ErrUnexpectedEOF 1574 } 1575 mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) 1576 iNdEx = postStringIndexmapkey 1577 } else if fieldNum == 2 { 1578 var stringLenmapvalue uint64 1579 for shift := uint(0); ; shift += 7 { 1580 if shift >= 64 { 1581 return ErrIntOverflowImages 1582 } 1583 if iNdEx >= l { 1584 return io.ErrUnexpectedEOF 1585 } 1586 b := dAtA[iNdEx] 1587 iNdEx++ 1588 stringLenmapvalue |= uint64(b&0x7F) << shift 1589 if b < 0x80 { 1590 break 1591 } 1592 } 1593 intStringLenmapvalue := int(stringLenmapvalue) 1594 if intStringLenmapvalue < 0 { 1595 return ErrInvalidLengthImages 1596 } 1597 postStringIndexmapvalue := iNdEx + intStringLenmapvalue 1598 if postStringIndexmapvalue < 0 { 1599 return ErrInvalidLengthImages 1600 } 1601 if postStringIndexmapvalue > l { 1602 return io.ErrUnexpectedEOF 1603 } 1604 mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) 1605 iNdEx = postStringIndexmapvalue 1606 } else { 1607 iNdEx = entryPreIndex 1608 skippy, err := skipImages(dAtA[iNdEx:]) 1609 if err != nil { 1610 return err 1611 } 1612 if skippy < 0 { 1613 return ErrInvalidLengthImages 1614 } 1615 if (iNdEx + skippy) > postIndex { 1616 return io.ErrUnexpectedEOF 1617 } 1618 iNdEx += skippy 1619 } 1620 } 1621 m.Labels[mapkey] = mapvalue 1622 iNdEx = postIndex 1623 case 3: 1624 if wireType != 2 { 1625 return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) 1626 } 1627 var msglen int 1628 for shift := uint(0); ; shift += 7 { 1629 if shift >= 64 { 1630 return ErrIntOverflowImages 1631 } 1632 if iNdEx >= l { 1633 return io.ErrUnexpectedEOF 1634 } 1635 b := dAtA[iNdEx] 1636 iNdEx++ 1637 msglen |= int(b&0x7F) << shift 1638 if b < 0x80 { 1639 break 1640 } 1641 } 1642 if msglen < 0 { 1643 return ErrInvalidLengthImages 1644 } 1645 postIndex := iNdEx + msglen 1646 if postIndex < 0 { 1647 return ErrInvalidLengthImages 1648 } 1649 if postIndex > l { 1650 return io.ErrUnexpectedEOF 1651 } 1652 if err := m.Target.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1653 return err 1654 } 1655 iNdEx = postIndex 1656 case 7: 1657 if wireType != 2 { 1658 return fmt.Errorf("proto: wrong wireType = %d for field CreatedAt", wireType) 1659 } 1660 var msglen int 1661 for shift := uint(0); ; shift += 7 { 1662 if shift >= 64 { 1663 return ErrIntOverflowImages 1664 } 1665 if iNdEx >= l { 1666 return io.ErrUnexpectedEOF 1667 } 1668 b := dAtA[iNdEx] 1669 iNdEx++ 1670 msglen |= int(b&0x7F) << shift 1671 if b < 0x80 { 1672 break 1673 } 1674 } 1675 if msglen < 0 { 1676 return ErrInvalidLengthImages 1677 } 1678 postIndex := iNdEx + msglen 1679 if postIndex < 0 { 1680 return ErrInvalidLengthImages 1681 } 1682 if postIndex > l { 1683 return io.ErrUnexpectedEOF 1684 } 1685 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.CreatedAt, dAtA[iNdEx:postIndex]); err != nil { 1686 return err 1687 } 1688 iNdEx = postIndex 1689 case 8: 1690 if wireType != 2 { 1691 return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAt", wireType) 1692 } 1693 var msglen int 1694 for shift := uint(0); ; shift += 7 { 1695 if shift >= 64 { 1696 return ErrIntOverflowImages 1697 } 1698 if iNdEx >= l { 1699 return io.ErrUnexpectedEOF 1700 } 1701 b := dAtA[iNdEx] 1702 iNdEx++ 1703 msglen |= int(b&0x7F) << shift 1704 if b < 0x80 { 1705 break 1706 } 1707 } 1708 if msglen < 0 { 1709 return ErrInvalidLengthImages 1710 } 1711 postIndex := iNdEx + msglen 1712 if postIndex < 0 { 1713 return ErrInvalidLengthImages 1714 } 1715 if postIndex > l { 1716 return io.ErrUnexpectedEOF 1717 } 1718 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.UpdatedAt, dAtA[iNdEx:postIndex]); err != nil { 1719 return err 1720 } 1721 iNdEx = postIndex 1722 default: 1723 iNdEx = preIndex 1724 skippy, err := skipImages(dAtA[iNdEx:]) 1725 if err != nil { 1726 return err 1727 } 1728 if skippy < 0 { 1729 return ErrInvalidLengthImages 1730 } 1731 if (iNdEx + skippy) < 0 { 1732 return ErrInvalidLengthImages 1733 } 1734 if (iNdEx + skippy) > l { 1735 return io.ErrUnexpectedEOF 1736 } 1737 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1738 iNdEx += skippy 1739 } 1740 } 1741 1742 if iNdEx > l { 1743 return io.ErrUnexpectedEOF 1744 } 1745 return nil 1746 } 1747 func (m *GetImageRequest) Unmarshal(dAtA []byte) error { 1748 l := len(dAtA) 1749 iNdEx := 0 1750 for iNdEx < l { 1751 preIndex := iNdEx 1752 var wire uint64 1753 for shift := uint(0); ; shift += 7 { 1754 if shift >= 64 { 1755 return ErrIntOverflowImages 1756 } 1757 if iNdEx >= l { 1758 return io.ErrUnexpectedEOF 1759 } 1760 b := dAtA[iNdEx] 1761 iNdEx++ 1762 wire |= uint64(b&0x7F) << shift 1763 if b < 0x80 { 1764 break 1765 } 1766 } 1767 fieldNum := int32(wire >> 3) 1768 wireType := int(wire & 0x7) 1769 if wireType == 4 { 1770 return fmt.Errorf("proto: GetImageRequest: wiretype end group for non-group") 1771 } 1772 if fieldNum <= 0 { 1773 return fmt.Errorf("proto: GetImageRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1774 } 1775 switch fieldNum { 1776 case 1: 1777 if wireType != 2 { 1778 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 1779 } 1780 var stringLen uint64 1781 for shift := uint(0); ; shift += 7 { 1782 if shift >= 64 { 1783 return ErrIntOverflowImages 1784 } 1785 if iNdEx >= l { 1786 return io.ErrUnexpectedEOF 1787 } 1788 b := dAtA[iNdEx] 1789 iNdEx++ 1790 stringLen |= uint64(b&0x7F) << shift 1791 if b < 0x80 { 1792 break 1793 } 1794 } 1795 intStringLen := int(stringLen) 1796 if intStringLen < 0 { 1797 return ErrInvalidLengthImages 1798 } 1799 postIndex := iNdEx + intStringLen 1800 if postIndex < 0 { 1801 return ErrInvalidLengthImages 1802 } 1803 if postIndex > l { 1804 return io.ErrUnexpectedEOF 1805 } 1806 m.Name = string(dAtA[iNdEx:postIndex]) 1807 iNdEx = postIndex 1808 default: 1809 iNdEx = preIndex 1810 skippy, err := skipImages(dAtA[iNdEx:]) 1811 if err != nil { 1812 return err 1813 } 1814 if skippy < 0 { 1815 return ErrInvalidLengthImages 1816 } 1817 if (iNdEx + skippy) < 0 { 1818 return ErrInvalidLengthImages 1819 } 1820 if (iNdEx + skippy) > l { 1821 return io.ErrUnexpectedEOF 1822 } 1823 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1824 iNdEx += skippy 1825 } 1826 } 1827 1828 if iNdEx > l { 1829 return io.ErrUnexpectedEOF 1830 } 1831 return nil 1832 } 1833 func (m *GetImageResponse) Unmarshal(dAtA []byte) error { 1834 l := len(dAtA) 1835 iNdEx := 0 1836 for iNdEx < l { 1837 preIndex := iNdEx 1838 var wire uint64 1839 for shift := uint(0); ; shift += 7 { 1840 if shift >= 64 { 1841 return ErrIntOverflowImages 1842 } 1843 if iNdEx >= l { 1844 return io.ErrUnexpectedEOF 1845 } 1846 b := dAtA[iNdEx] 1847 iNdEx++ 1848 wire |= uint64(b&0x7F) << shift 1849 if b < 0x80 { 1850 break 1851 } 1852 } 1853 fieldNum := int32(wire >> 3) 1854 wireType := int(wire & 0x7) 1855 if wireType == 4 { 1856 return fmt.Errorf("proto: GetImageResponse: wiretype end group for non-group") 1857 } 1858 if fieldNum <= 0 { 1859 return fmt.Errorf("proto: GetImageResponse: illegal tag %d (wire type %d)", fieldNum, wire) 1860 } 1861 switch fieldNum { 1862 case 1: 1863 if wireType != 2 { 1864 return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) 1865 } 1866 var msglen int 1867 for shift := uint(0); ; shift += 7 { 1868 if shift >= 64 { 1869 return ErrIntOverflowImages 1870 } 1871 if iNdEx >= l { 1872 return io.ErrUnexpectedEOF 1873 } 1874 b := dAtA[iNdEx] 1875 iNdEx++ 1876 msglen |= int(b&0x7F) << shift 1877 if b < 0x80 { 1878 break 1879 } 1880 } 1881 if msglen < 0 { 1882 return ErrInvalidLengthImages 1883 } 1884 postIndex := iNdEx + msglen 1885 if postIndex < 0 { 1886 return ErrInvalidLengthImages 1887 } 1888 if postIndex > l { 1889 return io.ErrUnexpectedEOF 1890 } 1891 if m.Image == nil { 1892 m.Image = &Image{} 1893 } 1894 if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1895 return err 1896 } 1897 iNdEx = postIndex 1898 default: 1899 iNdEx = preIndex 1900 skippy, err := skipImages(dAtA[iNdEx:]) 1901 if err != nil { 1902 return err 1903 } 1904 if skippy < 0 { 1905 return ErrInvalidLengthImages 1906 } 1907 if (iNdEx + skippy) < 0 { 1908 return ErrInvalidLengthImages 1909 } 1910 if (iNdEx + skippy) > l { 1911 return io.ErrUnexpectedEOF 1912 } 1913 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1914 iNdEx += skippy 1915 } 1916 } 1917 1918 if iNdEx > l { 1919 return io.ErrUnexpectedEOF 1920 } 1921 return nil 1922 } 1923 func (m *CreateImageRequest) Unmarshal(dAtA []byte) error { 1924 l := len(dAtA) 1925 iNdEx := 0 1926 for iNdEx < l { 1927 preIndex := iNdEx 1928 var wire uint64 1929 for shift := uint(0); ; shift += 7 { 1930 if shift >= 64 { 1931 return ErrIntOverflowImages 1932 } 1933 if iNdEx >= l { 1934 return io.ErrUnexpectedEOF 1935 } 1936 b := dAtA[iNdEx] 1937 iNdEx++ 1938 wire |= uint64(b&0x7F) << shift 1939 if b < 0x80 { 1940 break 1941 } 1942 } 1943 fieldNum := int32(wire >> 3) 1944 wireType := int(wire & 0x7) 1945 if wireType == 4 { 1946 return fmt.Errorf("proto: CreateImageRequest: wiretype end group for non-group") 1947 } 1948 if fieldNum <= 0 { 1949 return fmt.Errorf("proto: CreateImageRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1950 } 1951 switch fieldNum { 1952 case 1: 1953 if wireType != 2 { 1954 return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) 1955 } 1956 var msglen int 1957 for shift := uint(0); ; shift += 7 { 1958 if shift >= 64 { 1959 return ErrIntOverflowImages 1960 } 1961 if iNdEx >= l { 1962 return io.ErrUnexpectedEOF 1963 } 1964 b := dAtA[iNdEx] 1965 iNdEx++ 1966 msglen |= int(b&0x7F) << shift 1967 if b < 0x80 { 1968 break 1969 } 1970 } 1971 if msglen < 0 { 1972 return ErrInvalidLengthImages 1973 } 1974 postIndex := iNdEx + msglen 1975 if postIndex < 0 { 1976 return ErrInvalidLengthImages 1977 } 1978 if postIndex > l { 1979 return io.ErrUnexpectedEOF 1980 } 1981 if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1982 return err 1983 } 1984 iNdEx = postIndex 1985 default: 1986 iNdEx = preIndex 1987 skippy, err := skipImages(dAtA[iNdEx:]) 1988 if err != nil { 1989 return err 1990 } 1991 if skippy < 0 { 1992 return ErrInvalidLengthImages 1993 } 1994 if (iNdEx + skippy) < 0 { 1995 return ErrInvalidLengthImages 1996 } 1997 if (iNdEx + skippy) > l { 1998 return io.ErrUnexpectedEOF 1999 } 2000 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2001 iNdEx += skippy 2002 } 2003 } 2004 2005 if iNdEx > l { 2006 return io.ErrUnexpectedEOF 2007 } 2008 return nil 2009 } 2010 func (m *CreateImageResponse) Unmarshal(dAtA []byte) error { 2011 l := len(dAtA) 2012 iNdEx := 0 2013 for iNdEx < l { 2014 preIndex := iNdEx 2015 var wire uint64 2016 for shift := uint(0); ; shift += 7 { 2017 if shift >= 64 { 2018 return ErrIntOverflowImages 2019 } 2020 if iNdEx >= l { 2021 return io.ErrUnexpectedEOF 2022 } 2023 b := dAtA[iNdEx] 2024 iNdEx++ 2025 wire |= uint64(b&0x7F) << shift 2026 if b < 0x80 { 2027 break 2028 } 2029 } 2030 fieldNum := int32(wire >> 3) 2031 wireType := int(wire & 0x7) 2032 if wireType == 4 { 2033 return fmt.Errorf("proto: CreateImageResponse: wiretype end group for non-group") 2034 } 2035 if fieldNum <= 0 { 2036 return fmt.Errorf("proto: CreateImageResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2037 } 2038 switch fieldNum { 2039 case 1: 2040 if wireType != 2 { 2041 return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) 2042 } 2043 var msglen int 2044 for shift := uint(0); ; shift += 7 { 2045 if shift >= 64 { 2046 return ErrIntOverflowImages 2047 } 2048 if iNdEx >= l { 2049 return io.ErrUnexpectedEOF 2050 } 2051 b := dAtA[iNdEx] 2052 iNdEx++ 2053 msglen |= int(b&0x7F) << shift 2054 if b < 0x80 { 2055 break 2056 } 2057 } 2058 if msglen < 0 { 2059 return ErrInvalidLengthImages 2060 } 2061 postIndex := iNdEx + msglen 2062 if postIndex < 0 { 2063 return ErrInvalidLengthImages 2064 } 2065 if postIndex > l { 2066 return io.ErrUnexpectedEOF 2067 } 2068 if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2069 return err 2070 } 2071 iNdEx = postIndex 2072 default: 2073 iNdEx = preIndex 2074 skippy, err := skipImages(dAtA[iNdEx:]) 2075 if err != nil { 2076 return err 2077 } 2078 if skippy < 0 { 2079 return ErrInvalidLengthImages 2080 } 2081 if (iNdEx + skippy) < 0 { 2082 return ErrInvalidLengthImages 2083 } 2084 if (iNdEx + skippy) > l { 2085 return io.ErrUnexpectedEOF 2086 } 2087 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2088 iNdEx += skippy 2089 } 2090 } 2091 2092 if iNdEx > l { 2093 return io.ErrUnexpectedEOF 2094 } 2095 return nil 2096 } 2097 func (m *UpdateImageRequest) Unmarshal(dAtA []byte) error { 2098 l := len(dAtA) 2099 iNdEx := 0 2100 for iNdEx < l { 2101 preIndex := iNdEx 2102 var wire uint64 2103 for shift := uint(0); ; shift += 7 { 2104 if shift >= 64 { 2105 return ErrIntOverflowImages 2106 } 2107 if iNdEx >= l { 2108 return io.ErrUnexpectedEOF 2109 } 2110 b := dAtA[iNdEx] 2111 iNdEx++ 2112 wire |= uint64(b&0x7F) << shift 2113 if b < 0x80 { 2114 break 2115 } 2116 } 2117 fieldNum := int32(wire >> 3) 2118 wireType := int(wire & 0x7) 2119 if wireType == 4 { 2120 return fmt.Errorf("proto: UpdateImageRequest: wiretype end group for non-group") 2121 } 2122 if fieldNum <= 0 { 2123 return fmt.Errorf("proto: UpdateImageRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2124 } 2125 switch fieldNum { 2126 case 1: 2127 if wireType != 2 { 2128 return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) 2129 } 2130 var msglen int 2131 for shift := uint(0); ; shift += 7 { 2132 if shift >= 64 { 2133 return ErrIntOverflowImages 2134 } 2135 if iNdEx >= l { 2136 return io.ErrUnexpectedEOF 2137 } 2138 b := dAtA[iNdEx] 2139 iNdEx++ 2140 msglen |= int(b&0x7F) << shift 2141 if b < 0x80 { 2142 break 2143 } 2144 } 2145 if msglen < 0 { 2146 return ErrInvalidLengthImages 2147 } 2148 postIndex := iNdEx + msglen 2149 if postIndex < 0 { 2150 return ErrInvalidLengthImages 2151 } 2152 if postIndex > l { 2153 return io.ErrUnexpectedEOF 2154 } 2155 if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2156 return err 2157 } 2158 iNdEx = postIndex 2159 case 2: 2160 if wireType != 2 { 2161 return fmt.Errorf("proto: wrong wireType = %d for field UpdateMask", wireType) 2162 } 2163 var msglen int 2164 for shift := uint(0); ; shift += 7 { 2165 if shift >= 64 { 2166 return ErrIntOverflowImages 2167 } 2168 if iNdEx >= l { 2169 return io.ErrUnexpectedEOF 2170 } 2171 b := dAtA[iNdEx] 2172 iNdEx++ 2173 msglen |= int(b&0x7F) << shift 2174 if b < 0x80 { 2175 break 2176 } 2177 } 2178 if msglen < 0 { 2179 return ErrInvalidLengthImages 2180 } 2181 postIndex := iNdEx + msglen 2182 if postIndex < 0 { 2183 return ErrInvalidLengthImages 2184 } 2185 if postIndex > l { 2186 return io.ErrUnexpectedEOF 2187 } 2188 if m.UpdateMask == nil { 2189 m.UpdateMask = &types1.FieldMask{} 2190 } 2191 if err := m.UpdateMask.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2192 return err 2193 } 2194 iNdEx = postIndex 2195 default: 2196 iNdEx = preIndex 2197 skippy, err := skipImages(dAtA[iNdEx:]) 2198 if err != nil { 2199 return err 2200 } 2201 if skippy < 0 { 2202 return ErrInvalidLengthImages 2203 } 2204 if (iNdEx + skippy) < 0 { 2205 return ErrInvalidLengthImages 2206 } 2207 if (iNdEx + skippy) > l { 2208 return io.ErrUnexpectedEOF 2209 } 2210 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2211 iNdEx += skippy 2212 } 2213 } 2214 2215 if iNdEx > l { 2216 return io.ErrUnexpectedEOF 2217 } 2218 return nil 2219 } 2220 func (m *UpdateImageResponse) Unmarshal(dAtA []byte) error { 2221 l := len(dAtA) 2222 iNdEx := 0 2223 for iNdEx < l { 2224 preIndex := iNdEx 2225 var wire uint64 2226 for shift := uint(0); ; shift += 7 { 2227 if shift >= 64 { 2228 return ErrIntOverflowImages 2229 } 2230 if iNdEx >= l { 2231 return io.ErrUnexpectedEOF 2232 } 2233 b := dAtA[iNdEx] 2234 iNdEx++ 2235 wire |= uint64(b&0x7F) << shift 2236 if b < 0x80 { 2237 break 2238 } 2239 } 2240 fieldNum := int32(wire >> 3) 2241 wireType := int(wire & 0x7) 2242 if wireType == 4 { 2243 return fmt.Errorf("proto: UpdateImageResponse: wiretype end group for non-group") 2244 } 2245 if fieldNum <= 0 { 2246 return fmt.Errorf("proto: UpdateImageResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2247 } 2248 switch fieldNum { 2249 case 1: 2250 if wireType != 2 { 2251 return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) 2252 } 2253 var msglen int 2254 for shift := uint(0); ; shift += 7 { 2255 if shift >= 64 { 2256 return ErrIntOverflowImages 2257 } 2258 if iNdEx >= l { 2259 return io.ErrUnexpectedEOF 2260 } 2261 b := dAtA[iNdEx] 2262 iNdEx++ 2263 msglen |= int(b&0x7F) << shift 2264 if b < 0x80 { 2265 break 2266 } 2267 } 2268 if msglen < 0 { 2269 return ErrInvalidLengthImages 2270 } 2271 postIndex := iNdEx + msglen 2272 if postIndex < 0 { 2273 return ErrInvalidLengthImages 2274 } 2275 if postIndex > l { 2276 return io.ErrUnexpectedEOF 2277 } 2278 if err := m.Image.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2279 return err 2280 } 2281 iNdEx = postIndex 2282 default: 2283 iNdEx = preIndex 2284 skippy, err := skipImages(dAtA[iNdEx:]) 2285 if err != nil { 2286 return err 2287 } 2288 if skippy < 0 { 2289 return ErrInvalidLengthImages 2290 } 2291 if (iNdEx + skippy) < 0 { 2292 return ErrInvalidLengthImages 2293 } 2294 if (iNdEx + skippy) > l { 2295 return io.ErrUnexpectedEOF 2296 } 2297 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2298 iNdEx += skippy 2299 } 2300 } 2301 2302 if iNdEx > l { 2303 return io.ErrUnexpectedEOF 2304 } 2305 return nil 2306 } 2307 func (m *ListImagesRequest) Unmarshal(dAtA []byte) error { 2308 l := len(dAtA) 2309 iNdEx := 0 2310 for iNdEx < l { 2311 preIndex := iNdEx 2312 var wire uint64 2313 for shift := uint(0); ; shift += 7 { 2314 if shift >= 64 { 2315 return ErrIntOverflowImages 2316 } 2317 if iNdEx >= l { 2318 return io.ErrUnexpectedEOF 2319 } 2320 b := dAtA[iNdEx] 2321 iNdEx++ 2322 wire |= uint64(b&0x7F) << shift 2323 if b < 0x80 { 2324 break 2325 } 2326 } 2327 fieldNum := int32(wire >> 3) 2328 wireType := int(wire & 0x7) 2329 if wireType == 4 { 2330 return fmt.Errorf("proto: ListImagesRequest: wiretype end group for non-group") 2331 } 2332 if fieldNum <= 0 { 2333 return fmt.Errorf("proto: ListImagesRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2334 } 2335 switch fieldNum { 2336 case 1: 2337 if wireType != 2 { 2338 return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) 2339 } 2340 var stringLen uint64 2341 for shift := uint(0); ; shift += 7 { 2342 if shift >= 64 { 2343 return ErrIntOverflowImages 2344 } 2345 if iNdEx >= l { 2346 return io.ErrUnexpectedEOF 2347 } 2348 b := dAtA[iNdEx] 2349 iNdEx++ 2350 stringLen |= uint64(b&0x7F) << shift 2351 if b < 0x80 { 2352 break 2353 } 2354 } 2355 intStringLen := int(stringLen) 2356 if intStringLen < 0 { 2357 return ErrInvalidLengthImages 2358 } 2359 postIndex := iNdEx + intStringLen 2360 if postIndex < 0 { 2361 return ErrInvalidLengthImages 2362 } 2363 if postIndex > l { 2364 return io.ErrUnexpectedEOF 2365 } 2366 m.Filters = append(m.Filters, string(dAtA[iNdEx:postIndex])) 2367 iNdEx = postIndex 2368 default: 2369 iNdEx = preIndex 2370 skippy, err := skipImages(dAtA[iNdEx:]) 2371 if err != nil { 2372 return err 2373 } 2374 if skippy < 0 { 2375 return ErrInvalidLengthImages 2376 } 2377 if (iNdEx + skippy) < 0 { 2378 return ErrInvalidLengthImages 2379 } 2380 if (iNdEx + skippy) > l { 2381 return io.ErrUnexpectedEOF 2382 } 2383 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2384 iNdEx += skippy 2385 } 2386 } 2387 2388 if iNdEx > l { 2389 return io.ErrUnexpectedEOF 2390 } 2391 return nil 2392 } 2393 func (m *ListImagesResponse) Unmarshal(dAtA []byte) error { 2394 l := len(dAtA) 2395 iNdEx := 0 2396 for iNdEx < l { 2397 preIndex := iNdEx 2398 var wire uint64 2399 for shift := uint(0); ; shift += 7 { 2400 if shift >= 64 { 2401 return ErrIntOverflowImages 2402 } 2403 if iNdEx >= l { 2404 return io.ErrUnexpectedEOF 2405 } 2406 b := dAtA[iNdEx] 2407 iNdEx++ 2408 wire |= uint64(b&0x7F) << shift 2409 if b < 0x80 { 2410 break 2411 } 2412 } 2413 fieldNum := int32(wire >> 3) 2414 wireType := int(wire & 0x7) 2415 if wireType == 4 { 2416 return fmt.Errorf("proto: ListImagesResponse: wiretype end group for non-group") 2417 } 2418 if fieldNum <= 0 { 2419 return fmt.Errorf("proto: ListImagesResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2420 } 2421 switch fieldNum { 2422 case 1: 2423 if wireType != 2 { 2424 return fmt.Errorf("proto: wrong wireType = %d for field Images", wireType) 2425 } 2426 var msglen int 2427 for shift := uint(0); ; shift += 7 { 2428 if shift >= 64 { 2429 return ErrIntOverflowImages 2430 } 2431 if iNdEx >= l { 2432 return io.ErrUnexpectedEOF 2433 } 2434 b := dAtA[iNdEx] 2435 iNdEx++ 2436 msglen |= int(b&0x7F) << shift 2437 if b < 0x80 { 2438 break 2439 } 2440 } 2441 if msglen < 0 { 2442 return ErrInvalidLengthImages 2443 } 2444 postIndex := iNdEx + msglen 2445 if postIndex < 0 { 2446 return ErrInvalidLengthImages 2447 } 2448 if postIndex > l { 2449 return io.ErrUnexpectedEOF 2450 } 2451 m.Images = append(m.Images, Image{}) 2452 if err := m.Images[len(m.Images)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 2453 return err 2454 } 2455 iNdEx = postIndex 2456 default: 2457 iNdEx = preIndex 2458 skippy, err := skipImages(dAtA[iNdEx:]) 2459 if err != nil { 2460 return err 2461 } 2462 if skippy < 0 { 2463 return ErrInvalidLengthImages 2464 } 2465 if (iNdEx + skippy) < 0 { 2466 return ErrInvalidLengthImages 2467 } 2468 if (iNdEx + skippy) > l { 2469 return io.ErrUnexpectedEOF 2470 } 2471 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2472 iNdEx += skippy 2473 } 2474 } 2475 2476 if iNdEx > l { 2477 return io.ErrUnexpectedEOF 2478 } 2479 return nil 2480 } 2481 func (m *DeleteImageRequest) Unmarshal(dAtA []byte) error { 2482 l := len(dAtA) 2483 iNdEx := 0 2484 for iNdEx < l { 2485 preIndex := iNdEx 2486 var wire uint64 2487 for shift := uint(0); ; shift += 7 { 2488 if shift >= 64 { 2489 return ErrIntOverflowImages 2490 } 2491 if iNdEx >= l { 2492 return io.ErrUnexpectedEOF 2493 } 2494 b := dAtA[iNdEx] 2495 iNdEx++ 2496 wire |= uint64(b&0x7F) << shift 2497 if b < 0x80 { 2498 break 2499 } 2500 } 2501 fieldNum := int32(wire >> 3) 2502 wireType := int(wire & 0x7) 2503 if wireType == 4 { 2504 return fmt.Errorf("proto: DeleteImageRequest: wiretype end group for non-group") 2505 } 2506 if fieldNum <= 0 { 2507 return fmt.Errorf("proto: DeleteImageRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2508 } 2509 switch fieldNum { 2510 case 1: 2511 if wireType != 2 { 2512 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 2513 } 2514 var stringLen uint64 2515 for shift := uint(0); ; shift += 7 { 2516 if shift >= 64 { 2517 return ErrIntOverflowImages 2518 } 2519 if iNdEx >= l { 2520 return io.ErrUnexpectedEOF 2521 } 2522 b := dAtA[iNdEx] 2523 iNdEx++ 2524 stringLen |= uint64(b&0x7F) << shift 2525 if b < 0x80 { 2526 break 2527 } 2528 } 2529 intStringLen := int(stringLen) 2530 if intStringLen < 0 { 2531 return ErrInvalidLengthImages 2532 } 2533 postIndex := iNdEx + intStringLen 2534 if postIndex < 0 { 2535 return ErrInvalidLengthImages 2536 } 2537 if postIndex > l { 2538 return io.ErrUnexpectedEOF 2539 } 2540 m.Name = string(dAtA[iNdEx:postIndex]) 2541 iNdEx = postIndex 2542 case 2: 2543 if wireType != 0 { 2544 return fmt.Errorf("proto: wrong wireType = %d for field Sync", wireType) 2545 } 2546 var v int 2547 for shift := uint(0); ; shift += 7 { 2548 if shift >= 64 { 2549 return ErrIntOverflowImages 2550 } 2551 if iNdEx >= l { 2552 return io.ErrUnexpectedEOF 2553 } 2554 b := dAtA[iNdEx] 2555 iNdEx++ 2556 v |= int(b&0x7F) << shift 2557 if b < 0x80 { 2558 break 2559 } 2560 } 2561 m.Sync = bool(v != 0) 2562 default: 2563 iNdEx = preIndex 2564 skippy, err := skipImages(dAtA[iNdEx:]) 2565 if err != nil { 2566 return err 2567 } 2568 if skippy < 0 { 2569 return ErrInvalidLengthImages 2570 } 2571 if (iNdEx + skippy) < 0 { 2572 return ErrInvalidLengthImages 2573 } 2574 if (iNdEx + skippy) > l { 2575 return io.ErrUnexpectedEOF 2576 } 2577 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2578 iNdEx += skippy 2579 } 2580 } 2581 2582 if iNdEx > l { 2583 return io.ErrUnexpectedEOF 2584 } 2585 return nil 2586 } 2587 func skipImages(dAtA []byte) (n int, err error) { 2588 l := len(dAtA) 2589 iNdEx := 0 2590 for iNdEx < l { 2591 var wire uint64 2592 for shift := uint(0); ; shift += 7 { 2593 if shift >= 64 { 2594 return 0, ErrIntOverflowImages 2595 } 2596 if iNdEx >= l { 2597 return 0, io.ErrUnexpectedEOF 2598 } 2599 b := dAtA[iNdEx] 2600 iNdEx++ 2601 wire |= (uint64(b) & 0x7F) << shift 2602 if b < 0x80 { 2603 break 2604 } 2605 } 2606 wireType := int(wire & 0x7) 2607 switch wireType { 2608 case 0: 2609 for shift := uint(0); ; shift += 7 { 2610 if shift >= 64 { 2611 return 0, ErrIntOverflowImages 2612 } 2613 if iNdEx >= l { 2614 return 0, io.ErrUnexpectedEOF 2615 } 2616 iNdEx++ 2617 if dAtA[iNdEx-1] < 0x80 { 2618 break 2619 } 2620 } 2621 return iNdEx, nil 2622 case 1: 2623 iNdEx += 8 2624 return iNdEx, nil 2625 case 2: 2626 var length int 2627 for shift := uint(0); ; shift += 7 { 2628 if shift >= 64 { 2629 return 0, ErrIntOverflowImages 2630 } 2631 if iNdEx >= l { 2632 return 0, io.ErrUnexpectedEOF 2633 } 2634 b := dAtA[iNdEx] 2635 iNdEx++ 2636 length |= (int(b) & 0x7F) << shift 2637 if b < 0x80 { 2638 break 2639 } 2640 } 2641 if length < 0 { 2642 return 0, ErrInvalidLengthImages 2643 } 2644 iNdEx += length 2645 if iNdEx < 0 { 2646 return 0, ErrInvalidLengthImages 2647 } 2648 return iNdEx, nil 2649 case 3: 2650 for { 2651 var innerWire uint64 2652 var start int = iNdEx 2653 for shift := uint(0); ; shift += 7 { 2654 if shift >= 64 { 2655 return 0, ErrIntOverflowImages 2656 } 2657 if iNdEx >= l { 2658 return 0, io.ErrUnexpectedEOF 2659 } 2660 b := dAtA[iNdEx] 2661 iNdEx++ 2662 innerWire |= (uint64(b) & 0x7F) << shift 2663 if b < 0x80 { 2664 break 2665 } 2666 } 2667 innerWireType := int(innerWire & 0x7) 2668 if innerWireType == 4 { 2669 break 2670 } 2671 next, err := skipImages(dAtA[start:]) 2672 if err != nil { 2673 return 0, err 2674 } 2675 iNdEx = start + next 2676 if iNdEx < 0 { 2677 return 0, ErrInvalidLengthImages 2678 } 2679 } 2680 return iNdEx, nil 2681 case 4: 2682 return iNdEx, nil 2683 case 5: 2684 iNdEx += 4 2685 return iNdEx, nil 2686 default: 2687 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 2688 } 2689 } 2690 panic("unreachable") 2691 } 2692 2693 var ( 2694 ErrInvalidLengthImages = fmt.Errorf("proto: negative length found during unmarshaling") 2695 ErrIntOverflowImages = fmt.Errorf("proto: integer overflow") 2696 )