William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/common.proto |
| 3 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 4 | package common |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 5 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
| 9 | math "math" |
| 10 | ) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 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. |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 22 | |
| 23 | type TestModeKeys int32 |
| 24 | |
| 25 | const ( |
| 26 | TestModeKeys_api_test TestModeKeys = 0 |
| 27 | ) |
| 28 | |
| 29 | var TestModeKeys_name = map[int32]string{ |
| 30 | 0: "api_test", |
| 31 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 32 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 33 | var TestModeKeys_value = map[string]int32{ |
| 34 | "api_test": 0, |
| 35 | } |
| 36 | |
| 37 | func (x TestModeKeys) String() string { |
| 38 | return proto.EnumName(TestModeKeys_name, int32(x)) |
| 39 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 40 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 41 | func (TestModeKeys) EnumDescriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 42 | return fileDescriptor_c2e3fd231961e826, []int{0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 43 | } |
| 44 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 45 | // Administrative State |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 46 | type AdminState_Types int32 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 47 | |
| 48 | const ( |
| 49 | // The administrative state of the device is unknown |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 50 | AdminState_UNKNOWN AdminState_Types = 0 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 51 | // The device is pre-provisioned into Voltha, but not contacted by it |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 52 | AdminState_PREPROVISIONED AdminState_Types = 1 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 53 | // The device is enabled for activation and operation |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 54 | AdminState_ENABLED AdminState_Types = 2 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 55 | // The device is disabled and shall not perform its intended forwarding |
| 56 | // functions other than being available for re-activation. |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 57 | AdminState_DISABLED AdminState_Types = 3 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 58 | // The device is in the state of image download |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 59 | AdminState_DOWNLOADING_IMAGE AdminState_Types = 4 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 60 | ) |
| 61 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 62 | var AdminState_Types_name = map[int32]string{ |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 63 | 0: "UNKNOWN", |
| 64 | 1: "PREPROVISIONED", |
| 65 | 2: "ENABLED", |
| 66 | 3: "DISABLED", |
| 67 | 4: "DOWNLOADING_IMAGE", |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 68 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 69 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 70 | var AdminState_Types_value = map[string]int32{ |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 71 | "UNKNOWN": 0, |
| 72 | "PREPROVISIONED": 1, |
| 73 | "ENABLED": 2, |
| 74 | "DISABLED": 3, |
| 75 | "DOWNLOADING_IMAGE": 4, |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 76 | } |
| 77 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 78 | func (x AdminState_Types) String() string { |
| 79 | return proto.EnumName(AdminState_Types_name, int32(x)) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 80 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 81 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 82 | func (AdminState_Types) EnumDescriptor() ([]byte, []int) { |
divyadesai | d11cf31 | 2020-02-26 12:23:31 +0000 | [diff] [blame] | 83 | return fileDescriptor_c2e3fd231961e826, []int{2, 0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | // Operational Status |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 87 | type OperStatus_Types int32 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 88 | |
| 89 | const ( |
| 90 | // The status of the device is unknown at this point |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 91 | OperStatus_UNKNOWN OperStatus_Types = 0 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 92 | // The device has been discovered, but not yet activated |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 93 | OperStatus_DISCOVERED OperStatus_Types = 1 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 94 | // The device is being activated (booted, rebooted, upgraded, etc.) |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 95 | OperStatus_ACTIVATING OperStatus_Types = 2 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 96 | // Service impacting tests are being conducted |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 97 | OperStatus_TESTING OperStatus_Types = 3 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 98 | // The device is up and active |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 99 | OperStatus_ACTIVE OperStatus_Types = 4 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 100 | // The device has failed and cannot fulfill its intended role |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 101 | OperStatus_FAILED OperStatus_Types = 5 |
Maninder | 4ed97f5 | 2021-03-15 10:14:55 +0530 | [diff] [blame] | 102 | // The device is reconciling |
| 103 | OperStatus_RECONCILING OperStatus_Types = 6 |
Maninder | a4b9e55 | 2021-06-16 17:33:04 +0530 | [diff] [blame] | 104 | // The device is in reconciling failed |
| 105 | OperStatus_RECONCILING_FAILED OperStatus_Types = 7 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 106 | ) |
| 107 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 108 | var OperStatus_Types_name = map[int32]string{ |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 109 | 0: "UNKNOWN", |
| 110 | 1: "DISCOVERED", |
| 111 | 2: "ACTIVATING", |
| 112 | 3: "TESTING", |
| 113 | 4: "ACTIVE", |
| 114 | 5: "FAILED", |
Maninder | 4ed97f5 | 2021-03-15 10:14:55 +0530 | [diff] [blame] | 115 | 6: "RECONCILING", |
Maninder | a4b9e55 | 2021-06-16 17:33:04 +0530 | [diff] [blame] | 116 | 7: "RECONCILING_FAILED", |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 117 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 118 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 119 | var OperStatus_Types_value = map[string]int32{ |
Maninder | a4b9e55 | 2021-06-16 17:33:04 +0530 | [diff] [blame] | 120 | "UNKNOWN": 0, |
| 121 | "DISCOVERED": 1, |
| 122 | "ACTIVATING": 2, |
| 123 | "TESTING": 3, |
| 124 | "ACTIVE": 4, |
| 125 | "FAILED": 5, |
| 126 | "RECONCILING": 6, |
| 127 | "RECONCILING_FAILED": 7, |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 128 | } |
| 129 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 130 | func (x OperStatus_Types) String() string { |
| 131 | return proto.EnumName(OperStatus_Types_name, int32(x)) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 132 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 133 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 134 | func (OperStatus_Types) EnumDescriptor() ([]byte, []int) { |
divyadesai | d11cf31 | 2020-02-26 12:23:31 +0000 | [diff] [blame] | 135 | return fileDescriptor_c2e3fd231961e826, []int{3, 0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 136 | } |
| 137 | |
| 138 | // Connectivity Status |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 139 | type ConnectStatus_Types int32 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 140 | |
| 141 | const ( |
| 142 | // The device connectivity status is unknown |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 143 | ConnectStatus_UNKNOWN ConnectStatus_Types = 0 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 144 | // The device cannot be reached by Voltha |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 145 | ConnectStatus_UNREACHABLE ConnectStatus_Types = 1 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 146 | // There is live communication between device and Voltha |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 147 | ConnectStatus_REACHABLE ConnectStatus_Types = 2 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 148 | ) |
| 149 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 150 | var ConnectStatus_Types_name = map[int32]string{ |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 151 | 0: "UNKNOWN", |
| 152 | 1: "UNREACHABLE", |
| 153 | 2: "REACHABLE", |
| 154 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 155 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 156 | var ConnectStatus_Types_value = map[string]int32{ |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 157 | "UNKNOWN": 0, |
| 158 | "UNREACHABLE": 1, |
| 159 | "REACHABLE": 2, |
| 160 | } |
| 161 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 162 | func (x ConnectStatus_Types) String() string { |
| 163 | return proto.EnumName(ConnectStatus_Types_name, int32(x)) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 164 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 165 | |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 166 | func (ConnectStatus_Types) EnumDescriptor() ([]byte, []int) { |
divyadesai | d11cf31 | 2020-02-26 12:23:31 +0000 | [diff] [blame] | 167 | return fileDescriptor_c2e3fd231961e826, []int{4, 0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 168 | } |
| 169 | |
| 170 | type OperationResp_OperationReturnCode int32 |
| 171 | |
| 172 | const ( |
| 173 | OperationResp_OPERATION_SUCCESS OperationResp_OperationReturnCode = 0 |
| 174 | OperationResp_OPERATION_FAILURE OperationResp_OperationReturnCode = 1 |
| 175 | OperationResp_OPERATION_UNSUPPORTED OperationResp_OperationReturnCode = 2 |
Maninder | 2f9d63e | 2021-02-08 11:42:19 +0530 | [diff] [blame] | 176 | OperationResp_OPERATION_IN_PROGRESS OperationResp_OperationReturnCode = 3 |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 177 | ) |
| 178 | |
| 179 | var OperationResp_OperationReturnCode_name = map[int32]string{ |
| 180 | 0: "OPERATION_SUCCESS", |
| 181 | 1: "OPERATION_FAILURE", |
| 182 | 2: "OPERATION_UNSUPPORTED", |
Maninder | 2f9d63e | 2021-02-08 11:42:19 +0530 | [diff] [blame] | 183 | 3: "OPERATION_IN_PROGRESS", |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 184 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 185 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 186 | var OperationResp_OperationReturnCode_value = map[string]int32{ |
| 187 | "OPERATION_SUCCESS": 0, |
| 188 | "OPERATION_FAILURE": 1, |
| 189 | "OPERATION_UNSUPPORTED": 2, |
Maninder | 2f9d63e | 2021-02-08 11:42:19 +0530 | [diff] [blame] | 190 | "OPERATION_IN_PROGRESS": 3, |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 191 | } |
| 192 | |
| 193 | func (x OperationResp_OperationReturnCode) String() string { |
| 194 | return proto.EnumName(OperationResp_OperationReturnCode_name, int32(x)) |
| 195 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 196 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 197 | func (OperationResp_OperationReturnCode) EnumDescriptor() ([]byte, []int) { |
divyadesai | d11cf31 | 2020-02-26 12:23:31 +0000 | [diff] [blame] | 198 | return fileDescriptor_c2e3fd231961e826, []int{5, 0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 199 | } |
| 200 | |
| 201 | // Convey a resource identifier |
| 202 | type ID struct { |
| 203 | Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 204 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 205 | XXX_unrecognized []byte `json:"-"` |
| 206 | XXX_sizecache int32 `json:"-"` |
| 207 | } |
| 208 | |
| 209 | func (m *ID) Reset() { *m = ID{} } |
| 210 | func (m *ID) String() string { return proto.CompactTextString(m) } |
| 211 | func (*ID) ProtoMessage() {} |
| 212 | func (*ID) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 213 | return fileDescriptor_c2e3fd231961e826, []int{0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 214 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 215 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 216 | func (m *ID) XXX_Unmarshal(b []byte) error { |
| 217 | return xxx_messageInfo_ID.Unmarshal(m, b) |
| 218 | } |
| 219 | func (m *ID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 220 | return xxx_messageInfo_ID.Marshal(b, m, deterministic) |
| 221 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 222 | func (m *ID) XXX_Merge(src proto.Message) { |
| 223 | xxx_messageInfo_ID.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 224 | } |
| 225 | func (m *ID) XXX_Size() int { |
| 226 | return xxx_messageInfo_ID.Size(m) |
| 227 | } |
| 228 | func (m *ID) XXX_DiscardUnknown() { |
| 229 | xxx_messageInfo_ID.DiscardUnknown(m) |
| 230 | } |
| 231 | |
| 232 | var xxx_messageInfo_ID proto.InternalMessageInfo |
| 233 | |
| 234 | func (m *ID) GetId() string { |
| 235 | if m != nil { |
| 236 | return m.Id |
| 237 | } |
| 238 | return "" |
| 239 | } |
| 240 | |
| 241 | // Represents a list of IDs |
| 242 | type IDs struct { |
| 243 | Items []*ID `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| 244 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 245 | XXX_unrecognized []byte `json:"-"` |
| 246 | XXX_sizecache int32 `json:"-"` |
| 247 | } |
| 248 | |
| 249 | func (m *IDs) Reset() { *m = IDs{} } |
| 250 | func (m *IDs) String() string { return proto.CompactTextString(m) } |
| 251 | func (*IDs) ProtoMessage() {} |
| 252 | func (*IDs) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 253 | return fileDescriptor_c2e3fd231961e826, []int{1} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 254 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 255 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 256 | func (m *IDs) XXX_Unmarshal(b []byte) error { |
| 257 | return xxx_messageInfo_IDs.Unmarshal(m, b) |
| 258 | } |
| 259 | func (m *IDs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 260 | return xxx_messageInfo_IDs.Marshal(b, m, deterministic) |
| 261 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 262 | func (m *IDs) XXX_Merge(src proto.Message) { |
| 263 | xxx_messageInfo_IDs.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 264 | } |
| 265 | func (m *IDs) XXX_Size() int { |
| 266 | return xxx_messageInfo_IDs.Size(m) |
| 267 | } |
| 268 | func (m *IDs) XXX_DiscardUnknown() { |
| 269 | xxx_messageInfo_IDs.DiscardUnknown(m) |
| 270 | } |
| 271 | |
| 272 | var xxx_messageInfo_IDs proto.InternalMessageInfo |
| 273 | |
| 274 | func (m *IDs) GetItems() []*ID { |
| 275 | if m != nil { |
| 276 | return m.Items |
| 277 | } |
| 278 | return nil |
| 279 | } |
| 280 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 281 | type AdminState struct { |
| 282 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 283 | XXX_unrecognized []byte `json:"-"` |
| 284 | XXX_sizecache int32 `json:"-"` |
| 285 | } |
| 286 | |
| 287 | func (m *AdminState) Reset() { *m = AdminState{} } |
| 288 | func (m *AdminState) String() string { return proto.CompactTextString(m) } |
| 289 | func (*AdminState) ProtoMessage() {} |
| 290 | func (*AdminState) Descriptor() ([]byte, []int) { |
divyadesai | d11cf31 | 2020-02-26 12:23:31 +0000 | [diff] [blame] | 291 | return fileDescriptor_c2e3fd231961e826, []int{2} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 292 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 293 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 294 | func (m *AdminState) XXX_Unmarshal(b []byte) error { |
| 295 | return xxx_messageInfo_AdminState.Unmarshal(m, b) |
| 296 | } |
| 297 | func (m *AdminState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 298 | return xxx_messageInfo_AdminState.Marshal(b, m, deterministic) |
| 299 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 300 | func (m *AdminState) XXX_Merge(src proto.Message) { |
| 301 | xxx_messageInfo_AdminState.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 302 | } |
| 303 | func (m *AdminState) XXX_Size() int { |
| 304 | return xxx_messageInfo_AdminState.Size(m) |
| 305 | } |
| 306 | func (m *AdminState) XXX_DiscardUnknown() { |
| 307 | xxx_messageInfo_AdminState.DiscardUnknown(m) |
| 308 | } |
| 309 | |
| 310 | var xxx_messageInfo_AdminState proto.InternalMessageInfo |
| 311 | |
| 312 | type OperStatus struct { |
| 313 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 314 | XXX_unrecognized []byte `json:"-"` |
| 315 | XXX_sizecache int32 `json:"-"` |
| 316 | } |
| 317 | |
| 318 | func (m *OperStatus) Reset() { *m = OperStatus{} } |
| 319 | func (m *OperStatus) String() string { return proto.CompactTextString(m) } |
| 320 | func (*OperStatus) ProtoMessage() {} |
| 321 | func (*OperStatus) Descriptor() ([]byte, []int) { |
divyadesai | d11cf31 | 2020-02-26 12:23:31 +0000 | [diff] [blame] | 322 | return fileDescriptor_c2e3fd231961e826, []int{3} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 323 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 324 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 325 | func (m *OperStatus) XXX_Unmarshal(b []byte) error { |
| 326 | return xxx_messageInfo_OperStatus.Unmarshal(m, b) |
| 327 | } |
| 328 | func (m *OperStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 329 | return xxx_messageInfo_OperStatus.Marshal(b, m, deterministic) |
| 330 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 331 | func (m *OperStatus) XXX_Merge(src proto.Message) { |
| 332 | xxx_messageInfo_OperStatus.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 333 | } |
| 334 | func (m *OperStatus) XXX_Size() int { |
| 335 | return xxx_messageInfo_OperStatus.Size(m) |
| 336 | } |
| 337 | func (m *OperStatus) XXX_DiscardUnknown() { |
| 338 | xxx_messageInfo_OperStatus.DiscardUnknown(m) |
| 339 | } |
| 340 | |
| 341 | var xxx_messageInfo_OperStatus proto.InternalMessageInfo |
| 342 | |
| 343 | type ConnectStatus struct { |
| 344 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 345 | XXX_unrecognized []byte `json:"-"` |
| 346 | XXX_sizecache int32 `json:"-"` |
| 347 | } |
| 348 | |
| 349 | func (m *ConnectStatus) Reset() { *m = ConnectStatus{} } |
| 350 | func (m *ConnectStatus) String() string { return proto.CompactTextString(m) } |
| 351 | func (*ConnectStatus) ProtoMessage() {} |
| 352 | func (*ConnectStatus) Descriptor() ([]byte, []int) { |
divyadesai | d11cf31 | 2020-02-26 12:23:31 +0000 | [diff] [blame] | 353 | return fileDescriptor_c2e3fd231961e826, []int{4} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 354 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 355 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 356 | func (m *ConnectStatus) XXX_Unmarshal(b []byte) error { |
| 357 | return xxx_messageInfo_ConnectStatus.Unmarshal(m, b) |
| 358 | } |
| 359 | func (m *ConnectStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 360 | return xxx_messageInfo_ConnectStatus.Marshal(b, m, deterministic) |
| 361 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 362 | func (m *ConnectStatus) XXX_Merge(src proto.Message) { |
| 363 | xxx_messageInfo_ConnectStatus.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 364 | } |
| 365 | func (m *ConnectStatus) XXX_Size() int { |
| 366 | return xxx_messageInfo_ConnectStatus.Size(m) |
| 367 | } |
| 368 | func (m *ConnectStatus) XXX_DiscardUnknown() { |
| 369 | xxx_messageInfo_ConnectStatus.DiscardUnknown(m) |
| 370 | } |
| 371 | |
| 372 | var xxx_messageInfo_ConnectStatus proto.InternalMessageInfo |
| 373 | |
| 374 | type OperationResp struct { |
| 375 | // Return code |
William Kurkian | 12fc0af | 2019-04-18 14:27:45 -0400 | [diff] [blame] | 376 | Code OperationResp_OperationReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=common.OperationResp_OperationReturnCode" json:"code,omitempty"` |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 377 | // Additional Info |
| 378 | AdditionalInfo string `protobuf:"bytes,2,opt,name=additional_info,json=additionalInfo,proto3" json:"additional_info,omitempty"` |
| 379 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 380 | XXX_unrecognized []byte `json:"-"` |
| 381 | XXX_sizecache int32 `json:"-"` |
| 382 | } |
| 383 | |
| 384 | func (m *OperationResp) Reset() { *m = OperationResp{} } |
| 385 | func (m *OperationResp) String() string { return proto.CompactTextString(m) } |
| 386 | func (*OperationResp) ProtoMessage() {} |
| 387 | func (*OperationResp) Descriptor() ([]byte, []int) { |
divyadesai | d11cf31 | 2020-02-26 12:23:31 +0000 | [diff] [blame] | 388 | return fileDescriptor_c2e3fd231961e826, []int{5} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 389 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 390 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 391 | func (m *OperationResp) XXX_Unmarshal(b []byte) error { |
| 392 | return xxx_messageInfo_OperationResp.Unmarshal(m, b) |
| 393 | } |
| 394 | func (m *OperationResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 395 | return xxx_messageInfo_OperationResp.Marshal(b, m, deterministic) |
| 396 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 397 | func (m *OperationResp) XXX_Merge(src proto.Message) { |
| 398 | xxx_messageInfo_OperationResp.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 399 | } |
| 400 | func (m *OperationResp) XXX_Size() int { |
| 401 | return xxx_messageInfo_OperationResp.Size(m) |
| 402 | } |
| 403 | func (m *OperationResp) XXX_DiscardUnknown() { |
| 404 | xxx_messageInfo_OperationResp.DiscardUnknown(m) |
| 405 | } |
| 406 | |
| 407 | var xxx_messageInfo_OperationResp proto.InternalMessageInfo |
| 408 | |
| 409 | func (m *OperationResp) GetCode() OperationResp_OperationReturnCode { |
| 410 | if m != nil { |
| 411 | return m.Code |
| 412 | } |
| 413 | return OperationResp_OPERATION_SUCCESS |
| 414 | } |
| 415 | |
| 416 | func (m *OperationResp) GetAdditionalInfo() string { |
| 417 | if m != nil { |
| 418 | return m.AdditionalInfo |
| 419 | } |
| 420 | return "" |
| 421 | } |
| 422 | |
| 423 | func init() { |
William Kurkian | 12fc0af | 2019-04-18 14:27:45 -0400 | [diff] [blame] | 424 | proto.RegisterEnum("common.TestModeKeys", TestModeKeys_name, TestModeKeys_value) |
Serkant Uluderya | cbcfaa4 | 2019-10-18 13:25:08 +0300 | [diff] [blame] | 425 | proto.RegisterEnum("common.AdminState_Types", AdminState_Types_name, AdminState_Types_value) |
| 426 | proto.RegisterEnum("common.OperStatus_Types", OperStatus_Types_name, OperStatus_Types_value) |
| 427 | proto.RegisterEnum("common.ConnectStatus_Types", ConnectStatus_Types_name, ConnectStatus_Types_value) |
William Kurkian | 12fc0af | 2019-04-18 14:27:45 -0400 | [diff] [blame] | 428 | proto.RegisterEnum("common.OperationResp_OperationReturnCode", OperationResp_OperationReturnCode_name, OperationResp_OperationReturnCode_value) |
| 429 | proto.RegisterType((*ID)(nil), "common.ID") |
| 430 | proto.RegisterType((*IDs)(nil), "common.IDs") |
William Kurkian | 12fc0af | 2019-04-18 14:27:45 -0400 | [diff] [blame] | 431 | proto.RegisterType((*AdminState)(nil), "common.AdminState") |
| 432 | proto.RegisterType((*OperStatus)(nil), "common.OperStatus") |
| 433 | proto.RegisterType((*ConnectStatus)(nil), "common.ConnectStatus") |
| 434 | proto.RegisterType((*OperationResp)(nil), "common.OperationResp") |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 435 | } |
| 436 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 437 | func init() { proto.RegisterFile("voltha_protos/common.proto", fileDescriptor_c2e3fd231961e826) } |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 438 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 439 | var fileDescriptor_c2e3fd231961e826 = []byte{ |
khenaidoo | 4c6543e | 2021-10-19 17:25:58 -0400 | [diff] [blame] | 440 | // 506 bytes of a gzipped FileDescriptorProto |
| 441 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x52, 0xcd, 0x6e, 0xda, 0x30, |
| 442 | 0x1c, 0x6f, 0x42, 0x4b, 0xd7, 0x3f, 0x25, 0x64, 0xee, 0x3a, 0xb1, 0x69, 0x07, 0x94, 0x4b, 0xbb, |
| 443 | 0x49, 0x03, 0xa9, 0xdb, 0x8e, 0x3b, 0xa4, 0x89, 0xc7, 0xac, 0x52, 0x3b, 0x72, 0x12, 0x2a, 0xf5, |
| 444 | 0x12, 0xa5, 0xc4, 0x85, 0x48, 0x25, 0x8e, 0x88, 0xa9, 0xc4, 0x75, 0x6f, 0xb0, 0x57, 0xdd, 0x13, |
| 445 | 0x4c, 0x0e, 0x54, 0x14, 0x89, 0x9b, 0x7f, 0x1f, 0xfe, 0x7f, 0xc3, 0xc7, 0x67, 0xf9, 0xa4, 0x66, |
| 446 | 0x69, 0x52, 0x2e, 0xa4, 0x92, 0xd5, 0x60, 0x22, 0xe7, 0x73, 0x59, 0xf4, 0x6b, 0x84, 0x9a, 0x6b, |
| 447 | 0xe4, 0xbc, 0x03, 0x93, 0xf8, 0xc8, 0x02, 0x33, 0xcf, 0xba, 0x46, 0xcf, 0xb8, 0x3c, 0xe1, 0x66, |
| 448 | 0x9e, 0x39, 0x17, 0xd0, 0x20, 0x7e, 0x85, 0x7a, 0x70, 0x94, 0x2b, 0x31, 0xaf, 0xba, 0x46, 0xaf, |
| 449 | 0x71, 0xd9, 0xba, 0x82, 0xfe, 0x26, 0x04, 0xf1, 0xf9, 0x5a, 0x70, 0x66, 0x00, 0x6e, 0x36, 0xcf, |
| 450 | 0x8b, 0x50, 0xa5, 0x4a, 0x38, 0xf7, 0x70, 0x14, 0xad, 0x4a, 0x51, 0xa1, 0x16, 0x1c, 0xc7, 0xf4, |
| 451 | 0x86, 0xb2, 0x3b, 0x6a, 0x1f, 0x20, 0x04, 0x56, 0xc0, 0x71, 0xc0, 0xd9, 0x98, 0x84, 0x84, 0x51, |
| 452 | 0xec, 0xdb, 0x86, 0x36, 0x60, 0xea, 0x5e, 0x8f, 0xb0, 0x6f, 0x9b, 0xe8, 0x14, 0xde, 0xf8, 0x24, |
| 453 | 0x5c, 0xa3, 0x06, 0x3a, 0x87, 0xb7, 0x3e, 0xbb, 0xa3, 0x23, 0xe6, 0xfa, 0x84, 0x0e, 0x13, 0x72, |
| 454 | 0xeb, 0x0e, 0xb1, 0x7d, 0xe8, 0xfc, 0x35, 0x00, 0x58, 0x29, 0x16, 0x3a, 0xd3, 0xb2, 0x72, 0xfe, |
| 455 | 0x18, 0x7b, 0x73, 0x59, 0x00, 0x3e, 0x09, 0x3d, 0x36, 0xc6, 0xbc, 0xce, 0x63, 0x01, 0xb8, 0x5e, |
| 456 | 0x44, 0xc6, 0x6e, 0x44, 0xe8, 0xd0, 0x36, 0xb5, 0x39, 0xc2, 0x61, 0x0d, 0x1a, 0x08, 0xa0, 0x59, |
| 457 | 0x8b, 0xd8, 0x3e, 0xd4, 0xef, 0x5f, 0x2e, 0xd1, 0x15, 0x1c, 0xa1, 0x0e, 0xb4, 0x38, 0xf6, 0x18, |
| 458 | 0xf5, 0xc8, 0x48, 0x1b, 0x9b, 0xe8, 0x3d, 0xa0, 0x57, 0x44, 0xb2, 0x31, 0x1e, 0x3b, 0x18, 0xda, |
| 459 | 0x9e, 0x2c, 0x0a, 0x31, 0x51, 0x9b, 0xaa, 0xbe, 0xef, 0x2d, 0xaa, 0x03, 0xad, 0x98, 0x72, 0xec, |
| 460 | 0x7a, 0xbf, 0x75, 0x8f, 0xb6, 0x81, 0xda, 0x70, 0xb2, 0x85, 0xa6, 0xf3, 0xcf, 0x80, 0xb6, 0x6e, |
| 461 | 0x2d, 0x55, 0xb9, 0x2c, 0xb8, 0xa8, 0x4a, 0xf4, 0x13, 0x0e, 0x27, 0x32, 0x13, 0xf5, 0x46, 0xac, |
| 462 | 0xab, 0xcf, 0x2f, 0x73, 0xdf, 0x31, 0xbd, 0x46, 0x6a, 0xb9, 0x28, 0x3c, 0x99, 0x09, 0x5e, 0x7f, |
| 463 | 0x43, 0x17, 0xd0, 0x49, 0xb3, 0x2c, 0xd7, 0x5a, 0xfa, 0x94, 0xe4, 0xc5, 0xa3, 0xec, 0x9a, 0xf5, |
| 464 | 0x6e, 0xad, 0x2d, 0x4d, 0x8a, 0x47, 0xe9, 0xac, 0xe0, 0x6c, 0x4f, 0x14, 0xbd, 0x02, 0x16, 0x60, |
| 465 | 0xee, 0x46, 0x84, 0xd1, 0x24, 0x8c, 0x3d, 0x0f, 0x87, 0xa1, 0x7d, 0xb0, 0x4b, 0xeb, 0x21, 0xc4, |
| 466 | 0x5c, 0x77, 0xf3, 0x01, 0xce, 0xb7, 0x74, 0x4c, 0xc3, 0x38, 0x08, 0x18, 0x8f, 0xea, 0xcd, 0xee, |
| 467 | 0x48, 0x84, 0x26, 0x01, 0x67, 0x43, 0xae, 0x83, 0x35, 0xbe, 0x7c, 0x82, 0xd3, 0x48, 0x54, 0xea, |
| 468 | 0x56, 0x66, 0xe2, 0x46, 0xac, 0x2a, 0x7d, 0x04, 0x69, 0x99, 0x27, 0x4a, 0x54, 0xca, 0x3e, 0xb8, |
| 469 | 0xc6, 0x70, 0x26, 0x17, 0xd3, 0xbe, 0x2c, 0x45, 0x31, 0x91, 0x8b, 0xac, 0xbf, 0xbe, 0xe4, 0xfb, |
| 470 | 0xfe, 0x34, 0x57, 0xb3, 0xe5, 0x83, 0x9e, 0xc7, 0xe0, 0x45, 0x1b, 0xac, 0xb5, 0xaf, 0x9b, 0x2b, |
| 471 | 0x7f, 0xfe, 0x31, 0x98, 0xca, 0xcd, 0xad, 0x3f, 0x34, 0x6b, 0xf2, 0xdb, 0xff, 0x00, 0x00, 0x00, |
| 472 | 0xff, 0xff, 0x6b, 0x71, 0x98, 0xbd, 0x0a, 0x03, 0x00, 0x00, |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 473 | } |