// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        (unknown)
// source: nflog.proto

package nflogpb

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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 Receiver struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Configured name of the receiver group.
	GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"`
	// Name of the integration of the receiver.
	Integration string `protobuf:"bytes,2,opt,name=integration,proto3" json:"integration,omitempty"`
	// Index of the receiver with respect to the integration.
	// Every integration in a group may have 0..N configurations.
	Idx           uint32 `protobuf:"varint,3,opt,name=idx,proto3" json:"idx,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Receiver) ProtoMessage() {}

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

func (x *Receiver) GetGroupName() string {
	if x != nil {
		return x.GroupName
	}
	return ""
}

func (x *Receiver) GetIntegration() string {
	if x != nil {
		return x.Integration
	}
	return ""
}

func (x *Receiver) GetIdx() uint32 {
	if x != nil {
		return x.Idx
	}
	return 0
}

// Entry holds information about a successful notification
// sent to a receiver.
type Entry struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The key identifying the dispatching group.
	GroupKey []byte `protobuf:"bytes,1,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"`
	// The receiver that was notified.
	Receiver *Receiver `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// Hash over the state of the group at notification time.
	// Deprecated in favor of FiringAlerts field, but kept for compatibility.
	GroupHash []byte `protobuf:"bytes,3,opt,name=group_hash,json=groupHash,proto3" json:"group_hash,omitempty"`
	// Whether the notification was about a resolved alert.
	// Deprecated in favor of ResolvedAlerts field, but kept for compatibility.
	Resolved bool `protobuf:"varint,4,opt,name=resolved,proto3" json:"resolved,omitempty"`
	// Timestamp of the succeeding notification.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// FiringAlerts list of hashes of firing alerts at the last notification time.
	FiringAlerts []uint64 `protobuf:"varint,6,rep,packed,name=firing_alerts,json=firingAlerts,proto3" json:"firing_alerts,omitempty"`
	// ResolvedAlerts list of hashes of resolved alerts at the last notification time.
	ResolvedAlerts []uint64 `protobuf:"varint,7,rep,packed,name=resolved_alerts,json=resolvedAlerts,proto3" json:"resolved_alerts,omitempty"`
	// Data specific to the receiver which sent the notification
	ReceiverData  map[string]*ReceiverDataValue `protobuf:"bytes,8,rep,name=receiver_data,json=receiverData,proto3" json:"receiver_data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Entry) ProtoMessage() {}

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

func (x *Entry) GetGroupKey() []byte {
	if x != nil {
		return x.GroupKey
	}
	return nil
}

func (x *Entry) GetReceiver() *Receiver {
	if x != nil {
		return x.Receiver
	}
	return nil
}

func (x *Entry) GetGroupHash() []byte {
	if x != nil {
		return x.GroupHash
	}
	return nil
}

func (x *Entry) GetResolved() bool {
	if x != nil {
		return x.Resolved
	}
	return false
}

func (x *Entry) GetTimestamp() *timestamppb.Timestamp {
	if x != nil {
		return x.Timestamp
	}
	return nil
}

func (x *Entry) GetFiringAlerts() []uint64 {
	if x != nil {
		return x.FiringAlerts
	}
	return nil
}

func (x *Entry) GetResolvedAlerts() []uint64 {
	if x != nil {
		return x.ResolvedAlerts
	}
	return nil
}

func (x *Entry) GetReceiverData() map[string]*ReceiverDataValue {
	if x != nil {
		return x.ReceiverData
	}
	return nil
}

// MeshEntry is a wrapper message to communicate a notify log
// entry through a mesh network.
type MeshEntry struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The original raw notify log entry.
	Entry *Entry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"`
	// A timestamp indicating when the mesh peer should evict
	// the log entry from its state.
	ExpiresAt     *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*MeshEntry) ProtoMessage() {}

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

func (x *MeshEntry) GetEntry() *Entry {
	if x != nil {
		return x.Entry
	}
	return nil
}

func (x *MeshEntry) GetExpiresAt() *timestamppb.Timestamp {
	if x != nil {
		return x.ExpiresAt
	}
	return nil
}

