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