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