blob: 38ce6818211bf7250718f4683729e2e4646acce0 [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"
Scott Baker383964b2019-11-01 14:26:07 -070011 openflow_13 "github.com/opencord/voltha-protos/v2/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{
Scott Baker383964b2019-11-01 14:26:07 -0700417 // 556 bytes of a gzipped FileDescriptorProto
418 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x4f, 0x6f, 0xd3, 0x40,
419 0x10, 0xc5, 0xf3, 0xa7, 0xf9, 0x37, 0x6d, 0x80, 0x6e, 0x4b, 0x95, 0x26, 0x07, 0xa2, 0xe5, 0x12,
420 0x21, 0x61, 0xb7, 0x89, 0xb8, 0x80, 0x04, 0x88, 0x42, 0x2b, 0x0e, 0x94, 0x68, 0x43, 0x2f, 0x08,
421 0x61, 0x39, 0xf6, 0x26, 0xb5, 0xb0, 0x77, 0x8c, 0xbd, 0x9b, 0xaa, 0xdf, 0x90, 0x8f, 0x85, 0xbc,
422 0x6b, 0x93, 0xb8, 0x4a, 0xb8, 0xed, 0x8e, 0x5f, 0x7e, 0x6f, 0xde, 0x78, 0x62, 0xe8, 0xaf, 0x30,
423 0x94, 0xb7, 0xae, 0x13, 0x27, 0x28, 0x31, 0xb5, 0x63, 0x14, 0x69, 0x10, 0x59, 0xfa, 0x46, 0x9a,
424 0xe6, 0x59, 0x7f, 0xb0, 0x44, 0x5c, 0x86, 0xdc, 0xd6, 0xd5, 0xb9, 0x5a, 0xd8, 0x3c, 0x8a, 0xe5,
425 0xbd, 0x11, 0xf5, 0x9f, 0x95, 0x01, 0x18, 0x73, 0xb1, 0x08, 0xf1, 0xce, 0x39, 0x9f, 0x18, 0x01,
426 0xbd, 0x81, 0xa3, 0x29, 0x8a, 0x59, 0x10, 0x7d, 0x15, 0xea, 0x23, 0x5f, 0x05, 0x1e, 0xff, 0x2c,
427 0x16, 0x48, 0x4e, 0xa1, 0xad, 0x44, 0xe0, 0xc4, 0x98, 0xc8, 0x5e, 0x75, 0x58, 0x1d, 0x35, 0x58,
428 0x4b, 0x89, 0x60, 0x8a, 0x89, 0x24, 0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 0xb6, 0x51,
451 0xbf, 0xcc, 0x3f, 0x0a, 0xab, 0xb1, 0xbd, 0xc4, 0xbc, 0x36, 0x6f, 0xea, 0xe2, 0xe4, 0x6f, 0x00,
452 0x00, 0x00, 0xff, 0xff, 0x31, 0x5e, 0xc5, 0xf6, 0x7a, 0x04, 0x00, 0x00,
William Kurkianad745652019-03-20 08:45:51 -0400453}
454
William Kurkian1b363f42019-03-12 15:28:12 -0400455// Reference imports to suppress errors if they are not otherwise used.
456var _ context.Context
457var _ grpc.ClientConn
458
459// This is a compile-time assertion to ensure that this generated file
460// is compatible with the grpc package it is being compiled against.
461const _ = grpc.SupportPackageIsVersion4
462
463// PonSimClient is the client API for PonSim service.
464//
465// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
466type PonSimClient interface {
467 SendFrame(ctx context.Context, in *PonSimFrame, opts ...grpc.CallOption) (*empty.Empty, error)
468 ReceiveFrames(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (PonSim_ReceiveFramesClient, error)
469 GetDeviceInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimDeviceInfo, error)
470 UpdateFlowTable(ctx context.Context, in *FlowTable, opts ...grpc.CallOption) (*empty.Empty, error)
471 GetStats(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimMetrics, error)
472}
473
474type ponSimClient struct {
475 cc *grpc.ClientConn
476}
477
478func NewPonSimClient(cc *grpc.ClientConn) PonSimClient {
479 return &ponSimClient{cc}
480}
481
482func (c *ponSimClient) SendFrame(ctx context.Context, in *PonSimFrame, opts ...grpc.CallOption) (*empty.Empty, error) {
483 out := new(empty.Empty)
484 err := c.cc.Invoke(ctx, "/voltha.PonSim/SendFrame", in, out, opts...)
485 if err != nil {
486 return nil, err
487 }
488 return out, nil
489}
490
491func (c *ponSimClient) ReceiveFrames(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (PonSim_ReceiveFramesClient, error) {
492 stream, err := c.cc.NewStream(ctx, &_PonSim_serviceDesc.Streams[0], "/voltha.PonSim/ReceiveFrames", opts...)
493 if err != nil {
494 return nil, err
495 }
496 x := &ponSimReceiveFramesClient{stream}
497 if err := x.ClientStream.SendMsg(in); err != nil {
498 return nil, err
499 }
500 if err := x.ClientStream.CloseSend(); err != nil {
501 return nil, err
502 }
503 return x, nil
504}
505
506type PonSim_ReceiveFramesClient interface {
507 Recv() (*PonSimFrame, error)
508 grpc.ClientStream
509}
510
511type ponSimReceiveFramesClient struct {
512 grpc.ClientStream
513}
514
515func (x *ponSimReceiveFramesClient) Recv() (*PonSimFrame, error) {
516 m := new(PonSimFrame)
517 if err := x.ClientStream.RecvMsg(m); err != nil {
518 return nil, err
519 }
520 return m, nil
521}
522
523func (c *ponSimClient) GetDeviceInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimDeviceInfo, error) {
524 out := new(PonSimDeviceInfo)
525 err := c.cc.Invoke(ctx, "/voltha.PonSim/GetDeviceInfo", in, out, opts...)
526 if err != nil {
527 return nil, err
528 }
529 return out, nil
530}
531
532func (c *ponSimClient) UpdateFlowTable(ctx context.Context, in *FlowTable, opts ...grpc.CallOption) (*empty.Empty, error) {
533 out := new(empty.Empty)
534 err := c.cc.Invoke(ctx, "/voltha.PonSim/UpdateFlowTable", in, out, opts...)
535 if err != nil {
536 return nil, err
537 }
538 return out, nil
539}
540
541func (c *ponSimClient) GetStats(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimMetrics, error) {
542 out := new(PonSimMetrics)
543 err := c.cc.Invoke(ctx, "/voltha.PonSim/GetStats", in, out, opts...)
544 if err != nil {
545 return nil, err
546 }
547 return out, nil
548}
549
550// PonSimServer is the server API for PonSim service.
551type PonSimServer interface {
552 SendFrame(context.Context, *PonSimFrame) (*empty.Empty, error)
553 ReceiveFrames(*empty.Empty, PonSim_ReceiveFramesServer) error
554 GetDeviceInfo(context.Context, *empty.Empty) (*PonSimDeviceInfo, error)
555 UpdateFlowTable(context.Context, *FlowTable) (*empty.Empty, error)
556 GetStats(context.Context, *empty.Empty) (*PonSimMetrics, error)
557}
558
559func RegisterPonSimServer(s *grpc.Server, srv PonSimServer) {
560 s.RegisterService(&_PonSim_serviceDesc, srv)
561}
562
563func _PonSim_SendFrame_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
564 in := new(PonSimFrame)
565 if err := dec(in); err != nil {
566 return nil, err
567 }
568 if interceptor == nil {
569 return srv.(PonSimServer).SendFrame(ctx, in)
570 }
571 info := &grpc.UnaryServerInfo{
572 Server: srv,
573 FullMethod: "/voltha.PonSim/SendFrame",
574 }
575 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
576 return srv.(PonSimServer).SendFrame(ctx, req.(*PonSimFrame))
577 }
578 return interceptor(ctx, in, info, handler)
579}
580
581func _PonSim_ReceiveFrames_Handler(srv interface{}, stream grpc.ServerStream) error {
582 m := new(empty.Empty)
583 if err := stream.RecvMsg(m); err != nil {
584 return err
585 }
586 return srv.(PonSimServer).ReceiveFrames(m, &ponSimReceiveFramesServer{stream})
587}
588
589type PonSim_ReceiveFramesServer interface {
590 Send(*PonSimFrame) error
591 grpc.ServerStream
592}
593
594type ponSimReceiveFramesServer struct {
595 grpc.ServerStream
596}
597
598func (x *ponSimReceiveFramesServer) Send(m *PonSimFrame) error {
599 return x.ServerStream.SendMsg(m)
600}
601
602func _PonSim_GetDeviceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
603 in := new(empty.Empty)
604 if err := dec(in); err != nil {
605 return nil, err
606 }
607 if interceptor == nil {
608 return srv.(PonSimServer).GetDeviceInfo(ctx, in)
609 }
610 info := &grpc.UnaryServerInfo{
611 Server: srv,
612 FullMethod: "/voltha.PonSim/GetDeviceInfo",
613 }
614 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
615 return srv.(PonSimServer).GetDeviceInfo(ctx, req.(*empty.Empty))
616 }
617 return interceptor(ctx, in, info, handler)
618}
619
620func _PonSim_UpdateFlowTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
621 in := new(FlowTable)
622 if err := dec(in); err != nil {
623 return nil, err
624 }
625 if interceptor == nil {
626 return srv.(PonSimServer).UpdateFlowTable(ctx, in)
627 }
628 info := &grpc.UnaryServerInfo{
629 Server: srv,
630 FullMethod: "/voltha.PonSim/UpdateFlowTable",
631 }
632 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
633 return srv.(PonSimServer).UpdateFlowTable(ctx, req.(*FlowTable))
634 }
635 return interceptor(ctx, in, info, handler)
636}
637
638func _PonSim_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
639 in := new(empty.Empty)
640 if err := dec(in); err != nil {
641 return nil, err
642 }
643 if interceptor == nil {
644 return srv.(PonSimServer).GetStats(ctx, in)
645 }
646 info := &grpc.UnaryServerInfo{
647 Server: srv,
648 FullMethod: "/voltha.PonSim/GetStats",
649 }
650 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
651 return srv.(PonSimServer).GetStats(ctx, req.(*empty.Empty))
652 }
653 return interceptor(ctx, in, info, handler)
654}
655
656var _PonSim_serviceDesc = grpc.ServiceDesc{
657 ServiceName: "voltha.PonSim",
658 HandlerType: (*PonSimServer)(nil),
659 Methods: []grpc.MethodDesc{
660 {
661 MethodName: "SendFrame",
662 Handler: _PonSim_SendFrame_Handler,
663 },
664 {
665 MethodName: "GetDeviceInfo",
666 Handler: _PonSim_GetDeviceInfo_Handler,
667 },
668 {
669 MethodName: "UpdateFlowTable",
670 Handler: _PonSim_UpdateFlowTable_Handler,
671 },
672 {
673 MethodName: "GetStats",
674 Handler: _PonSim_GetStats_Handler,
675 },
676 },
677 Streams: []grpc.StreamDesc{
678 {
679 StreamName: "ReceiveFrames",
680 Handler: _PonSim_ReceiveFrames_Handler,
681 ServerStreams: true,
682 },
683 },
684 Metadata: "voltha_protos/ponsim.proto",
685}