blob: a2d1c9e5785ce4f4d04ad680db9d272fff04c96a [file] [log] [blame]
khenaidoo5fc5cea2021-08-11 17:39:16 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
Abhay Kumar03713392025-12-30 05:20:58 +00002// versions:
3// protoc-gen-go v1.36.11
4// protoc v4.25.8
khenaidoo5fc5cea2021-08-11 17:39:16 -04005// source: voltha_protos/core.proto
6
7package core
8
9import (
Abhay Kumar03713392025-12-30 05:20:58 +000010 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 reflect "reflect"
13 sync "sync"
14 unsafe "unsafe"
khenaidoo5fc5cea2021-08-11 17:39:16 -040015)
16
Abhay Kumar03713392025-12-30 05:20:58 +000017const (
18 // Verify that this generated code is sufficiently up-to-date.
19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
20 // Verify that runtime/protoimpl is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
22)
khenaidoo5fc5cea2021-08-11 17:39:16 -040023
24// Transient State for devices
25type DeviceTransientState_Types int32
26
27const (
28 // The transient state of the device is not set
29 DeviceTransientState_NONE DeviceTransientState_Types = 0
30 // The state of the device in core is any state, i.e DELETING, DELETED, DELETE_FAILED, NONE.
31 // This state is only used for transitions.
32 DeviceTransientState_ANY DeviceTransientState_Types = 1
33 // The device is in FORCE_DELETING state
34 DeviceTransientState_FORCE_DELETING DeviceTransientState_Types = 2
35 // The device is getting deleted from adapter state
36 DeviceTransientState_DELETING_FROM_ADAPTER DeviceTransientState_Types = 3
37 // The device is deleted from adapter and is getting deleted in core.
38 DeviceTransientState_DELETING_POST_ADAPTER_RESPONSE DeviceTransientState_Types = 4
39 // State to represent that the device deletion is failed
40 DeviceTransientState_DELETE_FAILED DeviceTransientState_Types = 5
41 // State to represent that reconcile is in progress
42 DeviceTransientState_RECONCILE_IN_PROGRESS DeviceTransientState_Types = 6
bseeniva50f304d2025-03-13 11:32:20 +053043 // State to represent that reboot is in progress
44 DeviceTransientState_REBOOT_IN_PROGRESS DeviceTransientState_Types = 7
khenaidoo5fc5cea2021-08-11 17:39:16 -040045)
46
Abhay Kumar03713392025-12-30 05:20:58 +000047// Enum value maps for DeviceTransientState_Types.
48var (
49 DeviceTransientState_Types_name = map[int32]string{
50 0: "NONE",
51 1: "ANY",
52 2: "FORCE_DELETING",
53 3: "DELETING_FROM_ADAPTER",
54 4: "DELETING_POST_ADAPTER_RESPONSE",
55 5: "DELETE_FAILED",
56 6: "RECONCILE_IN_PROGRESS",
57 7: "REBOOT_IN_PROGRESS",
58 }
59 DeviceTransientState_Types_value = map[string]int32{
60 "NONE": 0,
61 "ANY": 1,
62 "FORCE_DELETING": 2,
63 "DELETING_FROM_ADAPTER": 3,
64 "DELETING_POST_ADAPTER_RESPONSE": 4,
65 "DELETE_FAILED": 5,
66 "RECONCILE_IN_PROGRESS": 6,
67 "REBOOT_IN_PROGRESS": 7,
68 }
69)
khenaidoo5fc5cea2021-08-11 17:39:16 -040070
Abhay Kumar03713392025-12-30 05:20:58 +000071func (x DeviceTransientState_Types) Enum() *DeviceTransientState_Types {
72 p := new(DeviceTransientState_Types)
73 *p = x
74 return p
khenaidoo5fc5cea2021-08-11 17:39:16 -040075}
76
77func (x DeviceTransientState_Types) String() string {
Abhay Kumar03713392025-12-30 05:20:58 +000078 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
khenaidoo5fc5cea2021-08-11 17:39:16 -040079}
80
Abhay Kumar03713392025-12-30 05:20:58 +000081func (DeviceTransientState_Types) Descriptor() protoreflect.EnumDescriptor {
82 return file_voltha_protos_core_proto_enumTypes[0].Descriptor()
83}
84
85func (DeviceTransientState_Types) Type() protoreflect.EnumType {
86 return &file_voltha_protos_core_proto_enumTypes[0]
87}
88
89func (x DeviceTransientState_Types) Number() protoreflect.EnumNumber {
90 return protoreflect.EnumNumber(x)
91}
92
93// Deprecated: Use DeviceTransientState_Types.Descriptor instead.
khenaidoo5fc5cea2021-08-11 17:39:16 -040094func (DeviceTransientState_Types) EnumDescriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +000095 return file_voltha_protos_core_proto_rawDescGZIP(), []int{0, 0}
khenaidoo5fc5cea2021-08-11 17:39:16 -040096}
97
98type DeviceTransientState struct {
Abhay Kumar03713392025-12-30 05:20:58 +000099 state protoimpl.MessageState `protogen:"open.v1"`
100 TransientState DeviceTransientState_Types `protobuf:"varint,1,opt,name=transient_state,json=transientState,proto3,enum=core.DeviceTransientState_Types" json:"transient_state,omitempty"`
101 unknownFields protoimpl.UnknownFields
102 sizeCache protoimpl.SizeCache
khenaidoo5fc5cea2021-08-11 17:39:16 -0400103}
104
Abhay Kumar03713392025-12-30 05:20:58 +0000105func (x *DeviceTransientState) Reset() {
106 *x = DeviceTransientState{}
107 mi := &file_voltha_protos_core_proto_msgTypes[0]
108 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
109 ms.StoreMessageInfo(mi)
110}
111
112func (x *DeviceTransientState) String() string {
113 return protoimpl.X.MessageStringOf(x)
114}
115
116func (*DeviceTransientState) ProtoMessage() {}
117
118func (x *DeviceTransientState) ProtoReflect() protoreflect.Message {
119 mi := &file_voltha_protos_core_proto_msgTypes[0]
120 if x != nil {
121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
122 if ms.LoadMessageInfo() == nil {
123 ms.StoreMessageInfo(mi)
124 }
125 return ms
126 }
127 return mi.MessageOf(x)
128}
129
130// Deprecated: Use DeviceTransientState.ProtoReflect.Descriptor instead.
khenaidoo5fc5cea2021-08-11 17:39:16 -0400131func (*DeviceTransientState) Descriptor() ([]byte, []int) {
Abhay Kumar03713392025-12-30 05:20:58 +0000132 return file_voltha_protos_core_proto_rawDescGZIP(), []int{0}
khenaidoo5fc5cea2021-08-11 17:39:16 -0400133}
134
Abhay Kumar03713392025-12-30 05:20:58 +0000135func (x *DeviceTransientState) GetTransientState() DeviceTransientState_Types {
136 if x != nil {
137 return x.TransientState
khenaidoo5fc5cea2021-08-11 17:39:16 -0400138 }
139 return DeviceTransientState_NONE
140}
141
Abhay Kumar03713392025-12-30 05:20:58 +0000142var File_voltha_protos_core_proto protoreflect.FileDescriptor
143
144const file_voltha_protos_core_proto_rawDesc = "" +
145 "\n" +
146 "\x18voltha_protos/core.proto\x12\x04core\"\x97\x02\n" +
147 "\x14DeviceTransientState\x12I\n" +
148 "\x0ftransient_state\x18\x01 \x01(\x0e2 .core.DeviceTransientState.TypesR\x0etransientState\"\xb3\x01\n" +
149 "\x05Types\x12\b\n" +
150 "\x04NONE\x10\x00\x12\a\n" +
151 "\x03ANY\x10\x01\x12\x12\n" +
152 "\x0eFORCE_DELETING\x10\x02\x12\x19\n" +
153 "\x15DELETING_FROM_ADAPTER\x10\x03\x12\"\n" +
154 "\x1eDELETING_POST_ADAPTER_RESPONSE\x10\x04\x12\x11\n" +
155 "\rDELETE_FAILED\x10\x05\x12\x19\n" +
156 "\x15RECONCILE_IN_PROGRESS\x10\x06\x12\x16\n" +
157 "\x12REBOOT_IN_PROGRESS\x10\aBH\n" +
158 "\x18org.opencord.voltha.coreZ,github.com/opencord/voltha-protos/v5/go/coreb\x06proto3"
159
160var (
161 file_voltha_protos_core_proto_rawDescOnce sync.Once
162 file_voltha_protos_core_proto_rawDescData []byte
163)
164
165func file_voltha_protos_core_proto_rawDescGZIP() []byte {
166 file_voltha_protos_core_proto_rawDescOnce.Do(func() {
167 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)))
168 })
169 return file_voltha_protos_core_proto_rawDescData
khenaidoo5fc5cea2021-08-11 17:39:16 -0400170}
171
Abhay Kumar03713392025-12-30 05:20:58 +0000172var file_voltha_protos_core_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
173var file_voltha_protos_core_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
174var file_voltha_protos_core_proto_goTypes = []any{
175 (DeviceTransientState_Types)(0), // 0: core.DeviceTransientState.Types
176 (*DeviceTransientState)(nil), // 1: core.DeviceTransientState
177}
178var file_voltha_protos_core_proto_depIdxs = []int32{
179 0, // 0: core.DeviceTransientState.transient_state:type_name -> core.DeviceTransientState.Types
180 1, // [1:1] is the sub-list for method output_type
181 1, // [1:1] is the sub-list for method input_type
182 1, // [1:1] is the sub-list for extension type_name
183 1, // [1:1] is the sub-list for extension extendee
184 0, // [0:1] is the sub-list for field type_name
185}
khenaidoo5fc5cea2021-08-11 17:39:16 -0400186
Abhay Kumar03713392025-12-30 05:20:58 +0000187func init() { file_voltha_protos_core_proto_init() }
188func file_voltha_protos_core_proto_init() {
189 if File_voltha_protos_core_proto != nil {
190 return
191 }
192 type x struct{}
193 out := protoimpl.TypeBuilder{
194 File: protoimpl.DescBuilder{
195 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
196 RawDescriptor: unsafe.Slice(unsafe.StringData(file_voltha_protos_core_proto_rawDesc), len(file_voltha_protos_core_proto_rawDesc)),
197 NumEnums: 1,
198 NumMessages: 1,
199 NumExtensions: 0,
200 NumServices: 0,
201 },
202 GoTypes: file_voltha_protos_core_proto_goTypes,
203 DependencyIndexes: file_voltha_protos_core_proto_depIdxs,
204 EnumInfos: file_voltha_protos_core_proto_enumTypes,
205 MessageInfos: file_voltha_protos_core_proto_msgTypes,
206 }.Build()
207 File_voltha_protos_core_proto = out.File
208 file_voltha_protos_core_proto_goTypes = nil
209 file_voltha_protos_core_proto_depIdxs = nil
khenaidoo5fc5cea2021-08-11 17:39:16 -0400210}