go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/buildbucket/proto/builder_common.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_common.proto 10 11 package buildbucketpb 12 13 import ( 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // Identifies a builder. 28 // Canonical string representation: "{project}/{bucket}/{builder}". 29 type BuilderID struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 // Project ID, e.g. "chromium". Unique within a LUCI deployment. 35 // Regex: ^[a-z0-9\-_]+$ 36 Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` 37 // Bucket name, e.g. "try". Unique within the project. 38 // Regex: ^[a-z0-9\-_.]{1,100}$ 39 // Together with project, defines an ACL. 40 Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` 41 // Builder name, e.g. "linux-rel". Unique within the bucket. 42 // Regex: ^[a-zA-Z0-9\-_.\(\) ]{1,128}$ 43 Builder string `protobuf:"bytes,3,opt,name=builder,proto3" json:"builder,omitempty"` 44 } 45 46 func (x *BuilderID) Reset() { 47 *x = BuilderID{} 48 if protoimpl.UnsafeEnabled { 49 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[0] 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 ms.StoreMessageInfo(mi) 52 } 53 } 54 55 func (x *BuilderID) String() string { 56 return protoimpl.X.MessageStringOf(x) 57 } 58 59 func (*BuilderID) ProtoMessage() {} 60 61 func (x *BuilderID) ProtoReflect() protoreflect.Message { 62 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[0] 63 if protoimpl.UnsafeEnabled && x != nil { 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 if ms.LoadMessageInfo() == nil { 66 ms.StoreMessageInfo(mi) 67 } 68 return ms 69 } 70 return mi.MessageOf(x) 71 } 72 73 // Deprecated: Use BuilderID.ProtoReflect.Descriptor instead. 74 func (*BuilderID) Descriptor() ([]byte, []int) { 75 return file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescGZIP(), []int{0} 76 } 77 78 func (x *BuilderID) GetProject() string { 79 if x != nil { 80 return x.Project 81 } 82 return "" 83 } 84 85 func (x *BuilderID) GetBucket() string { 86 if x != nil { 87 return x.Bucket 88 } 89 return "" 90 } 91 92 func (x *BuilderID) GetBuilder() string { 93 if x != nil { 94 return x.Builder 95 } 96 return "" 97 } 98 99 type BuilderMetadata struct { 100 state protoimpl.MessageState 101 sizeCache protoimpl.SizeCache 102 unknownFields protoimpl.UnknownFields 103 104 // Team that owns the builder 105 Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` 106 // Builders current health status 107 Health *HealthStatus `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"` 108 } 109 110 func (x *BuilderMetadata) Reset() { 111 *x = BuilderMetadata{} 112 if protoimpl.UnsafeEnabled { 113 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[1] 114 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 115 ms.StoreMessageInfo(mi) 116 } 117 } 118 119 func (x *BuilderMetadata) String() string { 120 return protoimpl.X.MessageStringOf(x) 121 } 122 123 func (*BuilderMetadata) ProtoMessage() {} 124 125 func (x *BuilderMetadata) ProtoReflect() protoreflect.Message { 126 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[1] 127 if protoimpl.UnsafeEnabled && x != nil { 128 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 129 if ms.LoadMessageInfo() == nil { 130 ms.StoreMessageInfo(mi) 131 } 132 return ms 133 } 134 return mi.MessageOf(x) 135 } 136 137 // Deprecated: Use BuilderMetadata.ProtoReflect.Descriptor instead. 138 func (*BuilderMetadata) Descriptor() ([]byte, []int) { 139 return file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescGZIP(), []int{1} 140 } 141 142 func (x *BuilderMetadata) GetOwner() string { 143 if x != nil { 144 return x.Owner 145 } 146 return "" 147 } 148 149 func (x *BuilderMetadata) GetHealth() *HealthStatus { 150 if x != nil { 151 return x.Health 152 } 153 return nil 154 } 155 156 // A configured builder. 157 // 158 // It is called BuilderItem and not Builder because 159 // 1) Builder already exists 160 // 2) Name "Builder" is incompatible with proto->Java compiler. 161 type BuilderItem struct { 162 state protoimpl.MessageState 163 sizeCache protoimpl.SizeCache 164 unknownFields protoimpl.UnknownFields 165 166 // Uniquely identifies the builder in a given Buildbucket instance. 167 Id *BuilderID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 168 // User-supplied configuration after normalization. 169 // Does not refer to mixins and has defaults inlined. 170 Config *BuilderConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` 171 // Metadata surrounding the builder. 172 Metadata *BuilderMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` 173 } 174 175 func (x *BuilderItem) Reset() { 176 *x = BuilderItem{} 177 if protoimpl.UnsafeEnabled { 178 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[2] 179 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 180 ms.StoreMessageInfo(mi) 181 } 182 } 183 184 func (x *BuilderItem) String() string { 185 return protoimpl.X.MessageStringOf(x) 186 } 187 188 func (*BuilderItem) ProtoMessage() {} 189 190 func (x *BuilderItem) ProtoReflect() protoreflect.Message { 191 mi := &file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[2] 192 if protoimpl.UnsafeEnabled && x != nil { 193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 194 if ms.LoadMessageInfo() == nil { 195 ms.StoreMessageInfo(mi) 196 } 197 return ms 198 } 199 return mi.MessageOf(x) 200 } 201 202 // Deprecated: Use BuilderItem.ProtoReflect.Descriptor instead. 203 func (*BuilderItem) Descriptor() ([]byte, []int) { 204 return file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescGZIP(), []int{2} 205 } 206 207 func (x *BuilderItem) GetId() *BuilderID { 208 if x != nil { 209 return x.Id 210 } 211 return nil 212 } 213 214 func (x *BuilderItem) GetConfig() *BuilderConfig { 215 if x != nil { 216 return x.Config 217 } 218 return nil 219 } 220 221 func (x *BuilderItem) GetMetadata() *BuilderMetadata { 222 if x != nil { 223 return x.Metadata 224 } 225 return nil 226 } 227 228 var File_go_chromium_org_luci_buildbucket_proto_builder_common_proto protoreflect.FileDescriptor 229 230 var file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDesc = []byte{ 231 0x0a, 0x3b, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 232 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 233 0x65, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 234 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 235 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x1a, 0x33, 0x67, 236 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 237 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2f, 238 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 239 0x74, 0x6f, 0x1a, 0x39, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 240 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 241 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 242 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3b, 0x67, 243 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 244 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2f, 245 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x63, 0x6f, 246 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x01, 0x0a, 0x09, 0x42, 247 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x49, 0x44, 0x12, 0x2e, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 248 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x14, 0x9a, 0xc3, 0x1a, 0x10, 0x53, 249 0x65, 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 250 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x2c, 0x0a, 0x06, 0x62, 0x75, 0x63, 0x6b, 251 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x14, 0x9a, 0xc3, 0x1a, 0x10, 0x53, 0x65, 252 0x74, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x06, 253 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x2e, 0x0a, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x65, 254 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x14, 0x9a, 0xc3, 0x1a, 0x10, 0x53, 0x65, 0x74, 255 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x52, 0x07, 0x62, 256 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x22, 0x5d, 0x0a, 0x0f, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 257 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 258 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 259 0x34, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 260 0x1c, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 261 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x68, 262 0x65, 0x61, 0x6c, 0x74, 0x68, 0x22, 0xa9, 0x01, 0x0a, 0x0b, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 263 0x72, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x29, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 264 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 265 0x76, 0x32, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x49, 0x44, 0x52, 0x02, 0x69, 0x64, 266 0x12, 0x32, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 267 0x32, 0x1a, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x42, 268 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, 0x6f, 269 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 270 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 0x75, 271 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x65, 0x72, 0x4d, 272 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 273 0x61, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 274 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x62, 275 0x75, 0x63, 0x6b, 0x65, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x62, 0x75, 0x69, 0x6c, 276 0x64, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 277 0x33, 278 } 279 280 var ( 281 file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescOnce sync.Once 282 file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescData = file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDesc 283 ) 284 285 func file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescGZIP() []byte { 286 file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescOnce.Do(func() { 287 file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescData) 288 }) 289 return file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescData 290 } 291 292 var file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 293 var file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_goTypes = []interface{}{ 294 (*BuilderID)(nil), // 0: buildbucket.v2.BuilderID 295 (*BuilderMetadata)(nil), // 1: buildbucket.v2.BuilderMetadata 296 (*BuilderItem)(nil), // 2: buildbucket.v2.BuilderItem 297 (*HealthStatus)(nil), // 3: buildbucket.v2.HealthStatus 298 (*BuilderConfig)(nil), // 4: buildbucket.BuilderConfig 299 } 300 var file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_depIdxs = []int32{ 301 3, // 0: buildbucket.v2.BuilderMetadata.health:type_name -> buildbucket.v2.HealthStatus 302 0, // 1: buildbucket.v2.BuilderItem.id:type_name -> buildbucket.v2.BuilderID 303 4, // 2: buildbucket.v2.BuilderItem.config:type_name -> buildbucket.BuilderConfig 304 1, // 3: buildbucket.v2.BuilderItem.metadata:type_name -> buildbucket.v2.BuilderMetadata 305 4, // [4:4] is the sub-list for method output_type 306 4, // [4:4] is the sub-list for method input_type 307 4, // [4:4] is the sub-list for extension type_name 308 4, // [4:4] is the sub-list for extension extendee 309 0, // [0:4] is the sub-list for field type_name 310 } 311 312 func init() { file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_init() } 313 func file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_init() { 314 if File_go_chromium_org_luci_buildbucket_proto_builder_common_proto != nil { 315 return 316 } 317 file_go_chromium_org_luci_buildbucket_proto_common_proto_init() 318 file_go_chromium_org_luci_buildbucket_proto_field_option_proto_init() 319 file_go_chromium_org_luci_buildbucket_proto_project_config_proto_init() 320 if !protoimpl.UnsafeEnabled { 321 file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 322 switch v := v.(*BuilderID); i { 323 case 0: 324 return &v.state 325 case 1: 326 return &v.sizeCache 327 case 2: 328 return &v.unknownFields 329 default: 330 return nil 331 } 332 } 333 file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 334 switch v := v.(*BuilderMetadata); i { 335 case 0: 336 return &v.state 337 case 1: 338 return &v.sizeCache 339 case 2: 340 return &v.unknownFields 341 default: 342 return nil 343 } 344 } 345 file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 346 switch v := v.(*BuilderItem); i { 347 case 0: 348 return &v.state 349 case 1: 350 return &v.sizeCache 351 case 2: 352 return &v.unknownFields 353 default: 354 return nil 355 } 356 } 357 } 358 type x struct{} 359 out := protoimpl.TypeBuilder{ 360 File: protoimpl.DescBuilder{ 361 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 362 RawDescriptor: file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDesc, 363 NumEnums: 0, 364 NumMessages: 3, 365 NumExtensions: 0, 366 NumServices: 0, 367 }, 368 GoTypes: file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_goTypes, 369 DependencyIndexes: file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_depIdxs, 370 MessageInfos: file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes, 371 }.Build() 372 File_go_chromium_org_luci_buildbucket_proto_builder_common_proto = out.File 373 file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDesc = nil 374 file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_goTypes = nil 375 file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_depIdxs = nil 376 }