blob: cc9d1ffde156d05d56c539201bd4da8ce42d260e [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v3.21.12
// source: subscription.proto
package v1
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
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)
)
// A subscription defines alerting configurations for anomalies detected.
type Subscription struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Unique name identifying subscription.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// infra_internal Git hash on which a subscription is based on.
Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"`
// Labels to attach to bugs associated with a subscription.
BugLabels []string `protobuf:"bytes,3,rep,name=bug_labels,json=bugLabels,proto3" json:"bug_labels,omitempty"`
// Hotlists to add to bugs associated with a subscription.
Hotlists []string `protobuf:"bytes,4,rep,name=hotlists,proto3" json:"hotlists,omitempty"`
// Component in which to file bugs associated with a subscription.
BugComponent string `protobuf:"bytes,5,opt,name=bug_component,json=bugComponent,proto3" json:"bug_component,omitempty"`
// Priority of bugs associated with a subscription. Must be between 0-4.
BugPriority int32 `protobuf:"varint,8,opt,name=bug_priority,json=bugPriority,proto3" json:"bug_priority,omitempty"`
// Severity of bugs associated with a subscription. Must be between 0-4.
BugSeverity int32 `protobuf:"varint,9,opt,name=bug_severity,json=bugSeverity,proto3" json:"bug_severity,omitempty"`
// Emails to CC in bugs associated with a subscription.
BugCcEmails []string `protobuf:"bytes,6,rep,name=bug_cc_emails,json=bugCcEmails,proto3" json:"bug_cc_emails,omitempty"`
// Owner of subscription. Used for contact purposes.
ContactEmail string `protobuf:"bytes,7,opt,name=contact_email,json=contactEmail,proto3" json:"contact_email,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Subscription) Reset() {
*x = Subscription{}
mi := &file_subscription_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Subscription) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Subscription) ProtoMessage() {}
func (x *Subscription) ProtoReflect() protoreflect.Message {
mi := &file_subscription_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 Subscription.ProtoReflect.Descriptor instead.
func (*Subscription) Descriptor() ([]byte, []int) {
return file_subscription_proto_rawDescGZIP(), []int{0}
}
func (x *Subscription) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Subscription) GetRevision() string {
if x != nil {
return x.Revision
}
return ""
}
func (x *Subscription) GetBugLabels() []string {
if x != nil {
return x.BugLabels
}
return nil
}
func (x *Subscription) GetHotlists() []string {
if x != nil {
return x.Hotlists
}
return nil
}
func (x *Subscription) GetBugComponent() string {
if x != nil {
return x.BugComponent
}
return ""
}
func (x *Subscription) GetBugPriority() int32 {
if x != nil {
return x.BugPriority
}
return 0
}
func (x *Subscription) GetBugSeverity() int32 {
if x != nil {
return x.BugSeverity
}
return 0
}
func (x *Subscription) GetBugCcEmails() []string {
if x != nil {
return x.BugCcEmails
}
return nil
}
func (x *Subscription) GetContactEmail() string {
if x != nil {
return x.ContactEmail
}
return ""
}
var File_subscription_proto protoreflect.FileDescriptor
const file_subscription_proto_rawDesc = "" +
"\n" +
"\x12subscription.proto\x12\x0fsubscription.v1\"\xad\x02\n" +
"\fSubscription\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n" +
"\brevision\x18\x02 \x01(\tR\brevision\x12\x1d\n" +
"\n" +
"bug_labels\x18\x03 \x03(\tR\tbugLabels\x12\x1a\n" +
"\bhotlists\x18\x04 \x03(\tR\bhotlists\x12#\n" +
"\rbug_component\x18\x05 \x01(\tR\fbugComponent\x12!\n" +
"\fbug_priority\x18\b \x01(\x05R\vbugPriority\x12!\n" +
"\fbug_severity\x18\t \x01(\x05R\vbugSeverity\x12\"\n" +
"\rbug_cc_emails\x18\x06 \x03(\tR\vbugCcEmails\x12#\n" +
"\rcontact_email\x18\a \x01(\tR\fcontactEmailB1Z/go.skia.org/infra/perf/go/subscription/proto/v1b\x06proto3"
var (
file_subscription_proto_rawDescOnce sync.Once
file_subscription_proto_rawDescData []byte
)
func file_subscription_proto_rawDescGZIP() []byte {
file_subscription_proto_rawDescOnce.Do(func() {
file_subscription_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_subscription_proto_rawDesc), len(file_subscription_proto_rawDesc)))
})
return file_subscription_proto_rawDescData
}
var file_subscription_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_subscription_proto_goTypes = []any{
(*Subscription)(nil), // 0: subscription.v1.Subscription
}
var file_subscription_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_subscription_proto_init() }
func file_subscription_proto_init() {
if File_subscription_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_subscription_proto_rawDesc), len(file_subscription_proto_rawDesc)),
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_subscription_proto_goTypes,
DependencyIndexes: file_subscription_proto_depIdxs,
MessageInfos: file_subscription_proto_msgTypes,
}.Build()
File_subscription_proto = out.File
file_subscription_proto_goTypes = nil
file_subscription_proto_depIdxs = nil
}