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