go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/internal/bugs/monorail/api_proto/projects.pb.go (about) 1 // Copyright 2020 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.31.0 8 // protoc v3.21.7 9 // source: go.chromium.org/luci/analysis/internal/bugs/monorail/api_proto/projects.proto 10 11 package api_proto 12 13 import prpc "go.chromium.org/luci/grpc/prpc" 14 15 import ( 16 context "context" 17 _ "google.golang.org/genproto/googleapis/api/annotations" 18 grpc "google.golang.org/grpc" 19 codes "google.golang.org/grpc/codes" 20 status "google.golang.org/grpc/status" 21 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 22 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 23 emptypb "google.golang.org/protobuf/types/known/emptypb" 24 reflect "reflect" 25 sync "sync" 26 ) 27 28 const ( 29 // Verify that this generated code is sufficiently up-to-date. 30 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 31 // Verify that runtime/protoimpl is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 33 ) 34 35 // Request message for CreateFieldDef method. 36 // Next available tag: 3 37 type CreateFieldDefRequest struct { 38 state protoimpl.MessageState 39 sizeCache protoimpl.SizeCache 40 unknownFields protoimpl.UnknownFields 41 42 // The project resource where this field will be created. 43 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 44 // The field to create. 45 // It must have a display_name and a type with its corresponding settings. 46 Fielddef *FieldDef `protobuf:"bytes,2,opt,name=fielddef,proto3" json:"fielddef,omitempty"` 47 } 48 49 func (x *CreateFieldDefRequest) Reset() { 50 *x = CreateFieldDefRequest{} 51 if protoimpl.UnsafeEnabled { 52 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[0] 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 ms.StoreMessageInfo(mi) 55 } 56 } 57 58 func (x *CreateFieldDefRequest) String() string { 59 return protoimpl.X.MessageStringOf(x) 60 } 61 62 func (*CreateFieldDefRequest) ProtoMessage() {} 63 64 func (x *CreateFieldDefRequest) ProtoReflect() protoreflect.Message { 65 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[0] 66 if protoimpl.UnsafeEnabled && x != nil { 67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 68 if ms.LoadMessageInfo() == nil { 69 ms.StoreMessageInfo(mi) 70 } 71 return ms 72 } 73 return mi.MessageOf(x) 74 } 75 76 // Deprecated: Use CreateFieldDefRequest.ProtoReflect.Descriptor instead. 77 func (*CreateFieldDefRequest) Descriptor() ([]byte, []int) { 78 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescGZIP(), []int{0} 79 } 80 81 func (x *CreateFieldDefRequest) GetParent() string { 82 if x != nil { 83 return x.Parent 84 } 85 return "" 86 } 87 88 func (x *CreateFieldDefRequest) GetFielddef() *FieldDef { 89 if x != nil { 90 return x.Fielddef 91 } 92 return nil 93 } 94 95 // Request message for GetComponentDef method. 96 // Next available tag: 2 97 type GetComponentDefRequest struct { 98 state protoimpl.MessageState 99 sizeCache protoimpl.SizeCache 100 unknownFields protoimpl.UnknownFields 101 102 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 103 } 104 105 func (x *GetComponentDefRequest) Reset() { 106 *x = GetComponentDefRequest{} 107 if protoimpl.UnsafeEnabled { 108 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[1] 109 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 110 ms.StoreMessageInfo(mi) 111 } 112 } 113 114 func (x *GetComponentDefRequest) String() string { 115 return protoimpl.X.MessageStringOf(x) 116 } 117 118 func (*GetComponentDefRequest) ProtoMessage() {} 119 120 func (x *GetComponentDefRequest) ProtoReflect() protoreflect.Message { 121 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[1] 122 if protoimpl.UnsafeEnabled && x != nil { 123 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 124 if ms.LoadMessageInfo() == nil { 125 ms.StoreMessageInfo(mi) 126 } 127 return ms 128 } 129 return mi.MessageOf(x) 130 } 131 132 // Deprecated: Use GetComponentDefRequest.ProtoReflect.Descriptor instead. 133 func (*GetComponentDefRequest) Descriptor() ([]byte, []int) { 134 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescGZIP(), []int{1} 135 } 136 137 func (x *GetComponentDefRequest) GetName() string { 138 if x != nil { 139 return x.Name 140 } 141 return "" 142 } 143 144 // Request message for CreateComponentDef method. 145 // Next available tag: 3 146 type CreateComponentDefRequest struct { 147 state protoimpl.MessageState 148 sizeCache protoimpl.SizeCache 149 unknownFields protoimpl.UnknownFields 150 151 // The project resource where this component will be created. 152 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 153 // The component to create. 154 ComponentDef *ComponentDef `protobuf:"bytes,2,opt,name=component_def,json=componentDef,proto3" json:"component_def,omitempty"` 155 } 156 157 func (x *CreateComponentDefRequest) Reset() { 158 *x = CreateComponentDefRequest{} 159 if protoimpl.UnsafeEnabled { 160 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[2] 161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 162 ms.StoreMessageInfo(mi) 163 } 164 } 165 166 func (x *CreateComponentDefRequest) String() string { 167 return protoimpl.X.MessageStringOf(x) 168 } 169 170 func (*CreateComponentDefRequest) ProtoMessage() {} 171 172 func (x *CreateComponentDefRequest) ProtoReflect() protoreflect.Message { 173 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[2] 174 if protoimpl.UnsafeEnabled && x != nil { 175 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 176 if ms.LoadMessageInfo() == nil { 177 ms.StoreMessageInfo(mi) 178 } 179 return ms 180 } 181 return mi.MessageOf(x) 182 } 183 184 // Deprecated: Use CreateComponentDefRequest.ProtoReflect.Descriptor instead. 185 func (*CreateComponentDefRequest) Descriptor() ([]byte, []int) { 186 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescGZIP(), []int{2} 187 } 188 189 func (x *CreateComponentDefRequest) GetParent() string { 190 if x != nil { 191 return x.Parent 192 } 193 return "" 194 } 195 196 func (x *CreateComponentDefRequest) GetComponentDef() *ComponentDef { 197 if x != nil { 198 return x.ComponentDef 199 } 200 return nil 201 } 202 203 // Request message for DeleteComponentDef method. 204 // Next available tag: 2 205 type DeleteComponentDefRequest struct { 206 state protoimpl.MessageState 207 sizeCache protoimpl.SizeCache 208 unknownFields protoimpl.UnknownFields 209 210 // The component to delete. 211 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 212 } 213 214 func (x *DeleteComponentDefRequest) Reset() { 215 *x = DeleteComponentDefRequest{} 216 if protoimpl.UnsafeEnabled { 217 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[3] 218 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 219 ms.StoreMessageInfo(mi) 220 } 221 } 222 223 func (x *DeleteComponentDefRequest) String() string { 224 return protoimpl.X.MessageStringOf(x) 225 } 226 227 func (*DeleteComponentDefRequest) ProtoMessage() {} 228 229 func (x *DeleteComponentDefRequest) ProtoReflect() protoreflect.Message { 230 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[3] 231 if protoimpl.UnsafeEnabled && x != nil { 232 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 233 if ms.LoadMessageInfo() == nil { 234 ms.StoreMessageInfo(mi) 235 } 236 return ms 237 } 238 return mi.MessageOf(x) 239 } 240 241 // Deprecated: Use DeleteComponentDefRequest.ProtoReflect.Descriptor instead. 242 func (*DeleteComponentDefRequest) Descriptor() ([]byte, []int) { 243 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescGZIP(), []int{3} 244 } 245 246 func (x *DeleteComponentDefRequest) GetName() string { 247 if x != nil { 248 return x.Name 249 } 250 return "" 251 } 252 253 // Request message for ListIssueTemplates 254 // Next available tag: 4 255 type ListIssueTemplatesRequest struct { 256 state protoimpl.MessageState 257 sizeCache protoimpl.SizeCache 258 unknownFields protoimpl.UnknownFields 259 260 // The name of the project these templates belong to. 261 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 262 // The maximum number of items to return. The service may return fewer than 263 // this value. 264 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 265 // A page token, received from a previous `ListIssueTemplates` call. 266 // Provide this to retrieve the subsequent page. 267 // When paginating, all other parameters provided to 268 // `ListIssueTemplatesRequest` must match the call that provided the token. 269 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 270 } 271 272 func (x *ListIssueTemplatesRequest) Reset() { 273 *x = ListIssueTemplatesRequest{} 274 if protoimpl.UnsafeEnabled { 275 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[4] 276 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 277 ms.StoreMessageInfo(mi) 278 } 279 } 280 281 func (x *ListIssueTemplatesRequest) String() string { 282 return protoimpl.X.MessageStringOf(x) 283 } 284 285 func (*ListIssueTemplatesRequest) ProtoMessage() {} 286 287 func (x *ListIssueTemplatesRequest) ProtoReflect() protoreflect.Message { 288 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[4] 289 if protoimpl.UnsafeEnabled && x != nil { 290 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 291 if ms.LoadMessageInfo() == nil { 292 ms.StoreMessageInfo(mi) 293 } 294 return ms 295 } 296 return mi.MessageOf(x) 297 } 298 299 // Deprecated: Use ListIssueTemplatesRequest.ProtoReflect.Descriptor instead. 300 func (*ListIssueTemplatesRequest) Descriptor() ([]byte, []int) { 301 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescGZIP(), []int{4} 302 } 303 304 func (x *ListIssueTemplatesRequest) GetParent() string { 305 if x != nil { 306 return x.Parent 307 } 308 return "" 309 } 310 311 func (x *ListIssueTemplatesRequest) GetPageSize() int32 { 312 if x != nil { 313 return x.PageSize 314 } 315 return 0 316 } 317 318 func (x *ListIssueTemplatesRequest) GetPageToken() string { 319 if x != nil { 320 return x.PageToken 321 } 322 return "" 323 } 324 325 // Response message for ListIssueTemplates 326 // Next available tag: 3 327 type ListIssueTemplatesResponse struct { 328 state protoimpl.MessageState 329 sizeCache protoimpl.SizeCache 330 unknownFields protoimpl.UnknownFields 331 332 // Templates matching the given request. 333 Templates []*IssueTemplate `protobuf:"bytes,1,rep,name=templates,proto3" json:"templates,omitempty"` 334 // A token, which can be sent as `page_token` to retrieve the next page. 335 // If this field is omitted, there are no subsequent pages. 336 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 337 } 338 339 func (x *ListIssueTemplatesResponse) Reset() { 340 *x = ListIssueTemplatesResponse{} 341 if protoimpl.UnsafeEnabled { 342 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[5] 343 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 344 ms.StoreMessageInfo(mi) 345 } 346 } 347 348 func (x *ListIssueTemplatesResponse) String() string { 349 return protoimpl.X.MessageStringOf(x) 350 } 351 352 func (*ListIssueTemplatesResponse) ProtoMessage() {} 353 354 func (x *ListIssueTemplatesResponse) ProtoReflect() protoreflect.Message { 355 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[5] 356 if protoimpl.UnsafeEnabled && x != nil { 357 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 358 if ms.LoadMessageInfo() == nil { 359 ms.StoreMessageInfo(mi) 360 } 361 return ms 362 } 363 return mi.MessageOf(x) 364 } 365 366 // Deprecated: Use ListIssueTemplatesResponse.ProtoReflect.Descriptor instead. 367 func (*ListIssueTemplatesResponse) Descriptor() ([]byte, []int) { 368 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescGZIP(), []int{5} 369 } 370 371 func (x *ListIssueTemplatesResponse) GetTemplates() []*IssueTemplate { 372 if x != nil { 373 return x.Templates 374 } 375 return nil 376 } 377 378 func (x *ListIssueTemplatesResponse) GetNextPageToken() string { 379 if x != nil { 380 return x.NextPageToken 381 } 382 return "" 383 } 384 385 // Request message for ListComponentDefs 386 // Next available tag: 4 387 type ListComponentDefsRequest struct { 388 state protoimpl.MessageState 389 sizeCache protoimpl.SizeCache 390 unknownFields protoimpl.UnknownFields 391 392 // The name of the parent project. 393 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 394 // The maximum number of items to return. The service may return fewer than 395 // this value. 396 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 397 // A page token, received from a previous `ListComponentDefs` call. 398 // Provide this to retrieve the subsequent page. 399 // When paginating, all other parameters provided to 400 // `ListComponentDefsRequest` must match the call that provided the token. 401 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 402 } 403 404 func (x *ListComponentDefsRequest) Reset() { 405 *x = ListComponentDefsRequest{} 406 if protoimpl.UnsafeEnabled { 407 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[6] 408 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 409 ms.StoreMessageInfo(mi) 410 } 411 } 412 413 func (x *ListComponentDefsRequest) String() string { 414 return protoimpl.X.MessageStringOf(x) 415 } 416 417 func (*ListComponentDefsRequest) ProtoMessage() {} 418 419 func (x *ListComponentDefsRequest) ProtoReflect() protoreflect.Message { 420 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[6] 421 if protoimpl.UnsafeEnabled && x != nil { 422 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 423 if ms.LoadMessageInfo() == nil { 424 ms.StoreMessageInfo(mi) 425 } 426 return ms 427 } 428 return mi.MessageOf(x) 429 } 430 431 // Deprecated: Use ListComponentDefsRequest.ProtoReflect.Descriptor instead. 432 func (*ListComponentDefsRequest) Descriptor() ([]byte, []int) { 433 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescGZIP(), []int{6} 434 } 435 436 func (x *ListComponentDefsRequest) GetParent() string { 437 if x != nil { 438 return x.Parent 439 } 440 return "" 441 } 442 443 func (x *ListComponentDefsRequest) GetPageSize() int32 { 444 if x != nil { 445 return x.PageSize 446 } 447 return 0 448 } 449 450 func (x *ListComponentDefsRequest) GetPageToken() string { 451 if x != nil { 452 return x.PageToken 453 } 454 return "" 455 } 456 457 // Response message for ListComponentDefs 458 // Next available tag: 3 459 type ListComponentDefsResponse struct { 460 state protoimpl.MessageState 461 sizeCache protoimpl.SizeCache 462 unknownFields protoimpl.UnknownFields 463 464 // Component defs matching the given request. 465 ComponentDefs []*ComponentDef `protobuf:"bytes,1,rep,name=component_defs,json=componentDefs,proto3" json:"component_defs,omitempty"` 466 // A token which can be sent as `page_token` to retrieve the next page. 467 // If this field is omitted, there are no subsequent pages. 468 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 469 } 470 471 func (x *ListComponentDefsResponse) Reset() { 472 *x = ListComponentDefsResponse{} 473 if protoimpl.UnsafeEnabled { 474 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[7] 475 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 476 ms.StoreMessageInfo(mi) 477 } 478 } 479 480 func (x *ListComponentDefsResponse) String() string { 481 return protoimpl.X.MessageStringOf(x) 482 } 483 484 func (*ListComponentDefsResponse) ProtoMessage() {} 485 486 func (x *ListComponentDefsResponse) ProtoReflect() protoreflect.Message { 487 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[7] 488 if protoimpl.UnsafeEnabled && x != nil { 489 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 490 if ms.LoadMessageInfo() == nil { 491 ms.StoreMessageInfo(mi) 492 } 493 return ms 494 } 495 return mi.MessageOf(x) 496 } 497 498 // Deprecated: Use ListComponentDefsResponse.ProtoReflect.Descriptor instead. 499 func (*ListComponentDefsResponse) Descriptor() ([]byte, []int) { 500 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescGZIP(), []int{7} 501 } 502 503 func (x *ListComponentDefsResponse) GetComponentDefs() []*ComponentDef { 504 if x != nil { 505 return x.ComponentDefs 506 } 507 return nil 508 } 509 510 func (x *ListComponentDefsResponse) GetNextPageToken() string { 511 if x != nil { 512 return x.NextPageToken 513 } 514 return "" 515 } 516 517 // Request message for ListProjects 518 // Next available tag: 3 519 type ListProjectsRequest struct { 520 state protoimpl.MessageState 521 sizeCache protoimpl.SizeCache 522 unknownFields protoimpl.UnknownFields 523 524 // The maximum number of items to return. The service may return fewer than 525 // this value. 526 PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 527 // A page token, received from a previous `ListProjects` call. 528 // Provide this to retrieve the subsequent page. 529 PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 530 } 531 532 func (x *ListProjectsRequest) Reset() { 533 *x = ListProjectsRequest{} 534 if protoimpl.UnsafeEnabled { 535 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[8] 536 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 537 ms.StoreMessageInfo(mi) 538 } 539 } 540 541 func (x *ListProjectsRequest) String() string { 542 return protoimpl.X.MessageStringOf(x) 543 } 544 545 func (*ListProjectsRequest) ProtoMessage() {} 546 547 func (x *ListProjectsRequest) ProtoReflect() protoreflect.Message { 548 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[8] 549 if protoimpl.UnsafeEnabled && x != nil { 550 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 551 if ms.LoadMessageInfo() == nil { 552 ms.StoreMessageInfo(mi) 553 } 554 return ms 555 } 556 return mi.MessageOf(x) 557 } 558 559 // Deprecated: Use ListProjectsRequest.ProtoReflect.Descriptor instead. 560 func (*ListProjectsRequest) Descriptor() ([]byte, []int) { 561 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescGZIP(), []int{8} 562 } 563 564 func (x *ListProjectsRequest) GetPageSize() int32 { 565 if x != nil { 566 return x.PageSize 567 } 568 return 0 569 } 570 571 func (x *ListProjectsRequest) GetPageToken() string { 572 if x != nil { 573 return x.PageToken 574 } 575 return "" 576 } 577 578 // Response message for ListProjects 579 // Next available tag: 3 580 type ListProjectsResponse struct { 581 state protoimpl.MessageState 582 sizeCache protoimpl.SizeCache 583 unknownFields protoimpl.UnknownFields 584 585 // Projects matching the given request. 586 Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` 587 // A token, which can be sent as `page_token` to retrieve the next page. 588 // If this field is omitted, there are no subsequent pages. 589 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 590 } 591 592 func (x *ListProjectsResponse) Reset() { 593 *x = ListProjectsResponse{} 594 if protoimpl.UnsafeEnabled { 595 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[9] 596 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 597 ms.StoreMessageInfo(mi) 598 } 599 } 600 601 func (x *ListProjectsResponse) String() string { 602 return protoimpl.X.MessageStringOf(x) 603 } 604 605 func (*ListProjectsResponse) ProtoMessage() {} 606 607 func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message { 608 mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[9] 609 if protoimpl.UnsafeEnabled && x != nil { 610 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 611 if ms.LoadMessageInfo() == nil { 612 ms.StoreMessageInfo(mi) 613 } 614 return ms 615 } 616 return mi.MessageOf(x) 617 } 618 619 // Deprecated: Use ListProjectsResponse.ProtoReflect.Descriptor instead. 620 func (*ListProjectsResponse) Descriptor() ([]byte, []int) { 621 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescGZIP(), []int{9} 622 } 623 624 func (x *ListProjectsResponse) GetProjects() []*Project { 625 if x != nil { 626 return x.Projects 627 } 628 return nil 629 } 630 631 func (x *ListProjectsResponse) GetNextPageToken() string { 632 if x != nil { 633 return x.NextPageToken 634 } 635 return "" 636 } 637 638 var File_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto protoreflect.FileDescriptor 639 640 var file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDesc = []byte{ 641 0x0a, 0x4d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 642 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 643 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x75, 0x67, 0x73, 0x2f, 0x6d, 0x6f, 644 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 645 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 646 0x0b, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x1a, 0x1b, 0x67, 0x6f, 647 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 648 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 649 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 650 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 651 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 652 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x54, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 653 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 654 0x79, 0x73, 0x69, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x75, 655 0x67, 0x73, 0x2f, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x5f, 656 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6f, 0x62, 657 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x86, 0x01, 0x0a, 0x15, 658 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x66, 0x52, 0x65, 659 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 660 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x61, 661 0x70, 0x69, 0x2e, 0x63, 0x72, 0x62, 0x75, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 662 0x6a, 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x08, 663 0x66, 0x69, 0x65, 0x6c, 0x64, 0x64, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 664 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x46, 0x69, 0x65, 665 0x6c, 0x64, 0x44, 0x65, 0x66, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x66, 0x69, 0x65, 0x6c, 666 0x64, 0x64, 0x65, 0x66, 0x22, 0x50, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 667 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 668 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x22, 0xe0, 0x41, 669 0x02, 0xfa, 0x41, 0x1c, 0x0a, 0x1a, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x72, 0x62, 0x75, 0x67, 0x2e, 670 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 671 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 672 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x52, 0x65, 0x71, 673 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 674 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x61, 0x70, 675 0x69, 0x2e, 0x63, 0x72, 0x62, 0x75, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 676 0x65, 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x43, 0x0a, 0x0d, 0x63, 677 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x02, 0x20, 0x01, 678 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 679 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x42, 0x03, 0xe0, 680 0x41, 0x02, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 681 0x22, 0x53, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 682 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 683 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x22, 0xe0, 0x41, 0x02, 684 0xfa, 0x41, 0x1c, 0x0a, 0x1a, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x72, 0x62, 0x75, 0x67, 0x2e, 0x63, 685 0x6f, 0x6d, 0x2f, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x52, 686 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x73, 687 0x73, 0x75, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 688 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 689 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x61, 0x70, 0x69, 690 0x2e, 0x63, 0x72, 0x62, 0x75, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 691 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 692 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 693 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 694 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 695 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x7e, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x73, 696 0x73, 0x75, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 697 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 698 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 699 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 700 0x61, 0x74, 0x65, 0x52, 0x09, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x12, 0x26, 701 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 702 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 703 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8d, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x43, 704 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x73, 0x52, 0x65, 0x71, 0x75, 705 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 706 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x17, 0x0a, 0x15, 0x61, 0x70, 0x69, 707 0x2e, 0x63, 0x72, 0x62, 0x75, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 708 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 709 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 710 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 711 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 712 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x85, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x43, 713 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x73, 0x52, 0x65, 0x73, 0x70, 714 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 715 0x74, 0x5f, 0x64, 0x65, 0x66, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 716 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 717 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 718 0x6e, 0x74, 0x44, 0x65, 0x66, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 719 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 720 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x51, 721 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 722 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 723 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 724 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 725 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 726 0x6e, 0x22, 0x70, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 727 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x08, 0x70, 0x72, 0x6f, 728 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x6f, 729 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 730 0x74, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 731 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 732 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 733 0x6b, 0x65, 0x6e, 0x32, 0x87, 0x05, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 734 0x12, 0x4d, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 735 0x65, 0x66, 0x12, 0x22, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 736 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x66, 0x52, 737 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 738 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x66, 0x22, 0x00, 0x12, 739 0x53, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 740 0x65, 0x66, 0x12, 0x23, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 741 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 742 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 743 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 744 0x65, 0x66, 0x22, 0x00, 0x12, 0x59, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 745 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x12, 0x26, 0x2e, 0x6d, 0x6f, 0x6e, 746 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 747 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 748 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 749 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x22, 0x00, 0x12, 750 0x56, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 751 0x6e, 0x74, 0x44, 0x65, 0x66, 0x12, 0x26, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 752 0x2e, 0x76, 0x33, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 753 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 754 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 755 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x67, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x49, 756 0x73, 0x73, 0x75, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x12, 0x26, 0x2e, 757 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x69, 0x73, 0x74, 758 0x49, 0x73, 0x73, 0x75, 0x65, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 759 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 760 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x73, 0x73, 0x75, 0x65, 0x54, 0x65, 0x6d, 761 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 762 0x12, 0x64, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 763 0x74, 0x44, 0x65, 0x66, 0x73, 0x12, 0x25, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 764 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 765 0x74, 0x44, 0x65, 0x66, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x6d, 766 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 767 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x73, 0x52, 0x65, 0x73, 0x70, 768 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x55, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 769 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 770 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 771 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 772 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 773 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x40, 0x5a, 774 0x3e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 775 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x69, 776 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x75, 0x67, 0x73, 0x2f, 0x6d, 0x6f, 0x6e, 777 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 778 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 779 } 780 781 var ( 782 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescOnce sync.Once 783 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescData = file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDesc 784 ) 785 786 func file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescGZIP() []byte { 787 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescOnce.Do(func() { 788 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescData) 789 }) 790 return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDescData 791 } 792 793 var file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes = make([]protoimpl.MessageInfo, 10) 794 var file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_goTypes = []interface{}{ 795 (*CreateFieldDefRequest)(nil), // 0: monorail.v3.CreateFieldDefRequest 796 (*GetComponentDefRequest)(nil), // 1: monorail.v3.GetComponentDefRequest 797 (*CreateComponentDefRequest)(nil), // 2: monorail.v3.CreateComponentDefRequest 798 (*DeleteComponentDefRequest)(nil), // 3: monorail.v3.DeleteComponentDefRequest 799 (*ListIssueTemplatesRequest)(nil), // 4: monorail.v3.ListIssueTemplatesRequest 800 (*ListIssueTemplatesResponse)(nil), // 5: monorail.v3.ListIssueTemplatesResponse 801 (*ListComponentDefsRequest)(nil), // 6: monorail.v3.ListComponentDefsRequest 802 (*ListComponentDefsResponse)(nil), // 7: monorail.v3.ListComponentDefsResponse 803 (*ListProjectsRequest)(nil), // 8: monorail.v3.ListProjectsRequest 804 (*ListProjectsResponse)(nil), // 9: monorail.v3.ListProjectsResponse 805 (*FieldDef)(nil), // 10: monorail.v3.FieldDef 806 (*ComponentDef)(nil), // 11: monorail.v3.ComponentDef 807 (*IssueTemplate)(nil), // 12: monorail.v3.IssueTemplate 808 (*Project)(nil), // 13: monorail.v3.Project 809 (*emptypb.Empty)(nil), // 14: google.protobuf.Empty 810 } 811 var file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_depIdxs = []int32{ 812 10, // 0: monorail.v3.CreateFieldDefRequest.fielddef:type_name -> monorail.v3.FieldDef 813 11, // 1: monorail.v3.CreateComponentDefRequest.component_def:type_name -> monorail.v3.ComponentDef 814 12, // 2: monorail.v3.ListIssueTemplatesResponse.templates:type_name -> monorail.v3.IssueTemplate 815 11, // 3: monorail.v3.ListComponentDefsResponse.component_defs:type_name -> monorail.v3.ComponentDef 816 13, // 4: monorail.v3.ListProjectsResponse.projects:type_name -> monorail.v3.Project 817 0, // 5: monorail.v3.Projects.CreateFieldDef:input_type -> monorail.v3.CreateFieldDefRequest 818 1, // 6: monorail.v3.Projects.GetComponentDef:input_type -> monorail.v3.GetComponentDefRequest 819 2, // 7: monorail.v3.Projects.CreateComponentDef:input_type -> monorail.v3.CreateComponentDefRequest 820 3, // 8: monorail.v3.Projects.DeleteComponentDef:input_type -> monorail.v3.DeleteComponentDefRequest 821 4, // 9: monorail.v3.Projects.ListIssueTemplates:input_type -> monorail.v3.ListIssueTemplatesRequest 822 6, // 10: monorail.v3.Projects.ListComponentDefs:input_type -> monorail.v3.ListComponentDefsRequest 823 8, // 11: monorail.v3.Projects.ListProjects:input_type -> monorail.v3.ListProjectsRequest 824 10, // 12: monorail.v3.Projects.CreateFieldDef:output_type -> monorail.v3.FieldDef 825 11, // 13: monorail.v3.Projects.GetComponentDef:output_type -> monorail.v3.ComponentDef 826 11, // 14: monorail.v3.Projects.CreateComponentDef:output_type -> monorail.v3.ComponentDef 827 14, // 15: monorail.v3.Projects.DeleteComponentDef:output_type -> google.protobuf.Empty 828 5, // 16: monorail.v3.Projects.ListIssueTemplates:output_type -> monorail.v3.ListIssueTemplatesResponse 829 7, // 17: monorail.v3.Projects.ListComponentDefs:output_type -> monorail.v3.ListComponentDefsResponse 830 9, // 18: monorail.v3.Projects.ListProjects:output_type -> monorail.v3.ListProjectsResponse 831 12, // [12:19] is the sub-list for method output_type 832 5, // [5:12] is the sub-list for method input_type 833 5, // [5:5] is the sub-list for extension type_name 834 5, // [5:5] is the sub-list for extension extendee 835 0, // [0:5] is the sub-list for field type_name 836 } 837 838 func init() { 839 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_init() 840 } 841 func file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_init() { 842 if File_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto != nil { 843 return 844 } 845 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_project_objects_proto_init() 846 if !protoimpl.UnsafeEnabled { 847 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 848 switch v := v.(*CreateFieldDefRequest); i { 849 case 0: 850 return &v.state 851 case 1: 852 return &v.sizeCache 853 case 2: 854 return &v.unknownFields 855 default: 856 return nil 857 } 858 } 859 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 860 switch v := v.(*GetComponentDefRequest); i { 861 case 0: 862 return &v.state 863 case 1: 864 return &v.sizeCache 865 case 2: 866 return &v.unknownFields 867 default: 868 return nil 869 } 870 } 871 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 872 switch v := v.(*CreateComponentDefRequest); i { 873 case 0: 874 return &v.state 875 case 1: 876 return &v.sizeCache 877 case 2: 878 return &v.unknownFields 879 default: 880 return nil 881 } 882 } 883 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 884 switch v := v.(*DeleteComponentDefRequest); i { 885 case 0: 886 return &v.state 887 case 1: 888 return &v.sizeCache 889 case 2: 890 return &v.unknownFields 891 default: 892 return nil 893 } 894 } 895 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 896 switch v := v.(*ListIssueTemplatesRequest); i { 897 case 0: 898 return &v.state 899 case 1: 900 return &v.sizeCache 901 case 2: 902 return &v.unknownFields 903 default: 904 return nil 905 } 906 } 907 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 908 switch v := v.(*ListIssueTemplatesResponse); i { 909 case 0: 910 return &v.state 911 case 1: 912 return &v.sizeCache 913 case 2: 914 return &v.unknownFields 915 default: 916 return nil 917 } 918 } 919 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 920 switch v := v.(*ListComponentDefsRequest); i { 921 case 0: 922 return &v.state 923 case 1: 924 return &v.sizeCache 925 case 2: 926 return &v.unknownFields 927 default: 928 return nil 929 } 930 } 931 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 932 switch v := v.(*ListComponentDefsResponse); i { 933 case 0: 934 return &v.state 935 case 1: 936 return &v.sizeCache 937 case 2: 938 return &v.unknownFields 939 default: 940 return nil 941 } 942 } 943 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 944 switch v := v.(*ListProjectsRequest); i { 945 case 0: 946 return &v.state 947 case 1: 948 return &v.sizeCache 949 case 2: 950 return &v.unknownFields 951 default: 952 return nil 953 } 954 } 955 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 956 switch v := v.(*ListProjectsResponse); i { 957 case 0: 958 return &v.state 959 case 1: 960 return &v.sizeCache 961 case 2: 962 return &v.unknownFields 963 default: 964 return nil 965 } 966 } 967 } 968 type x struct{} 969 out := protoimpl.TypeBuilder{ 970 File: protoimpl.DescBuilder{ 971 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 972 RawDescriptor: file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDesc, 973 NumEnums: 0, 974 NumMessages: 10, 975 NumExtensions: 0, 976 NumServices: 1, 977 }, 978 GoTypes: file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_goTypes, 979 DependencyIndexes: file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_depIdxs, 980 MessageInfos: file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_msgTypes, 981 }.Build() 982 File_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto = out.File 983 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_rawDesc = nil 984 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_goTypes = nil 985 file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_projects_proto_depIdxs = nil 986 } 987 988 // Reference imports to suppress errors if they are not otherwise used. 989 var _ context.Context 990 var _ grpc.ClientConnInterface 991 992 // This is a compile-time assertion to ensure that this generated file 993 // is compatible with the grpc package it is being compiled against. 994 const _ = grpc.SupportPackageIsVersion6 995 996 // ProjectsClient is the client API for Projects service. 997 // 998 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 999 type ProjectsClient interface { 1000 // status: NOT READY 1001 // Creates a new FieldDef (custom field). 1002 // 1003 // Raises: 1004 // 1005 // NOT_FOUND if some given users do not exist. 1006 // ALREADY_EXISTS if a field with the same name owned by the project 1007 // already exists. 1008 // INVALID_INPUT if there was a problem with the input. 1009 // PERMISSION_DENIED if the user cannot edit the project. 1010 CreateFieldDef(ctx context.Context, in *CreateFieldDefRequest, opts ...grpc.CallOption) (*FieldDef, error) 1011 // status: ALPHA 1012 // Gets a ComponentDef given the reference. 1013 // 1014 // Raises: 1015 // 1016 // INVALID_INPUT if the request is invalid. 1017 // NOT_FOUND if the parent project or the component is not found. 1018 GetComponentDef(ctx context.Context, in *GetComponentDefRequest, opts ...grpc.CallOption) (*ComponentDef, error) 1019 // status: ALPHA 1020 // Creates a new ComponentDef. 1021 // 1022 // Raises: 1023 // 1024 // INVALID_INPUT if the request is invalid. 1025 // ALREADY_EXISTS if the component already exists. 1026 // PERMISSION_DENIED if the user is not allowed to create a/this component. 1027 // NOT_FOUND if the parent project or a component cc or admin is not found. 1028 CreateComponentDef(ctx context.Context, in *CreateComponentDefRequest, opts ...grpc.CallOption) (*ComponentDef, error) 1029 // status: ALPHA 1030 // Deletes a ComponentDef. 1031 // 1032 // Raises: 1033 // 1034 // INVALID_INPUT if the request is invalid. 1035 // PERMISSION_DENIED if the user is not allowed to delete a/this component. 1036 // NOT_FOUND if the component or project is not found. 1037 DeleteComponentDef(ctx context.Context, in *DeleteComponentDefRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) 1038 // status: NOT READY 1039 // Returns all templates for specified project. 1040 // 1041 // Raises: 1042 // 1043 // NOT_FOUND if the requested parent project is not found. 1044 // INVALID_ARGUMENT if the given `parent` is not valid. 1045 ListIssueTemplates(ctx context.Context, in *ListIssueTemplatesRequest, opts ...grpc.CallOption) (*ListIssueTemplatesResponse, error) 1046 // status: ALPHA 1047 // Returns all field defs for specified project. 1048 // 1049 // Raises: 1050 // 1051 // NOT_FOUND if the request arent project is not found. 1052 // INVALID_ARGUMENT if the given `parent` is not valid. 1053 ListComponentDefs(ctx context.Context, in *ListComponentDefsRequest, opts ...grpc.CallOption) (*ListComponentDefsResponse, error) 1054 // status: NOT READY 1055 // Returns all projects hosted on Monorail. 1056 ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error) 1057 } 1058 type projectsPRPCClient struct { 1059 client *prpc.Client 1060 } 1061 1062 func NewProjectsPRPCClient(client *prpc.Client) ProjectsClient { 1063 return &projectsPRPCClient{client} 1064 } 1065 1066 func (c *projectsPRPCClient) CreateFieldDef(ctx context.Context, in *CreateFieldDefRequest, opts ...grpc.CallOption) (*FieldDef, error) { 1067 out := new(FieldDef) 1068 err := c.client.Call(ctx, "monorail.v3.Projects", "CreateFieldDef", in, out, opts...) 1069 if err != nil { 1070 return nil, err 1071 } 1072 return out, nil 1073 } 1074 1075 func (c *projectsPRPCClient) GetComponentDef(ctx context.Context, in *GetComponentDefRequest, opts ...grpc.CallOption) (*ComponentDef, error) { 1076 out := new(ComponentDef) 1077 err := c.client.Call(ctx, "monorail.v3.Projects", "GetComponentDef", in, out, opts...) 1078 if err != nil { 1079 return nil, err 1080 } 1081 return out, nil 1082 } 1083 1084 func (c *projectsPRPCClient) CreateComponentDef(ctx context.Context, in *CreateComponentDefRequest, opts ...grpc.CallOption) (*ComponentDef, error) { 1085 out := new(ComponentDef) 1086 err := c.client.Call(ctx, "monorail.v3.Projects", "CreateComponentDef", in, out, opts...) 1087 if err != nil { 1088 return nil, err 1089 } 1090 return out, nil 1091 } 1092 1093 func (c *projectsPRPCClient) DeleteComponentDef(ctx context.Context, in *DeleteComponentDefRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 1094 out := new(emptypb.Empty) 1095 err := c.client.Call(ctx, "monorail.v3.Projects", "DeleteComponentDef", in, out, opts...) 1096 if err != nil { 1097 return nil, err 1098 } 1099 return out, nil 1100 } 1101 1102 func (c *projectsPRPCClient) ListIssueTemplates(ctx context.Context, in *ListIssueTemplatesRequest, opts ...grpc.CallOption) (*ListIssueTemplatesResponse, error) { 1103 out := new(ListIssueTemplatesResponse) 1104 err := c.client.Call(ctx, "monorail.v3.Projects", "ListIssueTemplates", in, out, opts...) 1105 if err != nil { 1106 return nil, err 1107 } 1108 return out, nil 1109 } 1110 1111 func (c *projectsPRPCClient) ListComponentDefs(ctx context.Context, in *ListComponentDefsRequest, opts ...grpc.CallOption) (*ListComponentDefsResponse, error) { 1112 out := new(ListComponentDefsResponse) 1113 err := c.client.Call(ctx, "monorail.v3.Projects", "ListComponentDefs", in, out, opts...) 1114 if err != nil { 1115 return nil, err 1116 } 1117 return out, nil 1118 } 1119 1120 func (c *projectsPRPCClient) ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error) { 1121 out := new(ListProjectsResponse) 1122 err := c.client.Call(ctx, "monorail.v3.Projects", "ListProjects", in, out, opts...) 1123 if err != nil { 1124 return nil, err 1125 } 1126 return out, nil 1127 } 1128 1129 type projectsClient struct { 1130 cc grpc.ClientConnInterface 1131 } 1132 1133 func NewProjectsClient(cc grpc.ClientConnInterface) ProjectsClient { 1134 return &projectsClient{cc} 1135 } 1136 1137 func (c *projectsClient) CreateFieldDef(ctx context.Context, in *CreateFieldDefRequest, opts ...grpc.CallOption) (*FieldDef, error) { 1138 out := new(FieldDef) 1139 err := c.cc.Invoke(ctx, "/monorail.v3.Projects/CreateFieldDef", in, out, opts...) 1140 if err != nil { 1141 return nil, err 1142 } 1143 return out, nil 1144 } 1145 1146 func (c *projectsClient) GetComponentDef(ctx context.Context, in *GetComponentDefRequest, opts ...grpc.CallOption) (*ComponentDef, error) { 1147 out := new(ComponentDef) 1148 err := c.cc.Invoke(ctx, "/monorail.v3.Projects/GetComponentDef", in, out, opts...) 1149 if err != nil { 1150 return nil, err 1151 } 1152 return out, nil 1153 } 1154 1155 func (c *projectsClient) CreateComponentDef(ctx context.Context, in *CreateComponentDefRequest, opts ...grpc.CallOption) (*ComponentDef, error) { 1156 out := new(ComponentDef) 1157 err := c.cc.Invoke(ctx, "/monorail.v3.Projects/CreateComponentDef", in, out, opts...) 1158 if err != nil { 1159 return nil, err 1160 } 1161 return out, nil 1162 } 1163 1164 func (c *projectsClient) DeleteComponentDef(ctx context.Context, in *DeleteComponentDefRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { 1165 out := new(emptypb.Empty) 1166 err := c.cc.Invoke(ctx, "/monorail.v3.Projects/DeleteComponentDef", in, out, opts...) 1167 if err != nil { 1168 return nil, err 1169 } 1170 return out, nil 1171 } 1172 1173 func (c *projectsClient) ListIssueTemplates(ctx context.Context, in *ListIssueTemplatesRequest, opts ...grpc.CallOption) (*ListIssueTemplatesResponse, error) { 1174 out := new(ListIssueTemplatesResponse) 1175 err := c.cc.Invoke(ctx, "/monorail.v3.Projects/ListIssueTemplates", in, out, opts...) 1176 if err != nil { 1177 return nil, err 1178 } 1179 return out, nil 1180 } 1181 1182 func (c *projectsClient) ListComponentDefs(ctx context.Context, in *ListComponentDefsRequest, opts ...grpc.CallOption) (*ListComponentDefsResponse, error) { 1183 out := new(ListComponentDefsResponse) 1184 err := c.cc.Invoke(ctx, "/monorail.v3.Projects/ListComponentDefs", in, out, opts...) 1185 if err != nil { 1186 return nil, err 1187 } 1188 return out, nil 1189 } 1190 1191 func (c *projectsClient) ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error) { 1192 out := new(ListProjectsResponse) 1193 err := c.cc.Invoke(ctx, "/monorail.v3.Projects/ListProjects", in, out, opts...) 1194 if err != nil { 1195 return nil, err 1196 } 1197 return out, nil 1198 } 1199 1200 // ProjectsServer is the server API for Projects service. 1201 type ProjectsServer interface { 1202 // status: NOT READY 1203 // Creates a new FieldDef (custom field). 1204 // 1205 // Raises: 1206 // 1207 // NOT_FOUND if some given users do not exist. 1208 // ALREADY_EXISTS if a field with the same name owned by the project 1209 // already exists. 1210 // INVALID_INPUT if there was a problem with the input. 1211 // PERMISSION_DENIED if the user cannot edit the project. 1212 CreateFieldDef(context.Context, *CreateFieldDefRequest) (*FieldDef, error) 1213 // status: ALPHA 1214 // Gets a ComponentDef given the reference. 1215 // 1216 // Raises: 1217 // 1218 // INVALID_INPUT if the request is invalid. 1219 // NOT_FOUND if the parent project or the component is not found. 1220 GetComponentDef(context.Context, *GetComponentDefRequest) (*ComponentDef, error) 1221 // status: ALPHA 1222 // Creates a new ComponentDef. 1223 // 1224 // Raises: 1225 // 1226 // INVALID_INPUT if the request is invalid. 1227 // ALREADY_EXISTS if the component already exists. 1228 // PERMISSION_DENIED if the user is not allowed to create a/this component. 1229 // NOT_FOUND if the parent project or a component cc or admin is not found. 1230 CreateComponentDef(context.Context, *CreateComponentDefRequest) (*ComponentDef, error) 1231 // status: ALPHA 1232 // Deletes a ComponentDef. 1233 // 1234 // Raises: 1235 // 1236 // INVALID_INPUT if the request is invalid. 1237 // PERMISSION_DENIED if the user is not allowed to delete a/this component. 1238 // NOT_FOUND if the component or project is not found. 1239 DeleteComponentDef(context.Context, *DeleteComponentDefRequest) (*emptypb.Empty, error) 1240 // status: NOT READY 1241 // Returns all templates for specified project. 1242 // 1243 // Raises: 1244 // 1245 // NOT_FOUND if the requested parent project is not found. 1246 // INVALID_ARGUMENT if the given `parent` is not valid. 1247 ListIssueTemplates(context.Context, *ListIssueTemplatesRequest) (*ListIssueTemplatesResponse, error) 1248 // status: ALPHA 1249 // Returns all field defs for specified project. 1250 // 1251 // Raises: 1252 // 1253 // NOT_FOUND if the request arent project is not found. 1254 // INVALID_ARGUMENT if the given `parent` is not valid. 1255 ListComponentDefs(context.Context, *ListComponentDefsRequest) (*ListComponentDefsResponse, error) 1256 // status: NOT READY 1257 // Returns all projects hosted on Monorail. 1258 ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error) 1259 } 1260 1261 // UnimplementedProjectsServer can be embedded to have forward compatible implementations. 1262 type UnimplementedProjectsServer struct { 1263 } 1264 1265 func (*UnimplementedProjectsServer) CreateFieldDef(context.Context, *CreateFieldDefRequest) (*FieldDef, error) { 1266 return nil, status.Errorf(codes.Unimplemented, "method CreateFieldDef not implemented") 1267 } 1268 func (*UnimplementedProjectsServer) GetComponentDef(context.Context, *GetComponentDefRequest) (*ComponentDef, error) { 1269 return nil, status.Errorf(codes.Unimplemented, "method GetComponentDef not implemented") 1270 } 1271 func (*UnimplementedProjectsServer) CreateComponentDef(context.Context, *CreateComponentDefRequest) (*ComponentDef, error) { 1272 return nil, status.Errorf(codes.Unimplemented, "method CreateComponentDef not implemented") 1273 } 1274 func (*UnimplementedProjectsServer) DeleteComponentDef(context.Context, *DeleteComponentDefRequest) (*emptypb.Empty, error) { 1275 return nil, status.Errorf(codes.Unimplemented, "method DeleteComponentDef not implemented") 1276 } 1277 func (*UnimplementedProjectsServer) ListIssueTemplates(context.Context, *ListIssueTemplatesRequest) (*ListIssueTemplatesResponse, error) { 1278 return nil, status.Errorf(codes.Unimplemented, "method ListIssueTemplates not implemented") 1279 } 1280 func (*UnimplementedProjectsServer) ListComponentDefs(context.Context, *ListComponentDefsRequest) (*ListComponentDefsResponse, error) { 1281 return nil, status.Errorf(codes.Unimplemented, "method ListComponentDefs not implemented") 1282 } 1283 func (*UnimplementedProjectsServer) ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error) { 1284 return nil, status.Errorf(codes.Unimplemented, "method ListProjects not implemented") 1285 } 1286 1287 func RegisterProjectsServer(s prpc.Registrar, srv ProjectsServer) { 1288 s.RegisterService(&_Projects_serviceDesc, srv) 1289 } 1290 1291 func _Projects_CreateFieldDef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1292 in := new(CreateFieldDefRequest) 1293 if err := dec(in); err != nil { 1294 return nil, err 1295 } 1296 if interceptor == nil { 1297 return srv.(ProjectsServer).CreateFieldDef(ctx, in) 1298 } 1299 info := &grpc.UnaryServerInfo{ 1300 Server: srv, 1301 FullMethod: "/monorail.v3.Projects/CreateFieldDef", 1302 } 1303 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1304 return srv.(ProjectsServer).CreateFieldDef(ctx, req.(*CreateFieldDefRequest)) 1305 } 1306 return interceptor(ctx, in, info, handler) 1307 } 1308 1309 func _Projects_GetComponentDef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1310 in := new(GetComponentDefRequest) 1311 if err := dec(in); err != nil { 1312 return nil, err 1313 } 1314 if interceptor == nil { 1315 return srv.(ProjectsServer).GetComponentDef(ctx, in) 1316 } 1317 info := &grpc.UnaryServerInfo{ 1318 Server: srv, 1319 FullMethod: "/monorail.v3.Projects/GetComponentDef", 1320 } 1321 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1322 return srv.(ProjectsServer).GetComponentDef(ctx, req.(*GetComponentDefRequest)) 1323 } 1324 return interceptor(ctx, in, info, handler) 1325 } 1326 1327 func _Projects_CreateComponentDef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1328 in := new(CreateComponentDefRequest) 1329 if err := dec(in); err != nil { 1330 return nil, err 1331 } 1332 if interceptor == nil { 1333 return srv.(ProjectsServer).CreateComponentDef(ctx, in) 1334 } 1335 info := &grpc.UnaryServerInfo{ 1336 Server: srv, 1337 FullMethod: "/monorail.v3.Projects/CreateComponentDef", 1338 } 1339 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1340 return srv.(ProjectsServer).CreateComponentDef(ctx, req.(*CreateComponentDefRequest)) 1341 } 1342 return interceptor(ctx, in, info, handler) 1343 } 1344 1345 func _Projects_DeleteComponentDef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1346 in := new(DeleteComponentDefRequest) 1347 if err := dec(in); err != nil { 1348 return nil, err 1349 } 1350 if interceptor == nil { 1351 return srv.(ProjectsServer).DeleteComponentDef(ctx, in) 1352 } 1353 info := &grpc.UnaryServerInfo{ 1354 Server: srv, 1355 FullMethod: "/monorail.v3.Projects/DeleteComponentDef", 1356 } 1357 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1358 return srv.(ProjectsServer).DeleteComponentDef(ctx, req.(*DeleteComponentDefRequest)) 1359 } 1360 return interceptor(ctx, in, info, handler) 1361 } 1362 1363 func _Projects_ListIssueTemplates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1364 in := new(ListIssueTemplatesRequest) 1365 if err := dec(in); err != nil { 1366 return nil, err 1367 } 1368 if interceptor == nil { 1369 return srv.(ProjectsServer).ListIssueTemplates(ctx, in) 1370 } 1371 info := &grpc.UnaryServerInfo{ 1372 Server: srv, 1373 FullMethod: "/monorail.v3.Projects/ListIssueTemplates", 1374 } 1375 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1376 return srv.(ProjectsServer).ListIssueTemplates(ctx, req.(*ListIssueTemplatesRequest)) 1377 } 1378 return interceptor(ctx, in, info, handler) 1379 } 1380 1381 func _Projects_ListComponentDefs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1382 in := new(ListComponentDefsRequest) 1383 if err := dec(in); err != nil { 1384 return nil, err 1385 } 1386 if interceptor == nil { 1387 return srv.(ProjectsServer).ListComponentDefs(ctx, in) 1388 } 1389 info := &grpc.UnaryServerInfo{ 1390 Server: srv, 1391 FullMethod: "/monorail.v3.Projects/ListComponentDefs", 1392 } 1393 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1394 return srv.(ProjectsServer).ListComponentDefs(ctx, req.(*ListComponentDefsRequest)) 1395 } 1396 return interceptor(ctx, in, info, handler) 1397 } 1398 1399 func _Projects_ListProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1400 in := new(ListProjectsRequest) 1401 if err := dec(in); err != nil { 1402 return nil, err 1403 } 1404 if interceptor == nil { 1405 return srv.(ProjectsServer).ListProjects(ctx, in) 1406 } 1407 info := &grpc.UnaryServerInfo{ 1408 Server: srv, 1409 FullMethod: "/monorail.v3.Projects/ListProjects", 1410 } 1411 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1412 return srv.(ProjectsServer).ListProjects(ctx, req.(*ListProjectsRequest)) 1413 } 1414 return interceptor(ctx, in, info, handler) 1415 } 1416 1417 var _Projects_serviceDesc = grpc.ServiceDesc{ 1418 ServiceName: "monorail.v3.Projects", 1419 HandlerType: (*ProjectsServer)(nil), 1420 Methods: []grpc.MethodDesc{ 1421 { 1422 MethodName: "CreateFieldDef", 1423 Handler: _Projects_CreateFieldDef_Handler, 1424 }, 1425 { 1426 MethodName: "GetComponentDef", 1427 Handler: _Projects_GetComponentDef_Handler, 1428 }, 1429 { 1430 MethodName: "CreateComponentDef", 1431 Handler: _Projects_CreateComponentDef_Handler, 1432 }, 1433 { 1434 MethodName: "DeleteComponentDef", 1435 Handler: _Projects_DeleteComponentDef_Handler, 1436 }, 1437 { 1438 MethodName: "ListIssueTemplates", 1439 Handler: _Projects_ListIssueTemplates_Handler, 1440 }, 1441 { 1442 MethodName: "ListComponentDefs", 1443 Handler: _Projects_ListComponentDefs_Handler, 1444 }, 1445 { 1446 MethodName: "ListProjects", 1447 Handler: _Projects_ListProjects_Handler, 1448 }, 1449 }, 1450 Streams: []grpc.StreamDesc{}, 1451 Metadata: "go.chromium.org/luci/analysis/internal/bugs/monorail/api_proto/projects.proto", 1452 }