khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/core.proto |
| 3 | |
| 4 | package core |
| 5 | |
| 6 | import ( |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 9 | math "math" |
| 10 | ) |
| 11 | |
| 12 | // Reference imports to suppress errors if they are not otherwise used. |
| 13 | var _ = proto.Marshal |
| 14 | var _ = fmt.Errorf |
| 15 | var _ = 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. |
| 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 22 | |
| 23 | // Transient State for devices |
| 24 | type DeviceTransientState_Types int32 |
| 25 | |
| 26 | const ( |
| 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 |
| 42 | ) |
| 43 | |
| 44 | var DeviceTransientState_Types_name = map[int32]string{ |
| 45 | 0: "NONE", |
| 46 | 1: "ANY", |
| 47 | 2: "FORCE_DELETING", |
| 48 | 3: "DELETING_FROM_ADAPTER", |
| 49 | 4: "DELETING_POST_ADAPTER_RESPONSE", |
| 50 | 5: "DELETE_FAILED", |
| 51 | 6: "RECONCILE_IN_PROGRESS", |
| 52 | } |
| 53 | |
| 54 | var DeviceTransientState_Types_value = map[string]int32{ |
| 55 | "NONE": 0, |
| 56 | "ANY": 1, |
| 57 | "FORCE_DELETING": 2, |
| 58 | "DELETING_FROM_ADAPTER": 3, |
| 59 | "DELETING_POST_ADAPTER_RESPONSE": 4, |
| 60 | "DELETE_FAILED": 5, |
| 61 | "RECONCILE_IN_PROGRESS": 6, |
| 62 | } |
| 63 | |
| 64 | func (x DeviceTransientState_Types) String() string { |
| 65 | return proto.EnumName(DeviceTransientState_Types_name, int32(x)) |
| 66 | } |
| 67 | |
| 68 | func (DeviceTransientState_Types) EnumDescriptor() ([]byte, []int) { |
| 69 | return fileDescriptor_39634f15fb8a505e, []int{0, 0} |
| 70 | } |
| 71 | |
| 72 | type DeviceTransientState struct { |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 73 | TransientState DeviceTransientState_Types `protobuf:"varint,1,opt,name=transient_state,json=transientState,proto3,enum=core.DeviceTransientState_Types" json:"transient_state,omitempty"` |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 74 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 75 | XXX_unrecognized []byte `json:"-"` |
| 76 | XXX_sizecache int32 `json:"-"` |
| 77 | } |
| 78 | |
| 79 | func (m *DeviceTransientState) Reset() { *m = DeviceTransientState{} } |
| 80 | func (m *DeviceTransientState) String() string { return proto.CompactTextString(m) } |
| 81 | func (*DeviceTransientState) ProtoMessage() {} |
| 82 | func (*DeviceTransientState) Descriptor() ([]byte, []int) { |
| 83 | return fileDescriptor_39634f15fb8a505e, []int{0} |
| 84 | } |
| 85 | |
| 86 | func (m *DeviceTransientState) XXX_Unmarshal(b []byte) error { |
| 87 | return xxx_messageInfo_DeviceTransientState.Unmarshal(m, b) |
| 88 | } |
| 89 | func (m *DeviceTransientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 90 | return xxx_messageInfo_DeviceTransientState.Marshal(b, m, deterministic) |
| 91 | } |
| 92 | func (m *DeviceTransientState) XXX_Merge(src proto.Message) { |
| 93 | xxx_messageInfo_DeviceTransientState.Merge(m, src) |
| 94 | } |
| 95 | func (m *DeviceTransientState) XXX_Size() int { |
| 96 | return xxx_messageInfo_DeviceTransientState.Size(m) |
| 97 | } |
| 98 | func (m *DeviceTransientState) XXX_DiscardUnknown() { |
| 99 | xxx_messageInfo_DeviceTransientState.DiscardUnknown(m) |
| 100 | } |
| 101 | |
| 102 | var xxx_messageInfo_DeviceTransientState proto.InternalMessageInfo |
| 103 | |
| 104 | func (m *DeviceTransientState) GetTransientState() DeviceTransientState_Types { |
| 105 | if m != nil { |
| 106 | return m.TransientState |
| 107 | } |
| 108 | return DeviceTransientState_NONE |
| 109 | } |
| 110 | |
| 111 | func init() { |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 112 | proto.RegisterEnum("core.DeviceTransientState_Types", DeviceTransientState_Types_name, DeviceTransientState_Types_value) |
| 113 | proto.RegisterType((*DeviceTransientState)(nil), "core.DeviceTransientState") |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 114 | } |
| 115 | |
| 116 | func init() { proto.RegisterFile("voltha_protos/core.proto", fileDescriptor_39634f15fb8a505e) } |
| 117 | |
| 118 | var fileDescriptor_39634f15fb8a505e = []byte{ |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 119 | // 286 bytes of a gzipped FileDescriptorProto |
| 120 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xdf, 0x4a, 0xc3, 0x30, |
| 121 | 0x18, 0xc5, 0xad, 0xfb, 0xa3, 0x04, 0x9c, 0x31, 0x28, 0xcc, 0x1b, 0x19, 0xbb, 0xf2, 0x42, 0x53, |
| 122 | 0x50, 0x7c, 0x80, 0xba, 0x7e, 0x9b, 0x85, 0x99, 0x94, 0xa4, 0x37, 0x7a, 0x13, 0xba, 0x1a, 0xba, |
| 123 | 0x82, 0x36, 0xa5, 0x8d, 0x05, 0x9f, 0xc5, 0x87, 0x55, 0x9a, 0x59, 0x41, 0xf0, 0xee, 0xe4, 0x77, |
| 124 | 0x4e, 0x0e, 0x7c, 0x07, 0x4d, 0x5b, 0xf3, 0x6a, 0xb7, 0xa9, 0xaa, 0x6a, 0x63, 0x4d, 0xe3, 0x67, |
| 125 | 0xa6, 0xd6, 0xd4, 0x69, 0x32, 0xec, 0xf4, 0xfc, 0xcb, 0x43, 0xa7, 0xa1, 0x6e, 0x8b, 0x4c, 0x27, |
| 126 | 0x75, 0x5a, 0x36, 0x85, 0x2e, 0xad, 0xb4, 0xa9, 0xd5, 0x24, 0x42, 0xc7, 0xb6, 0x27, 0xaa, 0xe9, |
| 127 | 0xd0, 0xd4, 0x9b, 0x79, 0x97, 0x93, 0x9b, 0x19, 0x75, 0x25, 0xff, 0x7d, 0xa2, 0xc9, 0x47, 0xa5, |
| 128 | 0x1b, 0x31, 0xb1, 0x7f, 0xe8, 0xfc, 0xd3, 0x43, 0x23, 0xe7, 0x90, 0x43, 0x34, 0x64, 0x9c, 0x01, |
| 129 | 0xde, 0x23, 0x07, 0x68, 0x10, 0xb0, 0x27, 0xec, 0x11, 0x82, 0x26, 0x4b, 0x2e, 0x16, 0xa0, 0x42, |
| 130 | 0x58, 0x43, 0x12, 0xb1, 0x15, 0xde, 0x27, 0xe7, 0xe8, 0xac, 0x7f, 0xa9, 0xa5, 0xe0, 0x8f, 0x2a, |
| 131 | 0x08, 0x83, 0x38, 0x01, 0x81, 0x07, 0x64, 0x8e, 0x2e, 0x7e, 0xad, 0x98, 0xcb, 0xa4, 0xb7, 0x94, |
| 132 | 0x00, 0x19, 0x73, 0x26, 0x01, 0x0f, 0xc9, 0x09, 0x3a, 0x72, 0x19, 0x50, 0xcb, 0x20, 0x5a, 0x43, |
| 133 | 0x88, 0x47, 0x5d, 0xa3, 0x80, 0x05, 0x67, 0x8b, 0x68, 0x0d, 0x2a, 0x62, 0x2a, 0x16, 0x7c, 0x25, |
| 134 | 0x40, 0x4a, 0x3c, 0xbe, 0x7f, 0x40, 0x53, 0x53, 0xe7, 0xd4, 0x54, 0xba, 0xcc, 0x4c, 0xfd, 0x42, |
| 135 | 0x77, 0x83, 0xb9, 0x23, 0x9f, 0xaf, 0xf2, 0xc2, 0x6e, 0xdf, 0x37, 0x34, 0x33, 0x6f, 0x7e, 0x1f, |
| 136 | 0xf0, 0x77, 0x81, 0xeb, 0x9f, 0x45, 0xdb, 0x3b, 0x3f, 0x37, 0x6e, 0xd7, 0xcd, 0xd8, 0xa1, 0xdb, |
| 137 | 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x32, 0x24, 0x57, 0x74, 0x01, 0x00, 0x00, |
khenaidoo | 5fc5cea | 2021-08-11 17:39:16 -0400 | [diff] [blame] | 138 | } |