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" |
| 10 | grpc "google.golang.org/grpc" |
| 11 | codes "google.golang.org/grpc/codes" |
| 12 | status "google.golang.org/grpc/status" |
| 13 | math "math" |
| 14 | ) |
| 15 | |
| 16 | // Reference imports to suppress errors if they are not otherwise used. |
| 17 | var _ = proto.Marshal |
| 18 | var _ = fmt.Errorf |
| 19 | var _ = math.Inf |
| 20 | |
| 21 | // This is a compile-time assertion to ensure that this generated file |
| 22 | // is compatible with the proto package it is being compiled against. |
| 23 | // A compilation error at this line likely means your copy of the |
| 24 | // proto package needs to be updated. |
| 25 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 26 | |
| 27 | type PONPort struct { |
| 28 | ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 29 | OperState string `protobuf:"bytes,2,opt,name=OperState,proto3" json:"OperState,omitempty"` |
| 30 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 31 | XXX_unrecognized []byte `json:"-"` |
| 32 | XXX_sizecache int32 `json:"-"` |
| 33 | } |
| 34 | |
| 35 | func (m *PONPort) Reset() { *m = PONPort{} } |
| 36 | func (m *PONPort) String() string { return proto.CompactTextString(m) } |
| 37 | func (*PONPort) ProtoMessage() {} |
| 38 | func (*PONPort) Descriptor() ([]byte, []int) { |
| 39 | return fileDescriptor_ef7750073d18011b, []int{0} |
| 40 | } |
| 41 | |
| 42 | func (m *PONPort) XXX_Unmarshal(b []byte) error { |
| 43 | return xxx_messageInfo_PONPort.Unmarshal(m, b) |
| 44 | } |
| 45 | func (m *PONPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 46 | return xxx_messageInfo_PONPort.Marshal(b, m, deterministic) |
| 47 | } |
| 48 | func (m *PONPort) XXX_Merge(src proto.Message) { |
| 49 | xxx_messageInfo_PONPort.Merge(m, src) |
| 50 | } |
| 51 | func (m *PONPort) XXX_Size() int { |
| 52 | return xxx_messageInfo_PONPort.Size(m) |
| 53 | } |
| 54 | func (m *PONPort) XXX_DiscardUnknown() { |
| 55 | xxx_messageInfo_PONPort.DiscardUnknown(m) |
| 56 | } |
| 57 | |
| 58 | var xxx_messageInfo_PONPort proto.InternalMessageInfo |
| 59 | |
| 60 | func (m *PONPort) GetID() int32 { |
| 61 | if m != nil { |
| 62 | return m.ID |
| 63 | } |
| 64 | return 0 |
| 65 | } |
| 66 | |
| 67 | func (m *PONPort) GetOperState() string { |
| 68 | if m != nil { |
| 69 | return m.OperState |
| 70 | } |
| 71 | return "" |
| 72 | } |
| 73 | |
| 74 | type NNIPort struct { |
| 75 | ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 76 | OperState string `protobuf:"bytes,2,opt,name=OperState,proto3" json:"OperState,omitempty"` |
| 77 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 78 | XXX_unrecognized []byte `json:"-"` |
| 79 | XXX_sizecache int32 `json:"-"` |
| 80 | } |
| 81 | |
| 82 | func (m *NNIPort) Reset() { *m = NNIPort{} } |
| 83 | func (m *NNIPort) String() string { return proto.CompactTextString(m) } |
| 84 | func (*NNIPort) ProtoMessage() {} |
| 85 | func (*NNIPort) Descriptor() ([]byte, []int) { |
| 86 | return fileDescriptor_ef7750073d18011b, []int{1} |
| 87 | } |
| 88 | |
| 89 | func (m *NNIPort) XXX_Unmarshal(b []byte) error { |
| 90 | return xxx_messageInfo_NNIPort.Unmarshal(m, b) |
| 91 | } |
| 92 | func (m *NNIPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 93 | return xxx_messageInfo_NNIPort.Marshal(b, m, deterministic) |
| 94 | } |
| 95 | func (m *NNIPort) XXX_Merge(src proto.Message) { |
| 96 | xxx_messageInfo_NNIPort.Merge(m, src) |
| 97 | } |
| 98 | func (m *NNIPort) XXX_Size() int { |
| 99 | return xxx_messageInfo_NNIPort.Size(m) |
| 100 | } |
| 101 | func (m *NNIPort) XXX_DiscardUnknown() { |
| 102 | xxx_messageInfo_NNIPort.DiscardUnknown(m) |
| 103 | } |
| 104 | |
| 105 | var xxx_messageInfo_NNIPort proto.InternalMessageInfo |
| 106 | |
| 107 | func (m *NNIPort) GetID() int32 { |
| 108 | if m != nil { |
| 109 | return m.ID |
| 110 | } |
| 111 | return 0 |
| 112 | } |
| 113 | |
| 114 | func (m *NNIPort) GetOperState() string { |
| 115 | if m != nil { |
| 116 | return m.OperState |
| 117 | } |
| 118 | return "" |
| 119 | } |
| 120 | |
| 121 | type Olt struct { |
| 122 | ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 123 | SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"` |
| 124 | OperState string `protobuf:"bytes,3,opt,name=OperState,proto3" json:"OperState,omitempty"` |
| 125 | InternalState string `protobuf:"bytes,4,opt,name=InternalState,proto3" json:"InternalState,omitempty"` |
| 126 | NNIPorts []*NNIPort `protobuf:"bytes,5,rep,name=NNIPorts,proto3" json:"NNIPorts,omitempty"` |
| 127 | PONPorts []*PONPort `protobuf:"bytes,6,rep,name=PONPorts,proto3" json:"PONPorts,omitempty"` |
| 128 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 129 | XXX_unrecognized []byte `json:"-"` |
| 130 | XXX_sizecache int32 `json:"-"` |
| 131 | } |
| 132 | |
| 133 | func (m *Olt) Reset() { *m = Olt{} } |
| 134 | func (m *Olt) String() string { return proto.CompactTextString(m) } |
| 135 | func (*Olt) ProtoMessage() {} |
| 136 | func (*Olt) Descriptor() ([]byte, []int) { |
| 137 | return fileDescriptor_ef7750073d18011b, []int{2} |
| 138 | } |
| 139 | |
| 140 | func (m *Olt) XXX_Unmarshal(b []byte) error { |
| 141 | return xxx_messageInfo_Olt.Unmarshal(m, b) |
| 142 | } |
| 143 | func (m *Olt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 144 | return xxx_messageInfo_Olt.Marshal(b, m, deterministic) |
| 145 | } |
| 146 | func (m *Olt) XXX_Merge(src proto.Message) { |
| 147 | xxx_messageInfo_Olt.Merge(m, src) |
| 148 | } |
| 149 | func (m *Olt) XXX_Size() int { |
| 150 | return xxx_messageInfo_Olt.Size(m) |
| 151 | } |
| 152 | func (m *Olt) XXX_DiscardUnknown() { |
| 153 | xxx_messageInfo_Olt.DiscardUnknown(m) |
| 154 | } |
| 155 | |
| 156 | var xxx_messageInfo_Olt proto.InternalMessageInfo |
| 157 | |
| 158 | func (m *Olt) GetID() int32 { |
| 159 | if m != nil { |
| 160 | return m.ID |
| 161 | } |
| 162 | return 0 |
| 163 | } |
| 164 | |
| 165 | func (m *Olt) GetSerialNumber() string { |
| 166 | if m != nil { |
| 167 | return m.SerialNumber |
| 168 | } |
| 169 | return "" |
| 170 | } |
| 171 | |
| 172 | func (m *Olt) GetOperState() string { |
| 173 | if m != nil { |
| 174 | return m.OperState |
| 175 | } |
| 176 | return "" |
| 177 | } |
| 178 | |
| 179 | func (m *Olt) GetInternalState() string { |
| 180 | if m != nil { |
| 181 | return m.InternalState |
| 182 | } |
| 183 | return "" |
| 184 | } |
| 185 | |
| 186 | func (m *Olt) GetNNIPorts() []*NNIPort { |
| 187 | if m != nil { |
| 188 | return m.NNIPorts |
| 189 | } |
| 190 | return nil |
| 191 | } |
| 192 | |
| 193 | func (m *Olt) GetPONPorts() []*PONPort { |
| 194 | if m != nil { |
| 195 | return m.PONPorts |
| 196 | } |
| 197 | return nil |
| 198 | } |
| 199 | |
| 200 | type ONU struct { |
| 201 | ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 202 | SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"` |
| 203 | OperState string `protobuf:"bytes,3,opt,name=OperState,proto3" json:"OperState,omitempty"` |
| 204 | InternalState string `protobuf:"bytes,4,opt,name=InternalState,proto3" json:"InternalState,omitempty"` |
| 205 | PonPortID int32 `protobuf:"varint,5,opt,name=PonPortID,proto3" json:"PonPortID,omitempty"` |
| 206 | STag int32 `protobuf:"varint,6,opt,name=STag,proto3" json:"STag,omitempty"` |
| 207 | CTag int32 `protobuf:"varint,7,opt,name=CTag,proto3" json:"CTag,omitempty"` |
| 208 | HwAddress string `protobuf:"bytes,8,opt,name=HwAddress,proto3" json:"HwAddress,omitempty"` |
| 209 | PortNo int32 `protobuf:"varint,9,opt,name=PortNo,proto3" json:"PortNo,omitempty"` |
| 210 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 211 | XXX_unrecognized []byte `json:"-"` |
| 212 | XXX_sizecache int32 `json:"-"` |
| 213 | } |
| 214 | |
| 215 | func (m *ONU) Reset() { *m = ONU{} } |
| 216 | func (m *ONU) String() string { return proto.CompactTextString(m) } |
| 217 | func (*ONU) ProtoMessage() {} |
| 218 | func (*ONU) Descriptor() ([]byte, []int) { |
| 219 | return fileDescriptor_ef7750073d18011b, []int{3} |
| 220 | } |
| 221 | |
| 222 | func (m *ONU) XXX_Unmarshal(b []byte) error { |
| 223 | return xxx_messageInfo_ONU.Unmarshal(m, b) |
| 224 | } |
| 225 | func (m *ONU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 226 | return xxx_messageInfo_ONU.Marshal(b, m, deterministic) |
| 227 | } |
| 228 | func (m *ONU) XXX_Merge(src proto.Message) { |
| 229 | xxx_messageInfo_ONU.Merge(m, src) |
| 230 | } |
| 231 | func (m *ONU) XXX_Size() int { |
| 232 | return xxx_messageInfo_ONU.Size(m) |
| 233 | } |
| 234 | func (m *ONU) XXX_DiscardUnknown() { |
| 235 | xxx_messageInfo_ONU.DiscardUnknown(m) |
| 236 | } |
| 237 | |
| 238 | var xxx_messageInfo_ONU proto.InternalMessageInfo |
| 239 | |
| 240 | func (m *ONU) GetID() int32 { |
| 241 | if m != nil { |
| 242 | return m.ID |
| 243 | } |
| 244 | return 0 |
| 245 | } |
| 246 | |
| 247 | func (m *ONU) GetSerialNumber() string { |
| 248 | if m != nil { |
| 249 | return m.SerialNumber |
| 250 | } |
| 251 | return "" |
| 252 | } |
| 253 | |
| 254 | func (m *ONU) GetOperState() string { |
| 255 | if m != nil { |
| 256 | return m.OperState |
| 257 | } |
| 258 | return "" |
| 259 | } |
| 260 | |
| 261 | func (m *ONU) GetInternalState() string { |
| 262 | if m != nil { |
| 263 | return m.InternalState |
| 264 | } |
| 265 | return "" |
| 266 | } |
| 267 | |
| 268 | func (m *ONU) GetPonPortID() int32 { |
| 269 | if m != nil { |
| 270 | return m.PonPortID |
| 271 | } |
| 272 | return 0 |
| 273 | } |
| 274 | |
| 275 | func (m *ONU) GetSTag() int32 { |
| 276 | if m != nil { |
| 277 | return m.STag |
| 278 | } |
| 279 | return 0 |
| 280 | } |
| 281 | |
| 282 | func (m *ONU) GetCTag() int32 { |
| 283 | if m != nil { |
| 284 | return m.CTag |
| 285 | } |
| 286 | return 0 |
| 287 | } |
| 288 | |
| 289 | func (m *ONU) GetHwAddress() string { |
| 290 | if m != nil { |
| 291 | return m.HwAddress |
| 292 | } |
| 293 | return "" |
| 294 | } |
| 295 | |
| 296 | func (m *ONU) GetPortNo() int32 { |
| 297 | if m != nil { |
| 298 | return m.PortNo |
| 299 | } |
| 300 | return 0 |
| 301 | } |
| 302 | |
| 303 | type ONUs struct { |
| 304 | Items []*ONU `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` |
| 305 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 306 | XXX_unrecognized []byte `json:"-"` |
| 307 | XXX_sizecache int32 `json:"-"` |
| 308 | } |
| 309 | |
| 310 | func (m *ONUs) Reset() { *m = ONUs{} } |
| 311 | func (m *ONUs) String() string { return proto.CompactTextString(m) } |
| 312 | func (*ONUs) ProtoMessage() {} |
| 313 | func (*ONUs) Descriptor() ([]byte, []int) { |
| 314 | return fileDescriptor_ef7750073d18011b, []int{4} |
| 315 | } |
| 316 | |
| 317 | func (m *ONUs) XXX_Unmarshal(b []byte) error { |
| 318 | return xxx_messageInfo_ONUs.Unmarshal(m, b) |
| 319 | } |
| 320 | func (m *ONUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 321 | return xxx_messageInfo_ONUs.Marshal(b, m, deterministic) |
| 322 | } |
| 323 | func (m *ONUs) XXX_Merge(src proto.Message) { |
| 324 | xxx_messageInfo_ONUs.Merge(m, src) |
| 325 | } |
| 326 | func (m *ONUs) XXX_Size() int { |
| 327 | return xxx_messageInfo_ONUs.Size(m) |
| 328 | } |
| 329 | func (m *ONUs) XXX_DiscardUnknown() { |
| 330 | xxx_messageInfo_ONUs.DiscardUnknown(m) |
| 331 | } |
| 332 | |
| 333 | var xxx_messageInfo_ONUs proto.InternalMessageInfo |
| 334 | |
| 335 | func (m *ONUs) GetItems() []*ONU { |
| 336 | if m != nil { |
| 337 | return m.Items |
| 338 | } |
| 339 | return nil |
| 340 | } |
| 341 | |
| 342 | type ONURequest struct { |
| 343 | SerialNumber string `protobuf:"bytes,1,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"` |
| 344 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 345 | XXX_unrecognized []byte `json:"-"` |
| 346 | XXX_sizecache int32 `json:"-"` |
| 347 | } |
| 348 | |
| 349 | func (m *ONURequest) Reset() { *m = ONURequest{} } |
| 350 | func (m *ONURequest) String() string { return proto.CompactTextString(m) } |
| 351 | func (*ONURequest) ProtoMessage() {} |
| 352 | func (*ONURequest) Descriptor() ([]byte, []int) { |
| 353 | return fileDescriptor_ef7750073d18011b, []int{5} |
| 354 | } |
| 355 | |
| 356 | func (m *ONURequest) XXX_Unmarshal(b []byte) error { |
| 357 | return xxx_messageInfo_ONURequest.Unmarshal(m, b) |
| 358 | } |
| 359 | func (m *ONURequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 360 | return xxx_messageInfo_ONURequest.Marshal(b, m, deterministic) |
| 361 | } |
| 362 | func (m *ONURequest) XXX_Merge(src proto.Message) { |
| 363 | xxx_messageInfo_ONURequest.Merge(m, src) |
| 364 | } |
| 365 | func (m *ONURequest) XXX_Size() int { |
| 366 | return xxx_messageInfo_ONURequest.Size(m) |
| 367 | } |
| 368 | func (m *ONURequest) XXX_DiscardUnknown() { |
| 369 | xxx_messageInfo_ONURequest.DiscardUnknown(m) |
| 370 | } |
| 371 | |
| 372 | var xxx_messageInfo_ONURequest proto.InternalMessageInfo |
| 373 | |
| 374 | func (m *ONURequest) GetSerialNumber() string { |
| 375 | if m != nil { |
| 376 | return m.SerialNumber |
| 377 | } |
| 378 | return "" |
| 379 | } |
| 380 | |
| 381 | type VersionNumber struct { |
| 382 | Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` |
| 383 | BuildTime string `protobuf:"bytes,2,opt,name=buildTime,proto3" json:"buildTime,omitempty"` |
| 384 | CommitHash string `protobuf:"bytes,3,opt,name=commitHash,proto3" json:"commitHash,omitempty"` |
| 385 | GitStatus string `protobuf:"bytes,4,opt,name=gitStatus,proto3" json:"gitStatus,omitempty"` |
| 386 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 387 | XXX_unrecognized []byte `json:"-"` |
| 388 | XXX_sizecache int32 `json:"-"` |
| 389 | } |
| 390 | |
| 391 | func (m *VersionNumber) Reset() { *m = VersionNumber{} } |
| 392 | func (m *VersionNumber) String() string { return proto.CompactTextString(m) } |
| 393 | func (*VersionNumber) ProtoMessage() {} |
| 394 | func (*VersionNumber) Descriptor() ([]byte, []int) { |
| 395 | return fileDescriptor_ef7750073d18011b, []int{6} |
| 396 | } |
| 397 | |
| 398 | func (m *VersionNumber) XXX_Unmarshal(b []byte) error { |
| 399 | return xxx_messageInfo_VersionNumber.Unmarshal(m, b) |
| 400 | } |
| 401 | func (m *VersionNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 402 | return xxx_messageInfo_VersionNumber.Marshal(b, m, deterministic) |
| 403 | } |
| 404 | func (m *VersionNumber) XXX_Merge(src proto.Message) { |
| 405 | xxx_messageInfo_VersionNumber.Merge(m, src) |
| 406 | } |
| 407 | func (m *VersionNumber) XXX_Size() int { |
| 408 | return xxx_messageInfo_VersionNumber.Size(m) |
| 409 | } |
| 410 | func (m *VersionNumber) XXX_DiscardUnknown() { |
| 411 | xxx_messageInfo_VersionNumber.DiscardUnknown(m) |
| 412 | } |
| 413 | |
| 414 | var xxx_messageInfo_VersionNumber proto.InternalMessageInfo |
| 415 | |
| 416 | func (m *VersionNumber) GetVersion() string { |
| 417 | if m != nil { |
| 418 | return m.Version |
| 419 | } |
| 420 | return "" |
| 421 | } |
| 422 | |
| 423 | func (m *VersionNumber) GetBuildTime() string { |
| 424 | if m != nil { |
| 425 | return m.BuildTime |
| 426 | } |
| 427 | return "" |
| 428 | } |
| 429 | |
| 430 | func (m *VersionNumber) GetCommitHash() string { |
| 431 | if m != nil { |
| 432 | return m.CommitHash |
| 433 | } |
| 434 | return "" |
| 435 | } |
| 436 | |
| 437 | func (m *VersionNumber) GetGitStatus() string { |
| 438 | if m != nil { |
| 439 | return m.GitStatus |
| 440 | } |
| 441 | return "" |
| 442 | } |
| 443 | |
| 444 | type LogLevel struct { |
| 445 | Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"` |
| 446 | Caller bool `protobuf:"varint,2,opt,name=caller,proto3" json:"caller,omitempty"` |
| 447 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 448 | XXX_unrecognized []byte `json:"-"` |
| 449 | XXX_sizecache int32 `json:"-"` |
| 450 | } |
| 451 | |
| 452 | func (m *LogLevel) Reset() { *m = LogLevel{} } |
| 453 | func (m *LogLevel) String() string { return proto.CompactTextString(m) } |
| 454 | func (*LogLevel) ProtoMessage() {} |
| 455 | func (*LogLevel) Descriptor() ([]byte, []int) { |
| 456 | return fileDescriptor_ef7750073d18011b, []int{7} |
| 457 | } |
| 458 | |
| 459 | func (m *LogLevel) XXX_Unmarshal(b []byte) error { |
| 460 | return xxx_messageInfo_LogLevel.Unmarshal(m, b) |
| 461 | } |
| 462 | func (m *LogLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 463 | return xxx_messageInfo_LogLevel.Marshal(b, m, deterministic) |
| 464 | } |
| 465 | func (m *LogLevel) XXX_Merge(src proto.Message) { |
| 466 | xxx_messageInfo_LogLevel.Merge(m, src) |
| 467 | } |
| 468 | func (m *LogLevel) XXX_Size() int { |
| 469 | return xxx_messageInfo_LogLevel.Size(m) |
| 470 | } |
| 471 | func (m *LogLevel) XXX_DiscardUnknown() { |
| 472 | xxx_messageInfo_LogLevel.DiscardUnknown(m) |
| 473 | } |
| 474 | |
| 475 | var xxx_messageInfo_LogLevel proto.InternalMessageInfo |
| 476 | |
| 477 | func (m *LogLevel) GetLevel() string { |
| 478 | if m != nil { |
| 479 | return m.Level |
| 480 | } |
| 481 | return "" |
| 482 | } |
| 483 | |
| 484 | func (m *LogLevel) GetCaller() bool { |
| 485 | if m != nil { |
| 486 | return m.Caller |
| 487 | } |
| 488 | return false |
| 489 | } |
| 490 | |
| 491 | type Response struct { |
| 492 | StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` |
| 493 | Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` |
| 494 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 495 | XXX_unrecognized []byte `json:"-"` |
| 496 | XXX_sizecache int32 `json:"-"` |
| 497 | } |
| 498 | |
| 499 | func (m *Response) Reset() { *m = Response{} } |
| 500 | func (m *Response) String() string { return proto.CompactTextString(m) } |
| 501 | func (*Response) ProtoMessage() {} |
| 502 | func (*Response) Descriptor() ([]byte, []int) { |
| 503 | return fileDescriptor_ef7750073d18011b, []int{8} |
| 504 | } |
| 505 | |
| 506 | func (m *Response) XXX_Unmarshal(b []byte) error { |
| 507 | return xxx_messageInfo_Response.Unmarshal(m, b) |
| 508 | } |
| 509 | func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 510 | return xxx_messageInfo_Response.Marshal(b, m, deterministic) |
| 511 | } |
| 512 | func (m *Response) XXX_Merge(src proto.Message) { |
| 513 | xxx_messageInfo_Response.Merge(m, src) |
| 514 | } |
| 515 | func (m *Response) XXX_Size() int { |
| 516 | return xxx_messageInfo_Response.Size(m) |
| 517 | } |
| 518 | func (m *Response) XXX_DiscardUnknown() { |
| 519 | xxx_messageInfo_Response.DiscardUnknown(m) |
| 520 | } |
| 521 | |
| 522 | var xxx_messageInfo_Response proto.InternalMessageInfo |
| 523 | |
| 524 | func (m *Response) GetStatusCode() int32 { |
| 525 | if m != nil { |
| 526 | return m.StatusCode |
| 527 | } |
| 528 | return 0 |
| 529 | } |
| 530 | |
| 531 | func (m *Response) GetMessage() string { |
| 532 | if m != nil { |
| 533 | return m.Message |
| 534 | } |
| 535 | return "" |
| 536 | } |
| 537 | |
| 538 | type Empty struct { |
| 539 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 540 | XXX_unrecognized []byte `json:"-"` |
| 541 | XXX_sizecache int32 `json:"-"` |
| 542 | } |
| 543 | |
| 544 | func (m *Empty) Reset() { *m = Empty{} } |
| 545 | func (m *Empty) String() string { return proto.CompactTextString(m) } |
| 546 | func (*Empty) ProtoMessage() {} |
| 547 | func (*Empty) Descriptor() ([]byte, []int) { |
| 548 | return fileDescriptor_ef7750073d18011b, []int{9} |
| 549 | } |
| 550 | |
| 551 | func (m *Empty) XXX_Unmarshal(b []byte) error { |
| 552 | return xxx_messageInfo_Empty.Unmarshal(m, b) |
| 553 | } |
| 554 | func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 555 | return xxx_messageInfo_Empty.Marshal(b, m, deterministic) |
| 556 | } |
| 557 | func (m *Empty) XXX_Merge(src proto.Message) { |
| 558 | xxx_messageInfo_Empty.Merge(m, src) |
| 559 | } |
| 560 | func (m *Empty) XXX_Size() int { |
| 561 | return xxx_messageInfo_Empty.Size(m) |
| 562 | } |
| 563 | func (m *Empty) XXX_DiscardUnknown() { |
| 564 | xxx_messageInfo_Empty.DiscardUnknown(m) |
| 565 | } |
| 566 | |
| 567 | var xxx_messageInfo_Empty proto.InternalMessageInfo |
| 568 | |
| 569 | func init() { |
| 570 | proto.RegisterType((*PONPort)(nil), "bbsim.PONPort") |
| 571 | proto.RegisterType((*NNIPort)(nil), "bbsim.NNIPort") |
| 572 | proto.RegisterType((*Olt)(nil), "bbsim.Olt") |
| 573 | proto.RegisterType((*ONU)(nil), "bbsim.ONU") |
| 574 | proto.RegisterType((*ONUs)(nil), "bbsim.ONUs") |
| 575 | proto.RegisterType((*ONURequest)(nil), "bbsim.ONURequest") |
| 576 | proto.RegisterType((*VersionNumber)(nil), "bbsim.VersionNumber") |
| 577 | proto.RegisterType((*LogLevel)(nil), "bbsim.LogLevel") |
| 578 | proto.RegisterType((*Response)(nil), "bbsim.Response") |
| 579 | proto.RegisterType((*Empty)(nil), "bbsim.Empty") |
| 580 | } |
| 581 | |
| 582 | func init() { proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b) } |
| 583 | |
| 584 | var fileDescriptor_ef7750073d18011b = []byte{ |
| 585 | // 593 bytes of a gzipped FileDescriptorProto |
| 586 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x94, 0xd1, 0x6e, 0xda, 0x30, |
| 587 | 0x14, 0x86, 0x13, 0x20, 0x04, 0x4e, 0x68, 0xa7, 0x59, 0xdd, 0x14, 0xa1, 0x6a, 0x43, 0x56, 0x35, |
| 588 | 0xb1, 0x5d, 0xb4, 0x1b, 0x4c, 0xda, 0x6e, 0xd7, 0x82, 0x56, 0xa4, 0x2a, 0xa0, 0xa4, 0xec, 0x76, |
| 589 | 0x0a, 0xc4, 0x82, 0x48, 0x49, 0x9c, 0xc5, 0xa6, 0x68, 0x0f, 0xb0, 0x77, 0xda, 0x8b, 0xec, 0x61, |
| 590 | 0x76, 0x37, 0x39, 0x76, 0x02, 0x29, 0x9a, 0xd4, 0xed, 0xa6, 0x37, 0xc8, 0xe7, 0x3b, 0xe7, 0x3f, |
| 591 | 0xb6, 0xff, 0x63, 0x02, 0xcf, 0xfc, 0x34, 0xbc, 0x58, 0x2c, 0x58, 0x18, 0xcb, 0xdf, 0xf3, 0x34, |
| 592 | 0xa3, 0x9c, 0x22, 0x23, 0x0f, 0xf0, 0x07, 0x30, 0x67, 0x53, 0x67, 0x46, 0x33, 0x8e, 0x8e, 0xa1, |
| 593 | 0x36, 0x19, 0xd9, 0x7a, 0x4f, 0xef, 0x1b, 0x6e, 0x6d, 0x32, 0x42, 0xa7, 0xd0, 0x9e, 0xa6, 0x24, |
| 594 | 0xf3, 0xb8, 0xcf, 0x89, 0x5d, 0xeb, 0xe9, 0xfd, 0xb6, 0xbb, 0x03, 0x42, 0xe8, 0x38, 0x93, 0xff, |
| 595 | 0x10, 0xfe, 0xd2, 0xa1, 0x3e, 0x8d, 0x0e, 0x55, 0x18, 0x3a, 0x1e, 0xc9, 0x42, 0x3f, 0x72, 0x36, |
| 596 | 0xf1, 0x82, 0x64, 0x4a, 0x58, 0x61, 0xd5, 0xce, 0xf5, 0x7b, 0x9d, 0xd1, 0x19, 0x1c, 0x4d, 0x12, |
| 597 | 0x4e, 0xb2, 0xc4, 0x8f, 0x64, 0x45, 0x23, 0xaf, 0xa8, 0x42, 0xf4, 0x06, 0x5a, 0xea, 0xe0, 0xcc, |
| 598 | 0x36, 0x7a, 0xf5, 0xbe, 0x35, 0x38, 0x3e, 0x97, 0xc6, 0x28, 0xec, 0x96, 0x79, 0x51, 0xab, 0xdc, |
| 599 | 0x61, 0x76, 0xb3, 0x52, 0xab, 0xb0, 0x5b, 0xe6, 0xf1, 0x6f, 0x71, 0x2f, 0x67, 0xfe, 0x68, 0xf7, |
| 600 | 0x3a, 0x85, 0xf6, 0x8c, 0x26, 0xe2, 0x2c, 0x93, 0x91, 0x6d, 0xe4, 0xdb, 0xef, 0x00, 0x42, 0xd0, |
| 601 | 0xf0, 0x6e, 0xfd, 0x95, 0xdd, 0xcc, 0x13, 0xf9, 0x5a, 0xb0, 0x2b, 0xc1, 0x4c, 0xc9, 0xc4, 0x5a, |
| 602 | 0x74, 0xb9, 0xde, 0x7e, 0x0a, 0x82, 0x8c, 0x30, 0x66, 0xb7, 0xe4, 0x49, 0x4a, 0x80, 0x9e, 0x43, |
| 603 | 0x53, 0xf4, 0x73, 0xa8, 0xdd, 0xce, 0x35, 0x2a, 0xc2, 0x7d, 0x68, 0x4c, 0x9d, 0x39, 0x43, 0x3d, |
| 604 | 0x30, 0x42, 0x4e, 0x62, 0x66, 0xeb, 0xb9, 0x59, 0xa0, 0xcc, 0x9a, 0x3a, 0x73, 0x57, 0x26, 0xf0, |
| 605 | 0x5b, 0x00, 0x11, 0x91, 0x6f, 0x1b, 0xc2, 0xf8, 0x81, 0x37, 0xfa, 0xa1, 0x37, 0xf8, 0x87, 0x0e, |
| 606 | 0x47, 0x5f, 0x48, 0xc6, 0x42, 0x9a, 0x28, 0xb7, 0x6c, 0x30, 0xef, 0x24, 0x50, 0x82, 0x22, 0x14, |
| 607 | 0xa7, 0x5f, 0x6c, 0xc2, 0x28, 0xb8, 0x0d, 0xe3, 0xf2, 0xe5, 0x95, 0x00, 0xbd, 0x00, 0x58, 0xd2, |
| 608 | 0x38, 0x0e, 0xf9, 0xb5, 0xcf, 0xd6, 0xca, 0xe6, 0x3d, 0x22, 0xd4, 0xab, 0x90, 0x0b, 0x37, 0x37, |
| 609 | 0x4c, 0x79, 0xbc, 0x03, 0xf8, 0x23, 0xb4, 0x6e, 0xe8, 0xea, 0x86, 0xdc, 0x91, 0x08, 0x9d, 0x80, |
| 610 | 0x11, 0x89, 0x85, 0xda, 0x5f, 0x06, 0xc2, 0x9d, 0xa5, 0x1f, 0x45, 0x6a, 0xc6, 0x2d, 0x57, 0x45, |
| 611 | 0x78, 0x0c, 0x2d, 0x97, 0xb0, 0x94, 0x26, 0x8c, 0xa0, 0x97, 0x60, 0xb1, 0xbc, 0xdf, 0xd7, 0x25, |
| 612 | 0x0d, 0x88, 0x7a, 0x26, 0x20, 0xd1, 0x15, 0x0d, 0x88, 0xb8, 0x5c, 0x4c, 0x18, 0xf3, 0x57, 0xc5, |
| 613 | 0x05, 0x8a, 0x10, 0x9b, 0x60, 0x8c, 0xe3, 0x94, 0x7f, 0x1f, 0xfc, 0xac, 0x83, 0x71, 0x79, 0xe9, |
| 614 | 0x85, 0x31, 0xba, 0x00, 0x53, 0x59, 0x83, 0x3a, 0xca, 0xeb, 0xbc, 0xa4, 0x7b, 0xa2, 0xa2, 0x8a, |
| 615 | 0x71, 0x58, 0x43, 0x67, 0xd0, 0xfc, 0x4c, 0xb8, 0xf8, 0xfb, 0x55, 0xeb, 0xcb, 0x49, 0x45, 0x1c, |
| 616 | 0x6b, 0xe8, 0x15, 0x98, 0xa2, 0x4a, 0x4c, 0xb4, 0x5a, 0x66, 0xed, 0x06, 0xca, 0xb0, 0x86, 0x5e, |
| 617 | 0xcb, 0x6e, 0xce, 0x1c, 0x3d, 0xdd, 0x9b, 0xb4, 0x9c, 0x6d, 0x77, 0x6f, 0xf8, 0x58, 0x43, 0xef, |
| 618 | 0xc0, 0xf2, 0x08, 0x2f, 0x0d, 0x7c, 0xa2, 0x92, 0x05, 0xe8, 0xde, 0x07, 0x58, 0x43, 0x43, 0xb0, |
| 619 | 0xbc, 0xf5, 0x86, 0x07, 0x74, 0x9b, 0xfc, 0x65, 0x8b, 0x42, 0x54, 0xb8, 0x8b, 0x35, 0x34, 0x00, |
| 620 | 0x98, 0xd1, 0x2d, 0xc9, 0xe8, 0x3f, 0x68, 0xde, 0x43, 0xc7, 0x25, 0x8c, 0xfb, 0x19, 0x1f, 0xfb, |
| 621 | 0x29, 0x8d, 0x1e, 0xa8, 0x1a, 0x82, 0xa5, 0x54, 0xa3, 0xf5, 0x32, 0x7d, 0x98, 0x68, 0xd1, 0xcc, |
| 622 | 0x3f, 0xbe, 0xc3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x15, 0x8d, 0x8c, 0x02, 0x95, 0x05, 0x00, |
| 623 | 0x00, |
| 624 | } |
| 625 | |
| 626 | // Reference imports to suppress errors if they are not otherwise used. |
| 627 | var _ context.Context |
| 628 | var _ grpc.ClientConn |
| 629 | |
| 630 | // This is a compile-time assertion to ensure that this generated file |
| 631 | // is compatible with the grpc package it is being compiled against. |
| 632 | const _ = grpc.SupportPackageIsVersion4 |
| 633 | |
| 634 | // BBSimClient is the client API for BBSim service. |
| 635 | // |
| 636 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 637 | type BBSimClient interface { |
| 638 | Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error) |
| 639 | GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error) |
| 640 | GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) |
| 641 | GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error) |
| 642 | SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) |
| 643 | ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
| 644 | PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
| 645 | RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
| 646 | RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) |
| 647 | } |
| 648 | |
| 649 | type bBSimClient struct { |
| 650 | cc *grpc.ClientConn |
| 651 | } |
| 652 | |
| 653 | func NewBBSimClient(cc *grpc.ClientConn) BBSimClient { |
| 654 | return &bBSimClient{cc} |
| 655 | } |
| 656 | |
| 657 | func (c *bBSimClient) Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error) { |
| 658 | out := new(VersionNumber) |
| 659 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/Version", in, out, opts...) |
| 660 | if err != nil { |
| 661 | return nil, err |
| 662 | } |
| 663 | return out, nil |
| 664 | } |
| 665 | |
| 666 | func (c *bBSimClient) GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error) { |
| 667 | out := new(Olt) |
| 668 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOlt", in, out, opts...) |
| 669 | if err != nil { |
| 670 | return nil, err |
| 671 | } |
| 672 | return out, nil |
| 673 | } |
| 674 | |
| 675 | func (c *bBSimClient) GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) { |
| 676 | out := new(ONUs) |
| 677 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONUs", in, out, opts...) |
| 678 | if err != nil { |
| 679 | return nil, err |
| 680 | } |
| 681 | return out, nil |
| 682 | } |
| 683 | |
| 684 | func (c *bBSimClient) GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error) { |
| 685 | out := new(ONU) |
| 686 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONU", in, out, opts...) |
| 687 | if err != nil { |
| 688 | return nil, err |
| 689 | } |
| 690 | return out, nil |
| 691 | } |
| 692 | |
| 693 | func (c *bBSimClient) SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) { |
| 694 | out := new(LogLevel) |
| 695 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetLogLevel", in, out, opts...) |
| 696 | if err != nil { |
| 697 | return nil, err |
| 698 | } |
| 699 | return out, nil |
| 700 | } |
| 701 | |
| 702 | func (c *bBSimClient) ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 703 | out := new(Response) |
| 704 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownONU", in, out, opts...) |
| 705 | if err != nil { |
| 706 | return nil, err |
| 707 | } |
| 708 | return out, nil |
| 709 | } |
| 710 | |
| 711 | func (c *bBSimClient) PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 712 | out := new(Response) |
| 713 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronONU", in, out, opts...) |
| 714 | if err != nil { |
| 715 | return nil, err |
| 716 | } |
| 717 | return out, nil |
| 718 | } |
| 719 | |
| 720 | func (c *bBSimClient) RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 721 | out := new(Response) |
| 722 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartEapol", in, out, opts...) |
| 723 | if err != nil { |
| 724 | return nil, err |
| 725 | } |
| 726 | return out, nil |
| 727 | } |
| 728 | |
| 729 | func (c *bBSimClient) RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) { |
| 730 | out := new(Response) |
| 731 | err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartDhcp", in, out, opts...) |
| 732 | if err != nil { |
| 733 | return nil, err |
| 734 | } |
| 735 | return out, nil |
| 736 | } |
| 737 | |
| 738 | // BBSimServer is the server API for BBSim service. |
| 739 | type BBSimServer interface { |
| 740 | Version(context.Context, *Empty) (*VersionNumber, error) |
| 741 | GetOlt(context.Context, *Empty) (*Olt, error) |
| 742 | GetONUs(context.Context, *Empty) (*ONUs, error) |
| 743 | GetONU(context.Context, *ONURequest) (*ONU, error) |
| 744 | SetLogLevel(context.Context, *LogLevel) (*LogLevel, error) |
| 745 | ShutdownONU(context.Context, *ONURequest) (*Response, error) |
| 746 | PoweronONU(context.Context, *ONURequest) (*Response, error) |
| 747 | RestartEapol(context.Context, *ONURequest) (*Response, error) |
| 748 | RestartDhcp(context.Context, *ONURequest) (*Response, error) |
| 749 | } |
| 750 | |
| 751 | // UnimplementedBBSimServer can be embedded to have forward compatible implementations. |
| 752 | type UnimplementedBBSimServer struct { |
| 753 | } |
| 754 | |
| 755 | func (*UnimplementedBBSimServer) Version(ctx context.Context, req *Empty) (*VersionNumber, error) { |
| 756 | return nil, status.Errorf(codes.Unimplemented, "method Version not implemented") |
| 757 | } |
| 758 | func (*UnimplementedBBSimServer) GetOlt(ctx context.Context, req *Empty) (*Olt, error) { |
| 759 | return nil, status.Errorf(codes.Unimplemented, "method GetOlt not implemented") |
| 760 | } |
| 761 | func (*UnimplementedBBSimServer) GetONUs(ctx context.Context, req *Empty) (*ONUs, error) { |
| 762 | return nil, status.Errorf(codes.Unimplemented, "method GetONUs not implemented") |
| 763 | } |
| 764 | func (*UnimplementedBBSimServer) GetONU(ctx context.Context, req *ONURequest) (*ONU, error) { |
| 765 | return nil, status.Errorf(codes.Unimplemented, "method GetONU not implemented") |
| 766 | } |
| 767 | func (*UnimplementedBBSimServer) SetLogLevel(ctx context.Context, req *LogLevel) (*LogLevel, error) { |
| 768 | return nil, status.Errorf(codes.Unimplemented, "method SetLogLevel not implemented") |
| 769 | } |
| 770 | func (*UnimplementedBBSimServer) ShutdownONU(ctx context.Context, req *ONURequest) (*Response, error) { |
| 771 | return nil, status.Errorf(codes.Unimplemented, "method ShutdownONU not implemented") |
| 772 | } |
| 773 | func (*UnimplementedBBSimServer) PoweronONU(ctx context.Context, req *ONURequest) (*Response, error) { |
| 774 | return nil, status.Errorf(codes.Unimplemented, "method PoweronONU not implemented") |
| 775 | } |
| 776 | func (*UnimplementedBBSimServer) RestartEapol(ctx context.Context, req *ONURequest) (*Response, error) { |
| 777 | return nil, status.Errorf(codes.Unimplemented, "method RestartEapol not implemented") |
| 778 | } |
| 779 | func (*UnimplementedBBSimServer) RestartDhcp(ctx context.Context, req *ONURequest) (*Response, error) { |
| 780 | return nil, status.Errorf(codes.Unimplemented, "method RestartDhcp not implemented") |
| 781 | } |
| 782 | |
| 783 | func RegisterBBSimServer(s *grpc.Server, srv BBSimServer) { |
| 784 | s.RegisterService(&_BBSim_serviceDesc, srv) |
| 785 | } |
| 786 | |
| 787 | func _BBSim_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 788 | in := new(Empty) |
| 789 | if err := dec(in); err != nil { |
| 790 | return nil, err |
| 791 | } |
| 792 | if interceptor == nil { |
| 793 | return srv.(BBSimServer).Version(ctx, in) |
| 794 | } |
| 795 | info := &grpc.UnaryServerInfo{ |
| 796 | Server: srv, |
| 797 | FullMethod: "/bbsim.BBSim/Version", |
| 798 | } |
| 799 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 800 | return srv.(BBSimServer).Version(ctx, req.(*Empty)) |
| 801 | } |
| 802 | return interceptor(ctx, in, info, handler) |
| 803 | } |
| 804 | |
| 805 | func _BBSim_GetOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 806 | in := new(Empty) |
| 807 | if err := dec(in); err != nil { |
| 808 | return nil, err |
| 809 | } |
| 810 | if interceptor == nil { |
| 811 | return srv.(BBSimServer).GetOlt(ctx, in) |
| 812 | } |
| 813 | info := &grpc.UnaryServerInfo{ |
| 814 | Server: srv, |
| 815 | FullMethod: "/bbsim.BBSim/GetOlt", |
| 816 | } |
| 817 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 818 | return srv.(BBSimServer).GetOlt(ctx, req.(*Empty)) |
| 819 | } |
| 820 | return interceptor(ctx, in, info, handler) |
| 821 | } |
| 822 | |
| 823 | func _BBSim_GetONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 824 | in := new(Empty) |
| 825 | if err := dec(in); err != nil { |
| 826 | return nil, err |
| 827 | } |
| 828 | if interceptor == nil { |
| 829 | return srv.(BBSimServer).GetONUs(ctx, in) |
| 830 | } |
| 831 | info := &grpc.UnaryServerInfo{ |
| 832 | Server: srv, |
| 833 | FullMethod: "/bbsim.BBSim/GetONUs", |
| 834 | } |
| 835 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 836 | return srv.(BBSimServer).GetONUs(ctx, req.(*Empty)) |
| 837 | } |
| 838 | return interceptor(ctx, in, info, handler) |
| 839 | } |
| 840 | |
| 841 | func _BBSim_GetONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 842 | in := new(ONURequest) |
| 843 | if err := dec(in); err != nil { |
| 844 | return nil, err |
| 845 | } |
| 846 | if interceptor == nil { |
| 847 | return srv.(BBSimServer).GetONU(ctx, in) |
| 848 | } |
| 849 | info := &grpc.UnaryServerInfo{ |
| 850 | Server: srv, |
| 851 | FullMethod: "/bbsim.BBSim/GetONU", |
| 852 | } |
| 853 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 854 | return srv.(BBSimServer).GetONU(ctx, req.(*ONURequest)) |
| 855 | } |
| 856 | return interceptor(ctx, in, info, handler) |
| 857 | } |
| 858 | |
| 859 | func _BBSim_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 860 | in := new(LogLevel) |
| 861 | if err := dec(in); err != nil { |
| 862 | return nil, err |
| 863 | } |
| 864 | if interceptor == nil { |
| 865 | return srv.(BBSimServer).SetLogLevel(ctx, in) |
| 866 | } |
| 867 | info := &grpc.UnaryServerInfo{ |
| 868 | Server: srv, |
| 869 | FullMethod: "/bbsim.BBSim/SetLogLevel", |
| 870 | } |
| 871 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 872 | return srv.(BBSimServer).SetLogLevel(ctx, req.(*LogLevel)) |
| 873 | } |
| 874 | return interceptor(ctx, in, info, handler) |
| 875 | } |
| 876 | |
| 877 | func _BBSim_ShutdownONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 878 | in := new(ONURequest) |
| 879 | if err := dec(in); err != nil { |
| 880 | return nil, err |
| 881 | } |
| 882 | if interceptor == nil { |
| 883 | return srv.(BBSimServer).ShutdownONU(ctx, in) |
| 884 | } |
| 885 | info := &grpc.UnaryServerInfo{ |
| 886 | Server: srv, |
| 887 | FullMethod: "/bbsim.BBSim/ShutdownONU", |
| 888 | } |
| 889 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 890 | return srv.(BBSimServer).ShutdownONU(ctx, req.(*ONURequest)) |
| 891 | } |
| 892 | return interceptor(ctx, in, info, handler) |
| 893 | } |
| 894 | |
| 895 | func _BBSim_PoweronONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 896 | in := new(ONURequest) |
| 897 | if err := dec(in); err != nil { |
| 898 | return nil, err |
| 899 | } |
| 900 | if interceptor == nil { |
| 901 | return srv.(BBSimServer).PoweronONU(ctx, in) |
| 902 | } |
| 903 | info := &grpc.UnaryServerInfo{ |
| 904 | Server: srv, |
| 905 | FullMethod: "/bbsim.BBSim/PoweronONU", |
| 906 | } |
| 907 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 908 | return srv.(BBSimServer).PoweronONU(ctx, req.(*ONURequest)) |
| 909 | } |
| 910 | return interceptor(ctx, in, info, handler) |
| 911 | } |
| 912 | |
| 913 | func _BBSim_RestartEapol_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 914 | in := new(ONURequest) |
| 915 | if err := dec(in); err != nil { |
| 916 | return nil, err |
| 917 | } |
| 918 | if interceptor == nil { |
| 919 | return srv.(BBSimServer).RestartEapol(ctx, in) |
| 920 | } |
| 921 | info := &grpc.UnaryServerInfo{ |
| 922 | Server: srv, |
| 923 | FullMethod: "/bbsim.BBSim/RestartEapol", |
| 924 | } |
| 925 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 926 | return srv.(BBSimServer).RestartEapol(ctx, req.(*ONURequest)) |
| 927 | } |
| 928 | return interceptor(ctx, in, info, handler) |
| 929 | } |
| 930 | |
| 931 | func _BBSim_RestartDhcp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 932 | in := new(ONURequest) |
| 933 | if err := dec(in); err != nil { |
| 934 | return nil, err |
| 935 | } |
| 936 | if interceptor == nil { |
| 937 | return srv.(BBSimServer).RestartDhcp(ctx, in) |
| 938 | } |
| 939 | info := &grpc.UnaryServerInfo{ |
| 940 | Server: srv, |
| 941 | FullMethod: "/bbsim.BBSim/RestartDhcp", |
| 942 | } |
| 943 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 944 | return srv.(BBSimServer).RestartDhcp(ctx, req.(*ONURequest)) |
| 945 | } |
| 946 | return interceptor(ctx, in, info, handler) |
| 947 | } |
| 948 | |
| 949 | var _BBSim_serviceDesc = grpc.ServiceDesc{ |
| 950 | ServiceName: "bbsim.BBSim", |
| 951 | HandlerType: (*BBSimServer)(nil), |
| 952 | Methods: []grpc.MethodDesc{ |
| 953 | { |
| 954 | MethodName: "Version", |
| 955 | Handler: _BBSim_Version_Handler, |
| 956 | }, |
| 957 | { |
| 958 | MethodName: "GetOlt", |
| 959 | Handler: _BBSim_GetOlt_Handler, |
| 960 | }, |
| 961 | { |
| 962 | MethodName: "GetONUs", |
| 963 | Handler: _BBSim_GetONUs_Handler, |
| 964 | }, |
| 965 | { |
| 966 | MethodName: "GetONU", |
| 967 | Handler: _BBSim_GetONU_Handler, |
| 968 | }, |
| 969 | { |
| 970 | MethodName: "SetLogLevel", |
| 971 | Handler: _BBSim_SetLogLevel_Handler, |
| 972 | }, |
| 973 | { |
| 974 | MethodName: "ShutdownONU", |
| 975 | Handler: _BBSim_ShutdownONU_Handler, |
| 976 | }, |
| 977 | { |
| 978 | MethodName: "PoweronONU", |
| 979 | Handler: _BBSim_PoweronONU_Handler, |
| 980 | }, |
| 981 | { |
| 982 | MethodName: "RestartEapol", |
| 983 | Handler: _BBSim_RestartEapol_Handler, |
| 984 | }, |
| 985 | { |
| 986 | MethodName: "RestartDhcp", |
| 987 | Handler: _BBSim_RestartDhcp_Handler, |
| 988 | }, |
| 989 | }, |
| 990 | Streams: []grpc.StreamDesc{}, |
| 991 | Metadata: "api/bbsim/bbsim.proto", |
| 992 | } |