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

package core

import (
	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)
)

// Transient State for devices
type DeviceTransientState_Types int32

const (
	// The transient state of the device is not set
	DeviceTransientState_NONE DeviceTransientState_Types = 0
	// The state of the device in core is any state, i.e DELETING, DELETED, DELETE_FAILED, NONE.
	// This state is only used for transitions.
	DeviceTransientState_ANY DeviceTransientState_Types = 1
	// The device is in FORCE_DELETING state
	DeviceTransientState_FORCE_DELETING DeviceTransientState_Types = 2
	// The device is getting deleted from adapter state
	DeviceTransientState_DELETING_FROM_ADAPTER DeviceTransientState_Types = 3
	// The device is deleted from adapter and is getting deleted in core.
	DeviceTransientState_DELETING_POST_ADAPTER_RESPONSE DeviceTransientState_Types = 4
	// State to represent that the device deletion is failed
	DeviceTransientState_DELETE_FAILED DeviceTransientState_Types = 5
	// State to represent that reconcile is in progress
	DeviceTransientState_RECONCILE_IN_PROGRESS DeviceTransientState_Types = 6
	// State to represent that reboot is in progress
	DeviceTransientState_REBOOT_IN_PROGRESS DeviceTransientState_Types = 7
)

// Enum value maps for DeviceTransientState_Types.
var (
	DeviceTransientState_Types_name = map[int32]string{
		0: "NONE",
		1: "ANY",
		2: "FORCE_DELETING",
		3: "DELETING_FROM_ADAPTER",
		4: "DELETING_POST_ADAPTER_RESPONSE",
		5: "DELETE_FAILED",
		6: "RECONCILE_IN_PROGRESS",
		7: "REBOOT_IN_PROGRESS",
	}
	DeviceTransientState_Types_value = map[string]int32{
		"NONE":                           0,
		"ANY":                            1,
		"FORCE_DELETING":                 2,
		"DELETING_FROM_ADAPTER":          3,
		"DELETING_POST_ADAPTER_RESPONSE": 4,
		"DELETE_FAILED":                  5,
		"RECONCILE_IN_PROGRESS":          6,
		"REBOOT_IN_PROGRESS":             7,
	}
)

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

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

func (DeviceTransientState_Types) Descriptor() protoreflect.EnumDescriptor {
	return file_voltha_protos_core_proto_enumTypes[0].Descriptor()
}

func (DeviceTransientState_Types) Type() protoreflect.EnumType {
	return &file_voltha_protos_core_proto_enumTypes[0]
}

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

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

type DeviceTransientState struct {
	state          protoimpl.MessageState     `protogen:"open.v1"`
	TransientState DeviceTransientState_Types `protobuf:"varint,1,opt,name=transient_state,json=transientState,proto3,enum=core.DeviceTransientState_Types" json:"transient_state,omitempty"`
	unknownFields  protoimpl.UnknownFields
	sizeCache      protoimpl.SizeCache
}

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

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

func (*DeviceTransientState) ProtoMessage() {}

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

func (x *DeviceTransientState) GetTransientState() DeviceTransientState_Types {
	if x != nil {
		return x.TransientState
	}
	return DeviceTransientState_NONE
}

var File_voltha_protos_core_proto protoreflect.FileDescriptor

const file_voltha_protos_core_proto_rawDesc = "" +
	"\n" +
	"\x18voltha_protos/core.proto\x12\x04core\"\x97\x02\n" +
	"\x14DeviceTransientState\x12I\n" +
	"\x0ftransient_state\x18\x01 \x01(\x0e2 .core.DeviceTransientState.TypesR\x0etransientState\"\xb3\x01\n" +
	"\x05Types\x12\b\n" +
	"\x04NONE\x10\x00\x12\a\n" +
	"\x03ANY\x10\x01\x12\x12\n" +
	"\x0eFORCE_DELETING\x10\x02\x12\x19\n" +
	"\x15DELETING_FROM_ADAPTER\x10\x03\x12\"\n" +
	"\x1eDELETING_POST_ADAPTER_RESPONSE\x10\x04\x12\x11\n" +
	"\rDELETE_FAILED\x10\x05\x12\x19\n" +
	"\x15RECONCILE_IN_PROGRESS\x10\x06\x12\x16\n" +
	"\x12REBOOT_IN_PROGRESS\x10\aBH\n" +
	"\x18org.opencord.voltha.coreZ,github.com/opencord/voltha-protos/v5/go/coreb\x06proto3"

var (
	file_voltha_protos_core_proto_rawDescOnce sync.Once
	file_voltha_protos_core_proto_rawDescData []byte
)

func file_voltha_protos_core_proto_rawDescGZIP() []byte {
	file_voltha_protos_core_proto_rawDescOnce.Do(func() {
		file_voltha_protos_core_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_voltha_protos_core_proto_rawDesc), len(file_voltha_protos_core_proto_rawDesc)))
	})
	return file_voltha_protos_core_proto_rawDescData
}

var file_voltha_protos_core_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_voltha_protos_core_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_voltha_protos_core_proto_goTypes = []any{
	(DeviceTransientState_Types)(0), // 0: core.DeviceTransientState.Types
	(*DeviceTransientState)(nil),    // 1: core.DeviceTransientState
}
var file_voltha_protos_core_proto_depIdxs = []int32{
	0, // 0: core.DeviceTransientState.transient_state:type_name -> core.DeviceTransientState.Types
	1, // [1:1] is the sub-list for method output_type
	1, // [1:1] 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_core_proto_init() }
func file_voltha_protos_core_proto_init() {
	if File_voltha_protos_core_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_core_proto_rawDesc), len(file_voltha_protos_core_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_voltha_protos_core_proto_goTypes,
		DependencyIndexes: file_voltha_protos_core_proto_depIdxs,
		EnumInfos:         file_voltha_protos_core_proto_enumTypes,
		MessageInfos:      file_voltha_protos_core_proto_msgTypes,
	}.Build()
	File_voltha_protos_core_proto = out.File
	file_voltha_protos_core_proto_goTypes = nil
	file_voltha_protos_core_proto_depIdxs = nil
}
