blob: dab601d3257032a6d4d1e62861cc42ce45f515d2 [file] [log] [blame]
khenaidoo5fc5cea2021-08-11 17:39:16 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/core.proto
3
4package core
5
6import (
khenaidoo5fc5cea2021-08-11 17:39:16 -04007 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
khenaidoo5fc5cea2021-08-11 17:39:16 -04009 math "math"
10)
11
12// Reference imports to suppress errors if they are not otherwise used.
13var _ = proto.Marshal
14var _ = fmt.Errorf
15var _ = math.Inf
16
17// This is a compile-time assertion to ensure that this generated file
18// is compatible with the proto package it is being compiled against.
19// A compilation error at this line likely means your copy of the
20// proto package needs to be updated.
21const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
22
23// Transient State for devices
24type DeviceTransientState_Types int32
25
26const (
27 // The transient state of the device is not set
28 DeviceTransientState_NONE DeviceTransientState_Types = 0
29 // The state of the device in core is any state, i.e DELETING, DELETED, DELETE_FAILED, NONE.
30 // This state is only used for transitions.
31 DeviceTransientState_ANY DeviceTransientState_Types = 1
32 // The device is in FORCE_DELETING state
33 DeviceTransientState_FORCE_DELETING DeviceTransientState_Types = 2
34 // The device is getting deleted from adapter state
35 DeviceTransientState_DELETING_FROM_ADAPTER DeviceTransientState_Types = 3
36 // The device is deleted from adapter and is getting deleted in core.
37 DeviceTransientState_DELETING_POST_ADAPTER_RESPONSE DeviceTransientState_Types = 4
38 // State to represent that the device deletion is failed
39 DeviceTransientState_DELETE_FAILED DeviceTransientState_Types = 5
40 // State to represent that reconcile is in progress
41 DeviceTransientState_RECONCILE_IN_PROGRESS DeviceTransientState_Types = 6
bseeniva50f304d2025-03-13 11:32:20 +053042 // State to represent that reboot is in progress
43 DeviceTransientState_REBOOT_IN_PROGRESS DeviceTransientState_Types = 7
khenaidoo5fc5cea2021-08-11 17:39:16 -040044)
45
46var DeviceTransientState_Types_name = map[int32]string{
47 0: "NONE",
48 1: "ANY",
49 2: "FORCE_DELETING",
50 3: "DELETING_FROM_ADAPTER",
51 4: "DELETING_POST_ADAPTER_RESPONSE",
52 5: "DELETE_FAILED",
53 6: "RECONCILE_IN_PROGRESS",
bseeniva50f304d2025-03-13 11:32:20 +053054 7: "REBOOT_IN_PROGRESS",
khenaidoo5fc5cea2021-08-11 17:39:16 -040055}
56
57var DeviceTransientState_Types_value = map[string]int32{
58 "NONE": 0,
59 "ANY": 1,
60 "FORCE_DELETING": 2,
61 "DELETING_FROM_ADAPTER": 3,
62 "DELETING_POST_ADAPTER_RESPONSE": 4,
63 "DELETE_FAILED": 5,
64 "RECONCILE_IN_PROGRESS": 6,
bseeniva50f304d2025-03-13 11:32:20 +053065 "REBOOT_IN_PROGRESS": 7,
khenaidoo5fc5cea2021-08-11 17:39:16 -040066}
67
68func (x DeviceTransientState_Types) String() string {
69 return proto.EnumName(DeviceTransientState_Types_name, int32(x))
70}
71
72func (DeviceTransientState_Types) EnumDescriptor() ([]byte, []int) {
73 return fileDescriptor_39634f15fb8a505e, []int{0, 0}
74}
75
76type DeviceTransientState struct {
khenaidoo4c6543e2021-10-19 17:25:58 -040077 TransientState DeviceTransientState_Types `protobuf:"varint,1,opt,name=transient_state,json=transientState,proto3,enum=core.DeviceTransientState_Types" json:"transient_state,omitempty"`
khenaidoo5fc5cea2021-08-11 17:39:16 -040078 XXX_NoUnkeyedLiteral struct{} `json:"-"`
79 XXX_unrecognized []byte `json:"-"`
80 XXX_sizecache int32 `json:"-"`
81}
82
83func (m *DeviceTransientState) Reset() { *m = DeviceTransientState{} }
84func (m *DeviceTransientState) String() string { return proto.CompactTextString(m) }
85func (*DeviceTransientState) ProtoMessage() {}
86func (*DeviceTransientState) Descriptor() ([]byte, []int) {
87 return fileDescriptor_39634f15fb8a505e, []int{0}
88}
89
90func (m *DeviceTransientState) XXX_Unmarshal(b []byte) error {
91 return xxx_messageInfo_DeviceTransientState.Unmarshal(m, b)
92}
93func (m *DeviceTransientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
94 return xxx_messageInfo_DeviceTransientState.Marshal(b, m, deterministic)
95}
96func (m *DeviceTransientState) XXX_Merge(src proto.Message) {
97 xxx_messageInfo_DeviceTransientState.Merge(m, src)
98}
99func (m *DeviceTransientState) XXX_Size() int {
100 return xxx_messageInfo_DeviceTransientState.Size(m)
101}
102func (m *DeviceTransientState) XXX_DiscardUnknown() {
103 xxx_messageInfo_DeviceTransientState.DiscardUnknown(m)
104}
105
106var xxx_messageInfo_DeviceTransientState proto.InternalMessageInfo
107
108func (m *DeviceTransientState) GetTransientState() DeviceTransientState_Types {
109 if m != nil {
110 return m.TransientState
111 }
112 return DeviceTransientState_NONE
113}
114
115func init() {
khenaidoo4c6543e2021-10-19 17:25:58 -0400116 proto.RegisterEnum("core.DeviceTransientState_Types", DeviceTransientState_Types_name, DeviceTransientState_Types_value)
117 proto.RegisterType((*DeviceTransientState)(nil), "core.DeviceTransientState")
khenaidoo5fc5cea2021-08-11 17:39:16 -0400118}
119
120func init() { proto.RegisterFile("voltha_protos/core.proto", fileDescriptor_39634f15fb8a505e) }
121
122var fileDescriptor_39634f15fb8a505e = []byte{
bseeniva50f304d2025-03-13 11:32:20 +0530123 // 299 bytes of a gzipped FileDescriptorProto
124 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xcf, 0x4a, 0x33, 0x31,
125 0x14, 0xc5, 0xbf, 0xe9, 0xdf, 0x8f, 0x0b, 0xd6, 0x18, 0x54, 0xea, 0x46, 0x4a, 0x57, 0x2e, 0x74,
126 0x06, 0x14, 0x1f, 0x60, 0xda, 0xb9, 0xad, 0x03, 0x35, 0x19, 0x92, 0x6c, 0x74, 0x13, 0xda, 0x31,
127 0xb4, 0x05, 0x6d, 0xca, 0x4c, 0x2c, 0xf8, 0x24, 0x3e, 0x88, 0x2f, 0x28, 0x93, 0x3a, 0x42, 0xc1,
128 0xdd, 0xc9, 0xef, 0x9c, 0x1c, 0xb8, 0x07, 0xfa, 0x3b, 0xfb, 0xea, 0x56, 0x73, 0xbd, 0x2d, 0xac,
129 0xb3, 0x65, 0x94, 0xdb, 0xc2, 0x84, 0x5e, 0xd3, 0x56, 0xa5, 0x87, 0x9f, 0x0d, 0x38, 0x4d, 0xcc,
130 0x6e, 0x9d, 0x1b, 0x55, 0xcc, 0x37, 0xe5, 0xda, 0x6c, 0x9c, 0x74, 0x73, 0x67, 0x68, 0x0a, 0xc7,
131 0xae, 0x26, 0xba, 0xac, 0x50, 0x3f, 0x18, 0x04, 0x57, 0xbd, 0xdb, 0x41, 0xe8, 0x4b, 0xfe, 0xfa,
132 0x14, 0xaa, 0x8f, 0xad, 0x29, 0x45, 0xcf, 0x1d, 0xd0, 0xe1, 0x57, 0x00, 0x6d, 0xef, 0xd0, 0xff,
133 0xd0, 0x62, 0x9c, 0x21, 0xf9, 0x47, 0xbb, 0xd0, 0x8c, 0xd9, 0x13, 0x09, 0x28, 0x85, 0xde, 0x84,
134 0x8b, 0x31, 0xea, 0x04, 0x67, 0xa8, 0x52, 0x36, 0x25, 0x0d, 0x7a, 0x01, 0x67, 0xf5, 0x4b, 0x4f,
135 0x04, 0x7f, 0xd4, 0x71, 0x12, 0x67, 0x0a, 0x05, 0x69, 0xd2, 0x21, 0x5c, 0xfe, 0x5a, 0x19, 0x97,
136 0xaa, 0xb6, 0xb4, 0x40, 0x99, 0x71, 0x26, 0x91, 0xb4, 0xe8, 0x09, 0x1c, 0xf9, 0x0c, 0xea, 0x49,
137 0x9c, 0xce, 0x30, 0x21, 0xed, 0xaa, 0x51, 0xe0, 0x98, 0xb3, 0x71, 0x3a, 0x43, 0x9d, 0x32, 0x9d,
138 0x09, 0x3e, 0x15, 0x28, 0x25, 0xe9, 0xd0, 0x73, 0xa0, 0x02, 0x47, 0x9c, 0xab, 0x03, 0xde, 0x1d,
139 0x3d, 0x40, 0xdf, 0x16, 0xcb, 0xd0, 0x6e, 0xcd, 0x26, 0xb7, 0xc5, 0x4b, 0xb8, 0x1f, 0xd2, 0x1f,
140 0xff, 0x7c, 0xbd, 0x5c, 0xbb, 0xd5, 0xfb, 0x22, 0xcc, 0xed, 0x5b, 0x54, 0x07, 0xa2, 0x7d, 0xe0,
141 0xe6, 0x67, 0xe9, 0xdd, 0x7d, 0xb4, 0xb4, 0x7e, 0xef, 0x45, 0xc7, 0xa3, 0xbb, 0xef, 0x00, 0x00,
142 0x00, 0xff, 0xff, 0xfc, 0xd7, 0xdf, 0xa2, 0x8c, 0x01, 0x00, 0x00,
khenaidoo5fc5cea2021-08-11 17:39:16 -0400143}