blob: 060760bd2110de0b41aeb44906695e728924fdb1 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: api/legacy/bbsim.proto
3
4package legacy
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
10 _ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
11 openolt "github.com/opencord/voltha-protos/v2/go/openolt"
12 tech_profile "github.com/opencord/voltha-protos/v2/go/tech_profile"
13 _ "google.golang.org/genproto/googleapis/api/annotations"
14 grpc "google.golang.org/grpc"
15 codes "google.golang.org/grpc/codes"
16 status "google.golang.org/grpc/status"
17 math "math"
18)
19
20// Reference imports to suppress errors if they are not otherwise used.
21var _ = proto.Marshal
22var _ = fmt.Errorf
23var _ = math.Inf
24
25// This is a compile-time assertion to ensure that this generated file
26// is compatible with the proto package it is being compiled against.
27// A compilation error at this line likely means your copy of the
28// proto package needs to be updated.
29const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
30
31// OLT information
32//
33// Deprecated: Do not use.
34type OLTInfo struct {
35 OltId int64 `protobuf:"varint,1,opt,name=olt_id,json=oltId,proto3" json:"olt_id,omitempty"`
36 OltSerial string `protobuf:"bytes,2,opt,name=olt_serial,json=oltSerial,proto3" json:"olt_serial,omitempty"`
37 OltIp string `protobuf:"bytes,3,opt,name=olt_ip,json=oltIp,proto3" json:"olt_ip,omitempty"`
38 OltState string `protobuf:"bytes,4,opt,name=olt_state,json=oltState,proto3" json:"olt_state,omitempty"`
39 OltVendor string `protobuf:"bytes,5,opt,name=olt_vendor,json=oltVendor,proto3" json:"olt_vendor,omitempty"`
40 XXX_NoUnkeyedLiteral struct{} `json:"-"`
41 XXX_unrecognized []byte `json:"-"`
42 XXX_sizecache int32 `json:"-"`
43}
44
45func (m *OLTInfo) Reset() { *m = OLTInfo{} }
46func (m *OLTInfo) String() string { return proto.CompactTextString(m) }
47func (*OLTInfo) ProtoMessage() {}
48func (*OLTInfo) Descriptor() ([]byte, []int) {
49 return fileDescriptor_6ea2bed57327b60e, []int{0}
50}
51
52func (m *OLTInfo) XXX_Unmarshal(b []byte) error {
53 return xxx_messageInfo_OLTInfo.Unmarshal(m, b)
54}
55func (m *OLTInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
56 return xxx_messageInfo_OLTInfo.Marshal(b, m, deterministic)
57}
58func (m *OLTInfo) XXX_Merge(src proto.Message) {
59 xxx_messageInfo_OLTInfo.Merge(m, src)
60}
61func (m *OLTInfo) XXX_Size() int {
62 return xxx_messageInfo_OLTInfo.Size(m)
63}
64func (m *OLTInfo) XXX_DiscardUnknown() {
65 xxx_messageInfo_OLTInfo.DiscardUnknown(m)
66}
67
68var xxx_messageInfo_OLTInfo proto.InternalMessageInfo
69
70func (m *OLTInfo) GetOltId() int64 {
71 if m != nil {
72 return m.OltId
73 }
74 return 0
75}
76
77func (m *OLTInfo) GetOltSerial() string {
78 if m != nil {
79 return m.OltSerial
80 }
81 return ""
82}
83
84func (m *OLTInfo) GetOltIp() string {
85 if m != nil {
86 return m.OltIp
87 }
88 return ""
89}
90
91func (m *OLTInfo) GetOltState() string {
92 if m != nil {
93 return m.OltState
94 }
95 return ""
96}
97
98func (m *OLTInfo) GetOltVendor() string {
99 if m != nil {
100 return m.OltVendor
101 }
102 return ""
103}
104
105// ONU information
106type ONUInfo struct {
107 OnuId uint32 `protobuf:"varint,1,opt,name=onu_id,json=onuId,proto3" json:"onu_id,omitempty"`
108 PonPortId uint32 `protobuf:"varint,2,opt,name=pon_port_id,json=ponPortId,proto3" json:"pon_port_id,omitempty"`
109 // ONU serial number
110 OnuSerial string `protobuf:"bytes,3,opt,name=onu_serial,json=onuSerial,proto3" json:"onu_serial,omitempty"`
111 // ONU oper state
112 OperState string `protobuf:"bytes,4,opt,name=oper_state,json=operState,proto3" json:"oper_state,omitempty"`
113 // ONU internal state
114 OnuState string `protobuf:"bytes,5,opt,name=onu_state,json=onuState,proto3" json:"onu_state,omitempty"`
115 Gemports []uint32 `protobuf:"varint,6,rep,packed,name=gemports,proto3" json:"gemports,omitempty"`
116 Tconts *Tconts `protobuf:"bytes,7,opt,name=tconts,proto3" json:"tconts,omitempty"`
117 XXX_NoUnkeyedLiteral struct{} `json:"-"`
118 XXX_unrecognized []byte `json:"-"`
119 XXX_sizecache int32 `json:"-"`
120}
121
122func (m *ONUInfo) Reset() { *m = ONUInfo{} }
123func (m *ONUInfo) String() string { return proto.CompactTextString(m) }
124func (*ONUInfo) ProtoMessage() {}
125func (*ONUInfo) Descriptor() ([]byte, []int) {
126 return fileDescriptor_6ea2bed57327b60e, []int{1}
127}
128
129func (m *ONUInfo) XXX_Unmarshal(b []byte) error {
130 return xxx_messageInfo_ONUInfo.Unmarshal(m, b)
131}
132func (m *ONUInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
133 return xxx_messageInfo_ONUInfo.Marshal(b, m, deterministic)
134}
135func (m *ONUInfo) XXX_Merge(src proto.Message) {
136 xxx_messageInfo_ONUInfo.Merge(m, src)
137}
138func (m *ONUInfo) XXX_Size() int {
139 return xxx_messageInfo_ONUInfo.Size(m)
140}
141func (m *ONUInfo) XXX_DiscardUnknown() {
142 xxx_messageInfo_ONUInfo.DiscardUnknown(m)
143}
144
145var xxx_messageInfo_ONUInfo proto.InternalMessageInfo
146
147func (m *ONUInfo) GetOnuId() uint32 {
148 if m != nil {
149 return m.OnuId
150 }
151 return 0
152}
153
154func (m *ONUInfo) GetPonPortId() uint32 {
155 if m != nil {
156 return m.PonPortId
157 }
158 return 0
159}
160
161func (m *ONUInfo) GetOnuSerial() string {
162 if m != nil {
163 return m.OnuSerial
164 }
165 return ""
166}
167
168func (m *ONUInfo) GetOperState() string {
169 if m != nil {
170 return m.OperState
171 }
172 return ""
173}
174
175func (m *ONUInfo) GetOnuState() string {
176 if m != nil {
177 return m.OnuState
178 }
179 return ""
180}
181
182func (m *ONUInfo) GetGemports() []uint32 {
183 if m != nil {
184 return m.Gemports
185 }
186 return nil
187}
188
189func (m *ONUInfo) GetTconts() *Tconts {
190 if m != nil {
191 return m.Tconts
192 }
193 return nil
194}
195
196// Bulk ONU operations
197type ONUs struct {
198 Onus []*ONUInfo `protobuf:"bytes,1,rep,name=onus,proto3" json:"onus,omitempty"`
199 XXX_NoUnkeyedLiteral struct{} `json:"-"`
200 XXX_unrecognized []byte `json:"-"`
201 XXX_sizecache int32 `json:"-"`
202}
203
204func (m *ONUs) Reset() { *m = ONUs{} }
205func (m *ONUs) String() string { return proto.CompactTextString(m) }
206func (*ONUs) ProtoMessage() {}
207func (*ONUs) Descriptor() ([]byte, []int) {
208 return fileDescriptor_6ea2bed57327b60e, []int{2}
209}
210
211func (m *ONUs) XXX_Unmarshal(b []byte) error {
212 return xxx_messageInfo_ONUs.Unmarshal(m, b)
213}
214func (m *ONUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
215 return xxx_messageInfo_ONUs.Marshal(b, m, deterministic)
216}
217func (m *ONUs) XXX_Merge(src proto.Message) {
218 xxx_messageInfo_ONUs.Merge(m, src)
219}
220func (m *ONUs) XXX_Size() int {
221 return xxx_messageInfo_ONUs.Size(m)
222}
223func (m *ONUs) XXX_DiscardUnknown() {
224 xxx_messageInfo_ONUs.DiscardUnknown(m)
225}
226
227var xxx_messageInfo_ONUs proto.InternalMessageInfo
228
229func (m *ONUs) GetOnus() []*ONUInfo {
230 if m != nil {
231 return m.Onus
232 }
233 return nil
234}
235
236type ONURequest struct {
237 Onu *ONUInfo `protobuf:"bytes,1,opt,name=onu,proto3" json:"onu,omitempty"`
238 OnusBatch *ONUs `protobuf:"bytes,2,opt,name=onus_batch,json=onusBatch,proto3" json:"onus_batch,omitempty"`
239 XXX_NoUnkeyedLiteral struct{} `json:"-"`
240 XXX_unrecognized []byte `json:"-"`
241 XXX_sizecache int32 `json:"-"`
242}
243
244func (m *ONURequest) Reset() { *m = ONURequest{} }
245func (m *ONURequest) String() string { return proto.CompactTextString(m) }
246func (*ONURequest) ProtoMessage() {}
247func (*ONURequest) Descriptor() ([]byte, []int) {
248 return fileDescriptor_6ea2bed57327b60e, []int{3}
249}
250
251func (m *ONURequest) XXX_Unmarshal(b []byte) error {
252 return xxx_messageInfo_ONURequest.Unmarshal(m, b)
253}
254func (m *ONURequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
255 return xxx_messageInfo_ONURequest.Marshal(b, m, deterministic)
256}
257func (m *ONURequest) XXX_Merge(src proto.Message) {
258 xxx_messageInfo_ONURequest.Merge(m, src)
259}
260func (m *ONURequest) XXX_Size() int {
261 return xxx_messageInfo_ONURequest.Size(m)
262}
263func (m *ONURequest) XXX_DiscardUnknown() {
264 xxx_messageInfo_ONURequest.DiscardUnknown(m)
265}
266
267var xxx_messageInfo_ONURequest proto.InternalMessageInfo
268
269func (m *ONURequest) GetOnu() *ONUInfo {
270 if m != nil {
271 return m.Onu
272 }
273 return nil
274}
275
276func (m *ONURequest) GetOnusBatch() *ONUs {
277 if m != nil {
278 return m.OnusBatch
279 }
280 return nil
281}
282
283// Port information
284type PortInfo struct {
285 PortType string `protobuf:"bytes,1,opt,name=port_type,json=portType,proto3" json:"port_type,omitempty"`
286 PortId uint32 `protobuf:"varint,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
287 PonPortMaxOnus uint32 `protobuf:"varint,3,opt,name=pon_port_max_onus,json=ponPortMaxOnus,proto3" json:"pon_port_max_onus,omitempty"`
288 PonPortActiveOnus uint32 `protobuf:"varint,4,opt,name=pon_port_active_onus,json=ponPortActiveOnus,proto3" json:"pon_port_active_onus,omitempty"`
289 PortState string `protobuf:"bytes,5,opt,name=port_state,json=portState,proto3" json:"port_state,omitempty"`
290 AlarmState string `protobuf:"bytes,6,opt,name=alarm_state,json=alarmState,proto3" json:"alarm_state,omitempty"`
291 XXX_NoUnkeyedLiteral struct{} `json:"-"`
292 XXX_unrecognized []byte `json:"-"`
293 XXX_sizecache int32 `json:"-"`
294}
295
296func (m *PortInfo) Reset() { *m = PortInfo{} }
297func (m *PortInfo) String() string { return proto.CompactTextString(m) }
298func (*PortInfo) ProtoMessage() {}
299func (*PortInfo) Descriptor() ([]byte, []int) {
300 return fileDescriptor_6ea2bed57327b60e, []int{4}
301}
302
303func (m *PortInfo) XXX_Unmarshal(b []byte) error {
304 return xxx_messageInfo_PortInfo.Unmarshal(m, b)
305}
306func (m *PortInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
307 return xxx_messageInfo_PortInfo.Marshal(b, m, deterministic)
308}
309func (m *PortInfo) XXX_Merge(src proto.Message) {
310 xxx_messageInfo_PortInfo.Merge(m, src)
311}
312func (m *PortInfo) XXX_Size() int {
313 return xxx_messageInfo_PortInfo.Size(m)
314}
315func (m *PortInfo) XXX_DiscardUnknown() {
316 xxx_messageInfo_PortInfo.DiscardUnknown(m)
317}
318
319var xxx_messageInfo_PortInfo proto.InternalMessageInfo
320
321func (m *PortInfo) GetPortType() string {
322 if m != nil {
323 return m.PortType
324 }
325 return ""
326}
327
328func (m *PortInfo) GetPortId() uint32 {
329 if m != nil {
330 return m.PortId
331 }
332 return 0
333}
334
335func (m *PortInfo) GetPonPortMaxOnus() uint32 {
336 if m != nil {
337 return m.PonPortMaxOnus
338 }
339 return 0
340}
341
342func (m *PortInfo) GetPonPortActiveOnus() uint32 {
343 if m != nil {
344 return m.PonPortActiveOnus
345 }
346 return 0
347}
348
349func (m *PortInfo) GetPortState() string {
350 if m != nil {
351 return m.PortState
352 }
353 return ""
354}
355
356func (m *PortInfo) GetAlarmState() string {
357 if m != nil {
358 return m.AlarmState
359 }
360 return ""
361}
362
363// Bulk port information
364type Ports struct {
365 Ports []*PortInfo `protobuf:"bytes,1,rep,name=ports,proto3" json:"ports,omitempty"`
366 XXX_NoUnkeyedLiteral struct{} `json:"-"`
367 XXX_unrecognized []byte `json:"-"`
368 XXX_sizecache int32 `json:"-"`
369}
370
371func (m *Ports) Reset() { *m = Ports{} }
372func (m *Ports) String() string { return proto.CompactTextString(m) }
373func (*Ports) ProtoMessage() {}
374func (*Ports) Descriptor() ([]byte, []int) {
375 return fileDescriptor_6ea2bed57327b60e, []int{5}
376}
377
378func (m *Ports) XXX_Unmarshal(b []byte) error {
379 return xxx_messageInfo_Ports.Unmarshal(m, b)
380}
381func (m *Ports) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
382 return xxx_messageInfo_Ports.Marshal(b, m, deterministic)
383}
384func (m *Ports) XXX_Merge(src proto.Message) {
385 xxx_messageInfo_Ports.Merge(m, src)
386}
387func (m *Ports) XXX_Size() int {
388 return xxx_messageInfo_Ports.Size(m)
389}
390func (m *Ports) XXX_DiscardUnknown() {
391 xxx_messageInfo_Ports.DiscardUnknown(m)
392}
393
394var xxx_messageInfo_Ports proto.InternalMessageInfo
395
396func (m *Ports) GetPorts() []*PortInfo {
397 if m != nil {
398 return m.Ports
399 }
400 return nil
401}
402
403// BBSim status
404type OLTStatusResponse struct {
405 Olt *OLTInfo `protobuf:"bytes,1,opt,name=olt,proto3" json:"olt,omitempty"`
406 Ports []*PortInfo `protobuf:"bytes,2,rep,name=ports,proto3" json:"ports,omitempty"`
407 XXX_NoUnkeyedLiteral struct{} `json:"-"`
408 XXX_unrecognized []byte `json:"-"`
409 XXX_sizecache int32 `json:"-"`
410}
411
412func (m *OLTStatusResponse) Reset() { *m = OLTStatusResponse{} }
413func (m *OLTStatusResponse) String() string { return proto.CompactTextString(m) }
414func (*OLTStatusResponse) ProtoMessage() {}
415func (*OLTStatusResponse) Descriptor() ([]byte, []int) {
416 return fileDescriptor_6ea2bed57327b60e, []int{6}
417}
418
419func (m *OLTStatusResponse) XXX_Unmarshal(b []byte) error {
420 return xxx_messageInfo_OLTStatusResponse.Unmarshal(m, b)
421}
422func (m *OLTStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
423 return xxx_messageInfo_OLTStatusResponse.Marshal(b, m, deterministic)
424}
425func (m *OLTStatusResponse) XXX_Merge(src proto.Message) {
426 xxx_messageInfo_OLTStatusResponse.Merge(m, src)
427}
428func (m *OLTStatusResponse) XXX_Size() int {
429 return xxx_messageInfo_OLTStatusResponse.Size(m)
430}
431func (m *OLTStatusResponse) XXX_DiscardUnknown() {
432 xxx_messageInfo_OLTStatusResponse.DiscardUnknown(m)
433}
434
435var xxx_messageInfo_OLTStatusResponse proto.InternalMessageInfo
436
437func (m *OLTStatusResponse) GetOlt() *OLTInfo {
438 if m != nil {
439 return m.Olt
440 }
441 return nil
442}
443
444func (m *OLTStatusResponse) GetPorts() []*PortInfo {
445 if m != nil {
446 return m.Ports
447 }
448 return nil
449}
450
451// BBSim response message
452type BBSimResponse struct {
453 StatusMsg string `protobuf:"bytes,1,opt,name=status_msg,json=statusMsg,proto3" json:"status_msg,omitempty"`
454 XXX_NoUnkeyedLiteral struct{} `json:"-"`
455 XXX_unrecognized []byte `json:"-"`
456 XXX_sizecache int32 `json:"-"`
457}
458
459func (m *BBSimResponse) Reset() { *m = BBSimResponse{} }
460func (m *BBSimResponse) String() string { return proto.CompactTextString(m) }
461func (*BBSimResponse) ProtoMessage() {}
462func (*BBSimResponse) Descriptor() ([]byte, []int) {
463 return fileDescriptor_6ea2bed57327b60e, []int{7}
464}
465
466func (m *BBSimResponse) XXX_Unmarshal(b []byte) error {
467 return xxx_messageInfo_BBSimResponse.Unmarshal(m, b)
468}
469func (m *BBSimResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
470 return xxx_messageInfo_BBSimResponse.Marshal(b, m, deterministic)
471}
472func (m *BBSimResponse) XXX_Merge(src proto.Message) {
473 xxx_messageInfo_BBSimResponse.Merge(m, src)
474}
475func (m *BBSimResponse) XXX_Size() int {
476 return xxx_messageInfo_BBSimResponse.Size(m)
477}
478func (m *BBSimResponse) XXX_DiscardUnknown() {
479 xxx_messageInfo_BBSimResponse.DiscardUnknown(m)
480}
481
482var xxx_messageInfo_BBSimResponse proto.InternalMessageInfo
483
484func (m *BBSimResponse) GetStatusMsg() string {
485 if m != nil {
486 return m.StatusMsg
487 }
488 return ""
489}
490
491// ONU alarm request
492type ONUAlarmRequest struct {
493 // ONU serial number
494 OnuSerial string `protobuf:"bytes,1,opt,name=onu_serial,json=onuSerial,proto3" json:"onu_serial,omitempty"`
495 // Alarm types are:
496 // "signaldegrade"
497 // "lossofomcichannel"
498 // "lossofploam"
499 AlarmType string `protobuf:"bytes,2,opt,name=alarm_type,json=alarmType,proto3" json:"alarm_type,omitempty"`
500 // "on"/"off" indicates raised or cleared alarm
501 Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
502 XXX_NoUnkeyedLiteral struct{} `json:"-"`
503 XXX_unrecognized []byte `json:"-"`
504 XXX_sizecache int32 `json:"-"`
505}
506
507func (m *ONUAlarmRequest) Reset() { *m = ONUAlarmRequest{} }
508func (m *ONUAlarmRequest) String() string { return proto.CompactTextString(m) }
509func (*ONUAlarmRequest) ProtoMessage() {}
510func (*ONUAlarmRequest) Descriptor() ([]byte, []int) {
511 return fileDescriptor_6ea2bed57327b60e, []int{8}
512}
513
514func (m *ONUAlarmRequest) XXX_Unmarshal(b []byte) error {
515 return xxx_messageInfo_ONUAlarmRequest.Unmarshal(m, b)
516}
517func (m *ONUAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
518 return xxx_messageInfo_ONUAlarmRequest.Marshal(b, m, deterministic)
519}
520func (m *ONUAlarmRequest) XXX_Merge(src proto.Message) {
521 xxx_messageInfo_ONUAlarmRequest.Merge(m, src)
522}
523func (m *ONUAlarmRequest) XXX_Size() int {
524 return xxx_messageInfo_ONUAlarmRequest.Size(m)
525}
526func (m *ONUAlarmRequest) XXX_DiscardUnknown() {
527 xxx_messageInfo_ONUAlarmRequest.DiscardUnknown(m)
528}
529
530var xxx_messageInfo_ONUAlarmRequest proto.InternalMessageInfo
531
532func (m *ONUAlarmRequest) GetOnuSerial() string {
533 if m != nil {
534 return m.OnuSerial
535 }
536 return ""
537}
538
539func (m *ONUAlarmRequest) GetAlarmType() string {
540 if m != nil {
541 return m.AlarmType
542 }
543 return ""
544}
545
546func (m *ONUAlarmRequest) GetStatus() string {
547 if m != nil {
548 return m.Status
549 }
550 return ""
551}
552
553// OLT alarm request
554type OLTAlarmRequest struct {
555 PortId uint32 `protobuf:"varint,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
556 PortType string `protobuf:"bytes,2,opt,name=port_type,json=portType,proto3" json:"port_type,omitempty"`
557 Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
558 XXX_NoUnkeyedLiteral struct{} `json:"-"`
559 XXX_unrecognized []byte `json:"-"`
560 XXX_sizecache int32 `json:"-"`
561}
562
563func (m *OLTAlarmRequest) Reset() { *m = OLTAlarmRequest{} }
564func (m *OLTAlarmRequest) String() string { return proto.CompactTextString(m) }
565func (*OLTAlarmRequest) ProtoMessage() {}
566func (*OLTAlarmRequest) Descriptor() ([]byte, []int) {
567 return fileDescriptor_6ea2bed57327b60e, []int{9}
568}
569
570func (m *OLTAlarmRequest) XXX_Unmarshal(b []byte) error {
571 return xxx_messageInfo_OLTAlarmRequest.Unmarshal(m, b)
572}
573func (m *OLTAlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
574 return xxx_messageInfo_OLTAlarmRequest.Marshal(b, m, deterministic)
575}
576func (m *OLTAlarmRequest) XXX_Merge(src proto.Message) {
577 xxx_messageInfo_OLTAlarmRequest.Merge(m, src)
578}
579func (m *OLTAlarmRequest) XXX_Size() int {
580 return xxx_messageInfo_OLTAlarmRequest.Size(m)
581}
582func (m *OLTAlarmRequest) XXX_DiscardUnknown() {
583 xxx_messageInfo_OLTAlarmRequest.DiscardUnknown(m)
584}
585
586var xxx_messageInfo_OLTAlarmRequest proto.InternalMessageInfo
587
588func (m *OLTAlarmRequest) GetPortId() uint32 {
589 if m != nil {
590 return m.PortId
591 }
592 return 0
593}
594
595func (m *OLTAlarmRequest) GetPortType() string {
596 if m != nil {
597 return m.PortType
598 }
599 return ""
600}
601
602func (m *OLTAlarmRequest) GetStatus() string {
603 if m != nil {
604 return m.Status
605 }
606 return ""
607}
608
609// Device action
610type DeviceAction struct {
611 DeviceType string `protobuf:"bytes,1,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"`
612 SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
613 Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
614 XXX_NoUnkeyedLiteral struct{} `json:"-"`
615 XXX_unrecognized []byte `json:"-"`
616 XXX_sizecache int32 `json:"-"`
617}
618
619func (m *DeviceAction) Reset() { *m = DeviceAction{} }
620func (m *DeviceAction) String() string { return proto.CompactTextString(m) }
621func (*DeviceAction) ProtoMessage() {}
622func (*DeviceAction) Descriptor() ([]byte, []int) {
623 return fileDescriptor_6ea2bed57327b60e, []int{10}
624}
625
626func (m *DeviceAction) XXX_Unmarshal(b []byte) error {
627 return xxx_messageInfo_DeviceAction.Unmarshal(m, b)
628}
629func (m *DeviceAction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
630 return xxx_messageInfo_DeviceAction.Marshal(b, m, deterministic)
631}
632func (m *DeviceAction) XXX_Merge(src proto.Message) {
633 xxx_messageInfo_DeviceAction.Merge(m, src)
634}
635func (m *DeviceAction) XXX_Size() int {
636 return xxx_messageInfo_DeviceAction.Size(m)
637}
638func (m *DeviceAction) XXX_DiscardUnknown() {
639 xxx_messageInfo_DeviceAction.DiscardUnknown(m)
640}
641
642var xxx_messageInfo_DeviceAction proto.InternalMessageInfo
643
644func (m *DeviceAction) GetDeviceType() string {
645 if m != nil {
646 return m.DeviceType
647 }
648 return ""
649}
650
651func (m *DeviceAction) GetSerialNumber() string {
652 if m != nil {
653 return m.SerialNumber
654 }
655 return ""
656}
657
658func (m *DeviceAction) GetAction() string {
659 if m != nil {
660 return m.Action
661 }
662 return ""
663}
664
665type Tconts struct {
666 UniId uint32 `protobuf:"fixed32,4,opt,name=uni_id,json=uniId,proto3" json:"uni_id,omitempty"`
667 PortNo uint32 `protobuf:"fixed32,5,opt,name=port_no,json=portNo,proto3" json:"port_no,omitempty"`
668 Tconts []*tech_profile.TrafficScheduler `protobuf:"bytes,3,rep,name=tconts,proto3" json:"tconts,omitempty"`
669 XXX_NoUnkeyedLiteral struct{} `json:"-"`
670 XXX_unrecognized []byte `json:"-"`
671 XXX_sizecache int32 `json:"-"`
672}
673
674func (m *Tconts) Reset() { *m = Tconts{} }
675func (m *Tconts) String() string { return proto.CompactTextString(m) }
676func (*Tconts) ProtoMessage() {}
677func (*Tconts) Descriptor() ([]byte, []int) {
678 return fileDescriptor_6ea2bed57327b60e, []int{11}
679}
680
681func (m *Tconts) XXX_Unmarshal(b []byte) error {
682 return xxx_messageInfo_Tconts.Unmarshal(m, b)
683}
684func (m *Tconts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
685 return xxx_messageInfo_Tconts.Marshal(b, m, deterministic)
686}
687func (m *Tconts) XXX_Merge(src proto.Message) {
688 xxx_messageInfo_Tconts.Merge(m, src)
689}
690func (m *Tconts) XXX_Size() int {
691 return xxx_messageInfo_Tconts.Size(m)
692}
693func (m *Tconts) XXX_DiscardUnknown() {
694 xxx_messageInfo_Tconts.DiscardUnknown(m)
695}
696
697var xxx_messageInfo_Tconts proto.InternalMessageInfo
698
699func (m *Tconts) GetUniId() uint32 {
700 if m != nil {
701 return m.UniId
702 }
703 return 0
704}
705
706func (m *Tconts) GetPortNo() uint32 {
707 if m != nil {
708 return m.PortNo
709 }
710 return 0
711}
712
713func (m *Tconts) GetTconts() []*tech_profile.TrafficScheduler {
714 if m != nil {
715 return m.Tconts
716 }
717 return nil
718}
719
720type Flows struct {
721 Flows []*openolt.Flow `protobuf:"bytes,1,rep,name=flows,proto3" json:"flows,omitempty"`
722 XXX_NoUnkeyedLiteral struct{} `json:"-"`
723 XXX_unrecognized []byte `json:"-"`
724 XXX_sizecache int32 `json:"-"`
725}
726
727func (m *Flows) Reset() { *m = Flows{} }
728func (m *Flows) String() string { return proto.CompactTextString(m) }
729func (*Flows) ProtoMessage() {}
730func (*Flows) Descriptor() ([]byte, []int) {
731 return fileDescriptor_6ea2bed57327b60e, []int{12}
732}
733
734func (m *Flows) XXX_Unmarshal(b []byte) error {
735 return xxx_messageInfo_Flows.Unmarshal(m, b)
736}
737func (m *Flows) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
738 return xxx_messageInfo_Flows.Marshal(b, m, deterministic)
739}
740func (m *Flows) XXX_Merge(src proto.Message) {
741 xxx_messageInfo_Flows.Merge(m, src)
742}
743func (m *Flows) XXX_Size() int {
744 return xxx_messageInfo_Flows.Size(m)
745}
746func (m *Flows) XXX_DiscardUnknown() {
747 xxx_messageInfo_Flows.DiscardUnknown(m)
748}
749
750var xxx_messageInfo_Flows proto.InternalMessageInfo
751
752func (m *Flows) GetFlows() []*openolt.Flow {
753 if m != nil {
754 return m.Flows
755 }
756 return nil
757}
758
759type Empty struct {
760 XXX_NoUnkeyedLiteral struct{} `json:"-"`
761 XXX_unrecognized []byte `json:"-"`
762 XXX_sizecache int32 `json:"-"`
763}
764
765func (m *Empty) Reset() { *m = Empty{} }
766func (m *Empty) String() string { return proto.CompactTextString(m) }
767func (*Empty) ProtoMessage() {}
768func (*Empty) Descriptor() ([]byte, []int) {
769 return fileDescriptor_6ea2bed57327b60e, []int{13}
770}
771
772func (m *Empty) XXX_Unmarshal(b []byte) error {
773 return xxx_messageInfo_Empty.Unmarshal(m, b)
774}
775func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
776 return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
777}
778func (m *Empty) XXX_Merge(src proto.Message) {
779 xxx_messageInfo_Empty.Merge(m, src)
780}
781func (m *Empty) XXX_Size() int {
782 return xxx_messageInfo_Empty.Size(m)
783}
784func (m *Empty) XXX_DiscardUnknown() {
785 xxx_messageInfo_Empty.DiscardUnknown(m)
786}
787
788var xxx_messageInfo_Empty proto.InternalMessageInfo
789
790func init() {
791 proto.RegisterType((*OLTInfo)(nil), "legacy.OLTInfo")
792 proto.RegisterType((*ONUInfo)(nil), "legacy.ONUInfo")
793 proto.RegisterType((*ONUs)(nil), "legacy.ONUs")
794 proto.RegisterType((*ONURequest)(nil), "legacy.ONURequest")
795 proto.RegisterType((*PortInfo)(nil), "legacy.PortInfo")
796 proto.RegisterType((*Ports)(nil), "legacy.Ports")
797 proto.RegisterType((*OLTStatusResponse)(nil), "legacy.OLTStatusResponse")
798 proto.RegisterType((*BBSimResponse)(nil), "legacy.BBSimResponse")
799 proto.RegisterType((*ONUAlarmRequest)(nil), "legacy.ONUAlarmRequest")
800 proto.RegisterType((*OLTAlarmRequest)(nil), "legacy.OLTAlarmRequest")
801 proto.RegisterType((*DeviceAction)(nil), "legacy.DeviceAction")
802 proto.RegisterType((*Tconts)(nil), "legacy.Tconts")
803 proto.RegisterType((*Flows)(nil), "legacy.Flows")
804 proto.RegisterType((*Empty)(nil), "legacy.Empty")
805}
806
807func init() { proto.RegisterFile("api/legacy/bbsim.proto", fileDescriptor_6ea2bed57327b60e) }
808
809var fileDescriptor_6ea2bed57327b60e = []byte{
810 // 1326 bytes of a gzipped FileDescriptorProto
811 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4d, 0x6f, 0x1b, 0x55,
812 0x17, 0xd6, 0xd8, 0xb1, 0x1d, 0x9f, 0xc4, 0x6d, 0x7a, 0xfb, 0xe5, 0x37, 0x79, 0xd3, 0x4e, 0xa7,
813 0x55, 0x08, 0x69, 0xeb, 0x69, 0xdd, 0x2f, 0x08, 0xab, 0x44, 0x85, 0x2a, 0x52, 0x6b, 0x47, 0x93,
814 0x84, 0x85, 0xa9, 0xb0, 0x26, 0xf6, 0xb5, 0x3d, 0x68, 0x7c, 0xef, 0x30, 0xf7, 0x4e, 0xda, 0xc8,
815 0xf2, 0x06, 0x01, 0xea, 0x02, 0x16, 0x80, 0x54, 0x21, 0x96, 0xec, 0xf8, 0x15, 0xec, 0xf8, 0x03,
816 0x6c, 0x91, 0xba, 0x80, 0x1f, 0x82, 0xee, 0xb9, 0x33, 0xce, 0x4c, 0x3e, 0x20, 0x65, 0x15, 0xdf,
817 0x73, 0xce, 0xbd, 0xe7, 0x79, 0xce, 0xc7, 0x93, 0x81, 0x4b, 0x6e, 0xe0, 0xd9, 0x3e, 0xed, 0xbb,
818 0x9d, 0x7d, 0x7b, 0x77, 0x57, 0x78, 0xc3, 0x5a, 0x10, 0x72, 0xc9, 0x49, 0x51, 0xdb, 0xe6, 0xff,
819 0xdf, 0xe7, 0xbc, 0xef, 0x53, 0x5b, 0x85, 0xb9, 0x8c, 0x71, 0xe9, 0x4a, 0x8f, 0x33, 0xa1, 0xa3,
820 0xe6, 0x6f, 0xe1, 0x9f, 0xce, 0xed, 0x3e, 0x65, 0xb7, 0xc5, 0x0b, 0xb7, 0xdf, 0xa7, 0xa1, 0xcd,
821 0x03, 0x8c, 0x38, 0x26, 0x7a, 0x61, 0x8f, 0xfb, 0x72, 0xe0, 0xb6, 0xf1, 0x24, 0x6c, 0x1e, 0x50,
822 0xc6, 0x7d, 0x19, 0x3b, 0xcd, 0xac, 0x53, 0xd2, 0xce, 0x40, 0xfd, 0xee, 0x79, 0x3e, 0xd5, 0x11,
823 0xd6, 0x6b, 0x03, 0x4a, 0xcd, 0xa7, 0xdb, 0x1b, 0xac, 0xc7, 0xc9, 0x45, 0x28, 0x72, 0x5f, 0xb6,
824 0xbd, 0x6e, 0xd5, 0x30, 0x8d, 0xe5, 0xbc, 0x53, 0xe0, 0xbe, 0xdc, 0xe8, 0x92, 0x45, 0x00, 0x65,
825 0x16, 0x34, 0xf4, 0x5c, 0xbf, 0x9a, 0x33, 0x8d, 0xe5, 0xb2, 0x53, 0xe6, 0xbe, 0xdc, 0x42, 0xc3,
826 0xe4, 0x56, 0x50, 0xcd, 0xa3, 0x0b, 0x6f, 0x05, 0x64, 0x01, 0xca, 0x78, 0x4b, 0xba, 0x92, 0x56,
827 0xa7, 0xd0, 0x33, 0xad, 0x2e, 0xa9, 0x73, 0xf2, 0xe4, 0x1e, 0x65, 0x5d, 0x1e, 0x56, 0x0b, 0x93,
828 0x27, 0x3f, 0x46, 0xc3, 0x6a, 0xae, 0x6a, 0x58, 0x6f, 0x14, 0xb0, 0xc6, 0xce, 0x04, 0x18, 0x8b,
829 0x12, 0x60, 0x15, 0xa7, 0xc0, 0x59, 0xb4, 0xd1, 0x25, 0x57, 0x60, 0x26, 0xe0, 0xac, 0x1d, 0xf0,
830 0x10, 0x41, 0xe7, 0xd0, 0x57, 0x0e, 0x38, 0xdb, 0xe4, 0x61, 0x02, 0x9c, 0x45, 0x09, 0xf0, 0x7c,
831 0x9c, 0x85, 0x45, 0x31, 0x70, 0xe5, 0x0e, 0x68, 0x98, 0x81, 0x58, 0x56, 0x16, 0x8d, 0x51, 0x11,
832 0x50, 0xb7, 0xd1, 0x5b, 0x88, 0x09, 0xb0, 0x48, 0x3b, 0xe7, 0x61, 0xba, 0x4f, 0x87, 0x2a, 0xb3,
833 0xa8, 0x16, 0xcd, 0xfc, 0x72, 0xc5, 0x99, 0x9c, 0xc9, 0x12, 0x14, 0x65, 0x87, 0x33, 0x29, 0xaa,
834 0x25, 0xd3, 0x58, 0x9e, 0xa9, 0x9f, 0xa9, 0xe9, 0xb6, 0xd7, 0xb6, 0xd1, 0xea, 0xc4, 0x5e, 0xeb,
835 0x26, 0x4c, 0x35, 0x1b, 0x3b, 0x82, 0x5c, 0x87, 0x29, 0xce, 0x22, 0x51, 0x35, 0xcc, 0xfc, 0xf2,
836 0x4c, 0xfd, 0x6c, 0x12, 0x1d, 0x93, 0x77, 0xd0, 0x69, 0x3d, 0x07, 0x68, 0x36, 0x76, 0x1c, 0xfa,
837 0x79, 0x44, 0x85, 0x24, 0xd7, 0x20, 0xcf, 0x59, 0x84, 0xd5, 0x38, 0xe6, 0x86, 0xf2, 0x91, 0x9b,
838 0x48, 0x5e, 0xb4, 0x77, 0x5d, 0xd9, 0x19, 0x60, 0x6d, 0x66, 0xea, 0xb3, 0xa9, 0x48, 0x81, 0xa5,
839 0x10, 0xeb, 0xca, 0x6d, 0xfd, 0x61, 0xc0, 0x34, 0x16, 0x4d, 0x55, 0x7b, 0x01, 0xca, 0x58, 0x52,
840 0xb9, 0x1f, 0x50, 0x4c, 0x51, 0x76, 0xa6, 0x95, 0x61, 0x7b, 0x3f, 0xa0, 0xe4, 0x32, 0x94, 0xb2,
841 0xf5, 0x2e, 0x06, 0xba, 0xd8, 0xef, 0xc2, 0xb9, 0x49, 0x33, 0x86, 0xee, 0xcb, 0x36, 0x52, 0xca,
842 0x63, 0xc8, 0x99, 0xb8, 0x25, 0xcf, 0xdc, 0x97, 0x4d, 0x16, 0x09, 0x62, 0xc3, 0x85, 0x49, 0xa8,
843 0xdb, 0x91, 0xde, 0x1e, 0xd5, 0xd1, 0x53, 0x18, 0x7d, 0x2e, 0x8e, 0x5e, 0x43, 0x0f, 0x5e, 0x58,
844 0x04, 0xc0, 0xe0, 0x74, 0x2f, 0x10, 0xa3, 0x6e, 0xc6, 0x55, 0x98, 0x71, 0x7d, 0x37, 0x1c, 0xc6,
845 0xfe, 0x22, 0xfa, 0x01, 0x4d, 0x18, 0x60, 0xd9, 0x50, 0xd8, 0x8c, 0x5b, 0x53, 0xd0, 0x3d, 0xd3,
846 0xb5, 0x9e, 0x4b, 0xea, 0x91, 0x70, 0x77, 0xb4, 0xdb, 0xfa, 0x14, 0xce, 0x35, 0x9f, 0x6e, 0xab,
847 0xcb, 0x91, 0x70, 0xa8, 0x08, 0x38, 0x13, 0x14, 0x8b, 0xee, 0xcb, 0x23, 0x45, 0xd7, 0xcb, 0xe3,
848 0x28, 0xdf, 0xc1, 0xfb, 0xb9, 0x7f, 0x7e, 0xbf, 0x06, 0x95, 0xf5, 0xf5, 0x2d, 0x6f, 0x38, 0x79,
849 0x7b, 0x11, 0x40, 0x60, 0xb6, 0xf6, 0x50, 0xf4, 0xe3, 0xa2, 0x97, 0xb5, 0xe5, 0x99, 0xe8, 0x5b,
850 0x7d, 0x38, 0xdb, 0x6c, 0xec, 0xac, 0x29, 0x46, 0xc9, 0x08, 0x64, 0x87, 0xdb, 0x38, 0x66, 0xb8,
851 0x75, 0x4d, 0xb0, 0x8b, 0xf1, 0xd2, 0xa2, 0x05, 0xdb, 0x78, 0x09, 0x8a, 0xfa, 0xf5, 0x78, 0x2d,
852 0xe2, 0x93, 0xd5, 0x86, 0xb3, 0xcd, 0xa7, 0xdb, 0x99, 0x44, 0xa9, 0x8e, 0x1b, 0x99, 0x8e, 0x67,
853 0xe6, 0x24, 0x77, 0x68, 0x4e, 0x4e, 0x4a, 0xe0, 0xc3, 0xec, 0x63, 0xba, 0xe7, 0x75, 0xa8, 0x6a,
854 0x2f, 0x67, 0xaa, 0x77, 0x5d, 0x3c, 0xa7, 0xc7, 0x0d, 0xb4, 0x09, 0x1f, 0xba, 0x0e, 0x15, 0xcd,
855 0xb1, 0xcd, 0xa2, 0xe1, 0x2e, 0x0d, 0xe3, 0x4c, 0xb3, 0xda, 0xd8, 0x40, 0x9b, 0xca, 0xe6, 0xe2,
856 0x7b, 0x49, 0x36, 0x7d, 0xb2, 0x02, 0x28, 0xea, 0xa5, 0x53, 0x12, 0x12, 0x31, 0x4f, 0x91, 0x50,
857 0x53, 0x56, 0x72, 0x0a, 0x11, 0xf3, 0x36, 0xba, 0x13, 0x72, 0x8c, 0xe3, 0x58, 0x95, 0x34, 0xb9,
858 0x06, 0x27, 0x0f, 0x27, 0x4b, 0x9c, 0xc7, 0x56, 0x5e, 0xa9, 0x65, 0xc4, 0x73, 0x3b, 0x74, 0x7b,
859 0x3d, 0xaf, 0xb3, 0xd5, 0x19, 0xd0, 0x6e, 0xe4, 0xd3, 0x70, 0xb2, 0xd4, 0xb7, 0xa0, 0xf0, 0x91,
860 0xcf, 0x5f, 0xa8, 0xad, 0x2e, 0xf4, 0xd4, 0x8f, 0x78, 0xd4, 0x2a, 0xb5, 0x44, 0x99, 0x95, 0xdb,
861 0xd1, 0x3e, 0xab, 0x04, 0x85, 0x0f, 0x87, 0x81, 0xdc, 0xaf, 0xff, 0x09, 0x30, 0x8b, 0x13, 0xb1,
862 0x45, 0x43, 0x45, 0x9d, 0x7c, 0x02, 0xe5, 0xc9, 0x04, 0x92, 0x4a, 0x32, 0x47, 0x18, 0x3c, 0xff,
863 0xbf, 0xd4, 0xec, 0x65, 0x67, 0xd4, 0xba, 0xf1, 0xc5, 0xef, 0x7f, 0xfd, 0x90, 0x5b, 0x20, 0x25,
864 0x7b, 0xef, 0x8e, 0xcd, 0x7d, 0xd9, 0x9a, 0x23, 0x67, 0xe2, 0x9f, 0xb6, 0xee, 0xc0, 0xab, 0x9c,
865 0x41, 0xba, 0x00, 0x9b, 0xf1, 0xf6, 0x44, 0x82, 0x1c, 0x99, 0xd2, 0xf9, 0x4a, 0xda, 0x22, 0xac,
866 0x07, 0xf8, 0xe8, 0x2d, 0xb2, 0x92, 0xbc, 0x84, 0x43, 0x6c, 0x8f, 0x26, 0xdd, 0x1f, 0xc7, 0xbf,
867 0xbd, 0xee, 0x38, 0x95, 0xe5, 0x37, 0x03, 0xca, 0xcd, 0xc6, 0x4e, 0x9c, 0x85, 0xa4, 0xb4, 0x27,
868 0x1e, 0xad, 0xf9, 0x8c, 0x1e, 0x59, 0xaf, 0x0d, 0xcc, 0xf3, 0x8d, 0x41, 0x66, 0x93, 0x44, 0x4a,
869 0x16, 0x5a, 0x57, 0xc9, 0x62, 0xfa, 0x6c, 0x8f, 0x38, 0x8b, 0x6a, 0x07, 0xb3, 0x3f, 0x6e, 0xdd,
870 0x23, 0x77, 0x0f, 0x21, 0x53, 0x11, 0xa9, 0x7f, 0x0d, 0xe3, 0x43, 0x17, 0xbd, 0xee, 0xb8, 0xb5,
871 0x44, 0x6e, 0x9c, 0xe6, 0x92, 0x22, 0xf2, 0xab, 0x01, 0x33, 0x6a, 0xfd, 0x94, 0x20, 0x29, 0xbd,
872 0x39, 0x8e, 0xca, 0xc5, 0xc4, 0x96, 0xd9, 0x6b, 0xeb, 0x4b, 0xcd, 0x69, 0x64, 0x65, 0x28, 0xad,
873 0xa6, 0xa4, 0xb9, 0xb5, 0x64, 0x9d, 0x0a, 0x48, 0xeb, 0x91, 0xf5, 0xe0, 0xed, 0x58, 0xc6, 0xe5,
874 0x51, 0x0c, 0xde, 0x18, 0x50, 0x69, 0x36, 0x76, 0x1e, 0x53, 0xf7, 0x3f, 0x70, 0xf8, 0x59, 0x73,
875 0xf8, 0xd1, 0x58, 0x39, 0x99, 0xc4, 0xd5, 0x95, 0x7f, 0xe9, 0xd1, 0xd2, 0xca, 0xe9, 0x58, 0xde,
876 0x5b, 0x79, 0xfb, 0x5e, 0x2a, 0x86, 0x5f, 0x19, 0x30, 0xf7, 0x84, 0x32, 0x1a, 0xba, 0x92, 0x26,
877 0x52, 0x49, 0x2e, 0xa7, 0x48, 0xa6, 0x35, 0xed, 0x24, 0xa6, 0x6b, 0x48, 0xf4, 0x3d, 0xeb, 0xe1,
878 0x11, 0x2e, 0x09, 0x0f, 0x1b, 0x25, 0x54, 0xd8, 0xa3, 0x03, 0x71, 0x1d, 0xdb, 0x23, 0x3d, 0xf3,
879 0x88, 0xe3, 0xeb, 0x34, 0x8e, 0x58, 0x49, 0x53, 0x38, 0xb2, 0xda, 0x7a, 0x12, 0x8e, 0x75, 0xc4,
880 0xf1, 0xbe, 0xf5, 0xe8, 0x34, 0x0b, 0x17, 0x23, 0xf2, 0xb9, 0xc8, 0x00, 0xf9, 0xc5, 0x80, 0xf3,
881 0x9b, 0x34, 0xec, 0xf1, 0x70, 0x98, 0x11, 0xdc, 0x0b, 0x49, 0xca, 0xb4, 0xf5, 0x24, 0x20, 0x14,
882 0x81, 0x3c, 0xaf, 0x5f, 0x53, 0x40, 0x46, 0x29, 0xa1, 0x1e, 0xdb, 0x5a, 0x61, 0xed, 0x91, 0xfe,
883 0x3b, 0x6e, 0x3d, 0xaa, 0x4f, 0xc6, 0x33, 0x1b, 0x38, 0xca, 0xc8, 0xf7, 0x91, 0x8b, 0x0a, 0x6b,
884 0x0f, 0xa6, 0x9f, 0x50, 0xa9, 0x75, 0xf3, 0xf0, 0xd7, 0xcc, 0x81, 0x18, 0xa1, 0xdf, 0x5a, 0x45,
885 0x48, 0x77, 0x49, 0x25, 0xc9, 0x86, 0x4a, 0xda, 0x32, 0xc9, 0x95, 0x54, 0xd3, 0xb2, 0x3d, 0xc3,
886 0x88, 0x57, 0x39, 0x63, 0xfd, 0x3b, 0xe3, 0xfb, 0xb5, 0x6f, 0x0d, 0xf2, 0x0e, 0x94, 0x91, 0xa6,
887 0xb9, 0xb6, 0xb9, 0x61, 0x5d, 0x24, 0xe7, 0x07, 0x52, 0x06, 0xab, 0x36, 0x7e, 0x3a, 0x77, 0x78,
888 0xd8, 0xad, 0xf1, 0xb0, 0x5f, 0xcf, 0xdf, 0xad, 0xdd, 0x59, 0x31, 0x8c, 0xfa, 0x9c, 0x1b, 0x04,
889 0xbe, 0xd7, 0xc1, 0x4f, 0x6e, 0xfb, 0x33, 0xc1, 0xd9, 0xea, 0x11, 0x8b, 0xf3, 0x01, 0xe4, 0xef,
890 0xdf, 0xb9, 0x4f, 0xee, 0xc3, 0x8a, 0x43, 0x65, 0x14, 0x32, 0xda, 0x35, 0x5f, 0x0c, 0x28, 0x33,
891 0xe5, 0x80, 0x9a, 0x21, 0x15, 0x3c, 0x0a, 0x3b, 0xd4, 0xec, 0x72, 0x2a, 0x4c, 0xc6, 0xa5, 0x49,
892 0x5f, 0x7a, 0x42, 0xd6, 0x48, 0x11, 0xa6, 0x7e, 0xca, 0x19, 0xa5, 0xdd, 0x22, 0x7e, 0x87, 0xdf,
893 0xfb, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x5f, 0xb3, 0x49, 0x58, 0x34, 0x0c, 0x00, 0x00,
894}
895
896// Reference imports to suppress errors if they are not otherwise used.
897var _ context.Context
898var _ grpc.ClientConn
899
900// This is a compile-time assertion to ensure that this generated file
901// is compatible with the grpc package it is being compiled against.
902const _ = grpc.SupportPackageIsVersion4
903
904// BBSimServiceClient is the client API for BBSimService service.
905//
906// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
907type BBSimServiceClient interface {
908 // Get current status of OLT
909 OLTStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*OLTStatusResponse, error)
910 // Get status of a PON/NNI port
911 PortStatus(ctx context.Context, in *PortInfo, opts ...grpc.CallOption) (*Ports, error)
912 // Get status of all or specific ONUs
913 ONUStatus(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUs, error)
914 // Single/bulk activate ONU(s) for specific PON port(s)
915 ONUActivate(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*BBSimResponse, error)
916 // Deactivate ONU(s) for specific PON port(s) specified by
917 // a given onu_serial, onu_id, or pon_port_id
918 ONUDeactivate(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*BBSimResponse, error)
919 // Generate ONU related alarms
920 GenerateONUAlarm(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*BBSimResponse, error)
921 // Generate OLT related alarms
922 GenerateOLTAlarm(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*BBSimResponse, error)
923 // Perform actions on OLT/ONU devices (e.g. reboot)
924 PerformDeviceAction(ctx context.Context, in *DeviceAction, opts ...grpc.CallOption) (*BBSimResponse, error)
925 // Get flows
926 GetFlows(ctx context.Context, in *ONUInfo, opts ...grpc.CallOption) (*Flows, error)
927}
928
929type bBSimServiceClient struct {
930 cc *grpc.ClientConn
931}
932
933func NewBBSimServiceClient(cc *grpc.ClientConn) BBSimServiceClient {
934 return &bBSimServiceClient{cc}
935}
936
937// Deprecated: Do not use.
938func (c *bBSimServiceClient) OLTStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*OLTStatusResponse, error) {
939 out := new(OLTStatusResponse)
940 err := c.cc.Invoke(ctx, "/legacy.BBSimService/OLTStatus", in, out, opts...)
941 if err != nil {
942 return nil, err
943 }
944 return out, nil
945}
946
947// Deprecated: Do not use.
948func (c *bBSimServiceClient) PortStatus(ctx context.Context, in *PortInfo, opts ...grpc.CallOption) (*Ports, error) {
949 out := new(Ports)
950 err := c.cc.Invoke(ctx, "/legacy.BBSimService/PortStatus", in, out, opts...)
951 if err != nil {
952 return nil, err
953 }
954 return out, nil
955}
956
957// Deprecated: Do not use.
958func (c *bBSimServiceClient) ONUStatus(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONUs, error) {
959 out := new(ONUs)
960 err := c.cc.Invoke(ctx, "/legacy.BBSimService/ONUStatus", in, out, opts...)
961 if err != nil {
962 return nil, err
963 }
964 return out, nil
965}
966
967// Deprecated: Do not use.
968func (c *bBSimServiceClient) ONUActivate(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*BBSimResponse, error) {
969 out := new(BBSimResponse)
970 err := c.cc.Invoke(ctx, "/legacy.BBSimService/ONUActivate", in, out, opts...)
971 if err != nil {
972 return nil, err
973 }
974 return out, nil
975}
976
977// Deprecated: Do not use.
978func (c *bBSimServiceClient) ONUDeactivate(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*BBSimResponse, error) {
979 out := new(BBSimResponse)
980 err := c.cc.Invoke(ctx, "/legacy.BBSimService/ONUDeactivate", in, out, opts...)
981 if err != nil {
982 return nil, err
983 }
984 return out, nil
985}
986
987// Deprecated: Do not use.
988func (c *bBSimServiceClient) GenerateONUAlarm(ctx context.Context, in *ONUAlarmRequest, opts ...grpc.CallOption) (*BBSimResponse, error) {
989 out := new(BBSimResponse)
990 err := c.cc.Invoke(ctx, "/legacy.BBSimService/GenerateONUAlarm", in, out, opts...)
991 if err != nil {
992 return nil, err
993 }
994 return out, nil
995}
996
997// Deprecated: Do not use.
998func (c *bBSimServiceClient) GenerateOLTAlarm(ctx context.Context, in *OLTAlarmRequest, opts ...grpc.CallOption) (*BBSimResponse, error) {
999 out := new(BBSimResponse)
1000 err := c.cc.Invoke(ctx, "/legacy.BBSimService/GenerateOLTAlarm", in, out, opts...)
1001 if err != nil {
1002 return nil, err
1003 }
1004 return out, nil
1005}
1006
1007// Deprecated: Do not use.
1008func (c *bBSimServiceClient) PerformDeviceAction(ctx context.Context, in *DeviceAction, opts ...grpc.CallOption) (*BBSimResponse, error) {
1009 out := new(BBSimResponse)
1010 err := c.cc.Invoke(ctx, "/legacy.BBSimService/PerformDeviceAction", in, out, opts...)
1011 if err != nil {
1012 return nil, err
1013 }
1014 return out, nil
1015}
1016
1017// Deprecated: Do not use.
1018func (c *bBSimServiceClient) GetFlows(ctx context.Context, in *ONUInfo, opts ...grpc.CallOption) (*Flows, error) {
1019 out := new(Flows)
1020 err := c.cc.Invoke(ctx, "/legacy.BBSimService/GetFlows", in, out, opts...)
1021 if err != nil {
1022 return nil, err
1023 }
1024 return out, nil
1025}
1026
1027// BBSimServiceServer is the server API for BBSimService service.
1028type BBSimServiceServer interface {
1029 // Get current status of OLT
1030 OLTStatus(context.Context, *Empty) (*OLTStatusResponse, error)
1031 // Get status of a PON/NNI port
1032 PortStatus(context.Context, *PortInfo) (*Ports, error)
1033 // Get status of all or specific ONUs
1034 ONUStatus(context.Context, *ONURequest) (*ONUs, error)
1035 // Single/bulk activate ONU(s) for specific PON port(s)
1036 ONUActivate(context.Context, *ONURequest) (*BBSimResponse, error)
1037 // Deactivate ONU(s) for specific PON port(s) specified by
1038 // a given onu_serial, onu_id, or pon_port_id
1039 ONUDeactivate(context.Context, *ONURequest) (*BBSimResponse, error)
1040 // Generate ONU related alarms
1041 GenerateONUAlarm(context.Context, *ONUAlarmRequest) (*BBSimResponse, error)
1042 // Generate OLT related alarms
1043 GenerateOLTAlarm(context.Context, *OLTAlarmRequest) (*BBSimResponse, error)
1044 // Perform actions on OLT/ONU devices (e.g. reboot)
1045 PerformDeviceAction(context.Context, *DeviceAction) (*BBSimResponse, error)
1046 // Get flows
1047 GetFlows(context.Context, *ONUInfo) (*Flows, error)
1048}
1049
1050// UnimplementedBBSimServiceServer can be embedded to have forward compatible implementations.
1051type UnimplementedBBSimServiceServer struct {
1052}
1053
1054func (*UnimplementedBBSimServiceServer) OLTStatus(ctx context.Context, req *Empty) (*OLTStatusResponse, error) {
1055 return nil, status.Errorf(codes.Unimplemented, "method OLTStatus not implemented")
1056}
1057func (*UnimplementedBBSimServiceServer) PortStatus(ctx context.Context, req *PortInfo) (*Ports, error) {
1058 return nil, status.Errorf(codes.Unimplemented, "method PortStatus not implemented")
1059}
1060func (*UnimplementedBBSimServiceServer) ONUStatus(ctx context.Context, req *ONURequest) (*ONUs, error) {
1061 return nil, status.Errorf(codes.Unimplemented, "method ONUStatus not implemented")
1062}
1063func (*UnimplementedBBSimServiceServer) ONUActivate(ctx context.Context, req *ONURequest) (*BBSimResponse, error) {
1064 return nil, status.Errorf(codes.Unimplemented, "method ONUActivate not implemented")
1065}
1066func (*UnimplementedBBSimServiceServer) ONUDeactivate(ctx context.Context, req *ONURequest) (*BBSimResponse, error) {
1067 return nil, status.Errorf(codes.Unimplemented, "method ONUDeactivate not implemented")
1068}
1069func (*UnimplementedBBSimServiceServer) GenerateONUAlarm(ctx context.Context, req *ONUAlarmRequest) (*BBSimResponse, error) {
1070 return nil, status.Errorf(codes.Unimplemented, "method GenerateONUAlarm not implemented")
1071}
1072func (*UnimplementedBBSimServiceServer) GenerateOLTAlarm(ctx context.Context, req *OLTAlarmRequest) (*BBSimResponse, error) {
1073 return nil, status.Errorf(codes.Unimplemented, "method GenerateOLTAlarm not implemented")
1074}
1075func (*UnimplementedBBSimServiceServer) PerformDeviceAction(ctx context.Context, req *DeviceAction) (*BBSimResponse, error) {
1076 return nil, status.Errorf(codes.Unimplemented, "method PerformDeviceAction not implemented")
1077}
1078func (*UnimplementedBBSimServiceServer) GetFlows(ctx context.Context, req *ONUInfo) (*Flows, error) {
1079 return nil, status.Errorf(codes.Unimplemented, "method GetFlows not implemented")
1080}
1081
1082func RegisterBBSimServiceServer(s *grpc.Server, srv BBSimServiceServer) {
1083 s.RegisterService(&_BBSimService_serviceDesc, srv)
1084}
1085
1086func _BBSimService_OLTStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1087 in := new(Empty)
1088 if err := dec(in); err != nil {
1089 return nil, err
1090 }
1091 if interceptor == nil {
1092 return srv.(BBSimServiceServer).OLTStatus(ctx, in)
1093 }
1094 info := &grpc.UnaryServerInfo{
1095 Server: srv,
1096 FullMethod: "/legacy.BBSimService/OLTStatus",
1097 }
1098 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1099 return srv.(BBSimServiceServer).OLTStatus(ctx, req.(*Empty))
1100 }
1101 return interceptor(ctx, in, info, handler)
1102}
1103
1104func _BBSimService_PortStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1105 in := new(PortInfo)
1106 if err := dec(in); err != nil {
1107 return nil, err
1108 }
1109 if interceptor == nil {
1110 return srv.(BBSimServiceServer).PortStatus(ctx, in)
1111 }
1112 info := &grpc.UnaryServerInfo{
1113 Server: srv,
1114 FullMethod: "/legacy.BBSimService/PortStatus",
1115 }
1116 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1117 return srv.(BBSimServiceServer).PortStatus(ctx, req.(*PortInfo))
1118 }
1119 return interceptor(ctx, in, info, handler)
1120}
1121
1122func _BBSimService_ONUStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1123 in := new(ONURequest)
1124 if err := dec(in); err != nil {
1125 return nil, err
1126 }
1127 if interceptor == nil {
1128 return srv.(BBSimServiceServer).ONUStatus(ctx, in)
1129 }
1130 info := &grpc.UnaryServerInfo{
1131 Server: srv,
1132 FullMethod: "/legacy.BBSimService/ONUStatus",
1133 }
1134 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1135 return srv.(BBSimServiceServer).ONUStatus(ctx, req.(*ONURequest))
1136 }
1137 return interceptor(ctx, in, info, handler)
1138}
1139
1140func _BBSimService_ONUActivate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1141 in := new(ONURequest)
1142 if err := dec(in); err != nil {
1143 return nil, err
1144 }
1145 if interceptor == nil {
1146 return srv.(BBSimServiceServer).ONUActivate(ctx, in)
1147 }
1148 info := &grpc.UnaryServerInfo{
1149 Server: srv,
1150 FullMethod: "/legacy.BBSimService/ONUActivate",
1151 }
1152 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1153 return srv.(BBSimServiceServer).ONUActivate(ctx, req.(*ONURequest))
1154 }
1155 return interceptor(ctx, in, info, handler)
1156}
1157
1158func _BBSimService_ONUDeactivate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1159 in := new(ONURequest)
1160 if err := dec(in); err != nil {
1161 return nil, err
1162 }
1163 if interceptor == nil {
1164 return srv.(BBSimServiceServer).ONUDeactivate(ctx, in)
1165 }
1166 info := &grpc.UnaryServerInfo{
1167 Server: srv,
1168 FullMethod: "/legacy.BBSimService/ONUDeactivate",
1169 }
1170 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1171 return srv.(BBSimServiceServer).ONUDeactivate(ctx, req.(*ONURequest))
1172 }
1173 return interceptor(ctx, in, info, handler)
1174}
1175
1176func _BBSimService_GenerateONUAlarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1177 in := new(ONUAlarmRequest)
1178 if err := dec(in); err != nil {
1179 return nil, err
1180 }
1181 if interceptor == nil {
1182 return srv.(BBSimServiceServer).GenerateONUAlarm(ctx, in)
1183 }
1184 info := &grpc.UnaryServerInfo{
1185 Server: srv,
1186 FullMethod: "/legacy.BBSimService/GenerateONUAlarm",
1187 }
1188 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1189 return srv.(BBSimServiceServer).GenerateONUAlarm(ctx, req.(*ONUAlarmRequest))
1190 }
1191 return interceptor(ctx, in, info, handler)
1192}
1193
1194func _BBSimService_GenerateOLTAlarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1195 in := new(OLTAlarmRequest)
1196 if err := dec(in); err != nil {
1197 return nil, err
1198 }
1199 if interceptor == nil {
1200 return srv.(BBSimServiceServer).GenerateOLTAlarm(ctx, in)
1201 }
1202 info := &grpc.UnaryServerInfo{
1203 Server: srv,
1204 FullMethod: "/legacy.BBSimService/GenerateOLTAlarm",
1205 }
1206 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1207 return srv.(BBSimServiceServer).GenerateOLTAlarm(ctx, req.(*OLTAlarmRequest))
1208 }
1209 return interceptor(ctx, in, info, handler)
1210}
1211
1212func _BBSimService_PerformDeviceAction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1213 in := new(DeviceAction)
1214 if err := dec(in); err != nil {
1215 return nil, err
1216 }
1217 if interceptor == nil {
1218 return srv.(BBSimServiceServer).PerformDeviceAction(ctx, in)
1219 }
1220 info := &grpc.UnaryServerInfo{
1221 Server: srv,
1222 FullMethod: "/legacy.BBSimService/PerformDeviceAction",
1223 }
1224 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1225 return srv.(BBSimServiceServer).PerformDeviceAction(ctx, req.(*DeviceAction))
1226 }
1227 return interceptor(ctx, in, info, handler)
1228}
1229
1230func _BBSimService_GetFlows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1231 in := new(ONUInfo)
1232 if err := dec(in); err != nil {
1233 return nil, err
1234 }
1235 if interceptor == nil {
1236 return srv.(BBSimServiceServer).GetFlows(ctx, in)
1237 }
1238 info := &grpc.UnaryServerInfo{
1239 Server: srv,
1240 FullMethod: "/legacy.BBSimService/GetFlows",
1241 }
1242 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1243 return srv.(BBSimServiceServer).GetFlows(ctx, req.(*ONUInfo))
1244 }
1245 return interceptor(ctx, in, info, handler)
1246}
1247
1248var _BBSimService_serviceDesc = grpc.ServiceDesc{
1249 ServiceName: "legacy.BBSimService",
1250 HandlerType: (*BBSimServiceServer)(nil),
1251 Methods: []grpc.MethodDesc{
1252 {
1253 MethodName: "OLTStatus",
1254 Handler: _BBSimService_OLTStatus_Handler,
1255 },
1256 {
1257 MethodName: "PortStatus",
1258 Handler: _BBSimService_PortStatus_Handler,
1259 },
1260 {
1261 MethodName: "ONUStatus",
1262 Handler: _BBSimService_ONUStatus_Handler,
1263 },
1264 {
1265 MethodName: "ONUActivate",
1266 Handler: _BBSimService_ONUActivate_Handler,
1267 },
1268 {
1269 MethodName: "ONUDeactivate",
1270 Handler: _BBSimService_ONUDeactivate_Handler,
1271 },
1272 {
1273 MethodName: "GenerateONUAlarm",
1274 Handler: _BBSimService_GenerateONUAlarm_Handler,
1275 },
1276 {
1277 MethodName: "GenerateOLTAlarm",
1278 Handler: _BBSimService_GenerateOLTAlarm_Handler,
1279 },
1280 {
1281 MethodName: "PerformDeviceAction",
1282 Handler: _BBSimService_PerformDeviceAction_Handler,
1283 },
1284 {
1285 MethodName: "GetFlows",
1286 Handler: _BBSimService_GetFlows_Handler,
1287 },
1288 },
1289 Streams: []grpc.StreamDesc{},
1290 Metadata: "api/legacy/bbsim.proto",
1291}