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

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

package alertmanagerpb

import (
	httpgrpc "github.com/grafana/dskit/httpgrpc"
	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 UpdateStateStatus int32

const (
	UpdateStateStatus_OK             UpdateStateStatus = 0
	UpdateStateStatus_MERGE_ERROR    UpdateStateStatus = 2
	UpdateStateStatus_USER_NOT_FOUND UpdateStateStatus = 3
)

// Enum value maps for UpdateStateStatus.
var (
	UpdateStateStatus_name = map[int32]string{
		0: "OK",
		2: "MERGE_ERROR",
		3: "USER_NOT_FOUND",
	}
	UpdateStateStatus_value = map[string]int32{
		"OK":             0,
		"MERGE_ERROR":    2,
		"USER_NOT_FOUND": 3,
	}
)

func (x UpdateStateStatus) Enum() *UpdateStateStatus {
	p := new(UpdateStateStatus)
	*p = x
	return p
}

func (x UpdateStateStatus) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (UpdateStateStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_alertmanager_proto_enumTypes[0].Descriptor()
}

func (UpdateStateStatus) Type() protoreflect.EnumType {
	return &file_alertmanager_proto_enumTypes[0]
}

func (x UpdateStateStatus) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use UpdateStateStatus.Descriptor instead.
func (UpdateStateStatus) EnumDescriptor() ([]byte, []int) {
	return file_alertmanager_proto_rawDescGZIP(), []int{0}
}

type ReadStateStatus int32

const (
	ReadStateStatus_READ_UNSPECIFIED    ReadStateStatus = 0
	ReadStateStatus_READ_OK             ReadStateStatus = 1
	ReadStateStatus_READ_ERROR          ReadStateStatus = 2
	ReadStateStatus_READ_USER_NOT_FOUND ReadStateStatus = 3
)

// Enum value maps for ReadStateStatus.
var (
	ReadStateStatus_name = map[int32]string{
		0: "READ_UNSPECIFIED",
		1: "READ_OK",
		2: "READ_ERROR",
		3: "READ_USER_NOT_FOUND",
	}
	ReadStateStatus_value = map[string]int32{
		"READ_UNSPECIFIED":    0,
		"READ_OK":             1,
		"READ_ERROR":          2,
		"READ_USER_NOT_FOUND": 3,
	}
)

func (x ReadStateStatus) Enum() *ReadStateStatus {
	p := new(ReadStateStatus)
	*p = x
	return p
}

func (x ReadStateStatus) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ReadStateStatus) Descriptor() protoreflect.EnumDescriptor {
	return file_alertmanager_proto_enumTypes[1].Descriptor()
}

func (ReadStateStatus) Type() protoreflect.EnumType {
	return &file_alertmanager_proto_enumTypes[1]
}

func (x ReadStateStatus) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ReadStateStatus.Descriptor instead.
func (ReadStateStatus) EnumDescriptor() ([]byte, []int) {
	return file_alertmanager_proto_rawDescGZIP(), []int{1}
}

type UpdateStateResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Status        UpdateStateStatus      `protobuf:"varint,1,opt,name=status,proto3,enum=alertmanagerpb.UpdateStateStatus" json:"status,omitempty"`
	Error         string                 `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*UpdateStateResponse) ProtoMessage() {}

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

func (x *UpdateStateResponse) GetStatus() UpdateStateStatus {
	if x != nil {
		return x.Status
	}
	return UpdateStateStatus_OK
}

func (x *UpdateStateResponse) GetError() string {
	if x != nil {
		return x.Error
	}
	return ""
}

type ReadStateRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ReadStateRequest) ProtoMessage() {}

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

type ReadStateResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Status        ReadStateStatus        `protobuf:"varint,1,opt,name=status,proto3,enum=alertmanagerpb.ReadStateStatus" json:"status,omitempty"`
	Error         string                 `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	State         *clusterpb.FullState   `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ReadStateResponse) ProtoMessage() {}

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

func (x *ReadStateResponse) GetStatus() ReadStateStatus {
	if x != nil {
		return x.Status
	}
	return ReadStateStatus_READ_UNSPECIFIED
}

func (x *ReadStateResponse) GetError() string {
	if x != nil {
		return x.Error
	}
	return ""
}

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

var File_alertmanager_proto protoreflect.FileDescriptor

const file_alertmanager_proto_rawDesc = "" +
	"\n" +
	"\x12alertmanager.proto\x12\x0ealertmanagerpb\x1a0github.com/grafana/dskit/httpgrpc/httpgrpc.proto\x1aBgithub.com/prometheus/alertmanager/cluster/clusterpb/cluster.proto\"f\n" +
	"\x13UpdateStateResponse\x129\n" +
	"\x06status\x18\x01 \x01(\x0e2!.alertmanagerpb.UpdateStateStatusR\x06status\x12\x14\n" +
	"\x05error\x18\x02 \x01(\tR\x05error\"\x12\n" +
	"\x10ReadStateRequest\"\x8e\x01\n" +
	"\x11ReadStateResponse\x127\n" +
	"\x06status\x18\x01 \x01(\x0e2\x1f.alertmanagerpb.ReadStateStatusR\x06status\x12\x14\n" +
	"\x05error\x18\x02 \x01(\tR\x05error\x12*\n" +
	"\x05state\x18\x03 \x01(\v2\x14.clusterpb.FullStateR\x05state*@\n" +
	"\x11UpdateStateStatus\x12\x06\n" +
	"\x02OK\x10\x00\x12\x0f\n" +
	"\vMERGE_ERROR\x10\x02\x12\x12\n" +
	"\x0eUSER_NOT_FOUND\x10\x03*]\n" +
	"\x0fReadStateStatus\x12\x14\n" +
	"\x10READ_UNSPECIFIED\x10\x00\x12\v\n" +
	"\aREAD_OK\x10\x01\x12\x0e\n" +
	"\n" +
	"READ_ERROR\x10\x02\x12\x17\n" +
	"\x13READ_USER_NOT_FOUND\x10\x032\xeb\x01\n" +
	"\fAlertmanager\x12@\n" +
	"\rHandleRequest\x12\x15.httpgrpc.HTTPRequest\x1a\x16.httpgrpc.HTTPResponse\"\x00\x12E\n" +
	"\vUpdateState\x12\x0f.clusterpb.Part\x1a#.alertmanagerpb.UpdateStateResponse\"\x00\x12R\n" +
	"\tReadState\x12 .alertmanagerpb.ReadStateRequest\x1a!.alertmanagerpb.ReadStateResponse\"\x00BIZGgithub.com/grafana/mimir/pkg/alertmanager/alertmanagerpb;alertmanagerpbb\x06proto3"

var (
	file_alertmanager_proto_rawDescOnce sync.Once
	file_alertmanager_proto_rawDescData []byte
)

func file_alertmanager_proto_rawDescGZIP() []byte {
	file_alertmanager_proto_rawDescOnce.Do(func() {
		file_alertmanager_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_alertmanager_proto_rawDesc), len(file_alertmanager_proto_rawDesc)))
	})
	return file_alertmanager_proto_rawDescData
}

var file_alertmanager_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_alertmanager_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_alertmanager_proto_goTypes = []any{
	(UpdateStateStatus)(0),        // 0: alertmanagerpb.UpdateStateStatus
	(ReadStateStatus)(0),          // 1: alertmanagerpb.ReadStateStatus
	(*UpdateStateResponse)(nil),   // 2: alertmanagerpb.UpdateStateResponse
	(*ReadStateRequest)(nil),      // 3: alertmanagerpb.ReadStateRequest
	(*ReadStateResponse)(nil),     // 4: alertmanagerpb.ReadStateResponse
	(*clusterpb.FullState)(nil),   // 5: clusterpb.FullState
	(*httpgrpc.HTTPRequest)(nil),  // 6: httpgrpc.HTTPRequest
	(*clusterpb.Part)(nil),        // 7: clusterpb.Part
	(*httpgrpc.HTTPResponse)(nil), // 8: httpgrpc.HTTPResponse
}
var file_alertmanager_proto_depIdxs = []int32{
	0, // 0: alertmanagerpb.UpdateStateResponse.status:type_name -> alertmanagerpb.UpdateStateStatus
	1, // 1: alertmanagerpb.ReadStateResponse.status:type_name -> alertmanagerpb.ReadStateStatus
	5, // 2: alertmanagerpb.ReadStateResponse.state:type_name -> clusterpb.FullState
	6, // 3: alertmanagerpb.Alertmanager.HandleRequest:input_type -> httpgrpc.HTTPRequest
	7, // 4: alertmanagerpb.Alertmanager.UpdateState:input_type -> clusterpb.Part
	3, // 5: alertmanagerpb.Alertmanager.ReadState:input_type -> alertmanagerpb.ReadStateRequest
	8, // 6: alertmanagerpb.Alertmanager.HandleRequest:output_type -> httpgrpc.HTTPResponse
	2, // 7: alertmanagerpb.Alertmanager.UpdateState:output_type -> alertmanagerpb.UpdateStateResponse
	4, // 8: alertmanagerpb.Alertmanager.ReadState:output_type -> alertmanagerpb.ReadStateResponse
	6, // [6:9] is the sub-list for method output_type
	3, // [3:6] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_alertmanager_proto_init() }
func file_alertmanager_proto_init() {
	if File_alertmanager_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_alertmanager_proto_rawDesc), len(file_alertmanager_proto_rawDesc)),
			NumEnums:      2,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_alertmanager_proto_goTypes,
		DependencyIndexes: file_alertmanager_proto_depIdxs,
		EnumInfos:         file_alertmanager_proto_enumTypes,
		MessageInfos:      file_alertmanager_proto_msgTypes,
	}.Build()
	File_alertmanager_proto = out.File
	file_alertmanager_proto_goTypes = nil
	file_alertmanager_proto_depIdxs = nil
}
