blob: e2ae2ae87d1156460355f0bd2452f3ae66d4bcc8 [file] [log] [blame]
// Copyright 2020 The Swarming Authors. All rights reserved.
// Use of this source code is governed by the Apache v2.0 license that can be
// found in the LICENSE file.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc v5.26.1
// source: go.chromium.org/luci/buildbucket/proto/builder_service.proto
package buildbucketpb
import prpc "go.chromium.org/luci/grpc/prpc"
import (
context "context"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status1 "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type BuilderMask_BuilderMaskType int32
const (
BuilderMask_BUILDER_MASK_TYPE_UNSPECIFIED BuilderMask_BuilderMaskType = 0
// Default. Returns ID + Config fields in BuilderItem.
BuilderMask_CONFIG_ONLY BuilderMask_BuilderMaskType = 1
// Returns all fields in BuilderItem.
BuilderMask_ALL BuilderMask_BuilderMaskType = 2
// Returns ID + METADATA fields in BuilderItem.
BuilderMask_METADATA_ONLY BuilderMask_BuilderMaskType = 3
)
// Enum value maps for BuilderMask_BuilderMaskType.
var (
BuilderMask_BuilderMaskType_name = map[int32]string{
0: "BUILDER_MASK_TYPE_UNSPECIFIED",
1: "CONFIG_ONLY",
2: "ALL",
3: "METADATA_ONLY",
}
BuilderMask_BuilderMaskType_value = map[string]int32{
"BUILDER_MASK_TYPE_UNSPECIFIED": 0,
"CONFIG_ONLY": 1,
"ALL": 2,
"METADATA_ONLY": 3,
}
)
func (x BuilderMask_BuilderMaskType) Enum() *BuilderMask_BuilderMaskType {
p := new(BuilderMask_BuilderMaskType)
*p = x
return p
}
func (x BuilderMask_BuilderMaskType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BuilderMask_BuilderMaskType) Descriptor() protoreflect.EnumDescriptor {
return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_enumTypes[0].Descriptor()
}
func (BuilderMask_BuilderMaskType) Type() protoreflect.EnumType {
return &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_enumTypes[0]
}
func (x BuilderMask_BuilderMaskType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BuilderMask_BuilderMaskType.Descriptor instead.
func (BuilderMask_BuilderMaskType) EnumDescriptor() ([]byte, []int) {
return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{5, 0}
}
// A request message for GetBuilder rpc.
type GetBuilderRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ID of the builder to return.
Id *BuilderID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Mask for which fields to include in the response.
//
// If not set, the default mask is CONFIG_ONLY.
Mask *BuilderMask `protobuf:"bytes,2,opt,name=mask,proto3" json:"mask,omitempty"`
}
func (x *GetBuilderRequest) Reset() {
*x = GetBuilderRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetBuilderRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetBuilderRequest) ProtoMessage() {}
func (x *GetBuilderRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetBuilderRequest.ProtoReflect.Descriptor instead.
func (*GetBuilderRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{0}
}
func (x *GetBuilderRequest) GetId() *BuilderID {
if x != nil {
return x.Id
}
return nil
}
func (x *GetBuilderRequest) GetMask() *BuilderMask {
if x != nil {
return x.Mask
}
return nil
}
// A request message for ListBuilders.
type ListBuildersRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// LUCI project, e.g. "chromium". Omit to list all builders.
//
// Required when bucket is specified.
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// A bucket in the project, e.g. "try".
//
// Omit to list all builders or all builders in a project.
Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"`
// The maximum number of builders to return.
//
// The service may return fewer than this value.
// If unspecified, at most 100 builders will be returned.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A page token, received from a previous `ListBuilders` call.
// Provide this to retrieve the subsequent page.
//
// When paginating, all other parameters provided to `ListBuilders` MUST
// match the call that provided the page token.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (x *ListBuildersRequest) Reset() {
*x = ListBuildersRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListBuildersRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListBuildersRequest) ProtoMessage() {}
func (x *ListBuildersRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListBuildersRequest.ProtoReflect.Descriptor instead.
func (*ListBuildersRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{1}
}
func (x *ListBuildersRequest) GetProject() string {
if x != nil {
return x.Project
}
return ""
}
func (x *ListBuildersRequest) GetBucket() string {
if x != nil {
return x.Bucket
}
return ""
}
func (x *ListBuildersRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListBuildersRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
// A response message for ListBuilders.
type ListBuildersResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Matched builders.
Builders []*BuilderItem `protobuf:"bytes,1,rep,name=builders,proto3" json:"builders,omitempty"`
// A token, which can be sent as `page_token` to retrieve the next page.
// If this field is omitted, there were no subsequent pages at the time of
// request.
// If the invocation is not finalized, more results may appear later.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListBuildersResponse) Reset() {
*x = ListBuildersResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListBuildersResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListBuildersResponse) ProtoMessage() {}
func (x *ListBuildersResponse) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListBuildersResponse.ProtoReflect.Descriptor instead.
func (*ListBuildersResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{2}
}
func (x *ListBuildersResponse) GetBuilders() []*BuilderItem {
if x != nil {
return x.Builders
}
return nil
}
func (x *ListBuildersResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// A request message for SetBuilderHealth RPC.
type SetBuilderHealthRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Health []*SetBuilderHealthRequest_BuilderHealth `protobuf:"bytes,1,rep,name=health,proto3" json:"health,omitempty"`
}
func (x *SetBuilderHealthRequest) Reset() {
*x = SetBuilderHealthRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetBuilderHealthRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetBuilderHealthRequest) ProtoMessage() {}
func (x *SetBuilderHealthRequest) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetBuilderHealthRequest.ProtoReflect.Descriptor instead.
func (*SetBuilderHealthRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{3}
}
func (x *SetBuilderHealthRequest) GetHealth() []*SetBuilderHealthRequest_BuilderHealth {
if x != nil {
return x.Health
}
return nil
}
// A response message for SetBuilderHealth RPC.
type SetBuilderHealthResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Responses should be empty protos or errors. They will map
// directly with the repeated health fields from SetBuilderHealthRequest.
Responses []*SetBuilderHealthResponse_Response `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
}
func (x *SetBuilderHealthResponse) Reset() {
*x = SetBuilderHealthResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetBuilderHealthResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetBuilderHealthResponse) ProtoMessage() {}
func (x *SetBuilderHealthResponse) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetBuilderHealthResponse.ProtoReflect.Descriptor instead.
func (*SetBuilderHealthResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{4}
}
func (x *SetBuilderHealthResponse) GetResponses() []*SetBuilderHealthResponse_Response {
if x != nil {
return x.Responses
}
return nil
}
type BuilderMask struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Type of mask to use to filter BuilderItem.
Type BuilderMask_BuilderMaskType `protobuf:"varint,1,opt,name=type,proto3,enum=buildbucket.v2.BuilderMask_BuilderMaskType" json:"type,omitempty"`
}
func (x *BuilderMask) Reset() {
*x = BuilderMask{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BuilderMask) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BuilderMask) ProtoMessage() {}
func (x *BuilderMask) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BuilderMask.ProtoReflect.Descriptor instead.
func (*BuilderMask) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{5}
}
func (x *BuilderMask) GetType() BuilderMask_BuilderMaskType {
if x != nil {
return x.Type
}
return BuilderMask_BUILDER_MASK_TYPE_UNSPECIFIED
}
// BuilderHealth needs BuilderID so that SetBuilderHealth RPC can properly update
// the Builder datastore entity with the updated HealthStatus.
type SetBuilderHealthRequest_BuilderHealth struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Builder to set the health score for.
// You must have the 'buildbucket.builders.set_health' permission for
// each of them.
Id *BuilderID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Required. Health status of the builder.
Health *HealthStatus `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"`
}
func (x *SetBuilderHealthRequest_BuilderHealth) Reset() {
*x = SetBuilderHealthRequest_BuilderHealth{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetBuilderHealthRequest_BuilderHealth) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetBuilderHealthRequest_BuilderHealth) ProtoMessage() {}
func (x *SetBuilderHealthRequest_BuilderHealth) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetBuilderHealthRequest_BuilderHealth.ProtoReflect.Descriptor instead.
func (*SetBuilderHealthRequest_BuilderHealth) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{3, 0}
}
func (x *SetBuilderHealthRequest_BuilderHealth) GetId() *BuilderID {
if x != nil {
return x.Id
}
return nil
}
func (x *SetBuilderHealthRequest_BuilderHealth) GetHealth() *HealthStatus {
if x != nil {
return x.Health
}
return nil
}
type SetBuilderHealthResponse_Response struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Response:
//
// *SetBuilderHealthResponse_Response_Result
// *SetBuilderHealthResponse_Response_Error
Response isSetBuilderHealthResponse_Response_Response `protobuf_oneof:"response"`
}
func (x *SetBuilderHealthResponse_Response) Reset() {
*x = SetBuilderHealthResponse_Response{}
if protoimpl.UnsafeEnabled {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetBuilderHealthResponse_Response) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetBuilderHealthResponse_Response) ProtoMessage() {}
func (x *SetBuilderHealthResponse_Response) ProtoReflect() protoreflect.Message {
mi := &file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SetBuilderHealthResponse_Response.ProtoReflect.Descriptor instead.
func (*SetBuilderHealthResponse_Response) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP(), []int{4, 0}
}
func (m *SetBuilderHealthResponse_Response) GetResponse() isSetBuilderHealthResponse_Response_Response {
if m != nil {
return m.Response
}
return nil
}
func (x *SetBuilderHealthResponse_Response) GetResult() *emptypb.Empty {
if x, ok := x.GetResponse().(*SetBuilderHealthResponse_Response_Result); ok {
return x.Result
}
return nil
}
func (x *SetBuilderHealthResponse_Response) GetError() *status.Status {
if x, ok := x.GetResponse().(*SetBuilderHealthResponse_Response_Error); ok {
return x.Error
}
return nil
}
type isSetBuilderHealthResponse_Response_Response interface {
isSetBuilderHealthResponse_Response_Response()
}
type SetBuilderHealthResponse_Response_Result struct {
Result *emptypb.Empty `protobuf:"bytes,1,opt,name=result,proto3,oneof"`
}
type SetBuilderHealthResponse_Response_Error struct {
Error *status.Status `protobuf:"bytes,100,opt,name=error,proto3,oneof"`
}
func (*SetBuilderHealthResponse_Response_Result) isSetBuilderHealthResponse_Response_Response() {}
func (*SetBuilderHealthResponse_Response_Error) isSetBuilderHealthResponse_Response_Response() {}
var File_go_chromium_org_luci_buildbucket_proto_builder_service_proto protoreflect.FileDescriptor
var file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDesc = []byte{
0x0a, 0x3c, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b,
0x65, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72,
0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e,
0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x1a, 0x1f,
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64,
0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69,
0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c,
0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x75,
0x69, 0x6c, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x1a, 0x33, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e,
0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75,
0x63, 0x6b, 0x65, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6f, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x75,
0x69, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64,
0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65,
0x72, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2f, 0x0a, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x18,
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63,
0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x4d, 0x61,
0x73, 0x6b, 0x52, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x22, 0x83, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73,
0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75,
0x63, 0x6b, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x63, 0x6b,
0x65, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12,
0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20,
0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x77,
0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65,
0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64,
0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65,
0x72, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x12,
0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61,
0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xe4, 0x01, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x42,
0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65,
0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48,
0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x42, 0x75, 0x69,
0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x06, 0x68, 0x65, 0x61, 0x6c,
0x74, 0x68, 0x1a, 0x7a, 0x0a, 0x0d, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61,
0x6c, 0x74, 0x68, 0x12, 0x2e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x19, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32,
0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x49, 0x44, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65,
0x74, 0x2e, 0x76, 0x32, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75,
0x73, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x22, 0xe1,
0x01, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61,
0x6c, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x09, 0x72,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31,
0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e,
0x53, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x1a, 0x74, 0x0a, 0x08,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75,
0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x48, 0x00, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2a, 0x0a, 0x05, 0x65, 0x72,
0x72, 0x6f, 0x72, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x00, 0x52,
0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x42, 0x0a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x0b, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x4d, 0x61,
0x73, 0x6b, 0x12, 0x3f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x2b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76,
0x32, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x2e, 0x42, 0x75,
0x69, 0x6c, 0x64, 0x65, 0x72, 0x4d, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,
0x79, 0x70, 0x65, 0x22, 0x61, 0x0a, 0x0f, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x4d, 0x61,
0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x1d, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x45,
0x52, 0x5f, 0x4d, 0x41, 0x53, 0x4b, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50,
0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x43, 0x4f, 0x4e,
0x46, 0x49, 0x47, 0x5f, 0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c,
0x4c, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x45, 0x54, 0x41, 0x44, 0x41, 0x54, 0x41, 0x5f,
0x4f, 0x4e, 0x4c, 0x59, 0x10, 0x03, 0x32, 0xa0, 0x02, 0x0a, 0x08, 0x42, 0x75, 0x69, 0x6c, 0x64,
0x65, 0x72, 0x73, 0x12, 0x4e, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65,
0x72, 0x12, 0x21, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e,
0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b,
0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x49, 0x74, 0x65,
0x6d, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64,
0x65, 0x72, 0x73, 0x12, 0x23, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65,
0x74, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64,
0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x75,
0x69, 0x6c, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
0x12, 0x67, 0x0a, 0x10, 0x53, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65,
0x61, 0x6c, 0x74, 0x68, 0x12, 0x27, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b,
0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72,
0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e,
0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x53,
0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e,
0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63,
0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x3b, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescOnce sync.Once
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescData = file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDesc
)
func file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescGZIP() []byte {
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescOnce.Do(func() {
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)
})
return file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDescData
}
var file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_goTypes = []interface{}{
(BuilderMask_BuilderMaskType)(0), // 0: buildbucket.v2.BuilderMask.BuilderMaskType
(*GetBuilderRequest)(nil), // 1: buildbucket.v2.GetBuilderRequest
(*ListBuildersRequest)(nil), // 2: buildbucket.v2.ListBuildersRequest
(*ListBuildersResponse)(nil), // 3: buildbucket.v2.ListBuildersResponse
(*SetBuilderHealthRequest)(nil), // 4: buildbucket.v2.SetBuilderHealthRequest
(*SetBuilderHealthResponse)(nil), // 5: buildbucket.v2.SetBuilderHealthResponse
(*BuilderMask)(nil), // 6: buildbucket.v2.BuilderMask
(*SetBuilderHealthRequest_BuilderHealth)(nil), // 7: buildbucket.v2.SetBuilderHealthRequest.BuilderHealth
(*SetBuilderHealthResponse_Response)(nil), // 8: buildbucket.v2.SetBuilderHealthResponse.Response
(*BuilderID)(nil), // 9: buildbucket.v2.BuilderID
(*BuilderItem)(nil), // 10: buildbucket.v2.BuilderItem
(*HealthStatus)(nil), // 11: buildbucket.v2.HealthStatus
(*emptypb.Empty)(nil), // 12: google.protobuf.Empty
(*status.Status)(nil), // 13: google.rpc.Status
}
var file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_depIdxs = []int32{
9, // 0: buildbucket.v2.GetBuilderRequest.id:type_name -> buildbucket.v2.BuilderID
6, // 1: buildbucket.v2.GetBuilderRequest.mask:type_name -> buildbucket.v2.BuilderMask
10, // 2: buildbucket.v2.ListBuildersResponse.builders:type_name -> buildbucket.v2.BuilderItem
7, // 3: buildbucket.v2.SetBuilderHealthRequest.health:type_name -> buildbucket.v2.SetBuilderHealthRequest.BuilderHealth
8, // 4: buildbucket.v2.SetBuilderHealthResponse.responses:type_name -> buildbucket.v2.SetBuilderHealthResponse.Response
0, // 5: buildbucket.v2.BuilderMask.type:type_name -> buildbucket.v2.BuilderMask.BuilderMaskType
9, // 6: buildbucket.v2.SetBuilderHealthRequest.BuilderHealth.id:type_name -> buildbucket.v2.BuilderID
11, // 7: buildbucket.v2.SetBuilderHealthRequest.BuilderHealth.health:type_name -> buildbucket.v2.HealthStatus
12, // 8: buildbucket.v2.SetBuilderHealthResponse.Response.result:type_name -> google.protobuf.Empty
13, // 9: buildbucket.v2.SetBuilderHealthResponse.Response.error:type_name -> google.rpc.Status
1, // 10: buildbucket.v2.Builders.GetBuilder:input_type -> buildbucket.v2.GetBuilderRequest
2, // 11: buildbucket.v2.Builders.ListBuilders:input_type -> buildbucket.v2.ListBuildersRequest
4, // 12: buildbucket.v2.Builders.SetBuilderHealth:input_type -> buildbucket.v2.SetBuilderHealthRequest
10, // 13: buildbucket.v2.Builders.GetBuilder:output_type -> buildbucket.v2.BuilderItem
3, // 14: buildbucket.v2.Builders.ListBuilders:output_type -> buildbucket.v2.ListBuildersResponse
5, // 15: buildbucket.v2.Builders.SetBuilderHealth:output_type -> buildbucket.v2.SetBuilderHealthResponse
13, // [13:16] is the sub-list for method output_type
10, // [10:13] is the sub-list for method input_type
10, // [10:10] is the sub-list for extension type_name
10, // [10:10] is the sub-list for extension extendee
0, // [0:10] is the sub-list for field type_name
}
func init() { file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_init() }
func file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_init() {
if File_go_chromium_org_luci_buildbucket_proto_builder_service_proto != nil {
return
}
file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_init()
file_go_chromium_org_luci_buildbucket_proto_common_proto_init()
if !protoimpl.UnsafeEnabled {
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetBuilderRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListBuildersRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListBuildersResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetBuilderHealthRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetBuilderHealthResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BuilderMask); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetBuilderHealthRequest_BuilderHealth); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SetBuilderHealthResponse_Response); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes[7].OneofWrappers = []interface{}{
(*SetBuilderHealthResponse_Response_Result)(nil),
(*SetBuilderHealthResponse_Response_Error)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDesc,
NumEnums: 1,
NumMessages: 8,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_goTypes,
DependencyIndexes: file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_depIdxs,
EnumInfos: file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_enumTypes,
MessageInfos: file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_msgTypes,
}.Build()
File_go_chromium_org_luci_buildbucket_proto_builder_service_proto = out.File
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_rawDesc = nil
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_goTypes = nil
file_go_chromium_org_luci_buildbucket_proto_builder_service_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// BuildersClient is the client API for Builders service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BuildersClient interface {
// Looks up one builder.
GetBuilder(ctx context.Context, in *GetBuilderRequest, opts ...grpc.CallOption) (*BuilderItem, error)
// Lists all builders of a project or a bucket.
ListBuilders(ctx context.Context, in *ListBuildersRequest, opts ...grpc.CallOption) (*ListBuildersResponse, error)
// SetBuilderHealth allows a Builder's health to be set.
SetBuilderHealth(ctx context.Context, in *SetBuilderHealthRequest, opts ...grpc.CallOption) (*SetBuilderHealthResponse, error)
}
type buildersPRPCClient struct {
client *prpc.Client
}
func NewBuildersPRPCClient(client *prpc.Client) BuildersClient {
return &buildersPRPCClient{client}
}
func (c *buildersPRPCClient) GetBuilder(ctx context.Context, in *GetBuilderRequest, opts ...grpc.CallOption) (*BuilderItem, error) {
out := new(BuilderItem)
err := c.client.Call(ctx, "buildbucket.v2.Builders", "GetBuilder", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *buildersPRPCClient) ListBuilders(ctx context.Context, in *ListBuildersRequest, opts ...grpc.CallOption) (*ListBuildersResponse, error) {
out := new(ListBuildersResponse)
err := c.client.Call(ctx, "buildbucket.v2.Builders", "ListBuilders", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *buildersPRPCClient) SetBuilderHealth(ctx context.Context, in *SetBuilderHealthRequest, opts ...grpc.CallOption) (*SetBuilderHealthResponse, error) {
out := new(SetBuilderHealthResponse)
err := c.client.Call(ctx, "buildbucket.v2.Builders", "SetBuilderHealth", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
type buildersClient struct {
cc grpc.ClientConnInterface
}
func NewBuildersClient(cc grpc.ClientConnInterface) BuildersClient {
return &buildersClient{cc}
}
func (c *buildersClient) GetBuilder(ctx context.Context, in *GetBuilderRequest, opts ...grpc.CallOption) (*BuilderItem, error) {
out := new(BuilderItem)
err := c.cc.Invoke(ctx, "/buildbucket.v2.Builders/GetBuilder", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *buildersClient) ListBuilders(ctx context.Context, in *ListBuildersRequest, opts ...grpc.CallOption) (*ListBuildersResponse, error) {
out := new(ListBuildersResponse)
err := c.cc.Invoke(ctx, "/buildbucket.v2.Builders/ListBuilders", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *buildersClient) SetBuilderHealth(ctx context.Context, in *SetBuilderHealthRequest, opts ...grpc.CallOption) (*SetBuilderHealthResponse, error) {
out := new(SetBuilderHealthResponse)
err := c.cc.Invoke(ctx, "/buildbucket.v2.Builders/SetBuilderHealth", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// BuildersServer is the server API for Builders service.
type BuildersServer interface {
// Looks up one builder.
GetBuilder(context.Context, *GetBuilderRequest) (*BuilderItem, error)
// Lists all builders of a project or a bucket.
ListBuilders(context.Context, *ListBuildersRequest) (*ListBuildersResponse, error)
// SetBuilderHealth allows a Builder's health to be set.
SetBuilderHealth(context.Context, *SetBuilderHealthRequest) (*SetBuilderHealthResponse, error)
}
// UnimplementedBuildersServer can be embedded to have forward compatible implementations.
type UnimplementedBuildersServer struct {
}
func (*UnimplementedBuildersServer) GetBuilder(context.Context, *GetBuilderRequest) (*BuilderItem, error) {
return nil, status1.Errorf(codes.Unimplemented, "method GetBuilder not implemented")
}
func (*UnimplementedBuildersServer) ListBuilders(context.Context, *ListBuildersRequest) (*ListBuildersResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method ListBuilders not implemented")
}
func (*UnimplementedBuildersServer) SetBuilderHealth(context.Context, *SetBuilderHealthRequest) (*SetBuilderHealthResponse, error) {
return nil, status1.Errorf(codes.Unimplemented, "method SetBuilderHealth not implemented")
}
func RegisterBuildersServer(s prpc.Registrar, srv BuildersServer) {
s.RegisterService(&_Builders_serviceDesc, srv)
}
func _Builders_GetBuilder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetBuilderRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BuildersServer).GetBuilder(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/buildbucket.v2.Builders/GetBuilder",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BuildersServer).GetBuilder(ctx, req.(*GetBuilderRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Builders_ListBuilders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListBuildersRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BuildersServer).ListBuilders(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/buildbucket.v2.Builders/ListBuilders",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BuildersServer).ListBuilders(ctx, req.(*ListBuildersRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Builders_SetBuilderHealth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetBuilderHealthRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BuildersServer).SetBuilderHealth(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/buildbucket.v2.Builders/SetBuilderHealth",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BuildersServer).SetBuilderHealth(ctx, req.(*SetBuilderHealthRequest))
}
return interceptor(ctx, in, info, handler)
}
var _Builders_serviceDesc = grpc.ServiceDesc{
ServiceName: "buildbucket.v2.Builders",
HandlerType: (*BuildersServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetBuilder",
Handler: _Builders_GetBuilder_Handler,
},
{
MethodName: "ListBuilders",
Handler: _Builders_ListBuilders_Handler,
},
{
MethodName: "SetBuilderHealth",
Handler: _Builders_SetBuilderHealth_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "go.chromium.org/luci/buildbucket/proto/builder_service.proto",
}