github.com/argoproj/argo-cd@v1.8.7/pkg/apiclient/application/application.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: server/application/application.proto 3 4 // Application Service 5 // 6 // Application Service API performs CRUD actions against application resources 7 8 package application 9 10 import ( 11 context "context" 12 fmt "fmt" 13 v1alpha1 "github.com/argoproj/argo-cd/pkg/apis/application/v1alpha1" 14 apiclient "github.com/argoproj/argo-cd/reposerver/apiclient" 15 _ "github.com/gogo/protobuf/gogoproto" 16 github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" 17 proto "github.com/gogo/protobuf/proto" 18 _ "google.golang.org/genproto/googleapis/api/annotations" 19 grpc "google.golang.org/grpc" 20 codes "google.golang.org/grpc/codes" 21 status "google.golang.org/grpc/status" 22 io "io" 23 v11 "k8s.io/api/core/v1" 24 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 25 math "math" 26 math_bits "math/bits" 27 ) 28 29 // Reference imports to suppress errors if they are not otherwise used. 30 var _ = proto.Marshal 31 var _ = fmt.Errorf 32 var _ = math.Inf 33 34 // This is a compile-time assertion to ensure that this generated file 35 // is compatible with the proto package it is being compiled against. 36 // A compilation error at this line likely means your copy of the 37 // proto package needs to be updated. 38 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 39 40 // ApplicationQuery is a query for application resources 41 type ApplicationQuery struct { 42 // the application's name 43 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 44 // forces application reconciliation if set to true 45 Refresh *string `protobuf:"bytes,2,opt,name=refresh" json:"refresh,omitempty"` 46 // the project names to restrict returned list applications 47 Projects []string `protobuf:"bytes,3,rep,name=project" json:"project,omitempty"` 48 // when specified with a watch call, shows changes that occur after that particular version of a resource. 49 ResourceVersion string `protobuf:"bytes,4,opt,name=resourceVersion" json:"resourceVersion"` 50 // the selector to to restrict returned list to applications only with matched labels 51 Selector string `protobuf:"bytes,5,opt,name=selector" json:"selector"` 52 XXX_NoUnkeyedLiteral struct{} `json:"-"` 53 XXX_unrecognized []byte `json:"-"` 54 XXX_sizecache int32 `json:"-"` 55 } 56 57 func (m *ApplicationQuery) Reset() { *m = ApplicationQuery{} } 58 func (m *ApplicationQuery) String() string { return proto.CompactTextString(m) } 59 func (*ApplicationQuery) ProtoMessage() {} 60 func (*ApplicationQuery) Descriptor() ([]byte, []int) { 61 return fileDescriptor_df6e82b174b5eaec, []int{0} 62 } 63 func (m *ApplicationQuery) XXX_Unmarshal(b []byte) error { 64 return m.Unmarshal(b) 65 } 66 func (m *ApplicationQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 67 if deterministic { 68 return xxx_messageInfo_ApplicationQuery.Marshal(b, m, deterministic) 69 } else { 70 b = b[:cap(b)] 71 n, err := m.MarshalToSizedBuffer(b) 72 if err != nil { 73 return nil, err 74 } 75 return b[:n], nil 76 } 77 } 78 func (m *ApplicationQuery) XXX_Merge(src proto.Message) { 79 xxx_messageInfo_ApplicationQuery.Merge(m, src) 80 } 81 func (m *ApplicationQuery) XXX_Size() int { 82 return m.Size() 83 } 84 func (m *ApplicationQuery) XXX_DiscardUnknown() { 85 xxx_messageInfo_ApplicationQuery.DiscardUnknown(m) 86 } 87 88 var xxx_messageInfo_ApplicationQuery proto.InternalMessageInfo 89 90 func (m *ApplicationQuery) GetName() string { 91 if m != nil && m.Name != nil { 92 return *m.Name 93 } 94 return "" 95 } 96 97 func (m *ApplicationQuery) GetRefresh() string { 98 if m != nil && m.Refresh != nil { 99 return *m.Refresh 100 } 101 return "" 102 } 103 104 func (m *ApplicationQuery) GetProjects() []string { 105 if m != nil { 106 return m.Projects 107 } 108 return nil 109 } 110 111 func (m *ApplicationQuery) GetResourceVersion() string { 112 if m != nil { 113 return m.ResourceVersion 114 } 115 return "" 116 } 117 118 func (m *ApplicationQuery) GetSelector() string { 119 if m != nil { 120 return m.Selector 121 } 122 return "" 123 } 124 125 type RevisionMetadataQuery struct { 126 // the application's name 127 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 128 // the revision of the app 129 Revision *string `protobuf:"bytes,2,req,name=revision" json:"revision,omitempty"` 130 XXX_NoUnkeyedLiteral struct{} `json:"-"` 131 XXX_unrecognized []byte `json:"-"` 132 XXX_sizecache int32 `json:"-"` 133 } 134 135 func (m *RevisionMetadataQuery) Reset() { *m = RevisionMetadataQuery{} } 136 func (m *RevisionMetadataQuery) String() string { return proto.CompactTextString(m) } 137 func (*RevisionMetadataQuery) ProtoMessage() {} 138 func (*RevisionMetadataQuery) Descriptor() ([]byte, []int) { 139 return fileDescriptor_df6e82b174b5eaec, []int{1} 140 } 141 func (m *RevisionMetadataQuery) XXX_Unmarshal(b []byte) error { 142 return m.Unmarshal(b) 143 } 144 func (m *RevisionMetadataQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 145 if deterministic { 146 return xxx_messageInfo_RevisionMetadataQuery.Marshal(b, m, deterministic) 147 } else { 148 b = b[:cap(b)] 149 n, err := m.MarshalToSizedBuffer(b) 150 if err != nil { 151 return nil, err 152 } 153 return b[:n], nil 154 } 155 } 156 func (m *RevisionMetadataQuery) XXX_Merge(src proto.Message) { 157 xxx_messageInfo_RevisionMetadataQuery.Merge(m, src) 158 } 159 func (m *RevisionMetadataQuery) XXX_Size() int { 160 return m.Size() 161 } 162 func (m *RevisionMetadataQuery) XXX_DiscardUnknown() { 163 xxx_messageInfo_RevisionMetadataQuery.DiscardUnknown(m) 164 } 165 166 var xxx_messageInfo_RevisionMetadataQuery proto.InternalMessageInfo 167 168 func (m *RevisionMetadataQuery) GetName() string { 169 if m != nil && m.Name != nil { 170 return *m.Name 171 } 172 return "" 173 } 174 175 func (m *RevisionMetadataQuery) GetRevision() string { 176 if m != nil && m.Revision != nil { 177 return *m.Revision 178 } 179 return "" 180 } 181 182 // ApplicationEventsQuery is a query for application resource events 183 type ApplicationResourceEventsQuery struct { 184 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 185 ResourceNamespace string `protobuf:"bytes,2,req,name=resourceNamespace" json:"resourceNamespace"` 186 ResourceName string `protobuf:"bytes,3,req,name=resourceName" json:"resourceName"` 187 ResourceUID string `protobuf:"bytes,4,req,name=resourceUID" json:"resourceUID"` 188 XXX_NoUnkeyedLiteral struct{} `json:"-"` 189 XXX_unrecognized []byte `json:"-"` 190 XXX_sizecache int32 `json:"-"` 191 } 192 193 func (m *ApplicationResourceEventsQuery) Reset() { *m = ApplicationResourceEventsQuery{} } 194 func (m *ApplicationResourceEventsQuery) String() string { return proto.CompactTextString(m) } 195 func (*ApplicationResourceEventsQuery) ProtoMessage() {} 196 func (*ApplicationResourceEventsQuery) Descriptor() ([]byte, []int) { 197 return fileDescriptor_df6e82b174b5eaec, []int{2} 198 } 199 func (m *ApplicationResourceEventsQuery) XXX_Unmarshal(b []byte) error { 200 return m.Unmarshal(b) 201 } 202 func (m *ApplicationResourceEventsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 203 if deterministic { 204 return xxx_messageInfo_ApplicationResourceEventsQuery.Marshal(b, m, deterministic) 205 } else { 206 b = b[:cap(b)] 207 n, err := m.MarshalToSizedBuffer(b) 208 if err != nil { 209 return nil, err 210 } 211 return b[:n], nil 212 } 213 } 214 func (m *ApplicationResourceEventsQuery) XXX_Merge(src proto.Message) { 215 xxx_messageInfo_ApplicationResourceEventsQuery.Merge(m, src) 216 } 217 func (m *ApplicationResourceEventsQuery) XXX_Size() int { 218 return m.Size() 219 } 220 func (m *ApplicationResourceEventsQuery) XXX_DiscardUnknown() { 221 xxx_messageInfo_ApplicationResourceEventsQuery.DiscardUnknown(m) 222 } 223 224 var xxx_messageInfo_ApplicationResourceEventsQuery proto.InternalMessageInfo 225 226 func (m *ApplicationResourceEventsQuery) GetName() string { 227 if m != nil && m.Name != nil { 228 return *m.Name 229 } 230 return "" 231 } 232 233 func (m *ApplicationResourceEventsQuery) GetResourceNamespace() string { 234 if m != nil { 235 return m.ResourceNamespace 236 } 237 return "" 238 } 239 240 func (m *ApplicationResourceEventsQuery) GetResourceName() string { 241 if m != nil { 242 return m.ResourceName 243 } 244 return "" 245 } 246 247 func (m *ApplicationResourceEventsQuery) GetResourceUID() string { 248 if m != nil { 249 return m.ResourceUID 250 } 251 return "" 252 } 253 254 // ManifestQuery is a query for manifest resources 255 type ApplicationManifestQuery struct { 256 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 257 Revision string `protobuf:"bytes,2,opt,name=revision" json:"revision"` 258 XXX_NoUnkeyedLiteral struct{} `json:"-"` 259 XXX_unrecognized []byte `json:"-"` 260 XXX_sizecache int32 `json:"-"` 261 } 262 263 func (m *ApplicationManifestQuery) Reset() { *m = ApplicationManifestQuery{} } 264 func (m *ApplicationManifestQuery) String() string { return proto.CompactTextString(m) } 265 func (*ApplicationManifestQuery) ProtoMessage() {} 266 func (*ApplicationManifestQuery) Descriptor() ([]byte, []int) { 267 return fileDescriptor_df6e82b174b5eaec, []int{3} 268 } 269 func (m *ApplicationManifestQuery) XXX_Unmarshal(b []byte) error { 270 return m.Unmarshal(b) 271 } 272 func (m *ApplicationManifestQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 273 if deterministic { 274 return xxx_messageInfo_ApplicationManifestQuery.Marshal(b, m, deterministic) 275 } else { 276 b = b[:cap(b)] 277 n, err := m.MarshalToSizedBuffer(b) 278 if err != nil { 279 return nil, err 280 } 281 return b[:n], nil 282 } 283 } 284 func (m *ApplicationManifestQuery) XXX_Merge(src proto.Message) { 285 xxx_messageInfo_ApplicationManifestQuery.Merge(m, src) 286 } 287 func (m *ApplicationManifestQuery) XXX_Size() int { 288 return m.Size() 289 } 290 func (m *ApplicationManifestQuery) XXX_DiscardUnknown() { 291 xxx_messageInfo_ApplicationManifestQuery.DiscardUnknown(m) 292 } 293 294 var xxx_messageInfo_ApplicationManifestQuery proto.InternalMessageInfo 295 296 func (m *ApplicationManifestQuery) GetName() string { 297 if m != nil && m.Name != nil { 298 return *m.Name 299 } 300 return "" 301 } 302 303 func (m *ApplicationManifestQuery) GetRevision() string { 304 if m != nil { 305 return m.Revision 306 } 307 return "" 308 } 309 310 type ApplicationResponse struct { 311 XXX_NoUnkeyedLiteral struct{} `json:"-"` 312 XXX_unrecognized []byte `json:"-"` 313 XXX_sizecache int32 `json:"-"` 314 } 315 316 func (m *ApplicationResponse) Reset() { *m = ApplicationResponse{} } 317 func (m *ApplicationResponse) String() string { return proto.CompactTextString(m) } 318 func (*ApplicationResponse) ProtoMessage() {} 319 func (*ApplicationResponse) Descriptor() ([]byte, []int) { 320 return fileDescriptor_df6e82b174b5eaec, []int{4} 321 } 322 func (m *ApplicationResponse) XXX_Unmarshal(b []byte) error { 323 return m.Unmarshal(b) 324 } 325 func (m *ApplicationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 326 if deterministic { 327 return xxx_messageInfo_ApplicationResponse.Marshal(b, m, deterministic) 328 } else { 329 b = b[:cap(b)] 330 n, err := m.MarshalToSizedBuffer(b) 331 if err != nil { 332 return nil, err 333 } 334 return b[:n], nil 335 } 336 } 337 func (m *ApplicationResponse) XXX_Merge(src proto.Message) { 338 xxx_messageInfo_ApplicationResponse.Merge(m, src) 339 } 340 func (m *ApplicationResponse) XXX_Size() int { 341 return m.Size() 342 } 343 func (m *ApplicationResponse) XXX_DiscardUnknown() { 344 xxx_messageInfo_ApplicationResponse.DiscardUnknown(m) 345 } 346 347 var xxx_messageInfo_ApplicationResponse proto.InternalMessageInfo 348 349 type ApplicationCreateRequest struct { 350 Application v1alpha1.Application `protobuf:"bytes,1,req,name=application" json:"application"` 351 Upsert *bool `protobuf:"varint,2,opt,name=upsert" json:"upsert,omitempty"` 352 Validate *bool `protobuf:"varint,3,opt,name=validate" json:"validate,omitempty"` 353 XXX_NoUnkeyedLiteral struct{} `json:"-"` 354 XXX_unrecognized []byte `json:"-"` 355 XXX_sizecache int32 `json:"-"` 356 } 357 358 func (m *ApplicationCreateRequest) Reset() { *m = ApplicationCreateRequest{} } 359 func (m *ApplicationCreateRequest) String() string { return proto.CompactTextString(m) } 360 func (*ApplicationCreateRequest) ProtoMessage() {} 361 func (*ApplicationCreateRequest) Descriptor() ([]byte, []int) { 362 return fileDescriptor_df6e82b174b5eaec, []int{5} 363 } 364 func (m *ApplicationCreateRequest) XXX_Unmarshal(b []byte) error { 365 return m.Unmarshal(b) 366 } 367 func (m *ApplicationCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 368 if deterministic { 369 return xxx_messageInfo_ApplicationCreateRequest.Marshal(b, m, deterministic) 370 } else { 371 b = b[:cap(b)] 372 n, err := m.MarshalToSizedBuffer(b) 373 if err != nil { 374 return nil, err 375 } 376 return b[:n], nil 377 } 378 } 379 func (m *ApplicationCreateRequest) XXX_Merge(src proto.Message) { 380 xxx_messageInfo_ApplicationCreateRequest.Merge(m, src) 381 } 382 func (m *ApplicationCreateRequest) XXX_Size() int { 383 return m.Size() 384 } 385 func (m *ApplicationCreateRequest) XXX_DiscardUnknown() { 386 xxx_messageInfo_ApplicationCreateRequest.DiscardUnknown(m) 387 } 388 389 var xxx_messageInfo_ApplicationCreateRequest proto.InternalMessageInfo 390 391 func (m *ApplicationCreateRequest) GetApplication() v1alpha1.Application { 392 if m != nil { 393 return m.Application 394 } 395 return v1alpha1.Application{} 396 } 397 398 func (m *ApplicationCreateRequest) GetUpsert() bool { 399 if m != nil && m.Upsert != nil { 400 return *m.Upsert 401 } 402 return false 403 } 404 405 func (m *ApplicationCreateRequest) GetValidate() bool { 406 if m != nil && m.Validate != nil { 407 return *m.Validate 408 } 409 return false 410 } 411 412 type ApplicationUpdateRequest struct { 413 Application *v1alpha1.Application `protobuf:"bytes,1,req,name=application" json:"application,omitempty"` 414 Validate *bool `protobuf:"varint,2,opt,name=validate" json:"validate,omitempty"` 415 XXX_NoUnkeyedLiteral struct{} `json:"-"` 416 XXX_unrecognized []byte `json:"-"` 417 XXX_sizecache int32 `json:"-"` 418 } 419 420 func (m *ApplicationUpdateRequest) Reset() { *m = ApplicationUpdateRequest{} } 421 func (m *ApplicationUpdateRequest) String() string { return proto.CompactTextString(m) } 422 func (*ApplicationUpdateRequest) ProtoMessage() {} 423 func (*ApplicationUpdateRequest) Descriptor() ([]byte, []int) { 424 return fileDescriptor_df6e82b174b5eaec, []int{6} 425 } 426 func (m *ApplicationUpdateRequest) XXX_Unmarshal(b []byte) error { 427 return m.Unmarshal(b) 428 } 429 func (m *ApplicationUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 430 if deterministic { 431 return xxx_messageInfo_ApplicationUpdateRequest.Marshal(b, m, deterministic) 432 } else { 433 b = b[:cap(b)] 434 n, err := m.MarshalToSizedBuffer(b) 435 if err != nil { 436 return nil, err 437 } 438 return b[:n], nil 439 } 440 } 441 func (m *ApplicationUpdateRequest) XXX_Merge(src proto.Message) { 442 xxx_messageInfo_ApplicationUpdateRequest.Merge(m, src) 443 } 444 func (m *ApplicationUpdateRequest) XXX_Size() int { 445 return m.Size() 446 } 447 func (m *ApplicationUpdateRequest) XXX_DiscardUnknown() { 448 xxx_messageInfo_ApplicationUpdateRequest.DiscardUnknown(m) 449 } 450 451 var xxx_messageInfo_ApplicationUpdateRequest proto.InternalMessageInfo 452 453 func (m *ApplicationUpdateRequest) GetApplication() *v1alpha1.Application { 454 if m != nil { 455 return m.Application 456 } 457 return nil 458 } 459 460 func (m *ApplicationUpdateRequest) GetValidate() bool { 461 if m != nil && m.Validate != nil { 462 return *m.Validate 463 } 464 return false 465 } 466 467 type ApplicationDeleteRequest struct { 468 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 469 Cascade *bool `protobuf:"varint,2,opt,name=cascade" json:"cascade,omitempty"` 470 XXX_NoUnkeyedLiteral struct{} `json:"-"` 471 XXX_unrecognized []byte `json:"-"` 472 XXX_sizecache int32 `json:"-"` 473 } 474 475 func (m *ApplicationDeleteRequest) Reset() { *m = ApplicationDeleteRequest{} } 476 func (m *ApplicationDeleteRequest) String() string { return proto.CompactTextString(m) } 477 func (*ApplicationDeleteRequest) ProtoMessage() {} 478 func (*ApplicationDeleteRequest) Descriptor() ([]byte, []int) { 479 return fileDescriptor_df6e82b174b5eaec, []int{7} 480 } 481 func (m *ApplicationDeleteRequest) XXX_Unmarshal(b []byte) error { 482 return m.Unmarshal(b) 483 } 484 func (m *ApplicationDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 485 if deterministic { 486 return xxx_messageInfo_ApplicationDeleteRequest.Marshal(b, m, deterministic) 487 } else { 488 b = b[:cap(b)] 489 n, err := m.MarshalToSizedBuffer(b) 490 if err != nil { 491 return nil, err 492 } 493 return b[:n], nil 494 } 495 } 496 func (m *ApplicationDeleteRequest) XXX_Merge(src proto.Message) { 497 xxx_messageInfo_ApplicationDeleteRequest.Merge(m, src) 498 } 499 func (m *ApplicationDeleteRequest) XXX_Size() int { 500 return m.Size() 501 } 502 func (m *ApplicationDeleteRequest) XXX_DiscardUnknown() { 503 xxx_messageInfo_ApplicationDeleteRequest.DiscardUnknown(m) 504 } 505 506 var xxx_messageInfo_ApplicationDeleteRequest proto.InternalMessageInfo 507 508 func (m *ApplicationDeleteRequest) GetName() string { 509 if m != nil && m.Name != nil { 510 return *m.Name 511 } 512 return "" 513 } 514 515 func (m *ApplicationDeleteRequest) GetCascade() bool { 516 if m != nil && m.Cascade != nil { 517 return *m.Cascade 518 } 519 return false 520 } 521 522 // ApplicationSyncRequest is a request to apply the config state to live state 523 type ApplicationSyncRequest struct { 524 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 525 Revision string `protobuf:"bytes,2,opt,name=revision" json:"revision"` 526 DryRun bool `protobuf:"varint,3,opt,name=dryRun" json:"dryRun"` 527 Prune bool `protobuf:"varint,4,opt,name=prune" json:"prune"` 528 Strategy *v1alpha1.SyncStrategy `protobuf:"bytes,5,opt,name=strategy" json:"strategy,omitempty"` 529 Resources []v1alpha1.SyncOperationResource `protobuf:"bytes,7,rep,name=resources" json:"resources"` 530 Manifests []string `protobuf:"bytes,8,rep,name=manifests" json:"manifests,omitempty"` 531 Infos []*v1alpha1.Info `protobuf:"bytes,9,rep,name=infos" json:"infos,omitempty"` 532 RetryStrategy *v1alpha1.RetryStrategy `protobuf:"bytes,10,opt,name=retryStrategy" json:"retryStrategy,omitempty"` 533 XXX_NoUnkeyedLiteral struct{} `json:"-"` 534 XXX_unrecognized []byte `json:"-"` 535 XXX_sizecache int32 `json:"-"` 536 } 537 538 func (m *ApplicationSyncRequest) Reset() { *m = ApplicationSyncRequest{} } 539 func (m *ApplicationSyncRequest) String() string { return proto.CompactTextString(m) } 540 func (*ApplicationSyncRequest) ProtoMessage() {} 541 func (*ApplicationSyncRequest) Descriptor() ([]byte, []int) { 542 return fileDescriptor_df6e82b174b5eaec, []int{8} 543 } 544 func (m *ApplicationSyncRequest) XXX_Unmarshal(b []byte) error { 545 return m.Unmarshal(b) 546 } 547 func (m *ApplicationSyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 548 if deterministic { 549 return xxx_messageInfo_ApplicationSyncRequest.Marshal(b, m, deterministic) 550 } else { 551 b = b[:cap(b)] 552 n, err := m.MarshalToSizedBuffer(b) 553 if err != nil { 554 return nil, err 555 } 556 return b[:n], nil 557 } 558 } 559 func (m *ApplicationSyncRequest) XXX_Merge(src proto.Message) { 560 xxx_messageInfo_ApplicationSyncRequest.Merge(m, src) 561 } 562 func (m *ApplicationSyncRequest) XXX_Size() int { 563 return m.Size() 564 } 565 func (m *ApplicationSyncRequest) XXX_DiscardUnknown() { 566 xxx_messageInfo_ApplicationSyncRequest.DiscardUnknown(m) 567 } 568 569 var xxx_messageInfo_ApplicationSyncRequest proto.InternalMessageInfo 570 571 func (m *ApplicationSyncRequest) GetName() string { 572 if m != nil && m.Name != nil { 573 return *m.Name 574 } 575 return "" 576 } 577 578 func (m *ApplicationSyncRequest) GetRevision() string { 579 if m != nil { 580 return m.Revision 581 } 582 return "" 583 } 584 585 func (m *ApplicationSyncRequest) GetDryRun() bool { 586 if m != nil { 587 return m.DryRun 588 } 589 return false 590 } 591 592 func (m *ApplicationSyncRequest) GetPrune() bool { 593 if m != nil { 594 return m.Prune 595 } 596 return false 597 } 598 599 func (m *ApplicationSyncRequest) GetStrategy() *v1alpha1.SyncStrategy { 600 if m != nil { 601 return m.Strategy 602 } 603 return nil 604 } 605 606 func (m *ApplicationSyncRequest) GetResources() []v1alpha1.SyncOperationResource { 607 if m != nil { 608 return m.Resources 609 } 610 return nil 611 } 612 613 func (m *ApplicationSyncRequest) GetManifests() []string { 614 if m != nil { 615 return m.Manifests 616 } 617 return nil 618 } 619 620 func (m *ApplicationSyncRequest) GetInfos() []*v1alpha1.Info { 621 if m != nil { 622 return m.Infos 623 } 624 return nil 625 } 626 627 func (m *ApplicationSyncRequest) GetRetryStrategy() *v1alpha1.RetryStrategy { 628 if m != nil { 629 return m.RetryStrategy 630 } 631 return nil 632 } 633 634 // ApplicationUpdateSpecRequest is a request to update application spec 635 type ApplicationUpdateSpecRequest struct { 636 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 637 Spec v1alpha1.ApplicationSpec `protobuf:"bytes,2,req,name=spec" json:"spec"` 638 Validate *bool `protobuf:"varint,3,opt,name=validate" json:"validate,omitempty"` 639 XXX_NoUnkeyedLiteral struct{} `json:"-"` 640 XXX_unrecognized []byte `json:"-"` 641 XXX_sizecache int32 `json:"-"` 642 } 643 644 func (m *ApplicationUpdateSpecRequest) Reset() { *m = ApplicationUpdateSpecRequest{} } 645 func (m *ApplicationUpdateSpecRequest) String() string { return proto.CompactTextString(m) } 646 func (*ApplicationUpdateSpecRequest) ProtoMessage() {} 647 func (*ApplicationUpdateSpecRequest) Descriptor() ([]byte, []int) { 648 return fileDescriptor_df6e82b174b5eaec, []int{9} 649 } 650 func (m *ApplicationUpdateSpecRequest) XXX_Unmarshal(b []byte) error { 651 return m.Unmarshal(b) 652 } 653 func (m *ApplicationUpdateSpecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 654 if deterministic { 655 return xxx_messageInfo_ApplicationUpdateSpecRequest.Marshal(b, m, deterministic) 656 } else { 657 b = b[:cap(b)] 658 n, err := m.MarshalToSizedBuffer(b) 659 if err != nil { 660 return nil, err 661 } 662 return b[:n], nil 663 } 664 } 665 func (m *ApplicationUpdateSpecRequest) XXX_Merge(src proto.Message) { 666 xxx_messageInfo_ApplicationUpdateSpecRequest.Merge(m, src) 667 } 668 func (m *ApplicationUpdateSpecRequest) XXX_Size() int { 669 return m.Size() 670 } 671 func (m *ApplicationUpdateSpecRequest) XXX_DiscardUnknown() { 672 xxx_messageInfo_ApplicationUpdateSpecRequest.DiscardUnknown(m) 673 } 674 675 var xxx_messageInfo_ApplicationUpdateSpecRequest proto.InternalMessageInfo 676 677 func (m *ApplicationUpdateSpecRequest) GetName() string { 678 if m != nil && m.Name != nil { 679 return *m.Name 680 } 681 return "" 682 } 683 684 func (m *ApplicationUpdateSpecRequest) GetSpec() v1alpha1.ApplicationSpec { 685 if m != nil { 686 return m.Spec 687 } 688 return v1alpha1.ApplicationSpec{} 689 } 690 691 func (m *ApplicationUpdateSpecRequest) GetValidate() bool { 692 if m != nil && m.Validate != nil { 693 return *m.Validate 694 } 695 return false 696 } 697 698 // ApplicationPatchRequest is a request to patch an application 699 type ApplicationPatchRequest struct { 700 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 701 Patch string `protobuf:"bytes,2,req,name=patch" json:"patch"` 702 PatchType string `protobuf:"bytes,3,req,name=patchType" json:"patchType"` 703 XXX_NoUnkeyedLiteral struct{} `json:"-"` 704 XXX_unrecognized []byte `json:"-"` 705 XXX_sizecache int32 `json:"-"` 706 } 707 708 func (m *ApplicationPatchRequest) Reset() { *m = ApplicationPatchRequest{} } 709 func (m *ApplicationPatchRequest) String() string { return proto.CompactTextString(m) } 710 func (*ApplicationPatchRequest) ProtoMessage() {} 711 func (*ApplicationPatchRequest) Descriptor() ([]byte, []int) { 712 return fileDescriptor_df6e82b174b5eaec, []int{10} 713 } 714 func (m *ApplicationPatchRequest) XXX_Unmarshal(b []byte) error { 715 return m.Unmarshal(b) 716 } 717 func (m *ApplicationPatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 718 if deterministic { 719 return xxx_messageInfo_ApplicationPatchRequest.Marshal(b, m, deterministic) 720 } else { 721 b = b[:cap(b)] 722 n, err := m.MarshalToSizedBuffer(b) 723 if err != nil { 724 return nil, err 725 } 726 return b[:n], nil 727 } 728 } 729 func (m *ApplicationPatchRequest) XXX_Merge(src proto.Message) { 730 xxx_messageInfo_ApplicationPatchRequest.Merge(m, src) 731 } 732 func (m *ApplicationPatchRequest) XXX_Size() int { 733 return m.Size() 734 } 735 func (m *ApplicationPatchRequest) XXX_DiscardUnknown() { 736 xxx_messageInfo_ApplicationPatchRequest.DiscardUnknown(m) 737 } 738 739 var xxx_messageInfo_ApplicationPatchRequest proto.InternalMessageInfo 740 741 func (m *ApplicationPatchRequest) GetName() string { 742 if m != nil && m.Name != nil { 743 return *m.Name 744 } 745 return "" 746 } 747 748 func (m *ApplicationPatchRequest) GetPatch() string { 749 if m != nil { 750 return m.Patch 751 } 752 return "" 753 } 754 755 func (m *ApplicationPatchRequest) GetPatchType() string { 756 if m != nil { 757 return m.PatchType 758 } 759 return "" 760 } 761 762 type ApplicationRollbackRequest struct { 763 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 764 ID int64 `protobuf:"varint,2,req,name=id" json:"id"` 765 DryRun bool `protobuf:"varint,3,opt,name=dryRun" json:"dryRun"` 766 Prune bool `protobuf:"varint,4,opt,name=prune" json:"prune"` 767 XXX_NoUnkeyedLiteral struct{} `json:"-"` 768 XXX_unrecognized []byte `json:"-"` 769 XXX_sizecache int32 `json:"-"` 770 } 771 772 func (m *ApplicationRollbackRequest) Reset() { *m = ApplicationRollbackRequest{} } 773 func (m *ApplicationRollbackRequest) String() string { return proto.CompactTextString(m) } 774 func (*ApplicationRollbackRequest) ProtoMessage() {} 775 func (*ApplicationRollbackRequest) Descriptor() ([]byte, []int) { 776 return fileDescriptor_df6e82b174b5eaec, []int{11} 777 } 778 func (m *ApplicationRollbackRequest) XXX_Unmarshal(b []byte) error { 779 return m.Unmarshal(b) 780 } 781 func (m *ApplicationRollbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 782 if deterministic { 783 return xxx_messageInfo_ApplicationRollbackRequest.Marshal(b, m, deterministic) 784 } else { 785 b = b[:cap(b)] 786 n, err := m.MarshalToSizedBuffer(b) 787 if err != nil { 788 return nil, err 789 } 790 return b[:n], nil 791 } 792 } 793 func (m *ApplicationRollbackRequest) XXX_Merge(src proto.Message) { 794 xxx_messageInfo_ApplicationRollbackRequest.Merge(m, src) 795 } 796 func (m *ApplicationRollbackRequest) XXX_Size() int { 797 return m.Size() 798 } 799 func (m *ApplicationRollbackRequest) XXX_DiscardUnknown() { 800 xxx_messageInfo_ApplicationRollbackRequest.DiscardUnknown(m) 801 } 802 803 var xxx_messageInfo_ApplicationRollbackRequest proto.InternalMessageInfo 804 805 func (m *ApplicationRollbackRequest) GetName() string { 806 if m != nil && m.Name != nil { 807 return *m.Name 808 } 809 return "" 810 } 811 812 func (m *ApplicationRollbackRequest) GetID() int64 { 813 if m != nil { 814 return m.ID 815 } 816 return 0 817 } 818 819 func (m *ApplicationRollbackRequest) GetDryRun() bool { 820 if m != nil { 821 return m.DryRun 822 } 823 return false 824 } 825 826 func (m *ApplicationRollbackRequest) GetPrune() bool { 827 if m != nil { 828 return m.Prune 829 } 830 return false 831 } 832 833 type ApplicationResourceRequest struct { 834 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 835 Namespace string `protobuf:"bytes,2,req,name=namespace" json:"namespace"` 836 ResourceName string `protobuf:"bytes,3,req,name=resourceName" json:"resourceName"` 837 Version string `protobuf:"bytes,4,req,name=version" json:"version"` 838 Group string `protobuf:"bytes,5,req,name=group" json:"group"` 839 Kind string `protobuf:"bytes,6,req,name=kind" json:"kind"` 840 XXX_NoUnkeyedLiteral struct{} `json:"-"` 841 XXX_unrecognized []byte `json:"-"` 842 XXX_sizecache int32 `json:"-"` 843 } 844 845 func (m *ApplicationResourceRequest) Reset() { *m = ApplicationResourceRequest{} } 846 func (m *ApplicationResourceRequest) String() string { return proto.CompactTextString(m) } 847 func (*ApplicationResourceRequest) ProtoMessage() {} 848 func (*ApplicationResourceRequest) Descriptor() ([]byte, []int) { 849 return fileDescriptor_df6e82b174b5eaec, []int{12} 850 } 851 func (m *ApplicationResourceRequest) XXX_Unmarshal(b []byte) error { 852 return m.Unmarshal(b) 853 } 854 func (m *ApplicationResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 855 if deterministic { 856 return xxx_messageInfo_ApplicationResourceRequest.Marshal(b, m, deterministic) 857 } else { 858 b = b[:cap(b)] 859 n, err := m.MarshalToSizedBuffer(b) 860 if err != nil { 861 return nil, err 862 } 863 return b[:n], nil 864 } 865 } 866 func (m *ApplicationResourceRequest) XXX_Merge(src proto.Message) { 867 xxx_messageInfo_ApplicationResourceRequest.Merge(m, src) 868 } 869 func (m *ApplicationResourceRequest) XXX_Size() int { 870 return m.Size() 871 } 872 func (m *ApplicationResourceRequest) XXX_DiscardUnknown() { 873 xxx_messageInfo_ApplicationResourceRequest.DiscardUnknown(m) 874 } 875 876 var xxx_messageInfo_ApplicationResourceRequest proto.InternalMessageInfo 877 878 func (m *ApplicationResourceRequest) GetName() string { 879 if m != nil && m.Name != nil { 880 return *m.Name 881 } 882 return "" 883 } 884 885 func (m *ApplicationResourceRequest) GetNamespace() string { 886 if m != nil { 887 return m.Namespace 888 } 889 return "" 890 } 891 892 func (m *ApplicationResourceRequest) GetResourceName() string { 893 if m != nil { 894 return m.ResourceName 895 } 896 return "" 897 } 898 899 func (m *ApplicationResourceRequest) GetVersion() string { 900 if m != nil { 901 return m.Version 902 } 903 return "" 904 } 905 906 func (m *ApplicationResourceRequest) GetGroup() string { 907 if m != nil { 908 return m.Group 909 } 910 return "" 911 } 912 913 func (m *ApplicationResourceRequest) GetKind() string { 914 if m != nil { 915 return m.Kind 916 } 917 return "" 918 } 919 920 type ApplicationResourcePatchRequest struct { 921 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 922 Namespace string `protobuf:"bytes,2,req,name=namespace" json:"namespace"` 923 ResourceName string `protobuf:"bytes,3,req,name=resourceName" json:"resourceName"` 924 Version string `protobuf:"bytes,4,req,name=version" json:"version"` 925 Group string `protobuf:"bytes,5,req,name=group" json:"group"` 926 Kind string `protobuf:"bytes,6,req,name=kind" json:"kind"` 927 Patch string `protobuf:"bytes,7,req,name=patch" json:"patch"` 928 PatchType string `protobuf:"bytes,8,req,name=patchType" json:"patchType"` 929 XXX_NoUnkeyedLiteral struct{} `json:"-"` 930 XXX_unrecognized []byte `json:"-"` 931 XXX_sizecache int32 `json:"-"` 932 } 933 934 func (m *ApplicationResourcePatchRequest) Reset() { *m = ApplicationResourcePatchRequest{} } 935 func (m *ApplicationResourcePatchRequest) String() string { return proto.CompactTextString(m) } 936 func (*ApplicationResourcePatchRequest) ProtoMessage() {} 937 func (*ApplicationResourcePatchRequest) Descriptor() ([]byte, []int) { 938 return fileDescriptor_df6e82b174b5eaec, []int{13} 939 } 940 func (m *ApplicationResourcePatchRequest) XXX_Unmarshal(b []byte) error { 941 return m.Unmarshal(b) 942 } 943 func (m *ApplicationResourcePatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 944 if deterministic { 945 return xxx_messageInfo_ApplicationResourcePatchRequest.Marshal(b, m, deterministic) 946 } else { 947 b = b[:cap(b)] 948 n, err := m.MarshalToSizedBuffer(b) 949 if err != nil { 950 return nil, err 951 } 952 return b[:n], nil 953 } 954 } 955 func (m *ApplicationResourcePatchRequest) XXX_Merge(src proto.Message) { 956 xxx_messageInfo_ApplicationResourcePatchRequest.Merge(m, src) 957 } 958 func (m *ApplicationResourcePatchRequest) XXX_Size() int { 959 return m.Size() 960 } 961 func (m *ApplicationResourcePatchRequest) XXX_DiscardUnknown() { 962 xxx_messageInfo_ApplicationResourcePatchRequest.DiscardUnknown(m) 963 } 964 965 var xxx_messageInfo_ApplicationResourcePatchRequest proto.InternalMessageInfo 966 967 func (m *ApplicationResourcePatchRequest) GetName() string { 968 if m != nil && m.Name != nil { 969 return *m.Name 970 } 971 return "" 972 } 973 974 func (m *ApplicationResourcePatchRequest) GetNamespace() string { 975 if m != nil { 976 return m.Namespace 977 } 978 return "" 979 } 980 981 func (m *ApplicationResourcePatchRequest) GetResourceName() string { 982 if m != nil { 983 return m.ResourceName 984 } 985 return "" 986 } 987 988 func (m *ApplicationResourcePatchRequest) GetVersion() string { 989 if m != nil { 990 return m.Version 991 } 992 return "" 993 } 994 995 func (m *ApplicationResourcePatchRequest) GetGroup() string { 996 if m != nil { 997 return m.Group 998 } 999 return "" 1000 } 1001 1002 func (m *ApplicationResourcePatchRequest) GetKind() string { 1003 if m != nil { 1004 return m.Kind 1005 } 1006 return "" 1007 } 1008 1009 func (m *ApplicationResourcePatchRequest) GetPatch() string { 1010 if m != nil { 1011 return m.Patch 1012 } 1013 return "" 1014 } 1015 1016 func (m *ApplicationResourcePatchRequest) GetPatchType() string { 1017 if m != nil { 1018 return m.PatchType 1019 } 1020 return "" 1021 } 1022 1023 type ApplicationResourceDeleteRequest struct { 1024 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 1025 Namespace string `protobuf:"bytes,2,req,name=namespace" json:"namespace"` 1026 ResourceName string `protobuf:"bytes,3,req,name=resourceName" json:"resourceName"` 1027 Version string `protobuf:"bytes,4,req,name=version" json:"version"` 1028 Group string `protobuf:"bytes,5,req,name=group" json:"group"` 1029 Kind string `protobuf:"bytes,6,req,name=kind" json:"kind"` 1030 Force *bool `protobuf:"varint,7,opt,name=force" json:"force,omitempty"` 1031 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1032 XXX_unrecognized []byte `json:"-"` 1033 XXX_sizecache int32 `json:"-"` 1034 } 1035 1036 func (m *ApplicationResourceDeleteRequest) Reset() { *m = ApplicationResourceDeleteRequest{} } 1037 func (m *ApplicationResourceDeleteRequest) String() string { return proto.CompactTextString(m) } 1038 func (*ApplicationResourceDeleteRequest) ProtoMessage() {} 1039 func (*ApplicationResourceDeleteRequest) Descriptor() ([]byte, []int) { 1040 return fileDescriptor_df6e82b174b5eaec, []int{14} 1041 } 1042 func (m *ApplicationResourceDeleteRequest) XXX_Unmarshal(b []byte) error { 1043 return m.Unmarshal(b) 1044 } 1045 func (m *ApplicationResourceDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1046 if deterministic { 1047 return xxx_messageInfo_ApplicationResourceDeleteRequest.Marshal(b, m, deterministic) 1048 } else { 1049 b = b[:cap(b)] 1050 n, err := m.MarshalToSizedBuffer(b) 1051 if err != nil { 1052 return nil, err 1053 } 1054 return b[:n], nil 1055 } 1056 } 1057 func (m *ApplicationResourceDeleteRequest) XXX_Merge(src proto.Message) { 1058 xxx_messageInfo_ApplicationResourceDeleteRequest.Merge(m, src) 1059 } 1060 func (m *ApplicationResourceDeleteRequest) XXX_Size() int { 1061 return m.Size() 1062 } 1063 func (m *ApplicationResourceDeleteRequest) XXX_DiscardUnknown() { 1064 xxx_messageInfo_ApplicationResourceDeleteRequest.DiscardUnknown(m) 1065 } 1066 1067 var xxx_messageInfo_ApplicationResourceDeleteRequest proto.InternalMessageInfo 1068 1069 func (m *ApplicationResourceDeleteRequest) GetName() string { 1070 if m != nil && m.Name != nil { 1071 return *m.Name 1072 } 1073 return "" 1074 } 1075 1076 func (m *ApplicationResourceDeleteRequest) GetNamespace() string { 1077 if m != nil { 1078 return m.Namespace 1079 } 1080 return "" 1081 } 1082 1083 func (m *ApplicationResourceDeleteRequest) GetResourceName() string { 1084 if m != nil { 1085 return m.ResourceName 1086 } 1087 return "" 1088 } 1089 1090 func (m *ApplicationResourceDeleteRequest) GetVersion() string { 1091 if m != nil { 1092 return m.Version 1093 } 1094 return "" 1095 } 1096 1097 func (m *ApplicationResourceDeleteRequest) GetGroup() string { 1098 if m != nil { 1099 return m.Group 1100 } 1101 return "" 1102 } 1103 1104 func (m *ApplicationResourceDeleteRequest) GetKind() string { 1105 if m != nil { 1106 return m.Kind 1107 } 1108 return "" 1109 } 1110 1111 func (m *ApplicationResourceDeleteRequest) GetForce() bool { 1112 if m != nil && m.Force != nil { 1113 return *m.Force 1114 } 1115 return false 1116 } 1117 1118 type ResourceActionRunRequest struct { 1119 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 1120 Namespace string `protobuf:"bytes,2,req,name=namespace" json:"namespace"` 1121 ResourceName string `protobuf:"bytes,3,req,name=resourceName" json:"resourceName"` 1122 Version string `protobuf:"bytes,4,req,name=version" json:"version"` 1123 Group string `protobuf:"bytes,5,req,name=group" json:"group"` 1124 Kind string `protobuf:"bytes,6,req,name=kind" json:"kind"` 1125 Action string `protobuf:"bytes,7,req,name=action" json:"action"` 1126 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1127 XXX_unrecognized []byte `json:"-"` 1128 XXX_sizecache int32 `json:"-"` 1129 } 1130 1131 func (m *ResourceActionRunRequest) Reset() { *m = ResourceActionRunRequest{} } 1132 func (m *ResourceActionRunRequest) String() string { return proto.CompactTextString(m) } 1133 func (*ResourceActionRunRequest) ProtoMessage() {} 1134 func (*ResourceActionRunRequest) Descriptor() ([]byte, []int) { 1135 return fileDescriptor_df6e82b174b5eaec, []int{15} 1136 } 1137 func (m *ResourceActionRunRequest) XXX_Unmarshal(b []byte) error { 1138 return m.Unmarshal(b) 1139 } 1140 func (m *ResourceActionRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1141 if deterministic { 1142 return xxx_messageInfo_ResourceActionRunRequest.Marshal(b, m, deterministic) 1143 } else { 1144 b = b[:cap(b)] 1145 n, err := m.MarshalToSizedBuffer(b) 1146 if err != nil { 1147 return nil, err 1148 } 1149 return b[:n], nil 1150 } 1151 } 1152 func (m *ResourceActionRunRequest) XXX_Merge(src proto.Message) { 1153 xxx_messageInfo_ResourceActionRunRequest.Merge(m, src) 1154 } 1155 func (m *ResourceActionRunRequest) XXX_Size() int { 1156 return m.Size() 1157 } 1158 func (m *ResourceActionRunRequest) XXX_DiscardUnknown() { 1159 xxx_messageInfo_ResourceActionRunRequest.DiscardUnknown(m) 1160 } 1161 1162 var xxx_messageInfo_ResourceActionRunRequest proto.InternalMessageInfo 1163 1164 func (m *ResourceActionRunRequest) GetName() string { 1165 if m != nil && m.Name != nil { 1166 return *m.Name 1167 } 1168 return "" 1169 } 1170 1171 func (m *ResourceActionRunRequest) GetNamespace() string { 1172 if m != nil { 1173 return m.Namespace 1174 } 1175 return "" 1176 } 1177 1178 func (m *ResourceActionRunRequest) GetResourceName() string { 1179 if m != nil { 1180 return m.ResourceName 1181 } 1182 return "" 1183 } 1184 1185 func (m *ResourceActionRunRequest) GetVersion() string { 1186 if m != nil { 1187 return m.Version 1188 } 1189 return "" 1190 } 1191 1192 func (m *ResourceActionRunRequest) GetGroup() string { 1193 if m != nil { 1194 return m.Group 1195 } 1196 return "" 1197 } 1198 1199 func (m *ResourceActionRunRequest) GetKind() string { 1200 if m != nil { 1201 return m.Kind 1202 } 1203 return "" 1204 } 1205 1206 func (m *ResourceActionRunRequest) GetAction() string { 1207 if m != nil { 1208 return m.Action 1209 } 1210 return "" 1211 } 1212 1213 type ResourceActionsListResponse struct { 1214 Actions []v1alpha1.ResourceAction `protobuf:"bytes,1,rep,name=actions" json:"actions"` 1215 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1216 XXX_unrecognized []byte `json:"-"` 1217 XXX_sizecache int32 `json:"-"` 1218 } 1219 1220 func (m *ResourceActionsListResponse) Reset() { *m = ResourceActionsListResponse{} } 1221 func (m *ResourceActionsListResponse) String() string { return proto.CompactTextString(m) } 1222 func (*ResourceActionsListResponse) ProtoMessage() {} 1223 func (*ResourceActionsListResponse) Descriptor() ([]byte, []int) { 1224 return fileDescriptor_df6e82b174b5eaec, []int{16} 1225 } 1226 func (m *ResourceActionsListResponse) XXX_Unmarshal(b []byte) error { 1227 return m.Unmarshal(b) 1228 } 1229 func (m *ResourceActionsListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1230 if deterministic { 1231 return xxx_messageInfo_ResourceActionsListResponse.Marshal(b, m, deterministic) 1232 } else { 1233 b = b[:cap(b)] 1234 n, err := m.MarshalToSizedBuffer(b) 1235 if err != nil { 1236 return nil, err 1237 } 1238 return b[:n], nil 1239 } 1240 } 1241 func (m *ResourceActionsListResponse) XXX_Merge(src proto.Message) { 1242 xxx_messageInfo_ResourceActionsListResponse.Merge(m, src) 1243 } 1244 func (m *ResourceActionsListResponse) XXX_Size() int { 1245 return m.Size() 1246 } 1247 func (m *ResourceActionsListResponse) XXX_DiscardUnknown() { 1248 xxx_messageInfo_ResourceActionsListResponse.DiscardUnknown(m) 1249 } 1250 1251 var xxx_messageInfo_ResourceActionsListResponse proto.InternalMessageInfo 1252 1253 func (m *ResourceActionsListResponse) GetActions() []v1alpha1.ResourceAction { 1254 if m != nil { 1255 return m.Actions 1256 } 1257 return nil 1258 } 1259 1260 type ApplicationResourceResponse struct { 1261 Manifest string `protobuf:"bytes,1,req,name=manifest" json:"manifest"` 1262 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1263 XXX_unrecognized []byte `json:"-"` 1264 XXX_sizecache int32 `json:"-"` 1265 } 1266 1267 func (m *ApplicationResourceResponse) Reset() { *m = ApplicationResourceResponse{} } 1268 func (m *ApplicationResourceResponse) String() string { return proto.CompactTextString(m) } 1269 func (*ApplicationResourceResponse) ProtoMessage() {} 1270 func (*ApplicationResourceResponse) Descriptor() ([]byte, []int) { 1271 return fileDescriptor_df6e82b174b5eaec, []int{17} 1272 } 1273 func (m *ApplicationResourceResponse) XXX_Unmarshal(b []byte) error { 1274 return m.Unmarshal(b) 1275 } 1276 func (m *ApplicationResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1277 if deterministic { 1278 return xxx_messageInfo_ApplicationResourceResponse.Marshal(b, m, deterministic) 1279 } else { 1280 b = b[:cap(b)] 1281 n, err := m.MarshalToSizedBuffer(b) 1282 if err != nil { 1283 return nil, err 1284 } 1285 return b[:n], nil 1286 } 1287 } 1288 func (m *ApplicationResourceResponse) XXX_Merge(src proto.Message) { 1289 xxx_messageInfo_ApplicationResourceResponse.Merge(m, src) 1290 } 1291 func (m *ApplicationResourceResponse) XXX_Size() int { 1292 return m.Size() 1293 } 1294 func (m *ApplicationResourceResponse) XXX_DiscardUnknown() { 1295 xxx_messageInfo_ApplicationResourceResponse.DiscardUnknown(m) 1296 } 1297 1298 var xxx_messageInfo_ApplicationResourceResponse proto.InternalMessageInfo 1299 1300 func (m *ApplicationResourceResponse) GetManifest() string { 1301 if m != nil { 1302 return m.Manifest 1303 } 1304 return "" 1305 } 1306 1307 type ApplicationPodLogsQuery struct { 1308 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 1309 Namespace string `protobuf:"bytes,2,req,name=namespace" json:"namespace"` 1310 PodName *string `protobuf:"bytes,3,req,name=podName" json:"podName,omitempty"` 1311 Container string `protobuf:"bytes,4,req,name=container" json:"container"` 1312 SinceSeconds int64 `protobuf:"varint,5,req,name=sinceSeconds" json:"sinceSeconds"` 1313 SinceTime *v1.Time `protobuf:"bytes,6,opt,name=sinceTime" json:"sinceTime,omitempty"` 1314 TailLines int64 `protobuf:"varint,7,req,name=tailLines" json:"tailLines"` 1315 Follow bool `protobuf:"varint,8,req,name=follow" json:"follow"` 1316 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1317 XXX_unrecognized []byte `json:"-"` 1318 XXX_sizecache int32 `json:"-"` 1319 } 1320 1321 func (m *ApplicationPodLogsQuery) Reset() { *m = ApplicationPodLogsQuery{} } 1322 func (m *ApplicationPodLogsQuery) String() string { return proto.CompactTextString(m) } 1323 func (*ApplicationPodLogsQuery) ProtoMessage() {} 1324 func (*ApplicationPodLogsQuery) Descriptor() ([]byte, []int) { 1325 return fileDescriptor_df6e82b174b5eaec, []int{18} 1326 } 1327 func (m *ApplicationPodLogsQuery) XXX_Unmarshal(b []byte) error { 1328 return m.Unmarshal(b) 1329 } 1330 func (m *ApplicationPodLogsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1331 if deterministic { 1332 return xxx_messageInfo_ApplicationPodLogsQuery.Marshal(b, m, deterministic) 1333 } else { 1334 b = b[:cap(b)] 1335 n, err := m.MarshalToSizedBuffer(b) 1336 if err != nil { 1337 return nil, err 1338 } 1339 return b[:n], nil 1340 } 1341 } 1342 func (m *ApplicationPodLogsQuery) XXX_Merge(src proto.Message) { 1343 xxx_messageInfo_ApplicationPodLogsQuery.Merge(m, src) 1344 } 1345 func (m *ApplicationPodLogsQuery) XXX_Size() int { 1346 return m.Size() 1347 } 1348 func (m *ApplicationPodLogsQuery) XXX_DiscardUnknown() { 1349 xxx_messageInfo_ApplicationPodLogsQuery.DiscardUnknown(m) 1350 } 1351 1352 var xxx_messageInfo_ApplicationPodLogsQuery proto.InternalMessageInfo 1353 1354 func (m *ApplicationPodLogsQuery) GetName() string { 1355 if m != nil && m.Name != nil { 1356 return *m.Name 1357 } 1358 return "" 1359 } 1360 1361 func (m *ApplicationPodLogsQuery) GetNamespace() string { 1362 if m != nil { 1363 return m.Namespace 1364 } 1365 return "" 1366 } 1367 1368 func (m *ApplicationPodLogsQuery) GetPodName() string { 1369 if m != nil && m.PodName != nil { 1370 return *m.PodName 1371 } 1372 return "" 1373 } 1374 1375 func (m *ApplicationPodLogsQuery) GetContainer() string { 1376 if m != nil { 1377 return m.Container 1378 } 1379 return "" 1380 } 1381 1382 func (m *ApplicationPodLogsQuery) GetSinceSeconds() int64 { 1383 if m != nil { 1384 return m.SinceSeconds 1385 } 1386 return 0 1387 } 1388 1389 func (m *ApplicationPodLogsQuery) GetSinceTime() *v1.Time { 1390 if m != nil { 1391 return m.SinceTime 1392 } 1393 return nil 1394 } 1395 1396 func (m *ApplicationPodLogsQuery) GetTailLines() int64 { 1397 if m != nil { 1398 return m.TailLines 1399 } 1400 return 0 1401 } 1402 1403 func (m *ApplicationPodLogsQuery) GetFollow() bool { 1404 if m != nil { 1405 return m.Follow 1406 } 1407 return false 1408 } 1409 1410 type LogEntry struct { 1411 Content string `protobuf:"bytes,1,req,name=content" json:"content"` 1412 TimeStamp v1.Time `protobuf:"bytes,2,req,name=timeStamp" json:"timeStamp"` 1413 Last bool `protobuf:"varint,3,req,name=last" json:"last"` 1414 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1415 XXX_unrecognized []byte `json:"-"` 1416 XXX_sizecache int32 `json:"-"` 1417 } 1418 1419 func (m *LogEntry) Reset() { *m = LogEntry{} } 1420 func (m *LogEntry) String() string { return proto.CompactTextString(m) } 1421 func (*LogEntry) ProtoMessage() {} 1422 func (*LogEntry) Descriptor() ([]byte, []int) { 1423 return fileDescriptor_df6e82b174b5eaec, []int{19} 1424 } 1425 func (m *LogEntry) XXX_Unmarshal(b []byte) error { 1426 return m.Unmarshal(b) 1427 } 1428 func (m *LogEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1429 if deterministic { 1430 return xxx_messageInfo_LogEntry.Marshal(b, m, deterministic) 1431 } else { 1432 b = b[:cap(b)] 1433 n, err := m.MarshalToSizedBuffer(b) 1434 if err != nil { 1435 return nil, err 1436 } 1437 return b[:n], nil 1438 } 1439 } 1440 func (m *LogEntry) XXX_Merge(src proto.Message) { 1441 xxx_messageInfo_LogEntry.Merge(m, src) 1442 } 1443 func (m *LogEntry) XXX_Size() int { 1444 return m.Size() 1445 } 1446 func (m *LogEntry) XXX_DiscardUnknown() { 1447 xxx_messageInfo_LogEntry.DiscardUnknown(m) 1448 } 1449 1450 var xxx_messageInfo_LogEntry proto.InternalMessageInfo 1451 1452 func (m *LogEntry) GetContent() string { 1453 if m != nil { 1454 return m.Content 1455 } 1456 return "" 1457 } 1458 1459 func (m *LogEntry) GetTimeStamp() v1.Time { 1460 if m != nil { 1461 return m.TimeStamp 1462 } 1463 return v1.Time{} 1464 } 1465 1466 func (m *LogEntry) GetLast() bool { 1467 if m != nil { 1468 return m.Last 1469 } 1470 return false 1471 } 1472 1473 type OperationTerminateRequest struct { 1474 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 1475 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1476 XXX_unrecognized []byte `json:"-"` 1477 XXX_sizecache int32 `json:"-"` 1478 } 1479 1480 func (m *OperationTerminateRequest) Reset() { *m = OperationTerminateRequest{} } 1481 func (m *OperationTerminateRequest) String() string { return proto.CompactTextString(m) } 1482 func (*OperationTerminateRequest) ProtoMessage() {} 1483 func (*OperationTerminateRequest) Descriptor() ([]byte, []int) { 1484 return fileDescriptor_df6e82b174b5eaec, []int{20} 1485 } 1486 func (m *OperationTerminateRequest) XXX_Unmarshal(b []byte) error { 1487 return m.Unmarshal(b) 1488 } 1489 func (m *OperationTerminateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1490 if deterministic { 1491 return xxx_messageInfo_OperationTerminateRequest.Marshal(b, m, deterministic) 1492 } else { 1493 b = b[:cap(b)] 1494 n, err := m.MarshalToSizedBuffer(b) 1495 if err != nil { 1496 return nil, err 1497 } 1498 return b[:n], nil 1499 } 1500 } 1501 func (m *OperationTerminateRequest) XXX_Merge(src proto.Message) { 1502 xxx_messageInfo_OperationTerminateRequest.Merge(m, src) 1503 } 1504 func (m *OperationTerminateRequest) XXX_Size() int { 1505 return m.Size() 1506 } 1507 func (m *OperationTerminateRequest) XXX_DiscardUnknown() { 1508 xxx_messageInfo_OperationTerminateRequest.DiscardUnknown(m) 1509 } 1510 1511 var xxx_messageInfo_OperationTerminateRequest proto.InternalMessageInfo 1512 1513 func (m *OperationTerminateRequest) GetName() string { 1514 if m != nil && m.Name != nil { 1515 return *m.Name 1516 } 1517 return "" 1518 } 1519 1520 type ApplicationSyncWindowsQuery struct { 1521 Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` 1522 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1523 XXX_unrecognized []byte `json:"-"` 1524 XXX_sizecache int32 `json:"-"` 1525 } 1526 1527 func (m *ApplicationSyncWindowsQuery) Reset() { *m = ApplicationSyncWindowsQuery{} } 1528 func (m *ApplicationSyncWindowsQuery) String() string { return proto.CompactTextString(m) } 1529 func (*ApplicationSyncWindowsQuery) ProtoMessage() {} 1530 func (*ApplicationSyncWindowsQuery) Descriptor() ([]byte, []int) { 1531 return fileDescriptor_df6e82b174b5eaec, []int{21} 1532 } 1533 func (m *ApplicationSyncWindowsQuery) XXX_Unmarshal(b []byte) error { 1534 return m.Unmarshal(b) 1535 } 1536 func (m *ApplicationSyncWindowsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1537 if deterministic { 1538 return xxx_messageInfo_ApplicationSyncWindowsQuery.Marshal(b, m, deterministic) 1539 } else { 1540 b = b[:cap(b)] 1541 n, err := m.MarshalToSizedBuffer(b) 1542 if err != nil { 1543 return nil, err 1544 } 1545 return b[:n], nil 1546 } 1547 } 1548 func (m *ApplicationSyncWindowsQuery) XXX_Merge(src proto.Message) { 1549 xxx_messageInfo_ApplicationSyncWindowsQuery.Merge(m, src) 1550 } 1551 func (m *ApplicationSyncWindowsQuery) XXX_Size() int { 1552 return m.Size() 1553 } 1554 func (m *ApplicationSyncWindowsQuery) XXX_DiscardUnknown() { 1555 xxx_messageInfo_ApplicationSyncWindowsQuery.DiscardUnknown(m) 1556 } 1557 1558 var xxx_messageInfo_ApplicationSyncWindowsQuery proto.InternalMessageInfo 1559 1560 func (m *ApplicationSyncWindowsQuery) GetName() string { 1561 if m != nil && m.Name != nil { 1562 return *m.Name 1563 } 1564 return "" 1565 } 1566 1567 type ApplicationSyncWindowsResponse struct { 1568 ActiveWindows []*ApplicationSyncWindow `protobuf:"bytes,1,rep,name=activeWindows" json:"activeWindows,omitempty"` 1569 AssignedWindows []*ApplicationSyncWindow `protobuf:"bytes,2,rep,name=assignedWindows" json:"assignedWindows,omitempty"` 1570 CanSync *bool `protobuf:"varint,3,req,name=canSync" json:"canSync,omitempty"` 1571 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1572 XXX_unrecognized []byte `json:"-"` 1573 XXX_sizecache int32 `json:"-"` 1574 } 1575 1576 func (m *ApplicationSyncWindowsResponse) Reset() { *m = ApplicationSyncWindowsResponse{} } 1577 func (m *ApplicationSyncWindowsResponse) String() string { return proto.CompactTextString(m) } 1578 func (*ApplicationSyncWindowsResponse) ProtoMessage() {} 1579 func (*ApplicationSyncWindowsResponse) Descriptor() ([]byte, []int) { 1580 return fileDescriptor_df6e82b174b5eaec, []int{22} 1581 } 1582 func (m *ApplicationSyncWindowsResponse) XXX_Unmarshal(b []byte) error { 1583 return m.Unmarshal(b) 1584 } 1585 func (m *ApplicationSyncWindowsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1586 if deterministic { 1587 return xxx_messageInfo_ApplicationSyncWindowsResponse.Marshal(b, m, deterministic) 1588 } else { 1589 b = b[:cap(b)] 1590 n, err := m.MarshalToSizedBuffer(b) 1591 if err != nil { 1592 return nil, err 1593 } 1594 return b[:n], nil 1595 } 1596 } 1597 func (m *ApplicationSyncWindowsResponse) XXX_Merge(src proto.Message) { 1598 xxx_messageInfo_ApplicationSyncWindowsResponse.Merge(m, src) 1599 } 1600 func (m *ApplicationSyncWindowsResponse) XXX_Size() int { 1601 return m.Size() 1602 } 1603 func (m *ApplicationSyncWindowsResponse) XXX_DiscardUnknown() { 1604 xxx_messageInfo_ApplicationSyncWindowsResponse.DiscardUnknown(m) 1605 } 1606 1607 var xxx_messageInfo_ApplicationSyncWindowsResponse proto.InternalMessageInfo 1608 1609 func (m *ApplicationSyncWindowsResponse) GetActiveWindows() []*ApplicationSyncWindow { 1610 if m != nil { 1611 return m.ActiveWindows 1612 } 1613 return nil 1614 } 1615 1616 func (m *ApplicationSyncWindowsResponse) GetAssignedWindows() []*ApplicationSyncWindow { 1617 if m != nil { 1618 return m.AssignedWindows 1619 } 1620 return nil 1621 } 1622 1623 func (m *ApplicationSyncWindowsResponse) GetCanSync() bool { 1624 if m != nil && m.CanSync != nil { 1625 return *m.CanSync 1626 } 1627 return false 1628 } 1629 1630 type ApplicationSyncWindow struct { 1631 Kind *string `protobuf:"bytes,1,req,name=kind" json:"kind,omitempty"` 1632 Schedule *string `protobuf:"bytes,2,req,name=schedule" json:"schedule,omitempty"` 1633 Duration *string `protobuf:"bytes,3,req,name=duration" json:"duration,omitempty"` 1634 ManualSync *bool `protobuf:"varint,4,req,name=manualSync" json:"manualSync,omitempty"` 1635 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1636 XXX_unrecognized []byte `json:"-"` 1637 XXX_sizecache int32 `json:"-"` 1638 } 1639 1640 func (m *ApplicationSyncWindow) Reset() { *m = ApplicationSyncWindow{} } 1641 func (m *ApplicationSyncWindow) String() string { return proto.CompactTextString(m) } 1642 func (*ApplicationSyncWindow) ProtoMessage() {} 1643 func (*ApplicationSyncWindow) Descriptor() ([]byte, []int) { 1644 return fileDescriptor_df6e82b174b5eaec, []int{23} 1645 } 1646 func (m *ApplicationSyncWindow) XXX_Unmarshal(b []byte) error { 1647 return m.Unmarshal(b) 1648 } 1649 func (m *ApplicationSyncWindow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1650 if deterministic { 1651 return xxx_messageInfo_ApplicationSyncWindow.Marshal(b, m, deterministic) 1652 } else { 1653 b = b[:cap(b)] 1654 n, err := m.MarshalToSizedBuffer(b) 1655 if err != nil { 1656 return nil, err 1657 } 1658 return b[:n], nil 1659 } 1660 } 1661 func (m *ApplicationSyncWindow) XXX_Merge(src proto.Message) { 1662 xxx_messageInfo_ApplicationSyncWindow.Merge(m, src) 1663 } 1664 func (m *ApplicationSyncWindow) XXX_Size() int { 1665 return m.Size() 1666 } 1667 func (m *ApplicationSyncWindow) XXX_DiscardUnknown() { 1668 xxx_messageInfo_ApplicationSyncWindow.DiscardUnknown(m) 1669 } 1670 1671 var xxx_messageInfo_ApplicationSyncWindow proto.InternalMessageInfo 1672 1673 func (m *ApplicationSyncWindow) GetKind() string { 1674 if m != nil && m.Kind != nil { 1675 return *m.Kind 1676 } 1677 return "" 1678 } 1679 1680 func (m *ApplicationSyncWindow) GetSchedule() string { 1681 if m != nil && m.Schedule != nil { 1682 return *m.Schedule 1683 } 1684 return "" 1685 } 1686 1687 func (m *ApplicationSyncWindow) GetDuration() string { 1688 if m != nil && m.Duration != nil { 1689 return *m.Duration 1690 } 1691 return "" 1692 } 1693 1694 func (m *ApplicationSyncWindow) GetManualSync() bool { 1695 if m != nil && m.ManualSync != nil { 1696 return *m.ManualSync 1697 } 1698 return false 1699 } 1700 1701 type OperationTerminateResponse struct { 1702 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1703 XXX_unrecognized []byte `json:"-"` 1704 XXX_sizecache int32 `json:"-"` 1705 } 1706 1707 func (m *OperationTerminateResponse) Reset() { *m = OperationTerminateResponse{} } 1708 func (m *OperationTerminateResponse) String() string { return proto.CompactTextString(m) } 1709 func (*OperationTerminateResponse) ProtoMessage() {} 1710 func (*OperationTerminateResponse) Descriptor() ([]byte, []int) { 1711 return fileDescriptor_df6e82b174b5eaec, []int{24} 1712 } 1713 func (m *OperationTerminateResponse) XXX_Unmarshal(b []byte) error { 1714 return m.Unmarshal(b) 1715 } 1716 func (m *OperationTerminateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1717 if deterministic { 1718 return xxx_messageInfo_OperationTerminateResponse.Marshal(b, m, deterministic) 1719 } else { 1720 b = b[:cap(b)] 1721 n, err := m.MarshalToSizedBuffer(b) 1722 if err != nil { 1723 return nil, err 1724 } 1725 return b[:n], nil 1726 } 1727 } 1728 func (m *OperationTerminateResponse) XXX_Merge(src proto.Message) { 1729 xxx_messageInfo_OperationTerminateResponse.Merge(m, src) 1730 } 1731 func (m *OperationTerminateResponse) XXX_Size() int { 1732 return m.Size() 1733 } 1734 func (m *OperationTerminateResponse) XXX_DiscardUnknown() { 1735 xxx_messageInfo_OperationTerminateResponse.DiscardUnknown(m) 1736 } 1737 1738 var xxx_messageInfo_OperationTerminateResponse proto.InternalMessageInfo 1739 1740 type ResourcesQuery struct { 1741 ApplicationName *string `protobuf:"bytes,1,req,name=applicationName" json:"applicationName,omitempty"` 1742 Namespace string `protobuf:"bytes,2,opt,name=namespace" json:"namespace"` 1743 Name string `protobuf:"bytes,3,opt,name=name" json:"name"` 1744 Version string `protobuf:"bytes,4,opt,name=version" json:"version"` 1745 Group string `protobuf:"bytes,5,opt,name=group" json:"group"` 1746 Kind string `protobuf:"bytes,6,opt,name=kind" json:"kind"` 1747 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1748 XXX_unrecognized []byte `json:"-"` 1749 XXX_sizecache int32 `json:"-"` 1750 } 1751 1752 func (m *ResourcesQuery) Reset() { *m = ResourcesQuery{} } 1753 func (m *ResourcesQuery) String() string { return proto.CompactTextString(m) } 1754 func (*ResourcesQuery) ProtoMessage() {} 1755 func (*ResourcesQuery) Descriptor() ([]byte, []int) { 1756 return fileDescriptor_df6e82b174b5eaec, []int{25} 1757 } 1758 func (m *ResourcesQuery) XXX_Unmarshal(b []byte) error { 1759 return m.Unmarshal(b) 1760 } 1761 func (m *ResourcesQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1762 if deterministic { 1763 return xxx_messageInfo_ResourcesQuery.Marshal(b, m, deterministic) 1764 } else { 1765 b = b[:cap(b)] 1766 n, err := m.MarshalToSizedBuffer(b) 1767 if err != nil { 1768 return nil, err 1769 } 1770 return b[:n], nil 1771 } 1772 } 1773 func (m *ResourcesQuery) XXX_Merge(src proto.Message) { 1774 xxx_messageInfo_ResourcesQuery.Merge(m, src) 1775 } 1776 func (m *ResourcesQuery) XXX_Size() int { 1777 return m.Size() 1778 } 1779 func (m *ResourcesQuery) XXX_DiscardUnknown() { 1780 xxx_messageInfo_ResourcesQuery.DiscardUnknown(m) 1781 } 1782 1783 var xxx_messageInfo_ResourcesQuery proto.InternalMessageInfo 1784 1785 func (m *ResourcesQuery) GetApplicationName() string { 1786 if m != nil && m.ApplicationName != nil { 1787 return *m.ApplicationName 1788 } 1789 return "" 1790 } 1791 1792 func (m *ResourcesQuery) GetNamespace() string { 1793 if m != nil { 1794 return m.Namespace 1795 } 1796 return "" 1797 } 1798 1799 func (m *ResourcesQuery) GetName() string { 1800 if m != nil { 1801 return m.Name 1802 } 1803 return "" 1804 } 1805 1806 func (m *ResourcesQuery) GetVersion() string { 1807 if m != nil { 1808 return m.Version 1809 } 1810 return "" 1811 } 1812 1813 func (m *ResourcesQuery) GetGroup() string { 1814 if m != nil { 1815 return m.Group 1816 } 1817 return "" 1818 } 1819 1820 func (m *ResourcesQuery) GetKind() string { 1821 if m != nil { 1822 return m.Kind 1823 } 1824 return "" 1825 } 1826 1827 type ManagedResourcesResponse struct { 1828 Items []*v1alpha1.ResourceDiff `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"` 1829 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1830 XXX_unrecognized []byte `json:"-"` 1831 XXX_sizecache int32 `json:"-"` 1832 } 1833 1834 func (m *ManagedResourcesResponse) Reset() { *m = ManagedResourcesResponse{} } 1835 func (m *ManagedResourcesResponse) String() string { return proto.CompactTextString(m) } 1836 func (*ManagedResourcesResponse) ProtoMessage() {} 1837 func (*ManagedResourcesResponse) Descriptor() ([]byte, []int) { 1838 return fileDescriptor_df6e82b174b5eaec, []int{26} 1839 } 1840 func (m *ManagedResourcesResponse) XXX_Unmarshal(b []byte) error { 1841 return m.Unmarshal(b) 1842 } 1843 func (m *ManagedResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1844 if deterministic { 1845 return xxx_messageInfo_ManagedResourcesResponse.Marshal(b, m, deterministic) 1846 } else { 1847 b = b[:cap(b)] 1848 n, err := m.MarshalToSizedBuffer(b) 1849 if err != nil { 1850 return nil, err 1851 } 1852 return b[:n], nil 1853 } 1854 } 1855 func (m *ManagedResourcesResponse) XXX_Merge(src proto.Message) { 1856 xxx_messageInfo_ManagedResourcesResponse.Merge(m, src) 1857 } 1858 func (m *ManagedResourcesResponse) XXX_Size() int { 1859 return m.Size() 1860 } 1861 func (m *ManagedResourcesResponse) XXX_DiscardUnknown() { 1862 xxx_messageInfo_ManagedResourcesResponse.DiscardUnknown(m) 1863 } 1864 1865 var xxx_messageInfo_ManagedResourcesResponse proto.InternalMessageInfo 1866 1867 func (m *ManagedResourcesResponse) GetItems() []*v1alpha1.ResourceDiff { 1868 if m != nil { 1869 return m.Items 1870 } 1871 return nil 1872 } 1873 1874 func init() { 1875 proto.RegisterType((*ApplicationQuery)(nil), "application.ApplicationQuery") 1876 proto.RegisterType((*RevisionMetadataQuery)(nil), "application.RevisionMetadataQuery") 1877 proto.RegisterType((*ApplicationResourceEventsQuery)(nil), "application.ApplicationResourceEventsQuery") 1878 proto.RegisterType((*ApplicationManifestQuery)(nil), "application.ApplicationManifestQuery") 1879 proto.RegisterType((*ApplicationResponse)(nil), "application.ApplicationResponse") 1880 proto.RegisterType((*ApplicationCreateRequest)(nil), "application.ApplicationCreateRequest") 1881 proto.RegisterType((*ApplicationUpdateRequest)(nil), "application.ApplicationUpdateRequest") 1882 proto.RegisterType((*ApplicationDeleteRequest)(nil), "application.ApplicationDeleteRequest") 1883 proto.RegisterType((*ApplicationSyncRequest)(nil), "application.ApplicationSyncRequest") 1884 proto.RegisterType((*ApplicationUpdateSpecRequest)(nil), "application.ApplicationUpdateSpecRequest") 1885 proto.RegisterType((*ApplicationPatchRequest)(nil), "application.ApplicationPatchRequest") 1886 proto.RegisterType((*ApplicationRollbackRequest)(nil), "application.ApplicationRollbackRequest") 1887 proto.RegisterType((*ApplicationResourceRequest)(nil), "application.ApplicationResourceRequest") 1888 proto.RegisterType((*ApplicationResourcePatchRequest)(nil), "application.ApplicationResourcePatchRequest") 1889 proto.RegisterType((*ApplicationResourceDeleteRequest)(nil), "application.ApplicationResourceDeleteRequest") 1890 proto.RegisterType((*ResourceActionRunRequest)(nil), "application.ResourceActionRunRequest") 1891 proto.RegisterType((*ResourceActionsListResponse)(nil), "application.ResourceActionsListResponse") 1892 proto.RegisterType((*ApplicationResourceResponse)(nil), "application.ApplicationResourceResponse") 1893 proto.RegisterType((*ApplicationPodLogsQuery)(nil), "application.ApplicationPodLogsQuery") 1894 proto.RegisterType((*LogEntry)(nil), "application.LogEntry") 1895 proto.RegisterType((*OperationTerminateRequest)(nil), "application.OperationTerminateRequest") 1896 proto.RegisterType((*ApplicationSyncWindowsQuery)(nil), "application.ApplicationSyncWindowsQuery") 1897 proto.RegisterType((*ApplicationSyncWindowsResponse)(nil), "application.ApplicationSyncWindowsResponse") 1898 proto.RegisterType((*ApplicationSyncWindow)(nil), "application.ApplicationSyncWindow") 1899 proto.RegisterType((*OperationTerminateResponse)(nil), "application.OperationTerminateResponse") 1900 proto.RegisterType((*ResourcesQuery)(nil), "application.ResourcesQuery") 1901 proto.RegisterType((*ManagedResourcesResponse)(nil), "application.ManagedResourcesResponse") 1902 } 1903 1904 func init() { 1905 proto.RegisterFile("server/application/application.proto", fileDescriptor_df6e82b174b5eaec) 1906 } 1907 1908 var fileDescriptor_df6e82b174b5eaec = []byte{ 1909 // 2156 bytes of a gzipped FileDescriptorProto 1910 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5a, 0xcd, 0x6f, 0x1c, 0x49, 1911 0x15, 0xa7, 0xc6, 0x63, 0xcf, 0xf8, 0x39, 0xd9, 0x24, 0xb5, 0x9b, 0xd0, 0xdb, 0x71, 0x9c, 0x51, 1912 0xe5, 0xcb, 0x71, 0xe2, 0x9e, 0xd8, 0x04, 0x58, 0xbc, 0xa0, 0x10, 0x27, 0xc1, 0x31, 0x38, 0xc1, 1913 0xb4, 0x13, 0x22, 0x21, 0x21, 0xd4, 0xdb, 0x5d, 0x1e, 0x37, 0x9e, 0xe9, 0x6e, 0xba, 0x7b, 0x26, 1914 0x1a, 0x45, 0x39, 0xb0, 0x48, 0x88, 0x03, 0x02, 0x21, 0xf6, 0xc0, 0x22, 0x3e, 0x56, 0x70, 0xe5, 1915 0x06, 0x5c, 0x38, 0xec, 0x05, 0x81, 0x72, 0x44, 0xb0, 0xe7, 0x08, 0x59, 0xfc, 0x01, 0x9c, 0x38, 1916 0xa3, 0xaa, 0xae, 0xea, 0xae, 0x9e, 0xf4, 0xf4, 0x4c, 0xd6, 0x83, 0x50, 0x6e, 0x53, 0xaf, 0xaa, 1917 0xdf, 0xfb, 0xbd, 0x57, 0xbf, 0x7a, 0xaf, 0xea, 0x69, 0xe0, 0x7c, 0x44, 0xc3, 0x1e, 0x0d, 0x9b, 1918 0x56, 0x10, 0xb4, 0x5d, 0xdb, 0x8a, 0x5d, 0xdf, 0x53, 0x7f, 0x1b, 0x41, 0xe8, 0xc7, 0x3e, 0x9e, 1919 0x53, 0x44, 0xfa, 0x1b, 0x2d, 0xbf, 0xe5, 0x73, 0x79, 0x93, 0xfd, 0x4a, 0x96, 0xe8, 0xf3, 0x2d, 1920 0xdf, 0x6f, 0xb5, 0x69, 0xd3, 0x0a, 0xdc, 0xa6, 0xe5, 0x79, 0x7e, 0xcc, 0x17, 0x47, 0x62, 0x96, 1921 0xec, 0xbf, 0x15, 0x19, 0xae, 0xcf, 0x67, 0x6d, 0x3f, 0xa4, 0xcd, 0xde, 0x4a, 0xb3, 0x45, 0x3d, 1922 0x1a, 0x5a, 0x31, 0x75, 0xc4, 0x9a, 0xeb, 0xd9, 0x9a, 0x8e, 0x65, 0xef, 0xb9, 0x1e, 0x0d, 0xfb, 1923 0xcd, 0x60, 0xbf, 0xc5, 0x04, 0x51, 0xb3, 0x43, 0x63, 0xab, 0xe8, 0xab, 0xcd, 0x96, 0x1b, 0xef, 1924 0x75, 0xdf, 0x31, 0x6c, 0xbf, 0xd3, 0xb4, 0x42, 0x0e, 0xec, 0xdb, 0xfc, 0xc7, 0xb2, 0xed, 0x64, 1925 0x5f, 0xab, 0xee, 0xf5, 0x56, 0xac, 0x76, 0xb0, 0x67, 0xbd, 0xa8, 0x6a, 0xbd, 0x4c, 0x55, 0x48, 1926 0x03, 0x5f, 0xc4, 0x8a, 0xff, 0x74, 0x63, 0x3f, 0xec, 0x2b, 0x3f, 0x13, 0x1d, 0xe4, 0x4f, 0x08, 1927 0x8e, 0xdf, 0xcc, 0x8c, 0x7d, 0xad, 0x4b, 0xc3, 0x3e, 0xc6, 0x50, 0xf5, 0xac, 0x0e, 0xd5, 0x50, 1928 0x03, 0x2d, 0xce, 0x9a, 0xfc, 0x37, 0xd6, 0xa0, 0x16, 0xd2, 0xdd, 0x90, 0x46, 0x7b, 0x5a, 0x85, 1929 0x8b, 0xe5, 0x10, 0x5f, 0x84, 0x1a, 0xb3, 0x4c, 0xed, 0x58, 0x9b, 0x6a, 0x4c, 0x2d, 0xce, 0xae, 1930 0x1f, 0x39, 0x78, 0x7e, 0xb6, 0xbe, 0x9d, 0x88, 0x22, 0x53, 0x4e, 0x62, 0x03, 0x8e, 0x85, 0x34, 1931 0xf2, 0xbb, 0xa1, 0x4d, 0xbf, 0x4e, 0xc3, 0xc8, 0xf5, 0x3d, 0xad, 0xca, 0x34, 0xad, 0x57, 0x9f, 1932 0x3d, 0x3f, 0xfb, 0x09, 0x73, 0x70, 0x12, 0x37, 0xa0, 0x1e, 0xd1, 0x36, 0xb5, 0x63, 0x3f, 0xd4, 1933 0xa6, 0x95, 0x85, 0xa9, 0x94, 0x6c, 0xc0, 0x49, 0x93, 0xf6, 0x5c, 0xb6, 0xfa, 0x1e, 0x8d, 0x2d, 1934 0xc7, 0x8a, 0xad, 0x41, 0x07, 0x2a, 0xa9, 0x03, 0x3a, 0xd4, 0x43, 0xb1, 0x58, 0xab, 0x70, 0x79, 1935 0x3a, 0x66, 0x51, 0x58, 0x50, 0xa2, 0x60, 0x0a, 0x24, 0x77, 0x7a, 0xd4, 0x8b, 0xa3, 0xe1, 0x2a, 1936 0x57, 0xe1, 0x84, 0x04, 0x7d, 0xdf, 0xea, 0xd0, 0x28, 0xb0, 0x6c, 0x9a, 0xe8, 0x16, 0x50, 0x5f, 1937 0x9c, 0xc6, 0x8b, 0x70, 0x44, 0x15, 0x6a, 0x53, 0xca, 0xf2, 0xdc, 0x0c, 0xbe, 0x08, 0x73, 0x72, 1938 0xfc, 0x70, 0xf3, 0xb6, 0x56, 0x55, 0x16, 0xaa, 0x13, 0x64, 0x1b, 0x34, 0x05, 0xfb, 0x3d, 0xcb, 1939 0x73, 0x77, 0x69, 0x14, 0x0f, 0x47, 0xdd, 0xc8, 0x05, 0x42, 0x89, 0x6b, 0x1a, 0x8e, 0x93, 0xf0, 1940 0x7a, 0x3e, 0x1a, 0x81, 0xef, 0x45, 0x94, 0x7c, 0x88, 0x72, 0x96, 0x6e, 0x85, 0xd4, 0x8a, 0xa9, 1941 0x49, 0xbf, 0xd3, 0xa5, 0x51, 0x8c, 0x3d, 0x50, 0x0f, 0x1d, 0x37, 0x38, 0xb7, 0xfa, 0x25, 0x23, 1942 0xa3, 0xa8, 0x21, 0x29, 0xca, 0x7f, 0x7c, 0xcb, 0x76, 0x8c, 0x60, 0xbf, 0x65, 0x30, 0xb6, 0x1b, 1943 0xea, 0x01, 0x96, 0x6c, 0x37, 0x14, 0x4b, 0xd2, 0x6b, 0x65, 0x1d, 0x3e, 0x05, 0x33, 0xdd, 0x20, 1944 0xa2, 0x61, 0xcc, 0x7d, 0xa8, 0x9b, 0x62, 0xc4, 0xb6, 0xb9, 0x67, 0xb5, 0x5d, 0xc7, 0x8a, 0x59, 1945 0x6c, 0xd9, 0x4c, 0x3a, 0x26, 0x1f, 0xe4, 0x1d, 0x78, 0x18, 0x38, 0x8a, 0x03, 0x7b, 0xff, 0x43, 1946 0x07, 0xf2, 0xd0, 0x55, 0x88, 0x95, 0x01, 0x88, 0x77, 0x73, 0x08, 0x6f, 0xd3, 0x36, 0xcd, 0x10, 1947 0x16, 0x6d, 0xa6, 0x06, 0x35, 0xdb, 0x8a, 0x6c, 0xcb, 0x91, 0xaa, 0xe4, 0x90, 0x3c, 0xab, 0xc2, 1948 0x29, 0x45, 0xd5, 0x4e, 0xdf, 0xb3, 0xcb, 0x14, 0x8d, 0x64, 0x05, 0x9e, 0x87, 0x19, 0x27, 0xec, 1949 0x9b, 0x5d, 0x2f, 0x89, 0xab, 0x98, 0x17, 0x32, 0xac, 0xc3, 0x74, 0x10, 0x76, 0x3d, 0xca, 0xcf, 1950 0xb4, 0x9c, 0x4c, 0x44, 0xd8, 0x86, 0x7a, 0x14, 0xb3, 0xcc, 0xd5, 0xea, 0xf3, 0x93, 0x3c, 0xb7, 1951 0xba, 0x71, 0x88, 0xb8, 0x32, 0x4f, 0x76, 0x84, 0x3a, 0x33, 0x55, 0x8c, 0x63, 0x98, 0x95, 0xa7, 1952 0x22, 0xd2, 0x6a, 0x8d, 0xa9, 0xc5, 0xb9, 0xd5, 0xed, 0x43, 0x5a, 0xf9, 0x6a, 0xc0, 0xf2, 0xad, 1953 0x92, 0x10, 0x84, 0x5b, 0x99, 0x21, 0x3c, 0x0f, 0xb3, 0x1d, 0x71, 0xe2, 0x22, 0xad, 0xce, 0xd2, 1954 0x9f, 0x99, 0x09, 0xf0, 0x43, 0x98, 0x76, 0xbd, 0x5d, 0x3f, 0xd2, 0x66, 0x39, 0x9e, 0x1b, 0x87, 1955 0xc0, 0xb3, 0xe9, 0xed, 0xfa, 0x66, 0xa2, 0x0d, 0x7b, 0x70, 0x34, 0xa4, 0x71, 0xd8, 0x97, 0x51, 1956 0xd0, 0x80, 0x07, 0xf5, 0xee, 0x21, 0xd4, 0x9b, 0xaa, 0x3e, 0x33, 0xaf, 0x9e, 0xfc, 0x01, 0xc1, 1957 0xfc, 0x0b, 0xe7, 0x66, 0x27, 0xa0, 0xa5, 0x84, 0x72, 0xa0, 0x1a, 0x05, 0xd4, 0xe6, 0xf9, 0x70, 1958 0x6e, 0xf5, 0xcb, 0x93, 0x39, 0x48, 0xcc, 0xa8, 0xd8, 0x04, 0xae, 0xbd, 0xf4, 0xb8, 0x77, 0xe0, 1959 0x93, 0xca, 0xa7, 0xdb, 0x56, 0x6c, 0xef, 0x95, 0x01, 0x66, 0x0c, 0x66, 0x6b, 0x72, 0x19, 0x3c, 1960 0x11, 0x61, 0x02, 0xb3, 0xfc, 0xc7, 0x83, 0x7e, 0x90, 0x4f, 0xd9, 0x99, 0x98, 0x7c, 0x1f, 0x81, 1961 0xae, 0x9e, 0x79, 0xbf, 0xdd, 0x7e, 0xc7, 0xb2, 0xf7, 0xcb, 0x4d, 0x56, 0x5c, 0x87, 0xdb, 0x9b, 1962 0x5a, 0x07, 0xa6, 0xef, 0xe0, 0xf9, 0xd9, 0xca, 0xe6, 0x6d, 0xb3, 0xe2, 0x3a, 0x1f, 0xff, 0xb8, 1963 0x91, 0x8f, 0x06, 0x80, 0x08, 0xb2, 0x96, 0x01, 0x21, 0x30, 0xeb, 0x15, 0x56, 0xb0, 0x4c, 0xfc, 1964 0x12, 0x95, 0x6b, 0x01, 0x6a, 0xbd, 0xb4, 0xc2, 0x67, 0x8b, 0xa4, 0x90, 0x81, 0x6f, 0x85, 0x7e, 1965 0x37, 0xd0, 0xa6, 0xd5, 0x48, 0x73, 0x11, 0xd6, 0xa0, 0xba, 0xef, 0x7a, 0x8e, 0x36, 0xa3, 0x4c, 1966 0x71, 0x09, 0x79, 0xbf, 0x02, 0x67, 0x0b, 0xdc, 0x1a, 0xb9, 0xaf, 0xaf, 0x80, 0x6f, 0x19, 0xf7, 1967 0x6a, 0x23, 0xb8, 0x57, 0x2f, 0xe6, 0xde, 0x7f, 0x10, 0x34, 0x0a, 0x62, 0x33, 0xba, 0x7e, 0xbc, 1968 0x22, 0xc1, 0xd9, 0xf5, 0x43, 0x9b, 0x6a, 0xb5, 0x94, 0xeb, 0xc8, 0x4c, 0x44, 0xe4, 0xdf, 0x08, 1969 0x34, 0xe9, 0xed, 0x4d, 0x9b, 0xfb, 0xde, 0xf5, 0x5e, 0x75, 0x87, 0xe7, 0x61, 0xc6, 0xe2, 0xbe, 1970 0xe4, 0xe8, 0x20, 0x64, 0xe4, 0x07, 0x08, 0x4e, 0xe7, 0x5d, 0x8e, 0xb6, 0xdc, 0x28, 0x96, 0xd7, 1971 0x34, 0xec, 0x42, 0x2d, 0x59, 0x19, 0x69, 0x88, 0x97, 0x9d, 0xcd, 0x43, 0xd5, 0x05, 0xd5, 0x90, 1972 0x74, 0x4f, 0xe8, 0x27, 0x37, 0xe0, 0x74, 0x61, 0xa2, 0x11, 0x48, 0x1a, 0x50, 0x97, 0xb5, 0x30, 1973 0xd9, 0x03, 0x79, 0xa7, 0x90, 0x52, 0xf2, 0x97, 0x4a, 0x3e, 0x47, 0xfb, 0xce, 0x96, 0xdf, 0x2a, 1974 0xb9, 0x71, 0x8f, 0xb3, 0x7b, 0x1a, 0xd4, 0x02, 0xdf, 0xc9, 0x36, 0xce, 0x94, 0x43, 0xf6, 0xb5, 1975 0xed, 0x7b, 0xb1, 0xc5, 0x9e, 0x6a, 0xb9, 0xfd, 0xca, 0xc4, 0x6c, 0xef, 0x23, 0xd7, 0xb3, 0xe9, 1976 0x0e, 0xb5, 0x7d, 0xcf, 0x89, 0xf8, 0xc6, 0x4d, 0xc9, 0xbd, 0x57, 0x67, 0xf0, 0x5d, 0x98, 0xe5, 1977 0xe3, 0x07, 0x6e, 0x87, 0x6a, 0x33, 0xbc, 0x02, 0x2f, 0x19, 0xc9, 0x9b, 0xd0, 0x50, 0xdf, 0x84, 1978 0x59, 0x84, 0xd9, 0x9b, 0xd0, 0xe8, 0xad, 0x18, 0xec, 0x0b, 0x33, 0xfb, 0x98, 0xe1, 0x8a, 0x2d, 1979 0xb7, 0xbd, 0xe5, 0x7a, 0xfc, 0xea, 0x92, 0x19, 0xcc, 0xc4, 0x8c, 0x13, 0xbb, 0x7e, 0xbb, 0xed, 1980 0x3f, 0xe6, 0x29, 0x20, 0x2d, 0x07, 0x89, 0x8c, 0xbc, 0x87, 0xa0, 0xbe, 0xe5, 0xb7, 0xee, 0x78, 1981 0x71, 0xd8, 0x67, 0xa4, 0x64, 0xfe, 0x50, 0x2f, 0x1f, 0x75, 0x29, 0xc4, 0xf7, 0x61, 0x36, 0x76, 1982 0x3b, 0x74, 0x27, 0xb6, 0x3a, 0x81, 0x28, 0xcf, 0x2f, 0x01, 0x3c, 0x85, 0x26, 0x55, 0x30, 0x22, 1983 0xb7, 0xad, 0x28, 0xe6, 0xd1, 0x96, 0xc0, 0xb8, 0x84, 0x34, 0xe1, 0xcd, 0xf4, 0x0e, 0xf5, 0x80, 1984 0x86, 0x1d, 0xd7, 0xb3, 0x4a, 0xd3, 0x11, 0x59, 0xc9, 0x11, 0x8a, 0xdd, 0xc1, 0x1e, 0xb9, 0x9e, 1985 0xe3, 0x3f, 0x1e, 0x4e, 0x09, 0xf2, 0xf7, 0xfc, 0xdb, 0x4d, 0xf9, 0x26, 0xe5, 0xe1, 0x5d, 0x38, 1986 0xca, 0x18, 0xdb, 0xa3, 0x62, 0x42, 0x9c, 0x0b, 0x92, 0xa3, 0x7c, 0xa1, 0x0e, 0x33, 0xff, 0x21, 1987 0xde, 0x82, 0x63, 0x56, 0x14, 0xb9, 0x2d, 0x8f, 0x3a, 0x52, 0x57, 0x65, 0x6c, 0x5d, 0x83, 0x9f, 1988 0x26, 0x97, 0x77, 0xbe, 0x22, 0x89, 0x9d, 0x29, 0x87, 0xe4, 0x7b, 0x08, 0x4e, 0x16, 0x2a, 0x61, 1989 0x21, 0xe0, 0x59, 0x43, 0x84, 0x40, 0x24, 0xc8, 0x7a, 0x64, 0xef, 0x51, 0xa7, 0xdb, 0xa6, 0xf2, 1990 0x69, 0x2b, 0xc7, 0x6c, 0xce, 0xe9, 0x26, 0x3b, 0x20, 0x8e, 0x43, 0x3a, 0xc6, 0x0b, 0x00, 0x1d, 1991 0xcb, 0xeb, 0x5a, 0x6d, 0x0e, 0xa1, 0xca, 0x21, 0x28, 0x12, 0x32, 0x0f, 0x7a, 0xd1, 0xf6, 0x89, 1992 0xe7, 0xe0, 0x47, 0x08, 0x5e, 0x93, 0x47, 0x5e, 0xec, 0x8f, 0x01, 0xc7, 0x94, 0x30, 0xdc, 0x4f, 1993 0xb7, 0x4a, 0xe4, 0xec, 0xc1, 0xc9, 0xc1, 0xe3, 0x8c, 0x8a, 0x8f, 0x73, 0xb2, 0xe7, 0x53, 0xca, 1994 0x74, 0x92, 0x0c, 0x72, 0xc9, 0x17, 0x95, 0x26, 0x5f, 0x34, 0x3c, 0xf9, 0xa2, 0x81, 0x6b, 0x46, 1995 0x1f, 0xb4, 0x7b, 0x96, 0x67, 0xb5, 0xa8, 0x93, 0x3a, 0x97, 0x12, 0xe9, 0x9b, 0x30, 0xed, 0xc6, 1996 0xb4, 0x23, 0x09, 0xb4, 0x31, 0x81, 0xc4, 0x7a, 0xdb, 0xdd, 0xdd, 0x35, 0x13, 0xad, 0xab, 0xef, 1997 0x2f, 0x00, 0x56, 0x77, 0x9d, 0x86, 0x3d, 0xd7, 0xa6, 0xf8, 0xc7, 0x08, 0xaa, 0x2c, 0xc3, 0xe3, 1998 0x33, 0xc3, 0x48, 0xc6, 0xa3, 0xaf, 0x4f, 0xe8, 0x8e, 0xcd, 0x4c, 0x91, 0xf9, 0x77, 0xff, 0xf1, 1999 0xaf, 0x9f, 0x56, 0x4e, 0xe1, 0x37, 0x78, 0x0b, 0xac, 0xb7, 0xa2, 0x76, 0xa4, 0x22, 0xfc, 0x43, 2000 0x04, 0x58, 0xd4, 0x1c, 0xa5, 0x51, 0x82, 0xaf, 0x0c, 0xc3, 0x57, 0xd0, 0x50, 0xd1, 0xcf, 0x28, 2001 0x29, 0xc7, 0xb0, 0xfd, 0x90, 0xb2, 0x04, 0xc3, 0x17, 0x70, 0x00, 0x4b, 0x1c, 0xc0, 0x79, 0x4c, 2002 0x8a, 0x00, 0x34, 0x9f, 0x30, 0x02, 0x3c, 0x6d, 0xd2, 0xc4, 0xee, 0xaf, 0x11, 0x4c, 0x3f, 0xe2, 2003 0x77, 0xa5, 0x11, 0x11, 0xda, 0x9e, 0x4c, 0x84, 0xb8, 0x2d, 0x0e, 0x95, 0x9c, 0xe3, 0x30, 0xcf, 2004 0xe0, 0xd3, 0x12, 0x66, 0x14, 0x87, 0xd4, 0xea, 0xe4, 0xd0, 0x5e, 0x43, 0xf8, 0x37, 0x08, 0x66, 2005 0x92, 0x7e, 0x09, 0xbe, 0x30, 0x0c, 0x62, 0xae, 0x9f, 0xa2, 0x4f, 0xa8, 0xf3, 0x40, 0x2e, 0x73, 2006 0x80, 0xe7, 0x48, 0xe1, 0x46, 0xae, 0xe5, 0xfa, 0x12, 0x3f, 0x41, 0x30, 0xb5, 0x41, 0x47, 0xd2, 2007 0x6c, 0x52, 0xc8, 0x5e, 0x08, 0x5d, 0xc1, 0x0e, 0xe3, 0xdf, 0x22, 0x78, 0x73, 0x83, 0xc6, 0xc5, 2008 0x09, 0x1e, 0x2f, 0x8e, 0xce, 0xba, 0x82, 0x6d, 0x57, 0xc6, 0x58, 0x99, 0x66, 0xb6, 0x26, 0x47, 2009 0x76, 0x19, 0x5f, 0x2a, 0xe3, 0x5e, 0xd4, 0xf7, 0xec, 0xc7, 0x02, 0xc7, 0x5f, 0x11, 0x1c, 0x1f, 2010 0xec, 0x44, 0xe2, 0x7c, 0x49, 0x28, 0x6c, 0x54, 0xea, 0x5f, 0x39, 0x54, 0x06, 0xc9, 0x6b, 0x24, 2011 0x37, 0x39, 0xec, 0xb7, 0xf1, 0xe7, 0xca, 0x60, 0xcb, 0x76, 0x4e, 0xd4, 0x7c, 0x22, 0x7f, 0x3e, 2012 0xe5, 0xcd, 0x6a, 0x8e, 0xf9, 0x5d, 0x04, 0x47, 0x36, 0x68, 0x7c, 0x2f, 0xed, 0x60, 0x0c, 0x65, 2013 0x6b, 0xae, 0xcf, 0xa8, 0xcf, 0x1b, 0x4a, 0x67, 0x59, 0x4e, 0xa5, 0xf1, 0x5c, 0xe6, 0xc0, 0x2e, 2014 0xe1, 0x0b, 0x65, 0xc0, 0xb2, 0xae, 0xc9, 0x87, 0x08, 0x66, 0x92, 0x1e, 0xc3, 0x70, 0xf3, 0xb9, 2015 0xde, 0xdd, 0xc4, 0x28, 0x79, 0x87, 0x03, 0xbd, 0xa1, 0x5f, 0x2b, 0x06, 0xaa, 0x7e, 0x2f, 0x43, 2016 0x66, 0x70, 0xf4, 0xf9, 0x83, 0xf4, 0x7b, 0x04, 0x90, 0x35, 0x49, 0xf0, 0xe5, 0x72, 0x27, 0x94, 2017 0x46, 0x8a, 0x3e, 0xc1, 0x36, 0x09, 0x31, 0xb8, 0x33, 0x8b, 0x7a, 0xa3, 0x94, 0xc5, 0x01, 0xb5, 2018 0xd7, 0x92, 0x56, 0xca, 0x2f, 0x11, 0x4c, 0xf3, 0xc7, 0x34, 0x3e, 0x3f, 0x0c, 0xb0, 0xfa, 0xd6, 2019 0x9e, 0x58, 0xd0, 0x2f, 0x72, 0x9c, 0x8d, 0xd5, 0xb2, 0x3c, 0xb0, 0x86, 0x96, 0x70, 0x0f, 0x66, 2020 0x92, 0xf7, 0xec, 0x70, 0x56, 0xe4, 0xde, 0xbb, 0x7a, 0xa3, 0xa4, 0x1c, 0x25, 0xc4, 0x14, 0x29, 2021 0x68, 0xa9, 0x34, 0x05, 0x7d, 0x80, 0xa0, 0xca, 0xb2, 0x04, 0x3e, 0x57, 0x96, 0x43, 0x26, 0x1d, 2022 0x95, 0x2b, 0x1c, 0xda, 0x05, 0xd2, 0x18, 0x95, 0x83, 0x58, 0x68, 0x7e, 0x86, 0xe0, 0xf8, 0xe0, 2023 0xa5, 0x05, 0x9f, 0x1e, 0xc8, 0x3f, 0xea, 0x4d, 0x4d, 0xcf, 0x87, 0x70, 0xd8, 0x85, 0x87, 0x7c, 2024 0x91, 0xa3, 0x58, 0xc3, 0x6f, 0x8d, 0x3c, 0x10, 0xf7, 0xe5, 0x21, 0x66, 0x8a, 0x96, 0xb3, 0x06, 2025 0xe9, 0x1f, 0x11, 0x1c, 0x91, 0x7a, 0x1f, 0x84, 0x94, 0x96, 0xc3, 0x9a, 0x10, 0xff, 0x99, 0x21, 2026 0xf2, 0x79, 0x8e, 0xfd, 0x33, 0xf8, 0xfa, 0x98, 0xd8, 0x25, 0xe6, 0xe5, 0x98, 0xc1, 0xfc, 0x33, 2027 0x82, 0x13, 0x8f, 0x12, 0xba, 0xff, 0x3f, 0xc0, 0xdf, 0xe2, 0xe0, 0xbf, 0x80, 0xdf, 0x2e, 0xb9, 2028 0x57, 0x8c, 0xf2, 0xe1, 0x1a, 0xc2, 0xbf, 0x43, 0x50, 0x97, 0x8d, 0x48, 0x7c, 0x69, 0xe8, 0x79, 2029 0xc8, 0xb7, 0x2a, 0x27, 0xc6, 0x61, 0x51, 0x47, 0xc9, 0xf9, 0xd2, 0x82, 0x24, 0x8c, 0x33, 0x1e, 2030 0xbf, 0x87, 0x00, 0xa7, 0x0f, 0x8d, 0xf4, 0xe9, 0x81, 0x2f, 0xe6, 0x4c, 0x0d, 0x7d, 0x51, 0xea, 2031 0x97, 0x46, 0xae, 0xcb, 0x17, 0xa4, 0xa5, 0xd2, 0x82, 0xe4, 0xa7, 0xf6, 0x7f, 0x84, 0x60, 0x6e, 2032 0x83, 0xa6, 0xb7, 0xdd, 0x92, 0x40, 0xe6, 0x5b, 0xad, 0xfa, 0xe2, 0xe8, 0x85, 0x02, 0xd1, 0x55, 2033 0x8e, 0xe8, 0x22, 0x2e, 0x0f, 0x95, 0x04, 0xf0, 0x0b, 0x04, 0x47, 0xb7, 0x55, 0x72, 0xe2, 0xab, 2034 0xa3, 0x2c, 0xe5, 0x52, 0xf7, 0xf8, 0xb8, 0x3e, 0xc5, 0x71, 0x2d, 0x93, 0xb1, 0x70, 0xad, 0x89, 2035 0x8e, 0xe5, 0xaf, 0x10, 0xbc, 0xae, 0x3e, 0x0f, 0x44, 0x97, 0xea, 0xe3, 0xc6, 0xad, 0xa4, 0xd9, 2036 0x45, 0xae, 0x73, 0x7c, 0x06, 0xbe, 0x3a, 0x0e, 0xbe, 0xa6, 0xe8, 0x5b, 0xe1, 0x9f, 0x23, 0x38, 2037 0xc1, 0xfb, 0x84, 0xaa, 0xe2, 0x81, 0xb2, 0x32, 0xac, 0xab, 0x38, 0x46, 0x59, 0x11, 0x99, 0x87, 2038 0xbc, 0x14, 0xa8, 0x35, 0xd1, 0xdf, 0x63, 0xcf, 0xbd, 0xd7, 0x64, 0x21, 0x13, 0xbb, 0xbb, 0x3c, 2039 0x2a, 0x70, 0x2f, 0x5b, 0xf8, 0x04, 0xdd, 0x96, 0xc6, 0xa3, 0xdb, 0x77, 0x11, 0xd4, 0x44, 0x6b, 2040 0xae, 0xe4, 0x6e, 0xa0, 0xf4, 0xee, 0xf4, 0x93, 0xb9, 0x55, 0xb2, 0x33, 0x45, 0x3e, 0xcb, 0xcd, 2041 0xae, 0xe0, 0x66, 0x99, 0xd9, 0xc0, 0x77, 0xa2, 0xe6, 0x13, 0xd1, 0xb3, 0x7b, 0xda, 0x6c, 0xfb, 2042 0xad, 0xe8, 0x1a, 0x5a, 0xbf, 0xf5, 0xec, 0x60, 0x01, 0xfd, 0xed, 0x60, 0x01, 0xfd, 0xf3, 0x60, 2043 0x01, 0x7d, 0xe3, 0xd3, 0x63, 0xfc, 0x8b, 0xc2, 0x6e, 0xbb, 0xd4, 0x8b, 0x55, 0x13, 0xff, 0x0d, 2044 0x00, 0x00, 0xff, 0xff, 0x65, 0x8a, 0x80, 0x29, 0x3e, 0x22, 0x00, 0x00, 2045 } 2046 2047 // Reference imports to suppress errors if they are not otherwise used. 2048 var _ context.Context 2049 var _ grpc.ClientConn 2050 2051 // This is a compile-time assertion to ensure that this generated file 2052 // is compatible with the grpc package it is being compiled against. 2053 const _ = grpc.SupportPackageIsVersion4 2054 2055 // ApplicationServiceClient is the client API for ApplicationService service. 2056 // 2057 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 2058 type ApplicationServiceClient interface { 2059 // List returns list of applications 2060 List(ctx context.Context, in *ApplicationQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationList, error) 2061 // ListResourceEvents returns a list of event resources 2062 ListResourceEvents(ctx context.Context, in *ApplicationResourceEventsQuery, opts ...grpc.CallOption) (*v11.EventList, error) 2063 // Watch returns stream of application change events 2064 Watch(ctx context.Context, in *ApplicationQuery, opts ...grpc.CallOption) (ApplicationService_WatchClient, error) 2065 // Create creates an application 2066 Create(ctx context.Context, in *ApplicationCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Application, error) 2067 // Get returns an application by name 2068 Get(ctx context.Context, in *ApplicationQuery, opts ...grpc.CallOption) (*v1alpha1.Application, error) 2069 // Get returns sync windows of the application 2070 GetApplicationSyncWindows(ctx context.Context, in *ApplicationSyncWindowsQuery, opts ...grpc.CallOption) (*ApplicationSyncWindowsResponse, error) 2071 // Get the meta-data (author, date, tags, message) for a specific revision of the application 2072 RevisionMetadata(ctx context.Context, in *RevisionMetadataQuery, opts ...grpc.CallOption) (*v1alpha1.RevisionMetadata, error) 2073 // GetManifests returns application manifests 2074 GetManifests(ctx context.Context, in *ApplicationManifestQuery, opts ...grpc.CallOption) (*apiclient.ManifestResponse, error) 2075 // Update updates an application 2076 Update(ctx context.Context, in *ApplicationUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Application, error) 2077 // UpdateSpec updates an application spec 2078 UpdateSpec(ctx context.Context, in *ApplicationUpdateSpecRequest, opts ...grpc.CallOption) (*v1alpha1.ApplicationSpec, error) 2079 // Patch patch an application 2080 Patch(ctx context.Context, in *ApplicationPatchRequest, opts ...grpc.CallOption) (*v1alpha1.Application, error) 2081 // Delete deletes an application 2082 Delete(ctx context.Context, in *ApplicationDeleteRequest, opts ...grpc.CallOption) (*ApplicationResponse, error) 2083 // Sync syncs an application to its target state 2084 Sync(ctx context.Context, in *ApplicationSyncRequest, opts ...grpc.CallOption) (*v1alpha1.Application, error) 2085 // ManagedResources returns list of managed resources 2086 ManagedResources(ctx context.Context, in *ResourcesQuery, opts ...grpc.CallOption) (*ManagedResourcesResponse, error) 2087 // ResourceTree returns resource tree 2088 ResourceTree(ctx context.Context, in *ResourcesQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationTree, error) 2089 // Watch returns stream of application resource tree 2090 WatchResourceTree(ctx context.Context, in *ResourcesQuery, opts ...grpc.CallOption) (ApplicationService_WatchResourceTreeClient, error) 2091 // Rollback syncs an application to its target state 2092 Rollback(ctx context.Context, in *ApplicationRollbackRequest, opts ...grpc.CallOption) (*v1alpha1.Application, error) 2093 // TerminateOperation terminates the currently running operation 2094 TerminateOperation(ctx context.Context, in *OperationTerminateRequest, opts ...grpc.CallOption) (*OperationTerminateResponse, error) 2095 // GetResource returns single application resource 2096 GetResource(ctx context.Context, in *ApplicationResourceRequest, opts ...grpc.CallOption) (*ApplicationResourceResponse, error) 2097 // PatchResource patch single application resource 2098 PatchResource(ctx context.Context, in *ApplicationResourcePatchRequest, opts ...grpc.CallOption) (*ApplicationResourceResponse, error) 2099 // ListResourceActions returns list of resource actions 2100 ListResourceActions(ctx context.Context, in *ApplicationResourceRequest, opts ...grpc.CallOption) (*ResourceActionsListResponse, error) 2101 // RunResourceAction run resource action 2102 RunResourceAction(ctx context.Context, in *ResourceActionRunRequest, opts ...grpc.CallOption) (*ApplicationResponse, error) 2103 // DeleteResource deletes a single application resource 2104 DeleteResource(ctx context.Context, in *ApplicationResourceDeleteRequest, opts ...grpc.CallOption) (*ApplicationResponse, error) 2105 // PodLogs returns stream of log entries for the specified pod. Pod 2106 PodLogs(ctx context.Context, in *ApplicationPodLogsQuery, opts ...grpc.CallOption) (ApplicationService_PodLogsClient, error) 2107 } 2108 2109 type applicationServiceClient struct { 2110 cc *grpc.ClientConn 2111 } 2112 2113 func NewApplicationServiceClient(cc *grpc.ClientConn) ApplicationServiceClient { 2114 return &applicationServiceClient{cc} 2115 } 2116 2117 func (c *applicationServiceClient) List(ctx context.Context, in *ApplicationQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationList, error) { 2118 out := new(v1alpha1.ApplicationList) 2119 err := c.cc.Invoke(ctx, "/application.ApplicationService/List", in, out, opts...) 2120 if err != nil { 2121 return nil, err 2122 } 2123 return out, nil 2124 } 2125 2126 func (c *applicationServiceClient) ListResourceEvents(ctx context.Context, in *ApplicationResourceEventsQuery, opts ...grpc.CallOption) (*v11.EventList, error) { 2127 out := new(v11.EventList) 2128 err := c.cc.Invoke(ctx, "/application.ApplicationService/ListResourceEvents", in, out, opts...) 2129 if err != nil { 2130 return nil, err 2131 } 2132 return out, nil 2133 } 2134 2135 func (c *applicationServiceClient) Watch(ctx context.Context, in *ApplicationQuery, opts ...grpc.CallOption) (ApplicationService_WatchClient, error) { 2136 stream, err := c.cc.NewStream(ctx, &_ApplicationService_serviceDesc.Streams[0], "/application.ApplicationService/Watch", opts...) 2137 if err != nil { 2138 return nil, err 2139 } 2140 x := &applicationServiceWatchClient{stream} 2141 if err := x.ClientStream.SendMsg(in); err != nil { 2142 return nil, err 2143 } 2144 if err := x.ClientStream.CloseSend(); err != nil { 2145 return nil, err 2146 } 2147 return x, nil 2148 } 2149 2150 type ApplicationService_WatchClient interface { 2151 Recv() (*v1alpha1.ApplicationWatchEvent, error) 2152 grpc.ClientStream 2153 } 2154 2155 type applicationServiceWatchClient struct { 2156 grpc.ClientStream 2157 } 2158 2159 func (x *applicationServiceWatchClient) Recv() (*v1alpha1.ApplicationWatchEvent, error) { 2160 m := new(v1alpha1.ApplicationWatchEvent) 2161 if err := x.ClientStream.RecvMsg(m); err != nil { 2162 return nil, err 2163 } 2164 return m, nil 2165 } 2166 2167 func (c *applicationServiceClient) Create(ctx context.Context, in *ApplicationCreateRequest, opts ...grpc.CallOption) (*v1alpha1.Application, error) { 2168 out := new(v1alpha1.Application) 2169 err := c.cc.Invoke(ctx, "/application.ApplicationService/Create", in, out, opts...) 2170 if err != nil { 2171 return nil, err 2172 } 2173 return out, nil 2174 } 2175 2176 func (c *applicationServiceClient) Get(ctx context.Context, in *ApplicationQuery, opts ...grpc.CallOption) (*v1alpha1.Application, error) { 2177 out := new(v1alpha1.Application) 2178 err := c.cc.Invoke(ctx, "/application.ApplicationService/Get", in, out, opts...) 2179 if err != nil { 2180 return nil, err 2181 } 2182 return out, nil 2183 } 2184 2185 func (c *applicationServiceClient) GetApplicationSyncWindows(ctx context.Context, in *ApplicationSyncWindowsQuery, opts ...grpc.CallOption) (*ApplicationSyncWindowsResponse, error) { 2186 out := new(ApplicationSyncWindowsResponse) 2187 err := c.cc.Invoke(ctx, "/application.ApplicationService/GetApplicationSyncWindows", in, out, opts...) 2188 if err != nil { 2189 return nil, err 2190 } 2191 return out, nil 2192 } 2193 2194 func (c *applicationServiceClient) RevisionMetadata(ctx context.Context, in *RevisionMetadataQuery, opts ...grpc.CallOption) (*v1alpha1.RevisionMetadata, error) { 2195 out := new(v1alpha1.RevisionMetadata) 2196 err := c.cc.Invoke(ctx, "/application.ApplicationService/RevisionMetadata", in, out, opts...) 2197 if err != nil { 2198 return nil, err 2199 } 2200 return out, nil 2201 } 2202 2203 func (c *applicationServiceClient) GetManifests(ctx context.Context, in *ApplicationManifestQuery, opts ...grpc.CallOption) (*apiclient.ManifestResponse, error) { 2204 out := new(apiclient.ManifestResponse) 2205 err := c.cc.Invoke(ctx, "/application.ApplicationService/GetManifests", in, out, opts...) 2206 if err != nil { 2207 return nil, err 2208 } 2209 return out, nil 2210 } 2211 2212 func (c *applicationServiceClient) Update(ctx context.Context, in *ApplicationUpdateRequest, opts ...grpc.CallOption) (*v1alpha1.Application, error) { 2213 out := new(v1alpha1.Application) 2214 err := c.cc.Invoke(ctx, "/application.ApplicationService/Update", in, out, opts...) 2215 if err != nil { 2216 return nil, err 2217 } 2218 return out, nil 2219 } 2220 2221 func (c *applicationServiceClient) UpdateSpec(ctx context.Context, in *ApplicationUpdateSpecRequest, opts ...grpc.CallOption) (*v1alpha1.ApplicationSpec, error) { 2222 out := new(v1alpha1.ApplicationSpec) 2223 err := c.cc.Invoke(ctx, "/application.ApplicationService/UpdateSpec", in, out, opts...) 2224 if err != nil { 2225 return nil, err 2226 } 2227 return out, nil 2228 } 2229 2230 func (c *applicationServiceClient) Patch(ctx context.Context, in *ApplicationPatchRequest, opts ...grpc.CallOption) (*v1alpha1.Application, error) { 2231 out := new(v1alpha1.Application) 2232 err := c.cc.Invoke(ctx, "/application.ApplicationService/Patch", in, out, opts...) 2233 if err != nil { 2234 return nil, err 2235 } 2236 return out, nil 2237 } 2238 2239 func (c *applicationServiceClient) Delete(ctx context.Context, in *ApplicationDeleteRequest, opts ...grpc.CallOption) (*ApplicationResponse, error) { 2240 out := new(ApplicationResponse) 2241 err := c.cc.Invoke(ctx, "/application.ApplicationService/Delete", in, out, opts...) 2242 if err != nil { 2243 return nil, err 2244 } 2245 return out, nil 2246 } 2247 2248 func (c *applicationServiceClient) Sync(ctx context.Context, in *ApplicationSyncRequest, opts ...grpc.CallOption) (*v1alpha1.Application, error) { 2249 out := new(v1alpha1.Application) 2250 err := c.cc.Invoke(ctx, "/application.ApplicationService/Sync", in, out, opts...) 2251 if err != nil { 2252 return nil, err 2253 } 2254 return out, nil 2255 } 2256 2257 func (c *applicationServiceClient) ManagedResources(ctx context.Context, in *ResourcesQuery, opts ...grpc.CallOption) (*ManagedResourcesResponse, error) { 2258 out := new(ManagedResourcesResponse) 2259 err := c.cc.Invoke(ctx, "/application.ApplicationService/ManagedResources", in, out, opts...) 2260 if err != nil { 2261 return nil, err 2262 } 2263 return out, nil 2264 } 2265 2266 func (c *applicationServiceClient) ResourceTree(ctx context.Context, in *ResourcesQuery, opts ...grpc.CallOption) (*v1alpha1.ApplicationTree, error) { 2267 out := new(v1alpha1.ApplicationTree) 2268 err := c.cc.Invoke(ctx, "/application.ApplicationService/ResourceTree", in, out, opts...) 2269 if err != nil { 2270 return nil, err 2271 } 2272 return out, nil 2273 } 2274 2275 func (c *applicationServiceClient) WatchResourceTree(ctx context.Context, in *ResourcesQuery, opts ...grpc.CallOption) (ApplicationService_WatchResourceTreeClient, error) { 2276 stream, err := c.cc.NewStream(ctx, &_ApplicationService_serviceDesc.Streams[1], "/application.ApplicationService/WatchResourceTree", opts...) 2277 if err != nil { 2278 return nil, err 2279 } 2280 x := &applicationServiceWatchResourceTreeClient{stream} 2281 if err := x.ClientStream.SendMsg(in); err != nil { 2282 return nil, err 2283 } 2284 if err := x.ClientStream.CloseSend(); err != nil { 2285 return nil, err 2286 } 2287 return x, nil 2288 } 2289 2290 type ApplicationService_WatchResourceTreeClient interface { 2291 Recv() (*v1alpha1.ApplicationTree, error) 2292 grpc.ClientStream 2293 } 2294 2295 type applicationServiceWatchResourceTreeClient struct { 2296 grpc.ClientStream 2297 } 2298 2299 func (x *applicationServiceWatchResourceTreeClient) Recv() (*v1alpha1.ApplicationTree, error) { 2300 m := new(v1alpha1.ApplicationTree) 2301 if err := x.ClientStream.RecvMsg(m); err != nil { 2302 return nil, err 2303 } 2304 return m, nil 2305 } 2306 2307 func (c *applicationServiceClient) Rollback(ctx context.Context, in *ApplicationRollbackRequest, opts ...grpc.CallOption) (*v1alpha1.Application, error) { 2308 out := new(v1alpha1.Application) 2309 err := c.cc.Invoke(ctx, "/application.ApplicationService/Rollback", in, out, opts...) 2310 if err != nil { 2311 return nil, err 2312 } 2313 return out, nil 2314 } 2315 2316 func (c *applicationServiceClient) TerminateOperation(ctx context.Context, in *OperationTerminateRequest, opts ...grpc.CallOption) (*OperationTerminateResponse, error) { 2317 out := new(OperationTerminateResponse) 2318 err := c.cc.Invoke(ctx, "/application.ApplicationService/TerminateOperation", in, out, opts...) 2319 if err != nil { 2320 return nil, err 2321 } 2322 return out, nil 2323 } 2324 2325 func (c *applicationServiceClient) GetResource(ctx context.Context, in *ApplicationResourceRequest, opts ...grpc.CallOption) (*ApplicationResourceResponse, error) { 2326 out := new(ApplicationResourceResponse) 2327 err := c.cc.Invoke(ctx, "/application.ApplicationService/GetResource", in, out, opts...) 2328 if err != nil { 2329 return nil, err 2330 } 2331 return out, nil 2332 } 2333 2334 func (c *applicationServiceClient) PatchResource(ctx context.Context, in *ApplicationResourcePatchRequest, opts ...grpc.CallOption) (*ApplicationResourceResponse, error) { 2335 out := new(ApplicationResourceResponse) 2336 err := c.cc.Invoke(ctx, "/application.ApplicationService/PatchResource", in, out, opts...) 2337 if err != nil { 2338 return nil, err 2339 } 2340 return out, nil 2341 } 2342 2343 func (c *applicationServiceClient) ListResourceActions(ctx context.Context, in *ApplicationResourceRequest, opts ...grpc.CallOption) (*ResourceActionsListResponse, error) { 2344 out := new(ResourceActionsListResponse) 2345 err := c.cc.Invoke(ctx, "/application.ApplicationService/ListResourceActions", in, out, opts...) 2346 if err != nil { 2347 return nil, err 2348 } 2349 return out, nil 2350 } 2351 2352 func (c *applicationServiceClient) RunResourceAction(ctx context.Context, in *ResourceActionRunRequest, opts ...grpc.CallOption) (*ApplicationResponse, error) { 2353 out := new(ApplicationResponse) 2354 err := c.cc.Invoke(ctx, "/application.ApplicationService/RunResourceAction", in, out, opts...) 2355 if err != nil { 2356 return nil, err 2357 } 2358 return out, nil 2359 } 2360 2361 func (c *applicationServiceClient) DeleteResource(ctx context.Context, in *ApplicationResourceDeleteRequest, opts ...grpc.CallOption) (*ApplicationResponse, error) { 2362 out := new(ApplicationResponse) 2363 err := c.cc.Invoke(ctx, "/application.ApplicationService/DeleteResource", in, out, opts...) 2364 if err != nil { 2365 return nil, err 2366 } 2367 return out, nil 2368 } 2369 2370 func (c *applicationServiceClient) PodLogs(ctx context.Context, in *ApplicationPodLogsQuery, opts ...grpc.CallOption) (ApplicationService_PodLogsClient, error) { 2371 stream, err := c.cc.NewStream(ctx, &_ApplicationService_serviceDesc.Streams[2], "/application.ApplicationService/PodLogs", opts...) 2372 if err != nil { 2373 return nil, err 2374 } 2375 x := &applicationServicePodLogsClient{stream} 2376 if err := x.ClientStream.SendMsg(in); err != nil { 2377 return nil, err 2378 } 2379 if err := x.ClientStream.CloseSend(); err != nil { 2380 return nil, err 2381 } 2382 return x, nil 2383 } 2384 2385 type ApplicationService_PodLogsClient interface { 2386 Recv() (*LogEntry, error) 2387 grpc.ClientStream 2388 } 2389 2390 type applicationServicePodLogsClient struct { 2391 grpc.ClientStream 2392 } 2393 2394 func (x *applicationServicePodLogsClient) Recv() (*LogEntry, error) { 2395 m := new(LogEntry) 2396 if err := x.ClientStream.RecvMsg(m); err != nil { 2397 return nil, err 2398 } 2399 return m, nil 2400 } 2401 2402 // ApplicationServiceServer is the server API for ApplicationService service. 2403 type ApplicationServiceServer interface { 2404 // List returns list of applications 2405 List(context.Context, *ApplicationQuery) (*v1alpha1.ApplicationList, error) 2406 // ListResourceEvents returns a list of event resources 2407 ListResourceEvents(context.Context, *ApplicationResourceEventsQuery) (*v11.EventList, error) 2408 // Watch returns stream of application change events 2409 Watch(*ApplicationQuery, ApplicationService_WatchServer) error 2410 // Create creates an application 2411 Create(context.Context, *ApplicationCreateRequest) (*v1alpha1.Application, error) 2412 // Get returns an application by name 2413 Get(context.Context, *ApplicationQuery) (*v1alpha1.Application, error) 2414 // Get returns sync windows of the application 2415 GetApplicationSyncWindows(context.Context, *ApplicationSyncWindowsQuery) (*ApplicationSyncWindowsResponse, error) 2416 // Get the meta-data (author, date, tags, message) for a specific revision of the application 2417 RevisionMetadata(context.Context, *RevisionMetadataQuery) (*v1alpha1.RevisionMetadata, error) 2418 // GetManifests returns application manifests 2419 GetManifests(context.Context, *ApplicationManifestQuery) (*apiclient.ManifestResponse, error) 2420 // Update updates an application 2421 Update(context.Context, *ApplicationUpdateRequest) (*v1alpha1.Application, error) 2422 // UpdateSpec updates an application spec 2423 UpdateSpec(context.Context, *ApplicationUpdateSpecRequest) (*v1alpha1.ApplicationSpec, error) 2424 // Patch patch an application 2425 Patch(context.Context, *ApplicationPatchRequest) (*v1alpha1.Application, error) 2426 // Delete deletes an application 2427 Delete(context.Context, *ApplicationDeleteRequest) (*ApplicationResponse, error) 2428 // Sync syncs an application to its target state 2429 Sync(context.Context, *ApplicationSyncRequest) (*v1alpha1.Application, error) 2430 // ManagedResources returns list of managed resources 2431 ManagedResources(context.Context, *ResourcesQuery) (*ManagedResourcesResponse, error) 2432 // ResourceTree returns resource tree 2433 ResourceTree(context.Context, *ResourcesQuery) (*v1alpha1.ApplicationTree, error) 2434 // Watch returns stream of application resource tree 2435 WatchResourceTree(*ResourcesQuery, ApplicationService_WatchResourceTreeServer) error 2436 // Rollback syncs an application to its target state 2437 Rollback(context.Context, *ApplicationRollbackRequest) (*v1alpha1.Application, error) 2438 // TerminateOperation terminates the currently running operation 2439 TerminateOperation(context.Context, *OperationTerminateRequest) (*OperationTerminateResponse, error) 2440 // GetResource returns single application resource 2441 GetResource(context.Context, *ApplicationResourceRequest) (*ApplicationResourceResponse, error) 2442 // PatchResource patch single application resource 2443 PatchResource(context.Context, *ApplicationResourcePatchRequest) (*ApplicationResourceResponse, error) 2444 // ListResourceActions returns list of resource actions 2445 ListResourceActions(context.Context, *ApplicationResourceRequest) (*ResourceActionsListResponse, error) 2446 // RunResourceAction run resource action 2447 RunResourceAction(context.Context, *ResourceActionRunRequest) (*ApplicationResponse, error) 2448 // DeleteResource deletes a single application resource 2449 DeleteResource(context.Context, *ApplicationResourceDeleteRequest) (*ApplicationResponse, error) 2450 // PodLogs returns stream of log entries for the specified pod. Pod 2451 PodLogs(*ApplicationPodLogsQuery, ApplicationService_PodLogsServer) error 2452 } 2453 2454 // UnimplementedApplicationServiceServer can be embedded to have forward compatible implementations. 2455 type UnimplementedApplicationServiceServer struct { 2456 } 2457 2458 func (*UnimplementedApplicationServiceServer) List(ctx context.Context, req *ApplicationQuery) (*v1alpha1.ApplicationList, error) { 2459 return nil, status.Errorf(codes.Unimplemented, "method List not implemented") 2460 } 2461 func (*UnimplementedApplicationServiceServer) ListResourceEvents(ctx context.Context, req *ApplicationResourceEventsQuery) (*v11.EventList, error) { 2462 return nil, status.Errorf(codes.Unimplemented, "method ListResourceEvents not implemented") 2463 } 2464 func (*UnimplementedApplicationServiceServer) Watch(req *ApplicationQuery, srv ApplicationService_WatchServer) error { 2465 return status.Errorf(codes.Unimplemented, "method Watch not implemented") 2466 } 2467 func (*UnimplementedApplicationServiceServer) Create(ctx context.Context, req *ApplicationCreateRequest) (*v1alpha1.Application, error) { 2468 return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") 2469 } 2470 func (*UnimplementedApplicationServiceServer) Get(ctx context.Context, req *ApplicationQuery) (*v1alpha1.Application, error) { 2471 return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") 2472 } 2473 func (*UnimplementedApplicationServiceServer) GetApplicationSyncWindows(ctx context.Context, req *ApplicationSyncWindowsQuery) (*ApplicationSyncWindowsResponse, error) { 2474 return nil, status.Errorf(codes.Unimplemented, "method GetApplicationSyncWindows not implemented") 2475 } 2476 func (*UnimplementedApplicationServiceServer) RevisionMetadata(ctx context.Context, req *RevisionMetadataQuery) (*v1alpha1.RevisionMetadata, error) { 2477 return nil, status.Errorf(codes.Unimplemented, "method RevisionMetadata not implemented") 2478 } 2479 func (*UnimplementedApplicationServiceServer) GetManifests(ctx context.Context, req *ApplicationManifestQuery) (*apiclient.ManifestResponse, error) { 2480 return nil, status.Errorf(codes.Unimplemented, "method GetManifests not implemented") 2481 } 2482 func (*UnimplementedApplicationServiceServer) Update(ctx context.Context, req *ApplicationUpdateRequest) (*v1alpha1.Application, error) { 2483 return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") 2484 } 2485 func (*UnimplementedApplicationServiceServer) UpdateSpec(ctx context.Context, req *ApplicationUpdateSpecRequest) (*v1alpha1.ApplicationSpec, error) { 2486 return nil, status.Errorf(codes.Unimplemented, "method UpdateSpec not implemented") 2487 } 2488 func (*UnimplementedApplicationServiceServer) Patch(ctx context.Context, req *ApplicationPatchRequest) (*v1alpha1.Application, error) { 2489 return nil, status.Errorf(codes.Unimplemented, "method Patch not implemented") 2490 } 2491 func (*UnimplementedApplicationServiceServer) Delete(ctx context.Context, req *ApplicationDeleteRequest) (*ApplicationResponse, error) { 2492 return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") 2493 } 2494 func (*UnimplementedApplicationServiceServer) Sync(ctx context.Context, req *ApplicationSyncRequest) (*v1alpha1.Application, error) { 2495 return nil, status.Errorf(codes.Unimplemented, "method Sync not implemented") 2496 } 2497 func (*UnimplementedApplicationServiceServer) ManagedResources(ctx context.Context, req *ResourcesQuery) (*ManagedResourcesResponse, error) { 2498 return nil, status.Errorf(codes.Unimplemented, "method ManagedResources not implemented") 2499 } 2500 func (*UnimplementedApplicationServiceServer) ResourceTree(ctx context.Context, req *ResourcesQuery) (*v1alpha1.ApplicationTree, error) { 2501 return nil, status.Errorf(codes.Unimplemented, "method ResourceTree not implemented") 2502 } 2503 func (*UnimplementedApplicationServiceServer) WatchResourceTree(req *ResourcesQuery, srv ApplicationService_WatchResourceTreeServer) error { 2504 return status.Errorf(codes.Unimplemented, "method WatchResourceTree not implemented") 2505 } 2506 func (*UnimplementedApplicationServiceServer) Rollback(ctx context.Context, req *ApplicationRollbackRequest) (*v1alpha1.Application, error) { 2507 return nil, status.Errorf(codes.Unimplemented, "method Rollback not implemented") 2508 } 2509 func (*UnimplementedApplicationServiceServer) TerminateOperation(ctx context.Context, req *OperationTerminateRequest) (*OperationTerminateResponse, error) { 2510 return nil, status.Errorf(codes.Unimplemented, "method TerminateOperation not implemented") 2511 } 2512 func (*UnimplementedApplicationServiceServer) GetResource(ctx context.Context, req *ApplicationResourceRequest) (*ApplicationResourceResponse, error) { 2513 return nil, status.Errorf(codes.Unimplemented, "method GetResource not implemented") 2514 } 2515 func (*UnimplementedApplicationServiceServer) PatchResource(ctx context.Context, req *ApplicationResourcePatchRequest) (*ApplicationResourceResponse, error) { 2516 return nil, status.Errorf(codes.Unimplemented, "method PatchResource not implemented") 2517 } 2518 func (*UnimplementedApplicationServiceServer) ListResourceActions(ctx context.Context, req *ApplicationResourceRequest) (*ResourceActionsListResponse, error) { 2519 return nil, status.Errorf(codes.Unimplemented, "method ListResourceActions not implemented") 2520 } 2521 func (*UnimplementedApplicationServiceServer) RunResourceAction(ctx context.Context, req *ResourceActionRunRequest) (*ApplicationResponse, error) { 2522 return nil, status.Errorf(codes.Unimplemented, "method RunResourceAction not implemented") 2523 } 2524 func (*UnimplementedApplicationServiceServer) DeleteResource(ctx context.Context, req *ApplicationResourceDeleteRequest) (*ApplicationResponse, error) { 2525 return nil, status.Errorf(codes.Unimplemented, "method DeleteResource not implemented") 2526 } 2527 func (*UnimplementedApplicationServiceServer) PodLogs(req *ApplicationPodLogsQuery, srv ApplicationService_PodLogsServer) error { 2528 return status.Errorf(codes.Unimplemented, "method PodLogs not implemented") 2529 } 2530 2531 func RegisterApplicationServiceServer(s *grpc.Server, srv ApplicationServiceServer) { 2532 s.RegisterService(&_ApplicationService_serviceDesc, srv) 2533 } 2534 2535 func _ApplicationService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2536 in := new(ApplicationQuery) 2537 if err := dec(in); err != nil { 2538 return nil, err 2539 } 2540 if interceptor == nil { 2541 return srv.(ApplicationServiceServer).List(ctx, in) 2542 } 2543 info := &grpc.UnaryServerInfo{ 2544 Server: srv, 2545 FullMethod: "/application.ApplicationService/List", 2546 } 2547 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2548 return srv.(ApplicationServiceServer).List(ctx, req.(*ApplicationQuery)) 2549 } 2550 return interceptor(ctx, in, info, handler) 2551 } 2552 2553 func _ApplicationService_ListResourceEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2554 in := new(ApplicationResourceEventsQuery) 2555 if err := dec(in); err != nil { 2556 return nil, err 2557 } 2558 if interceptor == nil { 2559 return srv.(ApplicationServiceServer).ListResourceEvents(ctx, in) 2560 } 2561 info := &grpc.UnaryServerInfo{ 2562 Server: srv, 2563 FullMethod: "/application.ApplicationService/ListResourceEvents", 2564 } 2565 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2566 return srv.(ApplicationServiceServer).ListResourceEvents(ctx, req.(*ApplicationResourceEventsQuery)) 2567 } 2568 return interceptor(ctx, in, info, handler) 2569 } 2570 2571 func _ApplicationService_Watch_Handler(srv interface{}, stream grpc.ServerStream) error { 2572 m := new(ApplicationQuery) 2573 if err := stream.RecvMsg(m); err != nil { 2574 return err 2575 } 2576 return srv.(ApplicationServiceServer).Watch(m, &applicationServiceWatchServer{stream}) 2577 } 2578 2579 type ApplicationService_WatchServer interface { 2580 Send(*v1alpha1.ApplicationWatchEvent) error 2581 grpc.ServerStream 2582 } 2583 2584 type applicationServiceWatchServer struct { 2585 grpc.ServerStream 2586 } 2587 2588 func (x *applicationServiceWatchServer) Send(m *v1alpha1.ApplicationWatchEvent) error { 2589 return x.ServerStream.SendMsg(m) 2590 } 2591 2592 func _ApplicationService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2593 in := new(ApplicationCreateRequest) 2594 if err := dec(in); err != nil { 2595 return nil, err 2596 } 2597 if interceptor == nil { 2598 return srv.(ApplicationServiceServer).Create(ctx, in) 2599 } 2600 info := &grpc.UnaryServerInfo{ 2601 Server: srv, 2602 FullMethod: "/application.ApplicationService/Create", 2603 } 2604 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2605 return srv.(ApplicationServiceServer).Create(ctx, req.(*ApplicationCreateRequest)) 2606 } 2607 return interceptor(ctx, in, info, handler) 2608 } 2609 2610 func _ApplicationService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2611 in := new(ApplicationQuery) 2612 if err := dec(in); err != nil { 2613 return nil, err 2614 } 2615 if interceptor == nil { 2616 return srv.(ApplicationServiceServer).Get(ctx, in) 2617 } 2618 info := &grpc.UnaryServerInfo{ 2619 Server: srv, 2620 FullMethod: "/application.ApplicationService/Get", 2621 } 2622 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2623 return srv.(ApplicationServiceServer).Get(ctx, req.(*ApplicationQuery)) 2624 } 2625 return interceptor(ctx, in, info, handler) 2626 } 2627 2628 func _ApplicationService_GetApplicationSyncWindows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2629 in := new(ApplicationSyncWindowsQuery) 2630 if err := dec(in); err != nil { 2631 return nil, err 2632 } 2633 if interceptor == nil { 2634 return srv.(ApplicationServiceServer).GetApplicationSyncWindows(ctx, in) 2635 } 2636 info := &grpc.UnaryServerInfo{ 2637 Server: srv, 2638 FullMethod: "/application.ApplicationService/GetApplicationSyncWindows", 2639 } 2640 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2641 return srv.(ApplicationServiceServer).GetApplicationSyncWindows(ctx, req.(*ApplicationSyncWindowsQuery)) 2642 } 2643 return interceptor(ctx, in, info, handler) 2644 } 2645 2646 func _ApplicationService_RevisionMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2647 in := new(RevisionMetadataQuery) 2648 if err := dec(in); err != nil { 2649 return nil, err 2650 } 2651 if interceptor == nil { 2652 return srv.(ApplicationServiceServer).RevisionMetadata(ctx, in) 2653 } 2654 info := &grpc.UnaryServerInfo{ 2655 Server: srv, 2656 FullMethod: "/application.ApplicationService/RevisionMetadata", 2657 } 2658 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2659 return srv.(ApplicationServiceServer).RevisionMetadata(ctx, req.(*RevisionMetadataQuery)) 2660 } 2661 return interceptor(ctx, in, info, handler) 2662 } 2663 2664 func _ApplicationService_GetManifests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2665 in := new(ApplicationManifestQuery) 2666 if err := dec(in); err != nil { 2667 return nil, err 2668 } 2669 if interceptor == nil { 2670 return srv.(ApplicationServiceServer).GetManifests(ctx, in) 2671 } 2672 info := &grpc.UnaryServerInfo{ 2673 Server: srv, 2674 FullMethod: "/application.ApplicationService/GetManifests", 2675 } 2676 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2677 return srv.(ApplicationServiceServer).GetManifests(ctx, req.(*ApplicationManifestQuery)) 2678 } 2679 return interceptor(ctx, in, info, handler) 2680 } 2681 2682 func _ApplicationService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2683 in := new(ApplicationUpdateRequest) 2684 if err := dec(in); err != nil { 2685 return nil, err 2686 } 2687 if interceptor == nil { 2688 return srv.(ApplicationServiceServer).Update(ctx, in) 2689 } 2690 info := &grpc.UnaryServerInfo{ 2691 Server: srv, 2692 FullMethod: "/application.ApplicationService/Update", 2693 } 2694 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2695 return srv.(ApplicationServiceServer).Update(ctx, req.(*ApplicationUpdateRequest)) 2696 } 2697 return interceptor(ctx, in, info, handler) 2698 } 2699 2700 func _ApplicationService_UpdateSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2701 in := new(ApplicationUpdateSpecRequest) 2702 if err := dec(in); err != nil { 2703 return nil, err 2704 } 2705 if interceptor == nil { 2706 return srv.(ApplicationServiceServer).UpdateSpec(ctx, in) 2707 } 2708 info := &grpc.UnaryServerInfo{ 2709 Server: srv, 2710 FullMethod: "/application.ApplicationService/UpdateSpec", 2711 } 2712 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2713 return srv.(ApplicationServiceServer).UpdateSpec(ctx, req.(*ApplicationUpdateSpecRequest)) 2714 } 2715 return interceptor(ctx, in, info, handler) 2716 } 2717 2718 func _ApplicationService_Patch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2719 in := new(ApplicationPatchRequest) 2720 if err := dec(in); err != nil { 2721 return nil, err 2722 } 2723 if interceptor == nil { 2724 return srv.(ApplicationServiceServer).Patch(ctx, in) 2725 } 2726 info := &grpc.UnaryServerInfo{ 2727 Server: srv, 2728 FullMethod: "/application.ApplicationService/Patch", 2729 } 2730 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2731 return srv.(ApplicationServiceServer).Patch(ctx, req.(*ApplicationPatchRequest)) 2732 } 2733 return interceptor(ctx, in, info, handler) 2734 } 2735 2736 func _ApplicationService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2737 in := new(ApplicationDeleteRequest) 2738 if err := dec(in); err != nil { 2739 return nil, err 2740 } 2741 if interceptor == nil { 2742 return srv.(ApplicationServiceServer).Delete(ctx, in) 2743 } 2744 info := &grpc.UnaryServerInfo{ 2745 Server: srv, 2746 FullMethod: "/application.ApplicationService/Delete", 2747 } 2748 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2749 return srv.(ApplicationServiceServer).Delete(ctx, req.(*ApplicationDeleteRequest)) 2750 } 2751 return interceptor(ctx, in, info, handler) 2752 } 2753 2754 func _ApplicationService_Sync_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2755 in := new(ApplicationSyncRequest) 2756 if err := dec(in); err != nil { 2757 return nil, err 2758 } 2759 if interceptor == nil { 2760 return srv.(ApplicationServiceServer).Sync(ctx, in) 2761 } 2762 info := &grpc.UnaryServerInfo{ 2763 Server: srv, 2764 FullMethod: "/application.ApplicationService/Sync", 2765 } 2766 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2767 return srv.(ApplicationServiceServer).Sync(ctx, req.(*ApplicationSyncRequest)) 2768 } 2769 return interceptor(ctx, in, info, handler) 2770 } 2771 2772 func _ApplicationService_ManagedResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2773 in := new(ResourcesQuery) 2774 if err := dec(in); err != nil { 2775 return nil, err 2776 } 2777 if interceptor == nil { 2778 return srv.(ApplicationServiceServer).ManagedResources(ctx, in) 2779 } 2780 info := &grpc.UnaryServerInfo{ 2781 Server: srv, 2782 FullMethod: "/application.ApplicationService/ManagedResources", 2783 } 2784 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2785 return srv.(ApplicationServiceServer).ManagedResources(ctx, req.(*ResourcesQuery)) 2786 } 2787 return interceptor(ctx, in, info, handler) 2788 } 2789 2790 func _ApplicationService_ResourceTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2791 in := new(ResourcesQuery) 2792 if err := dec(in); err != nil { 2793 return nil, err 2794 } 2795 if interceptor == nil { 2796 return srv.(ApplicationServiceServer).ResourceTree(ctx, in) 2797 } 2798 info := &grpc.UnaryServerInfo{ 2799 Server: srv, 2800 FullMethod: "/application.ApplicationService/ResourceTree", 2801 } 2802 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2803 return srv.(ApplicationServiceServer).ResourceTree(ctx, req.(*ResourcesQuery)) 2804 } 2805 return interceptor(ctx, in, info, handler) 2806 } 2807 2808 func _ApplicationService_WatchResourceTree_Handler(srv interface{}, stream grpc.ServerStream) error { 2809 m := new(ResourcesQuery) 2810 if err := stream.RecvMsg(m); err != nil { 2811 return err 2812 } 2813 return srv.(ApplicationServiceServer).WatchResourceTree(m, &applicationServiceWatchResourceTreeServer{stream}) 2814 } 2815 2816 type ApplicationService_WatchResourceTreeServer interface { 2817 Send(*v1alpha1.ApplicationTree) error 2818 grpc.ServerStream 2819 } 2820 2821 type applicationServiceWatchResourceTreeServer struct { 2822 grpc.ServerStream 2823 } 2824 2825 func (x *applicationServiceWatchResourceTreeServer) Send(m *v1alpha1.ApplicationTree) error { 2826 return x.ServerStream.SendMsg(m) 2827 } 2828 2829 func _ApplicationService_Rollback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2830 in := new(ApplicationRollbackRequest) 2831 if err := dec(in); err != nil { 2832 return nil, err 2833 } 2834 if interceptor == nil { 2835 return srv.(ApplicationServiceServer).Rollback(ctx, in) 2836 } 2837 info := &grpc.UnaryServerInfo{ 2838 Server: srv, 2839 FullMethod: "/application.ApplicationService/Rollback", 2840 } 2841 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2842 return srv.(ApplicationServiceServer).Rollback(ctx, req.(*ApplicationRollbackRequest)) 2843 } 2844 return interceptor(ctx, in, info, handler) 2845 } 2846 2847 func _ApplicationService_TerminateOperation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2848 in := new(OperationTerminateRequest) 2849 if err := dec(in); err != nil { 2850 return nil, err 2851 } 2852 if interceptor == nil { 2853 return srv.(ApplicationServiceServer).TerminateOperation(ctx, in) 2854 } 2855 info := &grpc.UnaryServerInfo{ 2856 Server: srv, 2857 FullMethod: "/application.ApplicationService/TerminateOperation", 2858 } 2859 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2860 return srv.(ApplicationServiceServer).TerminateOperation(ctx, req.(*OperationTerminateRequest)) 2861 } 2862 return interceptor(ctx, in, info, handler) 2863 } 2864 2865 func _ApplicationService_GetResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2866 in := new(ApplicationResourceRequest) 2867 if err := dec(in); err != nil { 2868 return nil, err 2869 } 2870 if interceptor == nil { 2871 return srv.(ApplicationServiceServer).GetResource(ctx, in) 2872 } 2873 info := &grpc.UnaryServerInfo{ 2874 Server: srv, 2875 FullMethod: "/application.ApplicationService/GetResource", 2876 } 2877 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2878 return srv.(ApplicationServiceServer).GetResource(ctx, req.(*ApplicationResourceRequest)) 2879 } 2880 return interceptor(ctx, in, info, handler) 2881 } 2882 2883 func _ApplicationService_PatchResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2884 in := new(ApplicationResourcePatchRequest) 2885 if err := dec(in); err != nil { 2886 return nil, err 2887 } 2888 if interceptor == nil { 2889 return srv.(ApplicationServiceServer).PatchResource(ctx, in) 2890 } 2891 info := &grpc.UnaryServerInfo{ 2892 Server: srv, 2893 FullMethod: "/application.ApplicationService/PatchResource", 2894 } 2895 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2896 return srv.(ApplicationServiceServer).PatchResource(ctx, req.(*ApplicationResourcePatchRequest)) 2897 } 2898 return interceptor(ctx, in, info, handler) 2899 } 2900 2901 func _ApplicationService_ListResourceActions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2902 in := new(ApplicationResourceRequest) 2903 if err := dec(in); err != nil { 2904 return nil, err 2905 } 2906 if interceptor == nil { 2907 return srv.(ApplicationServiceServer).ListResourceActions(ctx, in) 2908 } 2909 info := &grpc.UnaryServerInfo{ 2910 Server: srv, 2911 FullMethod: "/application.ApplicationService/ListResourceActions", 2912 } 2913 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2914 return srv.(ApplicationServiceServer).ListResourceActions(ctx, req.(*ApplicationResourceRequest)) 2915 } 2916 return interceptor(ctx, in, info, handler) 2917 } 2918 2919 func _ApplicationService_RunResourceAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2920 in := new(ResourceActionRunRequest) 2921 if err := dec(in); err != nil { 2922 return nil, err 2923 } 2924 if interceptor == nil { 2925 return srv.(ApplicationServiceServer).RunResourceAction(ctx, in) 2926 } 2927 info := &grpc.UnaryServerInfo{ 2928 Server: srv, 2929 FullMethod: "/application.ApplicationService/RunResourceAction", 2930 } 2931 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2932 return srv.(ApplicationServiceServer).RunResourceAction(ctx, req.(*ResourceActionRunRequest)) 2933 } 2934 return interceptor(ctx, in, info, handler) 2935 } 2936 2937 func _ApplicationService_DeleteResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2938 in := new(ApplicationResourceDeleteRequest) 2939 if err := dec(in); err != nil { 2940 return nil, err 2941 } 2942 if interceptor == nil { 2943 return srv.(ApplicationServiceServer).DeleteResource(ctx, in) 2944 } 2945 info := &grpc.UnaryServerInfo{ 2946 Server: srv, 2947 FullMethod: "/application.ApplicationService/DeleteResource", 2948 } 2949 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2950 return srv.(ApplicationServiceServer).DeleteResource(ctx, req.(*ApplicationResourceDeleteRequest)) 2951 } 2952 return interceptor(ctx, in, info, handler) 2953 } 2954 2955 func _ApplicationService_PodLogs_Handler(srv interface{}, stream grpc.ServerStream) error { 2956 m := new(ApplicationPodLogsQuery) 2957 if err := stream.RecvMsg(m); err != nil { 2958 return err 2959 } 2960 return srv.(ApplicationServiceServer).PodLogs(m, &applicationServicePodLogsServer{stream}) 2961 } 2962 2963 type ApplicationService_PodLogsServer interface { 2964 Send(*LogEntry) error 2965 grpc.ServerStream 2966 } 2967 2968 type applicationServicePodLogsServer struct { 2969 grpc.ServerStream 2970 } 2971 2972 func (x *applicationServicePodLogsServer) Send(m *LogEntry) error { 2973 return x.ServerStream.SendMsg(m) 2974 } 2975 2976 var _ApplicationService_serviceDesc = grpc.ServiceDesc{ 2977 ServiceName: "application.ApplicationService", 2978 HandlerType: (*ApplicationServiceServer)(nil), 2979 Methods: []grpc.MethodDesc{ 2980 { 2981 MethodName: "List", 2982 Handler: _ApplicationService_List_Handler, 2983 }, 2984 { 2985 MethodName: "ListResourceEvents", 2986 Handler: _ApplicationService_ListResourceEvents_Handler, 2987 }, 2988 { 2989 MethodName: "Create", 2990 Handler: _ApplicationService_Create_Handler, 2991 }, 2992 { 2993 MethodName: "Get", 2994 Handler: _ApplicationService_Get_Handler, 2995 }, 2996 { 2997 MethodName: "GetApplicationSyncWindows", 2998 Handler: _ApplicationService_GetApplicationSyncWindows_Handler, 2999 }, 3000 { 3001 MethodName: "RevisionMetadata", 3002 Handler: _ApplicationService_RevisionMetadata_Handler, 3003 }, 3004 { 3005 MethodName: "GetManifests", 3006 Handler: _ApplicationService_GetManifests_Handler, 3007 }, 3008 { 3009 MethodName: "Update", 3010 Handler: _ApplicationService_Update_Handler, 3011 }, 3012 { 3013 MethodName: "UpdateSpec", 3014 Handler: _ApplicationService_UpdateSpec_Handler, 3015 }, 3016 { 3017 MethodName: "Patch", 3018 Handler: _ApplicationService_Patch_Handler, 3019 }, 3020 { 3021 MethodName: "Delete", 3022 Handler: _ApplicationService_Delete_Handler, 3023 }, 3024 { 3025 MethodName: "Sync", 3026 Handler: _ApplicationService_Sync_Handler, 3027 }, 3028 { 3029 MethodName: "ManagedResources", 3030 Handler: _ApplicationService_ManagedResources_Handler, 3031 }, 3032 { 3033 MethodName: "ResourceTree", 3034 Handler: _ApplicationService_ResourceTree_Handler, 3035 }, 3036 { 3037 MethodName: "Rollback", 3038 Handler: _ApplicationService_Rollback_Handler, 3039 }, 3040 { 3041 MethodName: "TerminateOperation", 3042 Handler: _ApplicationService_TerminateOperation_Handler, 3043 }, 3044 { 3045 MethodName: "GetResource", 3046 Handler: _ApplicationService_GetResource_Handler, 3047 }, 3048 { 3049 MethodName: "PatchResource", 3050 Handler: _ApplicationService_PatchResource_Handler, 3051 }, 3052 { 3053 MethodName: "ListResourceActions", 3054 Handler: _ApplicationService_ListResourceActions_Handler, 3055 }, 3056 { 3057 MethodName: "RunResourceAction", 3058 Handler: _ApplicationService_RunResourceAction_Handler, 3059 }, 3060 { 3061 MethodName: "DeleteResource", 3062 Handler: _ApplicationService_DeleteResource_Handler, 3063 }, 3064 }, 3065 Streams: []grpc.StreamDesc{ 3066 { 3067 StreamName: "Watch", 3068 Handler: _ApplicationService_Watch_Handler, 3069 ServerStreams: true, 3070 }, 3071 { 3072 StreamName: "WatchResourceTree", 3073 Handler: _ApplicationService_WatchResourceTree_Handler, 3074 ServerStreams: true, 3075 }, 3076 { 3077 StreamName: "PodLogs", 3078 Handler: _ApplicationService_PodLogs_Handler, 3079 ServerStreams: true, 3080 }, 3081 }, 3082 Metadata: "server/application/application.proto", 3083 } 3084 3085 func (m *ApplicationQuery) Marshal() (dAtA []byte, err error) { 3086 size := m.Size() 3087 dAtA = make([]byte, size) 3088 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3089 if err != nil { 3090 return nil, err 3091 } 3092 return dAtA[:n], nil 3093 } 3094 3095 func (m *ApplicationQuery) MarshalTo(dAtA []byte) (int, error) { 3096 size := m.Size() 3097 return m.MarshalToSizedBuffer(dAtA[:size]) 3098 } 3099 3100 func (m *ApplicationQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3101 i := len(dAtA) 3102 _ = i 3103 var l int 3104 _ = l 3105 if m.XXX_unrecognized != nil { 3106 i -= len(m.XXX_unrecognized) 3107 copy(dAtA[i:], m.XXX_unrecognized) 3108 } 3109 i -= len(m.Selector) 3110 copy(dAtA[i:], m.Selector) 3111 i = encodeVarintApplication(dAtA, i, uint64(len(m.Selector))) 3112 i-- 3113 dAtA[i] = 0x2a 3114 i -= len(m.ResourceVersion) 3115 copy(dAtA[i:], m.ResourceVersion) 3116 i = encodeVarintApplication(dAtA, i, uint64(len(m.ResourceVersion))) 3117 i-- 3118 dAtA[i] = 0x22 3119 if len(m.Projects) > 0 { 3120 for iNdEx := len(m.Projects) - 1; iNdEx >= 0; iNdEx-- { 3121 i -= len(m.Projects[iNdEx]) 3122 copy(dAtA[i:], m.Projects[iNdEx]) 3123 i = encodeVarintApplication(dAtA, i, uint64(len(m.Projects[iNdEx]))) 3124 i-- 3125 dAtA[i] = 0x1a 3126 } 3127 } 3128 if m.Refresh != nil { 3129 i -= len(*m.Refresh) 3130 copy(dAtA[i:], *m.Refresh) 3131 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Refresh))) 3132 i-- 3133 dAtA[i] = 0x12 3134 } 3135 if m.Name != nil { 3136 i -= len(*m.Name) 3137 copy(dAtA[i:], *m.Name) 3138 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 3139 i-- 3140 dAtA[i] = 0xa 3141 } 3142 return len(dAtA) - i, nil 3143 } 3144 3145 func (m *RevisionMetadataQuery) Marshal() (dAtA []byte, err error) { 3146 size := m.Size() 3147 dAtA = make([]byte, size) 3148 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3149 if err != nil { 3150 return nil, err 3151 } 3152 return dAtA[:n], nil 3153 } 3154 3155 func (m *RevisionMetadataQuery) MarshalTo(dAtA []byte) (int, error) { 3156 size := m.Size() 3157 return m.MarshalToSizedBuffer(dAtA[:size]) 3158 } 3159 3160 func (m *RevisionMetadataQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3161 i := len(dAtA) 3162 _ = i 3163 var l int 3164 _ = l 3165 if m.XXX_unrecognized != nil { 3166 i -= len(m.XXX_unrecognized) 3167 copy(dAtA[i:], m.XXX_unrecognized) 3168 } 3169 if m.Revision == nil { 3170 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("revision") 3171 } else { 3172 i -= len(*m.Revision) 3173 copy(dAtA[i:], *m.Revision) 3174 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Revision))) 3175 i-- 3176 dAtA[i] = 0x12 3177 } 3178 if m.Name == nil { 3179 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 3180 } else { 3181 i -= len(*m.Name) 3182 copy(dAtA[i:], *m.Name) 3183 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 3184 i-- 3185 dAtA[i] = 0xa 3186 } 3187 return len(dAtA) - i, nil 3188 } 3189 3190 func (m *ApplicationResourceEventsQuery) Marshal() (dAtA []byte, err error) { 3191 size := m.Size() 3192 dAtA = make([]byte, size) 3193 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3194 if err != nil { 3195 return nil, err 3196 } 3197 return dAtA[:n], nil 3198 } 3199 3200 func (m *ApplicationResourceEventsQuery) MarshalTo(dAtA []byte) (int, error) { 3201 size := m.Size() 3202 return m.MarshalToSizedBuffer(dAtA[:size]) 3203 } 3204 3205 func (m *ApplicationResourceEventsQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3206 i := len(dAtA) 3207 _ = i 3208 var l int 3209 _ = l 3210 if m.XXX_unrecognized != nil { 3211 i -= len(m.XXX_unrecognized) 3212 copy(dAtA[i:], m.XXX_unrecognized) 3213 } 3214 i -= len(m.ResourceUID) 3215 copy(dAtA[i:], m.ResourceUID) 3216 i = encodeVarintApplication(dAtA, i, uint64(len(m.ResourceUID))) 3217 i-- 3218 dAtA[i] = 0x22 3219 i -= len(m.ResourceName) 3220 copy(dAtA[i:], m.ResourceName) 3221 i = encodeVarintApplication(dAtA, i, uint64(len(m.ResourceName))) 3222 i-- 3223 dAtA[i] = 0x1a 3224 i -= len(m.ResourceNamespace) 3225 copy(dAtA[i:], m.ResourceNamespace) 3226 i = encodeVarintApplication(dAtA, i, uint64(len(m.ResourceNamespace))) 3227 i-- 3228 dAtA[i] = 0x12 3229 if m.Name == nil { 3230 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 3231 } else { 3232 i -= len(*m.Name) 3233 copy(dAtA[i:], *m.Name) 3234 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 3235 i-- 3236 dAtA[i] = 0xa 3237 } 3238 return len(dAtA) - i, nil 3239 } 3240 3241 func (m *ApplicationManifestQuery) Marshal() (dAtA []byte, err error) { 3242 size := m.Size() 3243 dAtA = make([]byte, size) 3244 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3245 if err != nil { 3246 return nil, err 3247 } 3248 return dAtA[:n], nil 3249 } 3250 3251 func (m *ApplicationManifestQuery) MarshalTo(dAtA []byte) (int, error) { 3252 size := m.Size() 3253 return m.MarshalToSizedBuffer(dAtA[:size]) 3254 } 3255 3256 func (m *ApplicationManifestQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3257 i := len(dAtA) 3258 _ = i 3259 var l int 3260 _ = l 3261 if m.XXX_unrecognized != nil { 3262 i -= len(m.XXX_unrecognized) 3263 copy(dAtA[i:], m.XXX_unrecognized) 3264 } 3265 i -= len(m.Revision) 3266 copy(dAtA[i:], m.Revision) 3267 i = encodeVarintApplication(dAtA, i, uint64(len(m.Revision))) 3268 i-- 3269 dAtA[i] = 0x12 3270 if m.Name == nil { 3271 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 3272 } else { 3273 i -= len(*m.Name) 3274 copy(dAtA[i:], *m.Name) 3275 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 3276 i-- 3277 dAtA[i] = 0xa 3278 } 3279 return len(dAtA) - i, nil 3280 } 3281 3282 func (m *ApplicationResponse) Marshal() (dAtA []byte, err error) { 3283 size := m.Size() 3284 dAtA = make([]byte, size) 3285 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3286 if err != nil { 3287 return nil, err 3288 } 3289 return dAtA[:n], nil 3290 } 3291 3292 func (m *ApplicationResponse) MarshalTo(dAtA []byte) (int, error) { 3293 size := m.Size() 3294 return m.MarshalToSizedBuffer(dAtA[:size]) 3295 } 3296 3297 func (m *ApplicationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3298 i := len(dAtA) 3299 _ = i 3300 var l int 3301 _ = l 3302 if m.XXX_unrecognized != nil { 3303 i -= len(m.XXX_unrecognized) 3304 copy(dAtA[i:], m.XXX_unrecognized) 3305 } 3306 return len(dAtA) - i, nil 3307 } 3308 3309 func (m *ApplicationCreateRequest) Marshal() (dAtA []byte, err error) { 3310 size := m.Size() 3311 dAtA = make([]byte, size) 3312 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3313 if err != nil { 3314 return nil, err 3315 } 3316 return dAtA[:n], nil 3317 } 3318 3319 func (m *ApplicationCreateRequest) MarshalTo(dAtA []byte) (int, error) { 3320 size := m.Size() 3321 return m.MarshalToSizedBuffer(dAtA[:size]) 3322 } 3323 3324 func (m *ApplicationCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3325 i := len(dAtA) 3326 _ = i 3327 var l int 3328 _ = l 3329 if m.XXX_unrecognized != nil { 3330 i -= len(m.XXX_unrecognized) 3331 copy(dAtA[i:], m.XXX_unrecognized) 3332 } 3333 if m.Validate != nil { 3334 i-- 3335 if *m.Validate { 3336 dAtA[i] = 1 3337 } else { 3338 dAtA[i] = 0 3339 } 3340 i-- 3341 dAtA[i] = 0x18 3342 } 3343 if m.Upsert != nil { 3344 i-- 3345 if *m.Upsert { 3346 dAtA[i] = 1 3347 } else { 3348 dAtA[i] = 0 3349 } 3350 i-- 3351 dAtA[i] = 0x10 3352 } 3353 { 3354 size, err := m.Application.MarshalToSizedBuffer(dAtA[:i]) 3355 if err != nil { 3356 return 0, err 3357 } 3358 i -= size 3359 i = encodeVarintApplication(dAtA, i, uint64(size)) 3360 } 3361 i-- 3362 dAtA[i] = 0xa 3363 return len(dAtA) - i, nil 3364 } 3365 3366 func (m *ApplicationUpdateRequest) Marshal() (dAtA []byte, err error) { 3367 size := m.Size() 3368 dAtA = make([]byte, size) 3369 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3370 if err != nil { 3371 return nil, err 3372 } 3373 return dAtA[:n], nil 3374 } 3375 3376 func (m *ApplicationUpdateRequest) MarshalTo(dAtA []byte) (int, error) { 3377 size := m.Size() 3378 return m.MarshalToSizedBuffer(dAtA[:size]) 3379 } 3380 3381 func (m *ApplicationUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3382 i := len(dAtA) 3383 _ = i 3384 var l int 3385 _ = l 3386 if m.XXX_unrecognized != nil { 3387 i -= len(m.XXX_unrecognized) 3388 copy(dAtA[i:], m.XXX_unrecognized) 3389 } 3390 if m.Validate != nil { 3391 i-- 3392 if *m.Validate { 3393 dAtA[i] = 1 3394 } else { 3395 dAtA[i] = 0 3396 } 3397 i-- 3398 dAtA[i] = 0x10 3399 } 3400 if m.Application == nil { 3401 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("application") 3402 } else { 3403 { 3404 size, err := m.Application.MarshalToSizedBuffer(dAtA[:i]) 3405 if err != nil { 3406 return 0, err 3407 } 3408 i -= size 3409 i = encodeVarintApplication(dAtA, i, uint64(size)) 3410 } 3411 i-- 3412 dAtA[i] = 0xa 3413 } 3414 return len(dAtA) - i, nil 3415 } 3416 3417 func (m *ApplicationDeleteRequest) Marshal() (dAtA []byte, err error) { 3418 size := m.Size() 3419 dAtA = make([]byte, size) 3420 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3421 if err != nil { 3422 return nil, err 3423 } 3424 return dAtA[:n], nil 3425 } 3426 3427 func (m *ApplicationDeleteRequest) MarshalTo(dAtA []byte) (int, error) { 3428 size := m.Size() 3429 return m.MarshalToSizedBuffer(dAtA[:size]) 3430 } 3431 3432 func (m *ApplicationDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3433 i := len(dAtA) 3434 _ = i 3435 var l int 3436 _ = l 3437 if m.XXX_unrecognized != nil { 3438 i -= len(m.XXX_unrecognized) 3439 copy(dAtA[i:], m.XXX_unrecognized) 3440 } 3441 if m.Cascade != nil { 3442 i-- 3443 if *m.Cascade { 3444 dAtA[i] = 1 3445 } else { 3446 dAtA[i] = 0 3447 } 3448 i-- 3449 dAtA[i] = 0x10 3450 } 3451 if m.Name == nil { 3452 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 3453 } else { 3454 i -= len(*m.Name) 3455 copy(dAtA[i:], *m.Name) 3456 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 3457 i-- 3458 dAtA[i] = 0xa 3459 } 3460 return len(dAtA) - i, nil 3461 } 3462 3463 func (m *ApplicationSyncRequest) Marshal() (dAtA []byte, err error) { 3464 size := m.Size() 3465 dAtA = make([]byte, size) 3466 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3467 if err != nil { 3468 return nil, err 3469 } 3470 return dAtA[:n], nil 3471 } 3472 3473 func (m *ApplicationSyncRequest) MarshalTo(dAtA []byte) (int, error) { 3474 size := m.Size() 3475 return m.MarshalToSizedBuffer(dAtA[:size]) 3476 } 3477 3478 func (m *ApplicationSyncRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3479 i := len(dAtA) 3480 _ = i 3481 var l int 3482 _ = l 3483 if m.XXX_unrecognized != nil { 3484 i -= len(m.XXX_unrecognized) 3485 copy(dAtA[i:], m.XXX_unrecognized) 3486 } 3487 if m.RetryStrategy != nil { 3488 { 3489 size, err := m.RetryStrategy.MarshalToSizedBuffer(dAtA[:i]) 3490 if err != nil { 3491 return 0, err 3492 } 3493 i -= size 3494 i = encodeVarintApplication(dAtA, i, uint64(size)) 3495 } 3496 i-- 3497 dAtA[i] = 0x52 3498 } 3499 if len(m.Infos) > 0 { 3500 for iNdEx := len(m.Infos) - 1; iNdEx >= 0; iNdEx-- { 3501 { 3502 size, err := m.Infos[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3503 if err != nil { 3504 return 0, err 3505 } 3506 i -= size 3507 i = encodeVarintApplication(dAtA, i, uint64(size)) 3508 } 3509 i-- 3510 dAtA[i] = 0x4a 3511 } 3512 } 3513 if len(m.Manifests) > 0 { 3514 for iNdEx := len(m.Manifests) - 1; iNdEx >= 0; iNdEx-- { 3515 i -= len(m.Manifests[iNdEx]) 3516 copy(dAtA[i:], m.Manifests[iNdEx]) 3517 i = encodeVarintApplication(dAtA, i, uint64(len(m.Manifests[iNdEx]))) 3518 i-- 3519 dAtA[i] = 0x42 3520 } 3521 } 3522 if len(m.Resources) > 0 { 3523 for iNdEx := len(m.Resources) - 1; iNdEx >= 0; iNdEx-- { 3524 { 3525 size, err := m.Resources[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 3526 if err != nil { 3527 return 0, err 3528 } 3529 i -= size 3530 i = encodeVarintApplication(dAtA, i, uint64(size)) 3531 } 3532 i-- 3533 dAtA[i] = 0x3a 3534 } 3535 } 3536 if m.Strategy != nil { 3537 { 3538 size, err := m.Strategy.MarshalToSizedBuffer(dAtA[:i]) 3539 if err != nil { 3540 return 0, err 3541 } 3542 i -= size 3543 i = encodeVarintApplication(dAtA, i, uint64(size)) 3544 } 3545 i-- 3546 dAtA[i] = 0x2a 3547 } 3548 i-- 3549 if m.Prune { 3550 dAtA[i] = 1 3551 } else { 3552 dAtA[i] = 0 3553 } 3554 i-- 3555 dAtA[i] = 0x20 3556 i-- 3557 if m.DryRun { 3558 dAtA[i] = 1 3559 } else { 3560 dAtA[i] = 0 3561 } 3562 i-- 3563 dAtA[i] = 0x18 3564 i -= len(m.Revision) 3565 copy(dAtA[i:], m.Revision) 3566 i = encodeVarintApplication(dAtA, i, uint64(len(m.Revision))) 3567 i-- 3568 dAtA[i] = 0x12 3569 if m.Name == nil { 3570 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 3571 } else { 3572 i -= len(*m.Name) 3573 copy(dAtA[i:], *m.Name) 3574 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 3575 i-- 3576 dAtA[i] = 0xa 3577 } 3578 return len(dAtA) - i, nil 3579 } 3580 3581 func (m *ApplicationUpdateSpecRequest) Marshal() (dAtA []byte, err error) { 3582 size := m.Size() 3583 dAtA = make([]byte, size) 3584 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3585 if err != nil { 3586 return nil, err 3587 } 3588 return dAtA[:n], nil 3589 } 3590 3591 func (m *ApplicationUpdateSpecRequest) MarshalTo(dAtA []byte) (int, error) { 3592 size := m.Size() 3593 return m.MarshalToSizedBuffer(dAtA[:size]) 3594 } 3595 3596 func (m *ApplicationUpdateSpecRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3597 i := len(dAtA) 3598 _ = i 3599 var l int 3600 _ = l 3601 if m.XXX_unrecognized != nil { 3602 i -= len(m.XXX_unrecognized) 3603 copy(dAtA[i:], m.XXX_unrecognized) 3604 } 3605 if m.Validate != nil { 3606 i-- 3607 if *m.Validate { 3608 dAtA[i] = 1 3609 } else { 3610 dAtA[i] = 0 3611 } 3612 i-- 3613 dAtA[i] = 0x18 3614 } 3615 { 3616 size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) 3617 if err != nil { 3618 return 0, err 3619 } 3620 i -= size 3621 i = encodeVarintApplication(dAtA, i, uint64(size)) 3622 } 3623 i-- 3624 dAtA[i] = 0x12 3625 if m.Name == nil { 3626 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 3627 } else { 3628 i -= len(*m.Name) 3629 copy(dAtA[i:], *m.Name) 3630 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 3631 i-- 3632 dAtA[i] = 0xa 3633 } 3634 return len(dAtA) - i, nil 3635 } 3636 3637 func (m *ApplicationPatchRequest) Marshal() (dAtA []byte, err error) { 3638 size := m.Size() 3639 dAtA = make([]byte, size) 3640 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3641 if err != nil { 3642 return nil, err 3643 } 3644 return dAtA[:n], nil 3645 } 3646 3647 func (m *ApplicationPatchRequest) MarshalTo(dAtA []byte) (int, error) { 3648 size := m.Size() 3649 return m.MarshalToSizedBuffer(dAtA[:size]) 3650 } 3651 3652 func (m *ApplicationPatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3653 i := len(dAtA) 3654 _ = i 3655 var l int 3656 _ = l 3657 if m.XXX_unrecognized != nil { 3658 i -= len(m.XXX_unrecognized) 3659 copy(dAtA[i:], m.XXX_unrecognized) 3660 } 3661 i -= len(m.PatchType) 3662 copy(dAtA[i:], m.PatchType) 3663 i = encodeVarintApplication(dAtA, i, uint64(len(m.PatchType))) 3664 i-- 3665 dAtA[i] = 0x1a 3666 i -= len(m.Patch) 3667 copy(dAtA[i:], m.Patch) 3668 i = encodeVarintApplication(dAtA, i, uint64(len(m.Patch))) 3669 i-- 3670 dAtA[i] = 0x12 3671 if m.Name == nil { 3672 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 3673 } else { 3674 i -= len(*m.Name) 3675 copy(dAtA[i:], *m.Name) 3676 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 3677 i-- 3678 dAtA[i] = 0xa 3679 } 3680 return len(dAtA) - i, nil 3681 } 3682 3683 func (m *ApplicationRollbackRequest) Marshal() (dAtA []byte, err error) { 3684 size := m.Size() 3685 dAtA = make([]byte, size) 3686 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3687 if err != nil { 3688 return nil, err 3689 } 3690 return dAtA[:n], nil 3691 } 3692 3693 func (m *ApplicationRollbackRequest) MarshalTo(dAtA []byte) (int, error) { 3694 size := m.Size() 3695 return m.MarshalToSizedBuffer(dAtA[:size]) 3696 } 3697 3698 func (m *ApplicationRollbackRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3699 i := len(dAtA) 3700 _ = i 3701 var l int 3702 _ = l 3703 if m.XXX_unrecognized != nil { 3704 i -= len(m.XXX_unrecognized) 3705 copy(dAtA[i:], m.XXX_unrecognized) 3706 } 3707 i-- 3708 if m.Prune { 3709 dAtA[i] = 1 3710 } else { 3711 dAtA[i] = 0 3712 } 3713 i-- 3714 dAtA[i] = 0x20 3715 i-- 3716 if m.DryRun { 3717 dAtA[i] = 1 3718 } else { 3719 dAtA[i] = 0 3720 } 3721 i-- 3722 dAtA[i] = 0x18 3723 i = encodeVarintApplication(dAtA, i, uint64(m.ID)) 3724 i-- 3725 dAtA[i] = 0x10 3726 if m.Name == nil { 3727 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 3728 } else { 3729 i -= len(*m.Name) 3730 copy(dAtA[i:], *m.Name) 3731 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 3732 i-- 3733 dAtA[i] = 0xa 3734 } 3735 return len(dAtA) - i, nil 3736 } 3737 3738 func (m *ApplicationResourceRequest) Marshal() (dAtA []byte, err error) { 3739 size := m.Size() 3740 dAtA = make([]byte, size) 3741 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3742 if err != nil { 3743 return nil, err 3744 } 3745 return dAtA[:n], nil 3746 } 3747 3748 func (m *ApplicationResourceRequest) MarshalTo(dAtA []byte) (int, error) { 3749 size := m.Size() 3750 return m.MarshalToSizedBuffer(dAtA[:size]) 3751 } 3752 3753 func (m *ApplicationResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3754 i := len(dAtA) 3755 _ = i 3756 var l int 3757 _ = l 3758 if m.XXX_unrecognized != nil { 3759 i -= len(m.XXX_unrecognized) 3760 copy(dAtA[i:], m.XXX_unrecognized) 3761 } 3762 i -= len(m.Kind) 3763 copy(dAtA[i:], m.Kind) 3764 i = encodeVarintApplication(dAtA, i, uint64(len(m.Kind))) 3765 i-- 3766 dAtA[i] = 0x32 3767 i -= len(m.Group) 3768 copy(dAtA[i:], m.Group) 3769 i = encodeVarintApplication(dAtA, i, uint64(len(m.Group))) 3770 i-- 3771 dAtA[i] = 0x2a 3772 i -= len(m.Version) 3773 copy(dAtA[i:], m.Version) 3774 i = encodeVarintApplication(dAtA, i, uint64(len(m.Version))) 3775 i-- 3776 dAtA[i] = 0x22 3777 i -= len(m.ResourceName) 3778 copy(dAtA[i:], m.ResourceName) 3779 i = encodeVarintApplication(dAtA, i, uint64(len(m.ResourceName))) 3780 i-- 3781 dAtA[i] = 0x1a 3782 i -= len(m.Namespace) 3783 copy(dAtA[i:], m.Namespace) 3784 i = encodeVarintApplication(dAtA, i, uint64(len(m.Namespace))) 3785 i-- 3786 dAtA[i] = 0x12 3787 if m.Name == nil { 3788 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 3789 } else { 3790 i -= len(*m.Name) 3791 copy(dAtA[i:], *m.Name) 3792 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 3793 i-- 3794 dAtA[i] = 0xa 3795 } 3796 return len(dAtA) - i, nil 3797 } 3798 3799 func (m *ApplicationResourcePatchRequest) Marshal() (dAtA []byte, err error) { 3800 size := m.Size() 3801 dAtA = make([]byte, size) 3802 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3803 if err != nil { 3804 return nil, err 3805 } 3806 return dAtA[:n], nil 3807 } 3808 3809 func (m *ApplicationResourcePatchRequest) MarshalTo(dAtA []byte) (int, error) { 3810 size := m.Size() 3811 return m.MarshalToSizedBuffer(dAtA[:size]) 3812 } 3813 3814 func (m *ApplicationResourcePatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3815 i := len(dAtA) 3816 _ = i 3817 var l int 3818 _ = l 3819 if m.XXX_unrecognized != nil { 3820 i -= len(m.XXX_unrecognized) 3821 copy(dAtA[i:], m.XXX_unrecognized) 3822 } 3823 i -= len(m.PatchType) 3824 copy(dAtA[i:], m.PatchType) 3825 i = encodeVarintApplication(dAtA, i, uint64(len(m.PatchType))) 3826 i-- 3827 dAtA[i] = 0x42 3828 i -= len(m.Patch) 3829 copy(dAtA[i:], m.Patch) 3830 i = encodeVarintApplication(dAtA, i, uint64(len(m.Patch))) 3831 i-- 3832 dAtA[i] = 0x3a 3833 i -= len(m.Kind) 3834 copy(dAtA[i:], m.Kind) 3835 i = encodeVarintApplication(dAtA, i, uint64(len(m.Kind))) 3836 i-- 3837 dAtA[i] = 0x32 3838 i -= len(m.Group) 3839 copy(dAtA[i:], m.Group) 3840 i = encodeVarintApplication(dAtA, i, uint64(len(m.Group))) 3841 i-- 3842 dAtA[i] = 0x2a 3843 i -= len(m.Version) 3844 copy(dAtA[i:], m.Version) 3845 i = encodeVarintApplication(dAtA, i, uint64(len(m.Version))) 3846 i-- 3847 dAtA[i] = 0x22 3848 i -= len(m.ResourceName) 3849 copy(dAtA[i:], m.ResourceName) 3850 i = encodeVarintApplication(dAtA, i, uint64(len(m.ResourceName))) 3851 i-- 3852 dAtA[i] = 0x1a 3853 i -= len(m.Namespace) 3854 copy(dAtA[i:], m.Namespace) 3855 i = encodeVarintApplication(dAtA, i, uint64(len(m.Namespace))) 3856 i-- 3857 dAtA[i] = 0x12 3858 if m.Name == nil { 3859 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 3860 } else { 3861 i -= len(*m.Name) 3862 copy(dAtA[i:], *m.Name) 3863 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 3864 i-- 3865 dAtA[i] = 0xa 3866 } 3867 return len(dAtA) - i, nil 3868 } 3869 3870 func (m *ApplicationResourceDeleteRequest) Marshal() (dAtA []byte, err error) { 3871 size := m.Size() 3872 dAtA = make([]byte, size) 3873 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3874 if err != nil { 3875 return nil, err 3876 } 3877 return dAtA[:n], nil 3878 } 3879 3880 func (m *ApplicationResourceDeleteRequest) MarshalTo(dAtA []byte) (int, error) { 3881 size := m.Size() 3882 return m.MarshalToSizedBuffer(dAtA[:size]) 3883 } 3884 3885 func (m *ApplicationResourceDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3886 i := len(dAtA) 3887 _ = i 3888 var l int 3889 _ = l 3890 if m.XXX_unrecognized != nil { 3891 i -= len(m.XXX_unrecognized) 3892 copy(dAtA[i:], m.XXX_unrecognized) 3893 } 3894 if m.Force != nil { 3895 i-- 3896 if *m.Force { 3897 dAtA[i] = 1 3898 } else { 3899 dAtA[i] = 0 3900 } 3901 i-- 3902 dAtA[i] = 0x38 3903 } 3904 i -= len(m.Kind) 3905 copy(dAtA[i:], m.Kind) 3906 i = encodeVarintApplication(dAtA, i, uint64(len(m.Kind))) 3907 i-- 3908 dAtA[i] = 0x32 3909 i -= len(m.Group) 3910 copy(dAtA[i:], m.Group) 3911 i = encodeVarintApplication(dAtA, i, uint64(len(m.Group))) 3912 i-- 3913 dAtA[i] = 0x2a 3914 i -= len(m.Version) 3915 copy(dAtA[i:], m.Version) 3916 i = encodeVarintApplication(dAtA, i, uint64(len(m.Version))) 3917 i-- 3918 dAtA[i] = 0x22 3919 i -= len(m.ResourceName) 3920 copy(dAtA[i:], m.ResourceName) 3921 i = encodeVarintApplication(dAtA, i, uint64(len(m.ResourceName))) 3922 i-- 3923 dAtA[i] = 0x1a 3924 i -= len(m.Namespace) 3925 copy(dAtA[i:], m.Namespace) 3926 i = encodeVarintApplication(dAtA, i, uint64(len(m.Namespace))) 3927 i-- 3928 dAtA[i] = 0x12 3929 if m.Name == nil { 3930 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 3931 } else { 3932 i -= len(*m.Name) 3933 copy(dAtA[i:], *m.Name) 3934 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 3935 i-- 3936 dAtA[i] = 0xa 3937 } 3938 return len(dAtA) - i, nil 3939 } 3940 3941 func (m *ResourceActionRunRequest) Marshal() (dAtA []byte, err error) { 3942 size := m.Size() 3943 dAtA = make([]byte, size) 3944 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 3945 if err != nil { 3946 return nil, err 3947 } 3948 return dAtA[:n], nil 3949 } 3950 3951 func (m *ResourceActionRunRequest) MarshalTo(dAtA []byte) (int, error) { 3952 size := m.Size() 3953 return m.MarshalToSizedBuffer(dAtA[:size]) 3954 } 3955 3956 func (m *ResourceActionRunRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 3957 i := len(dAtA) 3958 _ = i 3959 var l int 3960 _ = l 3961 if m.XXX_unrecognized != nil { 3962 i -= len(m.XXX_unrecognized) 3963 copy(dAtA[i:], m.XXX_unrecognized) 3964 } 3965 i -= len(m.Action) 3966 copy(dAtA[i:], m.Action) 3967 i = encodeVarintApplication(dAtA, i, uint64(len(m.Action))) 3968 i-- 3969 dAtA[i] = 0x3a 3970 i -= len(m.Kind) 3971 copy(dAtA[i:], m.Kind) 3972 i = encodeVarintApplication(dAtA, i, uint64(len(m.Kind))) 3973 i-- 3974 dAtA[i] = 0x32 3975 i -= len(m.Group) 3976 copy(dAtA[i:], m.Group) 3977 i = encodeVarintApplication(dAtA, i, uint64(len(m.Group))) 3978 i-- 3979 dAtA[i] = 0x2a 3980 i -= len(m.Version) 3981 copy(dAtA[i:], m.Version) 3982 i = encodeVarintApplication(dAtA, i, uint64(len(m.Version))) 3983 i-- 3984 dAtA[i] = 0x22 3985 i -= len(m.ResourceName) 3986 copy(dAtA[i:], m.ResourceName) 3987 i = encodeVarintApplication(dAtA, i, uint64(len(m.ResourceName))) 3988 i-- 3989 dAtA[i] = 0x1a 3990 i -= len(m.Namespace) 3991 copy(dAtA[i:], m.Namespace) 3992 i = encodeVarintApplication(dAtA, i, uint64(len(m.Namespace))) 3993 i-- 3994 dAtA[i] = 0x12 3995 if m.Name == nil { 3996 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 3997 } else { 3998 i -= len(*m.Name) 3999 copy(dAtA[i:], *m.Name) 4000 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 4001 i-- 4002 dAtA[i] = 0xa 4003 } 4004 return len(dAtA) - i, nil 4005 } 4006 4007 func (m *ResourceActionsListResponse) Marshal() (dAtA []byte, err error) { 4008 size := m.Size() 4009 dAtA = make([]byte, size) 4010 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4011 if err != nil { 4012 return nil, err 4013 } 4014 return dAtA[:n], nil 4015 } 4016 4017 func (m *ResourceActionsListResponse) MarshalTo(dAtA []byte) (int, error) { 4018 size := m.Size() 4019 return m.MarshalToSizedBuffer(dAtA[:size]) 4020 } 4021 4022 func (m *ResourceActionsListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4023 i := len(dAtA) 4024 _ = i 4025 var l int 4026 _ = l 4027 if m.XXX_unrecognized != nil { 4028 i -= len(m.XXX_unrecognized) 4029 copy(dAtA[i:], m.XXX_unrecognized) 4030 } 4031 if len(m.Actions) > 0 { 4032 for iNdEx := len(m.Actions) - 1; iNdEx >= 0; iNdEx-- { 4033 { 4034 size, err := m.Actions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4035 if err != nil { 4036 return 0, err 4037 } 4038 i -= size 4039 i = encodeVarintApplication(dAtA, i, uint64(size)) 4040 } 4041 i-- 4042 dAtA[i] = 0xa 4043 } 4044 } 4045 return len(dAtA) - i, nil 4046 } 4047 4048 func (m *ApplicationResourceResponse) Marshal() (dAtA []byte, err error) { 4049 size := m.Size() 4050 dAtA = make([]byte, size) 4051 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4052 if err != nil { 4053 return nil, err 4054 } 4055 return dAtA[:n], nil 4056 } 4057 4058 func (m *ApplicationResourceResponse) MarshalTo(dAtA []byte) (int, error) { 4059 size := m.Size() 4060 return m.MarshalToSizedBuffer(dAtA[:size]) 4061 } 4062 4063 func (m *ApplicationResourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4064 i := len(dAtA) 4065 _ = i 4066 var l int 4067 _ = l 4068 if m.XXX_unrecognized != nil { 4069 i -= len(m.XXX_unrecognized) 4070 copy(dAtA[i:], m.XXX_unrecognized) 4071 } 4072 i -= len(m.Manifest) 4073 copy(dAtA[i:], m.Manifest) 4074 i = encodeVarintApplication(dAtA, i, uint64(len(m.Manifest))) 4075 i-- 4076 dAtA[i] = 0xa 4077 return len(dAtA) - i, nil 4078 } 4079 4080 func (m *ApplicationPodLogsQuery) Marshal() (dAtA []byte, err error) { 4081 size := m.Size() 4082 dAtA = make([]byte, size) 4083 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4084 if err != nil { 4085 return nil, err 4086 } 4087 return dAtA[:n], nil 4088 } 4089 4090 func (m *ApplicationPodLogsQuery) MarshalTo(dAtA []byte) (int, error) { 4091 size := m.Size() 4092 return m.MarshalToSizedBuffer(dAtA[:size]) 4093 } 4094 4095 func (m *ApplicationPodLogsQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4096 i := len(dAtA) 4097 _ = i 4098 var l int 4099 _ = l 4100 if m.XXX_unrecognized != nil { 4101 i -= len(m.XXX_unrecognized) 4102 copy(dAtA[i:], m.XXX_unrecognized) 4103 } 4104 i-- 4105 if m.Follow { 4106 dAtA[i] = 1 4107 } else { 4108 dAtA[i] = 0 4109 } 4110 i-- 4111 dAtA[i] = 0x40 4112 i = encodeVarintApplication(dAtA, i, uint64(m.TailLines)) 4113 i-- 4114 dAtA[i] = 0x38 4115 if m.SinceTime != nil { 4116 { 4117 size, err := m.SinceTime.MarshalToSizedBuffer(dAtA[:i]) 4118 if err != nil { 4119 return 0, err 4120 } 4121 i -= size 4122 i = encodeVarintApplication(dAtA, i, uint64(size)) 4123 } 4124 i-- 4125 dAtA[i] = 0x32 4126 } 4127 i = encodeVarintApplication(dAtA, i, uint64(m.SinceSeconds)) 4128 i-- 4129 dAtA[i] = 0x28 4130 i -= len(m.Container) 4131 copy(dAtA[i:], m.Container) 4132 i = encodeVarintApplication(dAtA, i, uint64(len(m.Container))) 4133 i-- 4134 dAtA[i] = 0x22 4135 if m.PodName == nil { 4136 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("podName") 4137 } else { 4138 i -= len(*m.PodName) 4139 copy(dAtA[i:], *m.PodName) 4140 i = encodeVarintApplication(dAtA, i, uint64(len(*m.PodName))) 4141 i-- 4142 dAtA[i] = 0x1a 4143 } 4144 i -= len(m.Namespace) 4145 copy(dAtA[i:], m.Namespace) 4146 i = encodeVarintApplication(dAtA, i, uint64(len(m.Namespace))) 4147 i-- 4148 dAtA[i] = 0x12 4149 if m.Name == nil { 4150 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 4151 } else { 4152 i -= len(*m.Name) 4153 copy(dAtA[i:], *m.Name) 4154 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 4155 i-- 4156 dAtA[i] = 0xa 4157 } 4158 return len(dAtA) - i, nil 4159 } 4160 4161 func (m *LogEntry) Marshal() (dAtA []byte, err error) { 4162 size := m.Size() 4163 dAtA = make([]byte, size) 4164 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4165 if err != nil { 4166 return nil, err 4167 } 4168 return dAtA[:n], nil 4169 } 4170 4171 func (m *LogEntry) MarshalTo(dAtA []byte) (int, error) { 4172 size := m.Size() 4173 return m.MarshalToSizedBuffer(dAtA[:size]) 4174 } 4175 4176 func (m *LogEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4177 i := len(dAtA) 4178 _ = i 4179 var l int 4180 _ = l 4181 if m.XXX_unrecognized != nil { 4182 i -= len(m.XXX_unrecognized) 4183 copy(dAtA[i:], m.XXX_unrecognized) 4184 } 4185 i-- 4186 if m.Last { 4187 dAtA[i] = 1 4188 } else { 4189 dAtA[i] = 0 4190 } 4191 i-- 4192 dAtA[i] = 0x18 4193 { 4194 size, err := m.TimeStamp.MarshalToSizedBuffer(dAtA[:i]) 4195 if err != nil { 4196 return 0, err 4197 } 4198 i -= size 4199 i = encodeVarintApplication(dAtA, i, uint64(size)) 4200 } 4201 i-- 4202 dAtA[i] = 0x12 4203 i -= len(m.Content) 4204 copy(dAtA[i:], m.Content) 4205 i = encodeVarintApplication(dAtA, i, uint64(len(m.Content))) 4206 i-- 4207 dAtA[i] = 0xa 4208 return len(dAtA) - i, nil 4209 } 4210 4211 func (m *OperationTerminateRequest) Marshal() (dAtA []byte, err error) { 4212 size := m.Size() 4213 dAtA = make([]byte, size) 4214 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4215 if err != nil { 4216 return nil, err 4217 } 4218 return dAtA[:n], nil 4219 } 4220 4221 func (m *OperationTerminateRequest) MarshalTo(dAtA []byte) (int, error) { 4222 size := m.Size() 4223 return m.MarshalToSizedBuffer(dAtA[:size]) 4224 } 4225 4226 func (m *OperationTerminateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4227 i := len(dAtA) 4228 _ = i 4229 var l int 4230 _ = l 4231 if m.XXX_unrecognized != nil { 4232 i -= len(m.XXX_unrecognized) 4233 copy(dAtA[i:], m.XXX_unrecognized) 4234 } 4235 if m.Name == nil { 4236 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 4237 } else { 4238 i -= len(*m.Name) 4239 copy(dAtA[i:], *m.Name) 4240 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 4241 i-- 4242 dAtA[i] = 0xa 4243 } 4244 return len(dAtA) - i, nil 4245 } 4246 4247 func (m *ApplicationSyncWindowsQuery) Marshal() (dAtA []byte, err error) { 4248 size := m.Size() 4249 dAtA = make([]byte, size) 4250 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4251 if err != nil { 4252 return nil, err 4253 } 4254 return dAtA[:n], nil 4255 } 4256 4257 func (m *ApplicationSyncWindowsQuery) MarshalTo(dAtA []byte) (int, error) { 4258 size := m.Size() 4259 return m.MarshalToSizedBuffer(dAtA[:size]) 4260 } 4261 4262 func (m *ApplicationSyncWindowsQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4263 i := len(dAtA) 4264 _ = i 4265 var l int 4266 _ = l 4267 if m.XXX_unrecognized != nil { 4268 i -= len(m.XXX_unrecognized) 4269 copy(dAtA[i:], m.XXX_unrecognized) 4270 } 4271 if m.Name == nil { 4272 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 4273 } else { 4274 i -= len(*m.Name) 4275 copy(dAtA[i:], *m.Name) 4276 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Name))) 4277 i-- 4278 dAtA[i] = 0xa 4279 } 4280 return len(dAtA) - i, nil 4281 } 4282 4283 func (m *ApplicationSyncWindowsResponse) Marshal() (dAtA []byte, err error) { 4284 size := m.Size() 4285 dAtA = make([]byte, size) 4286 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4287 if err != nil { 4288 return nil, err 4289 } 4290 return dAtA[:n], nil 4291 } 4292 4293 func (m *ApplicationSyncWindowsResponse) MarshalTo(dAtA []byte) (int, error) { 4294 size := m.Size() 4295 return m.MarshalToSizedBuffer(dAtA[:size]) 4296 } 4297 4298 func (m *ApplicationSyncWindowsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4299 i := len(dAtA) 4300 _ = i 4301 var l int 4302 _ = l 4303 if m.XXX_unrecognized != nil { 4304 i -= len(m.XXX_unrecognized) 4305 copy(dAtA[i:], m.XXX_unrecognized) 4306 } 4307 if m.CanSync == nil { 4308 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("canSync") 4309 } else { 4310 i-- 4311 if *m.CanSync { 4312 dAtA[i] = 1 4313 } else { 4314 dAtA[i] = 0 4315 } 4316 i-- 4317 dAtA[i] = 0x18 4318 } 4319 if len(m.AssignedWindows) > 0 { 4320 for iNdEx := len(m.AssignedWindows) - 1; iNdEx >= 0; iNdEx-- { 4321 { 4322 size, err := m.AssignedWindows[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4323 if err != nil { 4324 return 0, err 4325 } 4326 i -= size 4327 i = encodeVarintApplication(dAtA, i, uint64(size)) 4328 } 4329 i-- 4330 dAtA[i] = 0x12 4331 } 4332 } 4333 if len(m.ActiveWindows) > 0 { 4334 for iNdEx := len(m.ActiveWindows) - 1; iNdEx >= 0; iNdEx-- { 4335 { 4336 size, err := m.ActiveWindows[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4337 if err != nil { 4338 return 0, err 4339 } 4340 i -= size 4341 i = encodeVarintApplication(dAtA, i, uint64(size)) 4342 } 4343 i-- 4344 dAtA[i] = 0xa 4345 } 4346 } 4347 return len(dAtA) - i, nil 4348 } 4349 4350 func (m *ApplicationSyncWindow) Marshal() (dAtA []byte, err error) { 4351 size := m.Size() 4352 dAtA = make([]byte, size) 4353 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4354 if err != nil { 4355 return nil, err 4356 } 4357 return dAtA[:n], nil 4358 } 4359 4360 func (m *ApplicationSyncWindow) MarshalTo(dAtA []byte) (int, error) { 4361 size := m.Size() 4362 return m.MarshalToSizedBuffer(dAtA[:size]) 4363 } 4364 4365 func (m *ApplicationSyncWindow) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4366 i := len(dAtA) 4367 _ = i 4368 var l int 4369 _ = l 4370 if m.XXX_unrecognized != nil { 4371 i -= len(m.XXX_unrecognized) 4372 copy(dAtA[i:], m.XXX_unrecognized) 4373 } 4374 if m.ManualSync == nil { 4375 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("manualSync") 4376 } else { 4377 i-- 4378 if *m.ManualSync { 4379 dAtA[i] = 1 4380 } else { 4381 dAtA[i] = 0 4382 } 4383 i-- 4384 dAtA[i] = 0x20 4385 } 4386 if m.Duration == nil { 4387 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("duration") 4388 } else { 4389 i -= len(*m.Duration) 4390 copy(dAtA[i:], *m.Duration) 4391 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Duration))) 4392 i-- 4393 dAtA[i] = 0x1a 4394 } 4395 if m.Schedule == nil { 4396 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("schedule") 4397 } else { 4398 i -= len(*m.Schedule) 4399 copy(dAtA[i:], *m.Schedule) 4400 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Schedule))) 4401 i-- 4402 dAtA[i] = 0x12 4403 } 4404 if m.Kind == nil { 4405 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("kind") 4406 } else { 4407 i -= len(*m.Kind) 4408 copy(dAtA[i:], *m.Kind) 4409 i = encodeVarintApplication(dAtA, i, uint64(len(*m.Kind))) 4410 i-- 4411 dAtA[i] = 0xa 4412 } 4413 return len(dAtA) - i, nil 4414 } 4415 4416 func (m *OperationTerminateResponse) Marshal() (dAtA []byte, err error) { 4417 size := m.Size() 4418 dAtA = make([]byte, size) 4419 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4420 if err != nil { 4421 return nil, err 4422 } 4423 return dAtA[:n], nil 4424 } 4425 4426 func (m *OperationTerminateResponse) MarshalTo(dAtA []byte) (int, error) { 4427 size := m.Size() 4428 return m.MarshalToSizedBuffer(dAtA[:size]) 4429 } 4430 4431 func (m *OperationTerminateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4432 i := len(dAtA) 4433 _ = i 4434 var l int 4435 _ = l 4436 if m.XXX_unrecognized != nil { 4437 i -= len(m.XXX_unrecognized) 4438 copy(dAtA[i:], m.XXX_unrecognized) 4439 } 4440 return len(dAtA) - i, nil 4441 } 4442 4443 func (m *ResourcesQuery) Marshal() (dAtA []byte, err error) { 4444 size := m.Size() 4445 dAtA = make([]byte, size) 4446 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4447 if err != nil { 4448 return nil, err 4449 } 4450 return dAtA[:n], nil 4451 } 4452 4453 func (m *ResourcesQuery) MarshalTo(dAtA []byte) (int, error) { 4454 size := m.Size() 4455 return m.MarshalToSizedBuffer(dAtA[:size]) 4456 } 4457 4458 func (m *ResourcesQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4459 i := len(dAtA) 4460 _ = i 4461 var l int 4462 _ = l 4463 if m.XXX_unrecognized != nil { 4464 i -= len(m.XXX_unrecognized) 4465 copy(dAtA[i:], m.XXX_unrecognized) 4466 } 4467 i -= len(m.Kind) 4468 copy(dAtA[i:], m.Kind) 4469 i = encodeVarintApplication(dAtA, i, uint64(len(m.Kind))) 4470 i-- 4471 dAtA[i] = 0x32 4472 i -= len(m.Group) 4473 copy(dAtA[i:], m.Group) 4474 i = encodeVarintApplication(dAtA, i, uint64(len(m.Group))) 4475 i-- 4476 dAtA[i] = 0x2a 4477 i -= len(m.Version) 4478 copy(dAtA[i:], m.Version) 4479 i = encodeVarintApplication(dAtA, i, uint64(len(m.Version))) 4480 i-- 4481 dAtA[i] = 0x22 4482 i -= len(m.Name) 4483 copy(dAtA[i:], m.Name) 4484 i = encodeVarintApplication(dAtA, i, uint64(len(m.Name))) 4485 i-- 4486 dAtA[i] = 0x1a 4487 i -= len(m.Namespace) 4488 copy(dAtA[i:], m.Namespace) 4489 i = encodeVarintApplication(dAtA, i, uint64(len(m.Namespace))) 4490 i-- 4491 dAtA[i] = 0x12 4492 if m.ApplicationName == nil { 4493 return 0, github_com_gogo_protobuf_proto.NewRequiredNotSetError("applicationName") 4494 } else { 4495 i -= len(*m.ApplicationName) 4496 copy(dAtA[i:], *m.ApplicationName) 4497 i = encodeVarintApplication(dAtA, i, uint64(len(*m.ApplicationName))) 4498 i-- 4499 dAtA[i] = 0xa 4500 } 4501 return len(dAtA) - i, nil 4502 } 4503 4504 func (m *ManagedResourcesResponse) Marshal() (dAtA []byte, err error) { 4505 size := m.Size() 4506 dAtA = make([]byte, size) 4507 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 4508 if err != nil { 4509 return nil, err 4510 } 4511 return dAtA[:n], nil 4512 } 4513 4514 func (m *ManagedResourcesResponse) MarshalTo(dAtA []byte) (int, error) { 4515 size := m.Size() 4516 return m.MarshalToSizedBuffer(dAtA[:size]) 4517 } 4518 4519 func (m *ManagedResourcesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { 4520 i := len(dAtA) 4521 _ = i 4522 var l int 4523 _ = l 4524 if m.XXX_unrecognized != nil { 4525 i -= len(m.XXX_unrecognized) 4526 copy(dAtA[i:], m.XXX_unrecognized) 4527 } 4528 if len(m.Items) > 0 { 4529 for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { 4530 { 4531 size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 4532 if err != nil { 4533 return 0, err 4534 } 4535 i -= size 4536 i = encodeVarintApplication(dAtA, i, uint64(size)) 4537 } 4538 i-- 4539 dAtA[i] = 0xa 4540 } 4541 } 4542 return len(dAtA) - i, nil 4543 } 4544 4545 func encodeVarintApplication(dAtA []byte, offset int, v uint64) int { 4546 offset -= sovApplication(v) 4547 base := offset 4548 for v >= 1<<7 { 4549 dAtA[offset] = uint8(v&0x7f | 0x80) 4550 v >>= 7 4551 offset++ 4552 } 4553 dAtA[offset] = uint8(v) 4554 return base 4555 } 4556 func (m *ApplicationQuery) Size() (n int) { 4557 if m == nil { 4558 return 0 4559 } 4560 var l int 4561 _ = l 4562 if m.Name != nil { 4563 l = len(*m.Name) 4564 n += 1 + l + sovApplication(uint64(l)) 4565 } 4566 if m.Refresh != nil { 4567 l = len(*m.Refresh) 4568 n += 1 + l + sovApplication(uint64(l)) 4569 } 4570 if len(m.Projects) > 0 { 4571 for _, s := range m.Projects { 4572 l = len(s) 4573 n += 1 + l + sovApplication(uint64(l)) 4574 } 4575 } 4576 l = len(m.ResourceVersion) 4577 n += 1 + l + sovApplication(uint64(l)) 4578 l = len(m.Selector) 4579 n += 1 + l + sovApplication(uint64(l)) 4580 if m.XXX_unrecognized != nil { 4581 n += len(m.XXX_unrecognized) 4582 } 4583 return n 4584 } 4585 4586 func (m *RevisionMetadataQuery) Size() (n int) { 4587 if m == nil { 4588 return 0 4589 } 4590 var l int 4591 _ = l 4592 if m.Name != nil { 4593 l = len(*m.Name) 4594 n += 1 + l + sovApplication(uint64(l)) 4595 } 4596 if m.Revision != nil { 4597 l = len(*m.Revision) 4598 n += 1 + l + sovApplication(uint64(l)) 4599 } 4600 if m.XXX_unrecognized != nil { 4601 n += len(m.XXX_unrecognized) 4602 } 4603 return n 4604 } 4605 4606 func (m *ApplicationResourceEventsQuery) Size() (n int) { 4607 if m == nil { 4608 return 0 4609 } 4610 var l int 4611 _ = l 4612 if m.Name != nil { 4613 l = len(*m.Name) 4614 n += 1 + l + sovApplication(uint64(l)) 4615 } 4616 l = len(m.ResourceNamespace) 4617 n += 1 + l + sovApplication(uint64(l)) 4618 l = len(m.ResourceName) 4619 n += 1 + l + sovApplication(uint64(l)) 4620 l = len(m.ResourceUID) 4621 n += 1 + l + sovApplication(uint64(l)) 4622 if m.XXX_unrecognized != nil { 4623 n += len(m.XXX_unrecognized) 4624 } 4625 return n 4626 } 4627 4628 func (m *ApplicationManifestQuery) Size() (n int) { 4629 if m == nil { 4630 return 0 4631 } 4632 var l int 4633 _ = l 4634 if m.Name != nil { 4635 l = len(*m.Name) 4636 n += 1 + l + sovApplication(uint64(l)) 4637 } 4638 l = len(m.Revision) 4639 n += 1 + l + sovApplication(uint64(l)) 4640 if m.XXX_unrecognized != nil { 4641 n += len(m.XXX_unrecognized) 4642 } 4643 return n 4644 } 4645 4646 func (m *ApplicationResponse) Size() (n int) { 4647 if m == nil { 4648 return 0 4649 } 4650 var l int 4651 _ = l 4652 if m.XXX_unrecognized != nil { 4653 n += len(m.XXX_unrecognized) 4654 } 4655 return n 4656 } 4657 4658 func (m *ApplicationCreateRequest) Size() (n int) { 4659 if m == nil { 4660 return 0 4661 } 4662 var l int 4663 _ = l 4664 l = m.Application.Size() 4665 n += 1 + l + sovApplication(uint64(l)) 4666 if m.Upsert != nil { 4667 n += 2 4668 } 4669 if m.Validate != nil { 4670 n += 2 4671 } 4672 if m.XXX_unrecognized != nil { 4673 n += len(m.XXX_unrecognized) 4674 } 4675 return n 4676 } 4677 4678 func (m *ApplicationUpdateRequest) Size() (n int) { 4679 if m == nil { 4680 return 0 4681 } 4682 var l int 4683 _ = l 4684 if m.Application != nil { 4685 l = m.Application.Size() 4686 n += 1 + l + sovApplication(uint64(l)) 4687 } 4688 if m.Validate != nil { 4689 n += 2 4690 } 4691 if m.XXX_unrecognized != nil { 4692 n += len(m.XXX_unrecognized) 4693 } 4694 return n 4695 } 4696 4697 func (m *ApplicationDeleteRequest) Size() (n int) { 4698 if m == nil { 4699 return 0 4700 } 4701 var l int 4702 _ = l 4703 if m.Name != nil { 4704 l = len(*m.Name) 4705 n += 1 + l + sovApplication(uint64(l)) 4706 } 4707 if m.Cascade != nil { 4708 n += 2 4709 } 4710 if m.XXX_unrecognized != nil { 4711 n += len(m.XXX_unrecognized) 4712 } 4713 return n 4714 } 4715 4716 func (m *ApplicationSyncRequest) Size() (n int) { 4717 if m == nil { 4718 return 0 4719 } 4720 var l int 4721 _ = l 4722 if m.Name != nil { 4723 l = len(*m.Name) 4724 n += 1 + l + sovApplication(uint64(l)) 4725 } 4726 l = len(m.Revision) 4727 n += 1 + l + sovApplication(uint64(l)) 4728 n += 2 4729 n += 2 4730 if m.Strategy != nil { 4731 l = m.Strategy.Size() 4732 n += 1 + l + sovApplication(uint64(l)) 4733 } 4734 if len(m.Resources) > 0 { 4735 for _, e := range m.Resources { 4736 l = e.Size() 4737 n += 1 + l + sovApplication(uint64(l)) 4738 } 4739 } 4740 if len(m.Manifests) > 0 { 4741 for _, s := range m.Manifests { 4742 l = len(s) 4743 n += 1 + l + sovApplication(uint64(l)) 4744 } 4745 } 4746 if len(m.Infos) > 0 { 4747 for _, e := range m.Infos { 4748 l = e.Size() 4749 n += 1 + l + sovApplication(uint64(l)) 4750 } 4751 } 4752 if m.RetryStrategy != nil { 4753 l = m.RetryStrategy.Size() 4754 n += 1 + l + sovApplication(uint64(l)) 4755 } 4756 if m.XXX_unrecognized != nil { 4757 n += len(m.XXX_unrecognized) 4758 } 4759 return n 4760 } 4761 4762 func (m *ApplicationUpdateSpecRequest) Size() (n int) { 4763 if m == nil { 4764 return 0 4765 } 4766 var l int 4767 _ = l 4768 if m.Name != nil { 4769 l = len(*m.Name) 4770 n += 1 + l + sovApplication(uint64(l)) 4771 } 4772 l = m.Spec.Size() 4773 n += 1 + l + sovApplication(uint64(l)) 4774 if m.Validate != nil { 4775 n += 2 4776 } 4777 if m.XXX_unrecognized != nil { 4778 n += len(m.XXX_unrecognized) 4779 } 4780 return n 4781 } 4782 4783 func (m *ApplicationPatchRequest) Size() (n int) { 4784 if m == nil { 4785 return 0 4786 } 4787 var l int 4788 _ = l 4789 if m.Name != nil { 4790 l = len(*m.Name) 4791 n += 1 + l + sovApplication(uint64(l)) 4792 } 4793 l = len(m.Patch) 4794 n += 1 + l + sovApplication(uint64(l)) 4795 l = len(m.PatchType) 4796 n += 1 + l + sovApplication(uint64(l)) 4797 if m.XXX_unrecognized != nil { 4798 n += len(m.XXX_unrecognized) 4799 } 4800 return n 4801 } 4802 4803 func (m *ApplicationRollbackRequest) Size() (n int) { 4804 if m == nil { 4805 return 0 4806 } 4807 var l int 4808 _ = l 4809 if m.Name != nil { 4810 l = len(*m.Name) 4811 n += 1 + l + sovApplication(uint64(l)) 4812 } 4813 n += 1 + sovApplication(uint64(m.ID)) 4814 n += 2 4815 n += 2 4816 if m.XXX_unrecognized != nil { 4817 n += len(m.XXX_unrecognized) 4818 } 4819 return n 4820 } 4821 4822 func (m *ApplicationResourceRequest) Size() (n int) { 4823 if m == nil { 4824 return 0 4825 } 4826 var l int 4827 _ = l 4828 if m.Name != nil { 4829 l = len(*m.Name) 4830 n += 1 + l + sovApplication(uint64(l)) 4831 } 4832 l = len(m.Namespace) 4833 n += 1 + l + sovApplication(uint64(l)) 4834 l = len(m.ResourceName) 4835 n += 1 + l + sovApplication(uint64(l)) 4836 l = len(m.Version) 4837 n += 1 + l + sovApplication(uint64(l)) 4838 l = len(m.Group) 4839 n += 1 + l + sovApplication(uint64(l)) 4840 l = len(m.Kind) 4841 n += 1 + l + sovApplication(uint64(l)) 4842 if m.XXX_unrecognized != nil { 4843 n += len(m.XXX_unrecognized) 4844 } 4845 return n 4846 } 4847 4848 func (m *ApplicationResourcePatchRequest) Size() (n int) { 4849 if m == nil { 4850 return 0 4851 } 4852 var l int 4853 _ = l 4854 if m.Name != nil { 4855 l = len(*m.Name) 4856 n += 1 + l + sovApplication(uint64(l)) 4857 } 4858 l = len(m.Namespace) 4859 n += 1 + l + sovApplication(uint64(l)) 4860 l = len(m.ResourceName) 4861 n += 1 + l + sovApplication(uint64(l)) 4862 l = len(m.Version) 4863 n += 1 + l + sovApplication(uint64(l)) 4864 l = len(m.Group) 4865 n += 1 + l + sovApplication(uint64(l)) 4866 l = len(m.Kind) 4867 n += 1 + l + sovApplication(uint64(l)) 4868 l = len(m.Patch) 4869 n += 1 + l + sovApplication(uint64(l)) 4870 l = len(m.PatchType) 4871 n += 1 + l + sovApplication(uint64(l)) 4872 if m.XXX_unrecognized != nil { 4873 n += len(m.XXX_unrecognized) 4874 } 4875 return n 4876 } 4877 4878 func (m *ApplicationResourceDeleteRequest) Size() (n int) { 4879 if m == nil { 4880 return 0 4881 } 4882 var l int 4883 _ = l 4884 if m.Name != nil { 4885 l = len(*m.Name) 4886 n += 1 + l + sovApplication(uint64(l)) 4887 } 4888 l = len(m.Namespace) 4889 n += 1 + l + sovApplication(uint64(l)) 4890 l = len(m.ResourceName) 4891 n += 1 + l + sovApplication(uint64(l)) 4892 l = len(m.Version) 4893 n += 1 + l + sovApplication(uint64(l)) 4894 l = len(m.Group) 4895 n += 1 + l + sovApplication(uint64(l)) 4896 l = len(m.Kind) 4897 n += 1 + l + sovApplication(uint64(l)) 4898 if m.Force != nil { 4899 n += 2 4900 } 4901 if m.XXX_unrecognized != nil { 4902 n += len(m.XXX_unrecognized) 4903 } 4904 return n 4905 } 4906 4907 func (m *ResourceActionRunRequest) Size() (n int) { 4908 if m == nil { 4909 return 0 4910 } 4911 var l int 4912 _ = l 4913 if m.Name != nil { 4914 l = len(*m.Name) 4915 n += 1 + l + sovApplication(uint64(l)) 4916 } 4917 l = len(m.Namespace) 4918 n += 1 + l + sovApplication(uint64(l)) 4919 l = len(m.ResourceName) 4920 n += 1 + l + sovApplication(uint64(l)) 4921 l = len(m.Version) 4922 n += 1 + l + sovApplication(uint64(l)) 4923 l = len(m.Group) 4924 n += 1 + l + sovApplication(uint64(l)) 4925 l = len(m.Kind) 4926 n += 1 + l + sovApplication(uint64(l)) 4927 l = len(m.Action) 4928 n += 1 + l + sovApplication(uint64(l)) 4929 if m.XXX_unrecognized != nil { 4930 n += len(m.XXX_unrecognized) 4931 } 4932 return n 4933 } 4934 4935 func (m *ResourceActionsListResponse) Size() (n int) { 4936 if m == nil { 4937 return 0 4938 } 4939 var l int 4940 _ = l 4941 if len(m.Actions) > 0 { 4942 for _, e := range m.Actions { 4943 l = e.Size() 4944 n += 1 + l + sovApplication(uint64(l)) 4945 } 4946 } 4947 if m.XXX_unrecognized != nil { 4948 n += len(m.XXX_unrecognized) 4949 } 4950 return n 4951 } 4952 4953 func (m *ApplicationResourceResponse) Size() (n int) { 4954 if m == nil { 4955 return 0 4956 } 4957 var l int 4958 _ = l 4959 l = len(m.Manifest) 4960 n += 1 + l + sovApplication(uint64(l)) 4961 if m.XXX_unrecognized != nil { 4962 n += len(m.XXX_unrecognized) 4963 } 4964 return n 4965 } 4966 4967 func (m *ApplicationPodLogsQuery) Size() (n int) { 4968 if m == nil { 4969 return 0 4970 } 4971 var l int 4972 _ = l 4973 if m.Name != nil { 4974 l = len(*m.Name) 4975 n += 1 + l + sovApplication(uint64(l)) 4976 } 4977 l = len(m.Namespace) 4978 n += 1 + l + sovApplication(uint64(l)) 4979 if m.PodName != nil { 4980 l = len(*m.PodName) 4981 n += 1 + l + sovApplication(uint64(l)) 4982 } 4983 l = len(m.Container) 4984 n += 1 + l + sovApplication(uint64(l)) 4985 n += 1 + sovApplication(uint64(m.SinceSeconds)) 4986 if m.SinceTime != nil { 4987 l = m.SinceTime.Size() 4988 n += 1 + l + sovApplication(uint64(l)) 4989 } 4990 n += 1 + sovApplication(uint64(m.TailLines)) 4991 n += 2 4992 if m.XXX_unrecognized != nil { 4993 n += len(m.XXX_unrecognized) 4994 } 4995 return n 4996 } 4997 4998 func (m *LogEntry) Size() (n int) { 4999 if m == nil { 5000 return 0 5001 } 5002 var l int 5003 _ = l 5004 l = len(m.Content) 5005 n += 1 + l + sovApplication(uint64(l)) 5006 l = m.TimeStamp.Size() 5007 n += 1 + l + sovApplication(uint64(l)) 5008 n += 2 5009 if m.XXX_unrecognized != nil { 5010 n += len(m.XXX_unrecognized) 5011 } 5012 return n 5013 } 5014 5015 func (m *OperationTerminateRequest) Size() (n int) { 5016 if m == nil { 5017 return 0 5018 } 5019 var l int 5020 _ = l 5021 if m.Name != nil { 5022 l = len(*m.Name) 5023 n += 1 + l + sovApplication(uint64(l)) 5024 } 5025 if m.XXX_unrecognized != nil { 5026 n += len(m.XXX_unrecognized) 5027 } 5028 return n 5029 } 5030 5031 func (m *ApplicationSyncWindowsQuery) Size() (n int) { 5032 if m == nil { 5033 return 0 5034 } 5035 var l int 5036 _ = l 5037 if m.Name != nil { 5038 l = len(*m.Name) 5039 n += 1 + l + sovApplication(uint64(l)) 5040 } 5041 if m.XXX_unrecognized != nil { 5042 n += len(m.XXX_unrecognized) 5043 } 5044 return n 5045 } 5046 5047 func (m *ApplicationSyncWindowsResponse) Size() (n int) { 5048 if m == nil { 5049 return 0 5050 } 5051 var l int 5052 _ = l 5053 if len(m.ActiveWindows) > 0 { 5054 for _, e := range m.ActiveWindows { 5055 l = e.Size() 5056 n += 1 + l + sovApplication(uint64(l)) 5057 } 5058 } 5059 if len(m.AssignedWindows) > 0 { 5060 for _, e := range m.AssignedWindows { 5061 l = e.Size() 5062 n += 1 + l + sovApplication(uint64(l)) 5063 } 5064 } 5065 if m.CanSync != nil { 5066 n += 2 5067 } 5068 if m.XXX_unrecognized != nil { 5069 n += len(m.XXX_unrecognized) 5070 } 5071 return n 5072 } 5073 5074 func (m *ApplicationSyncWindow) Size() (n int) { 5075 if m == nil { 5076 return 0 5077 } 5078 var l int 5079 _ = l 5080 if m.Kind != nil { 5081 l = len(*m.Kind) 5082 n += 1 + l + sovApplication(uint64(l)) 5083 } 5084 if m.Schedule != nil { 5085 l = len(*m.Schedule) 5086 n += 1 + l + sovApplication(uint64(l)) 5087 } 5088 if m.Duration != nil { 5089 l = len(*m.Duration) 5090 n += 1 + l + sovApplication(uint64(l)) 5091 } 5092 if m.ManualSync != nil { 5093 n += 2 5094 } 5095 if m.XXX_unrecognized != nil { 5096 n += len(m.XXX_unrecognized) 5097 } 5098 return n 5099 } 5100 5101 func (m *OperationTerminateResponse) Size() (n int) { 5102 if m == nil { 5103 return 0 5104 } 5105 var l int 5106 _ = l 5107 if m.XXX_unrecognized != nil { 5108 n += len(m.XXX_unrecognized) 5109 } 5110 return n 5111 } 5112 5113 func (m *ResourcesQuery) Size() (n int) { 5114 if m == nil { 5115 return 0 5116 } 5117 var l int 5118 _ = l 5119 if m.ApplicationName != nil { 5120 l = len(*m.ApplicationName) 5121 n += 1 + l + sovApplication(uint64(l)) 5122 } 5123 l = len(m.Namespace) 5124 n += 1 + l + sovApplication(uint64(l)) 5125 l = len(m.Name) 5126 n += 1 + l + sovApplication(uint64(l)) 5127 l = len(m.Version) 5128 n += 1 + l + sovApplication(uint64(l)) 5129 l = len(m.Group) 5130 n += 1 + l + sovApplication(uint64(l)) 5131 l = len(m.Kind) 5132 n += 1 + l + sovApplication(uint64(l)) 5133 if m.XXX_unrecognized != nil { 5134 n += len(m.XXX_unrecognized) 5135 } 5136 return n 5137 } 5138 5139 func (m *ManagedResourcesResponse) Size() (n int) { 5140 if m == nil { 5141 return 0 5142 } 5143 var l int 5144 _ = l 5145 if len(m.Items) > 0 { 5146 for _, e := range m.Items { 5147 l = e.Size() 5148 n += 1 + l + sovApplication(uint64(l)) 5149 } 5150 } 5151 if m.XXX_unrecognized != nil { 5152 n += len(m.XXX_unrecognized) 5153 } 5154 return n 5155 } 5156 5157 func sovApplication(x uint64) (n int) { 5158 return (math_bits.Len64(x|1) + 6) / 7 5159 } 5160 func sozApplication(x uint64) (n int) { 5161 return sovApplication(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 5162 } 5163 func (m *ApplicationQuery) Unmarshal(dAtA []byte) error { 5164 l := len(dAtA) 5165 iNdEx := 0 5166 for iNdEx < l { 5167 preIndex := iNdEx 5168 var wire uint64 5169 for shift := uint(0); ; shift += 7 { 5170 if shift >= 64 { 5171 return ErrIntOverflowApplication 5172 } 5173 if iNdEx >= l { 5174 return io.ErrUnexpectedEOF 5175 } 5176 b := dAtA[iNdEx] 5177 iNdEx++ 5178 wire |= uint64(b&0x7F) << shift 5179 if b < 0x80 { 5180 break 5181 } 5182 } 5183 fieldNum := int32(wire >> 3) 5184 wireType := int(wire & 0x7) 5185 if wireType == 4 { 5186 return fmt.Errorf("proto: ApplicationQuery: wiretype end group for non-group") 5187 } 5188 if fieldNum <= 0 { 5189 return fmt.Errorf("proto: ApplicationQuery: illegal tag %d (wire type %d)", fieldNum, wire) 5190 } 5191 switch fieldNum { 5192 case 1: 5193 if wireType != 2 { 5194 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 5195 } 5196 var stringLen uint64 5197 for shift := uint(0); ; shift += 7 { 5198 if shift >= 64 { 5199 return ErrIntOverflowApplication 5200 } 5201 if iNdEx >= l { 5202 return io.ErrUnexpectedEOF 5203 } 5204 b := dAtA[iNdEx] 5205 iNdEx++ 5206 stringLen |= uint64(b&0x7F) << shift 5207 if b < 0x80 { 5208 break 5209 } 5210 } 5211 intStringLen := int(stringLen) 5212 if intStringLen < 0 { 5213 return ErrInvalidLengthApplication 5214 } 5215 postIndex := iNdEx + intStringLen 5216 if postIndex < 0 { 5217 return ErrInvalidLengthApplication 5218 } 5219 if postIndex > l { 5220 return io.ErrUnexpectedEOF 5221 } 5222 s := string(dAtA[iNdEx:postIndex]) 5223 m.Name = &s 5224 iNdEx = postIndex 5225 case 2: 5226 if wireType != 2 { 5227 return fmt.Errorf("proto: wrong wireType = %d for field Refresh", wireType) 5228 } 5229 var stringLen uint64 5230 for shift := uint(0); ; shift += 7 { 5231 if shift >= 64 { 5232 return ErrIntOverflowApplication 5233 } 5234 if iNdEx >= l { 5235 return io.ErrUnexpectedEOF 5236 } 5237 b := dAtA[iNdEx] 5238 iNdEx++ 5239 stringLen |= uint64(b&0x7F) << shift 5240 if b < 0x80 { 5241 break 5242 } 5243 } 5244 intStringLen := int(stringLen) 5245 if intStringLen < 0 { 5246 return ErrInvalidLengthApplication 5247 } 5248 postIndex := iNdEx + intStringLen 5249 if postIndex < 0 { 5250 return ErrInvalidLengthApplication 5251 } 5252 if postIndex > l { 5253 return io.ErrUnexpectedEOF 5254 } 5255 s := string(dAtA[iNdEx:postIndex]) 5256 m.Refresh = &s 5257 iNdEx = postIndex 5258 case 3: 5259 if wireType != 2 { 5260 return fmt.Errorf("proto: wrong wireType = %d for field Projects", wireType) 5261 } 5262 var stringLen uint64 5263 for shift := uint(0); ; shift += 7 { 5264 if shift >= 64 { 5265 return ErrIntOverflowApplication 5266 } 5267 if iNdEx >= l { 5268 return io.ErrUnexpectedEOF 5269 } 5270 b := dAtA[iNdEx] 5271 iNdEx++ 5272 stringLen |= uint64(b&0x7F) << shift 5273 if b < 0x80 { 5274 break 5275 } 5276 } 5277 intStringLen := int(stringLen) 5278 if intStringLen < 0 { 5279 return ErrInvalidLengthApplication 5280 } 5281 postIndex := iNdEx + intStringLen 5282 if postIndex < 0 { 5283 return ErrInvalidLengthApplication 5284 } 5285 if postIndex > l { 5286 return io.ErrUnexpectedEOF 5287 } 5288 m.Projects = append(m.Projects, string(dAtA[iNdEx:postIndex])) 5289 iNdEx = postIndex 5290 case 4: 5291 if wireType != 2 { 5292 return fmt.Errorf("proto: wrong wireType = %d for field ResourceVersion", wireType) 5293 } 5294 var stringLen uint64 5295 for shift := uint(0); ; shift += 7 { 5296 if shift >= 64 { 5297 return ErrIntOverflowApplication 5298 } 5299 if iNdEx >= l { 5300 return io.ErrUnexpectedEOF 5301 } 5302 b := dAtA[iNdEx] 5303 iNdEx++ 5304 stringLen |= uint64(b&0x7F) << shift 5305 if b < 0x80 { 5306 break 5307 } 5308 } 5309 intStringLen := int(stringLen) 5310 if intStringLen < 0 { 5311 return ErrInvalidLengthApplication 5312 } 5313 postIndex := iNdEx + intStringLen 5314 if postIndex < 0 { 5315 return ErrInvalidLengthApplication 5316 } 5317 if postIndex > l { 5318 return io.ErrUnexpectedEOF 5319 } 5320 m.ResourceVersion = string(dAtA[iNdEx:postIndex]) 5321 iNdEx = postIndex 5322 case 5: 5323 if wireType != 2 { 5324 return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) 5325 } 5326 var stringLen uint64 5327 for shift := uint(0); ; shift += 7 { 5328 if shift >= 64 { 5329 return ErrIntOverflowApplication 5330 } 5331 if iNdEx >= l { 5332 return io.ErrUnexpectedEOF 5333 } 5334 b := dAtA[iNdEx] 5335 iNdEx++ 5336 stringLen |= uint64(b&0x7F) << shift 5337 if b < 0x80 { 5338 break 5339 } 5340 } 5341 intStringLen := int(stringLen) 5342 if intStringLen < 0 { 5343 return ErrInvalidLengthApplication 5344 } 5345 postIndex := iNdEx + intStringLen 5346 if postIndex < 0 { 5347 return ErrInvalidLengthApplication 5348 } 5349 if postIndex > l { 5350 return io.ErrUnexpectedEOF 5351 } 5352 m.Selector = string(dAtA[iNdEx:postIndex]) 5353 iNdEx = postIndex 5354 default: 5355 iNdEx = preIndex 5356 skippy, err := skipApplication(dAtA[iNdEx:]) 5357 if err != nil { 5358 return err 5359 } 5360 if skippy < 0 { 5361 return ErrInvalidLengthApplication 5362 } 5363 if (iNdEx + skippy) < 0 { 5364 return ErrInvalidLengthApplication 5365 } 5366 if (iNdEx + skippy) > l { 5367 return io.ErrUnexpectedEOF 5368 } 5369 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5370 iNdEx += skippy 5371 } 5372 } 5373 5374 if iNdEx > l { 5375 return io.ErrUnexpectedEOF 5376 } 5377 return nil 5378 } 5379 func (m *RevisionMetadataQuery) Unmarshal(dAtA []byte) error { 5380 var hasFields [1]uint64 5381 l := len(dAtA) 5382 iNdEx := 0 5383 for iNdEx < l { 5384 preIndex := iNdEx 5385 var wire uint64 5386 for shift := uint(0); ; shift += 7 { 5387 if shift >= 64 { 5388 return ErrIntOverflowApplication 5389 } 5390 if iNdEx >= l { 5391 return io.ErrUnexpectedEOF 5392 } 5393 b := dAtA[iNdEx] 5394 iNdEx++ 5395 wire |= uint64(b&0x7F) << shift 5396 if b < 0x80 { 5397 break 5398 } 5399 } 5400 fieldNum := int32(wire >> 3) 5401 wireType := int(wire & 0x7) 5402 if wireType == 4 { 5403 return fmt.Errorf("proto: RevisionMetadataQuery: wiretype end group for non-group") 5404 } 5405 if fieldNum <= 0 { 5406 return fmt.Errorf("proto: RevisionMetadataQuery: illegal tag %d (wire type %d)", fieldNum, wire) 5407 } 5408 switch fieldNum { 5409 case 1: 5410 if wireType != 2 { 5411 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 5412 } 5413 var stringLen uint64 5414 for shift := uint(0); ; shift += 7 { 5415 if shift >= 64 { 5416 return ErrIntOverflowApplication 5417 } 5418 if iNdEx >= l { 5419 return io.ErrUnexpectedEOF 5420 } 5421 b := dAtA[iNdEx] 5422 iNdEx++ 5423 stringLen |= uint64(b&0x7F) << shift 5424 if b < 0x80 { 5425 break 5426 } 5427 } 5428 intStringLen := int(stringLen) 5429 if intStringLen < 0 { 5430 return ErrInvalidLengthApplication 5431 } 5432 postIndex := iNdEx + intStringLen 5433 if postIndex < 0 { 5434 return ErrInvalidLengthApplication 5435 } 5436 if postIndex > l { 5437 return io.ErrUnexpectedEOF 5438 } 5439 s := string(dAtA[iNdEx:postIndex]) 5440 m.Name = &s 5441 iNdEx = postIndex 5442 hasFields[0] |= uint64(0x00000001) 5443 case 2: 5444 if wireType != 2 { 5445 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) 5446 } 5447 var stringLen uint64 5448 for shift := uint(0); ; shift += 7 { 5449 if shift >= 64 { 5450 return ErrIntOverflowApplication 5451 } 5452 if iNdEx >= l { 5453 return io.ErrUnexpectedEOF 5454 } 5455 b := dAtA[iNdEx] 5456 iNdEx++ 5457 stringLen |= uint64(b&0x7F) << shift 5458 if b < 0x80 { 5459 break 5460 } 5461 } 5462 intStringLen := int(stringLen) 5463 if intStringLen < 0 { 5464 return ErrInvalidLengthApplication 5465 } 5466 postIndex := iNdEx + intStringLen 5467 if postIndex < 0 { 5468 return ErrInvalidLengthApplication 5469 } 5470 if postIndex > l { 5471 return io.ErrUnexpectedEOF 5472 } 5473 s := string(dAtA[iNdEx:postIndex]) 5474 m.Revision = &s 5475 iNdEx = postIndex 5476 hasFields[0] |= uint64(0x00000002) 5477 default: 5478 iNdEx = preIndex 5479 skippy, err := skipApplication(dAtA[iNdEx:]) 5480 if err != nil { 5481 return err 5482 } 5483 if skippy < 0 { 5484 return ErrInvalidLengthApplication 5485 } 5486 if (iNdEx + skippy) < 0 { 5487 return ErrInvalidLengthApplication 5488 } 5489 if (iNdEx + skippy) > l { 5490 return io.ErrUnexpectedEOF 5491 } 5492 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5493 iNdEx += skippy 5494 } 5495 } 5496 if hasFields[0]&uint64(0x00000001) == 0 { 5497 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 5498 } 5499 if hasFields[0]&uint64(0x00000002) == 0 { 5500 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("revision") 5501 } 5502 5503 if iNdEx > l { 5504 return io.ErrUnexpectedEOF 5505 } 5506 return nil 5507 } 5508 func (m *ApplicationResourceEventsQuery) Unmarshal(dAtA []byte) error { 5509 var hasFields [1]uint64 5510 l := len(dAtA) 5511 iNdEx := 0 5512 for iNdEx < l { 5513 preIndex := iNdEx 5514 var wire uint64 5515 for shift := uint(0); ; shift += 7 { 5516 if shift >= 64 { 5517 return ErrIntOverflowApplication 5518 } 5519 if iNdEx >= l { 5520 return io.ErrUnexpectedEOF 5521 } 5522 b := dAtA[iNdEx] 5523 iNdEx++ 5524 wire |= uint64(b&0x7F) << shift 5525 if b < 0x80 { 5526 break 5527 } 5528 } 5529 fieldNum := int32(wire >> 3) 5530 wireType := int(wire & 0x7) 5531 if wireType == 4 { 5532 return fmt.Errorf("proto: ApplicationResourceEventsQuery: wiretype end group for non-group") 5533 } 5534 if fieldNum <= 0 { 5535 return fmt.Errorf("proto: ApplicationResourceEventsQuery: illegal tag %d (wire type %d)", fieldNum, wire) 5536 } 5537 switch fieldNum { 5538 case 1: 5539 if wireType != 2 { 5540 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 5541 } 5542 var stringLen uint64 5543 for shift := uint(0); ; shift += 7 { 5544 if shift >= 64 { 5545 return ErrIntOverflowApplication 5546 } 5547 if iNdEx >= l { 5548 return io.ErrUnexpectedEOF 5549 } 5550 b := dAtA[iNdEx] 5551 iNdEx++ 5552 stringLen |= uint64(b&0x7F) << shift 5553 if b < 0x80 { 5554 break 5555 } 5556 } 5557 intStringLen := int(stringLen) 5558 if intStringLen < 0 { 5559 return ErrInvalidLengthApplication 5560 } 5561 postIndex := iNdEx + intStringLen 5562 if postIndex < 0 { 5563 return ErrInvalidLengthApplication 5564 } 5565 if postIndex > l { 5566 return io.ErrUnexpectedEOF 5567 } 5568 s := string(dAtA[iNdEx:postIndex]) 5569 m.Name = &s 5570 iNdEx = postIndex 5571 hasFields[0] |= uint64(0x00000001) 5572 case 2: 5573 if wireType != 2 { 5574 return fmt.Errorf("proto: wrong wireType = %d for field ResourceNamespace", wireType) 5575 } 5576 var stringLen uint64 5577 for shift := uint(0); ; shift += 7 { 5578 if shift >= 64 { 5579 return ErrIntOverflowApplication 5580 } 5581 if iNdEx >= l { 5582 return io.ErrUnexpectedEOF 5583 } 5584 b := dAtA[iNdEx] 5585 iNdEx++ 5586 stringLen |= uint64(b&0x7F) << shift 5587 if b < 0x80 { 5588 break 5589 } 5590 } 5591 intStringLen := int(stringLen) 5592 if intStringLen < 0 { 5593 return ErrInvalidLengthApplication 5594 } 5595 postIndex := iNdEx + intStringLen 5596 if postIndex < 0 { 5597 return ErrInvalidLengthApplication 5598 } 5599 if postIndex > l { 5600 return io.ErrUnexpectedEOF 5601 } 5602 m.ResourceNamespace = string(dAtA[iNdEx:postIndex]) 5603 iNdEx = postIndex 5604 hasFields[0] |= uint64(0x00000002) 5605 case 3: 5606 if wireType != 2 { 5607 return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) 5608 } 5609 var stringLen uint64 5610 for shift := uint(0); ; shift += 7 { 5611 if shift >= 64 { 5612 return ErrIntOverflowApplication 5613 } 5614 if iNdEx >= l { 5615 return io.ErrUnexpectedEOF 5616 } 5617 b := dAtA[iNdEx] 5618 iNdEx++ 5619 stringLen |= uint64(b&0x7F) << shift 5620 if b < 0x80 { 5621 break 5622 } 5623 } 5624 intStringLen := int(stringLen) 5625 if intStringLen < 0 { 5626 return ErrInvalidLengthApplication 5627 } 5628 postIndex := iNdEx + intStringLen 5629 if postIndex < 0 { 5630 return ErrInvalidLengthApplication 5631 } 5632 if postIndex > l { 5633 return io.ErrUnexpectedEOF 5634 } 5635 m.ResourceName = string(dAtA[iNdEx:postIndex]) 5636 iNdEx = postIndex 5637 hasFields[0] |= uint64(0x00000004) 5638 case 4: 5639 if wireType != 2 { 5640 return fmt.Errorf("proto: wrong wireType = %d for field ResourceUID", wireType) 5641 } 5642 var stringLen uint64 5643 for shift := uint(0); ; shift += 7 { 5644 if shift >= 64 { 5645 return ErrIntOverflowApplication 5646 } 5647 if iNdEx >= l { 5648 return io.ErrUnexpectedEOF 5649 } 5650 b := dAtA[iNdEx] 5651 iNdEx++ 5652 stringLen |= uint64(b&0x7F) << shift 5653 if b < 0x80 { 5654 break 5655 } 5656 } 5657 intStringLen := int(stringLen) 5658 if intStringLen < 0 { 5659 return ErrInvalidLengthApplication 5660 } 5661 postIndex := iNdEx + intStringLen 5662 if postIndex < 0 { 5663 return ErrInvalidLengthApplication 5664 } 5665 if postIndex > l { 5666 return io.ErrUnexpectedEOF 5667 } 5668 m.ResourceUID = string(dAtA[iNdEx:postIndex]) 5669 iNdEx = postIndex 5670 hasFields[0] |= uint64(0x00000008) 5671 default: 5672 iNdEx = preIndex 5673 skippy, err := skipApplication(dAtA[iNdEx:]) 5674 if err != nil { 5675 return err 5676 } 5677 if skippy < 0 { 5678 return ErrInvalidLengthApplication 5679 } 5680 if (iNdEx + skippy) < 0 { 5681 return ErrInvalidLengthApplication 5682 } 5683 if (iNdEx + skippy) > l { 5684 return io.ErrUnexpectedEOF 5685 } 5686 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5687 iNdEx += skippy 5688 } 5689 } 5690 if hasFields[0]&uint64(0x00000001) == 0 { 5691 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 5692 } 5693 if hasFields[0]&uint64(0x00000002) == 0 { 5694 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("resourceNamespace") 5695 } 5696 if hasFields[0]&uint64(0x00000004) == 0 { 5697 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("resourceName") 5698 } 5699 if hasFields[0]&uint64(0x00000008) == 0 { 5700 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("resourceUID") 5701 } 5702 5703 if iNdEx > l { 5704 return io.ErrUnexpectedEOF 5705 } 5706 return nil 5707 } 5708 func (m *ApplicationManifestQuery) Unmarshal(dAtA []byte) error { 5709 var hasFields [1]uint64 5710 l := len(dAtA) 5711 iNdEx := 0 5712 for iNdEx < l { 5713 preIndex := iNdEx 5714 var wire uint64 5715 for shift := uint(0); ; shift += 7 { 5716 if shift >= 64 { 5717 return ErrIntOverflowApplication 5718 } 5719 if iNdEx >= l { 5720 return io.ErrUnexpectedEOF 5721 } 5722 b := dAtA[iNdEx] 5723 iNdEx++ 5724 wire |= uint64(b&0x7F) << shift 5725 if b < 0x80 { 5726 break 5727 } 5728 } 5729 fieldNum := int32(wire >> 3) 5730 wireType := int(wire & 0x7) 5731 if wireType == 4 { 5732 return fmt.Errorf("proto: ApplicationManifestQuery: wiretype end group for non-group") 5733 } 5734 if fieldNum <= 0 { 5735 return fmt.Errorf("proto: ApplicationManifestQuery: illegal tag %d (wire type %d)", fieldNum, wire) 5736 } 5737 switch fieldNum { 5738 case 1: 5739 if wireType != 2 { 5740 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 5741 } 5742 var stringLen uint64 5743 for shift := uint(0); ; shift += 7 { 5744 if shift >= 64 { 5745 return ErrIntOverflowApplication 5746 } 5747 if iNdEx >= l { 5748 return io.ErrUnexpectedEOF 5749 } 5750 b := dAtA[iNdEx] 5751 iNdEx++ 5752 stringLen |= uint64(b&0x7F) << shift 5753 if b < 0x80 { 5754 break 5755 } 5756 } 5757 intStringLen := int(stringLen) 5758 if intStringLen < 0 { 5759 return ErrInvalidLengthApplication 5760 } 5761 postIndex := iNdEx + intStringLen 5762 if postIndex < 0 { 5763 return ErrInvalidLengthApplication 5764 } 5765 if postIndex > l { 5766 return io.ErrUnexpectedEOF 5767 } 5768 s := string(dAtA[iNdEx:postIndex]) 5769 m.Name = &s 5770 iNdEx = postIndex 5771 hasFields[0] |= uint64(0x00000001) 5772 case 2: 5773 if wireType != 2 { 5774 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) 5775 } 5776 var stringLen uint64 5777 for shift := uint(0); ; shift += 7 { 5778 if shift >= 64 { 5779 return ErrIntOverflowApplication 5780 } 5781 if iNdEx >= l { 5782 return io.ErrUnexpectedEOF 5783 } 5784 b := dAtA[iNdEx] 5785 iNdEx++ 5786 stringLen |= uint64(b&0x7F) << shift 5787 if b < 0x80 { 5788 break 5789 } 5790 } 5791 intStringLen := int(stringLen) 5792 if intStringLen < 0 { 5793 return ErrInvalidLengthApplication 5794 } 5795 postIndex := iNdEx + intStringLen 5796 if postIndex < 0 { 5797 return ErrInvalidLengthApplication 5798 } 5799 if postIndex > l { 5800 return io.ErrUnexpectedEOF 5801 } 5802 m.Revision = string(dAtA[iNdEx:postIndex]) 5803 iNdEx = postIndex 5804 default: 5805 iNdEx = preIndex 5806 skippy, err := skipApplication(dAtA[iNdEx:]) 5807 if err != nil { 5808 return err 5809 } 5810 if skippy < 0 { 5811 return ErrInvalidLengthApplication 5812 } 5813 if (iNdEx + skippy) < 0 { 5814 return ErrInvalidLengthApplication 5815 } 5816 if (iNdEx + skippy) > l { 5817 return io.ErrUnexpectedEOF 5818 } 5819 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5820 iNdEx += skippy 5821 } 5822 } 5823 if hasFields[0]&uint64(0x00000001) == 0 { 5824 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 5825 } 5826 5827 if iNdEx > l { 5828 return io.ErrUnexpectedEOF 5829 } 5830 return nil 5831 } 5832 func (m *ApplicationResponse) Unmarshal(dAtA []byte) error { 5833 l := len(dAtA) 5834 iNdEx := 0 5835 for iNdEx < l { 5836 preIndex := iNdEx 5837 var wire uint64 5838 for shift := uint(0); ; shift += 7 { 5839 if shift >= 64 { 5840 return ErrIntOverflowApplication 5841 } 5842 if iNdEx >= l { 5843 return io.ErrUnexpectedEOF 5844 } 5845 b := dAtA[iNdEx] 5846 iNdEx++ 5847 wire |= uint64(b&0x7F) << shift 5848 if b < 0x80 { 5849 break 5850 } 5851 } 5852 fieldNum := int32(wire >> 3) 5853 wireType := int(wire & 0x7) 5854 if wireType == 4 { 5855 return fmt.Errorf("proto: ApplicationResponse: wiretype end group for non-group") 5856 } 5857 if fieldNum <= 0 { 5858 return fmt.Errorf("proto: ApplicationResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5859 } 5860 switch fieldNum { 5861 default: 5862 iNdEx = preIndex 5863 skippy, err := skipApplication(dAtA[iNdEx:]) 5864 if err != nil { 5865 return err 5866 } 5867 if skippy < 0 { 5868 return ErrInvalidLengthApplication 5869 } 5870 if (iNdEx + skippy) < 0 { 5871 return ErrInvalidLengthApplication 5872 } 5873 if (iNdEx + skippy) > l { 5874 return io.ErrUnexpectedEOF 5875 } 5876 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5877 iNdEx += skippy 5878 } 5879 } 5880 5881 if iNdEx > l { 5882 return io.ErrUnexpectedEOF 5883 } 5884 return nil 5885 } 5886 func (m *ApplicationCreateRequest) Unmarshal(dAtA []byte) error { 5887 var hasFields [1]uint64 5888 l := len(dAtA) 5889 iNdEx := 0 5890 for iNdEx < l { 5891 preIndex := iNdEx 5892 var wire uint64 5893 for shift := uint(0); ; shift += 7 { 5894 if shift >= 64 { 5895 return ErrIntOverflowApplication 5896 } 5897 if iNdEx >= l { 5898 return io.ErrUnexpectedEOF 5899 } 5900 b := dAtA[iNdEx] 5901 iNdEx++ 5902 wire |= uint64(b&0x7F) << shift 5903 if b < 0x80 { 5904 break 5905 } 5906 } 5907 fieldNum := int32(wire >> 3) 5908 wireType := int(wire & 0x7) 5909 if wireType == 4 { 5910 return fmt.Errorf("proto: ApplicationCreateRequest: wiretype end group for non-group") 5911 } 5912 if fieldNum <= 0 { 5913 return fmt.Errorf("proto: ApplicationCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5914 } 5915 switch fieldNum { 5916 case 1: 5917 if wireType != 2 { 5918 return fmt.Errorf("proto: wrong wireType = %d for field Application", wireType) 5919 } 5920 var msglen int 5921 for shift := uint(0); ; shift += 7 { 5922 if shift >= 64 { 5923 return ErrIntOverflowApplication 5924 } 5925 if iNdEx >= l { 5926 return io.ErrUnexpectedEOF 5927 } 5928 b := dAtA[iNdEx] 5929 iNdEx++ 5930 msglen |= int(b&0x7F) << shift 5931 if b < 0x80 { 5932 break 5933 } 5934 } 5935 if msglen < 0 { 5936 return ErrInvalidLengthApplication 5937 } 5938 postIndex := iNdEx + msglen 5939 if postIndex < 0 { 5940 return ErrInvalidLengthApplication 5941 } 5942 if postIndex > l { 5943 return io.ErrUnexpectedEOF 5944 } 5945 if err := m.Application.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5946 return err 5947 } 5948 iNdEx = postIndex 5949 hasFields[0] |= uint64(0x00000001) 5950 case 2: 5951 if wireType != 0 { 5952 return fmt.Errorf("proto: wrong wireType = %d for field Upsert", wireType) 5953 } 5954 var v int 5955 for shift := uint(0); ; shift += 7 { 5956 if shift >= 64 { 5957 return ErrIntOverflowApplication 5958 } 5959 if iNdEx >= l { 5960 return io.ErrUnexpectedEOF 5961 } 5962 b := dAtA[iNdEx] 5963 iNdEx++ 5964 v |= int(b&0x7F) << shift 5965 if b < 0x80 { 5966 break 5967 } 5968 } 5969 b := bool(v != 0) 5970 m.Upsert = &b 5971 case 3: 5972 if wireType != 0 { 5973 return fmt.Errorf("proto: wrong wireType = %d for field Validate", wireType) 5974 } 5975 var v int 5976 for shift := uint(0); ; shift += 7 { 5977 if shift >= 64 { 5978 return ErrIntOverflowApplication 5979 } 5980 if iNdEx >= l { 5981 return io.ErrUnexpectedEOF 5982 } 5983 b := dAtA[iNdEx] 5984 iNdEx++ 5985 v |= int(b&0x7F) << shift 5986 if b < 0x80 { 5987 break 5988 } 5989 } 5990 b := bool(v != 0) 5991 m.Validate = &b 5992 default: 5993 iNdEx = preIndex 5994 skippy, err := skipApplication(dAtA[iNdEx:]) 5995 if err != nil { 5996 return err 5997 } 5998 if skippy < 0 { 5999 return ErrInvalidLengthApplication 6000 } 6001 if (iNdEx + skippy) < 0 { 6002 return ErrInvalidLengthApplication 6003 } 6004 if (iNdEx + skippy) > l { 6005 return io.ErrUnexpectedEOF 6006 } 6007 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6008 iNdEx += skippy 6009 } 6010 } 6011 if hasFields[0]&uint64(0x00000001) == 0 { 6012 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("application") 6013 } 6014 6015 if iNdEx > l { 6016 return io.ErrUnexpectedEOF 6017 } 6018 return nil 6019 } 6020 func (m *ApplicationUpdateRequest) Unmarshal(dAtA []byte) error { 6021 var hasFields [1]uint64 6022 l := len(dAtA) 6023 iNdEx := 0 6024 for iNdEx < l { 6025 preIndex := iNdEx 6026 var wire uint64 6027 for shift := uint(0); ; shift += 7 { 6028 if shift >= 64 { 6029 return ErrIntOverflowApplication 6030 } 6031 if iNdEx >= l { 6032 return io.ErrUnexpectedEOF 6033 } 6034 b := dAtA[iNdEx] 6035 iNdEx++ 6036 wire |= uint64(b&0x7F) << shift 6037 if b < 0x80 { 6038 break 6039 } 6040 } 6041 fieldNum := int32(wire >> 3) 6042 wireType := int(wire & 0x7) 6043 if wireType == 4 { 6044 return fmt.Errorf("proto: ApplicationUpdateRequest: wiretype end group for non-group") 6045 } 6046 if fieldNum <= 0 { 6047 return fmt.Errorf("proto: ApplicationUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6048 } 6049 switch fieldNum { 6050 case 1: 6051 if wireType != 2 { 6052 return fmt.Errorf("proto: wrong wireType = %d for field Application", wireType) 6053 } 6054 var msglen int 6055 for shift := uint(0); ; shift += 7 { 6056 if shift >= 64 { 6057 return ErrIntOverflowApplication 6058 } 6059 if iNdEx >= l { 6060 return io.ErrUnexpectedEOF 6061 } 6062 b := dAtA[iNdEx] 6063 iNdEx++ 6064 msglen |= int(b&0x7F) << shift 6065 if b < 0x80 { 6066 break 6067 } 6068 } 6069 if msglen < 0 { 6070 return ErrInvalidLengthApplication 6071 } 6072 postIndex := iNdEx + msglen 6073 if postIndex < 0 { 6074 return ErrInvalidLengthApplication 6075 } 6076 if postIndex > l { 6077 return io.ErrUnexpectedEOF 6078 } 6079 if m.Application == nil { 6080 m.Application = &v1alpha1.Application{} 6081 } 6082 if err := m.Application.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6083 return err 6084 } 6085 iNdEx = postIndex 6086 hasFields[0] |= uint64(0x00000001) 6087 case 2: 6088 if wireType != 0 { 6089 return fmt.Errorf("proto: wrong wireType = %d for field Validate", wireType) 6090 } 6091 var v int 6092 for shift := uint(0); ; shift += 7 { 6093 if shift >= 64 { 6094 return ErrIntOverflowApplication 6095 } 6096 if iNdEx >= l { 6097 return io.ErrUnexpectedEOF 6098 } 6099 b := dAtA[iNdEx] 6100 iNdEx++ 6101 v |= int(b&0x7F) << shift 6102 if b < 0x80 { 6103 break 6104 } 6105 } 6106 b := bool(v != 0) 6107 m.Validate = &b 6108 default: 6109 iNdEx = preIndex 6110 skippy, err := skipApplication(dAtA[iNdEx:]) 6111 if err != nil { 6112 return err 6113 } 6114 if skippy < 0 { 6115 return ErrInvalidLengthApplication 6116 } 6117 if (iNdEx + skippy) < 0 { 6118 return ErrInvalidLengthApplication 6119 } 6120 if (iNdEx + skippy) > l { 6121 return io.ErrUnexpectedEOF 6122 } 6123 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6124 iNdEx += skippy 6125 } 6126 } 6127 if hasFields[0]&uint64(0x00000001) == 0 { 6128 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("application") 6129 } 6130 6131 if iNdEx > l { 6132 return io.ErrUnexpectedEOF 6133 } 6134 return nil 6135 } 6136 func (m *ApplicationDeleteRequest) Unmarshal(dAtA []byte) error { 6137 var hasFields [1]uint64 6138 l := len(dAtA) 6139 iNdEx := 0 6140 for iNdEx < l { 6141 preIndex := iNdEx 6142 var wire uint64 6143 for shift := uint(0); ; shift += 7 { 6144 if shift >= 64 { 6145 return ErrIntOverflowApplication 6146 } 6147 if iNdEx >= l { 6148 return io.ErrUnexpectedEOF 6149 } 6150 b := dAtA[iNdEx] 6151 iNdEx++ 6152 wire |= uint64(b&0x7F) << shift 6153 if b < 0x80 { 6154 break 6155 } 6156 } 6157 fieldNum := int32(wire >> 3) 6158 wireType := int(wire & 0x7) 6159 if wireType == 4 { 6160 return fmt.Errorf("proto: ApplicationDeleteRequest: wiretype end group for non-group") 6161 } 6162 if fieldNum <= 0 { 6163 return fmt.Errorf("proto: ApplicationDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6164 } 6165 switch fieldNum { 6166 case 1: 6167 if wireType != 2 { 6168 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 6169 } 6170 var stringLen uint64 6171 for shift := uint(0); ; shift += 7 { 6172 if shift >= 64 { 6173 return ErrIntOverflowApplication 6174 } 6175 if iNdEx >= l { 6176 return io.ErrUnexpectedEOF 6177 } 6178 b := dAtA[iNdEx] 6179 iNdEx++ 6180 stringLen |= uint64(b&0x7F) << shift 6181 if b < 0x80 { 6182 break 6183 } 6184 } 6185 intStringLen := int(stringLen) 6186 if intStringLen < 0 { 6187 return ErrInvalidLengthApplication 6188 } 6189 postIndex := iNdEx + intStringLen 6190 if postIndex < 0 { 6191 return ErrInvalidLengthApplication 6192 } 6193 if postIndex > l { 6194 return io.ErrUnexpectedEOF 6195 } 6196 s := string(dAtA[iNdEx:postIndex]) 6197 m.Name = &s 6198 iNdEx = postIndex 6199 hasFields[0] |= uint64(0x00000001) 6200 case 2: 6201 if wireType != 0 { 6202 return fmt.Errorf("proto: wrong wireType = %d for field Cascade", wireType) 6203 } 6204 var v int 6205 for shift := uint(0); ; shift += 7 { 6206 if shift >= 64 { 6207 return ErrIntOverflowApplication 6208 } 6209 if iNdEx >= l { 6210 return io.ErrUnexpectedEOF 6211 } 6212 b := dAtA[iNdEx] 6213 iNdEx++ 6214 v |= int(b&0x7F) << shift 6215 if b < 0x80 { 6216 break 6217 } 6218 } 6219 b := bool(v != 0) 6220 m.Cascade = &b 6221 default: 6222 iNdEx = preIndex 6223 skippy, err := skipApplication(dAtA[iNdEx:]) 6224 if err != nil { 6225 return err 6226 } 6227 if skippy < 0 { 6228 return ErrInvalidLengthApplication 6229 } 6230 if (iNdEx + skippy) < 0 { 6231 return ErrInvalidLengthApplication 6232 } 6233 if (iNdEx + skippy) > l { 6234 return io.ErrUnexpectedEOF 6235 } 6236 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6237 iNdEx += skippy 6238 } 6239 } 6240 if hasFields[0]&uint64(0x00000001) == 0 { 6241 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 6242 } 6243 6244 if iNdEx > l { 6245 return io.ErrUnexpectedEOF 6246 } 6247 return nil 6248 } 6249 func (m *ApplicationSyncRequest) Unmarshal(dAtA []byte) error { 6250 var hasFields [1]uint64 6251 l := len(dAtA) 6252 iNdEx := 0 6253 for iNdEx < l { 6254 preIndex := iNdEx 6255 var wire uint64 6256 for shift := uint(0); ; shift += 7 { 6257 if shift >= 64 { 6258 return ErrIntOverflowApplication 6259 } 6260 if iNdEx >= l { 6261 return io.ErrUnexpectedEOF 6262 } 6263 b := dAtA[iNdEx] 6264 iNdEx++ 6265 wire |= uint64(b&0x7F) << shift 6266 if b < 0x80 { 6267 break 6268 } 6269 } 6270 fieldNum := int32(wire >> 3) 6271 wireType := int(wire & 0x7) 6272 if wireType == 4 { 6273 return fmt.Errorf("proto: ApplicationSyncRequest: wiretype end group for non-group") 6274 } 6275 if fieldNum <= 0 { 6276 return fmt.Errorf("proto: ApplicationSyncRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6277 } 6278 switch fieldNum { 6279 case 1: 6280 if wireType != 2 { 6281 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 6282 } 6283 var stringLen uint64 6284 for shift := uint(0); ; shift += 7 { 6285 if shift >= 64 { 6286 return ErrIntOverflowApplication 6287 } 6288 if iNdEx >= l { 6289 return io.ErrUnexpectedEOF 6290 } 6291 b := dAtA[iNdEx] 6292 iNdEx++ 6293 stringLen |= uint64(b&0x7F) << shift 6294 if b < 0x80 { 6295 break 6296 } 6297 } 6298 intStringLen := int(stringLen) 6299 if intStringLen < 0 { 6300 return ErrInvalidLengthApplication 6301 } 6302 postIndex := iNdEx + intStringLen 6303 if postIndex < 0 { 6304 return ErrInvalidLengthApplication 6305 } 6306 if postIndex > l { 6307 return io.ErrUnexpectedEOF 6308 } 6309 s := string(dAtA[iNdEx:postIndex]) 6310 m.Name = &s 6311 iNdEx = postIndex 6312 hasFields[0] |= uint64(0x00000001) 6313 case 2: 6314 if wireType != 2 { 6315 return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) 6316 } 6317 var stringLen uint64 6318 for shift := uint(0); ; shift += 7 { 6319 if shift >= 64 { 6320 return ErrIntOverflowApplication 6321 } 6322 if iNdEx >= l { 6323 return io.ErrUnexpectedEOF 6324 } 6325 b := dAtA[iNdEx] 6326 iNdEx++ 6327 stringLen |= uint64(b&0x7F) << shift 6328 if b < 0x80 { 6329 break 6330 } 6331 } 6332 intStringLen := int(stringLen) 6333 if intStringLen < 0 { 6334 return ErrInvalidLengthApplication 6335 } 6336 postIndex := iNdEx + intStringLen 6337 if postIndex < 0 { 6338 return ErrInvalidLengthApplication 6339 } 6340 if postIndex > l { 6341 return io.ErrUnexpectedEOF 6342 } 6343 m.Revision = string(dAtA[iNdEx:postIndex]) 6344 iNdEx = postIndex 6345 case 3: 6346 if wireType != 0 { 6347 return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) 6348 } 6349 var v int 6350 for shift := uint(0); ; shift += 7 { 6351 if shift >= 64 { 6352 return ErrIntOverflowApplication 6353 } 6354 if iNdEx >= l { 6355 return io.ErrUnexpectedEOF 6356 } 6357 b := dAtA[iNdEx] 6358 iNdEx++ 6359 v |= int(b&0x7F) << shift 6360 if b < 0x80 { 6361 break 6362 } 6363 } 6364 m.DryRun = bool(v != 0) 6365 case 4: 6366 if wireType != 0 { 6367 return fmt.Errorf("proto: wrong wireType = %d for field Prune", wireType) 6368 } 6369 var v int 6370 for shift := uint(0); ; shift += 7 { 6371 if shift >= 64 { 6372 return ErrIntOverflowApplication 6373 } 6374 if iNdEx >= l { 6375 return io.ErrUnexpectedEOF 6376 } 6377 b := dAtA[iNdEx] 6378 iNdEx++ 6379 v |= int(b&0x7F) << shift 6380 if b < 0x80 { 6381 break 6382 } 6383 } 6384 m.Prune = bool(v != 0) 6385 case 5: 6386 if wireType != 2 { 6387 return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) 6388 } 6389 var msglen int 6390 for shift := uint(0); ; shift += 7 { 6391 if shift >= 64 { 6392 return ErrIntOverflowApplication 6393 } 6394 if iNdEx >= l { 6395 return io.ErrUnexpectedEOF 6396 } 6397 b := dAtA[iNdEx] 6398 iNdEx++ 6399 msglen |= int(b&0x7F) << shift 6400 if b < 0x80 { 6401 break 6402 } 6403 } 6404 if msglen < 0 { 6405 return ErrInvalidLengthApplication 6406 } 6407 postIndex := iNdEx + msglen 6408 if postIndex < 0 { 6409 return ErrInvalidLengthApplication 6410 } 6411 if postIndex > l { 6412 return io.ErrUnexpectedEOF 6413 } 6414 if m.Strategy == nil { 6415 m.Strategy = &v1alpha1.SyncStrategy{} 6416 } 6417 if err := m.Strategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6418 return err 6419 } 6420 iNdEx = postIndex 6421 case 7: 6422 if wireType != 2 { 6423 return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) 6424 } 6425 var msglen int 6426 for shift := uint(0); ; shift += 7 { 6427 if shift >= 64 { 6428 return ErrIntOverflowApplication 6429 } 6430 if iNdEx >= l { 6431 return io.ErrUnexpectedEOF 6432 } 6433 b := dAtA[iNdEx] 6434 iNdEx++ 6435 msglen |= int(b&0x7F) << shift 6436 if b < 0x80 { 6437 break 6438 } 6439 } 6440 if msglen < 0 { 6441 return ErrInvalidLengthApplication 6442 } 6443 postIndex := iNdEx + msglen 6444 if postIndex < 0 { 6445 return ErrInvalidLengthApplication 6446 } 6447 if postIndex > l { 6448 return io.ErrUnexpectedEOF 6449 } 6450 m.Resources = append(m.Resources, v1alpha1.SyncOperationResource{}) 6451 if err := m.Resources[len(m.Resources)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6452 return err 6453 } 6454 iNdEx = postIndex 6455 case 8: 6456 if wireType != 2 { 6457 return fmt.Errorf("proto: wrong wireType = %d for field Manifests", wireType) 6458 } 6459 var stringLen uint64 6460 for shift := uint(0); ; shift += 7 { 6461 if shift >= 64 { 6462 return ErrIntOverflowApplication 6463 } 6464 if iNdEx >= l { 6465 return io.ErrUnexpectedEOF 6466 } 6467 b := dAtA[iNdEx] 6468 iNdEx++ 6469 stringLen |= uint64(b&0x7F) << shift 6470 if b < 0x80 { 6471 break 6472 } 6473 } 6474 intStringLen := int(stringLen) 6475 if intStringLen < 0 { 6476 return ErrInvalidLengthApplication 6477 } 6478 postIndex := iNdEx + intStringLen 6479 if postIndex < 0 { 6480 return ErrInvalidLengthApplication 6481 } 6482 if postIndex > l { 6483 return io.ErrUnexpectedEOF 6484 } 6485 m.Manifests = append(m.Manifests, string(dAtA[iNdEx:postIndex])) 6486 iNdEx = postIndex 6487 case 9: 6488 if wireType != 2 { 6489 return fmt.Errorf("proto: wrong wireType = %d for field Infos", wireType) 6490 } 6491 var msglen int 6492 for shift := uint(0); ; shift += 7 { 6493 if shift >= 64 { 6494 return ErrIntOverflowApplication 6495 } 6496 if iNdEx >= l { 6497 return io.ErrUnexpectedEOF 6498 } 6499 b := dAtA[iNdEx] 6500 iNdEx++ 6501 msglen |= int(b&0x7F) << shift 6502 if b < 0x80 { 6503 break 6504 } 6505 } 6506 if msglen < 0 { 6507 return ErrInvalidLengthApplication 6508 } 6509 postIndex := iNdEx + msglen 6510 if postIndex < 0 { 6511 return ErrInvalidLengthApplication 6512 } 6513 if postIndex > l { 6514 return io.ErrUnexpectedEOF 6515 } 6516 m.Infos = append(m.Infos, &v1alpha1.Info{}) 6517 if err := m.Infos[len(m.Infos)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6518 return err 6519 } 6520 iNdEx = postIndex 6521 case 10: 6522 if wireType != 2 { 6523 return fmt.Errorf("proto: wrong wireType = %d for field RetryStrategy", wireType) 6524 } 6525 var msglen int 6526 for shift := uint(0); ; shift += 7 { 6527 if shift >= 64 { 6528 return ErrIntOverflowApplication 6529 } 6530 if iNdEx >= l { 6531 return io.ErrUnexpectedEOF 6532 } 6533 b := dAtA[iNdEx] 6534 iNdEx++ 6535 msglen |= int(b&0x7F) << shift 6536 if b < 0x80 { 6537 break 6538 } 6539 } 6540 if msglen < 0 { 6541 return ErrInvalidLengthApplication 6542 } 6543 postIndex := iNdEx + msglen 6544 if postIndex < 0 { 6545 return ErrInvalidLengthApplication 6546 } 6547 if postIndex > l { 6548 return io.ErrUnexpectedEOF 6549 } 6550 if m.RetryStrategy == nil { 6551 m.RetryStrategy = &v1alpha1.RetryStrategy{} 6552 } 6553 if err := m.RetryStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6554 return err 6555 } 6556 iNdEx = postIndex 6557 default: 6558 iNdEx = preIndex 6559 skippy, err := skipApplication(dAtA[iNdEx:]) 6560 if err != nil { 6561 return err 6562 } 6563 if skippy < 0 { 6564 return ErrInvalidLengthApplication 6565 } 6566 if (iNdEx + skippy) < 0 { 6567 return ErrInvalidLengthApplication 6568 } 6569 if (iNdEx + skippy) > l { 6570 return io.ErrUnexpectedEOF 6571 } 6572 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6573 iNdEx += skippy 6574 } 6575 } 6576 if hasFields[0]&uint64(0x00000001) == 0 { 6577 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 6578 } 6579 6580 if iNdEx > l { 6581 return io.ErrUnexpectedEOF 6582 } 6583 return nil 6584 } 6585 func (m *ApplicationUpdateSpecRequest) Unmarshal(dAtA []byte) error { 6586 var hasFields [1]uint64 6587 l := len(dAtA) 6588 iNdEx := 0 6589 for iNdEx < l { 6590 preIndex := iNdEx 6591 var wire uint64 6592 for shift := uint(0); ; shift += 7 { 6593 if shift >= 64 { 6594 return ErrIntOverflowApplication 6595 } 6596 if iNdEx >= l { 6597 return io.ErrUnexpectedEOF 6598 } 6599 b := dAtA[iNdEx] 6600 iNdEx++ 6601 wire |= uint64(b&0x7F) << shift 6602 if b < 0x80 { 6603 break 6604 } 6605 } 6606 fieldNum := int32(wire >> 3) 6607 wireType := int(wire & 0x7) 6608 if wireType == 4 { 6609 return fmt.Errorf("proto: ApplicationUpdateSpecRequest: wiretype end group for non-group") 6610 } 6611 if fieldNum <= 0 { 6612 return fmt.Errorf("proto: ApplicationUpdateSpecRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6613 } 6614 switch fieldNum { 6615 case 1: 6616 if wireType != 2 { 6617 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 6618 } 6619 var stringLen uint64 6620 for shift := uint(0); ; shift += 7 { 6621 if shift >= 64 { 6622 return ErrIntOverflowApplication 6623 } 6624 if iNdEx >= l { 6625 return io.ErrUnexpectedEOF 6626 } 6627 b := dAtA[iNdEx] 6628 iNdEx++ 6629 stringLen |= uint64(b&0x7F) << shift 6630 if b < 0x80 { 6631 break 6632 } 6633 } 6634 intStringLen := int(stringLen) 6635 if intStringLen < 0 { 6636 return ErrInvalidLengthApplication 6637 } 6638 postIndex := iNdEx + intStringLen 6639 if postIndex < 0 { 6640 return ErrInvalidLengthApplication 6641 } 6642 if postIndex > l { 6643 return io.ErrUnexpectedEOF 6644 } 6645 s := string(dAtA[iNdEx:postIndex]) 6646 m.Name = &s 6647 iNdEx = postIndex 6648 hasFields[0] |= uint64(0x00000001) 6649 case 2: 6650 if wireType != 2 { 6651 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) 6652 } 6653 var msglen int 6654 for shift := uint(0); ; shift += 7 { 6655 if shift >= 64 { 6656 return ErrIntOverflowApplication 6657 } 6658 if iNdEx >= l { 6659 return io.ErrUnexpectedEOF 6660 } 6661 b := dAtA[iNdEx] 6662 iNdEx++ 6663 msglen |= int(b&0x7F) << shift 6664 if b < 0x80 { 6665 break 6666 } 6667 } 6668 if msglen < 0 { 6669 return ErrInvalidLengthApplication 6670 } 6671 postIndex := iNdEx + msglen 6672 if postIndex < 0 { 6673 return ErrInvalidLengthApplication 6674 } 6675 if postIndex > l { 6676 return io.ErrUnexpectedEOF 6677 } 6678 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6679 return err 6680 } 6681 iNdEx = postIndex 6682 hasFields[0] |= uint64(0x00000002) 6683 case 3: 6684 if wireType != 0 { 6685 return fmt.Errorf("proto: wrong wireType = %d for field Validate", wireType) 6686 } 6687 var v int 6688 for shift := uint(0); ; shift += 7 { 6689 if shift >= 64 { 6690 return ErrIntOverflowApplication 6691 } 6692 if iNdEx >= l { 6693 return io.ErrUnexpectedEOF 6694 } 6695 b := dAtA[iNdEx] 6696 iNdEx++ 6697 v |= int(b&0x7F) << shift 6698 if b < 0x80 { 6699 break 6700 } 6701 } 6702 b := bool(v != 0) 6703 m.Validate = &b 6704 default: 6705 iNdEx = preIndex 6706 skippy, err := skipApplication(dAtA[iNdEx:]) 6707 if err != nil { 6708 return err 6709 } 6710 if skippy < 0 { 6711 return ErrInvalidLengthApplication 6712 } 6713 if (iNdEx + skippy) < 0 { 6714 return ErrInvalidLengthApplication 6715 } 6716 if (iNdEx + skippy) > l { 6717 return io.ErrUnexpectedEOF 6718 } 6719 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6720 iNdEx += skippy 6721 } 6722 } 6723 if hasFields[0]&uint64(0x00000001) == 0 { 6724 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 6725 } 6726 if hasFields[0]&uint64(0x00000002) == 0 { 6727 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("spec") 6728 } 6729 6730 if iNdEx > l { 6731 return io.ErrUnexpectedEOF 6732 } 6733 return nil 6734 } 6735 func (m *ApplicationPatchRequest) Unmarshal(dAtA []byte) error { 6736 var hasFields [1]uint64 6737 l := len(dAtA) 6738 iNdEx := 0 6739 for iNdEx < l { 6740 preIndex := iNdEx 6741 var wire uint64 6742 for shift := uint(0); ; shift += 7 { 6743 if shift >= 64 { 6744 return ErrIntOverflowApplication 6745 } 6746 if iNdEx >= l { 6747 return io.ErrUnexpectedEOF 6748 } 6749 b := dAtA[iNdEx] 6750 iNdEx++ 6751 wire |= uint64(b&0x7F) << shift 6752 if b < 0x80 { 6753 break 6754 } 6755 } 6756 fieldNum := int32(wire >> 3) 6757 wireType := int(wire & 0x7) 6758 if wireType == 4 { 6759 return fmt.Errorf("proto: ApplicationPatchRequest: wiretype end group for non-group") 6760 } 6761 if fieldNum <= 0 { 6762 return fmt.Errorf("proto: ApplicationPatchRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6763 } 6764 switch fieldNum { 6765 case 1: 6766 if wireType != 2 { 6767 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 6768 } 6769 var stringLen uint64 6770 for shift := uint(0); ; shift += 7 { 6771 if shift >= 64 { 6772 return ErrIntOverflowApplication 6773 } 6774 if iNdEx >= l { 6775 return io.ErrUnexpectedEOF 6776 } 6777 b := dAtA[iNdEx] 6778 iNdEx++ 6779 stringLen |= uint64(b&0x7F) << shift 6780 if b < 0x80 { 6781 break 6782 } 6783 } 6784 intStringLen := int(stringLen) 6785 if intStringLen < 0 { 6786 return ErrInvalidLengthApplication 6787 } 6788 postIndex := iNdEx + intStringLen 6789 if postIndex < 0 { 6790 return ErrInvalidLengthApplication 6791 } 6792 if postIndex > l { 6793 return io.ErrUnexpectedEOF 6794 } 6795 s := string(dAtA[iNdEx:postIndex]) 6796 m.Name = &s 6797 iNdEx = postIndex 6798 hasFields[0] |= uint64(0x00000001) 6799 case 2: 6800 if wireType != 2 { 6801 return fmt.Errorf("proto: wrong wireType = %d for field Patch", wireType) 6802 } 6803 var stringLen uint64 6804 for shift := uint(0); ; shift += 7 { 6805 if shift >= 64 { 6806 return ErrIntOverflowApplication 6807 } 6808 if iNdEx >= l { 6809 return io.ErrUnexpectedEOF 6810 } 6811 b := dAtA[iNdEx] 6812 iNdEx++ 6813 stringLen |= uint64(b&0x7F) << shift 6814 if b < 0x80 { 6815 break 6816 } 6817 } 6818 intStringLen := int(stringLen) 6819 if intStringLen < 0 { 6820 return ErrInvalidLengthApplication 6821 } 6822 postIndex := iNdEx + intStringLen 6823 if postIndex < 0 { 6824 return ErrInvalidLengthApplication 6825 } 6826 if postIndex > l { 6827 return io.ErrUnexpectedEOF 6828 } 6829 m.Patch = string(dAtA[iNdEx:postIndex]) 6830 iNdEx = postIndex 6831 hasFields[0] |= uint64(0x00000002) 6832 case 3: 6833 if wireType != 2 { 6834 return fmt.Errorf("proto: wrong wireType = %d for field PatchType", wireType) 6835 } 6836 var stringLen uint64 6837 for shift := uint(0); ; shift += 7 { 6838 if shift >= 64 { 6839 return ErrIntOverflowApplication 6840 } 6841 if iNdEx >= l { 6842 return io.ErrUnexpectedEOF 6843 } 6844 b := dAtA[iNdEx] 6845 iNdEx++ 6846 stringLen |= uint64(b&0x7F) << shift 6847 if b < 0x80 { 6848 break 6849 } 6850 } 6851 intStringLen := int(stringLen) 6852 if intStringLen < 0 { 6853 return ErrInvalidLengthApplication 6854 } 6855 postIndex := iNdEx + intStringLen 6856 if postIndex < 0 { 6857 return ErrInvalidLengthApplication 6858 } 6859 if postIndex > l { 6860 return io.ErrUnexpectedEOF 6861 } 6862 m.PatchType = string(dAtA[iNdEx:postIndex]) 6863 iNdEx = postIndex 6864 hasFields[0] |= uint64(0x00000004) 6865 default: 6866 iNdEx = preIndex 6867 skippy, err := skipApplication(dAtA[iNdEx:]) 6868 if err != nil { 6869 return err 6870 } 6871 if skippy < 0 { 6872 return ErrInvalidLengthApplication 6873 } 6874 if (iNdEx + skippy) < 0 { 6875 return ErrInvalidLengthApplication 6876 } 6877 if (iNdEx + skippy) > l { 6878 return io.ErrUnexpectedEOF 6879 } 6880 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6881 iNdEx += skippy 6882 } 6883 } 6884 if hasFields[0]&uint64(0x00000001) == 0 { 6885 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 6886 } 6887 if hasFields[0]&uint64(0x00000002) == 0 { 6888 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("patch") 6889 } 6890 if hasFields[0]&uint64(0x00000004) == 0 { 6891 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("patchType") 6892 } 6893 6894 if iNdEx > l { 6895 return io.ErrUnexpectedEOF 6896 } 6897 return nil 6898 } 6899 func (m *ApplicationRollbackRequest) Unmarshal(dAtA []byte) error { 6900 var hasFields [1]uint64 6901 l := len(dAtA) 6902 iNdEx := 0 6903 for iNdEx < l { 6904 preIndex := iNdEx 6905 var wire uint64 6906 for shift := uint(0); ; shift += 7 { 6907 if shift >= 64 { 6908 return ErrIntOverflowApplication 6909 } 6910 if iNdEx >= l { 6911 return io.ErrUnexpectedEOF 6912 } 6913 b := dAtA[iNdEx] 6914 iNdEx++ 6915 wire |= uint64(b&0x7F) << shift 6916 if b < 0x80 { 6917 break 6918 } 6919 } 6920 fieldNum := int32(wire >> 3) 6921 wireType := int(wire & 0x7) 6922 if wireType == 4 { 6923 return fmt.Errorf("proto: ApplicationRollbackRequest: wiretype end group for non-group") 6924 } 6925 if fieldNum <= 0 { 6926 return fmt.Errorf("proto: ApplicationRollbackRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6927 } 6928 switch fieldNum { 6929 case 1: 6930 if wireType != 2 { 6931 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 6932 } 6933 var stringLen uint64 6934 for shift := uint(0); ; shift += 7 { 6935 if shift >= 64 { 6936 return ErrIntOverflowApplication 6937 } 6938 if iNdEx >= l { 6939 return io.ErrUnexpectedEOF 6940 } 6941 b := dAtA[iNdEx] 6942 iNdEx++ 6943 stringLen |= uint64(b&0x7F) << shift 6944 if b < 0x80 { 6945 break 6946 } 6947 } 6948 intStringLen := int(stringLen) 6949 if intStringLen < 0 { 6950 return ErrInvalidLengthApplication 6951 } 6952 postIndex := iNdEx + intStringLen 6953 if postIndex < 0 { 6954 return ErrInvalidLengthApplication 6955 } 6956 if postIndex > l { 6957 return io.ErrUnexpectedEOF 6958 } 6959 s := string(dAtA[iNdEx:postIndex]) 6960 m.Name = &s 6961 iNdEx = postIndex 6962 hasFields[0] |= uint64(0x00000001) 6963 case 2: 6964 if wireType != 0 { 6965 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 6966 } 6967 m.ID = 0 6968 for shift := uint(0); ; shift += 7 { 6969 if shift >= 64 { 6970 return ErrIntOverflowApplication 6971 } 6972 if iNdEx >= l { 6973 return io.ErrUnexpectedEOF 6974 } 6975 b := dAtA[iNdEx] 6976 iNdEx++ 6977 m.ID |= int64(b&0x7F) << shift 6978 if b < 0x80 { 6979 break 6980 } 6981 } 6982 hasFields[0] |= uint64(0x00000002) 6983 case 3: 6984 if wireType != 0 { 6985 return fmt.Errorf("proto: wrong wireType = %d for field DryRun", wireType) 6986 } 6987 var v int 6988 for shift := uint(0); ; shift += 7 { 6989 if shift >= 64 { 6990 return ErrIntOverflowApplication 6991 } 6992 if iNdEx >= l { 6993 return io.ErrUnexpectedEOF 6994 } 6995 b := dAtA[iNdEx] 6996 iNdEx++ 6997 v |= int(b&0x7F) << shift 6998 if b < 0x80 { 6999 break 7000 } 7001 } 7002 m.DryRun = bool(v != 0) 7003 case 4: 7004 if wireType != 0 { 7005 return fmt.Errorf("proto: wrong wireType = %d for field Prune", wireType) 7006 } 7007 var v int 7008 for shift := uint(0); ; shift += 7 { 7009 if shift >= 64 { 7010 return ErrIntOverflowApplication 7011 } 7012 if iNdEx >= l { 7013 return io.ErrUnexpectedEOF 7014 } 7015 b := dAtA[iNdEx] 7016 iNdEx++ 7017 v |= int(b&0x7F) << shift 7018 if b < 0x80 { 7019 break 7020 } 7021 } 7022 m.Prune = bool(v != 0) 7023 default: 7024 iNdEx = preIndex 7025 skippy, err := skipApplication(dAtA[iNdEx:]) 7026 if err != nil { 7027 return err 7028 } 7029 if skippy < 0 { 7030 return ErrInvalidLengthApplication 7031 } 7032 if (iNdEx + skippy) < 0 { 7033 return ErrInvalidLengthApplication 7034 } 7035 if (iNdEx + skippy) > l { 7036 return io.ErrUnexpectedEOF 7037 } 7038 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7039 iNdEx += skippy 7040 } 7041 } 7042 if hasFields[0]&uint64(0x00000001) == 0 { 7043 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 7044 } 7045 if hasFields[0]&uint64(0x00000002) == 0 { 7046 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("id") 7047 } 7048 7049 if iNdEx > l { 7050 return io.ErrUnexpectedEOF 7051 } 7052 return nil 7053 } 7054 func (m *ApplicationResourceRequest) Unmarshal(dAtA []byte) error { 7055 var hasFields [1]uint64 7056 l := len(dAtA) 7057 iNdEx := 0 7058 for iNdEx < l { 7059 preIndex := iNdEx 7060 var wire uint64 7061 for shift := uint(0); ; shift += 7 { 7062 if shift >= 64 { 7063 return ErrIntOverflowApplication 7064 } 7065 if iNdEx >= l { 7066 return io.ErrUnexpectedEOF 7067 } 7068 b := dAtA[iNdEx] 7069 iNdEx++ 7070 wire |= uint64(b&0x7F) << shift 7071 if b < 0x80 { 7072 break 7073 } 7074 } 7075 fieldNum := int32(wire >> 3) 7076 wireType := int(wire & 0x7) 7077 if wireType == 4 { 7078 return fmt.Errorf("proto: ApplicationResourceRequest: wiretype end group for non-group") 7079 } 7080 if fieldNum <= 0 { 7081 return fmt.Errorf("proto: ApplicationResourceRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7082 } 7083 switch fieldNum { 7084 case 1: 7085 if wireType != 2 { 7086 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 7087 } 7088 var stringLen uint64 7089 for shift := uint(0); ; shift += 7 { 7090 if shift >= 64 { 7091 return ErrIntOverflowApplication 7092 } 7093 if iNdEx >= l { 7094 return io.ErrUnexpectedEOF 7095 } 7096 b := dAtA[iNdEx] 7097 iNdEx++ 7098 stringLen |= uint64(b&0x7F) << shift 7099 if b < 0x80 { 7100 break 7101 } 7102 } 7103 intStringLen := int(stringLen) 7104 if intStringLen < 0 { 7105 return ErrInvalidLengthApplication 7106 } 7107 postIndex := iNdEx + intStringLen 7108 if postIndex < 0 { 7109 return ErrInvalidLengthApplication 7110 } 7111 if postIndex > l { 7112 return io.ErrUnexpectedEOF 7113 } 7114 s := string(dAtA[iNdEx:postIndex]) 7115 m.Name = &s 7116 iNdEx = postIndex 7117 hasFields[0] |= uint64(0x00000001) 7118 case 2: 7119 if wireType != 2 { 7120 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) 7121 } 7122 var stringLen uint64 7123 for shift := uint(0); ; shift += 7 { 7124 if shift >= 64 { 7125 return ErrIntOverflowApplication 7126 } 7127 if iNdEx >= l { 7128 return io.ErrUnexpectedEOF 7129 } 7130 b := dAtA[iNdEx] 7131 iNdEx++ 7132 stringLen |= uint64(b&0x7F) << shift 7133 if b < 0x80 { 7134 break 7135 } 7136 } 7137 intStringLen := int(stringLen) 7138 if intStringLen < 0 { 7139 return ErrInvalidLengthApplication 7140 } 7141 postIndex := iNdEx + intStringLen 7142 if postIndex < 0 { 7143 return ErrInvalidLengthApplication 7144 } 7145 if postIndex > l { 7146 return io.ErrUnexpectedEOF 7147 } 7148 m.Namespace = string(dAtA[iNdEx:postIndex]) 7149 iNdEx = postIndex 7150 hasFields[0] |= uint64(0x00000002) 7151 case 3: 7152 if wireType != 2 { 7153 return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) 7154 } 7155 var stringLen uint64 7156 for shift := uint(0); ; shift += 7 { 7157 if shift >= 64 { 7158 return ErrIntOverflowApplication 7159 } 7160 if iNdEx >= l { 7161 return io.ErrUnexpectedEOF 7162 } 7163 b := dAtA[iNdEx] 7164 iNdEx++ 7165 stringLen |= uint64(b&0x7F) << shift 7166 if b < 0x80 { 7167 break 7168 } 7169 } 7170 intStringLen := int(stringLen) 7171 if intStringLen < 0 { 7172 return ErrInvalidLengthApplication 7173 } 7174 postIndex := iNdEx + intStringLen 7175 if postIndex < 0 { 7176 return ErrInvalidLengthApplication 7177 } 7178 if postIndex > l { 7179 return io.ErrUnexpectedEOF 7180 } 7181 m.ResourceName = string(dAtA[iNdEx:postIndex]) 7182 iNdEx = postIndex 7183 hasFields[0] |= uint64(0x00000004) 7184 case 4: 7185 if wireType != 2 { 7186 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 7187 } 7188 var stringLen uint64 7189 for shift := uint(0); ; shift += 7 { 7190 if shift >= 64 { 7191 return ErrIntOverflowApplication 7192 } 7193 if iNdEx >= l { 7194 return io.ErrUnexpectedEOF 7195 } 7196 b := dAtA[iNdEx] 7197 iNdEx++ 7198 stringLen |= uint64(b&0x7F) << shift 7199 if b < 0x80 { 7200 break 7201 } 7202 } 7203 intStringLen := int(stringLen) 7204 if intStringLen < 0 { 7205 return ErrInvalidLengthApplication 7206 } 7207 postIndex := iNdEx + intStringLen 7208 if postIndex < 0 { 7209 return ErrInvalidLengthApplication 7210 } 7211 if postIndex > l { 7212 return io.ErrUnexpectedEOF 7213 } 7214 m.Version = string(dAtA[iNdEx:postIndex]) 7215 iNdEx = postIndex 7216 hasFields[0] |= uint64(0x00000008) 7217 case 5: 7218 if wireType != 2 { 7219 return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) 7220 } 7221 var stringLen uint64 7222 for shift := uint(0); ; shift += 7 { 7223 if shift >= 64 { 7224 return ErrIntOverflowApplication 7225 } 7226 if iNdEx >= l { 7227 return io.ErrUnexpectedEOF 7228 } 7229 b := dAtA[iNdEx] 7230 iNdEx++ 7231 stringLen |= uint64(b&0x7F) << shift 7232 if b < 0x80 { 7233 break 7234 } 7235 } 7236 intStringLen := int(stringLen) 7237 if intStringLen < 0 { 7238 return ErrInvalidLengthApplication 7239 } 7240 postIndex := iNdEx + intStringLen 7241 if postIndex < 0 { 7242 return ErrInvalidLengthApplication 7243 } 7244 if postIndex > l { 7245 return io.ErrUnexpectedEOF 7246 } 7247 m.Group = string(dAtA[iNdEx:postIndex]) 7248 iNdEx = postIndex 7249 hasFields[0] |= uint64(0x00000010) 7250 case 6: 7251 if wireType != 2 { 7252 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) 7253 } 7254 var stringLen uint64 7255 for shift := uint(0); ; shift += 7 { 7256 if shift >= 64 { 7257 return ErrIntOverflowApplication 7258 } 7259 if iNdEx >= l { 7260 return io.ErrUnexpectedEOF 7261 } 7262 b := dAtA[iNdEx] 7263 iNdEx++ 7264 stringLen |= uint64(b&0x7F) << shift 7265 if b < 0x80 { 7266 break 7267 } 7268 } 7269 intStringLen := int(stringLen) 7270 if intStringLen < 0 { 7271 return ErrInvalidLengthApplication 7272 } 7273 postIndex := iNdEx + intStringLen 7274 if postIndex < 0 { 7275 return ErrInvalidLengthApplication 7276 } 7277 if postIndex > l { 7278 return io.ErrUnexpectedEOF 7279 } 7280 m.Kind = string(dAtA[iNdEx:postIndex]) 7281 iNdEx = postIndex 7282 hasFields[0] |= uint64(0x00000020) 7283 default: 7284 iNdEx = preIndex 7285 skippy, err := skipApplication(dAtA[iNdEx:]) 7286 if err != nil { 7287 return err 7288 } 7289 if skippy < 0 { 7290 return ErrInvalidLengthApplication 7291 } 7292 if (iNdEx + skippy) < 0 { 7293 return ErrInvalidLengthApplication 7294 } 7295 if (iNdEx + skippy) > l { 7296 return io.ErrUnexpectedEOF 7297 } 7298 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7299 iNdEx += skippy 7300 } 7301 } 7302 if hasFields[0]&uint64(0x00000001) == 0 { 7303 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 7304 } 7305 if hasFields[0]&uint64(0x00000002) == 0 { 7306 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("namespace") 7307 } 7308 if hasFields[0]&uint64(0x00000004) == 0 { 7309 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("resourceName") 7310 } 7311 if hasFields[0]&uint64(0x00000008) == 0 { 7312 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("version") 7313 } 7314 if hasFields[0]&uint64(0x00000010) == 0 { 7315 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("group") 7316 } 7317 if hasFields[0]&uint64(0x00000020) == 0 { 7318 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("kind") 7319 } 7320 7321 if iNdEx > l { 7322 return io.ErrUnexpectedEOF 7323 } 7324 return nil 7325 } 7326 func (m *ApplicationResourcePatchRequest) Unmarshal(dAtA []byte) error { 7327 var hasFields [1]uint64 7328 l := len(dAtA) 7329 iNdEx := 0 7330 for iNdEx < l { 7331 preIndex := iNdEx 7332 var wire uint64 7333 for shift := uint(0); ; shift += 7 { 7334 if shift >= 64 { 7335 return ErrIntOverflowApplication 7336 } 7337 if iNdEx >= l { 7338 return io.ErrUnexpectedEOF 7339 } 7340 b := dAtA[iNdEx] 7341 iNdEx++ 7342 wire |= uint64(b&0x7F) << shift 7343 if b < 0x80 { 7344 break 7345 } 7346 } 7347 fieldNum := int32(wire >> 3) 7348 wireType := int(wire & 0x7) 7349 if wireType == 4 { 7350 return fmt.Errorf("proto: ApplicationResourcePatchRequest: wiretype end group for non-group") 7351 } 7352 if fieldNum <= 0 { 7353 return fmt.Errorf("proto: ApplicationResourcePatchRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7354 } 7355 switch fieldNum { 7356 case 1: 7357 if wireType != 2 { 7358 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 7359 } 7360 var stringLen uint64 7361 for shift := uint(0); ; shift += 7 { 7362 if shift >= 64 { 7363 return ErrIntOverflowApplication 7364 } 7365 if iNdEx >= l { 7366 return io.ErrUnexpectedEOF 7367 } 7368 b := dAtA[iNdEx] 7369 iNdEx++ 7370 stringLen |= uint64(b&0x7F) << shift 7371 if b < 0x80 { 7372 break 7373 } 7374 } 7375 intStringLen := int(stringLen) 7376 if intStringLen < 0 { 7377 return ErrInvalidLengthApplication 7378 } 7379 postIndex := iNdEx + intStringLen 7380 if postIndex < 0 { 7381 return ErrInvalidLengthApplication 7382 } 7383 if postIndex > l { 7384 return io.ErrUnexpectedEOF 7385 } 7386 s := string(dAtA[iNdEx:postIndex]) 7387 m.Name = &s 7388 iNdEx = postIndex 7389 hasFields[0] |= uint64(0x00000001) 7390 case 2: 7391 if wireType != 2 { 7392 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) 7393 } 7394 var stringLen uint64 7395 for shift := uint(0); ; shift += 7 { 7396 if shift >= 64 { 7397 return ErrIntOverflowApplication 7398 } 7399 if iNdEx >= l { 7400 return io.ErrUnexpectedEOF 7401 } 7402 b := dAtA[iNdEx] 7403 iNdEx++ 7404 stringLen |= uint64(b&0x7F) << shift 7405 if b < 0x80 { 7406 break 7407 } 7408 } 7409 intStringLen := int(stringLen) 7410 if intStringLen < 0 { 7411 return ErrInvalidLengthApplication 7412 } 7413 postIndex := iNdEx + intStringLen 7414 if postIndex < 0 { 7415 return ErrInvalidLengthApplication 7416 } 7417 if postIndex > l { 7418 return io.ErrUnexpectedEOF 7419 } 7420 m.Namespace = string(dAtA[iNdEx:postIndex]) 7421 iNdEx = postIndex 7422 hasFields[0] |= uint64(0x00000002) 7423 case 3: 7424 if wireType != 2 { 7425 return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) 7426 } 7427 var stringLen uint64 7428 for shift := uint(0); ; shift += 7 { 7429 if shift >= 64 { 7430 return ErrIntOverflowApplication 7431 } 7432 if iNdEx >= l { 7433 return io.ErrUnexpectedEOF 7434 } 7435 b := dAtA[iNdEx] 7436 iNdEx++ 7437 stringLen |= uint64(b&0x7F) << shift 7438 if b < 0x80 { 7439 break 7440 } 7441 } 7442 intStringLen := int(stringLen) 7443 if intStringLen < 0 { 7444 return ErrInvalidLengthApplication 7445 } 7446 postIndex := iNdEx + intStringLen 7447 if postIndex < 0 { 7448 return ErrInvalidLengthApplication 7449 } 7450 if postIndex > l { 7451 return io.ErrUnexpectedEOF 7452 } 7453 m.ResourceName = string(dAtA[iNdEx:postIndex]) 7454 iNdEx = postIndex 7455 hasFields[0] |= uint64(0x00000004) 7456 case 4: 7457 if wireType != 2 { 7458 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 7459 } 7460 var stringLen uint64 7461 for shift := uint(0); ; shift += 7 { 7462 if shift >= 64 { 7463 return ErrIntOverflowApplication 7464 } 7465 if iNdEx >= l { 7466 return io.ErrUnexpectedEOF 7467 } 7468 b := dAtA[iNdEx] 7469 iNdEx++ 7470 stringLen |= uint64(b&0x7F) << shift 7471 if b < 0x80 { 7472 break 7473 } 7474 } 7475 intStringLen := int(stringLen) 7476 if intStringLen < 0 { 7477 return ErrInvalidLengthApplication 7478 } 7479 postIndex := iNdEx + intStringLen 7480 if postIndex < 0 { 7481 return ErrInvalidLengthApplication 7482 } 7483 if postIndex > l { 7484 return io.ErrUnexpectedEOF 7485 } 7486 m.Version = string(dAtA[iNdEx:postIndex]) 7487 iNdEx = postIndex 7488 hasFields[0] |= uint64(0x00000008) 7489 case 5: 7490 if wireType != 2 { 7491 return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) 7492 } 7493 var stringLen uint64 7494 for shift := uint(0); ; shift += 7 { 7495 if shift >= 64 { 7496 return ErrIntOverflowApplication 7497 } 7498 if iNdEx >= l { 7499 return io.ErrUnexpectedEOF 7500 } 7501 b := dAtA[iNdEx] 7502 iNdEx++ 7503 stringLen |= uint64(b&0x7F) << shift 7504 if b < 0x80 { 7505 break 7506 } 7507 } 7508 intStringLen := int(stringLen) 7509 if intStringLen < 0 { 7510 return ErrInvalidLengthApplication 7511 } 7512 postIndex := iNdEx + intStringLen 7513 if postIndex < 0 { 7514 return ErrInvalidLengthApplication 7515 } 7516 if postIndex > l { 7517 return io.ErrUnexpectedEOF 7518 } 7519 m.Group = string(dAtA[iNdEx:postIndex]) 7520 iNdEx = postIndex 7521 hasFields[0] |= uint64(0x00000010) 7522 case 6: 7523 if wireType != 2 { 7524 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) 7525 } 7526 var stringLen uint64 7527 for shift := uint(0); ; shift += 7 { 7528 if shift >= 64 { 7529 return ErrIntOverflowApplication 7530 } 7531 if iNdEx >= l { 7532 return io.ErrUnexpectedEOF 7533 } 7534 b := dAtA[iNdEx] 7535 iNdEx++ 7536 stringLen |= uint64(b&0x7F) << shift 7537 if b < 0x80 { 7538 break 7539 } 7540 } 7541 intStringLen := int(stringLen) 7542 if intStringLen < 0 { 7543 return ErrInvalidLengthApplication 7544 } 7545 postIndex := iNdEx + intStringLen 7546 if postIndex < 0 { 7547 return ErrInvalidLengthApplication 7548 } 7549 if postIndex > l { 7550 return io.ErrUnexpectedEOF 7551 } 7552 m.Kind = string(dAtA[iNdEx:postIndex]) 7553 iNdEx = postIndex 7554 hasFields[0] |= uint64(0x00000020) 7555 case 7: 7556 if wireType != 2 { 7557 return fmt.Errorf("proto: wrong wireType = %d for field Patch", wireType) 7558 } 7559 var stringLen uint64 7560 for shift := uint(0); ; shift += 7 { 7561 if shift >= 64 { 7562 return ErrIntOverflowApplication 7563 } 7564 if iNdEx >= l { 7565 return io.ErrUnexpectedEOF 7566 } 7567 b := dAtA[iNdEx] 7568 iNdEx++ 7569 stringLen |= uint64(b&0x7F) << shift 7570 if b < 0x80 { 7571 break 7572 } 7573 } 7574 intStringLen := int(stringLen) 7575 if intStringLen < 0 { 7576 return ErrInvalidLengthApplication 7577 } 7578 postIndex := iNdEx + intStringLen 7579 if postIndex < 0 { 7580 return ErrInvalidLengthApplication 7581 } 7582 if postIndex > l { 7583 return io.ErrUnexpectedEOF 7584 } 7585 m.Patch = string(dAtA[iNdEx:postIndex]) 7586 iNdEx = postIndex 7587 hasFields[0] |= uint64(0x00000040) 7588 case 8: 7589 if wireType != 2 { 7590 return fmt.Errorf("proto: wrong wireType = %d for field PatchType", wireType) 7591 } 7592 var stringLen uint64 7593 for shift := uint(0); ; shift += 7 { 7594 if shift >= 64 { 7595 return ErrIntOverflowApplication 7596 } 7597 if iNdEx >= l { 7598 return io.ErrUnexpectedEOF 7599 } 7600 b := dAtA[iNdEx] 7601 iNdEx++ 7602 stringLen |= uint64(b&0x7F) << shift 7603 if b < 0x80 { 7604 break 7605 } 7606 } 7607 intStringLen := int(stringLen) 7608 if intStringLen < 0 { 7609 return ErrInvalidLengthApplication 7610 } 7611 postIndex := iNdEx + intStringLen 7612 if postIndex < 0 { 7613 return ErrInvalidLengthApplication 7614 } 7615 if postIndex > l { 7616 return io.ErrUnexpectedEOF 7617 } 7618 m.PatchType = string(dAtA[iNdEx:postIndex]) 7619 iNdEx = postIndex 7620 hasFields[0] |= uint64(0x00000080) 7621 default: 7622 iNdEx = preIndex 7623 skippy, err := skipApplication(dAtA[iNdEx:]) 7624 if err != nil { 7625 return err 7626 } 7627 if skippy < 0 { 7628 return ErrInvalidLengthApplication 7629 } 7630 if (iNdEx + skippy) < 0 { 7631 return ErrInvalidLengthApplication 7632 } 7633 if (iNdEx + skippy) > l { 7634 return io.ErrUnexpectedEOF 7635 } 7636 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7637 iNdEx += skippy 7638 } 7639 } 7640 if hasFields[0]&uint64(0x00000001) == 0 { 7641 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 7642 } 7643 if hasFields[0]&uint64(0x00000002) == 0 { 7644 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("namespace") 7645 } 7646 if hasFields[0]&uint64(0x00000004) == 0 { 7647 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("resourceName") 7648 } 7649 if hasFields[0]&uint64(0x00000008) == 0 { 7650 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("version") 7651 } 7652 if hasFields[0]&uint64(0x00000010) == 0 { 7653 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("group") 7654 } 7655 if hasFields[0]&uint64(0x00000020) == 0 { 7656 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("kind") 7657 } 7658 if hasFields[0]&uint64(0x00000040) == 0 { 7659 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("patch") 7660 } 7661 if hasFields[0]&uint64(0x00000080) == 0 { 7662 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("patchType") 7663 } 7664 7665 if iNdEx > l { 7666 return io.ErrUnexpectedEOF 7667 } 7668 return nil 7669 } 7670 func (m *ApplicationResourceDeleteRequest) Unmarshal(dAtA []byte) error { 7671 var hasFields [1]uint64 7672 l := len(dAtA) 7673 iNdEx := 0 7674 for iNdEx < l { 7675 preIndex := iNdEx 7676 var wire uint64 7677 for shift := uint(0); ; shift += 7 { 7678 if shift >= 64 { 7679 return ErrIntOverflowApplication 7680 } 7681 if iNdEx >= l { 7682 return io.ErrUnexpectedEOF 7683 } 7684 b := dAtA[iNdEx] 7685 iNdEx++ 7686 wire |= uint64(b&0x7F) << shift 7687 if b < 0x80 { 7688 break 7689 } 7690 } 7691 fieldNum := int32(wire >> 3) 7692 wireType := int(wire & 0x7) 7693 if wireType == 4 { 7694 return fmt.Errorf("proto: ApplicationResourceDeleteRequest: wiretype end group for non-group") 7695 } 7696 if fieldNum <= 0 { 7697 return fmt.Errorf("proto: ApplicationResourceDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7698 } 7699 switch fieldNum { 7700 case 1: 7701 if wireType != 2 { 7702 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 7703 } 7704 var stringLen uint64 7705 for shift := uint(0); ; shift += 7 { 7706 if shift >= 64 { 7707 return ErrIntOverflowApplication 7708 } 7709 if iNdEx >= l { 7710 return io.ErrUnexpectedEOF 7711 } 7712 b := dAtA[iNdEx] 7713 iNdEx++ 7714 stringLen |= uint64(b&0x7F) << shift 7715 if b < 0x80 { 7716 break 7717 } 7718 } 7719 intStringLen := int(stringLen) 7720 if intStringLen < 0 { 7721 return ErrInvalidLengthApplication 7722 } 7723 postIndex := iNdEx + intStringLen 7724 if postIndex < 0 { 7725 return ErrInvalidLengthApplication 7726 } 7727 if postIndex > l { 7728 return io.ErrUnexpectedEOF 7729 } 7730 s := string(dAtA[iNdEx:postIndex]) 7731 m.Name = &s 7732 iNdEx = postIndex 7733 hasFields[0] |= uint64(0x00000001) 7734 case 2: 7735 if wireType != 2 { 7736 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) 7737 } 7738 var stringLen uint64 7739 for shift := uint(0); ; shift += 7 { 7740 if shift >= 64 { 7741 return ErrIntOverflowApplication 7742 } 7743 if iNdEx >= l { 7744 return io.ErrUnexpectedEOF 7745 } 7746 b := dAtA[iNdEx] 7747 iNdEx++ 7748 stringLen |= uint64(b&0x7F) << shift 7749 if b < 0x80 { 7750 break 7751 } 7752 } 7753 intStringLen := int(stringLen) 7754 if intStringLen < 0 { 7755 return ErrInvalidLengthApplication 7756 } 7757 postIndex := iNdEx + intStringLen 7758 if postIndex < 0 { 7759 return ErrInvalidLengthApplication 7760 } 7761 if postIndex > l { 7762 return io.ErrUnexpectedEOF 7763 } 7764 m.Namespace = string(dAtA[iNdEx:postIndex]) 7765 iNdEx = postIndex 7766 hasFields[0] |= uint64(0x00000002) 7767 case 3: 7768 if wireType != 2 { 7769 return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) 7770 } 7771 var stringLen uint64 7772 for shift := uint(0); ; shift += 7 { 7773 if shift >= 64 { 7774 return ErrIntOverflowApplication 7775 } 7776 if iNdEx >= l { 7777 return io.ErrUnexpectedEOF 7778 } 7779 b := dAtA[iNdEx] 7780 iNdEx++ 7781 stringLen |= uint64(b&0x7F) << shift 7782 if b < 0x80 { 7783 break 7784 } 7785 } 7786 intStringLen := int(stringLen) 7787 if intStringLen < 0 { 7788 return ErrInvalidLengthApplication 7789 } 7790 postIndex := iNdEx + intStringLen 7791 if postIndex < 0 { 7792 return ErrInvalidLengthApplication 7793 } 7794 if postIndex > l { 7795 return io.ErrUnexpectedEOF 7796 } 7797 m.ResourceName = string(dAtA[iNdEx:postIndex]) 7798 iNdEx = postIndex 7799 hasFields[0] |= uint64(0x00000004) 7800 case 4: 7801 if wireType != 2 { 7802 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 7803 } 7804 var stringLen uint64 7805 for shift := uint(0); ; shift += 7 { 7806 if shift >= 64 { 7807 return ErrIntOverflowApplication 7808 } 7809 if iNdEx >= l { 7810 return io.ErrUnexpectedEOF 7811 } 7812 b := dAtA[iNdEx] 7813 iNdEx++ 7814 stringLen |= uint64(b&0x7F) << shift 7815 if b < 0x80 { 7816 break 7817 } 7818 } 7819 intStringLen := int(stringLen) 7820 if intStringLen < 0 { 7821 return ErrInvalidLengthApplication 7822 } 7823 postIndex := iNdEx + intStringLen 7824 if postIndex < 0 { 7825 return ErrInvalidLengthApplication 7826 } 7827 if postIndex > l { 7828 return io.ErrUnexpectedEOF 7829 } 7830 m.Version = string(dAtA[iNdEx:postIndex]) 7831 iNdEx = postIndex 7832 hasFields[0] |= uint64(0x00000008) 7833 case 5: 7834 if wireType != 2 { 7835 return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) 7836 } 7837 var stringLen uint64 7838 for shift := uint(0); ; shift += 7 { 7839 if shift >= 64 { 7840 return ErrIntOverflowApplication 7841 } 7842 if iNdEx >= l { 7843 return io.ErrUnexpectedEOF 7844 } 7845 b := dAtA[iNdEx] 7846 iNdEx++ 7847 stringLen |= uint64(b&0x7F) << shift 7848 if b < 0x80 { 7849 break 7850 } 7851 } 7852 intStringLen := int(stringLen) 7853 if intStringLen < 0 { 7854 return ErrInvalidLengthApplication 7855 } 7856 postIndex := iNdEx + intStringLen 7857 if postIndex < 0 { 7858 return ErrInvalidLengthApplication 7859 } 7860 if postIndex > l { 7861 return io.ErrUnexpectedEOF 7862 } 7863 m.Group = string(dAtA[iNdEx:postIndex]) 7864 iNdEx = postIndex 7865 hasFields[0] |= uint64(0x00000010) 7866 case 6: 7867 if wireType != 2 { 7868 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) 7869 } 7870 var stringLen uint64 7871 for shift := uint(0); ; shift += 7 { 7872 if shift >= 64 { 7873 return ErrIntOverflowApplication 7874 } 7875 if iNdEx >= l { 7876 return io.ErrUnexpectedEOF 7877 } 7878 b := dAtA[iNdEx] 7879 iNdEx++ 7880 stringLen |= uint64(b&0x7F) << shift 7881 if b < 0x80 { 7882 break 7883 } 7884 } 7885 intStringLen := int(stringLen) 7886 if intStringLen < 0 { 7887 return ErrInvalidLengthApplication 7888 } 7889 postIndex := iNdEx + intStringLen 7890 if postIndex < 0 { 7891 return ErrInvalidLengthApplication 7892 } 7893 if postIndex > l { 7894 return io.ErrUnexpectedEOF 7895 } 7896 m.Kind = string(dAtA[iNdEx:postIndex]) 7897 iNdEx = postIndex 7898 hasFields[0] |= uint64(0x00000020) 7899 case 7: 7900 if wireType != 0 { 7901 return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) 7902 } 7903 var v int 7904 for shift := uint(0); ; shift += 7 { 7905 if shift >= 64 { 7906 return ErrIntOverflowApplication 7907 } 7908 if iNdEx >= l { 7909 return io.ErrUnexpectedEOF 7910 } 7911 b := dAtA[iNdEx] 7912 iNdEx++ 7913 v |= int(b&0x7F) << shift 7914 if b < 0x80 { 7915 break 7916 } 7917 } 7918 b := bool(v != 0) 7919 m.Force = &b 7920 default: 7921 iNdEx = preIndex 7922 skippy, err := skipApplication(dAtA[iNdEx:]) 7923 if err != nil { 7924 return err 7925 } 7926 if skippy < 0 { 7927 return ErrInvalidLengthApplication 7928 } 7929 if (iNdEx + skippy) < 0 { 7930 return ErrInvalidLengthApplication 7931 } 7932 if (iNdEx + skippy) > l { 7933 return io.ErrUnexpectedEOF 7934 } 7935 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 7936 iNdEx += skippy 7937 } 7938 } 7939 if hasFields[0]&uint64(0x00000001) == 0 { 7940 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 7941 } 7942 if hasFields[0]&uint64(0x00000002) == 0 { 7943 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("namespace") 7944 } 7945 if hasFields[0]&uint64(0x00000004) == 0 { 7946 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("resourceName") 7947 } 7948 if hasFields[0]&uint64(0x00000008) == 0 { 7949 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("version") 7950 } 7951 if hasFields[0]&uint64(0x00000010) == 0 { 7952 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("group") 7953 } 7954 if hasFields[0]&uint64(0x00000020) == 0 { 7955 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("kind") 7956 } 7957 7958 if iNdEx > l { 7959 return io.ErrUnexpectedEOF 7960 } 7961 return nil 7962 } 7963 func (m *ResourceActionRunRequest) Unmarshal(dAtA []byte) error { 7964 var hasFields [1]uint64 7965 l := len(dAtA) 7966 iNdEx := 0 7967 for iNdEx < l { 7968 preIndex := iNdEx 7969 var wire uint64 7970 for shift := uint(0); ; shift += 7 { 7971 if shift >= 64 { 7972 return ErrIntOverflowApplication 7973 } 7974 if iNdEx >= l { 7975 return io.ErrUnexpectedEOF 7976 } 7977 b := dAtA[iNdEx] 7978 iNdEx++ 7979 wire |= uint64(b&0x7F) << shift 7980 if b < 0x80 { 7981 break 7982 } 7983 } 7984 fieldNum := int32(wire >> 3) 7985 wireType := int(wire & 0x7) 7986 if wireType == 4 { 7987 return fmt.Errorf("proto: ResourceActionRunRequest: wiretype end group for non-group") 7988 } 7989 if fieldNum <= 0 { 7990 return fmt.Errorf("proto: ResourceActionRunRequest: illegal tag %d (wire type %d)", fieldNum, wire) 7991 } 7992 switch fieldNum { 7993 case 1: 7994 if wireType != 2 { 7995 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 7996 } 7997 var stringLen uint64 7998 for shift := uint(0); ; shift += 7 { 7999 if shift >= 64 { 8000 return ErrIntOverflowApplication 8001 } 8002 if iNdEx >= l { 8003 return io.ErrUnexpectedEOF 8004 } 8005 b := dAtA[iNdEx] 8006 iNdEx++ 8007 stringLen |= uint64(b&0x7F) << shift 8008 if b < 0x80 { 8009 break 8010 } 8011 } 8012 intStringLen := int(stringLen) 8013 if intStringLen < 0 { 8014 return ErrInvalidLengthApplication 8015 } 8016 postIndex := iNdEx + intStringLen 8017 if postIndex < 0 { 8018 return ErrInvalidLengthApplication 8019 } 8020 if postIndex > l { 8021 return io.ErrUnexpectedEOF 8022 } 8023 s := string(dAtA[iNdEx:postIndex]) 8024 m.Name = &s 8025 iNdEx = postIndex 8026 hasFields[0] |= uint64(0x00000001) 8027 case 2: 8028 if wireType != 2 { 8029 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) 8030 } 8031 var stringLen uint64 8032 for shift := uint(0); ; shift += 7 { 8033 if shift >= 64 { 8034 return ErrIntOverflowApplication 8035 } 8036 if iNdEx >= l { 8037 return io.ErrUnexpectedEOF 8038 } 8039 b := dAtA[iNdEx] 8040 iNdEx++ 8041 stringLen |= uint64(b&0x7F) << shift 8042 if b < 0x80 { 8043 break 8044 } 8045 } 8046 intStringLen := int(stringLen) 8047 if intStringLen < 0 { 8048 return ErrInvalidLengthApplication 8049 } 8050 postIndex := iNdEx + intStringLen 8051 if postIndex < 0 { 8052 return ErrInvalidLengthApplication 8053 } 8054 if postIndex > l { 8055 return io.ErrUnexpectedEOF 8056 } 8057 m.Namespace = string(dAtA[iNdEx:postIndex]) 8058 iNdEx = postIndex 8059 hasFields[0] |= uint64(0x00000002) 8060 case 3: 8061 if wireType != 2 { 8062 return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType) 8063 } 8064 var stringLen uint64 8065 for shift := uint(0); ; shift += 7 { 8066 if shift >= 64 { 8067 return ErrIntOverflowApplication 8068 } 8069 if iNdEx >= l { 8070 return io.ErrUnexpectedEOF 8071 } 8072 b := dAtA[iNdEx] 8073 iNdEx++ 8074 stringLen |= uint64(b&0x7F) << shift 8075 if b < 0x80 { 8076 break 8077 } 8078 } 8079 intStringLen := int(stringLen) 8080 if intStringLen < 0 { 8081 return ErrInvalidLengthApplication 8082 } 8083 postIndex := iNdEx + intStringLen 8084 if postIndex < 0 { 8085 return ErrInvalidLengthApplication 8086 } 8087 if postIndex > l { 8088 return io.ErrUnexpectedEOF 8089 } 8090 m.ResourceName = string(dAtA[iNdEx:postIndex]) 8091 iNdEx = postIndex 8092 hasFields[0] |= uint64(0x00000004) 8093 case 4: 8094 if wireType != 2 { 8095 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 8096 } 8097 var stringLen uint64 8098 for shift := uint(0); ; shift += 7 { 8099 if shift >= 64 { 8100 return ErrIntOverflowApplication 8101 } 8102 if iNdEx >= l { 8103 return io.ErrUnexpectedEOF 8104 } 8105 b := dAtA[iNdEx] 8106 iNdEx++ 8107 stringLen |= uint64(b&0x7F) << shift 8108 if b < 0x80 { 8109 break 8110 } 8111 } 8112 intStringLen := int(stringLen) 8113 if intStringLen < 0 { 8114 return ErrInvalidLengthApplication 8115 } 8116 postIndex := iNdEx + intStringLen 8117 if postIndex < 0 { 8118 return ErrInvalidLengthApplication 8119 } 8120 if postIndex > l { 8121 return io.ErrUnexpectedEOF 8122 } 8123 m.Version = string(dAtA[iNdEx:postIndex]) 8124 iNdEx = postIndex 8125 hasFields[0] |= uint64(0x00000008) 8126 case 5: 8127 if wireType != 2 { 8128 return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) 8129 } 8130 var stringLen uint64 8131 for shift := uint(0); ; shift += 7 { 8132 if shift >= 64 { 8133 return ErrIntOverflowApplication 8134 } 8135 if iNdEx >= l { 8136 return io.ErrUnexpectedEOF 8137 } 8138 b := dAtA[iNdEx] 8139 iNdEx++ 8140 stringLen |= uint64(b&0x7F) << shift 8141 if b < 0x80 { 8142 break 8143 } 8144 } 8145 intStringLen := int(stringLen) 8146 if intStringLen < 0 { 8147 return ErrInvalidLengthApplication 8148 } 8149 postIndex := iNdEx + intStringLen 8150 if postIndex < 0 { 8151 return ErrInvalidLengthApplication 8152 } 8153 if postIndex > l { 8154 return io.ErrUnexpectedEOF 8155 } 8156 m.Group = string(dAtA[iNdEx:postIndex]) 8157 iNdEx = postIndex 8158 hasFields[0] |= uint64(0x00000010) 8159 case 6: 8160 if wireType != 2 { 8161 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) 8162 } 8163 var stringLen uint64 8164 for shift := uint(0); ; shift += 7 { 8165 if shift >= 64 { 8166 return ErrIntOverflowApplication 8167 } 8168 if iNdEx >= l { 8169 return io.ErrUnexpectedEOF 8170 } 8171 b := dAtA[iNdEx] 8172 iNdEx++ 8173 stringLen |= uint64(b&0x7F) << shift 8174 if b < 0x80 { 8175 break 8176 } 8177 } 8178 intStringLen := int(stringLen) 8179 if intStringLen < 0 { 8180 return ErrInvalidLengthApplication 8181 } 8182 postIndex := iNdEx + intStringLen 8183 if postIndex < 0 { 8184 return ErrInvalidLengthApplication 8185 } 8186 if postIndex > l { 8187 return io.ErrUnexpectedEOF 8188 } 8189 m.Kind = string(dAtA[iNdEx:postIndex]) 8190 iNdEx = postIndex 8191 hasFields[0] |= uint64(0x00000020) 8192 case 7: 8193 if wireType != 2 { 8194 return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) 8195 } 8196 var stringLen uint64 8197 for shift := uint(0); ; shift += 7 { 8198 if shift >= 64 { 8199 return ErrIntOverflowApplication 8200 } 8201 if iNdEx >= l { 8202 return io.ErrUnexpectedEOF 8203 } 8204 b := dAtA[iNdEx] 8205 iNdEx++ 8206 stringLen |= uint64(b&0x7F) << shift 8207 if b < 0x80 { 8208 break 8209 } 8210 } 8211 intStringLen := int(stringLen) 8212 if intStringLen < 0 { 8213 return ErrInvalidLengthApplication 8214 } 8215 postIndex := iNdEx + intStringLen 8216 if postIndex < 0 { 8217 return ErrInvalidLengthApplication 8218 } 8219 if postIndex > l { 8220 return io.ErrUnexpectedEOF 8221 } 8222 m.Action = string(dAtA[iNdEx:postIndex]) 8223 iNdEx = postIndex 8224 hasFields[0] |= uint64(0x00000040) 8225 default: 8226 iNdEx = preIndex 8227 skippy, err := skipApplication(dAtA[iNdEx:]) 8228 if err != nil { 8229 return err 8230 } 8231 if skippy < 0 { 8232 return ErrInvalidLengthApplication 8233 } 8234 if (iNdEx + skippy) < 0 { 8235 return ErrInvalidLengthApplication 8236 } 8237 if (iNdEx + skippy) > l { 8238 return io.ErrUnexpectedEOF 8239 } 8240 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8241 iNdEx += skippy 8242 } 8243 } 8244 if hasFields[0]&uint64(0x00000001) == 0 { 8245 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 8246 } 8247 if hasFields[0]&uint64(0x00000002) == 0 { 8248 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("namespace") 8249 } 8250 if hasFields[0]&uint64(0x00000004) == 0 { 8251 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("resourceName") 8252 } 8253 if hasFields[0]&uint64(0x00000008) == 0 { 8254 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("version") 8255 } 8256 if hasFields[0]&uint64(0x00000010) == 0 { 8257 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("group") 8258 } 8259 if hasFields[0]&uint64(0x00000020) == 0 { 8260 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("kind") 8261 } 8262 if hasFields[0]&uint64(0x00000040) == 0 { 8263 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("action") 8264 } 8265 8266 if iNdEx > l { 8267 return io.ErrUnexpectedEOF 8268 } 8269 return nil 8270 } 8271 func (m *ResourceActionsListResponse) Unmarshal(dAtA []byte) error { 8272 l := len(dAtA) 8273 iNdEx := 0 8274 for iNdEx < l { 8275 preIndex := iNdEx 8276 var wire uint64 8277 for shift := uint(0); ; shift += 7 { 8278 if shift >= 64 { 8279 return ErrIntOverflowApplication 8280 } 8281 if iNdEx >= l { 8282 return io.ErrUnexpectedEOF 8283 } 8284 b := dAtA[iNdEx] 8285 iNdEx++ 8286 wire |= uint64(b&0x7F) << shift 8287 if b < 0x80 { 8288 break 8289 } 8290 } 8291 fieldNum := int32(wire >> 3) 8292 wireType := int(wire & 0x7) 8293 if wireType == 4 { 8294 return fmt.Errorf("proto: ResourceActionsListResponse: wiretype end group for non-group") 8295 } 8296 if fieldNum <= 0 { 8297 return fmt.Errorf("proto: ResourceActionsListResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8298 } 8299 switch fieldNum { 8300 case 1: 8301 if wireType != 2 { 8302 return fmt.Errorf("proto: wrong wireType = %d for field Actions", wireType) 8303 } 8304 var msglen int 8305 for shift := uint(0); ; shift += 7 { 8306 if shift >= 64 { 8307 return ErrIntOverflowApplication 8308 } 8309 if iNdEx >= l { 8310 return io.ErrUnexpectedEOF 8311 } 8312 b := dAtA[iNdEx] 8313 iNdEx++ 8314 msglen |= int(b&0x7F) << shift 8315 if b < 0x80 { 8316 break 8317 } 8318 } 8319 if msglen < 0 { 8320 return ErrInvalidLengthApplication 8321 } 8322 postIndex := iNdEx + msglen 8323 if postIndex < 0 { 8324 return ErrInvalidLengthApplication 8325 } 8326 if postIndex > l { 8327 return io.ErrUnexpectedEOF 8328 } 8329 m.Actions = append(m.Actions, v1alpha1.ResourceAction{}) 8330 if err := m.Actions[len(m.Actions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8331 return err 8332 } 8333 iNdEx = postIndex 8334 default: 8335 iNdEx = preIndex 8336 skippy, err := skipApplication(dAtA[iNdEx:]) 8337 if err != nil { 8338 return err 8339 } 8340 if skippy < 0 { 8341 return ErrInvalidLengthApplication 8342 } 8343 if (iNdEx + skippy) < 0 { 8344 return ErrInvalidLengthApplication 8345 } 8346 if (iNdEx + skippy) > l { 8347 return io.ErrUnexpectedEOF 8348 } 8349 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8350 iNdEx += skippy 8351 } 8352 } 8353 8354 if iNdEx > l { 8355 return io.ErrUnexpectedEOF 8356 } 8357 return nil 8358 } 8359 func (m *ApplicationResourceResponse) Unmarshal(dAtA []byte) error { 8360 var hasFields [1]uint64 8361 l := len(dAtA) 8362 iNdEx := 0 8363 for iNdEx < l { 8364 preIndex := iNdEx 8365 var wire uint64 8366 for shift := uint(0); ; shift += 7 { 8367 if shift >= 64 { 8368 return ErrIntOverflowApplication 8369 } 8370 if iNdEx >= l { 8371 return io.ErrUnexpectedEOF 8372 } 8373 b := dAtA[iNdEx] 8374 iNdEx++ 8375 wire |= uint64(b&0x7F) << shift 8376 if b < 0x80 { 8377 break 8378 } 8379 } 8380 fieldNum := int32(wire >> 3) 8381 wireType := int(wire & 0x7) 8382 if wireType == 4 { 8383 return fmt.Errorf("proto: ApplicationResourceResponse: wiretype end group for non-group") 8384 } 8385 if fieldNum <= 0 { 8386 return fmt.Errorf("proto: ApplicationResourceResponse: illegal tag %d (wire type %d)", fieldNum, wire) 8387 } 8388 switch fieldNum { 8389 case 1: 8390 if wireType != 2 { 8391 return fmt.Errorf("proto: wrong wireType = %d for field Manifest", wireType) 8392 } 8393 var stringLen uint64 8394 for shift := uint(0); ; shift += 7 { 8395 if shift >= 64 { 8396 return ErrIntOverflowApplication 8397 } 8398 if iNdEx >= l { 8399 return io.ErrUnexpectedEOF 8400 } 8401 b := dAtA[iNdEx] 8402 iNdEx++ 8403 stringLen |= uint64(b&0x7F) << shift 8404 if b < 0x80 { 8405 break 8406 } 8407 } 8408 intStringLen := int(stringLen) 8409 if intStringLen < 0 { 8410 return ErrInvalidLengthApplication 8411 } 8412 postIndex := iNdEx + intStringLen 8413 if postIndex < 0 { 8414 return ErrInvalidLengthApplication 8415 } 8416 if postIndex > l { 8417 return io.ErrUnexpectedEOF 8418 } 8419 m.Manifest = string(dAtA[iNdEx:postIndex]) 8420 iNdEx = postIndex 8421 hasFields[0] |= uint64(0x00000001) 8422 default: 8423 iNdEx = preIndex 8424 skippy, err := skipApplication(dAtA[iNdEx:]) 8425 if err != nil { 8426 return err 8427 } 8428 if skippy < 0 { 8429 return ErrInvalidLengthApplication 8430 } 8431 if (iNdEx + skippy) < 0 { 8432 return ErrInvalidLengthApplication 8433 } 8434 if (iNdEx + skippy) > l { 8435 return io.ErrUnexpectedEOF 8436 } 8437 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8438 iNdEx += skippy 8439 } 8440 } 8441 if hasFields[0]&uint64(0x00000001) == 0 { 8442 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("manifest") 8443 } 8444 8445 if iNdEx > l { 8446 return io.ErrUnexpectedEOF 8447 } 8448 return nil 8449 } 8450 func (m *ApplicationPodLogsQuery) Unmarshal(dAtA []byte) error { 8451 var hasFields [1]uint64 8452 l := len(dAtA) 8453 iNdEx := 0 8454 for iNdEx < l { 8455 preIndex := iNdEx 8456 var wire uint64 8457 for shift := uint(0); ; shift += 7 { 8458 if shift >= 64 { 8459 return ErrIntOverflowApplication 8460 } 8461 if iNdEx >= l { 8462 return io.ErrUnexpectedEOF 8463 } 8464 b := dAtA[iNdEx] 8465 iNdEx++ 8466 wire |= uint64(b&0x7F) << shift 8467 if b < 0x80 { 8468 break 8469 } 8470 } 8471 fieldNum := int32(wire >> 3) 8472 wireType := int(wire & 0x7) 8473 if wireType == 4 { 8474 return fmt.Errorf("proto: ApplicationPodLogsQuery: wiretype end group for non-group") 8475 } 8476 if fieldNum <= 0 { 8477 return fmt.Errorf("proto: ApplicationPodLogsQuery: illegal tag %d (wire type %d)", fieldNum, wire) 8478 } 8479 switch fieldNum { 8480 case 1: 8481 if wireType != 2 { 8482 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 8483 } 8484 var stringLen uint64 8485 for shift := uint(0); ; shift += 7 { 8486 if shift >= 64 { 8487 return ErrIntOverflowApplication 8488 } 8489 if iNdEx >= l { 8490 return io.ErrUnexpectedEOF 8491 } 8492 b := dAtA[iNdEx] 8493 iNdEx++ 8494 stringLen |= uint64(b&0x7F) << shift 8495 if b < 0x80 { 8496 break 8497 } 8498 } 8499 intStringLen := int(stringLen) 8500 if intStringLen < 0 { 8501 return ErrInvalidLengthApplication 8502 } 8503 postIndex := iNdEx + intStringLen 8504 if postIndex < 0 { 8505 return ErrInvalidLengthApplication 8506 } 8507 if postIndex > l { 8508 return io.ErrUnexpectedEOF 8509 } 8510 s := string(dAtA[iNdEx:postIndex]) 8511 m.Name = &s 8512 iNdEx = postIndex 8513 hasFields[0] |= uint64(0x00000001) 8514 case 2: 8515 if wireType != 2 { 8516 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) 8517 } 8518 var stringLen uint64 8519 for shift := uint(0); ; shift += 7 { 8520 if shift >= 64 { 8521 return ErrIntOverflowApplication 8522 } 8523 if iNdEx >= l { 8524 return io.ErrUnexpectedEOF 8525 } 8526 b := dAtA[iNdEx] 8527 iNdEx++ 8528 stringLen |= uint64(b&0x7F) << shift 8529 if b < 0x80 { 8530 break 8531 } 8532 } 8533 intStringLen := int(stringLen) 8534 if intStringLen < 0 { 8535 return ErrInvalidLengthApplication 8536 } 8537 postIndex := iNdEx + intStringLen 8538 if postIndex < 0 { 8539 return ErrInvalidLengthApplication 8540 } 8541 if postIndex > l { 8542 return io.ErrUnexpectedEOF 8543 } 8544 m.Namespace = string(dAtA[iNdEx:postIndex]) 8545 iNdEx = postIndex 8546 hasFields[0] |= uint64(0x00000002) 8547 case 3: 8548 if wireType != 2 { 8549 return fmt.Errorf("proto: wrong wireType = %d for field PodName", wireType) 8550 } 8551 var stringLen uint64 8552 for shift := uint(0); ; shift += 7 { 8553 if shift >= 64 { 8554 return ErrIntOverflowApplication 8555 } 8556 if iNdEx >= l { 8557 return io.ErrUnexpectedEOF 8558 } 8559 b := dAtA[iNdEx] 8560 iNdEx++ 8561 stringLen |= uint64(b&0x7F) << shift 8562 if b < 0x80 { 8563 break 8564 } 8565 } 8566 intStringLen := int(stringLen) 8567 if intStringLen < 0 { 8568 return ErrInvalidLengthApplication 8569 } 8570 postIndex := iNdEx + intStringLen 8571 if postIndex < 0 { 8572 return ErrInvalidLengthApplication 8573 } 8574 if postIndex > l { 8575 return io.ErrUnexpectedEOF 8576 } 8577 s := string(dAtA[iNdEx:postIndex]) 8578 m.PodName = &s 8579 iNdEx = postIndex 8580 hasFields[0] |= uint64(0x00000004) 8581 case 4: 8582 if wireType != 2 { 8583 return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) 8584 } 8585 var stringLen uint64 8586 for shift := uint(0); ; shift += 7 { 8587 if shift >= 64 { 8588 return ErrIntOverflowApplication 8589 } 8590 if iNdEx >= l { 8591 return io.ErrUnexpectedEOF 8592 } 8593 b := dAtA[iNdEx] 8594 iNdEx++ 8595 stringLen |= uint64(b&0x7F) << shift 8596 if b < 0x80 { 8597 break 8598 } 8599 } 8600 intStringLen := int(stringLen) 8601 if intStringLen < 0 { 8602 return ErrInvalidLengthApplication 8603 } 8604 postIndex := iNdEx + intStringLen 8605 if postIndex < 0 { 8606 return ErrInvalidLengthApplication 8607 } 8608 if postIndex > l { 8609 return io.ErrUnexpectedEOF 8610 } 8611 m.Container = string(dAtA[iNdEx:postIndex]) 8612 iNdEx = postIndex 8613 hasFields[0] |= uint64(0x00000008) 8614 case 5: 8615 if wireType != 0 { 8616 return fmt.Errorf("proto: wrong wireType = %d for field SinceSeconds", wireType) 8617 } 8618 m.SinceSeconds = 0 8619 for shift := uint(0); ; shift += 7 { 8620 if shift >= 64 { 8621 return ErrIntOverflowApplication 8622 } 8623 if iNdEx >= l { 8624 return io.ErrUnexpectedEOF 8625 } 8626 b := dAtA[iNdEx] 8627 iNdEx++ 8628 m.SinceSeconds |= int64(b&0x7F) << shift 8629 if b < 0x80 { 8630 break 8631 } 8632 } 8633 hasFields[0] |= uint64(0x00000010) 8634 case 6: 8635 if wireType != 2 { 8636 return fmt.Errorf("proto: wrong wireType = %d for field SinceTime", wireType) 8637 } 8638 var msglen int 8639 for shift := uint(0); ; shift += 7 { 8640 if shift >= 64 { 8641 return ErrIntOverflowApplication 8642 } 8643 if iNdEx >= l { 8644 return io.ErrUnexpectedEOF 8645 } 8646 b := dAtA[iNdEx] 8647 iNdEx++ 8648 msglen |= int(b&0x7F) << shift 8649 if b < 0x80 { 8650 break 8651 } 8652 } 8653 if msglen < 0 { 8654 return ErrInvalidLengthApplication 8655 } 8656 postIndex := iNdEx + msglen 8657 if postIndex < 0 { 8658 return ErrInvalidLengthApplication 8659 } 8660 if postIndex > l { 8661 return io.ErrUnexpectedEOF 8662 } 8663 if m.SinceTime == nil { 8664 m.SinceTime = &v1.Time{} 8665 } 8666 if err := m.SinceTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8667 return err 8668 } 8669 iNdEx = postIndex 8670 case 7: 8671 if wireType != 0 { 8672 return fmt.Errorf("proto: wrong wireType = %d for field TailLines", wireType) 8673 } 8674 m.TailLines = 0 8675 for shift := uint(0); ; shift += 7 { 8676 if shift >= 64 { 8677 return ErrIntOverflowApplication 8678 } 8679 if iNdEx >= l { 8680 return io.ErrUnexpectedEOF 8681 } 8682 b := dAtA[iNdEx] 8683 iNdEx++ 8684 m.TailLines |= int64(b&0x7F) << shift 8685 if b < 0x80 { 8686 break 8687 } 8688 } 8689 hasFields[0] |= uint64(0x00000020) 8690 case 8: 8691 if wireType != 0 { 8692 return fmt.Errorf("proto: wrong wireType = %d for field Follow", wireType) 8693 } 8694 var v int 8695 for shift := uint(0); ; shift += 7 { 8696 if shift >= 64 { 8697 return ErrIntOverflowApplication 8698 } 8699 if iNdEx >= l { 8700 return io.ErrUnexpectedEOF 8701 } 8702 b := dAtA[iNdEx] 8703 iNdEx++ 8704 v |= int(b&0x7F) << shift 8705 if b < 0x80 { 8706 break 8707 } 8708 } 8709 m.Follow = bool(v != 0) 8710 hasFields[0] |= uint64(0x00000040) 8711 default: 8712 iNdEx = preIndex 8713 skippy, err := skipApplication(dAtA[iNdEx:]) 8714 if err != nil { 8715 return err 8716 } 8717 if skippy < 0 { 8718 return ErrInvalidLengthApplication 8719 } 8720 if (iNdEx + skippy) < 0 { 8721 return ErrInvalidLengthApplication 8722 } 8723 if (iNdEx + skippy) > l { 8724 return io.ErrUnexpectedEOF 8725 } 8726 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8727 iNdEx += skippy 8728 } 8729 } 8730 if hasFields[0]&uint64(0x00000001) == 0 { 8731 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 8732 } 8733 if hasFields[0]&uint64(0x00000002) == 0 { 8734 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("namespace") 8735 } 8736 if hasFields[0]&uint64(0x00000004) == 0 { 8737 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("podName") 8738 } 8739 if hasFields[0]&uint64(0x00000008) == 0 { 8740 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("container") 8741 } 8742 if hasFields[0]&uint64(0x00000010) == 0 { 8743 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("sinceSeconds") 8744 } 8745 if hasFields[0]&uint64(0x00000020) == 0 { 8746 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("tailLines") 8747 } 8748 if hasFields[0]&uint64(0x00000040) == 0 { 8749 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("follow") 8750 } 8751 8752 if iNdEx > l { 8753 return io.ErrUnexpectedEOF 8754 } 8755 return nil 8756 } 8757 func (m *LogEntry) Unmarshal(dAtA []byte) error { 8758 var hasFields [1]uint64 8759 l := len(dAtA) 8760 iNdEx := 0 8761 for iNdEx < l { 8762 preIndex := iNdEx 8763 var wire uint64 8764 for shift := uint(0); ; shift += 7 { 8765 if shift >= 64 { 8766 return ErrIntOverflowApplication 8767 } 8768 if iNdEx >= l { 8769 return io.ErrUnexpectedEOF 8770 } 8771 b := dAtA[iNdEx] 8772 iNdEx++ 8773 wire |= uint64(b&0x7F) << shift 8774 if b < 0x80 { 8775 break 8776 } 8777 } 8778 fieldNum := int32(wire >> 3) 8779 wireType := int(wire & 0x7) 8780 if wireType == 4 { 8781 return fmt.Errorf("proto: LogEntry: wiretype end group for non-group") 8782 } 8783 if fieldNum <= 0 { 8784 return fmt.Errorf("proto: LogEntry: illegal tag %d (wire type %d)", fieldNum, wire) 8785 } 8786 switch fieldNum { 8787 case 1: 8788 if wireType != 2 { 8789 return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType) 8790 } 8791 var stringLen uint64 8792 for shift := uint(0); ; shift += 7 { 8793 if shift >= 64 { 8794 return ErrIntOverflowApplication 8795 } 8796 if iNdEx >= l { 8797 return io.ErrUnexpectedEOF 8798 } 8799 b := dAtA[iNdEx] 8800 iNdEx++ 8801 stringLen |= uint64(b&0x7F) << shift 8802 if b < 0x80 { 8803 break 8804 } 8805 } 8806 intStringLen := int(stringLen) 8807 if intStringLen < 0 { 8808 return ErrInvalidLengthApplication 8809 } 8810 postIndex := iNdEx + intStringLen 8811 if postIndex < 0 { 8812 return ErrInvalidLengthApplication 8813 } 8814 if postIndex > l { 8815 return io.ErrUnexpectedEOF 8816 } 8817 m.Content = string(dAtA[iNdEx:postIndex]) 8818 iNdEx = postIndex 8819 hasFields[0] |= uint64(0x00000001) 8820 case 2: 8821 if wireType != 2 { 8822 return fmt.Errorf("proto: wrong wireType = %d for field TimeStamp", wireType) 8823 } 8824 var msglen int 8825 for shift := uint(0); ; shift += 7 { 8826 if shift >= 64 { 8827 return ErrIntOverflowApplication 8828 } 8829 if iNdEx >= l { 8830 return io.ErrUnexpectedEOF 8831 } 8832 b := dAtA[iNdEx] 8833 iNdEx++ 8834 msglen |= int(b&0x7F) << shift 8835 if b < 0x80 { 8836 break 8837 } 8838 } 8839 if msglen < 0 { 8840 return ErrInvalidLengthApplication 8841 } 8842 postIndex := iNdEx + msglen 8843 if postIndex < 0 { 8844 return ErrInvalidLengthApplication 8845 } 8846 if postIndex > l { 8847 return io.ErrUnexpectedEOF 8848 } 8849 if err := m.TimeStamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 8850 return err 8851 } 8852 iNdEx = postIndex 8853 hasFields[0] |= uint64(0x00000002) 8854 case 3: 8855 if wireType != 0 { 8856 return fmt.Errorf("proto: wrong wireType = %d for field Last", wireType) 8857 } 8858 var v int 8859 for shift := uint(0); ; shift += 7 { 8860 if shift >= 64 { 8861 return ErrIntOverflowApplication 8862 } 8863 if iNdEx >= l { 8864 return io.ErrUnexpectedEOF 8865 } 8866 b := dAtA[iNdEx] 8867 iNdEx++ 8868 v |= int(b&0x7F) << shift 8869 if b < 0x80 { 8870 break 8871 } 8872 } 8873 m.Last = bool(v != 0) 8874 hasFields[0] |= uint64(0x00000004) 8875 default: 8876 iNdEx = preIndex 8877 skippy, err := skipApplication(dAtA[iNdEx:]) 8878 if err != nil { 8879 return err 8880 } 8881 if skippy < 0 { 8882 return ErrInvalidLengthApplication 8883 } 8884 if (iNdEx + skippy) < 0 { 8885 return ErrInvalidLengthApplication 8886 } 8887 if (iNdEx + skippy) > l { 8888 return io.ErrUnexpectedEOF 8889 } 8890 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8891 iNdEx += skippy 8892 } 8893 } 8894 if hasFields[0]&uint64(0x00000001) == 0 { 8895 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("content") 8896 } 8897 if hasFields[0]&uint64(0x00000002) == 0 { 8898 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("timeStamp") 8899 } 8900 if hasFields[0]&uint64(0x00000004) == 0 { 8901 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("last") 8902 } 8903 8904 if iNdEx > l { 8905 return io.ErrUnexpectedEOF 8906 } 8907 return nil 8908 } 8909 func (m *OperationTerminateRequest) Unmarshal(dAtA []byte) error { 8910 var hasFields [1]uint64 8911 l := len(dAtA) 8912 iNdEx := 0 8913 for iNdEx < l { 8914 preIndex := iNdEx 8915 var wire uint64 8916 for shift := uint(0); ; shift += 7 { 8917 if shift >= 64 { 8918 return ErrIntOverflowApplication 8919 } 8920 if iNdEx >= l { 8921 return io.ErrUnexpectedEOF 8922 } 8923 b := dAtA[iNdEx] 8924 iNdEx++ 8925 wire |= uint64(b&0x7F) << shift 8926 if b < 0x80 { 8927 break 8928 } 8929 } 8930 fieldNum := int32(wire >> 3) 8931 wireType := int(wire & 0x7) 8932 if wireType == 4 { 8933 return fmt.Errorf("proto: OperationTerminateRequest: wiretype end group for non-group") 8934 } 8935 if fieldNum <= 0 { 8936 return fmt.Errorf("proto: OperationTerminateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 8937 } 8938 switch fieldNum { 8939 case 1: 8940 if wireType != 2 { 8941 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 8942 } 8943 var stringLen uint64 8944 for shift := uint(0); ; shift += 7 { 8945 if shift >= 64 { 8946 return ErrIntOverflowApplication 8947 } 8948 if iNdEx >= l { 8949 return io.ErrUnexpectedEOF 8950 } 8951 b := dAtA[iNdEx] 8952 iNdEx++ 8953 stringLen |= uint64(b&0x7F) << shift 8954 if b < 0x80 { 8955 break 8956 } 8957 } 8958 intStringLen := int(stringLen) 8959 if intStringLen < 0 { 8960 return ErrInvalidLengthApplication 8961 } 8962 postIndex := iNdEx + intStringLen 8963 if postIndex < 0 { 8964 return ErrInvalidLengthApplication 8965 } 8966 if postIndex > l { 8967 return io.ErrUnexpectedEOF 8968 } 8969 s := string(dAtA[iNdEx:postIndex]) 8970 m.Name = &s 8971 iNdEx = postIndex 8972 hasFields[0] |= uint64(0x00000001) 8973 default: 8974 iNdEx = preIndex 8975 skippy, err := skipApplication(dAtA[iNdEx:]) 8976 if err != nil { 8977 return err 8978 } 8979 if skippy < 0 { 8980 return ErrInvalidLengthApplication 8981 } 8982 if (iNdEx + skippy) < 0 { 8983 return ErrInvalidLengthApplication 8984 } 8985 if (iNdEx + skippy) > l { 8986 return io.ErrUnexpectedEOF 8987 } 8988 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 8989 iNdEx += skippy 8990 } 8991 } 8992 if hasFields[0]&uint64(0x00000001) == 0 { 8993 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 8994 } 8995 8996 if iNdEx > l { 8997 return io.ErrUnexpectedEOF 8998 } 8999 return nil 9000 } 9001 func (m *ApplicationSyncWindowsQuery) Unmarshal(dAtA []byte) error { 9002 var hasFields [1]uint64 9003 l := len(dAtA) 9004 iNdEx := 0 9005 for iNdEx < l { 9006 preIndex := iNdEx 9007 var wire uint64 9008 for shift := uint(0); ; shift += 7 { 9009 if shift >= 64 { 9010 return ErrIntOverflowApplication 9011 } 9012 if iNdEx >= l { 9013 return io.ErrUnexpectedEOF 9014 } 9015 b := dAtA[iNdEx] 9016 iNdEx++ 9017 wire |= uint64(b&0x7F) << shift 9018 if b < 0x80 { 9019 break 9020 } 9021 } 9022 fieldNum := int32(wire >> 3) 9023 wireType := int(wire & 0x7) 9024 if wireType == 4 { 9025 return fmt.Errorf("proto: ApplicationSyncWindowsQuery: wiretype end group for non-group") 9026 } 9027 if fieldNum <= 0 { 9028 return fmt.Errorf("proto: ApplicationSyncWindowsQuery: illegal tag %d (wire type %d)", fieldNum, wire) 9029 } 9030 switch fieldNum { 9031 case 1: 9032 if wireType != 2 { 9033 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 9034 } 9035 var stringLen uint64 9036 for shift := uint(0); ; shift += 7 { 9037 if shift >= 64 { 9038 return ErrIntOverflowApplication 9039 } 9040 if iNdEx >= l { 9041 return io.ErrUnexpectedEOF 9042 } 9043 b := dAtA[iNdEx] 9044 iNdEx++ 9045 stringLen |= uint64(b&0x7F) << shift 9046 if b < 0x80 { 9047 break 9048 } 9049 } 9050 intStringLen := int(stringLen) 9051 if intStringLen < 0 { 9052 return ErrInvalidLengthApplication 9053 } 9054 postIndex := iNdEx + intStringLen 9055 if postIndex < 0 { 9056 return ErrInvalidLengthApplication 9057 } 9058 if postIndex > l { 9059 return io.ErrUnexpectedEOF 9060 } 9061 s := string(dAtA[iNdEx:postIndex]) 9062 m.Name = &s 9063 iNdEx = postIndex 9064 hasFields[0] |= uint64(0x00000001) 9065 default: 9066 iNdEx = preIndex 9067 skippy, err := skipApplication(dAtA[iNdEx:]) 9068 if err != nil { 9069 return err 9070 } 9071 if skippy < 0 { 9072 return ErrInvalidLengthApplication 9073 } 9074 if (iNdEx + skippy) < 0 { 9075 return ErrInvalidLengthApplication 9076 } 9077 if (iNdEx + skippy) > l { 9078 return io.ErrUnexpectedEOF 9079 } 9080 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9081 iNdEx += skippy 9082 } 9083 } 9084 if hasFields[0]&uint64(0x00000001) == 0 { 9085 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("name") 9086 } 9087 9088 if iNdEx > l { 9089 return io.ErrUnexpectedEOF 9090 } 9091 return nil 9092 } 9093 func (m *ApplicationSyncWindowsResponse) Unmarshal(dAtA []byte) error { 9094 var hasFields [1]uint64 9095 l := len(dAtA) 9096 iNdEx := 0 9097 for iNdEx < l { 9098 preIndex := iNdEx 9099 var wire uint64 9100 for shift := uint(0); ; shift += 7 { 9101 if shift >= 64 { 9102 return ErrIntOverflowApplication 9103 } 9104 if iNdEx >= l { 9105 return io.ErrUnexpectedEOF 9106 } 9107 b := dAtA[iNdEx] 9108 iNdEx++ 9109 wire |= uint64(b&0x7F) << shift 9110 if b < 0x80 { 9111 break 9112 } 9113 } 9114 fieldNum := int32(wire >> 3) 9115 wireType := int(wire & 0x7) 9116 if wireType == 4 { 9117 return fmt.Errorf("proto: ApplicationSyncWindowsResponse: wiretype end group for non-group") 9118 } 9119 if fieldNum <= 0 { 9120 return fmt.Errorf("proto: ApplicationSyncWindowsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 9121 } 9122 switch fieldNum { 9123 case 1: 9124 if wireType != 2 { 9125 return fmt.Errorf("proto: wrong wireType = %d for field ActiveWindows", wireType) 9126 } 9127 var msglen int 9128 for shift := uint(0); ; shift += 7 { 9129 if shift >= 64 { 9130 return ErrIntOverflowApplication 9131 } 9132 if iNdEx >= l { 9133 return io.ErrUnexpectedEOF 9134 } 9135 b := dAtA[iNdEx] 9136 iNdEx++ 9137 msglen |= int(b&0x7F) << shift 9138 if b < 0x80 { 9139 break 9140 } 9141 } 9142 if msglen < 0 { 9143 return ErrInvalidLengthApplication 9144 } 9145 postIndex := iNdEx + msglen 9146 if postIndex < 0 { 9147 return ErrInvalidLengthApplication 9148 } 9149 if postIndex > l { 9150 return io.ErrUnexpectedEOF 9151 } 9152 m.ActiveWindows = append(m.ActiveWindows, &ApplicationSyncWindow{}) 9153 if err := m.ActiveWindows[len(m.ActiveWindows)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9154 return err 9155 } 9156 iNdEx = postIndex 9157 case 2: 9158 if wireType != 2 { 9159 return fmt.Errorf("proto: wrong wireType = %d for field AssignedWindows", wireType) 9160 } 9161 var msglen int 9162 for shift := uint(0); ; shift += 7 { 9163 if shift >= 64 { 9164 return ErrIntOverflowApplication 9165 } 9166 if iNdEx >= l { 9167 return io.ErrUnexpectedEOF 9168 } 9169 b := dAtA[iNdEx] 9170 iNdEx++ 9171 msglen |= int(b&0x7F) << shift 9172 if b < 0x80 { 9173 break 9174 } 9175 } 9176 if msglen < 0 { 9177 return ErrInvalidLengthApplication 9178 } 9179 postIndex := iNdEx + msglen 9180 if postIndex < 0 { 9181 return ErrInvalidLengthApplication 9182 } 9183 if postIndex > l { 9184 return io.ErrUnexpectedEOF 9185 } 9186 m.AssignedWindows = append(m.AssignedWindows, &ApplicationSyncWindow{}) 9187 if err := m.AssignedWindows[len(m.AssignedWindows)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9188 return err 9189 } 9190 iNdEx = postIndex 9191 case 3: 9192 if wireType != 0 { 9193 return fmt.Errorf("proto: wrong wireType = %d for field CanSync", wireType) 9194 } 9195 var v int 9196 for shift := uint(0); ; shift += 7 { 9197 if shift >= 64 { 9198 return ErrIntOverflowApplication 9199 } 9200 if iNdEx >= l { 9201 return io.ErrUnexpectedEOF 9202 } 9203 b := dAtA[iNdEx] 9204 iNdEx++ 9205 v |= int(b&0x7F) << shift 9206 if b < 0x80 { 9207 break 9208 } 9209 } 9210 b := bool(v != 0) 9211 m.CanSync = &b 9212 hasFields[0] |= uint64(0x00000001) 9213 default: 9214 iNdEx = preIndex 9215 skippy, err := skipApplication(dAtA[iNdEx:]) 9216 if err != nil { 9217 return err 9218 } 9219 if skippy < 0 { 9220 return ErrInvalidLengthApplication 9221 } 9222 if (iNdEx + skippy) < 0 { 9223 return ErrInvalidLengthApplication 9224 } 9225 if (iNdEx + skippy) > l { 9226 return io.ErrUnexpectedEOF 9227 } 9228 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9229 iNdEx += skippy 9230 } 9231 } 9232 if hasFields[0]&uint64(0x00000001) == 0 { 9233 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("canSync") 9234 } 9235 9236 if iNdEx > l { 9237 return io.ErrUnexpectedEOF 9238 } 9239 return nil 9240 } 9241 func (m *ApplicationSyncWindow) Unmarshal(dAtA []byte) error { 9242 var hasFields [1]uint64 9243 l := len(dAtA) 9244 iNdEx := 0 9245 for iNdEx < l { 9246 preIndex := iNdEx 9247 var wire uint64 9248 for shift := uint(0); ; shift += 7 { 9249 if shift >= 64 { 9250 return ErrIntOverflowApplication 9251 } 9252 if iNdEx >= l { 9253 return io.ErrUnexpectedEOF 9254 } 9255 b := dAtA[iNdEx] 9256 iNdEx++ 9257 wire |= uint64(b&0x7F) << shift 9258 if b < 0x80 { 9259 break 9260 } 9261 } 9262 fieldNum := int32(wire >> 3) 9263 wireType := int(wire & 0x7) 9264 if wireType == 4 { 9265 return fmt.Errorf("proto: ApplicationSyncWindow: wiretype end group for non-group") 9266 } 9267 if fieldNum <= 0 { 9268 return fmt.Errorf("proto: ApplicationSyncWindow: illegal tag %d (wire type %d)", fieldNum, wire) 9269 } 9270 switch fieldNum { 9271 case 1: 9272 if wireType != 2 { 9273 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) 9274 } 9275 var stringLen uint64 9276 for shift := uint(0); ; shift += 7 { 9277 if shift >= 64 { 9278 return ErrIntOverflowApplication 9279 } 9280 if iNdEx >= l { 9281 return io.ErrUnexpectedEOF 9282 } 9283 b := dAtA[iNdEx] 9284 iNdEx++ 9285 stringLen |= uint64(b&0x7F) << shift 9286 if b < 0x80 { 9287 break 9288 } 9289 } 9290 intStringLen := int(stringLen) 9291 if intStringLen < 0 { 9292 return ErrInvalidLengthApplication 9293 } 9294 postIndex := iNdEx + intStringLen 9295 if postIndex < 0 { 9296 return ErrInvalidLengthApplication 9297 } 9298 if postIndex > l { 9299 return io.ErrUnexpectedEOF 9300 } 9301 s := string(dAtA[iNdEx:postIndex]) 9302 m.Kind = &s 9303 iNdEx = postIndex 9304 hasFields[0] |= uint64(0x00000001) 9305 case 2: 9306 if wireType != 2 { 9307 return fmt.Errorf("proto: wrong wireType = %d for field Schedule", wireType) 9308 } 9309 var stringLen uint64 9310 for shift := uint(0); ; shift += 7 { 9311 if shift >= 64 { 9312 return ErrIntOverflowApplication 9313 } 9314 if iNdEx >= l { 9315 return io.ErrUnexpectedEOF 9316 } 9317 b := dAtA[iNdEx] 9318 iNdEx++ 9319 stringLen |= uint64(b&0x7F) << shift 9320 if b < 0x80 { 9321 break 9322 } 9323 } 9324 intStringLen := int(stringLen) 9325 if intStringLen < 0 { 9326 return ErrInvalidLengthApplication 9327 } 9328 postIndex := iNdEx + intStringLen 9329 if postIndex < 0 { 9330 return ErrInvalidLengthApplication 9331 } 9332 if postIndex > l { 9333 return io.ErrUnexpectedEOF 9334 } 9335 s := string(dAtA[iNdEx:postIndex]) 9336 m.Schedule = &s 9337 iNdEx = postIndex 9338 hasFields[0] |= uint64(0x00000002) 9339 case 3: 9340 if wireType != 2 { 9341 return fmt.Errorf("proto: wrong wireType = %d for field Duration", wireType) 9342 } 9343 var stringLen uint64 9344 for shift := uint(0); ; shift += 7 { 9345 if shift >= 64 { 9346 return ErrIntOverflowApplication 9347 } 9348 if iNdEx >= l { 9349 return io.ErrUnexpectedEOF 9350 } 9351 b := dAtA[iNdEx] 9352 iNdEx++ 9353 stringLen |= uint64(b&0x7F) << shift 9354 if b < 0x80 { 9355 break 9356 } 9357 } 9358 intStringLen := int(stringLen) 9359 if intStringLen < 0 { 9360 return ErrInvalidLengthApplication 9361 } 9362 postIndex := iNdEx + intStringLen 9363 if postIndex < 0 { 9364 return ErrInvalidLengthApplication 9365 } 9366 if postIndex > l { 9367 return io.ErrUnexpectedEOF 9368 } 9369 s := string(dAtA[iNdEx:postIndex]) 9370 m.Duration = &s 9371 iNdEx = postIndex 9372 hasFields[0] |= uint64(0x00000004) 9373 case 4: 9374 if wireType != 0 { 9375 return fmt.Errorf("proto: wrong wireType = %d for field ManualSync", wireType) 9376 } 9377 var v int 9378 for shift := uint(0); ; shift += 7 { 9379 if shift >= 64 { 9380 return ErrIntOverflowApplication 9381 } 9382 if iNdEx >= l { 9383 return io.ErrUnexpectedEOF 9384 } 9385 b := dAtA[iNdEx] 9386 iNdEx++ 9387 v |= int(b&0x7F) << shift 9388 if b < 0x80 { 9389 break 9390 } 9391 } 9392 b := bool(v != 0) 9393 m.ManualSync = &b 9394 hasFields[0] |= uint64(0x00000008) 9395 default: 9396 iNdEx = preIndex 9397 skippy, err := skipApplication(dAtA[iNdEx:]) 9398 if err != nil { 9399 return err 9400 } 9401 if skippy < 0 { 9402 return ErrInvalidLengthApplication 9403 } 9404 if (iNdEx + skippy) < 0 { 9405 return ErrInvalidLengthApplication 9406 } 9407 if (iNdEx + skippy) > l { 9408 return io.ErrUnexpectedEOF 9409 } 9410 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9411 iNdEx += skippy 9412 } 9413 } 9414 if hasFields[0]&uint64(0x00000001) == 0 { 9415 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("kind") 9416 } 9417 if hasFields[0]&uint64(0x00000002) == 0 { 9418 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("schedule") 9419 } 9420 if hasFields[0]&uint64(0x00000004) == 0 { 9421 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("duration") 9422 } 9423 if hasFields[0]&uint64(0x00000008) == 0 { 9424 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("manualSync") 9425 } 9426 9427 if iNdEx > l { 9428 return io.ErrUnexpectedEOF 9429 } 9430 return nil 9431 } 9432 func (m *OperationTerminateResponse) Unmarshal(dAtA []byte) error { 9433 l := len(dAtA) 9434 iNdEx := 0 9435 for iNdEx < l { 9436 preIndex := iNdEx 9437 var wire uint64 9438 for shift := uint(0); ; shift += 7 { 9439 if shift >= 64 { 9440 return ErrIntOverflowApplication 9441 } 9442 if iNdEx >= l { 9443 return io.ErrUnexpectedEOF 9444 } 9445 b := dAtA[iNdEx] 9446 iNdEx++ 9447 wire |= uint64(b&0x7F) << shift 9448 if b < 0x80 { 9449 break 9450 } 9451 } 9452 fieldNum := int32(wire >> 3) 9453 wireType := int(wire & 0x7) 9454 if wireType == 4 { 9455 return fmt.Errorf("proto: OperationTerminateResponse: wiretype end group for non-group") 9456 } 9457 if fieldNum <= 0 { 9458 return fmt.Errorf("proto: OperationTerminateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 9459 } 9460 switch fieldNum { 9461 default: 9462 iNdEx = preIndex 9463 skippy, err := skipApplication(dAtA[iNdEx:]) 9464 if err != nil { 9465 return err 9466 } 9467 if skippy < 0 { 9468 return ErrInvalidLengthApplication 9469 } 9470 if (iNdEx + skippy) < 0 { 9471 return ErrInvalidLengthApplication 9472 } 9473 if (iNdEx + skippy) > l { 9474 return io.ErrUnexpectedEOF 9475 } 9476 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9477 iNdEx += skippy 9478 } 9479 } 9480 9481 if iNdEx > l { 9482 return io.ErrUnexpectedEOF 9483 } 9484 return nil 9485 } 9486 func (m *ResourcesQuery) Unmarshal(dAtA []byte) error { 9487 var hasFields [1]uint64 9488 l := len(dAtA) 9489 iNdEx := 0 9490 for iNdEx < l { 9491 preIndex := iNdEx 9492 var wire uint64 9493 for shift := uint(0); ; shift += 7 { 9494 if shift >= 64 { 9495 return ErrIntOverflowApplication 9496 } 9497 if iNdEx >= l { 9498 return io.ErrUnexpectedEOF 9499 } 9500 b := dAtA[iNdEx] 9501 iNdEx++ 9502 wire |= uint64(b&0x7F) << shift 9503 if b < 0x80 { 9504 break 9505 } 9506 } 9507 fieldNum := int32(wire >> 3) 9508 wireType := int(wire & 0x7) 9509 if wireType == 4 { 9510 return fmt.Errorf("proto: ResourcesQuery: wiretype end group for non-group") 9511 } 9512 if fieldNum <= 0 { 9513 return fmt.Errorf("proto: ResourcesQuery: illegal tag %d (wire type %d)", fieldNum, wire) 9514 } 9515 switch fieldNum { 9516 case 1: 9517 if wireType != 2 { 9518 return fmt.Errorf("proto: wrong wireType = %d for field ApplicationName", wireType) 9519 } 9520 var stringLen uint64 9521 for shift := uint(0); ; shift += 7 { 9522 if shift >= 64 { 9523 return ErrIntOverflowApplication 9524 } 9525 if iNdEx >= l { 9526 return io.ErrUnexpectedEOF 9527 } 9528 b := dAtA[iNdEx] 9529 iNdEx++ 9530 stringLen |= uint64(b&0x7F) << shift 9531 if b < 0x80 { 9532 break 9533 } 9534 } 9535 intStringLen := int(stringLen) 9536 if intStringLen < 0 { 9537 return ErrInvalidLengthApplication 9538 } 9539 postIndex := iNdEx + intStringLen 9540 if postIndex < 0 { 9541 return ErrInvalidLengthApplication 9542 } 9543 if postIndex > l { 9544 return io.ErrUnexpectedEOF 9545 } 9546 s := string(dAtA[iNdEx:postIndex]) 9547 m.ApplicationName = &s 9548 iNdEx = postIndex 9549 hasFields[0] |= uint64(0x00000001) 9550 case 2: 9551 if wireType != 2 { 9552 return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) 9553 } 9554 var stringLen uint64 9555 for shift := uint(0); ; shift += 7 { 9556 if shift >= 64 { 9557 return ErrIntOverflowApplication 9558 } 9559 if iNdEx >= l { 9560 return io.ErrUnexpectedEOF 9561 } 9562 b := dAtA[iNdEx] 9563 iNdEx++ 9564 stringLen |= uint64(b&0x7F) << shift 9565 if b < 0x80 { 9566 break 9567 } 9568 } 9569 intStringLen := int(stringLen) 9570 if intStringLen < 0 { 9571 return ErrInvalidLengthApplication 9572 } 9573 postIndex := iNdEx + intStringLen 9574 if postIndex < 0 { 9575 return ErrInvalidLengthApplication 9576 } 9577 if postIndex > l { 9578 return io.ErrUnexpectedEOF 9579 } 9580 m.Namespace = string(dAtA[iNdEx:postIndex]) 9581 iNdEx = postIndex 9582 case 3: 9583 if wireType != 2 { 9584 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 9585 } 9586 var stringLen uint64 9587 for shift := uint(0); ; shift += 7 { 9588 if shift >= 64 { 9589 return ErrIntOverflowApplication 9590 } 9591 if iNdEx >= l { 9592 return io.ErrUnexpectedEOF 9593 } 9594 b := dAtA[iNdEx] 9595 iNdEx++ 9596 stringLen |= uint64(b&0x7F) << shift 9597 if b < 0x80 { 9598 break 9599 } 9600 } 9601 intStringLen := int(stringLen) 9602 if intStringLen < 0 { 9603 return ErrInvalidLengthApplication 9604 } 9605 postIndex := iNdEx + intStringLen 9606 if postIndex < 0 { 9607 return ErrInvalidLengthApplication 9608 } 9609 if postIndex > l { 9610 return io.ErrUnexpectedEOF 9611 } 9612 m.Name = string(dAtA[iNdEx:postIndex]) 9613 iNdEx = postIndex 9614 case 4: 9615 if wireType != 2 { 9616 return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) 9617 } 9618 var stringLen uint64 9619 for shift := uint(0); ; shift += 7 { 9620 if shift >= 64 { 9621 return ErrIntOverflowApplication 9622 } 9623 if iNdEx >= l { 9624 return io.ErrUnexpectedEOF 9625 } 9626 b := dAtA[iNdEx] 9627 iNdEx++ 9628 stringLen |= uint64(b&0x7F) << shift 9629 if b < 0x80 { 9630 break 9631 } 9632 } 9633 intStringLen := int(stringLen) 9634 if intStringLen < 0 { 9635 return ErrInvalidLengthApplication 9636 } 9637 postIndex := iNdEx + intStringLen 9638 if postIndex < 0 { 9639 return ErrInvalidLengthApplication 9640 } 9641 if postIndex > l { 9642 return io.ErrUnexpectedEOF 9643 } 9644 m.Version = string(dAtA[iNdEx:postIndex]) 9645 iNdEx = postIndex 9646 case 5: 9647 if wireType != 2 { 9648 return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) 9649 } 9650 var stringLen uint64 9651 for shift := uint(0); ; shift += 7 { 9652 if shift >= 64 { 9653 return ErrIntOverflowApplication 9654 } 9655 if iNdEx >= l { 9656 return io.ErrUnexpectedEOF 9657 } 9658 b := dAtA[iNdEx] 9659 iNdEx++ 9660 stringLen |= uint64(b&0x7F) << shift 9661 if b < 0x80 { 9662 break 9663 } 9664 } 9665 intStringLen := int(stringLen) 9666 if intStringLen < 0 { 9667 return ErrInvalidLengthApplication 9668 } 9669 postIndex := iNdEx + intStringLen 9670 if postIndex < 0 { 9671 return ErrInvalidLengthApplication 9672 } 9673 if postIndex > l { 9674 return io.ErrUnexpectedEOF 9675 } 9676 m.Group = string(dAtA[iNdEx:postIndex]) 9677 iNdEx = postIndex 9678 case 6: 9679 if wireType != 2 { 9680 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) 9681 } 9682 var stringLen uint64 9683 for shift := uint(0); ; shift += 7 { 9684 if shift >= 64 { 9685 return ErrIntOverflowApplication 9686 } 9687 if iNdEx >= l { 9688 return io.ErrUnexpectedEOF 9689 } 9690 b := dAtA[iNdEx] 9691 iNdEx++ 9692 stringLen |= uint64(b&0x7F) << shift 9693 if b < 0x80 { 9694 break 9695 } 9696 } 9697 intStringLen := int(stringLen) 9698 if intStringLen < 0 { 9699 return ErrInvalidLengthApplication 9700 } 9701 postIndex := iNdEx + intStringLen 9702 if postIndex < 0 { 9703 return ErrInvalidLengthApplication 9704 } 9705 if postIndex > l { 9706 return io.ErrUnexpectedEOF 9707 } 9708 m.Kind = string(dAtA[iNdEx:postIndex]) 9709 iNdEx = postIndex 9710 default: 9711 iNdEx = preIndex 9712 skippy, err := skipApplication(dAtA[iNdEx:]) 9713 if err != nil { 9714 return err 9715 } 9716 if skippy < 0 { 9717 return ErrInvalidLengthApplication 9718 } 9719 if (iNdEx + skippy) < 0 { 9720 return ErrInvalidLengthApplication 9721 } 9722 if (iNdEx + skippy) > l { 9723 return io.ErrUnexpectedEOF 9724 } 9725 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9726 iNdEx += skippy 9727 } 9728 } 9729 if hasFields[0]&uint64(0x00000001) == 0 { 9730 return github_com_gogo_protobuf_proto.NewRequiredNotSetError("applicationName") 9731 } 9732 9733 if iNdEx > l { 9734 return io.ErrUnexpectedEOF 9735 } 9736 return nil 9737 } 9738 func (m *ManagedResourcesResponse) Unmarshal(dAtA []byte) error { 9739 l := len(dAtA) 9740 iNdEx := 0 9741 for iNdEx < l { 9742 preIndex := iNdEx 9743 var wire uint64 9744 for shift := uint(0); ; shift += 7 { 9745 if shift >= 64 { 9746 return ErrIntOverflowApplication 9747 } 9748 if iNdEx >= l { 9749 return io.ErrUnexpectedEOF 9750 } 9751 b := dAtA[iNdEx] 9752 iNdEx++ 9753 wire |= uint64(b&0x7F) << shift 9754 if b < 0x80 { 9755 break 9756 } 9757 } 9758 fieldNum := int32(wire >> 3) 9759 wireType := int(wire & 0x7) 9760 if wireType == 4 { 9761 return fmt.Errorf("proto: ManagedResourcesResponse: wiretype end group for non-group") 9762 } 9763 if fieldNum <= 0 { 9764 return fmt.Errorf("proto: ManagedResourcesResponse: illegal tag %d (wire type %d)", fieldNum, wire) 9765 } 9766 switch fieldNum { 9767 case 1: 9768 if wireType != 2 { 9769 return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) 9770 } 9771 var msglen int 9772 for shift := uint(0); ; shift += 7 { 9773 if shift >= 64 { 9774 return ErrIntOverflowApplication 9775 } 9776 if iNdEx >= l { 9777 return io.ErrUnexpectedEOF 9778 } 9779 b := dAtA[iNdEx] 9780 iNdEx++ 9781 msglen |= int(b&0x7F) << shift 9782 if b < 0x80 { 9783 break 9784 } 9785 } 9786 if msglen < 0 { 9787 return ErrInvalidLengthApplication 9788 } 9789 postIndex := iNdEx + msglen 9790 if postIndex < 0 { 9791 return ErrInvalidLengthApplication 9792 } 9793 if postIndex > l { 9794 return io.ErrUnexpectedEOF 9795 } 9796 m.Items = append(m.Items, &v1alpha1.ResourceDiff{}) 9797 if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 9798 return err 9799 } 9800 iNdEx = postIndex 9801 default: 9802 iNdEx = preIndex 9803 skippy, err := skipApplication(dAtA[iNdEx:]) 9804 if err != nil { 9805 return err 9806 } 9807 if skippy < 0 { 9808 return ErrInvalidLengthApplication 9809 } 9810 if (iNdEx + skippy) < 0 { 9811 return ErrInvalidLengthApplication 9812 } 9813 if (iNdEx + skippy) > l { 9814 return io.ErrUnexpectedEOF 9815 } 9816 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 9817 iNdEx += skippy 9818 } 9819 } 9820 9821 if iNdEx > l { 9822 return io.ErrUnexpectedEOF 9823 } 9824 return nil 9825 } 9826 func skipApplication(dAtA []byte) (n int, err error) { 9827 l := len(dAtA) 9828 iNdEx := 0 9829 depth := 0 9830 for iNdEx < l { 9831 var wire uint64 9832 for shift := uint(0); ; shift += 7 { 9833 if shift >= 64 { 9834 return 0, ErrIntOverflowApplication 9835 } 9836 if iNdEx >= l { 9837 return 0, io.ErrUnexpectedEOF 9838 } 9839 b := dAtA[iNdEx] 9840 iNdEx++ 9841 wire |= (uint64(b) & 0x7F) << shift 9842 if b < 0x80 { 9843 break 9844 } 9845 } 9846 wireType := int(wire & 0x7) 9847 switch wireType { 9848 case 0: 9849 for shift := uint(0); ; shift += 7 { 9850 if shift >= 64 { 9851 return 0, ErrIntOverflowApplication 9852 } 9853 if iNdEx >= l { 9854 return 0, io.ErrUnexpectedEOF 9855 } 9856 iNdEx++ 9857 if dAtA[iNdEx-1] < 0x80 { 9858 break 9859 } 9860 } 9861 case 1: 9862 iNdEx += 8 9863 case 2: 9864 var length int 9865 for shift := uint(0); ; shift += 7 { 9866 if shift >= 64 { 9867 return 0, ErrIntOverflowApplication 9868 } 9869 if iNdEx >= l { 9870 return 0, io.ErrUnexpectedEOF 9871 } 9872 b := dAtA[iNdEx] 9873 iNdEx++ 9874 length |= (int(b) & 0x7F) << shift 9875 if b < 0x80 { 9876 break 9877 } 9878 } 9879 if length < 0 { 9880 return 0, ErrInvalidLengthApplication 9881 } 9882 iNdEx += length 9883 case 3: 9884 depth++ 9885 case 4: 9886 if depth == 0 { 9887 return 0, ErrUnexpectedEndOfGroupApplication 9888 } 9889 depth-- 9890 case 5: 9891 iNdEx += 4 9892 default: 9893 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 9894 } 9895 if iNdEx < 0 { 9896 return 0, ErrInvalidLengthApplication 9897 } 9898 if depth == 0 { 9899 return iNdEx, nil 9900 } 9901 } 9902 return 0, io.ErrUnexpectedEOF 9903 } 9904 9905 var ( 9906 ErrInvalidLengthApplication = fmt.Errorf("proto: negative length found during unmarshaling") 9907 ErrIntOverflowApplication = fmt.Errorf("proto: integer overflow") 9908 ErrUnexpectedEndOfGroupApplication = fmt.Errorf("proto: unexpected end of group") 9909 )