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