blob: e2abe7fd1a2b6156e8b3c968d54397ef8650a26e [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"
Matteo Scandolob3c08ae2020-10-14 13:15:43 -070011 openflow_13 "github.com/opencord/voltha-protos/v4/go/openflow_13"
William Kurkian1b363f42019-03-12 15:28:12 -040012 grpc "google.golang.org/grpc"
David K. Bainbridgec4bf5382021-04-08 16:06:54 +000013 codes "google.golang.org/grpc/codes"
14 status "google.golang.org/grpc/status"
William Kurkianad745652019-03-20 08:45:51 -040015 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{
Matteo Scandolob3c08ae2020-10-14 13:15:43 -0700419 // 565 bytes of a gzipped FileDescriptorProto
420 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x5f, 0x6f, 0xd3, 0x3c,
421 0x14, 0xc6, 0xdb, 0x6e, 0xeb, 0x9f, 0xb3, 0xf5, 0x7d, 0x99, 0x3b, 0xa6, 0xae, 0xbd, 0xa0, 0x32,
422 0x37, 0x15, 0x12, 0x09, 0x5b, 0xe1, 0x06, 0x24, 0x40, 0x8c, 0x6d, 0xe2, 0x82, 0x51, 0xb9, 0xec,
423 0x06, 0x21, 0xa2, 0x34, 0x71, 0xb3, 0x88, 0xc4, 0x27, 0x24, 0x76, 0xa7, 0x7d, 0x43, 0x3e, 0x16,
424 0x8a, 0x9d, 0xd0, 0x66, 0x6a, 0xb9, 0xb3, 0x8f, 0x9f, 0xfe, 0x9e, 0xf3, 0x9c, 0x1c, 0x15, 0x06,
425 0x4b, 0x8c, 0xe4, 0xad, 0xeb, 0x24, 0x29, 0x4a, 0xcc, 0xec, 0x04, 0x45, 0x16, 0xc6, 0x96, 0xbe,
426 0x91, 0xa6, 0x79, 0x1b, 0x0c, 0x03, 0xc4, 0x20, 0xe2, 0xb6, 0xae, 0xce, 0xd5, 0xc2, 0xe6, 0x71,
427 0x22, 0xef, 0x8d, 0x68, 0xf0, 0xa4, 0x0a, 0xc0, 0x84, 0x8b, 0x45, 0x84, 0x77, 0xce, 0xe9, 0xc4,
428 0x08, 0xe8, 0x0d, 0xf4, 0xa6, 0x28, 0x66, 0x61, 0xfc, 0x45, 0xa8, 0x8f, 0x7c, 0x19, 0x7a, 0xfc,
429 0x93, 0x58, 0x20, 0x39, 0x81, 0xb6, 0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 0x5a, 0xfb,
452 0x70, 0x01, 0x3d, 0x4c, 0x03, 0xbd, 0xfb, 0x1e, 0xa6, 0x7e, 0x21, 0xfb, 0x66, 0x05, 0xa1, 0xbc,
453 0x55, 0x73, 0xcb, 0xc3, 0xd8, 0x2e, 0xdf, 0x6c, 0xf3, 0xf6, 0xbc, 0xf8, 0xa7, 0x58, 0xbe, 0xb4,
454 0x03, 0x2c, 0x6a, 0xf3, 0xa6, 0x2e, 0x4e, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xf9, 0xf9, 0xa0,
455 0x81, 0x8f, 0x04, 0x00, 0x00,
William Kurkianad745652019-03-20 08:45:51 -0400456}
457
William Kurkian1b363f42019-03-12 15:28:12 -0400458// Reference imports to suppress errors if they are not otherwise used.
459var _ context.Context
460var _ grpc.ClientConn
461
462// This is a compile-time assertion to ensure that this generated file
463// is compatible with the grpc package it is being compiled against.
464const _ = grpc.SupportPackageIsVersion4
465
466// PonSimClient is the client API for PonSim service.
467//
468// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
469type PonSimClient interface {
470 SendFrame(ctx context.Context, in *PonSimFrame, opts ...grpc.CallOption) (*empty.Empty, error)
471 ReceiveFrames(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (PonSim_ReceiveFramesClient, error)
472 GetDeviceInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimDeviceInfo, error)
473 UpdateFlowTable(ctx context.Context, in *FlowTable, opts ...grpc.CallOption) (*empty.Empty, error)
474 GetStats(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimMetrics, error)
475}
476
477type ponSimClient struct {
478 cc *grpc.ClientConn
479}
480
481func NewPonSimClient(cc *grpc.ClientConn) PonSimClient {
482 return &ponSimClient{cc}
483}
484
485func (c *ponSimClient) SendFrame(ctx context.Context, in *PonSimFrame, opts ...grpc.CallOption) (*empty.Empty, error) {
486 out := new(empty.Empty)
487 err := c.cc.Invoke(ctx, "/voltha.PonSim/SendFrame", in, out, opts...)
488 if err != nil {
489 return nil, err
490 }
491 return out, nil
492}
493
494func (c *ponSimClient) ReceiveFrames(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (PonSim_ReceiveFramesClient, error) {
495 stream, err := c.cc.NewStream(ctx, &_PonSim_serviceDesc.Streams[0], "/voltha.PonSim/ReceiveFrames", opts...)
496 if err != nil {
497 return nil, err
498 }
499 x := &ponSimReceiveFramesClient{stream}
500 if err := x.ClientStream.SendMsg(in); err != nil {
501 return nil, err
502 }
503 if err := x.ClientStream.CloseSend(); err != nil {
504 return nil, err
505 }
506 return x, nil
507}
508
509type PonSim_ReceiveFramesClient interface {
510 Recv() (*PonSimFrame, error)
511 grpc.ClientStream
512}
513
514type ponSimReceiveFramesClient struct {
515 grpc.ClientStream
516}
517
518func (x *ponSimReceiveFramesClient) Recv() (*PonSimFrame, error) {
519 m := new(PonSimFrame)
520 if err := x.ClientStream.RecvMsg(m); err != nil {
521 return nil, err
522 }
523 return m, nil
524}
525
526func (c *ponSimClient) GetDeviceInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimDeviceInfo, error) {
527 out := new(PonSimDeviceInfo)
528 err := c.cc.Invoke(ctx, "/voltha.PonSim/GetDeviceInfo", in, out, opts...)
529 if err != nil {
530 return nil, err
531 }
532 return out, nil
533}
534
535func (c *ponSimClient) UpdateFlowTable(ctx context.Context, in *FlowTable, opts ...grpc.CallOption) (*empty.Empty, error) {
536 out := new(empty.Empty)
537 err := c.cc.Invoke(ctx, "/voltha.PonSim/UpdateFlowTable", in, out, opts...)
538 if err != nil {
539 return nil, err
540 }
541 return out, nil
542}
543
544func (c *ponSimClient) GetStats(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimMetrics, error) {
545 out := new(PonSimMetrics)
546 err := c.cc.Invoke(ctx, "/voltha.PonSim/GetStats", in, out, opts...)
547 if err != nil {
548 return nil, err
549 }
550 return out, nil
551}
552
553// PonSimServer is the server API for PonSim service.
554type PonSimServer interface {
555 SendFrame(context.Context, *PonSimFrame) (*empty.Empty, error)
556 ReceiveFrames(*empty.Empty, PonSim_ReceiveFramesServer) error
557 GetDeviceInfo(context.Context, *empty.Empty) (*PonSimDeviceInfo, error)
558 UpdateFlowTable(context.Context, *FlowTable) (*empty.Empty, error)
559 GetStats(context.Context, *empty.Empty) (*PonSimMetrics, error)
560}
561
David K. Bainbridgec4bf5382021-04-08 16:06:54 +0000562// UnimplementedPonSimServer can be embedded to have forward compatible implementations.
563type UnimplementedPonSimServer struct {
564}
565
566func (*UnimplementedPonSimServer) SendFrame(ctx context.Context, req *PonSimFrame) (*empty.Empty, error) {
567 return nil, status.Errorf(codes.Unimplemented, "method SendFrame not implemented")
568}
569func (*UnimplementedPonSimServer) ReceiveFrames(req *empty.Empty, srv PonSim_ReceiveFramesServer) error {
570 return status.Errorf(codes.Unimplemented, "method ReceiveFrames not implemented")
571}
572func (*UnimplementedPonSimServer) GetDeviceInfo(ctx context.Context, req *empty.Empty) (*PonSimDeviceInfo, error) {
573 return nil, status.Errorf(codes.Unimplemented, "method GetDeviceInfo not implemented")
574}
575func (*UnimplementedPonSimServer) UpdateFlowTable(ctx context.Context, req *FlowTable) (*empty.Empty, error) {
576 return nil, status.Errorf(codes.Unimplemented, "method UpdateFlowTable not implemented")
577}
578func (*UnimplementedPonSimServer) GetStats(ctx context.Context, req *empty.Empty) (*PonSimMetrics, error) {
579 return nil, status.Errorf(codes.Unimplemented, "method GetStats not implemented")
580}
581
William Kurkian1b363f42019-03-12 15:28:12 -0400582func RegisterPonSimServer(s *grpc.Server, srv PonSimServer) {
583 s.RegisterService(&_PonSim_serviceDesc, srv)
584}
585
586func _PonSim_SendFrame_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
587 in := new(PonSimFrame)
588 if err := dec(in); err != nil {
589 return nil, err
590 }
591 if interceptor == nil {
592 return srv.(PonSimServer).SendFrame(ctx, in)
593 }
594 info := &grpc.UnaryServerInfo{
595 Server: srv,
596 FullMethod: "/voltha.PonSim/SendFrame",
597 }
598 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
599 return srv.(PonSimServer).SendFrame(ctx, req.(*PonSimFrame))
600 }
601 return interceptor(ctx, in, info, handler)
602}
603
604func _PonSim_ReceiveFrames_Handler(srv interface{}, stream grpc.ServerStream) error {
605 m := new(empty.Empty)
606 if err := stream.RecvMsg(m); err != nil {
607 return err
608 }
609 return srv.(PonSimServer).ReceiveFrames(m, &ponSimReceiveFramesServer{stream})
610}
611
612type PonSim_ReceiveFramesServer interface {
613 Send(*PonSimFrame) error
614 grpc.ServerStream
615}
616
617type ponSimReceiveFramesServer struct {
618 grpc.ServerStream
619}
620
621func (x *ponSimReceiveFramesServer) Send(m *PonSimFrame) error {
622 return x.ServerStream.SendMsg(m)
623}
624
625func _PonSim_GetDeviceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
626 in := new(empty.Empty)
627 if err := dec(in); err != nil {
628 return nil, err
629 }
630 if interceptor == nil {
631 return srv.(PonSimServer).GetDeviceInfo(ctx, in)
632 }
633 info := &grpc.UnaryServerInfo{
634 Server: srv,
635 FullMethod: "/voltha.PonSim/GetDeviceInfo",
636 }
637 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
638 return srv.(PonSimServer).GetDeviceInfo(ctx, req.(*empty.Empty))
639 }
640 return interceptor(ctx, in, info, handler)
641}
642
643func _PonSim_UpdateFlowTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
644 in := new(FlowTable)
645 if err := dec(in); err != nil {
646 return nil, err
647 }
648 if interceptor == nil {
649 return srv.(PonSimServer).UpdateFlowTable(ctx, in)
650 }
651 info := &grpc.UnaryServerInfo{
652 Server: srv,
653 FullMethod: "/voltha.PonSim/UpdateFlowTable",
654 }
655 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
656 return srv.(PonSimServer).UpdateFlowTable(ctx, req.(*FlowTable))
657 }
658 return interceptor(ctx, in, info, handler)
659}
660
661func _PonSim_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
662 in := new(empty.Empty)
663 if err := dec(in); err != nil {
664 return nil, err
665 }
666 if interceptor == nil {
667 return srv.(PonSimServer).GetStats(ctx, in)
668 }
669 info := &grpc.UnaryServerInfo{
670 Server: srv,
671 FullMethod: "/voltha.PonSim/GetStats",
672 }
673 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
674 return srv.(PonSimServer).GetStats(ctx, req.(*empty.Empty))
675 }
676 return interceptor(ctx, in, info, handler)
677}
678
679var _PonSim_serviceDesc = grpc.ServiceDesc{
680 ServiceName: "voltha.PonSim",
681 HandlerType: (*PonSimServer)(nil),
682 Methods: []grpc.MethodDesc{
683 {
684 MethodName: "SendFrame",
685 Handler: _PonSim_SendFrame_Handler,
686 },
687 {
688 MethodName: "GetDeviceInfo",
689 Handler: _PonSim_GetDeviceInfo_Handler,
690 },
691 {
692 MethodName: "UpdateFlowTable",
693 Handler: _PonSim_UpdateFlowTable_Handler,
694 },
695 {
696 MethodName: "GetStats",
697 Handler: _PonSim_GetStats_Handler,
698 },
699 },
700 Streams: []grpc.StreamDesc{
701 {
702 StreamName: "ReceiveFrames",
703 Handler: _PonSim_ReceiveFrames_Handler,
704 ServerStreams: true,
705 },
706 },
707 Metadata: "voltha_protos/ponsim.proto",
708}