| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: voltha_protos/core.proto |
| |
| package core |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| math "math" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Transient State for devices |
| type DeviceTransientState_Types int32 |
| |
| const ( |
| // The transient state of the device is not set |
| DeviceTransientState_NONE DeviceTransientState_Types = 0 |
| // The state of the device in core is any state, i.e DELETING, DELETED, DELETE_FAILED, NONE. |
| // This state is only used for transitions. |
| DeviceTransientState_ANY DeviceTransientState_Types = 1 |
| // The device is in FORCE_DELETING state |
| DeviceTransientState_FORCE_DELETING DeviceTransientState_Types = 2 |
| // The device is getting deleted from adapter state |
| DeviceTransientState_DELETING_FROM_ADAPTER DeviceTransientState_Types = 3 |
| // The device is deleted from adapter and is getting deleted in core. |
| DeviceTransientState_DELETING_POST_ADAPTER_RESPONSE DeviceTransientState_Types = 4 |
| // State to represent that the device deletion is failed |
| DeviceTransientState_DELETE_FAILED DeviceTransientState_Types = 5 |
| // State to represent that reconcile is in progress |
| DeviceTransientState_RECONCILE_IN_PROGRESS DeviceTransientState_Types = 6 |
| // State to represent that reboot is in progress |
| DeviceTransientState_REBOOT_IN_PROGRESS DeviceTransientState_Types = 7 |
| ) |
| |
| var DeviceTransientState_Types_name = map[int32]string{ |
| 0: "NONE", |
| 1: "ANY", |
| 2: "FORCE_DELETING", |
| 3: "DELETING_FROM_ADAPTER", |
| 4: "DELETING_POST_ADAPTER_RESPONSE", |
| 5: "DELETE_FAILED", |
| 6: "RECONCILE_IN_PROGRESS", |
| 7: "REBOOT_IN_PROGRESS", |
| } |
| |
| var DeviceTransientState_Types_value = map[string]int32{ |
| "NONE": 0, |
| "ANY": 1, |
| "FORCE_DELETING": 2, |
| "DELETING_FROM_ADAPTER": 3, |
| "DELETING_POST_ADAPTER_RESPONSE": 4, |
| "DELETE_FAILED": 5, |
| "RECONCILE_IN_PROGRESS": 6, |
| "REBOOT_IN_PROGRESS": 7, |
| } |
| |
| func (x DeviceTransientState_Types) String() string { |
| return proto.EnumName(DeviceTransientState_Types_name, int32(x)) |
| } |
| |
| func (DeviceTransientState_Types) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor_39634f15fb8a505e, []int{0, 0} |
| } |
| |
| type DeviceTransientState struct { |
| TransientState DeviceTransientState_Types `protobuf:"varint,1,opt,name=transient_state,json=transientState,proto3,enum=core.DeviceTransientState_Types" json:"transient_state,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *DeviceTransientState) Reset() { *m = DeviceTransientState{} } |
| func (m *DeviceTransientState) String() string { return proto.CompactTextString(m) } |
| func (*DeviceTransientState) ProtoMessage() {} |
| func (*DeviceTransientState) Descriptor() ([]byte, []int) { |
| return fileDescriptor_39634f15fb8a505e, []int{0} |
| } |
| |
| func (m *DeviceTransientState) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_DeviceTransientState.Unmarshal(m, b) |
| } |
| func (m *DeviceTransientState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_DeviceTransientState.Marshal(b, m, deterministic) |
| } |
| func (m *DeviceTransientState) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_DeviceTransientState.Merge(m, src) |
| } |
| func (m *DeviceTransientState) XXX_Size() int { |
| return xxx_messageInfo_DeviceTransientState.Size(m) |
| } |
| func (m *DeviceTransientState) XXX_DiscardUnknown() { |
| xxx_messageInfo_DeviceTransientState.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_DeviceTransientState proto.InternalMessageInfo |
| |
| func (m *DeviceTransientState) GetTransientState() DeviceTransientState_Types { |
| if m != nil { |
| return m.TransientState |
| } |
| return DeviceTransientState_NONE |
| } |
| |
| func init() { |
| proto.RegisterEnum("core.DeviceTransientState_Types", DeviceTransientState_Types_name, DeviceTransientState_Types_value) |
| proto.RegisterType((*DeviceTransientState)(nil), "core.DeviceTransientState") |
| } |
| |
| func init() { proto.RegisterFile("voltha_protos/core.proto", fileDescriptor_39634f15fb8a505e) } |
| |
| var fileDescriptor_39634f15fb8a505e = []byte{ |
| // 299 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xcf, 0x4a, 0x33, 0x31, |
| 0x14, 0xc5, 0xbf, 0xe9, 0xdf, 0x8f, 0x0b, 0xd6, 0x18, 0x54, 0xea, 0x46, 0x4a, 0x57, 0x2e, 0x74, |
| 0x06, 0x14, 0x1f, 0x60, 0xda, 0xb9, 0xad, 0x03, 0x35, 0x19, 0x92, 0x6c, 0x74, 0x13, 0xda, 0x31, |
| 0xb4, 0x05, 0x6d, 0xca, 0x4c, 0x2c, 0xf8, 0x24, 0x3e, 0x88, 0x2f, 0x28, 0x93, 0x3a, 0x42, 0xc1, |
| 0xdd, 0xc9, 0xef, 0x9c, 0x1c, 0xb8, 0x07, 0xfa, 0x3b, 0xfb, 0xea, 0x56, 0x73, 0xbd, 0x2d, 0xac, |
| 0xb3, 0x65, 0x94, 0xdb, 0xc2, 0x84, 0x5e, 0xd3, 0x56, 0xa5, 0x87, 0x9f, 0x0d, 0x38, 0x4d, 0xcc, |
| 0x6e, 0x9d, 0x1b, 0x55, 0xcc, 0x37, 0xe5, 0xda, 0x6c, 0x9c, 0x74, 0x73, 0x67, 0x68, 0x0a, 0xc7, |
| 0xae, 0x26, 0xba, 0xac, 0x50, 0x3f, 0x18, 0x04, 0x57, 0xbd, 0xdb, 0x41, 0xe8, 0x4b, 0xfe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