Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/common.proto |
| 3 | |
| 4 | package common |
| 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 | 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 | } |
| 32 | |
| 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 | } |
| 40 | |
| 41 | func (TestModeKeys) EnumDescriptor() ([]byte, []int) { |
| 42 | return fileDescriptor_c2e3fd231961e826, []int{0} |
| 43 | } |
| 44 | |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 45 | // Administrative State |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 46 | type AdminState_Types int32 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 47 | |
| 48 | const ( |
| 49 | // The administrative state of the device is unknown |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 50 | AdminState_UNKNOWN AdminState_Types = 0 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 51 | // The device is pre-provisioned into Voltha, but not contacted by it |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 52 | AdminState_PREPROVISIONED AdminState_Types = 1 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 53 | // The device is enabled for activation and operation |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 54 | AdminState_ENABLED AdminState_Types = 2 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 55 | // The device is disabled and shall not perform its intended forwarding |
| 56 | // functions other than being available for re-activation. |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 57 | AdminState_DISABLED AdminState_Types = 3 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 58 | // The device is in the state of image download |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 59 | AdminState_DOWNLOADING_IMAGE AdminState_Types = 4 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 60 | ) |
| 61 | |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 62 | var AdminState_Types_name = map[int32]string{ |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 63 | 0: "UNKNOWN", |
| 64 | 1: "PREPROVISIONED", |
| 65 | 2: "ENABLED", |
| 66 | 3: "DISABLED", |
| 67 | 4: "DOWNLOADING_IMAGE", |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 68 | } |
| 69 | |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 70 | var AdminState_Types_value = map[string]int32{ |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 71 | "UNKNOWN": 0, |
| 72 | "PREPROVISIONED": 1, |
| 73 | "ENABLED": 2, |
| 74 | "DISABLED": 3, |
| 75 | "DOWNLOADING_IMAGE": 4, |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 76 | } |
| 77 | |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 78 | func (x AdminState_Types) String() string { |
| 79 | return proto.EnumName(AdminState_Types_name, int32(x)) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 80 | } |
| 81 | |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 82 | func (AdminState_Types) EnumDescriptor() ([]byte, []int) { |
khenaidoo | ae87a40 | 2021-12-09 09:05:26 -0500 | [diff] [blame^] | 83 | return fileDescriptor_c2e3fd231961e826, []int{3, 0} |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 84 | } |
| 85 | |
| 86 | // Operational Status |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 87 | type OperStatus_Types int32 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 88 | |
| 89 | const ( |
| 90 | // The status of the device is unknown at this point |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 91 | OperStatus_UNKNOWN OperStatus_Types = 0 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 92 | // The device has been discovered, but not yet activated |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 93 | OperStatus_DISCOVERED OperStatus_Types = 1 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 94 | // The device is being activated (booted, rebooted, upgraded, etc.) |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 95 | OperStatus_ACTIVATING OperStatus_Types = 2 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 96 | // Service impacting tests are being conducted |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 97 | OperStatus_TESTING OperStatus_Types = 3 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 98 | // The device is up and active |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 99 | OperStatus_ACTIVE OperStatus_Types = 4 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 100 | // The device has failed and cannot fulfill its intended role |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 101 | OperStatus_FAILED OperStatus_Types = 5 |
David K. Bainbridge | 595b670 | 2021-04-09 16:10:58 +0000 | [diff] [blame] | 102 | // The device is reconciling |
| 103 | OperStatus_RECONCILING OperStatus_Types = 6 |
Andrea Campanella | 18448bc | 2021-07-08 18:47:22 +0200 | [diff] [blame] | 104 | // The device is in reconciling failed |
| 105 | OperStatus_RECONCILING_FAILED OperStatus_Types = 7 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 106 | ) |
| 107 | |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 108 | var OperStatus_Types_name = map[int32]string{ |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 109 | 0: "UNKNOWN", |
| 110 | 1: "DISCOVERED", |
| 111 | 2: "ACTIVATING", |
| 112 | 3: "TESTING", |
| 113 | 4: "ACTIVE", |
| 114 | 5: "FAILED", |
David K. Bainbridge | 595b670 | 2021-04-09 16:10:58 +0000 | [diff] [blame] | 115 | 6: "RECONCILING", |
Andrea Campanella | 18448bc | 2021-07-08 18:47:22 +0200 | [diff] [blame] | 116 | 7: "RECONCILING_FAILED", |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 117 | } |
| 118 | |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 119 | var OperStatus_Types_value = map[string]int32{ |
Andrea Campanella | 18448bc | 2021-07-08 18:47:22 +0200 | [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, |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 128 | } |
| 129 | |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 130 | func (x OperStatus_Types) String() string { |
| 131 | return proto.EnumName(OperStatus_Types_name, int32(x)) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 132 | } |
| 133 | |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 134 | func (OperStatus_Types) EnumDescriptor() ([]byte, []int) { |
khenaidoo | ae87a40 | 2021-12-09 09:05:26 -0500 | [diff] [blame^] | 135 | return fileDescriptor_c2e3fd231961e826, []int{4, 0} |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 136 | } |
| 137 | |
| 138 | // Connectivity Status |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 139 | type ConnectStatus_Types int32 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 140 | |
| 141 | const ( |
| 142 | // The device connectivity status is unknown |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 143 | ConnectStatus_UNKNOWN ConnectStatus_Types = 0 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 144 | // The device cannot be reached by Voltha |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 145 | ConnectStatus_UNREACHABLE ConnectStatus_Types = 1 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 146 | // There is live communication between device and Voltha |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 147 | ConnectStatus_REACHABLE ConnectStatus_Types = 2 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 148 | ) |
| 149 | |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 150 | var ConnectStatus_Types_name = map[int32]string{ |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 151 | 0: "UNKNOWN", |
| 152 | 1: "UNREACHABLE", |
| 153 | 2: "REACHABLE", |
| 154 | } |
| 155 | |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 156 | var ConnectStatus_Types_value = map[string]int32{ |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 157 | "UNKNOWN": 0, |
| 158 | "UNREACHABLE": 1, |
| 159 | "REACHABLE": 2, |
| 160 | } |
| 161 | |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 162 | func (x ConnectStatus_Types) String() string { |
| 163 | return proto.EnumName(ConnectStatus_Types_name, int32(x)) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 164 | } |
| 165 | |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 166 | func (ConnectStatus_Types) EnumDescriptor() ([]byte, []int) { |
khenaidoo | ae87a40 | 2021-12-09 09:05:26 -0500 | [diff] [blame^] | 167 | return fileDescriptor_c2e3fd231961e826, []int{5, 0} |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -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 |
David K. Bainbridge | 595b670 | 2021-04-09 16:10:58 +0000 | [diff] [blame] | 176 | OperationResp_OPERATION_IN_PROGRESS OperationResp_OperationReturnCode = 3 |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -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", |
David K. Bainbridge | 595b670 | 2021-04-09 16:10:58 +0000 | [diff] [blame] | 183 | 3: "OPERATION_IN_PROGRESS", |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 184 | } |
| 185 | |
| 186 | var OperationResp_OperationReturnCode_value = map[string]int32{ |
| 187 | "OPERATION_SUCCESS": 0, |
| 188 | "OPERATION_FAILURE": 1, |
| 189 | "OPERATION_UNSUPPORTED": 2, |
David K. Bainbridge | 595b670 | 2021-04-09 16:10:58 +0000 | [diff] [blame] | 190 | "OPERATION_IN_PROGRESS": 3, |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 191 | } |
| 192 | |
| 193 | func (x OperationResp_OperationReturnCode) String() string { |
| 194 | return proto.EnumName(OperationResp_OperationReturnCode_name, int32(x)) |
| 195 | } |
| 196 | |
| 197 | func (OperationResp_OperationReturnCode) EnumDescriptor() ([]byte, []int) { |
khenaidoo | ae87a40 | 2021-12-09 09:05:26 -0500 | [diff] [blame^] | 198 | return fileDescriptor_c2e3fd231961e826, []int{6, 0} |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -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) { |
| 213 | return fileDescriptor_c2e3fd231961e826, []int{0} |
| 214 | } |
| 215 | |
| 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 | } |
| 222 | func (m *ID) XXX_Merge(src proto.Message) { |
| 223 | xxx_messageInfo_ID.Merge(m, src) |
| 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) { |
| 253 | return fileDescriptor_c2e3fd231961e826, []int{1} |
| 254 | } |
| 255 | |
| 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 | } |
| 262 | func (m *IDs) XXX_Merge(src proto.Message) { |
| 263 | xxx_messageInfo_IDs.Merge(m, src) |
| 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 | |
khenaidoo | ae87a40 | 2021-12-09 09:05:26 -0500 | [diff] [blame^] | 281 | type Connection struct { |
| 282 | // endpoint is the endpoint sending the request |
| 283 | Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` |
| 284 | // contextInfo represents additional contextual information |
| 285 | ContextInfo string `protobuf:"bytes,2,opt,name=contextInfo,proto3" json:"contextInfo,omitempty"` |
| 286 | // keep_alive_interval is used to indicate to the remote endpoint how often it |
| 287 | // will get a keep alive notification |
| 288 | KeepAliveInterval int64 `protobuf:"varint,3,opt,name=keep_alive_interval,json=keepAliveInterval,proto3" json:"keep_alive_interval,omitempty"` |
| 289 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 290 | XXX_unrecognized []byte `json:"-"` |
| 291 | XXX_sizecache int32 `json:"-"` |
| 292 | } |
| 293 | |
| 294 | func (m *Connection) Reset() { *m = Connection{} } |
| 295 | func (m *Connection) String() string { return proto.CompactTextString(m) } |
| 296 | func (*Connection) ProtoMessage() {} |
| 297 | func (*Connection) Descriptor() ([]byte, []int) { |
| 298 | return fileDescriptor_c2e3fd231961e826, []int{2} |
| 299 | } |
| 300 | |
| 301 | func (m *Connection) XXX_Unmarshal(b []byte) error { |
| 302 | return xxx_messageInfo_Connection.Unmarshal(m, b) |
| 303 | } |
| 304 | func (m *Connection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 305 | return xxx_messageInfo_Connection.Marshal(b, m, deterministic) |
| 306 | } |
| 307 | func (m *Connection) XXX_Merge(src proto.Message) { |
| 308 | xxx_messageInfo_Connection.Merge(m, src) |
| 309 | } |
| 310 | func (m *Connection) XXX_Size() int { |
| 311 | return xxx_messageInfo_Connection.Size(m) |
| 312 | } |
| 313 | func (m *Connection) XXX_DiscardUnknown() { |
| 314 | xxx_messageInfo_Connection.DiscardUnknown(m) |
| 315 | } |
| 316 | |
| 317 | var xxx_messageInfo_Connection proto.InternalMessageInfo |
| 318 | |
| 319 | func (m *Connection) GetEndpoint() string { |
| 320 | if m != nil { |
| 321 | return m.Endpoint |
| 322 | } |
| 323 | return "" |
| 324 | } |
| 325 | |
| 326 | func (m *Connection) GetContextInfo() string { |
| 327 | if m != nil { |
| 328 | return m.ContextInfo |
| 329 | } |
| 330 | return "" |
| 331 | } |
| 332 | |
| 333 | func (m *Connection) GetKeepAliveInterval() int64 { |
| 334 | if m != nil { |
| 335 | return m.KeepAliveInterval |
| 336 | } |
| 337 | return 0 |
| 338 | } |
| 339 | |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 340 | type AdminState struct { |
| 341 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 342 | XXX_unrecognized []byte `json:"-"` |
| 343 | XXX_sizecache int32 `json:"-"` |
| 344 | } |
| 345 | |
| 346 | func (m *AdminState) Reset() { *m = AdminState{} } |
| 347 | func (m *AdminState) String() string { return proto.CompactTextString(m) } |
| 348 | func (*AdminState) ProtoMessage() {} |
| 349 | func (*AdminState) Descriptor() ([]byte, []int) { |
khenaidoo | ae87a40 | 2021-12-09 09:05:26 -0500 | [diff] [blame^] | 350 | return fileDescriptor_c2e3fd231961e826, []int{3} |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 351 | } |
| 352 | |
| 353 | func (m *AdminState) XXX_Unmarshal(b []byte) error { |
| 354 | return xxx_messageInfo_AdminState.Unmarshal(m, b) |
| 355 | } |
| 356 | func (m *AdminState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 357 | return xxx_messageInfo_AdminState.Marshal(b, m, deterministic) |
| 358 | } |
| 359 | func (m *AdminState) XXX_Merge(src proto.Message) { |
| 360 | xxx_messageInfo_AdminState.Merge(m, src) |
| 361 | } |
| 362 | func (m *AdminState) XXX_Size() int { |
| 363 | return xxx_messageInfo_AdminState.Size(m) |
| 364 | } |
| 365 | func (m *AdminState) XXX_DiscardUnknown() { |
| 366 | xxx_messageInfo_AdminState.DiscardUnknown(m) |
| 367 | } |
| 368 | |
| 369 | var xxx_messageInfo_AdminState proto.InternalMessageInfo |
| 370 | |
| 371 | type OperStatus struct { |
| 372 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 373 | XXX_unrecognized []byte `json:"-"` |
| 374 | XXX_sizecache int32 `json:"-"` |
| 375 | } |
| 376 | |
| 377 | func (m *OperStatus) Reset() { *m = OperStatus{} } |
| 378 | func (m *OperStatus) String() string { return proto.CompactTextString(m) } |
| 379 | func (*OperStatus) ProtoMessage() {} |
| 380 | func (*OperStatus) Descriptor() ([]byte, []int) { |
khenaidoo | ae87a40 | 2021-12-09 09:05:26 -0500 | [diff] [blame^] | 381 | return fileDescriptor_c2e3fd231961e826, []int{4} |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 382 | } |
| 383 | |
| 384 | func (m *OperStatus) XXX_Unmarshal(b []byte) error { |
| 385 | return xxx_messageInfo_OperStatus.Unmarshal(m, b) |
| 386 | } |
| 387 | func (m *OperStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 388 | return xxx_messageInfo_OperStatus.Marshal(b, m, deterministic) |
| 389 | } |
| 390 | func (m *OperStatus) XXX_Merge(src proto.Message) { |
| 391 | xxx_messageInfo_OperStatus.Merge(m, src) |
| 392 | } |
| 393 | func (m *OperStatus) XXX_Size() int { |
| 394 | return xxx_messageInfo_OperStatus.Size(m) |
| 395 | } |
| 396 | func (m *OperStatus) XXX_DiscardUnknown() { |
| 397 | xxx_messageInfo_OperStatus.DiscardUnknown(m) |
| 398 | } |
| 399 | |
| 400 | var xxx_messageInfo_OperStatus proto.InternalMessageInfo |
| 401 | |
| 402 | type ConnectStatus struct { |
| 403 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 404 | XXX_unrecognized []byte `json:"-"` |
| 405 | XXX_sizecache int32 `json:"-"` |
| 406 | } |
| 407 | |
| 408 | func (m *ConnectStatus) Reset() { *m = ConnectStatus{} } |
| 409 | func (m *ConnectStatus) String() string { return proto.CompactTextString(m) } |
| 410 | func (*ConnectStatus) ProtoMessage() {} |
| 411 | func (*ConnectStatus) Descriptor() ([]byte, []int) { |
khenaidoo | ae87a40 | 2021-12-09 09:05:26 -0500 | [diff] [blame^] | 412 | return fileDescriptor_c2e3fd231961e826, []int{5} |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 413 | } |
| 414 | |
| 415 | func (m *ConnectStatus) XXX_Unmarshal(b []byte) error { |
| 416 | return xxx_messageInfo_ConnectStatus.Unmarshal(m, b) |
| 417 | } |
| 418 | func (m *ConnectStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 419 | return xxx_messageInfo_ConnectStatus.Marshal(b, m, deterministic) |
| 420 | } |
| 421 | func (m *ConnectStatus) XXX_Merge(src proto.Message) { |
| 422 | xxx_messageInfo_ConnectStatus.Merge(m, src) |
| 423 | } |
| 424 | func (m *ConnectStatus) XXX_Size() int { |
| 425 | return xxx_messageInfo_ConnectStatus.Size(m) |
| 426 | } |
| 427 | func (m *ConnectStatus) XXX_DiscardUnknown() { |
| 428 | xxx_messageInfo_ConnectStatus.DiscardUnknown(m) |
| 429 | } |
| 430 | |
| 431 | var xxx_messageInfo_ConnectStatus proto.InternalMessageInfo |
| 432 | |
| 433 | type OperationResp struct { |
| 434 | // Return code |
| 435 | Code OperationResp_OperationReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=common.OperationResp_OperationReturnCode" json:"code,omitempty"` |
| 436 | // Additional Info |
| 437 | AdditionalInfo string `protobuf:"bytes,2,opt,name=additional_info,json=additionalInfo,proto3" json:"additional_info,omitempty"` |
| 438 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 439 | XXX_unrecognized []byte `json:"-"` |
| 440 | XXX_sizecache int32 `json:"-"` |
| 441 | } |
| 442 | |
| 443 | func (m *OperationResp) Reset() { *m = OperationResp{} } |
| 444 | func (m *OperationResp) String() string { return proto.CompactTextString(m) } |
| 445 | func (*OperationResp) ProtoMessage() {} |
| 446 | func (*OperationResp) Descriptor() ([]byte, []int) { |
khenaidoo | ae87a40 | 2021-12-09 09:05:26 -0500 | [diff] [blame^] | 447 | return fileDescriptor_c2e3fd231961e826, []int{6} |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 448 | } |
| 449 | |
| 450 | func (m *OperationResp) XXX_Unmarshal(b []byte) error { |
| 451 | return xxx_messageInfo_OperationResp.Unmarshal(m, b) |
| 452 | } |
| 453 | func (m *OperationResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 454 | return xxx_messageInfo_OperationResp.Marshal(b, m, deterministic) |
| 455 | } |
| 456 | func (m *OperationResp) XXX_Merge(src proto.Message) { |
| 457 | xxx_messageInfo_OperationResp.Merge(m, src) |
| 458 | } |
| 459 | func (m *OperationResp) XXX_Size() int { |
| 460 | return xxx_messageInfo_OperationResp.Size(m) |
| 461 | } |
| 462 | func (m *OperationResp) XXX_DiscardUnknown() { |
| 463 | xxx_messageInfo_OperationResp.DiscardUnknown(m) |
| 464 | } |
| 465 | |
| 466 | var xxx_messageInfo_OperationResp proto.InternalMessageInfo |
| 467 | |
| 468 | func (m *OperationResp) GetCode() OperationResp_OperationReturnCode { |
| 469 | if m != nil { |
| 470 | return m.Code |
| 471 | } |
| 472 | return OperationResp_OPERATION_SUCCESS |
| 473 | } |
| 474 | |
| 475 | func (m *OperationResp) GetAdditionalInfo() string { |
| 476 | if m != nil { |
| 477 | return m.AdditionalInfo |
| 478 | } |
| 479 | return "" |
| 480 | } |
| 481 | |
| 482 | func init() { |
| 483 | proto.RegisterEnum("common.TestModeKeys", TestModeKeys_name, TestModeKeys_value) |
David K. Bainbridge | aea73cd | 2020-01-27 10:44:50 -0800 | [diff] [blame] | 484 | proto.RegisterEnum("common.AdminState_Types", AdminState_Types_name, AdminState_Types_value) |
| 485 | proto.RegisterEnum("common.OperStatus_Types", OperStatus_Types_name, OperStatus_Types_value) |
| 486 | proto.RegisterEnum("common.ConnectStatus_Types", ConnectStatus_Types_name, ConnectStatus_Types_value) |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 487 | proto.RegisterEnum("common.OperationResp_OperationReturnCode", OperationResp_OperationReturnCode_name, OperationResp_OperationReturnCode_value) |
| 488 | proto.RegisterType((*ID)(nil), "common.ID") |
| 489 | proto.RegisterType((*IDs)(nil), "common.IDs") |
khenaidoo | ae87a40 | 2021-12-09 09:05:26 -0500 | [diff] [blame^] | 490 | proto.RegisterType((*Connection)(nil), "common.Connection") |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 491 | proto.RegisterType((*AdminState)(nil), "common.AdminState") |
| 492 | proto.RegisterType((*OperStatus)(nil), "common.OperStatus") |
| 493 | proto.RegisterType((*ConnectStatus)(nil), "common.ConnectStatus") |
| 494 | proto.RegisterType((*OperationResp)(nil), "common.OperationResp") |
| 495 | } |
| 496 | |
| 497 | func init() { proto.RegisterFile("voltha_protos/common.proto", fileDescriptor_c2e3fd231961e826) } |
| 498 | |
| 499 | var fileDescriptor_c2e3fd231961e826 = []byte{ |
khenaidoo | ae87a40 | 2021-12-09 09:05:26 -0500 | [diff] [blame^] | 500 | // 570 bytes of a gzipped FileDescriptorProto |
| 501 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0x5d, 0x4f, 0xdb, 0x30, |
| 502 | 0x14, 0x25, 0x09, 0x14, 0xb8, 0x85, 0x12, 0xcc, 0x98, 0x3a, 0xb4, 0x87, 0x2a, 0x2f, 0xb0, 0x49, |
| 503 | 0x6b, 0x25, 0xb6, 0x3d, 0xee, 0x21, 0x24, 0x5e, 0x67, 0x01, 0x4e, 0xe5, 0xa4, 0x20, 0xf1, 0x12, |
| 504 | 0x85, 0xc6, 0x03, 0x6b, 0xad, 0x1d, 0x25, 0xa6, 0x1a, 0x7b, 0xdc, 0x3f, 0xd8, 0x5f, 0xdd, 0x2f, |
| 505 | 0x98, 0x9c, 0x86, 0x15, 0xa4, 0xbe, 0xe5, 0x9c, 0x73, 0x73, 0xbf, 0x8e, 0x2f, 0x1c, 0xcd, 0xd5, |
| 506 | 0x54, 0xdf, 0x67, 0x69, 0x51, 0x2a, 0xad, 0xaa, 0xc1, 0x44, 0xcd, 0x66, 0x4a, 0xf6, 0x6b, 0x84, |
| 507 | 0x5a, 0x0b, 0xe4, 0xbd, 0x02, 0x9b, 0x84, 0xa8, 0x03, 0xb6, 0xc8, 0xbb, 0x56, 0xcf, 0x3a, 0xd9, |
| 508 | 0x66, 0xb6, 0xc8, 0xbd, 0x63, 0x70, 0x48, 0x58, 0xa1, 0x1e, 0x6c, 0x08, 0xcd, 0x67, 0x55, 0xd7, |
| 509 | 0xea, 0x39, 0x27, 0xed, 0x53, 0xe8, 0x37, 0x29, 0x48, 0xc8, 0x16, 0x82, 0xf7, 0x0b, 0x20, 0x50, |
| 510 | 0x52, 0xf2, 0x89, 0x16, 0x4a, 0xa2, 0x23, 0xd8, 0xe2, 0x32, 0x2f, 0x94, 0x90, 0xba, 0x49, 0xf6, |
| 511 | 0x1f, 0xa3, 0x1e, 0xb4, 0x27, 0x4a, 0x6a, 0xfe, 0x53, 0x13, 0xf9, 0x5d, 0x75, 0xed, 0x5a, 0x7e, |
| 512 | 0x4e, 0xa1, 0x3e, 0x1c, 0xfc, 0xe0, 0xbc, 0x48, 0xb3, 0xa9, 0x98, 0xf3, 0x54, 0x48, 0xcd, 0xcb, |
| 513 | 0x79, 0x36, 0xed, 0x3a, 0x3d, 0xeb, 0xc4, 0x61, 0xfb, 0x46, 0xf2, 0x8d, 0x42, 0x1a, 0xc1, 0xbb, |
| 514 | 0x07, 0xf0, 0xf3, 0x99, 0x90, 0xb1, 0xce, 0x34, 0xf7, 0x6e, 0x60, 0x23, 0x79, 0x2c, 0x78, 0x85, |
| 515 | 0xda, 0xb0, 0x39, 0xa6, 0xe7, 0x34, 0xba, 0xa6, 0xee, 0x1a, 0x42, 0xd0, 0x19, 0x31, 0x3c, 0x62, |
| 516 | 0xd1, 0x15, 0x89, 0x49, 0x44, 0x71, 0xe8, 0x5a, 0x26, 0x00, 0x53, 0xff, 0xec, 0x02, 0x87, 0xae, |
| 517 | 0x8d, 0x76, 0x60, 0x2b, 0x24, 0xf1, 0x02, 0x39, 0xe8, 0x10, 0xf6, 0xc3, 0xe8, 0x9a, 0x5e, 0x44, |
| 518 | 0x7e, 0x48, 0xe8, 0x30, 0x25, 0x97, 0xfe, 0x10, 0xbb, 0xeb, 0xde, 0x1f, 0x0b, 0x20, 0x2a, 0x78, |
| 519 | 0x69, 0x2a, 0x3d, 0x54, 0xde, 0x6f, 0x6b, 0x65, 0xad, 0x0e, 0x40, 0x48, 0xe2, 0x20, 0xba, 0xc2, |
| 520 | 0xac, 0xae, 0xd3, 0x01, 0xf0, 0x83, 0x84, 0x5c, 0xf9, 0x09, 0xa1, 0x43, 0xd7, 0x36, 0xc1, 0x09, |
| 521 | 0x8e, 0x6b, 0xe0, 0x20, 0x80, 0x56, 0x2d, 0x62, 0x77, 0xdd, 0x7c, 0x7f, 0xf5, 0x89, 0xe9, 0x60, |
| 522 | 0x03, 0xed, 0x41, 0x9b, 0xe1, 0x20, 0xa2, 0x01, 0xb9, 0x30, 0x81, 0x2d, 0xf4, 0x1a, 0xd0, 0x33, |
| 523 | 0x22, 0x6d, 0x02, 0x37, 0x3d, 0x0c, 0xbb, 0xcd, 0xe6, 0x9b, 0xae, 0x3e, 0xad, 0x6c, 0x6a, 0x0f, |
| 524 | 0xda, 0x63, 0xca, 0xb0, 0x1f, 0x7c, 0x33, 0x33, 0xba, 0x16, 0xda, 0x85, 0xed, 0x25, 0xb4, 0xbd, |
| 525 | 0xbf, 0x16, 0xec, 0x9a, 0xd1, 0x32, 0x63, 0x20, 0xe3, 0x55, 0x81, 0xbe, 0xc0, 0xfa, 0x44, 0xe5, |
| 526 | 0xbc, 0x36, 0xb0, 0x73, 0xfa, 0xee, 0xc9, 0xf3, 0x17, 0x41, 0xcf, 0x91, 0x7e, 0x28, 0x65, 0xa0, |
| 527 | 0x72, 0xce, 0xea, 0xdf, 0xd0, 0x31, 0xec, 0x65, 0x79, 0x2e, 0x8c, 0x96, 0x4d, 0x53, 0xb1, 0xf4, |
| 528 | 0xba, 0xb3, 0xa4, 0x8d, 0xdd, 0xde, 0x23, 0x1c, 0xac, 0xc8, 0x62, 0x2c, 0x88, 0x46, 0x98, 0xf9, |
| 529 | 0x09, 0x89, 0x68, 0x1a, 0x8f, 0x83, 0x00, 0xc7, 0xb1, 0xbb, 0xf6, 0x92, 0x36, 0x4b, 0x18, 0x33, |
| 530 | 0x33, 0xcd, 0x1b, 0x38, 0x5c, 0xd2, 0x63, 0x1a, 0x8f, 0x47, 0xa3, 0x88, 0x25, 0xb5, 0xb3, 0x2f, |
| 531 | 0x24, 0x42, 0xd3, 0x11, 0x8b, 0x86, 0xcc, 0x24, 0x73, 0xde, 0xbf, 0x85, 0x9d, 0x84, 0x57, 0xfa, |
| 532 | 0x52, 0xe5, 0xfc, 0x9c, 0x3f, 0x56, 0xe6, 0x11, 0x64, 0x85, 0x48, 0x35, 0xaf, 0xb4, 0xbb, 0x76, |
| 533 | 0x86, 0xe1, 0x40, 0x95, 0x77, 0x7d, 0x55, 0x70, 0x39, 0x51, 0x65, 0xde, 0x5f, 0x5c, 0xd1, 0x4d, |
| 534 | 0xff, 0x4e, 0xe8, 0xfb, 0x87, 0x5b, 0xb3, 0x8f, 0xc1, 0x93, 0x36, 0x58, 0x68, 0x1f, 0x9a, 0x0b, |
| 535 | 0x9b, 0x7f, 0x1e, 0xdc, 0xa9, 0xe6, 0xce, 0x6e, 0x5b, 0x35, 0xf9, 0xf1, 0x5f, 0x00, 0x00, 0x00, |
| 536 | 0xff, 0xff, 0x62, 0x34, 0x9d, 0xbf, 0x86, 0x03, 0x00, 0x00, |
Don Newton | 98fd881 | 2019-09-23 15:15:02 -0400 | [diff] [blame] | 537 | } |