Himani Chawla | 7756374 | 2020-10-19 17:26:14 +0530 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/core.proto |
| 3 | |
| 4 | package voltha |
| 5 | |
| 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
| 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 | ) |
| 41 | |
| 42 | var DeviceTransientState_Types_name = map[int32]string{ |
| 43 | 0: "NONE", |
| 44 | 1: "ANY", |
| 45 | 2: "FORCE_DELETING", |
| 46 | 3: "DELETING_FROM_ADAPTER", |
| 47 | 4: "DELETING_POST_ADAPTER_RESPONSE", |
| 48 | 5: "DELETE_FAILED", |
| 49 | } |
| 50 | |
| 51 | var DeviceTransientState_Types_value = map[string]int32{ |
| 52 | "NONE": 0, |
| 53 | "ANY": 1, |
| 54 | "FORCE_DELETING": 2, |
| 55 | "DELETING_FROM_ADAPTER": 3, |
| 56 | "DELETING_POST_ADAPTER_RESPONSE": 4, |
| 57 | "DELETE_FAILED": 5, |
| 58 | } |
| 59 | |
| 60 | func (x DeviceTransientState_Types) String() string { |
| 61 | return proto.EnumName(DeviceTransientState_Types_name, int32(x)) |
| 62 | } |
| 63 | |
| 64 | func (DeviceTransientState_Types) EnumDescriptor() ([]byte, []int) { |
| 65 | return fileDescriptor_39634f15fb8a505e, []int{0, 0} |
| 66 | } |
| 67 | |
| 68 | type DeviceTransientState struct { |
| 69 | TransientState DeviceTransientState_Types `protobuf:"varint,1,opt,name=transient_state,json=transientState,proto3,enum=voltha.DeviceTransientState_Types" json:"transient_state,omitempty"` |
| 70 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 71 | XXX_unrecognized []byte `json:"-"` |
| 72 | XXX_sizecache int32 `json:"-"` |
| 73 | } |
| 74 | |
| 75 | func (m *DeviceTransientState) Reset() { *m = DeviceTransientState{} } |
| 76 | func (m *DeviceTransientState) String() string { return proto.CompactTextString(m) } |
| 77 | func (*DeviceTransientState) ProtoMessage() {} |
| 78 | func (*DeviceTransientState) Descriptor() ([]byte, []int) { |
| 79 | return fileDescriptor_39634f15fb8a505e, []int{0} |
| 80 | } |
| 81 | |
| 82 | func (m *DeviceTransientState) XXX_Unmarshal(b []byte) error { |
| 83 | return xxx_messageInfo_DeviceTransientState.Unmarshal(m, b) |
| 84 | } |
| 85 | func (m *DeviceTransientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 86 | return xxx_messageInfo_DeviceTransientState.Marshal(b, m, deterministic) |
| 87 | } |
| 88 | func (m *DeviceTransientState) XXX_Merge(src proto.Message) { |
| 89 | xxx_messageInfo_DeviceTransientState.Merge(m, src) |
| 90 | } |
| 91 | func (m *DeviceTransientState) XXX_Size() int { |
| 92 | return xxx_messageInfo_DeviceTransientState.Size(m) |
| 93 | } |
| 94 | func (m *DeviceTransientState) XXX_DiscardUnknown() { |
| 95 | xxx_messageInfo_DeviceTransientState.DiscardUnknown(m) |
| 96 | } |
| 97 | |
| 98 | var xxx_messageInfo_DeviceTransientState proto.InternalMessageInfo |
| 99 | |
| 100 | func (m *DeviceTransientState) GetTransientState() DeviceTransientState_Types { |
| 101 | if m != nil { |
| 102 | return m.TransientState |
| 103 | } |
| 104 | return DeviceTransientState_NONE |
| 105 | } |
| 106 | |
| 107 | func init() { |
| 108 | proto.RegisterEnum("voltha.DeviceTransientState_Types", DeviceTransientState_Types_name, DeviceTransientState_Types_value) |
| 109 | proto.RegisterType((*DeviceTransientState)(nil), "voltha.DeviceTransientState") |
| 110 | } |
| 111 | |
| 112 | func init() { proto.RegisterFile("voltha_protos/core.proto", fileDescriptor_39634f15fb8a505e) } |
| 113 | |
| 114 | var fileDescriptor_39634f15fb8a505e = []byte{ |
| 115 | // 264 bytes of a gzipped FileDescriptorProto |
| 116 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x4d, 0x4b, 0xc4, 0x30, |
| 117 | 0x10, 0x86, 0xad, 0xfb, 0xa1, 0x0c, 0x58, 0x63, 0x54, 0x58, 0x2f, 0x22, 0x3d, 0x79, 0x31, 0x05, |
| 118 | 0xf5, 0x0f, 0x54, 0x3b, 0x95, 0xc5, 0xb5, 0x2d, 0x6d, 0x2e, 0x7a, 0x09, 0xdd, 0x1a, 0xba, 0x05, |
| 119 | 0x6d, 0x4a, 0x1a, 0x0b, 0xde, 0xfc, 0xb5, 0xfe, 0x0e, 0xb1, 0x1f, 0x82, 0xb0, 0xb7, 0x99, 0xe7, |
| 120 | 0x99, 0xf7, 0x30, 0x2f, 0x2c, 0x5a, 0xf5, 0x66, 0x36, 0x99, 0xa8, 0xb5, 0x32, 0xaa, 0x71, 0x73, |
| 121 | 0xa5, 0x25, 0xeb, 0x66, 0x3a, 0xef, 0x8d, 0xf3, 0x6d, 0xc1, 0x89, 0x2f, 0xdb, 0x32, 0x97, 0x5c, |
| 122 | 0x67, 0x55, 0x53, 0xca, 0xca, 0xa4, 0x26, 0x33, 0x92, 0x3e, 0xc2, 0xa1, 0x19, 0x89, 0x68, 0x7e, |
| 123 | 0xd1, 0xc2, 0xba, 0xb0, 0x2e, 0xed, 0x6b, 0x87, 0xf5, 0x51, 0xb6, 0x2d, 0xc6, 0xf8, 0x67, 0x2d, |
| 124 | 0x9b, 0xc4, 0x36, 0xff, 0xa8, 0xf3, 0x65, 0xc1, 0xac, 0x33, 0x74, 0x1f, 0xa6, 0x61, 0x14, 0x22, |
| 125 | 0xd9, 0xa1, 0x7b, 0x30, 0xf1, 0xc2, 0x67, 0x62, 0x51, 0x0a, 0x76, 0x10, 0x25, 0xf7, 0x28, 0x7c, |
| 126 | 0x5c, 0x21, 0x5f, 0x86, 0x0f, 0x64, 0x97, 0x9e, 0xc1, 0xe9, 0xb8, 0x89, 0x20, 0x89, 0x9e, 0x84, |
| 127 | 0xe7, 0x7b, 0x31, 0xc7, 0x84, 0x4c, 0xa8, 0x03, 0xe7, 0x7f, 0x2a, 0x8e, 0x52, 0x3e, 0x2a, 0x91, |
| 128 | 0x60, 0x1a, 0x47, 0x61, 0x8a, 0x64, 0x4a, 0x8f, 0xe0, 0xa0, 0xbb, 0x41, 0x11, 0x78, 0xcb, 0x15, |
| 129 | 0xfa, 0x64, 0x76, 0x87, 0x70, 0xac, 0x74, 0xc1, 0x54, 0x2d, 0xab, 0x5c, 0xe9, 0xd7, 0xe1, 0x89, |
| 130 | 0x17, 0x56, 0x94, 0x66, 0xf3, 0xb1, 0x66, 0xb9, 0x7a, 0x77, 0x47, 0xe7, 0xf6, 0xee, 0x6a, 0x68, |
| 131 | 0xad, 0xbd, 0x75, 0x0b, 0x35, 0xb0, 0xf5, 0xbc, 0x83, 0x37, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, |
| 132 | 0xe3, 0x06, 0xbc, 0xa1, 0x5a, 0x01, 0x00, 0x00, |
| 133 | } |