// SPDX-License-Identifier: AGPL-3.0-only
// Provenance-includes-location: https://github.com/cortexproject/cortex/blob/master/pkg/alertmanager/alertspb/alerts.proto
// Provenance-includes-license: Apache-2.0
// Provenance-includes-copyright: The Cortex Authors.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: alerts.proto

package alertspb

import (
	clusterpb "github.com/prometheus/alertmanager/cluster/clusterpb"
	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)
)

type AlertConfigDesc struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	User          string                 `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	RawConfig     string                 `protobuf:"bytes,2,opt,name=raw_config,json=rawConfig,proto3" json:"raw_config,omitempty"`
	Templates     []*TemplateDesc        `protobuf:"bytes,3,rep,name=templates,proto3" json:"templates,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *AlertConfigDesc) Reset() {
	*x = AlertConfigDesc{}
	mi := &file_alerts_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *AlertConfigDesc) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*AlertConfigDesc) ProtoMessage() {}

func (x *AlertConfigDesc) ProtoReflect() protoreflect.Message {
	mi := &file_alerts_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 AlertConfigDesc.ProtoReflect.Descriptor instead.
func (*AlertConfigDesc) Descriptor() ([]byte, []int) {
	return file_alerts_proto_rawDescGZIP(), []int{0}
}

func (x *AlertConfigDesc) GetUser() string {
	if x != nil {
		return x.User
	}
	return ""
}

func (x *AlertConfigDesc) GetRawConfig() string {
	if x != nil {
		return x.RawConfig
	}
	return ""
}

func (x *AlertConfigDesc) GetTemplates() []*TemplateDesc {
	if x != nil {
		return x.Templates
	}
	return nil
}

type TemplateDesc struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Filename      string                 `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	Body          string                 `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *TemplateDesc) Reset() {
	*x = TemplateDesc{}
	mi := &file_alerts_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *TemplateDesc) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*TemplateDesc) ProtoMessage() {}

func (x *TemplateDesc) ProtoReflect() protoreflect.Message {
	mi := &file_alerts_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 TemplateDesc.ProtoReflect.Descriptor instead.
func (*TemplateDesc) Descriptor() ([]byte, []int) {
	return file_alerts_proto_rawDescGZIP(), []int{1}
}

func (x *TemplateDesc) GetFilename() string {
	if x != nil {
		return x.Filename
	}
	return ""
}

func (x *TemplateDesc) GetBody() string {
	if x != nil {
		return x.Body
	}
	return ""
}

type FullStateDesc struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	State         *clusterpb.FullState   `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *FullStateDesc) Reset() {
	*x = FullStateDesc{}
	mi := &file_alerts_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *FullStateDesc) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*FullStateDesc) ProtoMessage() {}

func (x *FullStateDesc) ProtoReflect() protoreflect.Message {
	mi := &file_alerts_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 FullStateDesc.ProtoReflect.Descriptor instead.
func (*FullStateDesc) Descriptor() ([]byte, []int) {
	return file_alerts_proto_rawDescGZIP(), []int{2}
}

func (x *FullStateDesc) GetState() *clusterpb.FullState {
	if x != nil {
		return x.State
	}
	return nil
}

var File_alerts_proto protoreflect.FileDescriptor

const file_alerts_proto_rawDesc = "" +
	"\n" +
	"\falerts.proto\x12\x06alerts\x1aBgithub.com/prometheus/alertmanager/cluster/clusterpb/cluster.proto\"x\n" +
	"\x0fAlertConfigDesc\x12\x12\n" +
	"\x04user\x18\x01 \x01(\tR\x04user\x12\x1d\n" +
	"\n" +
	"raw_config\x18\x02 \x01(\tR\trawConfig\x122\n" +
	"\ttemplates\x18\x03 \x03(\v2\x14.alerts.TemplateDescR\ttemplates\">\n" +
	"\fTemplateDesc\x12\x1a\n" +
	"\bfilename\x18\x01 \x01(\tR\bfilename\x12\x12\n" +
	"\x04body\x18\x02 \x01(\tR\x04body\";\n" +
	"\rFullStateDesc\x12*\n" +
	"\x05state\x18\x01 \x01(\v2\x14.clusterpb.FullStateR\x05stateB=Z;github.com/grafana/mimir/pkg/alertmanager/alertspb;alertspbb\x06proto3"

var (
	file_alerts_proto_rawDescOnce sync.Once
	file_alerts_proto_rawDescData []byte
)

func file_alerts_proto_rawDescGZIP() []byte {
	file_alerts_proto_rawDescOnce.Do(func() {
		file_alerts_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_alerts_proto_rawDesc), len(file_alerts_proto_rawDesc)))
	})
	return file_alerts_proto_rawDescData
}

var file_alerts_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_alerts_proto_goTypes = []any{
	(*AlertConfigDesc)(nil),     // 0: alerts.AlertConfigDesc
	(*TemplateDesc)(nil),        // 1: alerts.TemplateDesc
	(*FullStateDesc)(nil),       // 2: alerts.FullStateDesc
	(*clusterpb.FullState)(nil), // 3: clusterpb.FullState
}
var file_alerts_proto_depIdxs = []int32{
	1, // 0: alerts.AlertConfigDesc.templates:type_name -> alerts.TemplateDesc
	3, // 1: alerts.FullStateDesc.state:type_name -> clusterpb.FullState
	2, // [2:2] is the sub-list for method output_type
	2, // [2:2] is the sub-list for method input_type
	2, // [2:2] is the sub-list for extension type_name
	2, // [2:2] is the sub-list for extension extendee
	0, // [0:2] is the sub-list for field type_name
}

func init() { file_alerts_proto_init() }
func file_alerts_proto_init() {
	if File_alerts_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_alerts_proto_rawDesc), len(file_alerts_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_alerts_proto_goTypes,
		DependencyIndexes: file_alerts_proto_depIdxs,
		MessageInfos:      file_alerts_proto_msgTypes,
	}.Build()
	File_alerts_proto = out.File
	file_alerts_proto_goTypes = nil
	file_alerts_proto_depIdxs = nil
}
