// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v4.25.8
// source: voltha_protos/health.proto

package health

import (
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	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)
)

// Health states
type HealthStatus_HealthState int32

const (
	HealthStatus_HEALTHY    HealthStatus_HealthState = 0 // The instance is healthy
	HealthStatus_OVERLOADED HealthStatus_HealthState = 1 // The instance is overloaded, decrease query rate
	HealthStatus_DYING      HealthStatus_HealthState = 2 // The instance is in a critical condition, do not use it
)

// Enum value maps for HealthStatus_HealthState.
var (
	HealthStatus_HealthState_name = map[int32]string{
		0: "HEALTHY",
		1: "OVERLOADED",
		2: "DYING",
	}
	HealthStatus_HealthState_value = map[string]int32{
		"HEALTHY":    0,
		"OVERLOADED": 1,
		"DYING":      2,
	}
)

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

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

func (HealthStatus_HealthState) Descriptor() protoreflect.EnumDescriptor {
	return file_voltha_protos_health_proto_enumTypes[0].Descriptor()
}

func (HealthStatus_HealthState) Type() protoreflect.EnumType {
	return &file_voltha_protos_health_proto_enumTypes[0]
}

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

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

// Encode health status of a Voltha instance
type HealthStatus struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Current state of health of this Voltha instance
	State         HealthStatus_HealthState `protobuf:"varint,1,opt,name=state,proto3,enum=health.HealthStatus_HealthState" json:"state,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*HealthStatus) ProtoMessage() {}

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

func (x *HealthStatus) GetState() HealthStatus_HealthState {
	if x != nil {
		return x.State
	}
	return HealthStatus_HEALTHY
}

var File_voltha_protos_health_proto protoreflect.FileDescriptor

const file_voltha_protos_health_proto_rawDesc = "" +
	"\n" +
	"\x1avoltha_protos/health.proto\x12\x06health\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\"}\n" +
	"\fHealthStatus\x126\n" +
	"\x05state\x18\x01 \x01(\x0e2 .health.HealthStatus.HealthStateR\x05state\"5\n" +
	"\vHealthState\x12\v\n" +
	"\aHEALTHY\x10\x00\x12\x0e\n" +
	"\n" +
	"OVERLOADED\x10\x01\x12\t\n" +
	"\x05DYING\x10\x022a\n" +
	"\rHealthService\x12P\n" +
	"\x0fGetHealthStatus\x12\x16.google.protobuf.Empty\x1a\x14.health.HealthStatus\"\x0f\x82\xd3\xe4\x93\x02\t\x12\a/healthBL\n" +
	"\x1aorg.opencord.voltha.healthZ.github.com/opencord/voltha-protos/v5/go/healthb\x06proto3"

var (
	file_voltha_protos_health_proto_rawDescOnce sync.Once
	file_voltha_protos_health_proto_rawDescData []byte
)

func file_voltha_protos_health_proto_rawDescGZIP() []byte {
	file_voltha_protos_health_proto_rawDescOnce.Do(func() {
		file_voltha_protos_health_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_voltha_protos_health_proto_rawDesc), len(file_voltha_protos_health_proto_rawDesc)))
	})
	return file_voltha_protos_health_proto_rawDescData
}

var file_voltha_protos_health_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_voltha_protos_health_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_voltha_protos_health_proto_goTypes = []any{
	(HealthStatus_HealthState)(0), // 0: health.HealthStatus.HealthState
	(*HealthStatus)(nil),          // 1: health.HealthStatus
	(*emptypb.Empty)(nil),         // 2: google.protobuf.Empty
}
var file_voltha_protos_health_proto_depIdxs = []int32{
	0, // 0: health.HealthStatus.state:type_name -> health.HealthStatus.HealthState
	2, // 1: health.HealthService.GetHealthStatus:input_type -> google.protobuf.Empty
	1, // 2: health.HealthService.GetHealthStatus:output_type -> health.HealthStatus
	2, // [2:3] is the sub-list for method output_type
	1, // [1:2] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_voltha_protos_health_proto_init() }
func file_voltha_protos_health_proto_init() {
	if File_voltha_protos_health_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_voltha_protos_health_proto_rawDesc), len(file_voltha_protos_health_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_voltha_protos_health_proto_goTypes,
		DependencyIndexes: file_voltha_protos_health_proto_depIdxs,
		EnumInfos:         file_voltha_protos_health_proto_enumTypes,
		MessageInfos:      file_voltha_protos_health_proto_msgTypes,
	}.Build()
	File_voltha_protos_health_proto = out.File
	file_voltha_protos_health_proto_goTypes = nil
	file_voltha_protos_health_proto_depIdxs = nil
}
