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