blob: 1dc6e94e6fb9874c3ac72031ea1d4c64cbc315cb [file] [log] [blame]
William Kurkian1b363f42019-03-12 15:28:12 -04001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: voltha_protos/ponsim.proto
3
William Kurkianad745652019-03-20 08:45:51 -04004package voltha
William Kurkian1b363f42019-03-12 15:28:12 -04005
6import (
William Kurkianad745652019-03-20 08:45:51 -04007 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
10 empty "github.com/golang/protobuf/ptypes/empty"
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +030011 openflow_13 "github.com/opencord/voltha-protos/v3/go/openflow_13"
William Kurkian1b363f42019-03-12 15:28:12 -040012 grpc "google.golang.org/grpc"
William Kurkianad745652019-03-20 08:45:51 -040013 math "math"
William Kurkian1b363f42019-03-12 15:28:12 -040014)
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.
William Kurkianad745652019-03-20 08:45:51 -040025const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
William Kurkian1b363f42019-03-12 15:28:12 -040026
27type PonSimOnuDeviceInfo struct {
28 UniPort int32 `protobuf:"varint,1,opt,name=uni_port,json=uniPort,proto3" json:"uni_port,omitempty"`
29 SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
30 XXX_NoUnkeyedLiteral struct{} `json:"-"`
31 XXX_unrecognized []byte `json:"-"`
32 XXX_sizecache int32 `json:"-"`
33}
34
35func (m *PonSimOnuDeviceInfo) Reset() { *m = PonSimOnuDeviceInfo{} }
36func (m *PonSimOnuDeviceInfo) String() string { return proto.CompactTextString(m) }
37func (*PonSimOnuDeviceInfo) ProtoMessage() {}
38func (*PonSimOnuDeviceInfo) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -040039 return fileDescriptor_352253851b8ea7c0, []int{0}
William Kurkian1b363f42019-03-12 15:28:12 -040040}
William Kurkianad745652019-03-20 08:45:51 -040041
William Kurkian1b363f42019-03-12 15:28:12 -040042func (m *PonSimOnuDeviceInfo) XXX_Unmarshal(b []byte) error {
43 return xxx_messageInfo_PonSimOnuDeviceInfo.Unmarshal(m, b)
44}
45func (m *PonSimOnuDeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
46 return xxx_messageInfo_PonSimOnuDeviceInfo.Marshal(b, m, deterministic)
47}
William Kurkianad745652019-03-20 08:45:51 -040048func (m *PonSimOnuDeviceInfo) XXX_Merge(src proto.Message) {
49 xxx_messageInfo_PonSimOnuDeviceInfo.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -040050}
51func (m *PonSimOnuDeviceInfo) XXX_Size() int {
52 return xxx_messageInfo_PonSimOnuDeviceInfo.Size(m)
53}
54func (m *PonSimOnuDeviceInfo) XXX_DiscardUnknown() {
55 xxx_messageInfo_PonSimOnuDeviceInfo.DiscardUnknown(m)
56}
57
58var xxx_messageInfo_PonSimOnuDeviceInfo proto.InternalMessageInfo
59
60func (m *PonSimOnuDeviceInfo) GetUniPort() int32 {
61 if m != nil {
62 return m.UniPort
63 }
64 return 0
65}
66
67func (m *PonSimOnuDeviceInfo) GetSerialNumber() string {
68 if m != nil {
69 return m.SerialNumber
70 }
71 return ""
72}
73
74type PonSimDeviceInfo struct {
75 NniPort int32 `protobuf:"varint,1,opt,name=nni_port,json=nniPort,proto3" json:"nni_port,omitempty"`
76 Onus []*PonSimOnuDeviceInfo `protobuf:"bytes,2,rep,name=onus,proto3" json:"onus,omitempty"`
77 XXX_NoUnkeyedLiteral struct{} `json:"-"`
78 XXX_unrecognized []byte `json:"-"`
79 XXX_sizecache int32 `json:"-"`
80}
81
82func (m *PonSimDeviceInfo) Reset() { *m = PonSimDeviceInfo{} }
83func (m *PonSimDeviceInfo) String() string { return proto.CompactTextString(m) }
84func (*PonSimDeviceInfo) ProtoMessage() {}
85func (*PonSimDeviceInfo) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -040086 return fileDescriptor_352253851b8ea7c0, []int{1}
William Kurkian1b363f42019-03-12 15:28:12 -040087}
William Kurkianad745652019-03-20 08:45:51 -040088
William Kurkian1b363f42019-03-12 15:28:12 -040089func (m *PonSimDeviceInfo) XXX_Unmarshal(b []byte) error {
90 return xxx_messageInfo_PonSimDeviceInfo.Unmarshal(m, b)
91}
92func (m *PonSimDeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
93 return xxx_messageInfo_PonSimDeviceInfo.Marshal(b, m, deterministic)
94}
William Kurkianad745652019-03-20 08:45:51 -040095func (m *PonSimDeviceInfo) XXX_Merge(src proto.Message) {
96 xxx_messageInfo_PonSimDeviceInfo.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -040097}
98func (m *PonSimDeviceInfo) XXX_Size() int {
99 return xxx_messageInfo_PonSimDeviceInfo.Size(m)
100}
101func (m *PonSimDeviceInfo) XXX_DiscardUnknown() {
102 xxx_messageInfo_PonSimDeviceInfo.DiscardUnknown(m)
103}
104
105var xxx_messageInfo_PonSimDeviceInfo proto.InternalMessageInfo
106
107func (m *PonSimDeviceInfo) GetNniPort() int32 {
108 if m != nil {
109 return m.NniPort
110 }
111 return 0
112}
113
114func (m *PonSimDeviceInfo) GetOnus() []*PonSimOnuDeviceInfo {
115 if m != nil {
116 return m.Onus
117 }
118 return nil
119}
120
121type FlowTable struct {
122 Port int32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
123 Flows []*openflow_13.OfpFlowStats `protobuf:"bytes,2,rep,name=flows,proto3" json:"flows,omitempty"`
124 XXX_NoUnkeyedLiteral struct{} `json:"-"`
125 XXX_unrecognized []byte `json:"-"`
126 XXX_sizecache int32 `json:"-"`
127}
128
129func (m *FlowTable) Reset() { *m = FlowTable{} }
130func (m *FlowTable) String() string { return proto.CompactTextString(m) }
131func (*FlowTable) ProtoMessage() {}
132func (*FlowTable) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400133 return fileDescriptor_352253851b8ea7c0, []int{2}
William Kurkian1b363f42019-03-12 15:28:12 -0400134}
William Kurkianad745652019-03-20 08:45:51 -0400135
William Kurkian1b363f42019-03-12 15:28:12 -0400136func (m *FlowTable) XXX_Unmarshal(b []byte) error {
137 return xxx_messageInfo_FlowTable.Unmarshal(m, b)
138}
139func (m *FlowTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
140 return xxx_messageInfo_FlowTable.Marshal(b, m, deterministic)
141}
William Kurkianad745652019-03-20 08:45:51 -0400142func (m *FlowTable) XXX_Merge(src proto.Message) {
143 xxx_messageInfo_FlowTable.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400144}
145func (m *FlowTable) XXX_Size() int {
146 return xxx_messageInfo_FlowTable.Size(m)
147}
148func (m *FlowTable) XXX_DiscardUnknown() {
149 xxx_messageInfo_FlowTable.DiscardUnknown(m)
150}
151
152var xxx_messageInfo_FlowTable proto.InternalMessageInfo
153
154func (m *FlowTable) GetPort() int32 {
155 if m != nil {
156 return m.Port
157 }
158 return 0
159}
160
161func (m *FlowTable) GetFlows() []*openflow_13.OfpFlowStats {
162 if m != nil {
163 return m.Flows
164 }
165 return nil
166}
167
168type PonSimFrame struct {
169 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
170 Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
171 OutPort int32 `protobuf:"varint,3,opt,name=out_port,json=outPort,proto3" json:"out_port,omitempty"`
172 XXX_NoUnkeyedLiteral struct{} `json:"-"`
173 XXX_unrecognized []byte `json:"-"`
174 XXX_sizecache int32 `json:"-"`
175}
176
177func (m *PonSimFrame) Reset() { *m = PonSimFrame{} }
178func (m *PonSimFrame) String() string { return proto.CompactTextString(m) }
179func (*PonSimFrame) ProtoMessage() {}
180func (*PonSimFrame) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400181 return fileDescriptor_352253851b8ea7c0, []int{3}
William Kurkian1b363f42019-03-12 15:28:12 -0400182}
William Kurkianad745652019-03-20 08:45:51 -0400183
William Kurkian1b363f42019-03-12 15:28:12 -0400184func (m *PonSimFrame) XXX_Unmarshal(b []byte) error {
185 return xxx_messageInfo_PonSimFrame.Unmarshal(m, b)
186}
187func (m *PonSimFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
188 return xxx_messageInfo_PonSimFrame.Marshal(b, m, deterministic)
189}
William Kurkianad745652019-03-20 08:45:51 -0400190func (m *PonSimFrame) XXX_Merge(src proto.Message) {
191 xxx_messageInfo_PonSimFrame.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400192}
193func (m *PonSimFrame) XXX_Size() int {
194 return xxx_messageInfo_PonSimFrame.Size(m)
195}
196func (m *PonSimFrame) XXX_DiscardUnknown() {
197 xxx_messageInfo_PonSimFrame.DiscardUnknown(m)
198}
199
200var xxx_messageInfo_PonSimFrame proto.InternalMessageInfo
201
202func (m *PonSimFrame) GetId() string {
203 if m != nil {
204 return m.Id
205 }
206 return ""
207}
208
209func (m *PonSimFrame) GetPayload() []byte {
210 if m != nil {
211 return m.Payload
212 }
213 return nil
214}
215
216func (m *PonSimFrame) GetOutPort() int32 {
217 if m != nil {
218 return m.OutPort
219 }
220 return 0
221}
222
223type PonSimPacketCounter struct {
224 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
225 Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
226 XXX_NoUnkeyedLiteral struct{} `json:"-"`
227 XXX_unrecognized []byte `json:"-"`
228 XXX_sizecache int32 `json:"-"`
229}
230
231func (m *PonSimPacketCounter) Reset() { *m = PonSimPacketCounter{} }
232func (m *PonSimPacketCounter) String() string { return proto.CompactTextString(m) }
233func (*PonSimPacketCounter) ProtoMessage() {}
234func (*PonSimPacketCounter) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400235 return fileDescriptor_352253851b8ea7c0, []int{4}
William Kurkian1b363f42019-03-12 15:28:12 -0400236}
William Kurkianad745652019-03-20 08:45:51 -0400237
William Kurkian1b363f42019-03-12 15:28:12 -0400238func (m *PonSimPacketCounter) XXX_Unmarshal(b []byte) error {
239 return xxx_messageInfo_PonSimPacketCounter.Unmarshal(m, b)
240}
241func (m *PonSimPacketCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
242 return xxx_messageInfo_PonSimPacketCounter.Marshal(b, m, deterministic)
243}
William Kurkianad745652019-03-20 08:45:51 -0400244func (m *PonSimPacketCounter) XXX_Merge(src proto.Message) {
245 xxx_messageInfo_PonSimPacketCounter.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400246}
247func (m *PonSimPacketCounter) XXX_Size() int {
248 return xxx_messageInfo_PonSimPacketCounter.Size(m)
249}
250func (m *PonSimPacketCounter) XXX_DiscardUnknown() {
251 xxx_messageInfo_PonSimPacketCounter.DiscardUnknown(m)
252}
253
254var xxx_messageInfo_PonSimPacketCounter proto.InternalMessageInfo
255
256func (m *PonSimPacketCounter) GetName() string {
257 if m != nil {
258 return m.Name
259 }
260 return ""
261}
262
263func (m *PonSimPacketCounter) GetValue() int64 {
264 if m != nil {
265 return m.Value
266 }
267 return 0
268}
269
270type PonSimPortMetrics struct {
271 PortName string `protobuf:"bytes,1,opt,name=port_name,json=portName,proto3" json:"port_name,omitempty"`
272 Packets []*PonSimPacketCounter `protobuf:"bytes,2,rep,name=packets,proto3" json:"packets,omitempty"`
273 XXX_NoUnkeyedLiteral struct{} `json:"-"`
274 XXX_unrecognized []byte `json:"-"`
275 XXX_sizecache int32 `json:"-"`
276}
277
278func (m *PonSimPortMetrics) Reset() { *m = PonSimPortMetrics{} }
279func (m *PonSimPortMetrics) String() string { return proto.CompactTextString(m) }
280func (*PonSimPortMetrics) ProtoMessage() {}
281func (*PonSimPortMetrics) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400282 return fileDescriptor_352253851b8ea7c0, []int{5}
William Kurkian1b363f42019-03-12 15:28:12 -0400283}
William Kurkianad745652019-03-20 08:45:51 -0400284
William Kurkian1b363f42019-03-12 15:28:12 -0400285func (m *PonSimPortMetrics) XXX_Unmarshal(b []byte) error {
286 return xxx_messageInfo_PonSimPortMetrics.Unmarshal(m, b)
287}
288func (m *PonSimPortMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
289 return xxx_messageInfo_PonSimPortMetrics.Marshal(b, m, deterministic)
290}
William Kurkianad745652019-03-20 08:45:51 -0400291func (m *PonSimPortMetrics) XXX_Merge(src proto.Message) {
292 xxx_messageInfo_PonSimPortMetrics.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400293}
294func (m *PonSimPortMetrics) XXX_Size() int {
295 return xxx_messageInfo_PonSimPortMetrics.Size(m)
296}
297func (m *PonSimPortMetrics) XXX_DiscardUnknown() {
298 xxx_messageInfo_PonSimPortMetrics.DiscardUnknown(m)
299}
300
301var xxx_messageInfo_PonSimPortMetrics proto.InternalMessageInfo
302
303func (m *PonSimPortMetrics) GetPortName() string {
304 if m != nil {
305 return m.PortName
306 }
307 return ""
308}
309
310func (m *PonSimPortMetrics) GetPackets() []*PonSimPacketCounter {
311 if m != nil {
312 return m.Packets
313 }
314 return nil
315}
316
317type PonSimMetrics struct {
318 Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
319 Metrics []*PonSimPortMetrics `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
320 XXX_NoUnkeyedLiteral struct{} `json:"-"`
321 XXX_unrecognized []byte `json:"-"`
322 XXX_sizecache int32 `json:"-"`
323}
324
325func (m *PonSimMetrics) Reset() { *m = PonSimMetrics{} }
326func (m *PonSimMetrics) String() string { return proto.CompactTextString(m) }
327func (*PonSimMetrics) ProtoMessage() {}
328func (*PonSimMetrics) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400329 return fileDescriptor_352253851b8ea7c0, []int{6}
William Kurkian1b363f42019-03-12 15:28:12 -0400330}
William Kurkianad745652019-03-20 08:45:51 -0400331
William Kurkian1b363f42019-03-12 15:28:12 -0400332func (m *PonSimMetrics) XXX_Unmarshal(b []byte) error {
333 return xxx_messageInfo_PonSimMetrics.Unmarshal(m, b)
334}
335func (m *PonSimMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
336 return xxx_messageInfo_PonSimMetrics.Marshal(b, m, deterministic)
337}
William Kurkianad745652019-03-20 08:45:51 -0400338func (m *PonSimMetrics) XXX_Merge(src proto.Message) {
339 xxx_messageInfo_PonSimMetrics.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400340}
341func (m *PonSimMetrics) XXX_Size() int {
342 return xxx_messageInfo_PonSimMetrics.Size(m)
343}
344func (m *PonSimMetrics) XXX_DiscardUnknown() {
345 xxx_messageInfo_PonSimMetrics.DiscardUnknown(m)
346}
347
348var xxx_messageInfo_PonSimMetrics proto.InternalMessageInfo
349
350func (m *PonSimMetrics) GetDevice() string {
351 if m != nil {
352 return m.Device
353 }
354 return ""
355}
356
357func (m *PonSimMetrics) GetMetrics() []*PonSimPortMetrics {
358 if m != nil {
359 return m.Metrics
360 }
361 return nil
362}
363
364type PonSimMetricsRequest struct {
365 Port int32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
366 XXX_NoUnkeyedLiteral struct{} `json:"-"`
367 XXX_unrecognized []byte `json:"-"`
368 XXX_sizecache int32 `json:"-"`
369}
370
371func (m *PonSimMetricsRequest) Reset() { *m = PonSimMetricsRequest{} }
372func (m *PonSimMetricsRequest) String() string { return proto.CompactTextString(m) }
373func (*PonSimMetricsRequest) ProtoMessage() {}
374func (*PonSimMetricsRequest) Descriptor() ([]byte, []int) {
William Kurkianad745652019-03-20 08:45:51 -0400375 return fileDescriptor_352253851b8ea7c0, []int{7}
William Kurkian1b363f42019-03-12 15:28:12 -0400376}
William Kurkianad745652019-03-20 08:45:51 -0400377
William Kurkian1b363f42019-03-12 15:28:12 -0400378func (m *PonSimMetricsRequest) XXX_Unmarshal(b []byte) error {
379 return xxx_messageInfo_PonSimMetricsRequest.Unmarshal(m, b)
380}
381func (m *PonSimMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
382 return xxx_messageInfo_PonSimMetricsRequest.Marshal(b, m, deterministic)
383}
William Kurkianad745652019-03-20 08:45:51 -0400384func (m *PonSimMetricsRequest) XXX_Merge(src proto.Message) {
385 xxx_messageInfo_PonSimMetricsRequest.Merge(m, src)
William Kurkian1b363f42019-03-12 15:28:12 -0400386}
387func (m *PonSimMetricsRequest) XXX_Size() int {
388 return xxx_messageInfo_PonSimMetricsRequest.Size(m)
389}
390func (m *PonSimMetricsRequest) XXX_DiscardUnknown() {
391 xxx_messageInfo_PonSimMetricsRequest.DiscardUnknown(m)
392}
393
394var xxx_messageInfo_PonSimMetricsRequest proto.InternalMessageInfo
395
396func (m *PonSimMetricsRequest) GetPort() int32 {
397 if m != nil {
398 return m.Port
399 }
400 return 0
401}
402
403func init() {
404 proto.RegisterType((*PonSimOnuDeviceInfo)(nil), "voltha.PonSimOnuDeviceInfo")
405 proto.RegisterType((*PonSimDeviceInfo)(nil), "voltha.PonSimDeviceInfo")
406 proto.RegisterType((*FlowTable)(nil), "voltha.FlowTable")
407 proto.RegisterType((*PonSimFrame)(nil), "voltha.PonSimFrame")
408 proto.RegisterType((*PonSimPacketCounter)(nil), "voltha.PonSimPacketCounter")
409 proto.RegisterType((*PonSimPortMetrics)(nil), "voltha.PonSimPortMetrics")
410 proto.RegisterType((*PonSimMetrics)(nil), "voltha.PonSimMetrics")
411 proto.RegisterType((*PonSimMetricsRequest)(nil), "voltha.PonSimMetricsRequest")
412}
413
William Kurkianad745652019-03-20 08:45:51 -0400414func init() { proto.RegisterFile("voltha_protos/ponsim.proto", fileDescriptor_352253851b8ea7c0) }
415
416var fileDescriptor_352253851b8ea7c0 = []byte{
Serkant Uluderyacbcfaa42019-10-18 13:25:08 +0300417 // 563 bytes of a gzipped FileDescriptorProto
418 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x5f, 0x6f, 0xd3, 0x30,
419 0x14, 0xc5, 0xdb, 0x6e, 0xeb, 0x9f, 0xbb, 0x15, 0x98, 0x3b, 0xa6, 0xae, 0x7d, 0xa0, 0x32, 0x2f,
420 0x15, 0x12, 0x09, 0x5b, 0xc5, 0x0b, 0x48, 0x80, 0x18, 0xdb, 0xc4, 0x03, 0xa3, 0x72, 0xd9, 0x0b,
421 0x42, 0x44, 0x69, 0xe2, 0x66, 0x11, 0x89, 0x6f, 0x48, 0xec, 0x4e, 0xfb, 0x86, 0x7c, 0x2c, 0x14,
422 0x3b, 0xa1, 0xcd, 0xd4, 0xf2, 0x66, 0x5f, 0x9f, 0xfe, 0xce, 0x3d, 0x37, 0x57, 0x85, 0xc1, 0x12,
423 0x23, 0x79, 0xeb, 0x3a, 0x49, 0x8a, 0x12, 0x33, 0x3b, 0x41, 0x91, 0x85, 0xb1, 0xa5, 0x6f, 0xa4,
424 0x69, 0xde, 0x06, 0xc3, 0x00, 0x31, 0x88, 0xb8, 0xad, 0xab, 0x73, 0xb5, 0xb0, 0x79, 0x9c, 0xc8,
425 0x7b, 0x23, 0x1a, 0x3c, 0xab, 0x02, 0x30, 0xe1, 0x62, 0x11, 0xe1, 0x9d, 0x73, 0x3a, 0x31, 0x02,
426 0x7a, 0x03, 0xbd, 0x29, 0x8a, 0x59, 0x18, 0x7f, 0x15, 0xea, 0x13, 0x5f, 0x86, 0x1e, 0xff, 0x2c,
427 0x16, 0x48, 0x4e, 0xa0, 0xad, 0x44, 0xe8, 0x24, 0x98, 0xca, 0x7e, 0x7d, 0x54, 0x1f, 0xef, 0xb1,
428 0x96, 0x12, 0xe1, 0x14, 0x53, 0x49, 0x9e, 0x43, 0x37, 0xe3, 0x69, 0xe8, 0x46, 0x8e, 0x50, 0xf1,
429 0x9c, 0xa7, 0xfd, 0xc6, 0xa8, 0x3e, 0xee, 0xb0, 0x03, 0x53, 0xbc, 0xd6, 0x35, 0xfa, 0x13, 0x9e,
430 0x18, 0x6c, 0x95, 0x29, 0x1e, 0x30, 0x45, 0xc1, 0xb4, 0x61, 0x17, 0x85, 0xca, 0xfa, 0x8d, 0xd1,
431 0xce, 0x78, 0xff, 0x6c, 0x68, 0x99, 0xae, 0xad, 0x0d, 0x9d, 0x31, 0x2d, 0xa4, 0x0c, 0x3a, 0x97,
432 0x11, 0xde, 0x7d, 0x73, 0xe7, 0x11, 0x27, 0x04, 0x76, 0xd7, 0xa0, 0xfa, 0x4c, 0x4e, 0x61, 0x2f,
433 0x0f, 0xba, 0x42, 0xae, 0x47, 0xc7, 0x45, 0xe2, 0xe8, 0x73, 0x26, 0x5d, 0x99, 0x31, 0xa3, 0xa4,
434 0x0c, 0xf6, 0x8d, 0xe1, 0x65, 0xea, 0xc6, 0x9c, 0x3c, 0x82, 0x46, 0xe8, 0x6b, 0x66, 0x87, 0x35,
435 0x42, 0x9f, 0xf4, 0xa1, 0x95, 0xb8, 0xf7, 0x11, 0xba, 0xbe, 0x4e, 0x7c, 0xc0, 0xca, 0x6b, 0x1e,
436 0x0c, 0x95, 0x34, 0xc1, 0x76, 0x4c, 0x30, 0x54, 0x32, 0x0f, 0x46, 0xdf, 0x97, 0xe3, 0x9d, 0xba,
437 0xde, 0x2f, 0x2e, 0xcf, 0x51, 0x09, 0xc9, 0xd3, 0xbc, 0x63, 0xe1, 0xc6, 0xbc, 0xa0, 0xeb, 0x33,
438 0x39, 0x82, 0xbd, 0xa5, 0x1b, 0x29, 0xae, 0xe9, 0x3b, 0xcc, 0x5c, 0x68, 0x00, 0x87, 0x05, 0x00,
439 0x53, 0xf9, 0x85, 0xcb, 0x34, 0xf4, 0x32, 0x32, 0x84, 0x4e, 0x6e, 0xe6, 0xac, 0x31, 0xda, 0x79,
440 0xe1, 0x3a, 0xe7, 0xbc, 0xce, 0xfb, 0xcc, 0xcd, 0xb6, 0x8c, 0xb3, 0xd2, 0x09, 0x2b, 0xb5, 0xf4,
441 0x07, 0x74, 0xcd, 0x7b, 0x69, 0x72, 0x0c, 0x4d, 0x5f, 0x8f, 0xbd, 0x70, 0x28, 0x6e, 0x64, 0x02,
442 0xad, 0xd8, 0x48, 0x0a, 0xfe, 0xc9, 0x03, 0xfe, 0xaa, 0x51, 0x56, 0x2a, 0xe9, 0x0b, 0x38, 0xaa,
443 0xd0, 0x19, 0xff, 0xad, 0x78, 0x26, 0x37, 0x7d, 0xba, 0xb3, 0x3f, 0x0d, 0x68, 0x1a, 0x31, 0x79,
444 0x03, 0x9d, 0x19, 0x17, 0xbe, 0xf9, 0x20, 0xbd, 0xaa, 0x8f, 0x2e, 0x0e, 0x8e, 0x2d, 0xb3, 0xfe,
445 0x56, 0xb9, 0xfe, 0xd6, 0x45, 0xbe, 0xfe, 0xb4, 0x46, 0x3e, 0x40, 0x97, 0x71, 0x8f, 0x87, 0x4b,
446 0xae, 0x95, 0x19, 0xd9, 0x22, 0x1d, 0x6c, 0xe2, 0xd2, 0xda, 0xab, 0x3a, 0x39, 0x87, 0xee, 0x15,
447 0x97, 0x6b, 0x1b, 0xbc, 0x8d, 0xd0, 0xaf, 0x12, 0x56, 0xbf, 0xa0, 0x35, 0xf2, 0x0e, 0x1e, 0xdf,
448 0x24, 0xbe, 0x2b, 0xf9, 0x6a, 0x5f, 0x0f, 0x4b, 0xf9, 0xbf, 0xd2, 0x7f, 0x62, 0xbc, 0x85, 0xf6,
449 0x15, 0x97, 0xb3, 0x7c, 0x51, 0xb7, 0xfa, 0x3f, 0xad, 0xfa, 0x17, 0x33, 0xa6, 0xb5, 0x8f, 0x17,
450 0xd0, 0xc3, 0x34, 0xd0, 0xbb, 0xef, 0x61, 0xea, 0x17, 0xb2, 0xef, 0x56, 0x10, 0xca, 0x5b, 0x35,
451 0xb7, 0x3c, 0x8c, 0xed, 0xf2, 0xcd, 0x36, 0x6f, 0x2f, 0x8b, 0x7f, 0x8a, 0xe5, 0xc4, 0x0e, 0xb0,
452 0xa8, 0xcd, 0x9b, 0xba, 0x38, 0xf9, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xb2, 0x72, 0x9e, 0xcb, 0x8f,
453 0x04, 0x00, 0x00,
William Kurkianad745652019-03-20 08:45:51 -0400454}
455
William Kurkian1b363f42019-03-12 15:28:12 -0400456// Reference imports to suppress errors if they are not otherwise used.
457var _ context.Context
458var _ grpc.ClientConn
459
460// This is a compile-time assertion to ensure that this generated file
461// is compatible with the grpc package it is being compiled against.
462const _ = grpc.SupportPackageIsVersion4
463
464// PonSimClient is the client API for PonSim service.
465//
466// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
467type PonSimClient interface {
468 SendFrame(ctx context.Context, in *PonSimFrame, opts ...grpc.CallOption) (*empty.Empty, error)
469 ReceiveFrames(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (PonSim_ReceiveFramesClient, error)
470 GetDeviceInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimDeviceInfo, error)
471 UpdateFlowTable(ctx context.Context, in *FlowTable, opts ...grpc.CallOption) (*empty.Empty, error)
472 GetStats(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimMetrics, error)
473}
474
475type ponSimClient struct {
476 cc *grpc.ClientConn
477}
478
479func NewPonSimClient(cc *grpc.ClientConn) PonSimClient {
480 return &ponSimClient{cc}
481}
482
483func (c *ponSimClient) SendFrame(ctx context.Context, in *PonSimFrame, opts ...grpc.CallOption) (*empty.Empty, error) {
484 out := new(empty.Empty)
485 err := c.cc.Invoke(ctx, "/voltha.PonSim/SendFrame", in, out, opts...)
486 if err != nil {
487 return nil, err
488 }
489 return out, nil
490}
491
492func (c *ponSimClient) ReceiveFrames(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (PonSim_ReceiveFramesClient, error) {
493 stream, err := c.cc.NewStream(ctx, &_PonSim_serviceDesc.Streams[0], "/voltha.PonSim/ReceiveFrames", opts...)
494 if err != nil {
495 return nil, err
496 }
497 x := &ponSimReceiveFramesClient{stream}
498 if err := x.ClientStream.SendMsg(in); err != nil {
499 return nil, err
500 }
501 if err := x.ClientStream.CloseSend(); err != nil {
502 return nil, err
503 }
504 return x, nil
505}
506
507type PonSim_ReceiveFramesClient interface {
508 Recv() (*PonSimFrame, error)
509 grpc.ClientStream
510}
511
512type ponSimReceiveFramesClient struct {
513 grpc.ClientStream
514}
515
516func (x *ponSimReceiveFramesClient) Recv() (*PonSimFrame, error) {
517 m := new(PonSimFrame)
518 if err := x.ClientStream.RecvMsg(m); err != nil {
519 return nil, err
520 }
521 return m, nil
522}
523
524func (c *ponSimClient) GetDeviceInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimDeviceInfo, error) {
525 out := new(PonSimDeviceInfo)
526 err := c.cc.Invoke(ctx, "/voltha.PonSim/GetDeviceInfo", in, out, opts...)
527 if err != nil {
528 return nil, err
529 }
530 return out, nil
531}
532
533func (c *ponSimClient) UpdateFlowTable(ctx context.Context, in *FlowTable, opts ...grpc.CallOption) (*empty.Empty, error) {
534 out := new(empty.Empty)
535 err := c.cc.Invoke(ctx, "/voltha.PonSim/UpdateFlowTable", in, out, opts...)
536 if err != nil {
537 return nil, err
538 }
539 return out, nil
540}
541
542func (c *ponSimClient) GetStats(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimMetrics, error) {
543 out := new(PonSimMetrics)
544 err := c.cc.Invoke(ctx, "/voltha.PonSim/GetStats", in, out, opts...)
545 if err != nil {
546 return nil, err
547 }
548 return out, nil
549}
550
551// PonSimServer is the server API for PonSim service.
552type PonSimServer interface {
553 SendFrame(context.Context, *PonSimFrame) (*empty.Empty, error)
554 ReceiveFrames(*empty.Empty, PonSim_ReceiveFramesServer) error
555 GetDeviceInfo(context.Context, *empty.Empty) (*PonSimDeviceInfo, error)
556 UpdateFlowTable(context.Context, *FlowTable) (*empty.Empty, error)
557 GetStats(context.Context, *empty.Empty) (*PonSimMetrics, error)
558}
559
560func RegisterPonSimServer(s *grpc.Server, srv PonSimServer) {
561 s.RegisterService(&_PonSim_serviceDesc, srv)
562}
563
564func _PonSim_SendFrame_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
565 in := new(PonSimFrame)
566 if err := dec(in); err != nil {
567 return nil, err
568 }
569 if interceptor == nil {
570 return srv.(PonSimServer).SendFrame(ctx, in)
571 }
572 info := &grpc.UnaryServerInfo{
573 Server: srv,
574 FullMethod: "/voltha.PonSim/SendFrame",
575 }
576 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
577 return srv.(PonSimServer).SendFrame(ctx, req.(*PonSimFrame))
578 }
579 return interceptor(ctx, in, info, handler)
580}
581
582func _PonSim_ReceiveFrames_Handler(srv interface{}, stream grpc.ServerStream) error {
583 m := new(empty.Empty)
584 if err := stream.RecvMsg(m); err != nil {
585 return err
586 }
587 return srv.(PonSimServer).ReceiveFrames(m, &ponSimReceiveFramesServer{stream})
588}
589
590type PonSim_ReceiveFramesServer interface {
591 Send(*PonSimFrame) error
592 grpc.ServerStream
593}
594
595type ponSimReceiveFramesServer struct {
596 grpc.ServerStream
597}
598
599func (x *ponSimReceiveFramesServer) Send(m *PonSimFrame) error {
600 return x.ServerStream.SendMsg(m)
601}
602
603func _PonSim_GetDeviceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
604 in := new(empty.Empty)
605 if err := dec(in); err != nil {
606 return nil, err
607 }
608 if interceptor == nil {
609 return srv.(PonSimServer).GetDeviceInfo(ctx, in)
610 }
611 info := &grpc.UnaryServerInfo{
612 Server: srv,
613 FullMethod: "/voltha.PonSim/GetDeviceInfo",
614 }
615 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
616 return srv.(PonSimServer).GetDeviceInfo(ctx, req.(*empty.Empty))
617 }
618 return interceptor(ctx, in, info, handler)
619}
620
621func _PonSim_UpdateFlowTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
622 in := new(FlowTable)
623 if err := dec(in); err != nil {
624 return nil, err
625 }
626 if interceptor == nil {
627 return srv.(PonSimServer).UpdateFlowTable(ctx, in)
628 }
629 info := &grpc.UnaryServerInfo{
630 Server: srv,
631 FullMethod: "/voltha.PonSim/UpdateFlowTable",
632 }
633 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
634 return srv.(PonSimServer).UpdateFlowTable(ctx, req.(*FlowTable))
635 }
636 return interceptor(ctx, in, info, handler)
637}
638
639func _PonSim_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
640 in := new(empty.Empty)
641 if err := dec(in); err != nil {
642 return nil, err
643 }
644 if interceptor == nil {
645 return srv.(PonSimServer).GetStats(ctx, in)
646 }
647 info := &grpc.UnaryServerInfo{
648 Server: srv,
649 FullMethod: "/voltha.PonSim/GetStats",
650 }
651 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
652 return srv.(PonSimServer).GetStats(ctx, req.(*empty.Empty))
653 }
654 return interceptor(ctx, in, info, handler)
655}
656
657var _PonSim_serviceDesc = grpc.ServiceDesc{
658 ServiceName: "voltha.PonSim",
659 HandlerType: (*PonSimServer)(nil),
660 Methods: []grpc.MethodDesc{
661 {
662 MethodName: "SendFrame",
663 Handler: _PonSim_SendFrame_Handler,
664 },
665 {
666 MethodName: "GetDeviceInfo",
667 Handler: _PonSim_GetDeviceInfo_Handler,
668 },
669 {
670 MethodName: "UpdateFlowTable",
671 Handler: _PonSim_UpdateFlowTable_Handler,
672 },
673 {
674 MethodName: "GetStats",
675 Handler: _PonSim_GetStats_Handler,
676 },
677 },
678 Streams: []grpc.StreamDesc{
679 {
680 StreamName: "ReceiveFrames",
681 Handler: _PonSim_ReceiveFrames_Handler,
682 ServerStreams: true,
683 },
684 },
685 Metadata: "voltha_protos/ponsim.proto",
686}