Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: api/bbsim/bbsim.proto |
| 3 | |
| 4 | package bbsim |
| 5 | |
| 6 | import ( |
| 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | proto "github.com/golang/protobuf/proto" |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 10 | tech_profile "github.com/opencord/voltha-protos/v2/go/tech_profile" |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 11 | grpc "google.golang.org/grpc" |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 12 | codes "google.golang.org/grpc/codes" |
| 13 | status "google.golang.org/grpc/status" |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 14 | math "math" |
| 15 | ) |
| 16 | |
| 17 | // Reference imports to suppress errors if they are not otherwise used. |
| 18 | var _ = proto.Marshal |
| 19 | var _ = fmt.Errorf |
| 20 | var _ = math.Inf |
| 21 | |
| 22 | // This is a compile-time assertion to ensure that this generated file |
| 23 | // is compatible with the proto package it is being compiled against. |
| 24 | // A compilation error at this line likely means your copy of the |
| 25 | // proto package needs to be updated. |
| 26 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 27 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 28 | type SubActionTypes int32 |
| 29 | |
| 30 | const ( |
Arjun E K | dd443f0 | 2020-02-07 15:24:01 +0000 | [diff] [blame] | 31 | SubActionTypes_JOIN SubActionTypes = 0 |
| 32 | SubActionTypes_LEAVE SubActionTypes = 1 |
| 33 | SubActionTypes_JOINV3 SubActionTypes = 2 |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 34 | ) |
| 35 | |
| 36 | var SubActionTypes_name = map[int32]string{ |
| 37 | 0: "JOIN", |
| 38 | 1: "LEAVE", |
Arjun E K | dd443f0 | 2020-02-07 15:24:01 +0000 | [diff] [blame] | 39 | 2: "JOINV3", |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | var SubActionTypes_value = map[string]int32{ |
Arjun E K | dd443f0 | 2020-02-07 15:24:01 +0000 | [diff] [blame] | 43 | "JOIN": 0, |
| 44 | "LEAVE": 1, |
| 45 | "JOINV3": 2, |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | func (x SubActionTypes) String() string { |
| 49 | return proto.EnumName(SubActionTypes_name, int32(x)) |
| 50 | } |
| 51 | |
| 52 | func (SubActionTypes) EnumDescriptor() ([]byte, []int) { |
| 53 | return fileDescriptor_ef7750073d18011b, []int{0} |
| 54 | } |
| 55 | |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 56 | // These types correspond to the messages permitted in the oneof |
| 57 | // in AlarmIndication in the openolt protos |
| 58 | type AlarmType_Types int32 |
| 59 | |
| 60 | const ( |
| 61 | AlarmType_LOS AlarmType_Types = 0 |
| 62 | AlarmType_DYING_GASP AlarmType_Types = 1 |
| 63 | AlarmType_ONU_ALARM AlarmType_Types = 2 |
| 64 | AlarmType_ONU_STARTUP_FAILURE AlarmType_Types = 3 |
| 65 | AlarmType_ONU_SIGNAL_DEGRADE AlarmType_Types = 4 |
| 66 | AlarmType_ONU_DRIFT_OF_WINDOW AlarmType_Types = 5 |
| 67 | AlarmType_ONU_LOSS_OF_OMCI_CHANNEL AlarmType_Types = 6 |
| 68 | AlarmType_ONU_SIGNALS_FAILURE AlarmType_Types = 7 |
| 69 | AlarmType_ONU_TRANSMISSION_INTERFERENCE_WARNING AlarmType_Types = 8 |
| 70 | AlarmType_ONU_ACTIVATION_FAILURE AlarmType_Types = 9 |
| 71 | AlarmType_ONU_PROCESSING_ERROR AlarmType_Types = 10 |
| 72 | AlarmType_ONU_LOSS_OF_KEY_SYNC_FAILURE AlarmType_Types = 11 |
| 73 | AlarmType_ONU_ITU_PON_STATS AlarmType_Types = 12 |
| 74 | // These break out ONU_ALARM, which is a single message, but |
| 75 | // includes statuses for these six alarms. |
| 76 | AlarmType_ONU_ALARM_LOS AlarmType_Types = 13 |
| 77 | AlarmType_ONU_ALARM_LOB AlarmType_Types = 14 |
| 78 | AlarmType_ONU_ALARM_LOPC_MISS AlarmType_Types = 15 |
| 79 | AlarmType_ONU_ALARM_LOPC_MIC_ERROR AlarmType_Types = 16 |
| 80 | AlarmType_ONU_ALARM_LOFI AlarmType_Types = 17 |
| 81 | AlarmType_ONU_ALARM_LOAMI AlarmType_Types = 18 |
| 82 | ) |
| 83 | |
| 84 | var AlarmType_Types_name = map[int32]string{ |
| 85 | 0: "LOS", |
| 86 | 1: "DYING_GASP", |
| 87 | 2: "ONU_ALARM", |
| 88 | 3: "ONU_STARTUP_FAILURE", |
| 89 | 4: "ONU_SIGNAL_DEGRADE", |
| 90 | 5: "ONU_DRIFT_OF_WINDOW", |
| 91 | 6: "ONU_LOSS_OF_OMCI_CHANNEL", |
| 92 | 7: "ONU_SIGNALS_FAILURE", |
| 93 | 8: "ONU_TRANSMISSION_INTERFERENCE_WARNING", |
| 94 | 9: "ONU_ACTIVATION_FAILURE", |
| 95 | 10: "ONU_PROCESSING_ERROR", |
| 96 | 11: "ONU_LOSS_OF_KEY_SYNC_FAILURE", |
| 97 | 12: "ONU_ITU_PON_STATS", |
| 98 | 13: "ONU_ALARM_LOS", |
| 99 | 14: "ONU_ALARM_LOB", |
| 100 | 15: "ONU_ALARM_LOPC_MISS", |
| 101 | 16: "ONU_ALARM_LOPC_MIC_ERROR", |
| 102 | 17: "ONU_ALARM_LOFI", |
| 103 | 18: "ONU_ALARM_LOAMI", |
| 104 | } |
| 105 | |
| 106 | var AlarmType_Types_value = map[string]int32{ |
| 107 | "LOS": 0, |
| 108 | "DYING_GASP": 1, |
| 109 | "ONU_ALARM": 2, |
| 110 | "ONU_STARTUP_FAILURE": 3, |
| 111 | "ONU_SIGNAL_DEGRADE": 4, |
| 112 | "ONU_DRIFT_OF_WINDOW": 5, |
| 113 | "ONU_LOSS_OF_OMCI_CHANNEL": 6, |
| 114 | "ONU_SIGNALS_FAILURE": 7, |
| 115 | "ONU_TRANSMISSION_INTERFERENCE_WARNING": 8, |
| 116 | "ONU_ACTIVATION_FAILURE": 9, |
| 117 | "ONU_PROCESSING_ERROR": 10, |
| 118 | "ONU_LOSS_OF_KEY_SYNC_FAILURE": 11, |
| 119 | "ONU_ITU_PON_STATS": 12, |
| 120 | "ONU_ALARM_LOS": 13, |
| 121 | "ONU_ALARM_LOB": 14, |
| 122 | "ONU_ALARM_LOPC_MISS": 15, |
| 123 | "ONU_ALARM_LOPC_MIC_ERROR": 16, |
| 124 | "ONU_ALARM_LOFI": 17, |
| 125 | "ONU_ALARM_LOAMI": 18, |
| 126 | } |
| 127 | |
| 128 | func (x AlarmType_Types) String() string { |
| 129 | return proto.EnumName(AlarmType_Types_name, int32(x)) |
| 130 | } |
| 131 | |
| 132 | func (AlarmType_Types) EnumDescriptor() ([]byte, []int) { |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 133 | return fileDescriptor_ef7750073d18011b, []int{7, 0} |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 134 | } |
| 135 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 136 | type PONPort struct { |
| 137 | ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 138 | OperState string `protobuf:"bytes,2,opt,name=OperState,proto3" json:"OperState,omitempty"` |
| 139 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 140 | XXX_unrecognized []byte `json:"-"` |
| 141 | XXX_sizecache int32 `json:"-"` |
| 142 | } |
| 143 | |
| 144 | func (m *PONPort) Reset() { *m = PONPort{} } |
| 145 | func (m *PONPort) String() string { return proto.CompactTextString(m) } |
| 146 | func (*PONPort) ProtoMessage() {} |
| 147 | func (*PONPort) Descriptor() ([]byte, []int) { |
| 148 | return fileDescriptor_ef7750073d18011b, []int{0} |
| 149 | } |
| 150 | |
| 151 | func (m *PONPort) XXX_Unmarshal(b []byte) error { |
| 152 | return xxx_messageInfo_PONPort.Unmarshal(m, b) |
| 153 | } |
| 154 | func (m *PONPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 155 | return xxx_messageInfo_PONPort.Marshal(b, m, deterministic) |
| 156 | } |
| 157 | func (m *PONPort) XXX_Merge(src proto.Message) { |
| 158 | xxx_messageInfo_PONPort.Merge(m, src) |
| 159 | } |
| 160 | func (m *PONPort) XXX_Size() int { |
| 161 | return xxx_messageInfo_PONPort.Size(m) |
| 162 | } |
| 163 | func (m *PONPort) XXX_DiscardUnknown() { |
| 164 | xxx_messageInfo_PONPort.DiscardUnknown(m) |
| 165 | } |
| 166 | |
| 167 | var xxx_messageInfo_PONPort proto.InternalMessageInfo |
| 168 | |
| 169 | func (m *PONPort) GetID() int32 { |
| 170 | if m != nil { |
| 171 | return m.ID |
| 172 | } |
| 173 | return 0 |
| 174 | } |
| 175 | |
| 176 | func (m *PONPort) GetOperState() string { |
| 177 | if m != nil { |
| 178 | return m.OperState |
| 179 | } |
| 180 | return "" |
| 181 | } |
| 182 | |
| 183 | type NNIPort struct { |
| 184 | ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 185 | OperState string `protobuf:"bytes,2,opt,name=OperState,proto3" json:"OperState,omitempty"` |
| 186 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 187 | XXX_unrecognized []byte `json:"-"` |
| 188 | XXX_sizecache int32 `json:"-"` |
| 189 | } |
| 190 | |
| 191 | func (m *NNIPort) Reset() { *m = NNIPort{} } |
| 192 | func (m *NNIPort) String() string { return proto.CompactTextString(m) } |
| 193 | func (*NNIPort) ProtoMessage() {} |
| 194 | func (*NNIPort) Descriptor() ([]byte, []int) { |
| 195 | return fileDescriptor_ef7750073d18011b, []int{1} |
| 196 | } |
| 197 | |
| 198 | func (m *NNIPort) XXX_Unmarshal(b []byte) error { |
| 199 | return xxx_messageInfo_NNIPort.Unmarshal(m, b) |
| 200 | } |
| 201 | func (m *NNIPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 202 | return xxx_messageInfo_NNIPort.Marshal(b, m, deterministic) |
| 203 | } |
| 204 | func (m *NNIPort) XXX_Merge(src proto.Message) { |
| 205 | xxx_messageInfo_NNIPort.Merge(m, src) |
| 206 | } |
| 207 | func (m *NNIPort) XXX_Size() int { |
| 208 | return xxx_messageInfo_NNIPort.Size(m) |
| 209 | } |
| 210 | func (m *NNIPort) XXX_DiscardUnknown() { |
| 211 | xxx_messageInfo_NNIPort.DiscardUnknown(m) |
| 212 | } |
| 213 | |
| 214 | var xxx_messageInfo_NNIPort proto.InternalMessageInfo |
| 215 | |
| 216 | func (m *NNIPort) GetID() int32 { |
| 217 | if m != nil { |
| 218 | return m.ID |
| 219 | } |
| 220 | return 0 |
| 221 | } |
| 222 | |
| 223 | func (m *NNIPort) GetOperState() string { |
| 224 | if m != nil { |
| 225 | return m.OperState |
| 226 | } |
| 227 | return "" |
| 228 | } |
| 229 | |
| 230 | type Olt struct { |
| 231 | ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 232 | SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"` |
| 233 | OperState string `protobuf:"bytes,3,opt,name=OperState,proto3" json:"OperState,omitempty"` |
| 234 | InternalState string `protobuf:"bytes,4,opt,name=InternalState,proto3" json:"InternalState,omitempty"` |
| 235 | NNIPorts []*NNIPort `protobuf:"bytes,5,rep,name=NNIPorts,proto3" json:"NNIPorts,omitempty"` |
| 236 | PONPorts []*PONPort `protobuf:"bytes,6,rep,name=PONPorts,proto3" json:"PONPorts,omitempty"` |
| 237 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 238 | XXX_unrecognized []byte `json:"-"` |
| 239 | XXX_sizecache int32 `json:"-"` |
| 240 | } |
| 241 | |
| 242 | func (m *Olt) Reset() { *m = Olt{} } |
| 243 | func (m *Olt) String() string { return proto.CompactTextString(m) } |
| 244 | func (*Olt) ProtoMessage() {} |
| 245 | func (*Olt) Descriptor() ([]byte, []int) { |
| 246 | return fileDescriptor_ef7750073d18011b, []int{2} |
| 247 | } |
| 248 | |
| 249 | func (m *Olt) XXX_Unmarshal(b []byte) error { |
| 250 | return xxx_messageInfo_Olt.Unmarshal(m, b) |
| 251 | } |
| 252 | func (m *Olt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 253 | return xxx_messageInfo_Olt.Marshal(b, m, deterministic) |
| 254 | } |
| 255 | func (m *Olt) XXX_Merge(src proto.Message) { |
| 256 | xxx_messageInfo_Olt.Merge(m, src) |
| 257 | } |
| 258 | func (m *Olt) XXX_Size() int { |
| 259 | return xxx_messageInfo_Olt.Size(m) |
| 260 | } |
| 261 | func (m *Olt) XXX_DiscardUnknown() { |
| 262 | xxx_messageInfo_Olt.DiscardUnknown(m) |
| 263 | } |
| 264 | |
| 265 | var xxx_messageInfo_Olt proto.InternalMessageInfo |
| 266 | |
| 267 | func (m *Olt) GetID() int32 { |
| 268 | if m != nil { |
| 269 | return m.ID |
| 270 | } |
| 271 | return 0 |
| 272 | } |
| 273 | |
| 274 | func (m *Olt) GetSerialNumber() string { |
| 275 | if m != nil { |
| 276 | return m.SerialNumber |
| 277 | } |
| 278 | return "" |
| 279 | } |
| 280 | |
| 281 | func (m *Olt) GetOperState() string { |
| 282 | if m != nil { |
| 283 | return m.OperState |
| 284 | } |
| 285 | return "" |
| 286 | } |
| 287 | |
| 288 | func (m *Olt) GetInternalState() string { |
| 289 | if m != nil { |
| 290 | return m.InternalState |
| 291 | } |
| 292 | return "" |
| 293 | } |
| 294 | |
| 295 | func (m *Olt) GetNNIPorts() []*NNIPort { |
| 296 | if m != nil { |
| 297 | return m.NNIPorts |
| 298 | } |
| 299 | return nil |
| 300 | } |
| 301 | |
| 302 | func (m *Olt) GetPONPorts() []*PONPort { |
| 303 | if m != nil { |
| 304 | return m.PONPorts |
| 305 | } |
| 306 | return nil |
| 307 | } |
| 308 | |
| 309 | type ONU struct { |
| 310 | ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 311 | SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"` |
| 312 | OperState string `protobuf:"bytes,3,opt,name=OperState,proto3" json:"OperState,omitempty"` |
| 313 | InternalState string `protobuf:"bytes,4,opt,name=InternalState,proto3" json:"InternalState,omitempty"` |
| 314 | PonPortID int32 `protobuf:"varint,5,opt,name=PonPortID,proto3" json:"PonPortID,omitempty"` |
| 315 | STag int32 `protobuf:"varint,6,opt,name=STag,proto3" json:"STag,omitempty"` |
| 316 | CTag int32 `protobuf:"varint,7,opt,name=CTag,proto3" json:"CTag,omitempty"` |
| 317 | HwAddress string `protobuf:"bytes,8,opt,name=HwAddress,proto3" json:"HwAddress,omitempty"` |
| 318 | PortNo int32 `protobuf:"varint,9,opt,name=PortNo,proto3" json:"PortNo,omitempty"` |
| 319 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 320 | XXX_unrecognized []byte `json:"-"` |
| 321 | XXX_sizecache int32 `json:"-"` |
| 322 | } |
| 323 | |
| 324 | func (m *ONU) Reset() { *m = ONU{} } |
| 325 | func (m *ONU) String() string { return proto.CompactTextString(m) } |
| 326 | func (*ONU) ProtoMessage() {} |
| 327 | func (*ONU) Descriptor() ([]byte, []int) { |
| 328 | return fileDescriptor_ef7750073d18011b, []int{3} |
| 329 | } |
| 330 | |
| 331 | func (m *ONU) XXX_Unmarshal(b []byte) error { |
| 332 | return xxx_messageInfo_ONU.Unmarshal(m, b) |
| 333 | } |
| 334 | func (m *ONU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 335 | return xxx_messageInfo_ONU.Marshal(b, m, deterministic) |
| 336 | } |
| 337 | func (m *ONU) XXX_Merge(src proto.Message) { |
| 338 | xxx_messageInfo_ONU.Merge(m, src) |
| 339 | } |
| 340 | func (m *ONU) XXX_Size() int { |
| 341 | return xxx_messageInfo_ONU.Size(m) |
| 342 | } |
| 343 | func (m *ONU) XXX_DiscardUnknown() { |
| 344 | xxx_messageInfo_ONU.DiscardUnknown(m) |
| 345 | } |
| 346 | |
| 347 | var xxx_messageInfo_ONU proto.InternalMessageInfo |
| 348 | |
| 349 | func (m *ONU) GetID() int32 { |
| 350 | if m != nil { |
| 351 | return m.ID |
| 352 | } |
| 353 | return 0 |
| 354 | } |
| 355 | |
| 356 | func (m *ONU) GetSerialNumber() string { |
| 357 | if m != nil { |
| 358 | return m.SerialNumber |
| 359 | } |
| 360 | return "" |
| 361 | } |
| 362 | |
| 363 | func (m *ONU) GetOperState() string { |
| 364 | if m != nil { |
| 365 | return m.OperState |
| 366 | } |
| 367 | return "" |
| 368 | } |
| 369 | |
| 370 | func (m *ONU) GetInternalState() string { |
| 371 | if m != nil { |
| 372 | return m.InternalState |
| 373 | } |
| 374 | return "" |
| 375 | } |
| 376 | |
| 377 | func (m *ONU) GetPonPortID() int32 { |
| 378 | if m != nil { |
| 379 | return m.PonPortID |
| 380 | } |
| 381 | return 0 |
| 382 | } |
| 383 | |
| 384 | func (m *ONU) GetSTag() int32 { |
| 385 | if m != nil { |
| 386 | return m.STag |
| 387 | } |
| 388 | return 0 |
| 389 | } |
| 390 | |
| 391 | func (m *ONU) GetCTag() int32 { |
| 392 | if m != nil { |
| 393 | return m.CTag |
| 394 | } |
| 395 | return 0 |
| 396 | } |
| 397 | |
| 398 | func (m *ONU) GetHwAddress() string { |
| 399 | if m != nil { |
| 400 | return m.HwAddress |
| 401 | } |
| 402 | return "" |
| 403 | } |
| 404 | |
| 405 | func (m *ONU) GetPortNo() int32 { |
| 406 | if m != nil { |
| 407 | return m.PortNo |
| 408 | } |
| 409 | return 0 |
| 410 | } |
| 411 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 412 | type ONUTrafficSchedulers struct { |
| 413 | TraffSchedulers *tech_profile.TrafficSchedulers `protobuf:"bytes,1,opt,name=traffSchedulers,proto3" json:"traffSchedulers,omitempty"` |
| 414 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 415 | XXX_unrecognized []byte `json:"-"` |
| 416 | XXX_sizecache int32 `json:"-"` |
| 417 | } |
| 418 | |
| 419 | func (m *ONUTrafficSchedulers) Reset() { *m = ONUTrafficSchedulers{} } |
| 420 | func (m *ONUTrafficSchedulers) String() string { return proto.CompactTextString(m) } |
| 421 | func (*ONUTrafficSchedulers) ProtoMessage() {} |
| 422 | func (*ONUTrafficSchedulers) Descriptor() ([]byte, []int) { |
| 423 | return fileDescriptor_ef7750073d18011b, []int{4} |
| 424 | } |
| 425 | |
| 426 | func (m *ONUTrafficSchedulers) XXX_Unmarshal(b []byte) error { |
| 427 | return xxx_messageInfo_ONUTrafficSchedulers.Unmarshal(m, b) |
| 428 | } |
| 429 | func (m *ONUTrafficSchedulers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 430 | return xxx_messageInfo_ONUTrafficSchedulers.Marshal(b, m, deterministic) |
| 431 | } |
| 432 | func (m *ONUTrafficSchedulers) XXX_Merge(src proto.Message) { |
| 433 | xxx_messageInfo_ONUTrafficSchedulers.Merge(m, src) |
| 434 | } |
| 435 | func (m *ONUTrafficSchedulers) XXX_Size() int { |
| 436 | return xxx_messageInfo_ONUTrafficSchedulers.Size(m) |
| 437 | } |
| 438 | func (m *ONUTrafficSchedulers) XXX_DiscardUnknown() { |
| 439 | xxx_messageInfo_ONUTrafficSchedulers.DiscardUnknown(m) |
| 440 | } |
| 441 | |
| 442 | var xxx_messageInfo_ONUTrafficSchedulers proto.InternalMessageInfo |
| 443 | |
| 444 | func (m *ONUTrafficSchedulers) GetTraffSchedulers() *tech_profile.TrafficSchedulers { |
| 445 | if m != nil { |
| 446 | return m.TraffSchedulers |
| 447 | } |
| 448 | return nil |
| 449 | } |
| 450 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 451 | type ONUs struct { |
| 452 | Items []*ONU `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| 453 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 454 | XXX_unrecognized []byte `json:"-"` |
| 455 | XXX_sizecache int32 `json:"-"` |
| 456 | } |
| 457 | |
| 458 | func (m *ONUs) Reset() { *m = ONUs{} } |
| 459 | func (m *ONUs) String() string { return proto.CompactTextString(m) } |
| 460 | func (*ONUs) ProtoMessage() {} |
| 461 | func (*ONUs) Descriptor() ([]byte, []int) { |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 462 | return fileDescriptor_ef7750073d18011b, []int{5} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 463 | } |
| 464 | |
| 465 | func (m *ONUs) XXX_Unmarshal(b []byte) error { |
| 466 | return xxx_messageInfo_ONUs.Unmarshal(m, b) |
| 467 | } |
| 468 | func (m *ONUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 469 | return xxx_messageInfo_ONUs.Marshal(b, m, deterministic) |
| 470 | } |
| 471 | func (m *ONUs) XXX_Merge(src proto.Message) { |
| 472 | xxx_messageInfo_ONUs.Merge(m, src) |
| 473 | } |
| 474 | func (m *ONUs) XXX_Size() int { |
| 475 | return xxx_messageInfo_ONUs.Size(m) |
| 476 | } |
| 477 | func (m *ONUs) XXX_DiscardUnknown() { |
| 478 | xxx_messageInfo_ONUs.DiscardUnknown(m) |
| 479 | } |
| 480 | |
| 481 | var xxx_messageInfo_ONUs proto.InternalMessageInfo |
| 482 | |
| 483 | func (m *ONUs) GetItems() []*ONU { |
| 484 | if m != nil { |
| 485 | return m.Items |
| 486 | } |
| 487 | return nil |
| 488 | } |
| 489 | |
| 490 | type ONURequest struct { |
| 491 | SerialNumber string `protobuf:"bytes,1,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"` |
| 492 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 493 | XXX_unrecognized []byte `json:"-"` |
| 494 | XXX_sizecache int32 `json:"-"` |
| 495 | } |
| 496 | |
| 497 | func (m *ONURequest) Reset() { *m = ONURequest{} } |
| 498 | func (m *ONURequest) String() string { return proto.CompactTextString(m) } |
| 499 | func (*ONURequest) ProtoMessage() {} |
| 500 | func (*ONURequest) Descriptor() ([]byte, []int) { |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 501 | return fileDescriptor_ef7750073d18011b, []int{6} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 502 | } |
| 503 | |
| 504 | func (m *ONURequest) XXX_Unmarshal(b []byte) error { |
| 505 | return xxx_messageInfo_ONURequest.Unmarshal(m, b) |
| 506 | } |
| 507 | func (m *ONURequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 508 | return xxx_messageInfo_ONURequest.Marshal(b, m, deterministic) |
| 509 | } |
| 510 | func (m *ONURequest) XXX_Merge(src proto.Message) { |
| 511 | xxx_messageInfo_ONURequest.Merge(m, src) |
| 512 | } |
| 513 | func (m *ONURequest) XXX_Size() int { |
| 514 | return xxx_messageInfo_ONURequest.Size(m) |
| 515 | } |
| 516 | func (m *ONURequest) XXX_DiscardUnknown() { |
| 517 | xxx_messageInfo_ONURequest.DiscardUnknown(m) |
| 518 | } |
| 519 | |
| 520 | var xxx_messageInfo_ONURequest proto.InternalMessageInfo |
| 521 | |
| 522 | func (m *ONURequest) GetSerialNumber() string { |
| 523 | if m != nil { |
| 524 | return m.SerialNumber |
| 525 | } |
| 526 | return "" |
| 527 | } |
| 528 | |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 529 | type AlarmType struct { |
| 530 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 531 | XXX_unrecognized []byte `json:"-"` |
| 532 | XXX_sizecache int32 `json:"-"` |
| 533 | } |
| 534 | |
| 535 | func (m *AlarmType) Reset() { *m = AlarmType{} } |
| 536 | func (m *AlarmType) String() string { return proto.CompactTextString(m) } |
| 537 | func (*AlarmType) ProtoMessage() {} |
| 538 | func (*AlarmType) Descriptor() ([]byte, []int) { |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 539 | return fileDescriptor_ef7750073d18011b, []int{7} |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 540 | } |
| 541 | |
| 542 | func (m *AlarmType) XXX_Unmarshal(b []byte) error { |
| 543 | return xxx_messageInfo_AlarmType.Unmarshal(m, b) |
| 544 | } |
| 545 | func (m *AlarmType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 546 | return xxx_messageInfo_AlarmType.Marshal(b, m, deterministic) |
| 547 | } |
| 548 | func (m *AlarmType) XXX_Merge(src proto.Message) { |
| 549 | xxx_messageInfo_AlarmType.Merge(m, src) |
| 550 | } |
| 551 | func (m *AlarmType) XXX_Size() int { |
| 552 | return xxx_messageInfo_AlarmType.Size(m) |
| 553 | } |
| 554 | func (m *AlarmType) XXX_DiscardUnknown() { |
| 555 | xxx_messageInfo_AlarmType.DiscardUnknown(m) |
| 556 | } |
| 557 | |
| 558 | var xxx_messageInfo_AlarmType proto.InternalMessageInfo |
| 559 | |
| 560 | type AlarmParameter struct { |
| 561 | Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` |
| 562 | Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` |
| 563 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 564 | XXX_unrecognized []byte `json:"-"` |
| 565 | XXX_sizecache int32 `json:"-"` |
| 566 | } |
| 567 | |
| 568 | func (m *AlarmParameter) Reset() { *m = AlarmParameter{} } |
| 569 | func (m *AlarmParameter) String() string { return proto.CompactTextString(m) } |
| 570 | func (*AlarmParameter) ProtoMessage() {} |
| 571 | func (*AlarmParameter) Descriptor() ([]byte, []int) { |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 572 | return fileDescriptor_ef7750073d18011b, []int{8} |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 573 | } |
| 574 | |
| 575 | func (m *AlarmParameter) XXX_Unmarshal(b []byte) error { |
| 576 | return xxx_messageInfo_AlarmParameter.Unmarshal(m, b) |
| 577 | } |
| 578 | func (m *AlarmParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 579 | return xxx_messageInfo_AlarmParameter.Marshal(b, m, deterministic) |
| 580 | } |
| 581 | func (m *AlarmParameter) XXX_Merge(src proto.Message) { |
| 582 | xxx_messageInfo_AlarmParameter.Merge(m, src) |
| 583 | } |
| 584 | func (m *AlarmParameter) XXX_Size() int { |
| 585 | return xxx_messageInfo_AlarmParameter.Size(m) |
| 586 | } |
| 587 | func (m *AlarmParameter) XXX_DiscardUnknown() { |
| 588 | xxx_messageInfo_AlarmParameter.DiscardUnknown(m) |
| 589 | } |
| 590 | |
| 591 | var xxx_messageInfo_AlarmParameter proto.InternalMessageInfo |
| 592 | |
| 593 | func (m *AlarmParameter) GetKey() string { |
| 594 | if m != nil { |
| 595 | return m.Key |
| 596 | } |
| 597 | return "" |
| 598 | } |
| 599 | |
| 600 | func (m *AlarmParameter) GetValue() string { |
| 601 | if m != nil { |
| 602 | return m.Value |
| 603 | } |
| 604 | return "" |
| 605 | } |
| 606 | |
| 607 | // AlarmRequest includes fields common to every alarm, |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 608 | // plus an optional list of AlarmParameter list that can be used |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 609 | // to set additional fields in alarms that support them. |
| 610 | type AlarmRequest struct { |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 611 | AlarmType string `protobuf:"bytes,1,opt,name=AlarmType,proto3" json:"AlarmType,omitempty"` |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 612 | SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"` |
| 613 | Status string `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"` |
| 614 | Parameters []*AlarmParameter `protobuf:"bytes,4,rep,name=Parameters,proto3" json:"Parameters,omitempty"` |
| 615 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 616 | XXX_unrecognized []byte `json:"-"` |
| 617 | XXX_sizecache int32 `json:"-"` |
| 618 | } |
| 619 | |
| 620 | func (m *AlarmRequest) Reset() { *m = AlarmRequest{} } |
| 621 | func (m *AlarmRequest) String() string { return proto.CompactTextString(m) } |
| 622 | func (*AlarmRequest) ProtoMessage() {} |
| 623 | func (*AlarmRequest) Descriptor() ([]byte, []int) { |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 624 | return fileDescriptor_ef7750073d18011b, []int{9} |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 625 | } |
| 626 | |
| 627 | func (m *AlarmRequest) XXX_Unmarshal(b []byte) error { |
| 628 | return xxx_messageInfo_AlarmRequest.Unmarshal(m, b) |
| 629 | } |
| 630 | func (m *AlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 631 | return xxx_messageInfo_AlarmRequest.Marshal(b, m, deterministic) |
| 632 | } |
| 633 | func (m *AlarmRequest) XXX_Merge(src proto.Message) { |
| 634 | xxx_messageInfo_AlarmRequest.Merge(m, src) |
| 635 | } |
| 636 | func (m *AlarmRequest) XXX_Size() int { |
| 637 | return xxx_messageInfo_AlarmRequest.Size(m) |
| 638 | } |
| 639 | func (m *AlarmRequest) XXX_DiscardUnknown() { |
| 640 | xxx_messageInfo_AlarmRequest.DiscardUnknown(m) |
| 641 | } |
| 642 | |
| 643 | var xxx_messageInfo_AlarmRequest proto.InternalMessageInfo |
| 644 | |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 645 | func (m *AlarmRequest) GetAlarmType() string { |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 646 | if m != nil { |
| 647 | return m.AlarmType |
| 648 | } |
Pragya Arya | 694ece0 | 2020-02-07 13:03:47 +0530 | [diff] [blame] | 649 | return "" |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 650 | } |
| 651 | |
| 652 | func (m *AlarmRequest) GetSerialNumber() string { |
| 653 | if m != nil { |
| 654 | return m.SerialNumber |
| 655 | } |
| 656 | return "" |
| 657 | } |
| 658 | |
| 659 | func (m *AlarmRequest) GetStatus() string { |
| 660 | if m != nil { |
| 661 | return m.Status |
| 662 | } |
| 663 | return "" |
| 664 | } |
| 665 | |
| 666 | func (m *AlarmRequest) GetParameters() []*AlarmParameter { |
| 667 | if m != nil { |
| 668 | return m.Parameters |
| 669 | } |
| 670 | return nil |
| 671 | } |
| 672 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 673 | type VersionNumber struct { |
| 674 | Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` |
| 675 | BuildTime string `protobuf:"bytes,2,opt,name=buildTime,proto3" json:"buildTime,omitempty"` |
| 676 | CommitHash string `protobuf:"bytes,3,opt,name=commitHash,proto3" json:"commitHash,omitempty"` |
| 677 | GitStatus string `protobuf:"bytes,4,opt,name=gitStatus,proto3" json:"gitStatus,omitempty"` |
| 678 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 679 | XXX_unrecognized []byte `json:"-"` |
| 680 | XXX_sizecache int32 `json:"-"` |
| 681 | } |
| 682 | |
| 683 | func (m *VersionNumber) Reset() { *m = VersionNumber{} } |
| 684 | func (m *VersionNumber) String() string { return proto.CompactTextString(m) } |
| 685 | func (*VersionNumber) ProtoMessage() {} |
| 686 | func (*VersionNumber) Descriptor() ([]byte, []int) { |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 687 | return fileDescriptor_ef7750073d18011b, []int{10} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 688 | } |
| 689 | |
| 690 | func (m *VersionNumber) XXX_Unmarshal(b []byte) error { |
| 691 | return xxx_messageInfo_VersionNumber.Unmarshal(m, b) |
| 692 | } |
| 693 | func (m *VersionNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 694 | return xxx_messageInfo_VersionNumber.Marshal(b, m, deterministic) |
| 695 | } |
| 696 | func (m *VersionNumber) XXX_Merge(src proto.Message) { |
| 697 | xxx_messageInfo_VersionNumber.Merge(m, src) |
| 698 | } |
| 699 | func (m *VersionNumber) XXX_Size() int { |
| 700 | return xxx_messageInfo_VersionNumber.Size(m) |
| 701 | } |
| 702 | func (m *VersionNumber) XXX_DiscardUnknown() { |
| 703 | xxx_messageInfo_VersionNumber.DiscardUnknown(m) |
| 704 | } |
| 705 | |
| 706 | var xxx_messageInfo_VersionNumber proto.InternalMessageInfo |
| 707 | |
| 708 | func (m *VersionNumber) GetVersion() string { |
| 709 | if m != nil { |
| 710 | return m.Version |
| 711 | } |
| 712 | return "" |
| 713 | } |
| 714 | |
| 715 | func (m *VersionNumber) GetBuildTime() string { |
| 716 | if m != nil { |
| 717 | return m.BuildTime |
| 718 | } |
| 719 | return "" |
| 720 | } |
| 721 | |
| 722 | func (m *VersionNumber) GetCommitHash() string { |
| 723 | if m != nil { |
| 724 | return m.CommitHash |
| 725 | } |
| 726 | return "" |
| 727 | } |
| 728 | |
| 729 | func (m *VersionNumber) GetGitStatus() string { |
| 730 | if m != nil { |
| 731 | return m.GitStatus |
| 732 | } |
| 733 | return "" |
| 734 | } |
| 735 | |
| 736 | type LogLevel struct { |
| 737 | Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` |
| 738 | Caller bool `protobuf:"varint,2,opt,name=caller,proto3" json:"caller,omitempty"` |
| 739 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 740 | XXX_unrecognized []byte `json:"-"` |
| 741 | XXX_sizecache int32 `json:"-"` |
| 742 | } |
| 743 | |
| 744 | func (m *LogLevel) Reset() { *m = LogLevel{} } |
| 745 | func (m *LogLevel) String() string { return proto.CompactTextString(m) } |
| 746 | func (*LogLevel) ProtoMessage() {} |
| 747 | func (*LogLevel) Descriptor() ([]byte, []int) { |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 748 | return fileDescriptor_ef7750073d18011b, []int{11} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 749 | } |
| 750 | |
| 751 | func (m *LogLevel) XXX_Unmarshal(b []byte) error { |
| 752 | return xxx_messageInfo_LogLevel.Unmarshal(m, b) |
| 753 | } |
| 754 | func (m *LogLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 755 | return xxx_messageInfo_LogLevel.Marshal(b, m, deterministic) |
| 756 | } |
| 757 | func (m *LogLevel) XXX_Merge(src proto.Message) { |
| 758 | xxx_messageInfo_LogLevel.Merge(m, src) |
| 759 | } |
| 760 | func (m *LogLevel) XXX_Size() int { |
| 761 | return xxx_messageInfo_LogLevel.Size(m) |
| 762 | } |
| 763 | func (m *LogLevel) XXX_DiscardUnknown() { |
| 764 | xxx_messageInfo_LogLevel.DiscardUnknown(m) |
| 765 | } |
| 766 | |
| 767 | var xxx_messageInfo_LogLevel proto.InternalMessageInfo |
| 768 | |
| 769 | func (m *LogLevel) GetLevel() string { |
| 770 | if m != nil { |
| 771 | return m.Level |
| 772 | } |
| 773 | return "" |
| 774 | } |
| 775 | |
| 776 | func (m *LogLevel) GetCaller() bool { |
| 777 | if m != nil { |
| 778 | return m.Caller |
| 779 | } |
| 780 | return false |
| 781 | } |
| 782 | |
| 783 | type Response struct { |
| 784 | StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` |
| 785 | Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` |
| 786 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 787 | XXX_unrecognized []byte `json:"-"` |
| 788 | XXX_sizecache int32 `json:"-"` |
| 789 | } |
| 790 | |
| 791 | func (m *Response) Reset() { *m = Response{} } |
| 792 | func (m *Response) String() string { return proto.CompactTextString(m) } |
| 793 | func (*Response) ProtoMessage() {} |
| 794 | func (*Response) Descriptor() ([]byte, []int) { |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 795 | return fileDescriptor_ef7750073d18011b, []int{12} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 796 | } |
| 797 | |
| 798 | func (m *Response) XXX_Unmarshal(b []byte) error { |
| 799 | return xxx_messageInfo_Response.Unmarshal(m, b) |
| 800 | } |
| 801 | func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 802 | return xxx_messageInfo_Response.Marshal(b, m, deterministic) |
| 803 | } |
| 804 | func (m *Response) XXX_Merge(src proto.Message) { |
| 805 | xxx_messageInfo_Response.Merge(m, src) |
| 806 | } |
| 807 | func (m *Response) XXX_Size() int { |
| 808 | return xxx_messageInfo_Response.Size(m) |
| 809 | } |
| 810 | func (m *Response) XXX_DiscardUnknown() { |
| 811 | xxx_messageInfo_Response.DiscardUnknown(m) |
| 812 | } |
| 813 | |
| 814 | var xxx_messageInfo_Response proto.InternalMessageInfo |
| 815 | |
| 816 | func (m *Response) GetStatusCode() int32 { |
| 817 | if m != nil { |
| 818 | return m.StatusCode |
| 819 | } |
| 820 | return 0 |
| 821 | } |
| 822 | |
| 823 | func (m *Response) GetMessage() string { |
| 824 | if m != nil { |
| 825 | return m.Message |
| 826 | } |
| 827 | return "" |
| 828 | } |
| 829 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 830 | type IgmpRequest struct { |
| 831 | OnuReq *ONURequest `protobuf:"bytes,1,opt,name=OnuReq,proto3" json:"OnuReq,omitempty"` |
| 832 | SubActionVal SubActionTypes `protobuf:"varint,2,opt,name=SubActionVal,proto3,enum=bbsim.SubActionTypes" json:"SubActionVal,omitempty"` |
| 833 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 834 | XXX_unrecognized []byte `json:"-"` |
| 835 | XXX_sizecache int32 `json:"-"` |
| 836 | } |
| 837 | |
| 838 | func (m *IgmpRequest) Reset() { *m = IgmpRequest{} } |
| 839 | func (m *IgmpRequest) String() string { return proto.CompactTextString(m) } |
| 840 | func (*IgmpRequest) ProtoMessage() {} |
| 841 | func (*IgmpRequest) Descriptor() ([]byte, []int) { |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 842 | return fileDescriptor_ef7750073d18011b, []int{13} |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 843 | } |
| 844 | |
| 845 | func (m *IgmpRequest) XXX_Unmarshal(b []byte) error { |
| 846 | return xxx_messageInfo_IgmpRequest.Unmarshal(m, b) |
| 847 | } |
| 848 | func (m *IgmpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 849 | return xxx_messageInfo_IgmpRequest.Marshal(b, m, deterministic) |
| 850 | } |
| 851 | func (m *IgmpRequest) XXX_Merge(src proto.Message) { |
| 852 | xxx_messageInfo_IgmpRequest.Merge(m, src) |
| 853 | } |
| 854 | func (m *IgmpRequest) XXX_Size() int { |
| 855 | return xxx_messageInfo_IgmpRequest.Size(m) |
| 856 | } |
| 857 | func (m *IgmpRequest) XXX_DiscardUnknown() { |
| 858 | xxx_messageInfo_IgmpRequest.DiscardUnknown(m) |
| 859 | } |
| 860 | |
| 861 | var xxx_messageInfo_IgmpRequest proto.InternalMessageInfo |
| 862 | |
| 863 | func (m *IgmpRequest) GetOnuReq() *ONURequest { |
| 864 | if m != nil { |
| 865 | return m.OnuReq |
| 866 | } |
| 867 | return nil |
| 868 | } |
| 869 | |
| 870 | func (m *IgmpRequest) GetSubActionVal() SubActionTypes { |
| 871 | if m != nil { |
| 872 | return m.SubActionVal |
| 873 | } |
| 874 | return SubActionTypes_JOIN |
| 875 | } |
| 876 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 877 | type Empty struct { |
| 878 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 879 | XXX_unrecognized []byte `json:"-"` |
| 880 | XXX_sizecache int32 `json:"-"` |
| 881 | } |
| 882 | |
| 883 | func (m *Empty) Reset() { *m = Empty{} } |
| 884 | func (m *Empty) String() string { return proto.CompactTextString(m) } |
| 885 | func (*Empty) ProtoMessage() {} |
| 886 | func (*Empty) Descriptor() ([]byte, []int) { |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 887 | return fileDescriptor_ef7750073d18011b, []int{14} |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 888 | } |
| 889 | |
| 890 | func (m *Empty) XXX_Unmarshal(b []byte) error { |
| 891 | return xxx_messageInfo_Empty.Unmarshal(m, b) |
| 892 | } |
| 893 | func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 894 | return xxx_messageInfo_Empty.Marshal(b, m, deterministic) |
| 895 | } |
| 896 | func (m *Empty) XXX_Merge(src proto.Message) { |
| 897 | xxx_messageInfo_Empty.Merge(m, src) |
| 898 | } |
| 899 | func (m *Empty) XXX_Size() int { |
| 900 | return xxx_messageInfo_Empty.Size(m) |
| 901 | } |
| 902 | func (m *Empty) XXX_DiscardUnknown() { |
| 903 | xxx_messageInfo_Empty.DiscardUnknown(m) |
| 904 | } |
| 905 | |
| 906 | var xxx_messageInfo_Empty proto.InternalMessageInfo |
| 907 | |
| 908 | func init() { |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 909 | proto.RegisterEnum("bbsim.SubActionTypes", SubActionTypes_name, SubActionTypes_value) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 910 | proto.RegisterEnum("bbsim.AlarmType_Types", AlarmType_Types_name, AlarmType_Types_value) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 911 | proto.RegisterType((*PONPort)(nil), "bbsim.PONPort") |
| 912 | proto.RegisterType((*NNIPort)(nil), "bbsim.NNIPort") |
| 913 | proto.RegisterType((*Olt)(nil), "bbsim.Olt") |
| 914 | proto.RegisterType((*ONU)(nil), "bbsim.ONU") |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 915 | proto.RegisterType((*ONUTrafficSchedulers)(nil), "bbsim.ONUTrafficSchedulers") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 916 | proto.RegisterType((*ONUs)(nil), "bbsim.ONUs") |
| 917 | proto.RegisterType((*ONURequest)(nil), "bbsim.ONURequest") |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 918 | proto.RegisterType((*AlarmType)(nil), "bbsim.AlarmType") |
| 919 | proto.RegisterType((*AlarmParameter)(nil), "bbsim.AlarmParameter") |
| 920 | proto.RegisterType((*AlarmRequest)(nil), "bbsim.AlarmRequest") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 921 | proto.RegisterType((*VersionNumber)(nil), "bbsim.VersionNumber") |
| 922 | proto.RegisterType((*LogLevel)(nil), "bbsim.LogLevel") |
| 923 | proto.RegisterType((*Response)(nil), "bbsim.Response") |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 924 | proto.RegisterType((*IgmpRequest)(nil), "bbsim.IgmpRequest") |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 925 | proto.RegisterType((*Empty)(nil), "bbsim.Empty") |
| 926 | } |
| 927 | |
| 928 | func init() { proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b) } |
| 929 | |
| 930 | var fileDescriptor_ef7750073d18011b = []byte{ |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 931 | // 1172 bytes of a gzipped FileDescriptorProto |
| 932 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x4f, 0x6f, 0xe2, 0x46, |
| 933 | 0x14, 0x87, 0xf0, 0xff, 0x41, 0x88, 0x33, 0xbb, 0x9b, 0xb5, 0xd2, 0xa8, 0x8b, 0xac, 0x6d, 0x95, |
| 934 | 0x5d, 0xb5, 0xd9, 0x6e, 0xd2, 0xaa, 0x5b, 0xa9, 0x17, 0x07, 0x1c, 0xe2, 0x86, 0x8c, 0xd1, 0xd8, |
| 935 | 0x10, 0xe5, 0x64, 0x19, 0x98, 0x80, 0x25, 0x1b, 0xb3, 0xb6, 0x49, 0x94, 0x0f, 0xd0, 0x4b, 0xbf, |
| 936 | 0x44, 0xbf, 0x52, 0x2f, 0xbd, 0xf6, 0x7b, 0xf4, 0x56, 0x8d, 0x3d, 0x36, 0x38, 0x44, 0x15, 0xea, |
| 937 | 0xa5, 0x17, 0x34, 0xef, 0xf7, 0x7e, 0xbf, 0x37, 0x6f, 0xde, 0x9b, 0x79, 0x18, 0x5e, 0x59, 0x0b, |
| 938 | 0xfb, 0xc3, 0x68, 0x14, 0xd8, 0x6e, 0xfc, 0x7b, 0xb2, 0xf0, 0xbd, 0xd0, 0x43, 0xa5, 0xc8, 0x38, |
| 939 | 0x6c, 0xdd, 0x7b, 0x4e, 0x38, 0xb3, 0xcc, 0x08, 0x0c, 0x3e, 0x84, 0x74, 0x3c, 0x63, 0xeb, 0x3b, |
| 940 | 0xdb, 0xa1, 0x31, 0x51, 0xfa, 0x11, 0x2a, 0x7d, 0x0d, 0xf7, 0x3d, 0x3f, 0x44, 0x4d, 0xd8, 0x51, |
| 941 | 0x3b, 0x62, 0xbe, 0x95, 0x3f, 0x2e, 0x91, 0x1d, 0xb5, 0x83, 0x8e, 0xa0, 0xa6, 0x2d, 0xa8, 0xaf, |
| 942 | 0x87, 0x56, 0x48, 0xc5, 0x9d, 0x56, 0xfe, 0xb8, 0x46, 0x56, 0x00, 0x13, 0x62, 0xac, 0xfe, 0x07, |
| 943 | 0xe1, 0x9f, 0x79, 0x28, 0x68, 0xce, 0xa6, 0x4a, 0x82, 0x86, 0x4e, 0x7d, 0xdb, 0x72, 0xf0, 0xd2, |
| 944 | 0x1d, 0x51, 0x9f, 0x0b, 0x33, 0x58, 0x36, 0x72, 0xe1, 0x49, 0x64, 0xf4, 0x16, 0x76, 0xd5, 0x79, |
| 945 | 0x48, 0xfd, 0xb9, 0xe5, 0xc4, 0x8c, 0x62, 0xc4, 0xc8, 0x82, 0xe8, 0x3d, 0x54, 0x79, 0xe2, 0x81, |
| 946 | 0x58, 0x6a, 0x15, 0x8e, 0xeb, 0xa7, 0xcd, 0x93, 0xb8, 0x74, 0x1c, 0x26, 0xa9, 0x9f, 0x71, 0x79, |
| 947 | 0x75, 0x02, 0xb1, 0x9c, 0xe1, 0x72, 0x98, 0xa4, 0x7e, 0xe9, 0x6f, 0x76, 0x2e, 0x3c, 0xf8, 0xdf, |
| 948 | 0xce, 0x75, 0x04, 0xb5, 0xbe, 0x37, 0x67, 0xb9, 0xa8, 0x1d, 0xb1, 0x14, 0x6d, 0xbf, 0x02, 0x10, |
| 949 | 0x82, 0xa2, 0x6e, 0x58, 0x53, 0xb1, 0x1c, 0x39, 0xa2, 0x35, 0xc3, 0xda, 0x0c, 0xab, 0xc4, 0x18, |
| 950 | 0x5b, 0xb3, 0x28, 0x97, 0x0f, 0xf2, 0x64, 0xe2, 0xd3, 0x20, 0x10, 0xab, 0x71, 0x26, 0x29, 0x80, |
| 951 | 0x0e, 0xa0, 0xcc, 0xe2, 0x61, 0x4f, 0xac, 0x45, 0x1a, 0x6e, 0x49, 0x16, 0xbc, 0xd4, 0xf0, 0xc0, |
| 952 | 0xf0, 0xad, 0xbb, 0x3b, 0x7b, 0xac, 0x8f, 0x67, 0x74, 0xb2, 0x74, 0xa8, 0x1f, 0x20, 0x15, 0xf6, |
| 953 | 0x42, 0x06, 0xae, 0xa0, 0xa8, 0x30, 0xf5, 0xd3, 0x37, 0x27, 0x99, 0xbb, 0xb8, 0xa1, 0x24, 0x4f, |
| 954 | 0x75, 0xd2, 0x31, 0x14, 0x35, 0x3c, 0x08, 0x50, 0x0b, 0x4a, 0x76, 0x48, 0x5d, 0x16, 0x88, 0xf5, |
| 955 | 0x03, 0x78, 0x3f, 0x34, 0x3c, 0x20, 0xb1, 0x43, 0xfa, 0x0e, 0x80, 0x59, 0xf4, 0xf3, 0x92, 0x06, |
| 956 | 0xe1, 0x46, 0xf9, 0xf3, 0x9b, 0xe5, 0x97, 0xfe, 0x2a, 0x40, 0x4d, 0x76, 0x2c, 0xdf, 0x35, 0x1e, |
| 957 | 0x17, 0x54, 0xfa, 0xa3, 0x00, 0x25, 0xb6, 0x08, 0x50, 0x05, 0x0a, 0x3d, 0x4d, 0x17, 0x72, 0xa8, |
| 958 | 0x09, 0xd0, 0xb9, 0x55, 0x71, 0xd7, 0xec, 0xca, 0x7a, 0x5f, 0xc8, 0xa3, 0x5d, 0xa8, 0x69, 0x78, |
| 959 | 0x60, 0xca, 0x3d, 0x99, 0x5c, 0x0b, 0x3b, 0xe8, 0x35, 0xbc, 0x60, 0xa6, 0x6e, 0xc8, 0xc4, 0x18, |
| 960 | 0xf4, 0xcd, 0x0b, 0x59, 0xed, 0x0d, 0x88, 0x22, 0x14, 0xd0, 0x01, 0xa0, 0xc8, 0xa1, 0x76, 0xb1, |
| 961 | 0xdc, 0x33, 0x3b, 0x4a, 0x97, 0xc8, 0x1d, 0x45, 0x28, 0x26, 0x82, 0x0e, 0x51, 0x2f, 0x0c, 0x53, |
| 962 | 0xbb, 0x30, 0x6f, 0x54, 0xdc, 0xd1, 0x6e, 0x84, 0x12, 0x3a, 0x02, 0x91, 0x39, 0x7a, 0x9a, 0xae, |
| 963 | 0x33, 0x5c, 0xbb, 0x6e, 0xab, 0x66, 0xfb, 0x52, 0xc6, 0x58, 0xe9, 0x09, 0xe5, 0x74, 0x9f, 0x28, |
| 964 | 0x9c, 0x9e, 0xee, 0x53, 0x41, 0xef, 0xe0, 0x2b, 0xe6, 0x30, 0x88, 0x8c, 0xf5, 0x6b, 0x55, 0xd7, |
| 965 | 0x55, 0x0d, 0x9b, 0x2a, 0x36, 0x14, 0x72, 0xa1, 0x10, 0x05, 0xb7, 0x15, 0xf3, 0x46, 0x26, 0x58, |
| 966 | 0xc5, 0x5d, 0xa1, 0x8a, 0x0e, 0xe1, 0x20, 0x4a, 0xbd, 0x6d, 0xa8, 0x43, 0xd9, 0x60, 0xc4, 0x24, |
| 967 | 0x4c, 0x0d, 0x89, 0x51, 0x1b, 0xcd, 0x3e, 0xd1, 0xda, 0x8a, 0xae, 0xb3, 0xf3, 0x2a, 0x84, 0x68, |
| 968 | 0x44, 0x00, 0xd4, 0x82, 0xa3, 0xf5, 0xbc, 0xae, 0x94, 0x5b, 0x53, 0xbf, 0xc5, 0xed, 0x54, 0x5b, |
| 969 | 0x47, 0xaf, 0x60, 0x9f, 0x31, 0x54, 0x63, 0x60, 0xf6, 0x35, 0xcc, 0x6a, 0x61, 0xe8, 0x42, 0x03, |
| 970 | 0xed, 0xc3, 0x6e, 0x5a, 0x29, 0x26, 0x17, 0x76, 0x9f, 0x42, 0xe7, 0x42, 0x33, 0x39, 0x58, 0x02, |
| 971 | 0xf5, 0xdb, 0x26, 0x3b, 0x85, 0xb0, 0x97, 0xd4, 0x23, 0xe3, 0x68, 0xf3, 0xac, 0x04, 0x84, 0xa0, |
| 972 | 0xb9, 0xee, 0xbd, 0x50, 0x85, 0x7d, 0xf4, 0x02, 0xf6, 0xd6, 0x31, 0xf9, 0x5a, 0x15, 0x90, 0xf4, |
| 973 | 0x09, 0x9a, 0x51, 0x7f, 0xfb, 0x96, 0x6f, 0xb9, 0x34, 0xa4, 0x3e, 0x12, 0xa0, 0x70, 0x45, 0x1f, |
| 974 | 0xf9, 0x6d, 0x60, 0x4b, 0xf4, 0x12, 0x4a, 0x43, 0xcb, 0x59, 0x26, 0x13, 0x2b, 0x36, 0xa4, 0xdf, |
| 975 | 0xf3, 0xd0, 0x88, 0xa4, 0xc9, 0x7d, 0x3a, 0x5a, 0xbb, 0x2a, 0x5c, 0xbe, 0x02, 0xb6, 0x7a, 0xec, |
| 976 | 0x07, 0x50, 0x66, 0x2f, 0x76, 0x19, 0xf0, 0x97, 0xce, 0x2d, 0xf4, 0x03, 0x40, 0x9a, 0x5f, 0x20, |
| 977 | 0x16, 0xa3, 0xeb, 0xfd, 0x8a, 0x5f, 0xef, 0x6c, 0xf6, 0x64, 0x8d, 0x28, 0xfd, 0x9a, 0x87, 0xdd, |
| 978 | 0x21, 0xf5, 0x03, 0xdb, 0x9b, 0xf3, 0x0d, 0x44, 0xa8, 0xdc, 0xc7, 0x00, 0x4f, 0x30, 0x31, 0x59, |
| 979 | 0xf2, 0xa3, 0xa5, 0xed, 0x4c, 0x0c, 0xdb, 0x4d, 0x27, 0x73, 0x0a, 0xa0, 0x2f, 0x01, 0xc6, 0x9e, |
| 980 | 0xeb, 0xda, 0xe1, 0xa5, 0x15, 0xcc, 0x78, 0x72, 0x6b, 0x08, 0x53, 0x4f, 0xed, 0x90, 0xe7, 0x1e, |
| 981 | 0xcf, 0xa0, 0x15, 0x20, 0x7d, 0x82, 0x6a, 0xcf, 0x9b, 0xf6, 0xe8, 0x3d, 0x75, 0x58, 0x2d, 0x1d, |
| 982 | 0xb6, 0xe0, 0xfb, 0xc7, 0x06, 0x3b, 0xf8, 0xd8, 0x72, 0x1c, 0x5e, 0x96, 0x2a, 0xe1, 0x96, 0xa4, |
| 983 | 0x40, 0x95, 0xd0, 0x60, 0xe1, 0xcd, 0x03, 0x8a, 0xde, 0x40, 0x3d, 0x88, 0xe2, 0x99, 0x63, 0x6f, |
| 984 | 0x42, 0xf9, 0x18, 0x85, 0x18, 0x6a, 0x7b, 0x13, 0xca, 0x0e, 0xe7, 0xd2, 0x20, 0xb0, 0xa6, 0xc9, |
| 985 | 0x01, 0x12, 0x53, 0x0a, 0xa0, 0xae, 0x4e, 0xdd, 0x45, 0xd2, 0xa8, 0x77, 0x50, 0xd6, 0xe6, 0x4b, |
| 986 | 0x42, 0x3f, 0xf3, 0x91, 0xb3, 0xbf, 0x36, 0x29, 0x62, 0x0a, 0xe1, 0x04, 0xf4, 0x13, 0x34, 0xf4, |
| 987 | 0xe5, 0x48, 0x1e, 0x87, 0xb6, 0x37, 0x1f, 0x5a, 0x4e, 0x14, 0xb8, 0x99, 0xd6, 0x3e, 0x75, 0x45, |
| 988 | 0x43, 0x81, 0x64, 0xa8, 0x52, 0x05, 0x4a, 0x8a, 0xbb, 0x08, 0x1f, 0xdf, 0x7f, 0x84, 0x66, 0x96, |
| 989 | 0x88, 0xaa, 0x50, 0xfc, 0x45, 0x53, 0xb1, 0x90, 0x43, 0x35, 0x28, 0xf5, 0x14, 0x79, 0xa8, 0x08, |
| 990 | 0x79, 0x04, 0x50, 0x66, 0xe0, 0xf0, 0x4c, 0xd8, 0x39, 0xfd, 0xad, 0x0c, 0xa5, 0xf3, 0x73, 0xdd, |
| 991 | 0x76, 0xd1, 0x07, 0xa8, 0xf0, 0x16, 0xa2, 0x06, 0xdf, 0x35, 0x8a, 0x7a, 0xf8, 0x92, 0x5b, 0x99, |
| 992 | 0x06, 0x4b, 0x39, 0xf4, 0x16, 0xca, 0x5d, 0x1a, 0xb2, 0xbf, 0xd1, 0x2c, 0x3f, 0x1d, 0x87, 0x4e, |
| 993 | 0x28, 0xe5, 0xd0, 0xb7, 0x00, 0x7d, 0xef, 0x81, 0xfa, 0xde, 0x7c, 0x93, 0xb9, 0xc7, 0xad, 0xa4, |
| 994 | 0xf2, 0x52, 0x0e, 0x9d, 0x40, 0x5d, 0x9f, 0x2d, 0xc3, 0x89, 0xf7, 0xb0, 0x1d, 0xff, 0x1b, 0xa8, |
| 995 | 0x11, 0x3a, 0xf2, 0xbc, 0x70, 0x2b, 0xf6, 0xd7, 0x50, 0x61, 0x29, 0xb3, 0x19, 0x9e, 0xe5, 0xd6, |
| 996 | 0x57, 0x8d, 0x09, 0xa4, 0x1c, 0xeb, 0x5b, 0xcc, 0x43, 0x9b, 0x1d, 0x3b, 0x5c, 0x1b, 0xf7, 0x52, |
| 997 | 0x0e, 0x7d, 0x84, 0xba, 0x4e, 0xc3, 0xf4, 0xd6, 0x25, 0x9b, 0x26, 0xc0, 0xe1, 0x53, 0x40, 0xca, |
| 998 | 0xa1, 0xb3, 0xb5, 0x33, 0x3e, 0xbf, 0xc5, 0x33, 0xa9, 0x9f, 0xae, 0xea, 0xb8, 0xb5, 0xe6, 0x7b, |
| 999 | 0x68, 0x10, 0x1a, 0x84, 0x96, 0x1f, 0x2a, 0xd6, 0xc2, 0x73, 0xb6, 0x54, 0x9d, 0x41, 0x9d, 0xab, |
| 1000 | 0x3a, 0xb3, 0xf1, 0x62, 0x4b, 0xd1, 0xcf, 0x80, 0x74, 0x1a, 0x46, 0x23, 0x42, 0x9d, 0x4f, 0xec, |
| 1001 | 0xb1, 0xc5, 0xee, 0x20, 0x7a, 0xb1, 0x3e, 0x3a, 0xfe, 0x45, 0xfd, 0x09, 0xf6, 0xda, 0x33, 0x6b, |
| 1002 | 0x3e, 0xa5, 0xec, 0xf1, 0xc4, 0x9f, 0x12, 0x88, 0xb3, 0xd6, 0x9e, 0xd3, 0x73, 0xca, 0x2b, 0x78, |
| 1003 | 0xcd, 0x3a, 0x35, 0x5f, 0x6e, 0xfe, 0xf1, 0x3f, 0x93, 0xf8, 0x17, 0x2b, 0x68, 0x83, 0x2f, 0xe5, |
| 1004 | 0x46, 0xe5, 0xe8, 0x7b, 0xf4, 0xec, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x87, 0x16, 0x3d, 0xe3, |
| 1005 | 0xd1, 0x0a, 0x00, 0x00, |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1006 | } |
| 1007 | |
| 1008 | // Reference imports to suppress errors if they are not otherwise used. |
| 1009 | var _ context.Context |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 1010 | var _ grpc.ClientConnInterface |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1011 | |
| 1012 | // This is a compile-time assertion to ensure that this generated file |
| 1013 | // is compatible with the grpc package it is being compiled against. |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 1014 | const _ = grpc.SupportPackageIsVersion6 |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1015 | |
| 1016 | // BBSimClient is the client API for BBSim service. |
| 1017 | // |
| 1018 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 1019 | type BBSimClient interface { |
| 1020 | Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error) |
| 1021 | GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error) |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1022 | PoweronOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
| 1023 | ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
| 1024 | RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1025 | GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) |
| 1026 | GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error) |
| 1027 | SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) |
| 1028 | ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
| 1029 | PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
| 1030 | RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
| 1031 | RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1032 | SetAlarmIndication(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*Response, error) |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1033 | ChangeIgmpState(ctx context.Context, in *IgmpRequest, opts ...grpc.CallOption) (*Response, error) |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 1034 | GetOnuTrafficSchedulers(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUTrafficSchedulers, error) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1035 | } |
| 1036 | |
| 1037 | type bBSimClient struct { |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 1038 | cc grpc.ClientConnInterface |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1039 | } |
| 1040 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 1041 | func NewBBSimClient(cc grpc.ClientConnInterface) BBSimClient { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1042 | return &bBSimClient{cc} |
| 1043 | } |
| 1044 | |
| 1045 | func (c *bBSimClient) Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error) { |
| 1046 | out := new(VersionNumber) |
| 1047 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/Version", in, out, opts...) |
| 1048 | if err != nil { |
| 1049 | return nil, err |
| 1050 | } |
| 1051 | return out, nil |
| 1052 | } |
| 1053 | |
| 1054 | func (c *bBSimClient) GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error) { |
| 1055 | out := new(Olt) |
| 1056 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOlt", in, out, opts...) |
| 1057 | if err != nil { |
| 1058 | return nil, err |
| 1059 | } |
| 1060 | return out, nil |
| 1061 | } |
| 1062 | |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1063 | func (c *bBSimClient) PoweronOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 1064 | out := new(Response) |
| 1065 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronOlt", in, out, opts...) |
| 1066 | if err != nil { |
| 1067 | return nil, err |
| 1068 | } |
| 1069 | return out, nil |
| 1070 | } |
| 1071 | |
| 1072 | func (c *bBSimClient) ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 1073 | out := new(Response) |
| 1074 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownOlt", in, out, opts...) |
| 1075 | if err != nil { |
| 1076 | return nil, err |
| 1077 | } |
| 1078 | return out, nil |
| 1079 | } |
| 1080 | |
| 1081 | func (c *bBSimClient) RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) { |
| 1082 | out := new(Response) |
| 1083 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RebootOlt", in, out, opts...) |
| 1084 | if err != nil { |
| 1085 | return nil, err |
| 1086 | } |
| 1087 | return out, nil |
| 1088 | } |
| 1089 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1090 | func (c *bBSimClient) GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) { |
| 1091 | out := new(ONUs) |
| 1092 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONUs", in, out, opts...) |
| 1093 | if err != nil { |
| 1094 | return nil, err |
| 1095 | } |
| 1096 | return out, nil |
| 1097 | } |
| 1098 | |
| 1099 | func (c *bBSimClient) GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error) { |
| 1100 | out := new(ONU) |
| 1101 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONU", in, out, opts...) |
| 1102 | if err != nil { |
| 1103 | return nil, err |
| 1104 | } |
| 1105 | return out, nil |
| 1106 | } |
| 1107 | |
| 1108 | func (c *bBSimClient) SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) { |
| 1109 | out := new(LogLevel) |
| 1110 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetLogLevel", in, out, opts...) |
| 1111 | if err != nil { |
| 1112 | return nil, err |
| 1113 | } |
| 1114 | return out, nil |
| 1115 | } |
| 1116 | |
| 1117 | func (c *bBSimClient) ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 1118 | out := new(Response) |
| 1119 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownONU", in, out, opts...) |
| 1120 | if err != nil { |
| 1121 | return nil, err |
| 1122 | } |
| 1123 | return out, nil |
| 1124 | } |
| 1125 | |
| 1126 | func (c *bBSimClient) PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 1127 | out := new(Response) |
| 1128 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronONU", in, out, opts...) |
| 1129 | if err != nil { |
| 1130 | return nil, err |
| 1131 | } |
| 1132 | return out, nil |
| 1133 | } |
| 1134 | |
| 1135 | func (c *bBSimClient) RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 1136 | out := new(Response) |
| 1137 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartEapol", in, out, opts...) |
| 1138 | if err != nil { |
| 1139 | return nil, err |
| 1140 | } |
| 1141 | return out, nil |
| 1142 | } |
| 1143 | |
| 1144 | func (c *bBSimClient) RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 1145 | out := new(Response) |
| 1146 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartDhcp", in, out, opts...) |
| 1147 | if err != nil { |
| 1148 | return nil, err |
| 1149 | } |
| 1150 | return out, nil |
| 1151 | } |
| 1152 | |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1153 | func (c *bBSimClient) SetAlarmIndication(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*Response, error) { |
| 1154 | out := new(Response) |
| 1155 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetAlarmIndication", in, out, opts...) |
| 1156 | if err != nil { |
| 1157 | return nil, err |
| 1158 | } |
| 1159 | return out, nil |
| 1160 | } |
| 1161 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1162 | func (c *bBSimClient) ChangeIgmpState(ctx context.Context, in *IgmpRequest, opts ...grpc.CallOption) (*Response, error) { |
| 1163 | out := new(Response) |
| 1164 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ChangeIgmpState", in, out, opts...) |
| 1165 | if err != nil { |
| 1166 | return nil, err |
| 1167 | } |
| 1168 | return out, nil |
| 1169 | } |
| 1170 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 1171 | func (c *bBSimClient) GetOnuTrafficSchedulers(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUTrafficSchedulers, error) { |
| 1172 | out := new(ONUTrafficSchedulers) |
| 1173 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOnuTrafficSchedulers", in, out, opts...) |
| 1174 | if err != nil { |
| 1175 | return nil, err |
| 1176 | } |
| 1177 | return out, nil |
| 1178 | } |
| 1179 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1180 | // BBSimServer is the server API for BBSim service. |
| 1181 | type BBSimServer interface { |
| 1182 | Version(context.Context, *Empty) (*VersionNumber, error) |
| 1183 | GetOlt(context.Context, *Empty) (*Olt, error) |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1184 | PoweronOlt(context.Context, *Empty) (*Response, error) |
| 1185 | ShutdownOlt(context.Context, *Empty) (*Response, error) |
| 1186 | RebootOlt(context.Context, *Empty) (*Response, error) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1187 | GetONUs(context.Context, *Empty) (*ONUs, error) |
| 1188 | GetONU(context.Context, *ONURequest) (*ONU, error) |
| 1189 | SetLogLevel(context.Context, *LogLevel) (*LogLevel, error) |
| 1190 | ShutdownONU(context.Context, *ONURequest) (*Response, error) |
| 1191 | PoweronONU(context.Context, *ONURequest) (*Response, error) |
| 1192 | RestartEapol(context.Context, *ONURequest) (*Response, error) |
| 1193 | RestartDhcp(context.Context, *ONURequest) (*Response, error) |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1194 | SetAlarmIndication(context.Context, *AlarmRequest) (*Response, error) |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1195 | ChangeIgmpState(context.Context, *IgmpRequest) (*Response, error) |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 1196 | GetOnuTrafficSchedulers(context.Context, *ONURequest) (*ONUTrafficSchedulers, error) |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1197 | } |
| 1198 | |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 1199 | // UnimplementedBBSimServer can be embedded to have forward compatible implementations. |
| 1200 | type UnimplementedBBSimServer struct { |
| 1201 | } |
| 1202 | |
| 1203 | func (*UnimplementedBBSimServer) Version(ctx context.Context, req *Empty) (*VersionNumber, error) { |
| 1204 | return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") |
| 1205 | } |
| 1206 | func (*UnimplementedBBSimServer) GetOlt(ctx context.Context, req *Empty) (*Olt, error) { |
| 1207 | return nil, status.Errorf(codes.Unimplemented, "method GetOlt not implemented") |
| 1208 | } |
| 1209 | func (*UnimplementedBBSimServer) PoweronOlt(ctx context.Context, req *Empty) (*Response, error) { |
| 1210 | return nil, status.Errorf(codes.Unimplemented, "method PoweronOlt not implemented") |
| 1211 | } |
| 1212 | func (*UnimplementedBBSimServer) ShutdownOlt(ctx context.Context, req *Empty) (*Response, error) { |
| 1213 | return nil, status.Errorf(codes.Unimplemented, "method ShutdownOlt not implemented") |
| 1214 | } |
| 1215 | func (*UnimplementedBBSimServer) RebootOlt(ctx context.Context, req *Empty) (*Response, error) { |
| 1216 | return nil, status.Errorf(codes.Unimplemented, "method RebootOlt not implemented") |
| 1217 | } |
| 1218 | func (*UnimplementedBBSimServer) GetONUs(ctx context.Context, req *Empty) (*ONUs, error) { |
| 1219 | return nil, status.Errorf(codes.Unimplemented, "method GetONUs not implemented") |
| 1220 | } |
| 1221 | func (*UnimplementedBBSimServer) GetONU(ctx context.Context, req *ONURequest) (*ONU, error) { |
| 1222 | return nil, status.Errorf(codes.Unimplemented, "method GetONU not implemented") |
| 1223 | } |
| 1224 | func (*UnimplementedBBSimServer) SetLogLevel(ctx context.Context, req *LogLevel) (*LogLevel, error) { |
| 1225 | return nil, status.Errorf(codes.Unimplemented, "method SetLogLevel not implemented") |
| 1226 | } |
| 1227 | func (*UnimplementedBBSimServer) ShutdownONU(ctx context.Context, req *ONURequest) (*Response, error) { |
| 1228 | return nil, status.Errorf(codes.Unimplemented, "method ShutdownONU not implemented") |
| 1229 | } |
| 1230 | func (*UnimplementedBBSimServer) PoweronONU(ctx context.Context, req *ONURequest) (*Response, error) { |
| 1231 | return nil, status.Errorf(codes.Unimplemented, "method PoweronONU not implemented") |
| 1232 | } |
| 1233 | func (*UnimplementedBBSimServer) RestartEapol(ctx context.Context, req *ONURequest) (*Response, error) { |
| 1234 | return nil, status.Errorf(codes.Unimplemented, "method RestartEapol not implemented") |
| 1235 | } |
| 1236 | func (*UnimplementedBBSimServer) RestartDhcp(ctx context.Context, req *ONURequest) (*Response, error) { |
| 1237 | return nil, status.Errorf(codes.Unimplemented, "method RestartDhcp not implemented") |
| 1238 | } |
| 1239 | func (*UnimplementedBBSimServer) SetAlarmIndication(ctx context.Context, req *AlarmRequest) (*Response, error) { |
| 1240 | return nil, status.Errorf(codes.Unimplemented, "method SetAlarmIndication not implemented") |
| 1241 | } |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1242 | func (*UnimplementedBBSimServer) ChangeIgmpState(ctx context.Context, req *IgmpRequest) (*Response, error) { |
| 1243 | return nil, status.Errorf(codes.Unimplemented, "method ChangeIgmpState not implemented") |
| 1244 | } |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 1245 | func (*UnimplementedBBSimServer) GetOnuTrafficSchedulers(ctx context.Context, req *ONURequest) (*ONUTrafficSchedulers, error) { |
| 1246 | return nil, status.Errorf(codes.Unimplemented, "method GetOnuTrafficSchedulers not implemented") |
| 1247 | } |
Pragya Arya | 1cbefa4 | 2020-01-13 12:15:29 +0530 | [diff] [blame] | 1248 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1249 | func RegisterBBSimServer(s *grpc.Server, srv BBSimServer) { |
| 1250 | s.RegisterService(&_BBSim_serviceDesc, srv) |
| 1251 | } |
| 1252 | |
| 1253 | func _BBSim_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1254 | in := new(Empty) |
| 1255 | if err := dec(in); err != nil { |
| 1256 | return nil, err |
| 1257 | } |
| 1258 | if interceptor == nil { |
| 1259 | return srv.(BBSimServer).Version(ctx, in) |
| 1260 | } |
| 1261 | info := &grpc.UnaryServerInfo{ |
| 1262 | Server: srv, |
| 1263 | FullMethod: "/bbsim.BBSim/Version", |
| 1264 | } |
| 1265 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1266 | return srv.(BBSimServer).Version(ctx, req.(*Empty)) |
| 1267 | } |
| 1268 | return interceptor(ctx, in, info, handler) |
| 1269 | } |
| 1270 | |
| 1271 | func _BBSim_GetOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1272 | in := new(Empty) |
| 1273 | if err := dec(in); err != nil { |
| 1274 | return nil, err |
| 1275 | } |
| 1276 | if interceptor == nil { |
| 1277 | return srv.(BBSimServer).GetOlt(ctx, in) |
| 1278 | } |
| 1279 | info := &grpc.UnaryServerInfo{ |
| 1280 | Server: srv, |
| 1281 | FullMethod: "/bbsim.BBSim/GetOlt", |
| 1282 | } |
| 1283 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1284 | return srv.(BBSimServer).GetOlt(ctx, req.(*Empty)) |
| 1285 | } |
| 1286 | return interceptor(ctx, in, info, handler) |
| 1287 | } |
| 1288 | |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1289 | func _BBSim_PoweronOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1290 | in := new(Empty) |
| 1291 | if err := dec(in); err != nil { |
| 1292 | return nil, err |
| 1293 | } |
| 1294 | if interceptor == nil { |
| 1295 | return srv.(BBSimServer).PoweronOlt(ctx, in) |
| 1296 | } |
| 1297 | info := &grpc.UnaryServerInfo{ |
| 1298 | Server: srv, |
| 1299 | FullMethod: "/bbsim.BBSim/PoweronOlt", |
| 1300 | } |
| 1301 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1302 | return srv.(BBSimServer).PoweronOlt(ctx, req.(*Empty)) |
| 1303 | } |
| 1304 | return interceptor(ctx, in, info, handler) |
| 1305 | } |
| 1306 | |
| 1307 | func _BBSim_ShutdownOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1308 | in := new(Empty) |
| 1309 | if err := dec(in); err != nil { |
| 1310 | return nil, err |
| 1311 | } |
| 1312 | if interceptor == nil { |
| 1313 | return srv.(BBSimServer).ShutdownOlt(ctx, in) |
| 1314 | } |
| 1315 | info := &grpc.UnaryServerInfo{ |
| 1316 | Server: srv, |
| 1317 | FullMethod: "/bbsim.BBSim/ShutdownOlt", |
| 1318 | } |
| 1319 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1320 | return srv.(BBSimServer).ShutdownOlt(ctx, req.(*Empty)) |
| 1321 | } |
| 1322 | return interceptor(ctx, in, info, handler) |
| 1323 | } |
| 1324 | |
| 1325 | func _BBSim_RebootOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1326 | in := new(Empty) |
| 1327 | if err := dec(in); err != nil { |
| 1328 | return nil, err |
| 1329 | } |
| 1330 | if interceptor == nil { |
| 1331 | return srv.(BBSimServer).RebootOlt(ctx, in) |
| 1332 | } |
| 1333 | info := &grpc.UnaryServerInfo{ |
| 1334 | Server: srv, |
| 1335 | FullMethod: "/bbsim.BBSim/RebootOlt", |
| 1336 | } |
| 1337 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1338 | return srv.(BBSimServer).RebootOlt(ctx, req.(*Empty)) |
| 1339 | } |
| 1340 | return interceptor(ctx, in, info, handler) |
| 1341 | } |
| 1342 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1343 | func _BBSim_GetONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1344 | in := new(Empty) |
| 1345 | if err := dec(in); err != nil { |
| 1346 | return nil, err |
| 1347 | } |
| 1348 | if interceptor == nil { |
| 1349 | return srv.(BBSimServer).GetONUs(ctx, in) |
| 1350 | } |
| 1351 | info := &grpc.UnaryServerInfo{ |
| 1352 | Server: srv, |
| 1353 | FullMethod: "/bbsim.BBSim/GetONUs", |
| 1354 | } |
| 1355 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1356 | return srv.(BBSimServer).GetONUs(ctx, req.(*Empty)) |
| 1357 | } |
| 1358 | return interceptor(ctx, in, info, handler) |
| 1359 | } |
| 1360 | |
| 1361 | func _BBSim_GetONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1362 | in := new(ONURequest) |
| 1363 | if err := dec(in); err != nil { |
| 1364 | return nil, err |
| 1365 | } |
| 1366 | if interceptor == nil { |
| 1367 | return srv.(BBSimServer).GetONU(ctx, in) |
| 1368 | } |
| 1369 | info := &grpc.UnaryServerInfo{ |
| 1370 | Server: srv, |
| 1371 | FullMethod: "/bbsim.BBSim/GetONU", |
| 1372 | } |
| 1373 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1374 | return srv.(BBSimServer).GetONU(ctx, req.(*ONURequest)) |
| 1375 | } |
| 1376 | return interceptor(ctx, in, info, handler) |
| 1377 | } |
| 1378 | |
| 1379 | func _BBSim_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1380 | in := new(LogLevel) |
| 1381 | if err := dec(in); err != nil { |
| 1382 | return nil, err |
| 1383 | } |
| 1384 | if interceptor == nil { |
| 1385 | return srv.(BBSimServer).SetLogLevel(ctx, in) |
| 1386 | } |
| 1387 | info := &grpc.UnaryServerInfo{ |
| 1388 | Server: srv, |
| 1389 | FullMethod: "/bbsim.BBSim/SetLogLevel", |
| 1390 | } |
| 1391 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1392 | return srv.(BBSimServer).SetLogLevel(ctx, req.(*LogLevel)) |
| 1393 | } |
| 1394 | return interceptor(ctx, in, info, handler) |
| 1395 | } |
| 1396 | |
| 1397 | func _BBSim_ShutdownONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1398 | in := new(ONURequest) |
| 1399 | if err := dec(in); err != nil { |
| 1400 | return nil, err |
| 1401 | } |
| 1402 | if interceptor == nil { |
| 1403 | return srv.(BBSimServer).ShutdownONU(ctx, in) |
| 1404 | } |
| 1405 | info := &grpc.UnaryServerInfo{ |
| 1406 | Server: srv, |
| 1407 | FullMethod: "/bbsim.BBSim/ShutdownONU", |
| 1408 | } |
| 1409 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1410 | return srv.(BBSimServer).ShutdownONU(ctx, req.(*ONURequest)) |
| 1411 | } |
| 1412 | return interceptor(ctx, in, info, handler) |
| 1413 | } |
| 1414 | |
| 1415 | func _BBSim_PoweronONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1416 | in := new(ONURequest) |
| 1417 | if err := dec(in); err != nil { |
| 1418 | return nil, err |
| 1419 | } |
| 1420 | if interceptor == nil { |
| 1421 | return srv.(BBSimServer).PoweronONU(ctx, in) |
| 1422 | } |
| 1423 | info := &grpc.UnaryServerInfo{ |
| 1424 | Server: srv, |
| 1425 | FullMethod: "/bbsim.BBSim/PoweronONU", |
| 1426 | } |
| 1427 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1428 | return srv.(BBSimServer).PoweronONU(ctx, req.(*ONURequest)) |
| 1429 | } |
| 1430 | return interceptor(ctx, in, info, handler) |
| 1431 | } |
| 1432 | |
| 1433 | func _BBSim_RestartEapol_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1434 | in := new(ONURequest) |
| 1435 | if err := dec(in); err != nil { |
| 1436 | return nil, err |
| 1437 | } |
| 1438 | if interceptor == nil { |
| 1439 | return srv.(BBSimServer).RestartEapol(ctx, in) |
| 1440 | } |
| 1441 | info := &grpc.UnaryServerInfo{ |
| 1442 | Server: srv, |
| 1443 | FullMethod: "/bbsim.BBSim/RestartEapol", |
| 1444 | } |
| 1445 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1446 | return srv.(BBSimServer).RestartEapol(ctx, req.(*ONURequest)) |
| 1447 | } |
| 1448 | return interceptor(ctx, in, info, handler) |
| 1449 | } |
| 1450 | |
| 1451 | func _BBSim_RestartDhcp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1452 | in := new(ONURequest) |
| 1453 | if err := dec(in); err != nil { |
| 1454 | return nil, err |
| 1455 | } |
| 1456 | if interceptor == nil { |
| 1457 | return srv.(BBSimServer).RestartDhcp(ctx, in) |
| 1458 | } |
| 1459 | info := &grpc.UnaryServerInfo{ |
| 1460 | Server: srv, |
| 1461 | FullMethod: "/bbsim.BBSim/RestartDhcp", |
| 1462 | } |
| 1463 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1464 | return srv.(BBSimServer).RestartDhcp(ctx, req.(*ONURequest)) |
| 1465 | } |
| 1466 | return interceptor(ctx, in, info, handler) |
| 1467 | } |
| 1468 | |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1469 | func _BBSim_SetAlarmIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1470 | in := new(AlarmRequest) |
| 1471 | if err := dec(in); err != nil { |
| 1472 | return nil, err |
| 1473 | } |
| 1474 | if interceptor == nil { |
| 1475 | return srv.(BBSimServer).SetAlarmIndication(ctx, in) |
| 1476 | } |
| 1477 | info := &grpc.UnaryServerInfo{ |
| 1478 | Server: srv, |
| 1479 | FullMethod: "/bbsim.BBSim/SetAlarmIndication", |
| 1480 | } |
| 1481 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1482 | return srv.(BBSimServer).SetAlarmIndication(ctx, req.(*AlarmRequest)) |
| 1483 | } |
| 1484 | return interceptor(ctx, in, info, handler) |
| 1485 | } |
| 1486 | |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1487 | func _BBSim_ChangeIgmpState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1488 | in := new(IgmpRequest) |
| 1489 | if err := dec(in); err != nil { |
| 1490 | return nil, err |
| 1491 | } |
| 1492 | if interceptor == nil { |
| 1493 | return srv.(BBSimServer).ChangeIgmpState(ctx, in) |
| 1494 | } |
| 1495 | info := &grpc.UnaryServerInfo{ |
| 1496 | Server: srv, |
| 1497 | FullMethod: "/bbsim.BBSim/ChangeIgmpState", |
| 1498 | } |
| 1499 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1500 | return srv.(BBSimServer).ChangeIgmpState(ctx, req.(*IgmpRequest)) |
| 1501 | } |
| 1502 | return interceptor(ctx, in, info, handler) |
| 1503 | } |
| 1504 | |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 1505 | func _BBSim_GetOnuTrafficSchedulers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1506 | in := new(ONURequest) |
| 1507 | if err := dec(in); err != nil { |
| 1508 | return nil, err |
| 1509 | } |
| 1510 | if interceptor == nil { |
| 1511 | return srv.(BBSimServer).GetOnuTrafficSchedulers(ctx, in) |
| 1512 | } |
| 1513 | info := &grpc.UnaryServerInfo{ |
| 1514 | Server: srv, |
| 1515 | FullMethod: "/bbsim.BBSim/GetOnuTrafficSchedulers", |
| 1516 | } |
| 1517 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1518 | return srv.(BBSimServer).GetOnuTrafficSchedulers(ctx, req.(*ONURequest)) |
| 1519 | } |
| 1520 | return interceptor(ctx, in, info, handler) |
| 1521 | } |
| 1522 | |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1523 | var _BBSim_serviceDesc = grpc.ServiceDesc{ |
| 1524 | ServiceName: "bbsim.BBSim", |
| 1525 | HandlerType: (*BBSimServer)(nil), |
| 1526 | Methods: []grpc.MethodDesc{ |
| 1527 | { |
| 1528 | MethodName: "Version", |
| 1529 | Handler: _BBSim_Version_Handler, |
| 1530 | }, |
| 1531 | { |
| 1532 | MethodName: "GetOlt", |
| 1533 | Handler: _BBSim_GetOlt_Handler, |
| 1534 | }, |
| 1535 | { |
Zdravko Bozakov | 681364d | 2019-11-10 14:28:46 +0100 | [diff] [blame] | 1536 | MethodName: "PoweronOlt", |
| 1537 | Handler: _BBSim_PoweronOlt_Handler, |
| 1538 | }, |
| 1539 | { |
| 1540 | MethodName: "ShutdownOlt", |
| 1541 | Handler: _BBSim_ShutdownOlt_Handler, |
| 1542 | }, |
| 1543 | { |
| 1544 | MethodName: "RebootOlt", |
| 1545 | Handler: _BBSim_RebootOlt_Handler, |
| 1546 | }, |
| 1547 | { |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1548 | MethodName: "GetONUs", |
| 1549 | Handler: _BBSim_GetONUs_Handler, |
| 1550 | }, |
| 1551 | { |
| 1552 | MethodName: "GetONU", |
| 1553 | Handler: _BBSim_GetONU_Handler, |
| 1554 | }, |
| 1555 | { |
| 1556 | MethodName: "SetLogLevel", |
| 1557 | Handler: _BBSim_SetLogLevel_Handler, |
| 1558 | }, |
| 1559 | { |
| 1560 | MethodName: "ShutdownONU", |
| 1561 | Handler: _BBSim_ShutdownONU_Handler, |
| 1562 | }, |
| 1563 | { |
| 1564 | MethodName: "PoweronONU", |
| 1565 | Handler: _BBSim_PoweronONU_Handler, |
| 1566 | }, |
| 1567 | { |
| 1568 | MethodName: "RestartEapol", |
| 1569 | Handler: _BBSim_RestartEapol_Handler, |
| 1570 | }, |
| 1571 | { |
| 1572 | MethodName: "RestartDhcp", |
| 1573 | Handler: _BBSim_RestartDhcp_Handler, |
| 1574 | }, |
Scott Baker | 41724b8 | 2020-01-21 19:54:53 -0800 | [diff] [blame] | 1575 | { |
| 1576 | MethodName: "SetAlarmIndication", |
| 1577 | Handler: _BBSim_SetAlarmIndication_Handler, |
| 1578 | }, |
Arjun E K | 57a7fcb | 2020-01-30 06:44:45 +0000 | [diff] [blame] | 1579 | { |
| 1580 | MethodName: "ChangeIgmpState", |
| 1581 | Handler: _BBSim_ChangeIgmpState_Handler, |
| 1582 | }, |
Anand S Katti | 0954135 | 2020-01-29 15:54:01 +0530 | [diff] [blame^] | 1583 | { |
| 1584 | MethodName: "GetOnuTrafficSchedulers", |
| 1585 | Handler: _BBSim_GetOnuTrafficSchedulers_Handler, |
| 1586 | }, |
Matteo Scandolo | a6a3aee | 2019-11-26 13:30:14 -0700 | [diff] [blame] | 1587 | }, |
| 1588 | Streams: []grpc.StreamDesc{}, |
| 1589 | Metadata: "api/bbsim/bbsim.proto", |
| 1590 | } |