blob: 3b4d99aa3badff2bf0f900e4c1eb2fe6fe65100f [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"
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 math "math"
12)
13
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = math.Inf
18
19// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
24
Scott Baker41724b82020-01-21 19:54:53 -080025// These types correspond to the messages permitted in the oneof
26// in AlarmIndication in the openolt protos
27type AlarmType_Types int32
28
29const (
30 AlarmType_LOS AlarmType_Types = 0
31 AlarmType_DYING_GASP AlarmType_Types = 1
32 AlarmType_ONU_ALARM AlarmType_Types = 2
33 AlarmType_ONU_STARTUP_FAILURE AlarmType_Types = 3
34 AlarmType_ONU_SIGNAL_DEGRADE AlarmType_Types = 4
35 AlarmType_ONU_DRIFT_OF_WINDOW AlarmType_Types = 5
36 AlarmType_ONU_LOSS_OF_OMCI_CHANNEL AlarmType_Types = 6
37 AlarmType_ONU_SIGNALS_FAILURE AlarmType_Types = 7
38 AlarmType_ONU_TRANSMISSION_INTERFERENCE_WARNING AlarmType_Types = 8
39 AlarmType_ONU_ACTIVATION_FAILURE AlarmType_Types = 9
40 AlarmType_ONU_PROCESSING_ERROR AlarmType_Types = 10
41 AlarmType_ONU_LOSS_OF_KEY_SYNC_FAILURE AlarmType_Types = 11
42 AlarmType_ONU_ITU_PON_STATS AlarmType_Types = 12
43 // These break out ONU_ALARM, which is a single message, but
44 // includes statuses for these six alarms.
45 AlarmType_ONU_ALARM_LOS AlarmType_Types = 13
46 AlarmType_ONU_ALARM_LOB AlarmType_Types = 14
47 AlarmType_ONU_ALARM_LOPC_MISS AlarmType_Types = 15
48 AlarmType_ONU_ALARM_LOPC_MIC_ERROR AlarmType_Types = 16
49 AlarmType_ONU_ALARM_LOFI AlarmType_Types = 17
50 AlarmType_ONU_ALARM_LOAMI AlarmType_Types = 18
51)
52
53var AlarmType_Types_name = map[int32]string{
54 0: "LOS",
55 1: "DYING_GASP",
56 2: "ONU_ALARM",
57 3: "ONU_STARTUP_FAILURE",
58 4: "ONU_SIGNAL_DEGRADE",
59 5: "ONU_DRIFT_OF_WINDOW",
60 6: "ONU_LOSS_OF_OMCI_CHANNEL",
61 7: "ONU_SIGNALS_FAILURE",
62 8: "ONU_TRANSMISSION_INTERFERENCE_WARNING",
63 9: "ONU_ACTIVATION_FAILURE",
64 10: "ONU_PROCESSING_ERROR",
65 11: "ONU_LOSS_OF_KEY_SYNC_FAILURE",
66 12: "ONU_ITU_PON_STATS",
67 13: "ONU_ALARM_LOS",
68 14: "ONU_ALARM_LOB",
69 15: "ONU_ALARM_LOPC_MISS",
70 16: "ONU_ALARM_LOPC_MIC_ERROR",
71 17: "ONU_ALARM_LOFI",
72 18: "ONU_ALARM_LOAMI",
73}
74
75var AlarmType_Types_value = map[string]int32{
76 "LOS": 0,
77 "DYING_GASP": 1,
78 "ONU_ALARM": 2,
79 "ONU_STARTUP_FAILURE": 3,
80 "ONU_SIGNAL_DEGRADE": 4,
81 "ONU_DRIFT_OF_WINDOW": 5,
82 "ONU_LOSS_OF_OMCI_CHANNEL": 6,
83 "ONU_SIGNALS_FAILURE": 7,
84 "ONU_TRANSMISSION_INTERFERENCE_WARNING": 8,
85 "ONU_ACTIVATION_FAILURE": 9,
86 "ONU_PROCESSING_ERROR": 10,
87 "ONU_LOSS_OF_KEY_SYNC_FAILURE": 11,
88 "ONU_ITU_PON_STATS": 12,
89 "ONU_ALARM_LOS": 13,
90 "ONU_ALARM_LOB": 14,
91 "ONU_ALARM_LOPC_MISS": 15,
92 "ONU_ALARM_LOPC_MIC_ERROR": 16,
93 "ONU_ALARM_LOFI": 17,
94 "ONU_ALARM_LOAMI": 18,
95}
96
97func (x AlarmType_Types) String() string {
98 return proto.EnumName(AlarmType_Types_name, int32(x))
99}
100
101func (AlarmType_Types) EnumDescriptor() ([]byte, []int) {
102 return fileDescriptor_ef7750073d18011b, []int{6, 0}
103}
104
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700105type PONPort struct {
106 ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
107 OperState string `protobuf:"bytes,2,opt,name=OperState,proto3" json:"OperState,omitempty"`
108 XXX_NoUnkeyedLiteral struct{} `json:"-"`
109 XXX_unrecognized []byte `json:"-"`
110 XXX_sizecache int32 `json:"-"`
111}
112
113func (m *PONPort) Reset() { *m = PONPort{} }
114func (m *PONPort) String() string { return proto.CompactTextString(m) }
115func (*PONPort) ProtoMessage() {}
116func (*PONPort) Descriptor() ([]byte, []int) {
117 return fileDescriptor_ef7750073d18011b, []int{0}
118}
119
120func (m *PONPort) XXX_Unmarshal(b []byte) error {
121 return xxx_messageInfo_PONPort.Unmarshal(m, b)
122}
123func (m *PONPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
124 return xxx_messageInfo_PONPort.Marshal(b, m, deterministic)
125}
126func (m *PONPort) XXX_Merge(src proto.Message) {
127 xxx_messageInfo_PONPort.Merge(m, src)
128}
129func (m *PONPort) XXX_Size() int {
130 return xxx_messageInfo_PONPort.Size(m)
131}
132func (m *PONPort) XXX_DiscardUnknown() {
133 xxx_messageInfo_PONPort.DiscardUnknown(m)
134}
135
136var xxx_messageInfo_PONPort proto.InternalMessageInfo
137
138func (m *PONPort) GetID() int32 {
139 if m != nil {
140 return m.ID
141 }
142 return 0
143}
144
145func (m *PONPort) GetOperState() string {
146 if m != nil {
147 return m.OperState
148 }
149 return ""
150}
151
152type NNIPort struct {
153 ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
154 OperState string `protobuf:"bytes,2,opt,name=OperState,proto3" json:"OperState,omitempty"`
155 XXX_NoUnkeyedLiteral struct{} `json:"-"`
156 XXX_unrecognized []byte `json:"-"`
157 XXX_sizecache int32 `json:"-"`
158}
159
160func (m *NNIPort) Reset() { *m = NNIPort{} }
161func (m *NNIPort) String() string { return proto.CompactTextString(m) }
162func (*NNIPort) ProtoMessage() {}
163func (*NNIPort) Descriptor() ([]byte, []int) {
164 return fileDescriptor_ef7750073d18011b, []int{1}
165}
166
167func (m *NNIPort) XXX_Unmarshal(b []byte) error {
168 return xxx_messageInfo_NNIPort.Unmarshal(m, b)
169}
170func (m *NNIPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
171 return xxx_messageInfo_NNIPort.Marshal(b, m, deterministic)
172}
173func (m *NNIPort) XXX_Merge(src proto.Message) {
174 xxx_messageInfo_NNIPort.Merge(m, src)
175}
176func (m *NNIPort) XXX_Size() int {
177 return xxx_messageInfo_NNIPort.Size(m)
178}
179func (m *NNIPort) XXX_DiscardUnknown() {
180 xxx_messageInfo_NNIPort.DiscardUnknown(m)
181}
182
183var xxx_messageInfo_NNIPort proto.InternalMessageInfo
184
185func (m *NNIPort) GetID() int32 {
186 if m != nil {
187 return m.ID
188 }
189 return 0
190}
191
192func (m *NNIPort) GetOperState() string {
193 if m != nil {
194 return m.OperState
195 }
196 return ""
197}
198
199type Olt struct {
200 ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
201 SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
202 OperState string `protobuf:"bytes,3,opt,name=OperState,proto3" json:"OperState,omitempty"`
203 InternalState string `protobuf:"bytes,4,opt,name=InternalState,proto3" json:"InternalState,omitempty"`
204 NNIPorts []*NNIPort `protobuf:"bytes,5,rep,name=NNIPorts,proto3" json:"NNIPorts,omitempty"`
205 PONPorts []*PONPort `protobuf:"bytes,6,rep,name=PONPorts,proto3" json:"PONPorts,omitempty"`
206 XXX_NoUnkeyedLiteral struct{} `json:"-"`
207 XXX_unrecognized []byte `json:"-"`
208 XXX_sizecache int32 `json:"-"`
209}
210
211func (m *Olt) Reset() { *m = Olt{} }
212func (m *Olt) String() string { return proto.CompactTextString(m) }
213func (*Olt) ProtoMessage() {}
214func (*Olt) Descriptor() ([]byte, []int) {
215 return fileDescriptor_ef7750073d18011b, []int{2}
216}
217
218func (m *Olt) XXX_Unmarshal(b []byte) error {
219 return xxx_messageInfo_Olt.Unmarshal(m, b)
220}
221func (m *Olt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
222 return xxx_messageInfo_Olt.Marshal(b, m, deterministic)
223}
224func (m *Olt) XXX_Merge(src proto.Message) {
225 xxx_messageInfo_Olt.Merge(m, src)
226}
227func (m *Olt) XXX_Size() int {
228 return xxx_messageInfo_Olt.Size(m)
229}
230func (m *Olt) XXX_DiscardUnknown() {
231 xxx_messageInfo_Olt.DiscardUnknown(m)
232}
233
234var xxx_messageInfo_Olt proto.InternalMessageInfo
235
236func (m *Olt) GetID() int32 {
237 if m != nil {
238 return m.ID
239 }
240 return 0
241}
242
243func (m *Olt) GetSerialNumber() string {
244 if m != nil {
245 return m.SerialNumber
246 }
247 return ""
248}
249
250func (m *Olt) GetOperState() string {
251 if m != nil {
252 return m.OperState
253 }
254 return ""
255}
256
257func (m *Olt) GetInternalState() string {
258 if m != nil {
259 return m.InternalState
260 }
261 return ""
262}
263
264func (m *Olt) GetNNIPorts() []*NNIPort {
265 if m != nil {
266 return m.NNIPorts
267 }
268 return nil
269}
270
271func (m *Olt) GetPONPorts() []*PONPort {
272 if m != nil {
273 return m.PONPorts
274 }
275 return nil
276}
277
278type ONU struct {
279 ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
280 SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
281 OperState string `protobuf:"bytes,3,opt,name=OperState,proto3" json:"OperState,omitempty"`
282 InternalState string `protobuf:"bytes,4,opt,name=InternalState,proto3" json:"InternalState,omitempty"`
283 PonPortID int32 `protobuf:"varint,5,opt,name=PonPortID,proto3" json:"PonPortID,omitempty"`
284 STag int32 `protobuf:"varint,6,opt,name=STag,proto3" json:"STag,omitempty"`
285 CTag int32 `protobuf:"varint,7,opt,name=CTag,proto3" json:"CTag,omitempty"`
286 HwAddress string `protobuf:"bytes,8,opt,name=HwAddress,proto3" json:"HwAddress,omitempty"`
287 PortNo int32 `protobuf:"varint,9,opt,name=PortNo,proto3" json:"PortNo,omitempty"`
288 XXX_NoUnkeyedLiteral struct{} `json:"-"`
289 XXX_unrecognized []byte `json:"-"`
290 XXX_sizecache int32 `json:"-"`
291}
292
293func (m *ONU) Reset() { *m = ONU{} }
294func (m *ONU) String() string { return proto.CompactTextString(m) }
295func (*ONU) ProtoMessage() {}
296func (*ONU) Descriptor() ([]byte, []int) {
297 return fileDescriptor_ef7750073d18011b, []int{3}
298}
299
300func (m *ONU) XXX_Unmarshal(b []byte) error {
301 return xxx_messageInfo_ONU.Unmarshal(m, b)
302}
303func (m *ONU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
304 return xxx_messageInfo_ONU.Marshal(b, m, deterministic)
305}
306func (m *ONU) XXX_Merge(src proto.Message) {
307 xxx_messageInfo_ONU.Merge(m, src)
308}
309func (m *ONU) XXX_Size() int {
310 return xxx_messageInfo_ONU.Size(m)
311}
312func (m *ONU) XXX_DiscardUnknown() {
313 xxx_messageInfo_ONU.DiscardUnknown(m)
314}
315
316var xxx_messageInfo_ONU proto.InternalMessageInfo
317
318func (m *ONU) GetID() int32 {
319 if m != nil {
320 return m.ID
321 }
322 return 0
323}
324
325func (m *ONU) GetSerialNumber() string {
326 if m != nil {
327 return m.SerialNumber
328 }
329 return ""
330}
331
332func (m *ONU) GetOperState() string {
333 if m != nil {
334 return m.OperState
335 }
336 return ""
337}
338
339func (m *ONU) GetInternalState() string {
340 if m != nil {
341 return m.InternalState
342 }
343 return ""
344}
345
346func (m *ONU) GetPonPortID() int32 {
347 if m != nil {
348 return m.PonPortID
349 }
350 return 0
351}
352
353func (m *ONU) GetSTag() int32 {
354 if m != nil {
355 return m.STag
356 }
357 return 0
358}
359
360func (m *ONU) GetCTag() int32 {
361 if m != nil {
362 return m.CTag
363 }
364 return 0
365}
366
367func (m *ONU) GetHwAddress() string {
368 if m != nil {
369 return m.HwAddress
370 }
371 return ""
372}
373
374func (m *ONU) GetPortNo() int32 {
375 if m != nil {
376 return m.PortNo
377 }
378 return 0
379}
380
381type ONUs struct {
382 Items []*ONU `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
383 XXX_NoUnkeyedLiteral struct{} `json:"-"`
384 XXX_unrecognized []byte `json:"-"`
385 XXX_sizecache int32 `json:"-"`
386}
387
388func (m *ONUs) Reset() { *m = ONUs{} }
389func (m *ONUs) String() string { return proto.CompactTextString(m) }
390func (*ONUs) ProtoMessage() {}
391func (*ONUs) Descriptor() ([]byte, []int) {
392 return fileDescriptor_ef7750073d18011b, []int{4}
393}
394
395func (m *ONUs) XXX_Unmarshal(b []byte) error {
396 return xxx_messageInfo_ONUs.Unmarshal(m, b)
397}
398func (m *ONUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
399 return xxx_messageInfo_ONUs.Marshal(b, m, deterministic)
400}
401func (m *ONUs) XXX_Merge(src proto.Message) {
402 xxx_messageInfo_ONUs.Merge(m, src)
403}
404func (m *ONUs) XXX_Size() int {
405 return xxx_messageInfo_ONUs.Size(m)
406}
407func (m *ONUs) XXX_DiscardUnknown() {
408 xxx_messageInfo_ONUs.DiscardUnknown(m)
409}
410
411var xxx_messageInfo_ONUs proto.InternalMessageInfo
412
413func (m *ONUs) GetItems() []*ONU {
414 if m != nil {
415 return m.Items
416 }
417 return nil
418}
419
420type ONURequest struct {
421 SerialNumber string `protobuf:"bytes,1,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
422 XXX_NoUnkeyedLiteral struct{} `json:"-"`
423 XXX_unrecognized []byte `json:"-"`
424 XXX_sizecache int32 `json:"-"`
425}
426
427func (m *ONURequest) Reset() { *m = ONURequest{} }
428func (m *ONURequest) String() string { return proto.CompactTextString(m) }
429func (*ONURequest) ProtoMessage() {}
430func (*ONURequest) Descriptor() ([]byte, []int) {
431 return fileDescriptor_ef7750073d18011b, []int{5}
432}
433
434func (m *ONURequest) XXX_Unmarshal(b []byte) error {
435 return xxx_messageInfo_ONURequest.Unmarshal(m, b)
436}
437func (m *ONURequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
438 return xxx_messageInfo_ONURequest.Marshal(b, m, deterministic)
439}
440func (m *ONURequest) XXX_Merge(src proto.Message) {
441 xxx_messageInfo_ONURequest.Merge(m, src)
442}
443func (m *ONURequest) XXX_Size() int {
444 return xxx_messageInfo_ONURequest.Size(m)
445}
446func (m *ONURequest) XXX_DiscardUnknown() {
447 xxx_messageInfo_ONURequest.DiscardUnknown(m)
448}
449
450var xxx_messageInfo_ONURequest proto.InternalMessageInfo
451
452func (m *ONURequest) GetSerialNumber() string {
453 if m != nil {
454 return m.SerialNumber
455 }
456 return ""
457}
458
Scott Baker41724b82020-01-21 19:54:53 -0800459type AlarmType struct {
460 XXX_NoUnkeyedLiteral struct{} `json:"-"`
461 XXX_unrecognized []byte `json:"-"`
462 XXX_sizecache int32 `json:"-"`
463}
464
465func (m *AlarmType) Reset() { *m = AlarmType{} }
466func (m *AlarmType) String() string { return proto.CompactTextString(m) }
467func (*AlarmType) ProtoMessage() {}
468func (*AlarmType) Descriptor() ([]byte, []int) {
469 return fileDescriptor_ef7750073d18011b, []int{6}
470}
471
472func (m *AlarmType) XXX_Unmarshal(b []byte) error {
473 return xxx_messageInfo_AlarmType.Unmarshal(m, b)
474}
475func (m *AlarmType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
476 return xxx_messageInfo_AlarmType.Marshal(b, m, deterministic)
477}
478func (m *AlarmType) XXX_Merge(src proto.Message) {
479 xxx_messageInfo_AlarmType.Merge(m, src)
480}
481func (m *AlarmType) XXX_Size() int {
482 return xxx_messageInfo_AlarmType.Size(m)
483}
484func (m *AlarmType) XXX_DiscardUnknown() {
485 xxx_messageInfo_AlarmType.DiscardUnknown(m)
486}
487
488var xxx_messageInfo_AlarmType proto.InternalMessageInfo
489
490type AlarmParameter struct {
491 Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
492 Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
493 XXX_NoUnkeyedLiteral struct{} `json:"-"`
494 XXX_unrecognized []byte `json:"-"`
495 XXX_sizecache int32 `json:"-"`
496}
497
498func (m *AlarmParameter) Reset() { *m = AlarmParameter{} }
499func (m *AlarmParameter) String() string { return proto.CompactTextString(m) }
500func (*AlarmParameter) ProtoMessage() {}
501func (*AlarmParameter) Descriptor() ([]byte, []int) {
502 return fileDescriptor_ef7750073d18011b, []int{7}
503}
504
505func (m *AlarmParameter) XXX_Unmarshal(b []byte) error {
506 return xxx_messageInfo_AlarmParameter.Unmarshal(m, b)
507}
508func (m *AlarmParameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
509 return xxx_messageInfo_AlarmParameter.Marshal(b, m, deterministic)
510}
511func (m *AlarmParameter) XXX_Merge(src proto.Message) {
512 xxx_messageInfo_AlarmParameter.Merge(m, src)
513}
514func (m *AlarmParameter) XXX_Size() int {
515 return xxx_messageInfo_AlarmParameter.Size(m)
516}
517func (m *AlarmParameter) XXX_DiscardUnknown() {
518 xxx_messageInfo_AlarmParameter.DiscardUnknown(m)
519}
520
521var xxx_messageInfo_AlarmParameter proto.InternalMessageInfo
522
523func (m *AlarmParameter) GetKey() string {
524 if m != nil {
525 return m.Key
526 }
527 return ""
528}
529
530func (m *AlarmParameter) GetValue() string {
531 if m != nil {
532 return m.Value
533 }
534 return ""
535}
536
537// AlarmRequest includes fields common to every alarm,
538// plus an optional list of AlarmParemter list that can be used
539// to set additional fields in alarms that support them.
540type AlarmRequest struct {
541 AlarmType AlarmType_Types `protobuf:"varint,1,opt,name=AlarmType,proto3,enum=bbsim.AlarmType_Types" json:"AlarmType,omitempty"`
542 SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
543 Status string `protobuf:"bytes,3,opt,name=Status,proto3" json:"Status,omitempty"`
544 Parameters []*AlarmParameter `protobuf:"bytes,4,rep,name=Parameters,proto3" json:"Parameters,omitempty"`
545 XXX_NoUnkeyedLiteral struct{} `json:"-"`
546 XXX_unrecognized []byte `json:"-"`
547 XXX_sizecache int32 `json:"-"`
548}
549
550func (m *AlarmRequest) Reset() { *m = AlarmRequest{} }
551func (m *AlarmRequest) String() string { return proto.CompactTextString(m) }
552func (*AlarmRequest) ProtoMessage() {}
553func (*AlarmRequest) Descriptor() ([]byte, []int) {
554 return fileDescriptor_ef7750073d18011b, []int{8}
555}
556
557func (m *AlarmRequest) XXX_Unmarshal(b []byte) error {
558 return xxx_messageInfo_AlarmRequest.Unmarshal(m, b)
559}
560func (m *AlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
561 return xxx_messageInfo_AlarmRequest.Marshal(b, m, deterministic)
562}
563func (m *AlarmRequest) XXX_Merge(src proto.Message) {
564 xxx_messageInfo_AlarmRequest.Merge(m, src)
565}
566func (m *AlarmRequest) XXX_Size() int {
567 return xxx_messageInfo_AlarmRequest.Size(m)
568}
569func (m *AlarmRequest) XXX_DiscardUnknown() {
570 xxx_messageInfo_AlarmRequest.DiscardUnknown(m)
571}
572
573var xxx_messageInfo_AlarmRequest proto.InternalMessageInfo
574
575func (m *AlarmRequest) GetAlarmType() AlarmType_Types {
576 if m != nil {
577 return m.AlarmType
578 }
579 return AlarmType_LOS
580}
581
582func (m *AlarmRequest) GetSerialNumber() string {
583 if m != nil {
584 return m.SerialNumber
585 }
586 return ""
587}
588
589func (m *AlarmRequest) GetStatus() string {
590 if m != nil {
591 return m.Status
592 }
593 return ""
594}
595
596func (m *AlarmRequest) GetParameters() []*AlarmParameter {
597 if m != nil {
598 return m.Parameters
599 }
600 return nil
601}
602
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700603type VersionNumber struct {
604 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
605 BuildTime string `protobuf:"bytes,2,opt,name=buildTime,proto3" json:"buildTime,omitempty"`
606 CommitHash string `protobuf:"bytes,3,opt,name=commitHash,proto3" json:"commitHash,omitempty"`
607 GitStatus string `protobuf:"bytes,4,opt,name=gitStatus,proto3" json:"gitStatus,omitempty"`
608 XXX_NoUnkeyedLiteral struct{} `json:"-"`
609 XXX_unrecognized []byte `json:"-"`
610 XXX_sizecache int32 `json:"-"`
611}
612
613func (m *VersionNumber) Reset() { *m = VersionNumber{} }
614func (m *VersionNumber) String() string { return proto.CompactTextString(m) }
615func (*VersionNumber) ProtoMessage() {}
616func (*VersionNumber) Descriptor() ([]byte, []int) {
Scott Baker41724b82020-01-21 19:54:53 -0800617 return fileDescriptor_ef7750073d18011b, []int{9}
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700618}
619
620func (m *VersionNumber) XXX_Unmarshal(b []byte) error {
621 return xxx_messageInfo_VersionNumber.Unmarshal(m, b)
622}
623func (m *VersionNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
624 return xxx_messageInfo_VersionNumber.Marshal(b, m, deterministic)
625}
626func (m *VersionNumber) XXX_Merge(src proto.Message) {
627 xxx_messageInfo_VersionNumber.Merge(m, src)
628}
629func (m *VersionNumber) XXX_Size() int {
630 return xxx_messageInfo_VersionNumber.Size(m)
631}
632func (m *VersionNumber) XXX_DiscardUnknown() {
633 xxx_messageInfo_VersionNumber.DiscardUnknown(m)
634}
635
636var xxx_messageInfo_VersionNumber proto.InternalMessageInfo
637
638func (m *VersionNumber) GetVersion() string {
639 if m != nil {
640 return m.Version
641 }
642 return ""
643}
644
645func (m *VersionNumber) GetBuildTime() string {
646 if m != nil {
647 return m.BuildTime
648 }
649 return ""
650}
651
652func (m *VersionNumber) GetCommitHash() string {
653 if m != nil {
654 return m.CommitHash
655 }
656 return ""
657}
658
659func (m *VersionNumber) GetGitStatus() string {
660 if m != nil {
661 return m.GitStatus
662 }
663 return ""
664}
665
666type LogLevel struct {
667 Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`
668 Caller bool `protobuf:"varint,2,opt,name=caller,proto3" json:"caller,omitempty"`
669 XXX_NoUnkeyedLiteral struct{} `json:"-"`
670 XXX_unrecognized []byte `json:"-"`
671 XXX_sizecache int32 `json:"-"`
672}
673
674func (m *LogLevel) Reset() { *m = LogLevel{} }
675func (m *LogLevel) String() string { return proto.CompactTextString(m) }
676func (*LogLevel) ProtoMessage() {}
677func (*LogLevel) Descriptor() ([]byte, []int) {
Scott Baker41724b82020-01-21 19:54:53 -0800678 return fileDescriptor_ef7750073d18011b, []int{10}
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700679}
680
681func (m *LogLevel) XXX_Unmarshal(b []byte) error {
682 return xxx_messageInfo_LogLevel.Unmarshal(m, b)
683}
684func (m *LogLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
685 return xxx_messageInfo_LogLevel.Marshal(b, m, deterministic)
686}
687func (m *LogLevel) XXX_Merge(src proto.Message) {
688 xxx_messageInfo_LogLevel.Merge(m, src)
689}
690func (m *LogLevel) XXX_Size() int {
691 return xxx_messageInfo_LogLevel.Size(m)
692}
693func (m *LogLevel) XXX_DiscardUnknown() {
694 xxx_messageInfo_LogLevel.DiscardUnknown(m)
695}
696
697var xxx_messageInfo_LogLevel proto.InternalMessageInfo
698
699func (m *LogLevel) GetLevel() string {
700 if m != nil {
701 return m.Level
702 }
703 return ""
704}
705
706func (m *LogLevel) GetCaller() bool {
707 if m != nil {
708 return m.Caller
709 }
710 return false
711}
712
713type Response struct {
714 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
715 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
716 XXX_NoUnkeyedLiteral struct{} `json:"-"`
717 XXX_unrecognized []byte `json:"-"`
718 XXX_sizecache int32 `json:"-"`
719}
720
721func (m *Response) Reset() { *m = Response{} }
722func (m *Response) String() string { return proto.CompactTextString(m) }
723func (*Response) ProtoMessage() {}
724func (*Response) Descriptor() ([]byte, []int) {
Scott Baker41724b82020-01-21 19:54:53 -0800725 return fileDescriptor_ef7750073d18011b, []int{11}
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700726}
727
728func (m *Response) XXX_Unmarshal(b []byte) error {
729 return xxx_messageInfo_Response.Unmarshal(m, b)
730}
731func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
732 return xxx_messageInfo_Response.Marshal(b, m, deterministic)
733}
734func (m *Response) XXX_Merge(src proto.Message) {
735 xxx_messageInfo_Response.Merge(m, src)
736}
737func (m *Response) XXX_Size() int {
738 return xxx_messageInfo_Response.Size(m)
739}
740func (m *Response) XXX_DiscardUnknown() {
741 xxx_messageInfo_Response.DiscardUnknown(m)
742}
743
744var xxx_messageInfo_Response proto.InternalMessageInfo
745
746func (m *Response) GetStatusCode() int32 {
747 if m != nil {
748 return m.StatusCode
749 }
750 return 0
751}
752
753func (m *Response) GetMessage() string {
754 if m != nil {
755 return m.Message
756 }
757 return ""
758}
759
760type Empty struct {
761 XXX_NoUnkeyedLiteral struct{} `json:"-"`
762 XXX_unrecognized []byte `json:"-"`
763 XXX_sizecache int32 `json:"-"`
764}
765
766func (m *Empty) Reset() { *m = Empty{} }
767func (m *Empty) String() string { return proto.CompactTextString(m) }
768func (*Empty) ProtoMessage() {}
769func (*Empty) Descriptor() ([]byte, []int) {
Scott Baker41724b82020-01-21 19:54:53 -0800770 return fileDescriptor_ef7750073d18011b, []int{12}
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700771}
772
773func (m *Empty) XXX_Unmarshal(b []byte) error {
774 return xxx_messageInfo_Empty.Unmarshal(m, b)
775}
776func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
777 return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
778}
779func (m *Empty) XXX_Merge(src proto.Message) {
780 xxx_messageInfo_Empty.Merge(m, src)
781}
782func (m *Empty) XXX_Size() int {
783 return xxx_messageInfo_Empty.Size(m)
784}
785func (m *Empty) XXX_DiscardUnknown() {
786 xxx_messageInfo_Empty.DiscardUnknown(m)
787}
788
789var xxx_messageInfo_Empty proto.InternalMessageInfo
790
791func init() {
Scott Baker41724b82020-01-21 19:54:53 -0800792 proto.RegisterEnum("bbsim.AlarmType_Types", AlarmType_Types_name, AlarmType_Types_value)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700793 proto.RegisterType((*PONPort)(nil), "bbsim.PONPort")
794 proto.RegisterType((*NNIPort)(nil), "bbsim.NNIPort")
795 proto.RegisterType((*Olt)(nil), "bbsim.Olt")
796 proto.RegisterType((*ONU)(nil), "bbsim.ONU")
797 proto.RegisterType((*ONUs)(nil), "bbsim.ONUs")
798 proto.RegisterType((*ONURequest)(nil), "bbsim.ONURequest")
Scott Baker41724b82020-01-21 19:54:53 -0800799 proto.RegisterType((*AlarmType)(nil), "bbsim.AlarmType")
800 proto.RegisterType((*AlarmParameter)(nil), "bbsim.AlarmParameter")
801 proto.RegisterType((*AlarmRequest)(nil), "bbsim.AlarmRequest")
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700802 proto.RegisterType((*VersionNumber)(nil), "bbsim.VersionNumber")
803 proto.RegisterType((*LogLevel)(nil), "bbsim.LogLevel")
804 proto.RegisterType((*Response)(nil), "bbsim.Response")
805 proto.RegisterType((*Empty)(nil), "bbsim.Empty")
806}
807
808func init() { proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b) }
809
810var fileDescriptor_ef7750073d18011b = []byte{
Scott Baker41724b82020-01-21 19:54:53 -0800811 // 1009 bytes of a gzipped FileDescriptorProto
812 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0x4d, 0x4f, 0xeb, 0x56,
813 0x13, 0x4e, 0x08, 0xce, 0xc7, 0x04, 0x82, 0x19, 0x3e, 0x5e, 0x0b, 0xa1, 0xb7, 0xc8, 0xba, 0xad,
814 0xb8, 0x55, 0xcb, 0x6d, 0xe1, 0x56, 0xbd, 0x8b, 0x6e, 0x4c, 0x62, 0x82, 0x75, 0xc3, 0x71, 0x74,
815 0xec, 0x80, 0x58, 0x59, 0x4e, 0x72, 0x04, 0x96, 0xec, 0x38, 0xb5, 0x9d, 0x8b, 0x58, 0x57, 0xfd,
816 0x4d, 0xfd, 0x1b, 0xdd, 0x74, 0xdb, 0xff, 0xd1, 0x5d, 0x75, 0xec, 0x63, 0xc7, 0x81, 0x5b, 0x29,
817 0xea, 0xa6, 0x1b, 0x74, 0xe6, 0x99, 0x79, 0xce, 0xcc, 0x3c, 0x9e, 0x33, 0x04, 0x0e, 0xdc, 0xb9,
818 0xf7, 0x6e, 0x3c, 0x8e, 0xbd, 0x20, 0xfb, 0x7b, 0x36, 0x8f, 0xc2, 0x24, 0x44, 0x29, 0x35, 0xd4,
819 0x1f, 0xa1, 0x31, 0x34, 0xc9, 0x30, 0x8c, 0x12, 0xec, 0xc0, 0x86, 0xd1, 0x53, 0xaa, 0x27, 0xd5,
820 0x53, 0x89, 0x6e, 0x18, 0x3d, 0x3c, 0x86, 0x96, 0x39, 0x67, 0x91, 0x95, 0xb8, 0x09, 0x53, 0x36,
821 0x4e, 0xaa, 0xa7, 0x2d, 0xba, 0x04, 0x38, 0x91, 0x10, 0xe3, 0x5f, 0x10, 0xff, 0xa8, 0x42, 0xcd,
822 0xf4, 0x5f, 0xb3, 0x54, 0xd8, 0xb2, 0x58, 0xe4, 0xb9, 0x3e, 0x59, 0x04, 0x63, 0x16, 0x09, 0xe2,
823 0x0a, 0xb6, 0x7a, 0x73, 0xed, 0xc5, 0xcd, 0xf8, 0x06, 0xb6, 0x8d, 0x59, 0xc2, 0xa2, 0x99, 0xeb,
824 0x67, 0x11, 0x9b, 0x69, 0xc4, 0x2a, 0x88, 0x5f, 0x43, 0x53, 0x14, 0x1e, 0x2b, 0xd2, 0x49, 0xed,
825 0xb4, 0x7d, 0xde, 0x39, 0xcb, 0x84, 0x11, 0x30, 0x2d, 0xfc, 0x3c, 0x56, 0xa8, 0x13, 0x2b, 0xf5,
826 0x95, 0x58, 0x01, 0xd3, 0xc2, 0xaf, 0xfe, 0xc5, 0xfb, 0x22, 0xa3, 0xff, 0xac, 0xaf, 0x63, 0x68,
827 0x0d, 0xc3, 0x19, 0xaf, 0xc5, 0xe8, 0x29, 0x52, 0x9a, 0x7e, 0x09, 0x20, 0xc2, 0xa6, 0x65, 0xbb,
828 0x0f, 0x4a, 0x3d, 0x75, 0xa4, 0x67, 0x8e, 0x75, 0x39, 0xd6, 0xc8, 0x30, 0x7e, 0xe6, 0xb7, 0x5c,
829 0x3f, 0x69, 0xd3, 0x69, 0xc4, 0xe2, 0x58, 0x69, 0x66, 0x95, 0x14, 0x00, 0x1e, 0x42, 0x9d, 0xdf,
830 0x47, 0x42, 0xa5, 0x95, 0x72, 0x84, 0xa5, 0x9e, 0xc2, 0xa6, 0x49, 0x46, 0x31, 0x9e, 0x80, 0xe4,
831 0x25, 0x2c, 0x88, 0x95, 0x6a, 0x2a, 0x16, 0x08, 0xb1, 0x4c, 0x32, 0xa2, 0x99, 0x43, 0xfd, 0x0e,
832 0x80, 0x5b, 0xec, 0xe7, 0x05, 0x8b, 0x93, 0x57, 0xda, 0x54, 0x5f, 0x6b, 0xa3, 0xfe, 0x59, 0x83,
833 0x96, 0xe6, 0xbb, 0x51, 0x60, 0x3f, 0xcf, 0x99, 0xfa, 0x7b, 0x0d, 0x24, 0x7e, 0x88, 0xb1, 0x01,
834 0xb5, 0x81, 0x69, 0xc9, 0x15, 0xec, 0x00, 0xf4, 0xee, 0x0d, 0xd2, 0x77, 0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 0x23, 0x23, 0xdc, 0x2d, 0xed, 0xd2, 0x6c, 0xda, 0x8f,
869 0x4a, 0xeb, 0x55, 0xad, 0xe0, 0xf7, 0xd0, 0xb6, 0x58, 0x52, 0x7c, 0xcd, 0x3c, 0x69, 0x0e, 0x1c,
870 0xbd, 0x04, 0xd4, 0x0a, 0x5e, 0x94, 0x7a, 0xfc, 0x7c, 0x8a, 0xcf, 0x94, 0x7e, 0xbe, 0xd4, 0x71,
871 0x6d, 0xce, 0x7b, 0xd8, 0xa2, 0x2c, 0x4e, 0xdc, 0x28, 0xd1, 0xdd, 0x79, 0xe8, 0xaf, 0xc9, 0xba,
872 0x80, 0xb6, 0x60, 0xf5, 0x1e, 0x27, 0xf3, 0x35, 0x49, 0x3f, 0x01, 0x5a, 0x2c, 0x49, 0x9f, 0x9e,
873 0x31, 0x9b, 0x7a, 0x13, 0x37, 0xe1, 0x83, 0xb4, 0x57, 0x7e, 0x92, 0xff, 0xcc, 0x1e, 0xd7, 0xd3,
874 0x1f, 0x47, 0x17, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x83, 0x0f, 0x4c, 0x7d, 0x35, 0x09, 0x00,
875 0x00,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700876}
877
878// Reference imports to suppress errors if they are not otherwise used.
879var _ context.Context
880var _ grpc.ClientConn
881
882// This is a compile-time assertion to ensure that this generated file
883// is compatible with the grpc package it is being compiled against.
884const _ = grpc.SupportPackageIsVersion4
885
886// BBSimClient is the client API for BBSim service.
887//
888// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
889type BBSimClient interface {
890 Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error)
891 GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error)
Zdravko Bozakov681364d2019-11-10 14:28:46 +0100892 PoweronOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
893 ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
894 RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700895 GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error)
896 GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error)
897 SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error)
898 ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
899 PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
900 RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
901 RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
Scott Baker41724b82020-01-21 19:54:53 -0800902 SetAlarmIndication(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*Response, error)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700903}
904
905type bBSimClient struct {
906 cc *grpc.ClientConn
907}
908
909func NewBBSimClient(cc *grpc.ClientConn) BBSimClient {
910 return &bBSimClient{cc}
911}
912
913func (c *bBSimClient) Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error) {
914 out := new(VersionNumber)
915 err := c.cc.Invoke(ctx, "/bbsim.BBSim/Version", in, out, opts...)
916 if err != nil {
917 return nil, err
918 }
919 return out, nil
920}
921
922func (c *bBSimClient) GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error) {
923 out := new(Olt)
924 err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOlt", in, out, opts...)
925 if err != nil {
926 return nil, err
927 }
928 return out, nil
929}
930
Zdravko Bozakov681364d2019-11-10 14:28:46 +0100931func (c *bBSimClient) PoweronOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) {
932 out := new(Response)
933 err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronOlt", in, out, opts...)
934 if err != nil {
935 return nil, err
936 }
937 return out, nil
938}
939
940func (c *bBSimClient) ShutdownOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) {
941 out := new(Response)
942 err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownOlt", in, out, opts...)
943 if err != nil {
944 return nil, err
945 }
946 return out, nil
947}
948
949func (c *bBSimClient) RebootOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Response, error) {
950 out := new(Response)
951 err := c.cc.Invoke(ctx, "/bbsim.BBSim/RebootOlt", in, out, opts...)
952 if err != nil {
953 return nil, err
954 }
955 return out, nil
956}
957
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700958func (c *bBSimClient) GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) {
959 out := new(ONUs)
960 err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONUs", in, out, opts...)
961 if err != nil {
962 return nil, err
963 }
964 return out, nil
965}
966
967func (c *bBSimClient) GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error) {
968 out := new(ONU)
969 err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONU", in, out, opts...)
970 if err != nil {
971 return nil, err
972 }
973 return out, nil
974}
975
976func (c *bBSimClient) SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) {
977 out := new(LogLevel)
978 err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetLogLevel", in, out, opts...)
979 if err != nil {
980 return nil, err
981 }
982 return out, nil
983}
984
985func (c *bBSimClient) ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
986 out := new(Response)
987 err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownONU", in, out, opts...)
988 if err != nil {
989 return nil, err
990 }
991 return out, nil
992}
993
994func (c *bBSimClient) PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
995 out := new(Response)
996 err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronONU", in, out, opts...)
997 if err != nil {
998 return nil, err
999 }
1000 return out, nil
1001}
1002
1003func (c *bBSimClient) RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
1004 out := new(Response)
1005 err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartEapol", in, out, opts...)
1006 if err != nil {
1007 return nil, err
1008 }
1009 return out, nil
1010}
1011
1012func (c *bBSimClient) RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
1013 out := new(Response)
1014 err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartDhcp", in, out, opts...)
1015 if err != nil {
1016 return nil, err
1017 }
1018 return out, nil
1019}
1020
Scott Baker41724b82020-01-21 19:54:53 -08001021func (c *bBSimClient) SetAlarmIndication(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*Response, error) {
1022 out := new(Response)
1023 err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetAlarmIndication", in, out, opts...)
1024 if err != nil {
1025 return nil, err
1026 }
1027 return out, nil
1028}
1029
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001030// BBSimServer is the server API for BBSim service.
1031type BBSimServer interface {
1032 Version(context.Context, *Empty) (*VersionNumber, error)
1033 GetOlt(context.Context, *Empty) (*Olt, error)
Zdravko Bozakov681364d2019-11-10 14:28:46 +01001034 PoweronOlt(context.Context, *Empty) (*Response, error)
1035 ShutdownOlt(context.Context, *Empty) (*Response, error)
1036 RebootOlt(context.Context, *Empty) (*Response, error)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001037 GetONUs(context.Context, *Empty) (*ONUs, error)
1038 GetONU(context.Context, *ONURequest) (*ONU, error)
1039 SetLogLevel(context.Context, *LogLevel) (*LogLevel, error)
1040 ShutdownONU(context.Context, *ONURequest) (*Response, error)
1041 PoweronONU(context.Context, *ONURequest) (*Response, error)
1042 RestartEapol(context.Context, *ONURequest) (*Response, error)
1043 RestartDhcp(context.Context, *ONURequest) (*Response, error)
Scott Baker41724b82020-01-21 19:54:53 -08001044 SetAlarmIndication(context.Context, *AlarmRequest) (*Response, error)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001045}
1046
1047func RegisterBBSimServer(s *grpc.Server, srv BBSimServer) {
1048 s.RegisterService(&_BBSim_serviceDesc, srv)
1049}
1050
1051func _BBSim_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1052 in := new(Empty)
1053 if err := dec(in); err != nil {
1054 return nil, err
1055 }
1056 if interceptor == nil {
1057 return srv.(BBSimServer).Version(ctx, in)
1058 }
1059 info := &grpc.UnaryServerInfo{
1060 Server: srv,
1061 FullMethod: "/bbsim.BBSim/Version",
1062 }
1063 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1064 return srv.(BBSimServer).Version(ctx, req.(*Empty))
1065 }
1066 return interceptor(ctx, in, info, handler)
1067}
1068
1069func _BBSim_GetOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1070 in := new(Empty)
1071 if err := dec(in); err != nil {
1072 return nil, err
1073 }
1074 if interceptor == nil {
1075 return srv.(BBSimServer).GetOlt(ctx, in)
1076 }
1077 info := &grpc.UnaryServerInfo{
1078 Server: srv,
1079 FullMethod: "/bbsim.BBSim/GetOlt",
1080 }
1081 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1082 return srv.(BBSimServer).GetOlt(ctx, req.(*Empty))
1083 }
1084 return interceptor(ctx, in, info, handler)
1085}
1086
Zdravko Bozakov681364d2019-11-10 14:28:46 +01001087func _BBSim_PoweronOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1088 in := new(Empty)
1089 if err := dec(in); err != nil {
1090 return nil, err
1091 }
1092 if interceptor == nil {
1093 return srv.(BBSimServer).PoweronOlt(ctx, in)
1094 }
1095 info := &grpc.UnaryServerInfo{
1096 Server: srv,
1097 FullMethod: "/bbsim.BBSim/PoweronOlt",
1098 }
1099 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1100 return srv.(BBSimServer).PoweronOlt(ctx, req.(*Empty))
1101 }
1102 return interceptor(ctx, in, info, handler)
1103}
1104
1105func _BBSim_ShutdownOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1106 in := new(Empty)
1107 if err := dec(in); err != nil {
1108 return nil, err
1109 }
1110 if interceptor == nil {
1111 return srv.(BBSimServer).ShutdownOlt(ctx, in)
1112 }
1113 info := &grpc.UnaryServerInfo{
1114 Server: srv,
1115 FullMethod: "/bbsim.BBSim/ShutdownOlt",
1116 }
1117 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1118 return srv.(BBSimServer).ShutdownOlt(ctx, req.(*Empty))
1119 }
1120 return interceptor(ctx, in, info, handler)
1121}
1122
1123func _BBSim_RebootOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1124 in := new(Empty)
1125 if err := dec(in); err != nil {
1126 return nil, err
1127 }
1128 if interceptor == nil {
1129 return srv.(BBSimServer).RebootOlt(ctx, in)
1130 }
1131 info := &grpc.UnaryServerInfo{
1132 Server: srv,
1133 FullMethod: "/bbsim.BBSim/RebootOlt",
1134 }
1135 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1136 return srv.(BBSimServer).RebootOlt(ctx, req.(*Empty))
1137 }
1138 return interceptor(ctx, in, info, handler)
1139}
1140
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001141func _BBSim_GetONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1142 in := new(Empty)
1143 if err := dec(in); err != nil {
1144 return nil, err
1145 }
1146 if interceptor == nil {
1147 return srv.(BBSimServer).GetONUs(ctx, in)
1148 }
1149 info := &grpc.UnaryServerInfo{
1150 Server: srv,
1151 FullMethod: "/bbsim.BBSim/GetONUs",
1152 }
1153 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1154 return srv.(BBSimServer).GetONUs(ctx, req.(*Empty))
1155 }
1156 return interceptor(ctx, in, info, handler)
1157}
1158
1159func _BBSim_GetONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1160 in := new(ONURequest)
1161 if err := dec(in); err != nil {
1162 return nil, err
1163 }
1164 if interceptor == nil {
1165 return srv.(BBSimServer).GetONU(ctx, in)
1166 }
1167 info := &grpc.UnaryServerInfo{
1168 Server: srv,
1169 FullMethod: "/bbsim.BBSim/GetONU",
1170 }
1171 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1172 return srv.(BBSimServer).GetONU(ctx, req.(*ONURequest))
1173 }
1174 return interceptor(ctx, in, info, handler)
1175}
1176
1177func _BBSim_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1178 in := new(LogLevel)
1179 if err := dec(in); err != nil {
1180 return nil, err
1181 }
1182 if interceptor == nil {
1183 return srv.(BBSimServer).SetLogLevel(ctx, in)
1184 }
1185 info := &grpc.UnaryServerInfo{
1186 Server: srv,
1187 FullMethod: "/bbsim.BBSim/SetLogLevel",
1188 }
1189 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1190 return srv.(BBSimServer).SetLogLevel(ctx, req.(*LogLevel))
1191 }
1192 return interceptor(ctx, in, info, handler)
1193}
1194
1195func _BBSim_ShutdownONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1196 in := new(ONURequest)
1197 if err := dec(in); err != nil {
1198 return nil, err
1199 }
1200 if interceptor == nil {
1201 return srv.(BBSimServer).ShutdownONU(ctx, in)
1202 }
1203 info := &grpc.UnaryServerInfo{
1204 Server: srv,
1205 FullMethod: "/bbsim.BBSim/ShutdownONU",
1206 }
1207 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1208 return srv.(BBSimServer).ShutdownONU(ctx, req.(*ONURequest))
1209 }
1210 return interceptor(ctx, in, info, handler)
1211}
1212
1213func _BBSim_PoweronONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1214 in := new(ONURequest)
1215 if err := dec(in); err != nil {
1216 return nil, err
1217 }
1218 if interceptor == nil {
1219 return srv.(BBSimServer).PoweronONU(ctx, in)
1220 }
1221 info := &grpc.UnaryServerInfo{
1222 Server: srv,
1223 FullMethod: "/bbsim.BBSim/PoweronONU",
1224 }
1225 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1226 return srv.(BBSimServer).PoweronONU(ctx, req.(*ONURequest))
1227 }
1228 return interceptor(ctx, in, info, handler)
1229}
1230
1231func _BBSim_RestartEapol_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1232 in := new(ONURequest)
1233 if err := dec(in); err != nil {
1234 return nil, err
1235 }
1236 if interceptor == nil {
1237 return srv.(BBSimServer).RestartEapol(ctx, in)
1238 }
1239 info := &grpc.UnaryServerInfo{
1240 Server: srv,
1241 FullMethod: "/bbsim.BBSim/RestartEapol",
1242 }
1243 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1244 return srv.(BBSimServer).RestartEapol(ctx, req.(*ONURequest))
1245 }
1246 return interceptor(ctx, in, info, handler)
1247}
1248
1249func _BBSim_RestartDhcp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1250 in := new(ONURequest)
1251 if err := dec(in); err != nil {
1252 return nil, err
1253 }
1254 if interceptor == nil {
1255 return srv.(BBSimServer).RestartDhcp(ctx, in)
1256 }
1257 info := &grpc.UnaryServerInfo{
1258 Server: srv,
1259 FullMethod: "/bbsim.BBSim/RestartDhcp",
1260 }
1261 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1262 return srv.(BBSimServer).RestartDhcp(ctx, req.(*ONURequest))
1263 }
1264 return interceptor(ctx, in, info, handler)
1265}
1266
Scott Baker41724b82020-01-21 19:54:53 -08001267func _BBSim_SetAlarmIndication_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1268 in := new(AlarmRequest)
1269 if err := dec(in); err != nil {
1270 return nil, err
1271 }
1272 if interceptor == nil {
1273 return srv.(BBSimServer).SetAlarmIndication(ctx, in)
1274 }
1275 info := &grpc.UnaryServerInfo{
1276 Server: srv,
1277 FullMethod: "/bbsim.BBSim/SetAlarmIndication",
1278 }
1279 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1280 return srv.(BBSimServer).SetAlarmIndication(ctx, req.(*AlarmRequest))
1281 }
1282 return interceptor(ctx, in, info, handler)
1283}
1284
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001285var _BBSim_serviceDesc = grpc.ServiceDesc{
1286 ServiceName: "bbsim.BBSim",
1287 HandlerType: (*BBSimServer)(nil),
1288 Methods: []grpc.MethodDesc{
1289 {
1290 MethodName: "Version",
1291 Handler: _BBSim_Version_Handler,
1292 },
1293 {
1294 MethodName: "GetOlt",
1295 Handler: _BBSim_GetOlt_Handler,
1296 },
1297 {
Zdravko Bozakov681364d2019-11-10 14:28:46 +01001298 MethodName: "PoweronOlt",
1299 Handler: _BBSim_PoweronOlt_Handler,
1300 },
1301 {
1302 MethodName: "ShutdownOlt",
1303 Handler: _BBSim_ShutdownOlt_Handler,
1304 },
1305 {
1306 MethodName: "RebootOlt",
1307 Handler: _BBSim_RebootOlt_Handler,
1308 },
1309 {
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001310 MethodName: "GetONUs",
1311 Handler: _BBSim_GetONUs_Handler,
1312 },
1313 {
1314 MethodName: "GetONU",
1315 Handler: _BBSim_GetONU_Handler,
1316 },
1317 {
1318 MethodName: "SetLogLevel",
1319 Handler: _BBSim_SetLogLevel_Handler,
1320 },
1321 {
1322 MethodName: "ShutdownONU",
1323 Handler: _BBSim_ShutdownONU_Handler,
1324 },
1325 {
1326 MethodName: "PoweronONU",
1327 Handler: _BBSim_PoweronONU_Handler,
1328 },
1329 {
1330 MethodName: "RestartEapol",
1331 Handler: _BBSim_RestartEapol_Handler,
1332 },
1333 {
1334 MethodName: "RestartDhcp",
1335 Handler: _BBSim_RestartDhcp_Handler,
1336 },
Scott Baker41724b82020-01-21 19:54:53 -08001337 {
1338 MethodName: "SetAlarmIndication",
1339 Handler: _BBSim_SetAlarmIndication_Handler,
1340 },
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001341 },
1342 Streams: []grpc.StreamDesc{},
1343 Metadata: "api/bbsim/bbsim.proto",
1344}