| // 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.36.9 |
| // protoc v6.32.0 |
| // source: go.chromium.org/luci/buildbucket/proto/builder_common.proto |
| |
| package buildbucketpb |
| |
| import ( |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| reflect "reflect" |
| sync "sync" |
| unsafe "unsafe" |
| ) |
| |
| 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) |
| ) |
| |
| // Identifies a builder. |
| // Canonical string representation: "{project}/{bucket}/{builder}". |
| type BuilderID struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Project ID, e.g. "chromium". Unique within a LUCI deployment. |
| // Regex: ^[a-z0-9\-_]+$ |
| Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` |
| // Bucket name, e.g. "try". Unique within the project. |
| // Regex: ^[a-z0-9\-_.]{1,100}$ |
| // Together with project, defines an ACL. |
| Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` |
| // Builder name, e.g. "linux-rel". Unique within the bucket. |
| // Regex: ^[a-zA-Z0-9\-_.\(\) ]{1,128}$ |
| Builder string `protobuf:"bytes,3,opt,name=builder,proto3" json:"builder,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *BuilderID) Reset() { |
| *x = BuilderID{} |
| mi := &file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *BuilderID) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*BuilderID) ProtoMessage() {} |
| |
| func (x *BuilderID) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[0] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use BuilderID.ProtoReflect.Descriptor instead. |
| func (*BuilderID) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *BuilderID) GetProject() string { |
| if x != nil { |
| return x.Project |
| } |
| return "" |
| } |
| |
| func (x *BuilderID) GetBucket() string { |
| if x != nil { |
| return x.Bucket |
| } |
| return "" |
| } |
| |
| func (x *BuilderID) GetBuilder() string { |
| if x != nil { |
| return x.Builder |
| } |
| return "" |
| } |
| |
| type BuilderMetadata struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Team that owns the builder |
| Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` |
| // Builders current health status |
| Health *HealthStatus `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *BuilderMetadata) Reset() { |
| *x = BuilderMetadata{} |
| mi := &file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *BuilderMetadata) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*BuilderMetadata) ProtoMessage() {} |
| |
| func (x *BuilderMetadata) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[1] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use BuilderMetadata.ProtoReflect.Descriptor instead. |
| func (*BuilderMetadata) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *BuilderMetadata) GetOwner() string { |
| if x != nil { |
| return x.Owner |
| } |
| return "" |
| } |
| |
| func (x *BuilderMetadata) GetHealth() *HealthStatus { |
| if x != nil { |
| return x.Health |
| } |
| return nil |
| } |
| |
| // A configured builder. |
| // |
| // It is called BuilderItem and not Builder because |
| // 1) Builder already exists |
| // 2) Name "Builder" is incompatible with proto->Java compiler. |
| type BuilderItem struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // Uniquely identifies the builder in a given Buildbucket instance. |
| Id *BuilderID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| // User-supplied configuration after normalization. |
| // Does not refer to mixins and has defaults inlined. |
| Config *BuilderConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` |
| // Metadata surrounding the builder. |
| Metadata *BuilderMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *BuilderItem) Reset() { |
| *x = BuilderItem{} |
| mi := &file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[2] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *BuilderItem) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*BuilderItem) ProtoMessage() {} |
| |
| func (x *BuilderItem) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes[2] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use BuilderItem.ProtoReflect.Descriptor instead. |
| func (*BuilderItem) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescGZIP(), []int{2} |
| } |
| |
| func (x *BuilderItem) GetId() *BuilderID { |
| if x != nil { |
| return x.Id |
| } |
| return nil |
| } |
| |
| func (x *BuilderItem) GetConfig() *BuilderConfig { |
| if x != nil { |
| return x.Config |
| } |
| return nil |
| } |
| |
| func (x *BuilderItem) GetMetadata() *BuilderMetadata { |
| if x != nil { |
| return x.Metadata |
| } |
| return nil |
| } |
| |
| var File_go_chromium_org_luci_buildbucket_proto_builder_common_proto protoreflect.FileDescriptor |
| |
| const file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDesc = "" + |
| "\n" + |
| ";go.chromium.org/luci/buildbucket/proto/builder_common.proto\x12\x0ebuildbucket.v2\x1a3go.chromium.org/luci/buildbucket/proto/common.proto\x1a9go.chromium.org/luci/buildbucket/proto/field_option.proto\x1a;go.chromium.org/luci/buildbucket/proto/project_config.proto\"\x99\x01\n" + |
| "\tBuilderID\x12.\n" + |
| "\aproject\x18\x01 \x01(\tB\x14\x9a\xc3\x1a\x10SetBuilderHealthR\aproject\x12,\n" + |
| "\x06bucket\x18\x02 \x01(\tB\x14\x9a\xc3\x1a\x10SetBuilderHealthR\x06bucket\x12.\n" + |
| "\abuilder\x18\x03 \x01(\tB\x14\x9a\xc3\x1a\x10SetBuilderHealthR\abuilder\"]\n" + |
| "\x0fBuilderMetadata\x12\x14\n" + |
| "\x05owner\x18\x01 \x01(\tR\x05owner\x124\n" + |
| "\x06health\x18\x02 \x01(\v2\x1c.buildbucket.v2.HealthStatusR\x06health\"\xa9\x01\n" + |
| "\vBuilderItem\x12)\n" + |
| "\x02id\x18\x01 \x01(\v2\x19.buildbucket.v2.BuilderIDR\x02id\x122\n" + |
| "\x06config\x18\x02 \x01(\v2\x1a.buildbucket.BuilderConfigR\x06config\x12;\n" + |
| "\bmetadata\x18\x03 \x01(\v2\x1f.buildbucket.v2.BuilderMetadataR\bmetadataB6Z4go.chromium.org/luci/buildbucket/proto;buildbucketpbb\x06proto3" |
| |
| var ( |
| file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescOnce sync.Once |
| file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescData []byte |
| ) |
| |
| func file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescGZIP() []byte { |
| file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescOnce.Do(func() { |
| file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDesc), len(file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDesc))) |
| }) |
| return file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDescData |
| } |
| |
| var file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| var file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_goTypes = []any{ |
| (*BuilderID)(nil), // 0: buildbucket.v2.BuilderID |
| (*BuilderMetadata)(nil), // 1: buildbucket.v2.BuilderMetadata |
| (*BuilderItem)(nil), // 2: buildbucket.v2.BuilderItem |
| (*HealthStatus)(nil), // 3: buildbucket.v2.HealthStatus |
| (*BuilderConfig)(nil), // 4: buildbucket.BuilderConfig |
| } |
| var file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_depIdxs = []int32{ |
| 3, // 0: buildbucket.v2.BuilderMetadata.health:type_name -> buildbucket.v2.HealthStatus |
| 0, // 1: buildbucket.v2.BuilderItem.id:type_name -> buildbucket.v2.BuilderID |
| 4, // 2: buildbucket.v2.BuilderItem.config:type_name -> buildbucket.BuilderConfig |
| 1, // 3: buildbucket.v2.BuilderItem.metadata:type_name -> buildbucket.v2.BuilderMetadata |
| 4, // [4:4] is the sub-list for method output_type |
| 4, // [4:4] is the sub-list for method input_type |
| 4, // [4:4] is the sub-list for extension type_name |
| 4, // [4:4] is the sub-list for extension extendee |
| 0, // [0:4] is the sub-list for field type_name |
| } |
| |
| func init() { file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_init() } |
| func file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_init() { |
| if File_go_chromium_org_luci_buildbucket_proto_builder_common_proto != nil { |
| return |
| } |
| file_go_chromium_org_luci_buildbucket_proto_common_proto_init() |
| file_go_chromium_org_luci_buildbucket_proto_field_option_proto_init() |
| file_go_chromium_org_luci_buildbucket_proto_project_config_proto_init() |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: unsafe.Slice(unsafe.StringData(file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDesc), len(file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_rawDesc)), |
| NumEnums: 0, |
| NumMessages: 3, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_goTypes, |
| DependencyIndexes: file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_depIdxs, |
| MessageInfos: file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_msgTypes, |
| }.Build() |
| File_go_chromium_org_luci_buildbucket_proto_builder_common_proto = out.File |
| file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_goTypes = nil |
| file_go_chromium_org_luci_buildbucket_proto_builder_common_proto_depIdxs = nil |
| } |