go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/buildbucket/proto/builder_service.pb.go (about) 1 // Copyright 2020 The Swarming Authors. All rights reserved. 2 // Use of this source code is governed by the Apache v2.0 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.32.0 8 // protoc v3.21.7 9 // source: go.chromium.org/luci/buildbucket/proto/builder_service.proto 10 11 package buildbucketpb 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 status "google.golang.org/genproto/googleapis/rpc/status" 19 grpc "google.golang.org/grpc" 20 codes "google.golang.org/grpc/codes" 21 status1 "google.golang.org/grpc/status" 22 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 23 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 24 emptypb "google.golang.org/protobuf/types/known/emptypb" 25 reflect "reflect" 26 sync "sync" 27 ) 28 29 const ( 30 // Verify that this generated code is sufficiently up-to-date. 31 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 32 // Verify that runtime/protoimpl is sufficiently up-to-date. 33 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 34 ) 35 36 type BuilderMask_BuilderMaskType int32 37 38 const ( 39 BuilderMask_BUILDER_MASK_TYPE_UNSPECIFIED BuilderMask_BuilderMaskType = 0 40 // Default. Returns ID + Config fields in BuilderItem. 41 BuilderMask_CONFIG_ONLY BuilderMask_BuilderMaskType = 1 42 // Returns all fields in BuilderItem. 43 BuilderMask_ALL BuilderMask_BuilderMaskType = 2 44 // Returns ID + METADATA fields in BuilderItem. 45 BuilderMask_METADATA_ONLY BuilderMask_BuilderMaskType = 3 46 ) 47 48 // Enum value maps for BuilderMask_BuilderMaskType. 49 var ( 50 BuilderMask_BuilderMaskType_name = map[int32]string{ 51 0: "BUILDER_MASK_TYPE_UNSPECIFIED", 52 1: "CONFIG_ONLY", 53 2: "ALL", 54 3: "METADATA_ONLY", 55 } 56 BuilderMask_BuilderMaskType_value = map[string]int32{ 57 "BUILDER_MASK_TYPE_UNSPECIFIED": 0, 58 "CONFIG_ONLY": 1, 59 "ALL": 2, 60 "METADATA_ONLY": 3, 61 } 62 ) 63 64 func (x BuilderMask_BuilderMaskType) Enum() *BuilderMask_BuilderMaskType { 65 p := new(BuilderMask_BuilderMaskType) 66 *p = x 67 return p 68 } 69 70 func (x BuilderMask_BuilderMaskType) String() string { 71 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 72 } 73 74 func (BuilderMask_BuilderMaskType) Descriptor() protoreflect.EnumDescriptor { 75 return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_enumTypes[0].Descriptor() 76 } 77 78 func (BuilderMask_BuilderMaskType) Type() protoreflect.EnumType { 79 return &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_enumTypes[0] 80 } 81 82 func (x BuilderMask_BuilderMaskType) Number() protoreflect.EnumNumber { 83 return protoreflect.EnumNumber(x) 84 } 85 86 // Deprecated: Use BuilderMask_BuilderMaskType.Descriptor instead. 87 func (BuilderMask_BuilderMaskType) EnumDescriptor() ([]byte, []int) { 88 return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{5, 0} 89 } 90 91 // A request message for GetBuilder rpc. 92 type GetBuilderRequest struct { 93 state protoimpl.MessageState 94 sizeCache protoimpl.SizeCache 95 unknownFields protoimpl.UnknownFields 96 97 // ID of the builder to return. 98 Id *BuilderID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 99 // Mask for which fields to include in the response. 100 // 101 // If not set, the default mask is CONFIG_ONLY. 102 Mask *BuilderMask `protobuf:"bytes,2,opt,name=mask,proto3" json:"mask,omitempty"` 103 } 104 105 func (x *GetBuilderRequest) Reset() { 106 *x = GetBuilderRequest{} 107 if protoimpl.UnsafeEnabled { 108 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[0] 109 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 110 ms.StoreMessageInfo(mi) 111 } 112 } 113 114 func (x *GetBuilderRequest) String() string { 115 return protoimpl.X.MessageStringOf(x) 116 } 117 118 func (*GetBuilderRequest) ProtoMessage() {} 119 120 func (x *GetBuilderRequest) ProtoReflect() protoreflect.Message { 121 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[0] 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 GetBuilderRequest.ProtoReflect.Descriptor instead. 133 func (*GetBuilderRequest) Descriptor() ([]byte, []int) { 134 return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{0} 135 } 136 137 func (x *GetBuilderRequest) GetId() *BuilderID { 138 if x != nil { 139 return x.Id 140 } 141 return nil 142 } 143 144 func (x *GetBuilderRequest) GetMask() *BuilderMask { 145 if x != nil { 146 return x.Mask 147 } 148 return nil 149 } 150 151 // A request message for ListBuilders. 152 type ListBuildersRequest struct { 153 state protoimpl.MessageState 154 sizeCache protoimpl.SizeCache 155 unknownFields protoimpl.UnknownFields 156 157 // LUCI project, e.g. "chromium". Omit to list all builders. 158 // 159 // Required when bucket is specified. 160 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 161 // A bucket in the project, e.g. "try". 162 // 163 // Omit to list all builders or all builders in a project. 164 Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` 165 // The maximum number of builders to return. 166 // 167 // The service may return fewer than this value. 168 // If unspecified, at most 100 builders will be returned. 169 // The maximum value is 1000; values above 1000 will be coerced to 1000. 170 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 171 // A page token, received from a previous `ListBuilders` call. 172 // Provide this to retrieve the subsequent page. 173 // 174 // When paginating, all other parameters provided to `ListBuilders` MUST 175 // match the call that provided the page token. 176 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 177 } 178 179 func (x *ListBuildersRequest) Reset() { 180 *x = ListBuildersRequest{} 181 if protoimpl.UnsafeEnabled { 182 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[1] 183 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 184 ms.StoreMessageInfo(mi) 185 } 186 } 187 188 func (x *ListBuildersRequest) String() string { 189 return protoimpl.X.MessageStringOf(x) 190 } 191 192 func (*ListBuildersRequest) ProtoMessage() {} 193 194 func (x *ListBuildersRequest) ProtoReflect() protoreflect.Message { 195 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[1] 196 if protoimpl.UnsafeEnabled && x != nil { 197 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 198 if ms.LoadMessageInfo() == nil { 199 ms.StoreMessageInfo(mi) 200 } 201 return ms 202 } 203 return mi.MessageOf(x) 204 } 205 206 // Deprecated: Use ListBuildersRequest.ProtoReflect.Descriptor instead. 207 func (*ListBuildersRequest) Descriptor() ([]byte, []int) { 208 return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{1} 209 } 210 211 func (x *ListBuildersRequest) GetProject() string { 212 if x != nil { 213 return x.Project 214 } 215 return "" 216 } 217 218 func (x *ListBuildersRequest) GetBucket() string { 219 if x != nil { 220 return x.Bucket 221 } 222 return "" 223 } 224 225 func (x *ListBuildersRequest) GetPageSize() int32 { 226 if x != nil { 227 return x.PageSize 228 } 229 return 0 230 } 231 232 func (x *ListBuildersRequest) GetPageToken() string { 233 if x != nil { 234 return x.PageToken 235 } 236 return "" 237 } 238 239 // A response message for ListBuilders. 240 type ListBuildersResponse struct { 241 state protoimpl.MessageState 242 sizeCache protoimpl.SizeCache 243 unknownFields protoimpl.UnknownFields 244 245 // Matched builders. 246 Builders []*BuilderItem `protobuf:"bytes,1,rep,name=builders,proto3" json:"builders,omitempty"` 247 // A token, which can be sent as `page_token` to retrieve the next page. 248 // If this field is omitted, there were no subsequent pages at the time of 249 // request. 250 // If the invocation is not finalized, more results may appear later. 251 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 252 } 253 254 func (x *ListBuildersResponse) Reset() { 255 *x = ListBuildersResponse{} 256 if protoimpl.UnsafeEnabled { 257 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[2] 258 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 259 ms.StoreMessageInfo(mi) 260 } 261 } 262 263 func (x *ListBuildersResponse) String() string { 264 return protoimpl.X.MessageStringOf(x) 265 } 266 267 func (*ListBuildersResponse) ProtoMessage() {} 268 269 func (x *ListBuildersResponse) ProtoReflect() protoreflect.Message { 270 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[2] 271 if protoimpl.UnsafeEnabled && x != nil { 272 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 273 if ms.LoadMessageInfo() == nil { 274 ms.StoreMessageInfo(mi) 275 } 276 return ms 277 } 278 return mi.MessageOf(x) 279 } 280 281 // Deprecated: Use ListBuildersResponse.ProtoReflect.Descriptor instead. 282 func (*ListBuildersResponse) Descriptor() ([]byte, []int) { 283 return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{2} 284 } 285 286 func (x *ListBuildersResponse) GetBuilders() []*BuilderItem { 287 if x != nil { 288 return x.Builders 289 } 290 return nil 291 } 292 293 func (x *ListBuildersResponse) GetNextPageToken() string { 294 if x != nil { 295 return x.NextPageToken 296 } 297 return "" 298 } 299 300 // A request message for SetBuilderHealth RPC. 301 type SetBuilderHealthRequest struct { 302 state protoimpl.MessageState 303 sizeCache protoimpl.SizeCache 304 unknownFields protoimpl.UnknownFields 305 306 Health []*SetBuilderHealthRequest_BuilderHealth `protobuf:"bytes,1,rep,name=health,proto3" json:"health,omitempty"` 307 } 308 309 func (x *SetBuilderHealthRequest) Reset() { 310 *x = SetBuilderHealthRequest{} 311 if protoimpl.UnsafeEnabled { 312 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[3] 313 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 314 ms.StoreMessageInfo(mi) 315 } 316 } 317 318 func (x *SetBuilderHealthRequest) String() string { 319 return protoimpl.X.MessageStringOf(x) 320 } 321 322 func (*SetBuilderHealthRequest) ProtoMessage() {} 323 324 func (x *SetBuilderHealthRequest) ProtoReflect() protoreflect.Message { 325 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[3] 326 if protoimpl.UnsafeEnabled && x != nil { 327 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 328 if ms.LoadMessageInfo() == nil { 329 ms.StoreMessageInfo(mi) 330 } 331 return ms 332 } 333 return mi.MessageOf(x) 334 } 335 336 // Deprecated: Use SetBuilderHealthRequest.ProtoReflect.Descriptor instead. 337 func (*SetBuilderHealthRequest) Descriptor() ([]byte, []int) { 338 return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{3} 339 } 340 341 func (x *SetBuilderHealthRequest) GetHealth() []*SetBuilderHealthRequest_BuilderHealth { 342 if x != nil { 343 return x.Health 344 } 345 return nil 346 } 347 348 // A response message for SetBuilderHealth RPC. 349 type SetBuilderHealthResponse struct { 350 state protoimpl.MessageState 351 sizeCache protoimpl.SizeCache 352 unknownFields protoimpl.UnknownFields 353 354 // Responses should be empty protos or errors. They will map 355 // directly with the repeated health fields from SetBuilderHealthRequest. 356 Responses []*SetBuilderHealthResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` 357 } 358 359 func (x *SetBuilderHealthResponse) Reset() { 360 *x = SetBuilderHealthResponse{} 361 if protoimpl.UnsafeEnabled { 362 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[4] 363 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 364 ms.StoreMessageInfo(mi) 365 } 366 } 367 368 func (x *SetBuilderHealthResponse) String() string { 369 return protoimpl.X.MessageStringOf(x) 370 } 371 372 func (*SetBuilderHealthResponse) ProtoMessage() {} 373 374 func (x *SetBuilderHealthResponse) ProtoReflect() protoreflect.Message { 375 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[4] 376 if protoimpl.UnsafeEnabled && x != nil { 377 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 378 if ms.LoadMessageInfo() == nil { 379 ms.StoreMessageInfo(mi) 380 } 381 return ms 382 } 383 return mi.MessageOf(x) 384 } 385 386 // Deprecated: Use SetBuilderHealthResponse.ProtoReflect.Descriptor instead. 387 func (*SetBuilderHealthResponse) Descriptor() ([]byte, []int) { 388 return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{4} 389 } 390 391 func (x *SetBuilderHealthResponse) GetResponses() []*SetBuilderHealthResponse_Response { 392 if x != nil { 393 return x.Responses 394 } 395 return nil 396 } 397 398 type BuilderMask struct { 399 state protoimpl.MessageState 400 sizeCache protoimpl.SizeCache 401 unknownFields protoimpl.UnknownFields 402 403 // Type of mask to use to filter BuilderItem. 404 Type BuilderMask_BuilderMaskType `protobuf:"varint,1,opt,name=type,proto3,enum=buildbucket.v2.BuilderMask_BuilderMaskType" json:"type,omitempty"` 405 } 406 407 func (x *BuilderMask) Reset() { 408 *x = BuilderMask{} 409 if protoimpl.UnsafeEnabled { 410 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[5] 411 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 412 ms.StoreMessageInfo(mi) 413 } 414 } 415 416 func (x *BuilderMask) String() string { 417 return protoimpl.X.MessageStringOf(x) 418 } 419 420 func (*BuilderMask) ProtoMessage() {} 421 422 func (x *BuilderMask) ProtoReflect() protoreflect.Message { 423 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[5] 424 if protoimpl.UnsafeEnabled && x != nil { 425 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 426 if ms.LoadMessageInfo() == nil { 427 ms.StoreMessageInfo(mi) 428 } 429 return ms 430 } 431 return mi.MessageOf(x) 432 } 433 434 // Deprecated: Use BuilderMask.ProtoReflect.Descriptor instead. 435 func (*BuilderMask) Descriptor() ([]byte, []int) { 436 return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{5} 437 } 438 439 func (x *BuilderMask) GetType() BuilderMask_BuilderMaskType { 440 if x != nil { 441 return x.Type 442 } 443 return BuilderMask_BUILDER_MASK_TYPE_UNSPECIFIED 444 } 445 446 // BuilderHealth needs BuilderID so that SetBuilderHealth RPC can properly update 447 // the Builder datastore entity with the updated HealthStatus. 448 type SetBuilderHealthRequest_BuilderHealth struct { 449 state protoimpl.MessageState 450 sizeCache protoimpl.SizeCache 451 unknownFields protoimpl.UnknownFields 452 453 // Required. Builder to set the health score for. 454 // You must have the 'buildbucket.builders.set_health' permission for 455 // each of them. 456 Id *BuilderID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 457 // Required. Health status of the builder. 458 Health *HealthStatus `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"` 459 } 460 461 func (x *SetBuilderHealthRequest_BuilderHealth) Reset() { 462 *x = SetBuilderHealthRequest_BuilderHealth{} 463 if protoimpl.UnsafeEnabled { 464 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[6] 465 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 466 ms.StoreMessageInfo(mi) 467 } 468 } 469 470 func (x *SetBuilderHealthRequest_BuilderHealth) String() string { 471 return protoimpl.X.MessageStringOf(x) 472 } 473 474 func (*SetBuilderHealthRequest_BuilderHealth) ProtoMessage() {} 475 476 func (x *SetBuilderHealthRequest_BuilderHealth) ProtoReflect() protoreflect.Message { 477 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[6] 478 if protoimpl.UnsafeEnabled && x != nil { 479 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 480 if ms.LoadMessageInfo() == nil { 481 ms.StoreMessageInfo(mi) 482 } 483 return ms 484 } 485 return mi.MessageOf(x) 486 } 487 488 // Deprecated: Use SetBuilderHealthRequest_BuilderHealth.ProtoReflect.Descriptor instead. 489 func (*SetBuilderHealthRequest_BuilderHealth) Descriptor() ([]byte, []int) { 490 return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{3, 0} 491 } 492 493 func (x *SetBuilderHealthRequest_BuilderHealth) GetId() *BuilderID { 494 if x != nil { 495 return x.Id 496 } 497 return nil 498 } 499 500 func (x *SetBuilderHealthRequest_BuilderHealth) GetHealth() *HealthStatus { 501 if x != nil { 502 return x.Health 503 } 504 return nil 505 } 506 507 type SetBuilderHealthResponse_Response struct { 508 state protoimpl.MessageState 509 sizeCache protoimpl.SizeCache 510 unknownFields protoimpl.UnknownFields 511 512 // Types that are assignable to Response: 513 // 514 // *SetBuilderHealthResponse_Response_Result 515 // *SetBuilderHealthResponse_Response_Error 516 Response isSetBuilderHealthResponse_Response_Response `protobuf_oneof:"response"` 517 } 518 519 func (x *SetBuilderHealthResponse_Response) Reset() { 520 *x = SetBuilderHealthResponse_Response{} 521 if protoimpl.UnsafeEnabled { 522 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[7] 523 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 524 ms.StoreMessageInfo(mi) 525 } 526 } 527 528 func (x *SetBuilderHealthResponse_Response) String() string { 529 return protoimpl.X.MessageStringOf(x) 530 } 531 532 func (*SetBuilderHealthResponse_Response) ProtoMessage() {} 533 534 func (x *SetBuilderHealthResponse_Response) ProtoReflect() protoreflect.Message { 535 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[7] 536 if protoimpl.UnsafeEnabled && x != nil { 537 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 538 if ms.LoadMessageInfo() == nil { 539 ms.StoreMessageInfo(mi) 540 } 541 return ms 542 } 543 return mi.MessageOf(x) 544 } 545 546 // Deprecated: Use SetBuilderHealthResponse_Response.ProtoReflect.Descriptor instead. 547 func (*SetBuilderHealthResponse_Response) Descriptor() ([]byte, []int) { 548 return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{4, 0} 549 } 550 551 func (m *SetBuilderHealthResponse_Response) GetResponse() isSetBuilderHealthResponse_Response_Response { 552 if m != nil { 553 return m.Response 554 } 555 return nil 556 } 557 558 func (x *SetBuilderHealthResponse_Response) GetResult() *emptypb.Empty { 559 if x, ok := x.GetResponse().(*SetBuilderHealthResponse_Response_Result); ok { 560 return x.Result 561 } 562 return nil 563 } 564 565 func (x *SetBuilderHealthResponse_Response) GetError() *status.Status { 566 if x, ok := x.GetResponse().(*SetBuilderHealthResponse_Response_Error); ok { 567 return x.Error 568 } 569 return nil 570 } 571 572 type isSetBuilderHealthResponse_Response_Response interface { 573 isSetBuilderHealthResponse_Response_Response() 574 } 575 576 type SetBuilderHealthResponse_Response_Result struct { 577 Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3,oneof"` 578 } 579 580 type SetBuilderHealthResponse_Response_Error struct { 581 Error *status.Status `protobuf:"bytes,100,opt,name=error,proto3,oneof"` 582 } 583 584 func (*SetBuilderHealthResponse_Response_Result) isSetBuilderHealthResponse_Response_Response() {} 585 586 func (*SetBuilderHealthResponse_Response_Error) isSetBuilderHealthResponse_Response_Response() {} 587 588 var File_go_chromium_org_luci_buildbucket_proto_builder_service_proto protoreflect.FileDescriptor 589 590 var file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDesc = []byte{ 591 0x0a, 0x3c, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 592 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 593 0x65, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 594 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 595 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 596 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 597 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 598 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 599 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 600 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 601 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 602 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 603 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x75, 604 0x69, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 605 0x74, 0x6f, 0x1a, 0x33, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 606 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 607 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 608 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6f, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x75, 609 0x69, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x02, 610 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 611 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 612 0x72, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x18, 613 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 614 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x4d, 0x61, 615 0x73, 0x6b, 0x52, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0x83, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 616 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 617 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 618 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 619 0x63, 0x6b, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b, 620 0x65, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 621 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 622 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 623 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x77, 624 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 625 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 626 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 627 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 628 0x72, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x12, 629 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 630 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 631 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xe4, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x42, 632 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 633 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x18, 0x01, 0x20, 634 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 635 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 636 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x75, 0x69, 637 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x06, 0x68, 0x65, 0x61, 0x6c, 638 0x74, 0x68, 0x1a, 0x7a, 0x0a, 0x0d, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 639 0x6c, 0x74, 0x68, 0x12, 0x2e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 640 0x19, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 641 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x49, 0x44, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 642 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x18, 0x02, 0x20, 643 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 644 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 645 0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x22, 0xe1, 646 0x01, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 647 0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x09, 0x72, 648 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 649 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 650 0x53, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 651 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 652 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x1a, 0x74, 0x0a, 0x08, 653 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 654 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 655 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 656 0x48, 0x00, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x72, 657 0x72, 0x6f, 0x72, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 658 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 659 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 660 0x73, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x0b, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x4d, 0x61, 661 0x73, 0x6b, 0x12, 0x3f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 662 0x32, 0x2b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 663 0x32, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x42, 0x75, 664 0x69, 0x6c, 0x64, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 665 0x79, 0x70, 0x65, 0x22, 0x61, 0x0a, 0x0f, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x4d, 0x61, 666 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x45, 667 0x52, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 668 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4f, 0x4e, 669 0x46, 0x49, 0x47, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 670 0x4c, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f, 671 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x03, 0x32, 0xa0, 0x02, 0x0a, 0x08, 0x42, 0x75, 0x69, 0x6c, 0x64, 672 0x65, 0x72, 0x73, 0x12, 0x4e, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 673 0x72, 0x12, 0x21, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 674 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 675 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 676 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x49, 0x74, 0x65, 677 0x6d, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 678 0x65, 0x72, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 679 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 680 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 681 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 682 0x69, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 683 0x12, 0x67, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 684 0x61, 0x6c, 0x74, 0x68, 0x12, 0x27, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 685 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 686 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 687 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53, 688 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 689 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 690 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 691 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x70, 0x72, 692 0x6f, 0x74, 0x6f, 0x3b, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x70, 693 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 694 } 695 696 var ( 697 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescOnce sync.Once 698 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescData = file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDesc 699 ) 700 701 func file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP() []byte { 702 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescOnce.Do(func() { 703 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescData) 704 }) 705 return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescData 706 } 707 708 var file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 709 var file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8) 710 var file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_goTypes = []interface{}{ 711 (BuilderMask_BuilderMaskType)(0), // 0: buildbucket.v2.BuilderMask.BuilderMaskType 712 (*GetBuilderRequest)(nil), // 1: buildbucket.v2.GetBuilderRequest 713 (*ListBuildersRequest)(nil), // 2: buildbucket.v2.ListBuildersRequest 714 (*ListBuildersResponse)(nil), // 3: buildbucket.v2.ListBuildersResponse 715 (*SetBuilderHealthRequest)(nil), // 4: buildbucket.v2.SetBuilderHealthRequest 716 (*SetBuilderHealthResponse)(nil), // 5: buildbucket.v2.SetBuilderHealthResponse 717 (*BuilderMask)(nil), // 6: buildbucket.v2.BuilderMask 718 (*SetBuilderHealthRequest_BuilderHealth)(nil), // 7: buildbucket.v2.SetBuilderHealthRequest.BuilderHealth 719 (*SetBuilderHealthResponse_Response)(nil), // 8: buildbucket.v2.SetBuilderHealthResponse.Response 720 (*BuilderID)(nil), // 9: buildbucket.v2.BuilderID 721 (*BuilderItem)(nil), // 10: buildbucket.v2.BuilderItem 722 (*HealthStatus)(nil), // 11: buildbucket.v2.HealthStatus 723 (*emptypb.Empty)(nil), // 12: google.protobuf.Empty 724 (*status.Status)(nil), // 13: google.rpc.Status 725 } 726 var file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_depIdxs = []int32{ 727 9, // 0: buildbucket.v2.GetBuilderRequest.id:type_name -> buildbucket.v2.BuilderID 728 6, // 1: buildbucket.v2.GetBuilderRequest.mask:type_name -> buildbucket.v2.BuilderMask 729 10, // 2: buildbucket.v2.ListBuildersResponse.builders:type_name -> buildbucket.v2.BuilderItem 730 7, // 3: buildbucket.v2.SetBuilderHealthRequest.health:type_name -> buildbucket.v2.SetBuilderHealthRequest.BuilderHealth 731 8, // 4: buildbucket.v2.SetBuilderHealthResponse.responses:type_name -> buildbucket.v2.SetBuilderHealthResponse.Response 732 0, // 5: buildbucket.v2.BuilderMask.type:type_name -> buildbucket.v2.BuilderMask.BuilderMaskType 733 9, // 6: buildbucket.v2.SetBuilderHealthRequest.BuilderHealth.id:type_name -> buildbucket.v2.BuilderID 734 11, // 7: buildbucket.v2.SetBuilderHealthRequest.BuilderHealth.health:type_name -> buildbucket.v2.HealthStatus 735 12, // 8: buildbucket.v2.SetBuilderHealthResponse.Response.result:type_name -> google.protobuf.Empty 736 13, // 9: buildbucket.v2.SetBuilderHealthResponse.Response.error:type_name -> google.rpc.Status 737 1, // 10: buildbucket.v2.Builders.GetBuilder:input_type -> buildbucket.v2.GetBuilderRequest 738 2, // 11: buildbucket.v2.Builders.ListBuilders:input_type -> buildbucket.v2.ListBuildersRequest 739 4, // 12: buildbucket.v2.Builders.SetBuilderHealth:input_type -> buildbucket.v2.SetBuilderHealthRequest 740 10, // 13: buildbucket.v2.Builders.GetBuilder:output_type -> buildbucket.v2.BuilderItem 741 3, // 14: buildbucket.v2.Builders.ListBuilders:output_type -> buildbucket.v2.ListBuildersResponse 742 5, // 15: buildbucket.v2.Builders.SetBuilderHealth:output_type -> buildbucket.v2.SetBuilderHealthResponse 743 13, // [13:16] is the sub-list for method output_type 744 10, // [10:13] is the sub-list for method input_type 745 10, // [10:10] is the sub-list for extension type_name 746 10, // [10:10] is the sub-list for extension extendee 747 0, // [0:10] is the sub-list for field type_name 748 } 749 750 func init() { file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_init() } 751 func file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_init() { 752 if File_go_chromium_org_luci_buildbucket_proto_builder_service_proto != nil { 753 return 754 } 755 file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_init() 756 file_go_chromium_org_luci_buildbucket_proto_common_proto_init() 757 if !protoimpl.UnsafeEnabled { 758 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 759 switch v := v.(*GetBuilderRequest); i { 760 case 0: 761 return &v.state 762 case 1: 763 return &v.sizeCache 764 case 2: 765 return &v.unknownFields 766 default: 767 return nil 768 } 769 } 770 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 771 switch v := v.(*ListBuildersRequest); i { 772 case 0: 773 return &v.state 774 case 1: 775 return &v.sizeCache 776 case 2: 777 return &v.unknownFields 778 default: 779 return nil 780 } 781 } 782 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 783 switch v := v.(*ListBuildersResponse); i { 784 case 0: 785 return &v.state 786 case 1: 787 return &v.sizeCache 788 case 2: 789 return &v.unknownFields 790 default: 791 return nil 792 } 793 } 794 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 795 switch v := v.(*SetBuilderHealthRequest); i { 796 case 0: 797 return &v.state 798 case 1: 799 return &v.sizeCache 800 case 2: 801 return &v.unknownFields 802 default: 803 return nil 804 } 805 } 806 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 807 switch v := v.(*SetBuilderHealthResponse); i { 808 case 0: 809 return &v.state 810 case 1: 811 return &v.sizeCache 812 case 2: 813 return &v.unknownFields 814 default: 815 return nil 816 } 817 } 818 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 819 switch v := v.(*BuilderMask); i { 820 case 0: 821 return &v.state 822 case 1: 823 return &v.sizeCache 824 case 2: 825 return &v.unknownFields 826 default: 827 return nil 828 } 829 } 830 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 831 switch v := v.(*SetBuilderHealthRequest_BuilderHealth); i { 832 case 0: 833 return &v.state 834 case 1: 835 return &v.sizeCache 836 case 2: 837 return &v.unknownFields 838 default: 839 return nil 840 } 841 } 842 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 843 switch v := v.(*SetBuilderHealthResponse_Response); i { 844 case 0: 845 return &v.state 846 case 1: 847 return &v.sizeCache 848 case 2: 849 return &v.unknownFields 850 default: 851 return nil 852 } 853 } 854 } 855 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[7].OneofWrappers = []interface{}{ 856 (*SetBuilderHealthResponse_Response_Result)(nil), 857 (*SetBuilderHealthResponse_Response_Error)(nil), 858 } 859 type x struct{} 860 out := protoimpl.TypeBuilder{ 861 File: protoimpl.DescBuilder{ 862 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 863 RawDescriptor: file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDesc, 864 NumEnums: 1, 865 NumMessages: 8, 866 NumExtensions: 0, 867 NumServices: 1, 868 }, 869 GoTypes: file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_goTypes, 870 DependencyIndexes: file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_depIdxs, 871 EnumInfos: file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_enumTypes, 872 MessageInfos: file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes, 873 }.Build() 874 File_go_chromium_org_luci_buildbucket_proto_builder_service_proto = out.File 875 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDesc = nil 876 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_goTypes = nil 877 file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_depIdxs = nil 878 } 879 880 // Reference imports to suppress errors if they are not otherwise used. 881 var _ context.Context 882 var _ grpc.ClientConnInterface 883 884 // This is a compile-time assertion to ensure that this generated file 885 // is compatible with the grpc package it is being compiled against. 886 const _ = grpc.SupportPackageIsVersion6 887 888 // BuildersClient is the client API for Builders service. 889 // 890 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 891 type BuildersClient interface { 892 // Looks up one builder. 893 GetBuilder(ctx context.Context, in *GetBuilderRequest, opts ...grpc.CallOption) (*BuilderItem, error) 894 // Lists all builders of a project or a bucket. 895 ListBuilders(ctx context.Context, in *ListBuildersRequest, opts ...grpc.CallOption) (*ListBuildersResponse, error) 896 // SetBuilderHealth allows a Builder's health to be set. 897 SetBuilderHealth(ctx context.Context, in *SetBuilderHealthRequest, opts ...grpc.CallOption) (*SetBuilderHealthResponse, error) 898 } 899 type buildersPRPCClient struct { 900 client *prpc.Client 901 } 902 903 func NewBuildersPRPCClient(client *prpc.Client) BuildersClient { 904 return &buildersPRPCClient{client} 905 } 906 907 func (c *buildersPRPCClient) GetBuilder(ctx context.Context, in *GetBuilderRequest, opts ...grpc.CallOption) (*BuilderItem, error) { 908 out := new(BuilderItem) 909 err := c.client.Call(ctx, "buildbucket.v2.Builders", "GetBuilder", in, out, opts...) 910 if err != nil { 911 return nil, err 912 } 913 return out, nil 914 } 915 916 func (c *buildersPRPCClient) ListBuilders(ctx context.Context, in *ListBuildersRequest, opts ...grpc.CallOption) (*ListBuildersResponse, error) { 917 out := new(ListBuildersResponse) 918 err := c.client.Call(ctx, "buildbucket.v2.Builders", "ListBuilders", in, out, opts...) 919 if err != nil { 920 return nil, err 921 } 922 return out, nil 923 } 924 925 func (c *buildersPRPCClient) SetBuilderHealth(ctx context.Context, in *SetBuilderHealthRequest, opts ...grpc.CallOption) (*SetBuilderHealthResponse, error) { 926 out := new(SetBuilderHealthResponse) 927 err := c.client.Call(ctx, "buildbucket.v2.Builders", "SetBuilderHealth", in, out, opts...) 928 if err != nil { 929 return nil, err 930 } 931 return out, nil 932 } 933 934 type buildersClient struct { 935 cc grpc.ClientConnInterface 936 } 937 938 func NewBuildersClient(cc grpc.ClientConnInterface) BuildersClient { 939 return &buildersClient{cc} 940 } 941 942 func (c *buildersClient) GetBuilder(ctx context.Context, in *GetBuilderRequest, opts ...grpc.CallOption) (*BuilderItem, error) { 943 out := new(BuilderItem) 944 err := c.cc.Invoke(ctx, "/buildbucket.v2.Builders/GetBuilder", in, out, opts...) 945 if err != nil { 946 return nil, err 947 } 948 return out, nil 949 } 950 951 func (c *buildersClient) ListBuilders(ctx context.Context, in *ListBuildersRequest, opts ...grpc.CallOption) (*ListBuildersResponse, error) { 952 out := new(ListBuildersResponse) 953 err := c.cc.Invoke(ctx, "/buildbucket.v2.Builders/ListBuilders", in, out, opts...) 954 if err != nil { 955 return nil, err 956 } 957 return out, nil 958 } 959 960 func (c *buildersClient) SetBuilderHealth(ctx context.Context, in *SetBuilderHealthRequest, opts ...grpc.CallOption) (*SetBuilderHealthResponse, error) { 961 out := new(SetBuilderHealthResponse) 962 err := c.cc.Invoke(ctx, "/buildbucket.v2.Builders/SetBuilderHealth", in, out, opts...) 963 if err != nil { 964 return nil, err 965 } 966 return out, nil 967 } 968 969 // BuildersServer is the server API for Builders service. 970 type BuildersServer interface { 971 // Looks up one builder. 972 GetBuilder(context.Context, *GetBuilderRequest) (*BuilderItem, error) 973 // Lists all builders of a project or a bucket. 974 ListBuilders(context.Context, *ListBuildersRequest) (*ListBuildersResponse, error) 975 // SetBuilderHealth allows a Builder's health to be set. 976 SetBuilderHealth(context.Context, *SetBuilderHealthRequest) (*SetBuilderHealthResponse, error) 977 } 978 979 // UnimplementedBuildersServer can be embedded to have forward compatible implementations. 980 type UnimplementedBuildersServer struct { 981 } 982 983 func (*UnimplementedBuildersServer) GetBuilder(context.Context, *GetBuilderRequest) (*BuilderItem, error) { 984 return nil, status1.Errorf(codes.Unimplemented, "method GetBuilder not implemented") 985 } 986 func (*UnimplementedBuildersServer) ListBuilders(context.Context, *ListBuildersRequest) (*ListBuildersResponse, error) { 987 return nil, status1.Errorf(codes.Unimplemented, "method ListBuilders not implemented") 988 } 989 func (*UnimplementedBuildersServer) SetBuilderHealth(context.Context, *SetBuilderHealthRequest) (*SetBuilderHealthResponse, error) { 990 return nil, status1.Errorf(codes.Unimplemented, "method SetBuilderHealth not implemented") 991 } 992 993 func RegisterBuildersServer(s prpc.Registrar, srv BuildersServer) { 994 s.RegisterService(&_Builders_serviceDesc, srv) 995 } 996 997 func _Builders_GetBuilder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 998 in := new(GetBuilderRequest) 999 if err := dec(in); err != nil { 1000 return nil, err 1001 } 1002 if interceptor == nil { 1003 return srv.(BuildersServer).GetBuilder(ctx, in) 1004 } 1005 info := &grpc.UnaryServerInfo{ 1006 Server: srv, 1007 FullMethod: "/buildbucket.v2.Builders/GetBuilder", 1008 } 1009 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1010 return srv.(BuildersServer).GetBuilder(ctx, req.(*GetBuilderRequest)) 1011 } 1012 return interceptor(ctx, in, info, handler) 1013 } 1014 1015 func _Builders_ListBuilders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1016 in := new(ListBuildersRequest) 1017 if err := dec(in); err != nil { 1018 return nil, err 1019 } 1020 if interceptor == nil { 1021 return srv.(BuildersServer).ListBuilders(ctx, in) 1022 } 1023 info := &grpc.UnaryServerInfo{ 1024 Server: srv, 1025 FullMethod: "/buildbucket.v2.Builders/ListBuilders", 1026 } 1027 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1028 return srv.(BuildersServer).ListBuilders(ctx, req.(*ListBuildersRequest)) 1029 } 1030 return interceptor(ctx, in, info, handler) 1031 } 1032 1033 func _Builders_SetBuilderHealth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1034 in := new(SetBuilderHealthRequest) 1035 if err := dec(in); err != nil { 1036 return nil, err 1037 } 1038 if interceptor == nil { 1039 return srv.(BuildersServer).SetBuilderHealth(ctx, in) 1040 } 1041 info := &grpc.UnaryServerInfo{ 1042 Server: srv, 1043 FullMethod: "/buildbucket.v2.Builders/SetBuilderHealth", 1044 } 1045 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1046 return srv.(BuildersServer).SetBuilderHealth(ctx, req.(*SetBuilderHealthRequest)) 1047 } 1048 return interceptor(ctx, in, info, handler) 1049 } 1050 1051 var _Builders_serviceDesc = grpc.ServiceDesc{ 1052 ServiceName: "buildbucket.v2.Builders", 1053 HandlerType: (*BuildersServer)(nil), 1054 Methods: []grpc.MethodDesc{ 1055 { 1056 MethodName: "GetBuilder", 1057 Handler: _Builders_GetBuilder_Handler, 1058 }, 1059 { 1060 MethodName: "ListBuilders", 1061 Handler: _Builders_ListBuilders_Handler, 1062 }, 1063 { 1064 MethodName: "SetBuilderHealth", 1065 Handler: _Builders_SetBuilderHealth_Handler, 1066 }, 1067 }, 1068 Streams: []grpc.StreamDesc{}, 1069 Metadata: "go.chromium.org/luci/buildbucket/proto/builder_service.proto", 1070 }