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