| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 2 | // versions: |
| 3 | // protoc-gen-go v1.36.11 |
| 4 | // protoc v4.25.8 |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 5 | // source: voltha_protos/core.proto |
| 6 | |
| 7 | package core |
| 8 | |
| 9 | import ( |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 11 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 12 | reflect "reflect" |
| 13 | sync "sync" |
| 14 | unsafe "unsafe" |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 15 | ) |
| 16 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 17 | const ( |
| 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 | ) |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 23 | |
| 24 | // Transient State for devices |
| 25 | type DeviceTransientState_Types int32 |
| 26 | |
| 27 | const ( |
| 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 |
| bseeniva | 50f304d | 2025-03-13 11:32:20 +0530 | [diff] [blame] | 43 | // State to represent that reboot is in progress |
| 44 | DeviceTransientState_REBOOT_IN_PROGRESS DeviceTransientState_Types = 7 |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 45 | ) |
| 46 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 47 | // Enum value maps for DeviceTransientState_Types. |
| 48 | var ( |
| 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 | ) |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 70 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 71 | func (x DeviceTransientState_Types) Enum() *DeviceTransientState_Types { |
| 72 | p := new(DeviceTransientState_Types) |
| 73 | *p = x |
| 74 | return p |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | func (x DeviceTransientState_Types) String() string { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 78 | return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 79 | } |
| 80 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 81 | func (DeviceTransientState_Types) Descriptor() protoreflect.EnumDescriptor { |
| 82 | return file_voltha_protos_core_proto_enumTypes[0].Descriptor() |
| 83 | } |
| 84 | |
| 85 | func (DeviceTransientState_Types) Type() protoreflect.EnumType { |
| 86 | return &file_voltha_protos_core_proto_enumTypes[0] |
| 87 | } |
| 88 | |
| 89 | func (x DeviceTransientState_Types) Number() protoreflect.EnumNumber { |
| 90 | return protoreflect.EnumNumber(x) |
| 91 | } |
| 92 | |
| 93 | // Deprecated: Use DeviceTransientState_Types.Descriptor instead. |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 94 | func (DeviceTransientState_Types) EnumDescriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 95 | return file_voltha_protos_core_proto_rawDescGZIP(), []int{0, 0} |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 96 | } |
| 97 | |
| 98 | type DeviceTransientState struct { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 99 | 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 |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 103 | } |
| 104 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 105 | func (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 | |
| 112 | func (x *DeviceTransientState) String() string { |
| 113 | return protoimpl.X.MessageStringOf(x) |
| 114 | } |
| 115 | |
| 116 | func (*DeviceTransientState) ProtoMessage() {} |
| 117 | |
| 118 | func (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. |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 131 | func (*DeviceTransientState) Descriptor() ([]byte, []int) { |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 132 | return file_voltha_protos_core_proto_rawDescGZIP(), []int{0} |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 133 | } |
| 134 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 135 | func (x *DeviceTransientState) GetTransientState() DeviceTransientState_Types { |
| 136 | if x != nil { |
| 137 | return x.TransientState |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 138 | } |
| 139 | return DeviceTransientState_NONE |
| 140 | } |
| 141 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 142 | var File_voltha_protos_core_proto protoreflect.FileDescriptor |
| 143 | |
| 144 | const 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 | |
| 160 | var ( |
| 161 | file_voltha_protos_core_proto_rawDescOnce sync.Once |
| 162 | file_voltha_protos_core_proto_rawDescData []byte |
| 163 | ) |
| 164 | |
| 165 | func 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 |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 170 | } |
| 171 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 172 | var file_voltha_protos_core_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 173 | var file_voltha_protos_core_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 174 | var file_voltha_protos_core_proto_goTypes = []any{ |
| 175 | (DeviceTransientState_Types)(0), // 0: core.DeviceTransientState.Types |
| 176 | (*DeviceTransientState)(nil), // 1: core.DeviceTransientState |
| 177 | } |
| 178 | var 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 | } |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 186 | |
| Abhay Kumar | 0371339 | 2025-12-30 05:20:58 +0000 | [diff] [blame^] | 187 | func init() { file_voltha_protos_core_proto_init() } |
| 188 | func 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 |
| khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 210 | } |