type ReceiverDataValue struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Types that are valid to be assigned to Value:
	//
	//	*ReceiverDataValue_StrVal
	//	*ReceiverDataValue_IntVal
	//	*ReceiverDataValue_DoubleVal
	Value         isReceiverDataValue_Value `protobuf_oneof:"value"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *ReceiverDataValue) Reset() {
	*x = ReceiverDataValue{}
	mi := &file_nflog_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ReceiverDataValue) ProtoMessage() {}

func (x *ReceiverDataValue) ProtoReflect() protoreflect.Message {
	mi := &file_nflog_proto_msgTypes[3]
	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 ReceiverDataValue.ProtoReflect.Descriptor instead.
func (*ReceiverDataValue) Descriptor() ([]byte, []int) {
	return file_nflog_proto_rawDescGZIP(), []int{3}
}

func (x *ReceiverDataValue) GetValue() isReceiverDataValue_Value {
	if x != nil {
		return x.Value
	}
	return nil
}

func (x *ReceiverDataValue) GetStrVal() string {
	if x != nil {
		if x, ok := x.Value.(*ReceiverDataValue_StrVal); ok {
			return x.StrVal
		}
	}
	return ""
}

func (x *ReceiverDataValue) GetIntVal() int64 {
	if x != nil {
		if x, ok := x.Value.(*ReceiverDataValue_IntVal); ok {
			return x.IntVal
		}
	}
	return 0
}

func (x *ReceiverDataValue) GetDoubleVal() float64 {
	if x != nil {
		if x, ok := x.Value.(*ReceiverDataValue_DoubleVal); ok {
			return x.DoubleVal
		}
	}
	return 0
}

type isReceiverDataValue_Value interface {
	isReceiverDataValue_Value()
}

type ReceiverDataValue_StrVal struct {
	StrVal string `protobuf:"bytes,1,opt,name=str_val,json=strVal,proto3,oneof"`
}

type ReceiverDataValue_IntVal struct {
	IntVal int64 `protobuf:"varint,2,opt,name=int_val,json=intVal,proto3,oneof"`
}

type ReceiverDataValue_DoubleVal struct {
	DoubleVal float64 `protobuf:"fixed64,3,opt,name=double_val,json=doubleVal,proto3,oneof"`
}

func (*ReceiverDataValue_StrVal) isReceiverDataValue_Value() {}

func (*ReceiverDataValue_IntVal) isReceiverDataValue_Value() {}

func (*ReceiverDataValue_DoubleVal) isReceiverDataValue_Value() {}

var File_nflog_proto protoreflect.FileDescriptor

const file_nflog_proto_rawDesc = "" +
	"\n" +
	"\vnflog.proto\x12\anflogpb\x1a\x1fgoogle/protobuf/timestamp.proto\"]\n" +
	"\bReceiver\x12\x1d\n" +
	"\n" +
	"group_name\x18\x01 \x01(\tR\tgroupName\x12 \n" +
	"\vintegration\x18\x02 \x01(\tR\vintegration\x12\x10\n" +
	"\x03idx\x18\x03 \x01(\rR\x03idx\"\xba\x03\n" +
	"\x05Entry\x12\x1b\n" +
	"\tgroup_key\x18\x01 \x01(\fR\bgroupKey\x12-\n" +
	"\breceiver\x18\x02 \x01(\v2\x11.nflogpb.ReceiverR\breceiver\x12\x1d\n" +
	"\n" +
	"group_hash\x18\x03 \x01(\fR\tgroupHash\x12\x1a\n" +
	"\bresolved\x18\x04 \x01(\bR\bresolved\x128\n" +
	"\ttimestamp\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\x12#\n" +
	"\rfiring_alerts\x18\x06 \x03(\x04R\ffiringAlerts\x12'\n" +
	"\x0fresolved_alerts\x18\a \x03(\x04R\x0eresolvedAlerts\x12E\n" +
	"\rreceiver_data\x18\b \x03(\v2 .nflogpb.Entry.ReceiverDataEntryR\freceiverData\x1a[\n" +
	"\x11ReceiverDataEntry\x12\x10\n" +
	"\x03key\x18\x01 \x01(\tR\x03key\x120\n" +
	"\x05value\x18\x02 \x01(\v2\x1a.nflogpb.ReceiverDataValueR\x05value:\x028\x01\"l\n" +
	"\tMeshEntry\x12$\n" +
	"\x05entry\x18\x01 \x01(\v2\x0e.nflogpb.EntryR\x05entry\x129\n" +
	"\n" +
	"expires_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\"s\n" +
	"\x11ReceiverDataValue\x12\x19\n" +
	"\astr_val\x18\x01 \x01(\tH\x00R\x06strVal\x12\x19\n" +
	"\aint_val\x18\x02 \x01(\x03H\x00R\x06intVal\x12\x1f\n" +
	"\n" +
	"double_val\x18\x03 \x01(\x01H\x00R\tdoubleValB\a\n" +
	"\x05valueB2Z0github.com/prometheus/alertmanager/nflog/nflogpbb\x06proto3"

var (
	file_nflog_proto_rawDescOnce sync.Once
	file_nflog_proto_rawDescData []byte
)

func file_nflog_proto_rawDescGZIP() []byte {
	file_nflog_proto_rawDescOnce.Do(func() {
		file_nflog_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_nflog_proto_rawDesc), len(file_nflog_proto_rawDesc)))
	})
	return file_nflog_proto_rawDescData
}

var file_nflog_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_nflog_proto_goTypes = []any{
	(*Receiver)(nil),              // 0: nflogpb.Receiver
	(*Entry)(nil),                 // 1: nflogpb.Entry
	(*MeshEntry)(nil),             // 2: nflogpb.MeshEntry
	(*ReceiverDataValue)(nil),     // 3: nflogpb.ReceiverDataValue
	nil,                           // 4: nflogpb.Entry.ReceiverDataEntry
	(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
}
var file_nflog_proto_depIdxs = []int32{
	0, // 0: nflogpb.Entry.receiver:type_name -> nflogpb.Receiver
	5, // 1: nflogpb.Entry.timestamp:type_name -> google.protobuf.Timestamp
	4, // 2: nflogpb.Entry.receiver_data:type_name -> nflogpb.Entry.ReceiverDataEntry
	1, // 3: nflogpb.MeshEntry.entry:type_name -> nflogpb.Entry
	5, // 4: nflogpb.MeshEntry.expires_at:type_name -> google.protobuf.Timestamp
	3, // 5: nflogpb.Entry.ReceiverDataEntry.value:type_name -> nflogpb.ReceiverDataValue
	6, // [6:6] is the sub-list for method output_type
	6, // [6:6] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_nflog_proto_init() }
func file_nflog_proto_init() {
	if File_nflog_proto != nil {
		return
	}
	file_nflog_proto_msgTypes[3].OneofWrappers = []any{
		(*ReceiverDataValue_StrVal)(nil),
		(*ReceiverDataValue_IntVal)(nil),
		(*ReceiverDataValue_DoubleVal)(nil),
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_nflog_proto_rawDesc), len(file_nflog_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   5,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_nflog_proto_goTypes,
		DependencyIndexes: file_nflog_proto_depIdxs,
		MessageInfos:      file_nflog_proto_msgTypes,
	}.Build()
	File_nflog_proto = out.File
	file_nflog_proto_goTypes = nil
	file_nflog_proto_depIdxs = nil
}
