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