William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/ponsim.proto |
| 3 | |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 4 | package voltha |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 5 | |
| 6 | import ( |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | proto "github.com/golang/protobuf/proto" |
| 10 | empty "github.com/golang/protobuf/ptypes/empty" |
Matteo Scandolo | b3c08ae | 2020-10-14 13:15:43 -0700 | [diff] [blame] | 11 | openflow_13 "github.com/opencord/voltha-protos/v4/go/openflow_13" |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 12 | grpc "google.golang.org/grpc" |
David K. Bainbridge | c4bf538 | 2021-04-08 16:06:54 +0000 | [diff] [blame] | 13 | codes "google.golang.org/grpc/codes" |
| 14 | status "google.golang.org/grpc/status" |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 15 | math "math" |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | // Reference imports to suppress errors if they are not otherwise used. |
| 19 | var _ = proto.Marshal |
| 20 | var _ = fmt.Errorf |
| 21 | var _ = 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 27 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 28 | |
| 29 | type 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 | |
| 37 | func (m *PonSimOnuDeviceInfo) Reset() { *m = PonSimOnuDeviceInfo{} } |
| 38 | func (m *PonSimOnuDeviceInfo) String() string { return proto.CompactTextString(m) } |
| 39 | func (*PonSimOnuDeviceInfo) ProtoMessage() {} |
| 40 | func (*PonSimOnuDeviceInfo) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 41 | return fileDescriptor_352253851b8ea7c0, []int{0} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 42 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 43 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 44 | func (m *PonSimOnuDeviceInfo) XXX_Unmarshal(b []byte) error { |
| 45 | return xxx_messageInfo_PonSimOnuDeviceInfo.Unmarshal(m, b) |
| 46 | } |
| 47 | func (m *PonSimOnuDeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 48 | return xxx_messageInfo_PonSimOnuDeviceInfo.Marshal(b, m, deterministic) |
| 49 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 50 | func (m *PonSimOnuDeviceInfo) XXX_Merge(src proto.Message) { |
| 51 | xxx_messageInfo_PonSimOnuDeviceInfo.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 52 | } |
| 53 | func (m *PonSimOnuDeviceInfo) XXX_Size() int { |
| 54 | return xxx_messageInfo_PonSimOnuDeviceInfo.Size(m) |
| 55 | } |
| 56 | func (m *PonSimOnuDeviceInfo) XXX_DiscardUnknown() { |
| 57 | xxx_messageInfo_PonSimOnuDeviceInfo.DiscardUnknown(m) |
| 58 | } |
| 59 | |
| 60 | var xxx_messageInfo_PonSimOnuDeviceInfo proto.InternalMessageInfo |
| 61 | |
| 62 | func (m *PonSimOnuDeviceInfo) GetUniPort() int32 { |
| 63 | if m != nil { |
| 64 | return m.UniPort |
| 65 | } |
| 66 | return 0 |
| 67 | } |
| 68 | |
| 69 | func (m *PonSimOnuDeviceInfo) GetSerialNumber() string { |
| 70 | if m != nil { |
| 71 | return m.SerialNumber |
| 72 | } |
| 73 | return "" |
| 74 | } |
| 75 | |
| 76 | type 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 | |
| 84 | func (m *PonSimDeviceInfo) Reset() { *m = PonSimDeviceInfo{} } |
| 85 | func (m *PonSimDeviceInfo) String() string { return proto.CompactTextString(m) } |
| 86 | func (*PonSimDeviceInfo) ProtoMessage() {} |
| 87 | func (*PonSimDeviceInfo) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 88 | return fileDescriptor_352253851b8ea7c0, []int{1} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 89 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 90 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 91 | func (m *PonSimDeviceInfo) XXX_Unmarshal(b []byte) error { |
| 92 | return xxx_messageInfo_PonSimDeviceInfo.Unmarshal(m, b) |
| 93 | } |
| 94 | func (m *PonSimDeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 95 | return xxx_messageInfo_PonSimDeviceInfo.Marshal(b, m, deterministic) |
| 96 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 97 | func (m *PonSimDeviceInfo) XXX_Merge(src proto.Message) { |
| 98 | xxx_messageInfo_PonSimDeviceInfo.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 99 | } |
| 100 | func (m *PonSimDeviceInfo) XXX_Size() int { |
| 101 | return xxx_messageInfo_PonSimDeviceInfo.Size(m) |
| 102 | } |
| 103 | func (m *PonSimDeviceInfo) XXX_DiscardUnknown() { |
| 104 | xxx_messageInfo_PonSimDeviceInfo.DiscardUnknown(m) |
| 105 | } |
| 106 | |
| 107 | var xxx_messageInfo_PonSimDeviceInfo proto.InternalMessageInfo |
| 108 | |
| 109 | func (m *PonSimDeviceInfo) GetNniPort() int32 { |
| 110 | if m != nil { |
| 111 | return m.NniPort |
| 112 | } |
| 113 | return 0 |
| 114 | } |
| 115 | |
| 116 | func (m *PonSimDeviceInfo) GetOnus() []*PonSimOnuDeviceInfo { |
| 117 | if m != nil { |
| 118 | return m.Onus |
| 119 | } |
| 120 | return nil |
| 121 | } |
| 122 | |
| 123 | type 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 | |
| 131 | func (m *FlowTable) Reset() { *m = FlowTable{} } |
| 132 | func (m *FlowTable) String() string { return proto.CompactTextString(m) } |
| 133 | func (*FlowTable) ProtoMessage() {} |
| 134 | func (*FlowTable) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 135 | return fileDescriptor_352253851b8ea7c0, []int{2} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 136 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 137 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 138 | func (m *FlowTable) XXX_Unmarshal(b []byte) error { |
| 139 | return xxx_messageInfo_FlowTable.Unmarshal(m, b) |
| 140 | } |
| 141 | func (m *FlowTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 142 | return xxx_messageInfo_FlowTable.Marshal(b, m, deterministic) |
| 143 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 144 | func (m *FlowTable) XXX_Merge(src proto.Message) { |
| 145 | xxx_messageInfo_FlowTable.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 146 | } |
| 147 | func (m *FlowTable) XXX_Size() int { |
| 148 | return xxx_messageInfo_FlowTable.Size(m) |
| 149 | } |
| 150 | func (m *FlowTable) XXX_DiscardUnknown() { |
| 151 | xxx_messageInfo_FlowTable.DiscardUnknown(m) |
| 152 | } |
| 153 | |
| 154 | var xxx_messageInfo_FlowTable proto.InternalMessageInfo |
| 155 | |
| 156 | func (m *FlowTable) GetPort() int32 { |
| 157 | if m != nil { |
| 158 | return m.Port |
| 159 | } |
| 160 | return 0 |
| 161 | } |
| 162 | |
| 163 | func (m *FlowTable) GetFlows() []*openflow_13.OfpFlowStats { |
| 164 | if m != nil { |
| 165 | return m.Flows |
| 166 | } |
| 167 | return nil |
| 168 | } |
| 169 | |
| 170 | type 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 | |
| 179 | func (m *PonSimFrame) Reset() { *m = PonSimFrame{} } |
| 180 | func (m *PonSimFrame) String() string { return proto.CompactTextString(m) } |
| 181 | func (*PonSimFrame) ProtoMessage() {} |
| 182 | func (*PonSimFrame) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 183 | return fileDescriptor_352253851b8ea7c0, []int{3} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 184 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 185 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 186 | func (m *PonSimFrame) XXX_Unmarshal(b []byte) error { |
| 187 | return xxx_messageInfo_PonSimFrame.Unmarshal(m, b) |
| 188 | } |
| 189 | func (m *PonSimFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 190 | return xxx_messageInfo_PonSimFrame.Marshal(b, m, deterministic) |
| 191 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 192 | func (m *PonSimFrame) XXX_Merge(src proto.Message) { |
| 193 | xxx_messageInfo_PonSimFrame.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 194 | } |
| 195 | func (m *PonSimFrame) XXX_Size() int { |
| 196 | return xxx_messageInfo_PonSimFrame.Size(m) |
| 197 | } |
| 198 | func (m *PonSimFrame) XXX_DiscardUnknown() { |
| 199 | xxx_messageInfo_PonSimFrame.DiscardUnknown(m) |
| 200 | } |
| 201 | |
| 202 | var xxx_messageInfo_PonSimFrame proto.InternalMessageInfo |
| 203 | |
| 204 | func (m *PonSimFrame) GetId() string { |
| 205 | if m != nil { |
| 206 | return m.Id |
| 207 | } |
| 208 | return "" |
| 209 | } |
| 210 | |
| 211 | func (m *PonSimFrame) GetPayload() []byte { |
| 212 | if m != nil { |
| 213 | return m.Payload |
| 214 | } |
| 215 | return nil |
| 216 | } |
| 217 | |
| 218 | func (m *PonSimFrame) GetOutPort() int32 { |
| 219 | if m != nil { |
| 220 | return m.OutPort |
| 221 | } |
| 222 | return 0 |
| 223 | } |
| 224 | |
| 225 | type 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 | |
| 233 | func (m *PonSimPacketCounter) Reset() { *m = PonSimPacketCounter{} } |
| 234 | func (m *PonSimPacketCounter) String() string { return proto.CompactTextString(m) } |
| 235 | func (*PonSimPacketCounter) ProtoMessage() {} |
| 236 | func (*PonSimPacketCounter) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 237 | return fileDescriptor_352253851b8ea7c0, []int{4} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 238 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 239 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 240 | func (m *PonSimPacketCounter) XXX_Unmarshal(b []byte) error { |
| 241 | return xxx_messageInfo_PonSimPacketCounter.Unmarshal(m, b) |
| 242 | } |
| 243 | func (m *PonSimPacketCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 244 | return xxx_messageInfo_PonSimPacketCounter.Marshal(b, m, deterministic) |
| 245 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 246 | func (m *PonSimPacketCounter) XXX_Merge(src proto.Message) { |
| 247 | xxx_messageInfo_PonSimPacketCounter.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 248 | } |
| 249 | func (m *PonSimPacketCounter) XXX_Size() int { |
| 250 | return xxx_messageInfo_PonSimPacketCounter.Size(m) |
| 251 | } |
| 252 | func (m *PonSimPacketCounter) XXX_DiscardUnknown() { |
| 253 | xxx_messageInfo_PonSimPacketCounter.DiscardUnknown(m) |
| 254 | } |
| 255 | |
| 256 | var xxx_messageInfo_PonSimPacketCounter proto.InternalMessageInfo |
| 257 | |
| 258 | func (m *PonSimPacketCounter) GetName() string { |
| 259 | if m != nil { |
| 260 | return m.Name |
| 261 | } |
| 262 | return "" |
| 263 | } |
| 264 | |
| 265 | func (m *PonSimPacketCounter) GetValue() int64 { |
| 266 | if m != nil { |
| 267 | return m.Value |
| 268 | } |
| 269 | return 0 |
| 270 | } |
| 271 | |
| 272 | type 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 | |
| 280 | func (m *PonSimPortMetrics) Reset() { *m = PonSimPortMetrics{} } |
| 281 | func (m *PonSimPortMetrics) String() string { return proto.CompactTextString(m) } |
| 282 | func (*PonSimPortMetrics) ProtoMessage() {} |
| 283 | func (*PonSimPortMetrics) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 284 | return fileDescriptor_352253851b8ea7c0, []int{5} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 285 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 286 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 287 | func (m *PonSimPortMetrics) XXX_Unmarshal(b []byte) error { |
| 288 | return xxx_messageInfo_PonSimPortMetrics.Unmarshal(m, b) |
| 289 | } |
| 290 | func (m *PonSimPortMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 291 | return xxx_messageInfo_PonSimPortMetrics.Marshal(b, m, deterministic) |
| 292 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 293 | func (m *PonSimPortMetrics) XXX_Merge(src proto.Message) { |
| 294 | xxx_messageInfo_PonSimPortMetrics.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 295 | } |
| 296 | func (m *PonSimPortMetrics) XXX_Size() int { |
| 297 | return xxx_messageInfo_PonSimPortMetrics.Size(m) |
| 298 | } |
| 299 | func (m *PonSimPortMetrics) XXX_DiscardUnknown() { |
| 300 | xxx_messageInfo_PonSimPortMetrics.DiscardUnknown(m) |
| 301 | } |
| 302 | |
| 303 | var xxx_messageInfo_PonSimPortMetrics proto.InternalMessageInfo |
| 304 | |
| 305 | func (m *PonSimPortMetrics) GetPortName() string { |
| 306 | if m != nil { |
| 307 | return m.PortName |
| 308 | } |
| 309 | return "" |
| 310 | } |
| 311 | |
| 312 | func (m *PonSimPortMetrics) GetPackets() []*PonSimPacketCounter { |
| 313 | if m != nil { |
| 314 | return m.Packets |
| 315 | } |
| 316 | return nil |
| 317 | } |
| 318 | |
| 319 | type 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 | |
| 327 | func (m *PonSimMetrics) Reset() { *m = PonSimMetrics{} } |
| 328 | func (m *PonSimMetrics) String() string { return proto.CompactTextString(m) } |
| 329 | func (*PonSimMetrics) ProtoMessage() {} |
| 330 | func (*PonSimMetrics) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 331 | return fileDescriptor_352253851b8ea7c0, []int{6} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 332 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 333 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 334 | func (m *PonSimMetrics) XXX_Unmarshal(b []byte) error { |
| 335 | return xxx_messageInfo_PonSimMetrics.Unmarshal(m, b) |
| 336 | } |
| 337 | func (m *PonSimMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 338 | return xxx_messageInfo_PonSimMetrics.Marshal(b, m, deterministic) |
| 339 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 340 | func (m *PonSimMetrics) XXX_Merge(src proto.Message) { |
| 341 | xxx_messageInfo_PonSimMetrics.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 342 | } |
| 343 | func (m *PonSimMetrics) XXX_Size() int { |
| 344 | return xxx_messageInfo_PonSimMetrics.Size(m) |
| 345 | } |
| 346 | func (m *PonSimMetrics) XXX_DiscardUnknown() { |
| 347 | xxx_messageInfo_PonSimMetrics.DiscardUnknown(m) |
| 348 | } |
| 349 | |
| 350 | var xxx_messageInfo_PonSimMetrics proto.InternalMessageInfo |
| 351 | |
| 352 | func (m *PonSimMetrics) GetDevice() string { |
| 353 | if m != nil { |
| 354 | return m.Device |
| 355 | } |
| 356 | return "" |
| 357 | } |
| 358 | |
| 359 | func (m *PonSimMetrics) GetMetrics() []*PonSimPortMetrics { |
| 360 | if m != nil { |
| 361 | return m.Metrics |
| 362 | } |
| 363 | return nil |
| 364 | } |
| 365 | |
| 366 | type 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 | |
| 373 | func (m *PonSimMetricsRequest) Reset() { *m = PonSimMetricsRequest{} } |
| 374 | func (m *PonSimMetricsRequest) String() string { return proto.CompactTextString(m) } |
| 375 | func (*PonSimMetricsRequest) ProtoMessage() {} |
| 376 | func (*PonSimMetricsRequest) Descriptor() ([]byte, []int) { |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 377 | return fileDescriptor_352253851b8ea7c0, []int{7} |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 378 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 379 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 380 | func (m *PonSimMetricsRequest) XXX_Unmarshal(b []byte) error { |
| 381 | return xxx_messageInfo_PonSimMetricsRequest.Unmarshal(m, b) |
| 382 | } |
| 383 | func (m *PonSimMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 384 | return xxx_messageInfo_PonSimMetricsRequest.Marshal(b, m, deterministic) |
| 385 | } |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 386 | func (m *PonSimMetricsRequest) XXX_Merge(src proto.Message) { |
| 387 | xxx_messageInfo_PonSimMetricsRequest.Merge(m, src) |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 388 | } |
| 389 | func (m *PonSimMetricsRequest) XXX_Size() int { |
| 390 | return xxx_messageInfo_PonSimMetricsRequest.Size(m) |
| 391 | } |
| 392 | func (m *PonSimMetricsRequest) XXX_DiscardUnknown() { |
| 393 | xxx_messageInfo_PonSimMetricsRequest.DiscardUnknown(m) |
| 394 | } |
| 395 | |
| 396 | var xxx_messageInfo_PonSimMetricsRequest proto.InternalMessageInfo |
| 397 | |
| 398 | func (m *PonSimMetricsRequest) GetPort() int32 { |
| 399 | if m != nil { |
| 400 | return m.Port |
| 401 | } |
| 402 | return 0 |
| 403 | } |
| 404 | |
| 405 | func 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 416 | func init() { proto.RegisterFile("voltha_protos/ponsim.proto", fileDescriptor_352253851b8ea7c0) } |
| 417 | |
| 418 | var fileDescriptor_352253851b8ea7c0 = []byte{ |
Matteo Scandolo | b3c08ae | 2020-10-14 13:15:43 -0700 | [diff] [blame] | 419 | // 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, 0x12, 0xa1, 0x93, 0x60, 0x2a, 0xfb, 0xf5, 0x51, 0x7d, 0xbc, |
| 430 | 0xc7, 0x5a, 0x4a, 0x84, 0x53, 0x4c, 0x25, 0x79, 0x0a, 0xdd, 0x8c, 0xa7, 0xa1, 0x1b, 0x39, 0x42, |
| 431 | 0xc5, 0x73, 0x9e, 0xf6, 0x1b, 0xa3, 0xfa, 0xb8, 0xc3, 0x0e, 0x4c, 0xf1, 0x5a, 0xd7, 0xe8, 0x0f, |
| 432 | 0x78, 0x64, 0xb0, 0x55, 0xa6, 0x78, 0xc0, 0x14, 0x05, 0xd3, 0x86, 0x5d, 0x14, 0x2a, 0xeb, 0x37, |
| 433 | 0x46, 0x3b, 0xe3, 0xfd, 0xb3, 0xa1, 0x65, 0xba, 0xb6, 0x36, 0x74, 0xc6, 0xb4, 0x90, 0x32, 0xe8, |
| 434 | 0x5c, 0x46, 0x78, 0xf7, 0xd5, 0x9d, 0x47, 0x9c, 0x10, 0xd8, 0x5d, 0x83, 0xea, 0x33, 0x39, 0x85, |
| 435 | 0xbd, 0x3c, 0xe8, 0x0a, 0xb9, 0x1e, 0x1d, 0x17, 0x89, 0xa3, 0xcf, 0x99, 0x74, 0x65, 0xc6, 0x8c, |
| 436 | 0x92, 0x32, 0xd8, 0x37, 0x86, 0x97, 0xa9, 0x1b, 0x73, 0xf2, 0x1f, 0x34, 0x42, 0x5f, 0x33, 0x3b, |
| 437 | 0xac, 0x11, 0xfa, 0xa4, 0x0f, 0xad, 0xc4, 0xbd, 0x8f, 0xd0, 0xf5, 0x75, 0xe2, 0x03, 0x56, 0x5e, |
| 438 | 0xf3, 0x60, 0xa8, 0xa4, 0x09, 0xb6, 0x63, 0x82, 0xa1, 0x92, 0x79, 0x30, 0xfa, 0xae, 0x1c, 0xef, |
| 439 | 0xd4, 0xf5, 0x7e, 0x72, 0x79, 0x8e, 0x4a, 0x48, 0x9e, 0xe6, 0x1d, 0x0b, 0x37, 0xe6, 0x05, 0x5d, |
| 440 | 0x9f, 0xc9, 0x11, 0xec, 0x2d, 0xdd, 0x48, 0x71, 0x4d, 0xdf, 0x61, 0xe6, 0x42, 0x03, 0x38, 0x2c, |
| 441 | 0x00, 0x98, 0xca, 0xcf, 0x5c, 0xa6, 0xa1, 0x97, 0x91, 0x21, 0x74, 0x72, 0x33, 0x67, 0x8d, 0xd1, |
| 442 | 0xce, 0x0b, 0xd7, 0x39, 0xe7, 0x55, 0xde, 0x67, 0x6e, 0xb6, 0x65, 0x9c, 0x95, 0x4e, 0x58, 0xa9, |
| 443 | 0xa5, 0xdf, 0xa1, 0x6b, 0xde, 0x4b, 0x93, 0x63, 0x68, 0xfa, 0x7a, 0xec, 0x85, 0x43, 0x71, 0x23, |
| 444 | 0x13, 0x68, 0xc5, 0x46, 0x52, 0xf0, 0x4f, 0x1e, 0xf0, 0x57, 0x8d, 0xb2, 0x52, 0x49, 0x9f, 0xc1, |
| 445 | 0x51, 0x85, 0xce, 0xf8, 0x2f, 0xc5, 0x33, 0xb9, 0xe9, 0xd3, 0x9d, 0xfd, 0x6e, 0x40, 0xd3, 0x88, |
| 446 | 0xc9, 0x6b, 0xe8, 0xcc, 0xb8, 0xf0, 0xcd, 0x07, 0xe9, 0x55, 0x7d, 0x74, 0x71, 0x70, 0x6c, 0x99, |
| 447 | 0xf5, 0xb7, 0xca, 0xf5, 0xb7, 0x2e, 0xf2, 0xf5, 0xa7, 0x35, 0xf2, 0x1e, 0xba, 0x8c, 0x7b, 0x3c, |
| 448 | 0x5c, 0x72, 0xad, 0xcc, 0xc8, 0x16, 0xe9, 0x60, 0x13, 0x97, 0xd6, 0x5e, 0xd4, 0xc9, 0x39, 0x74, |
| 449 | 0xaf, 0xb8, 0x5c, 0xdb, 0xe0, 0x6d, 0x84, 0x7e, 0x95, 0xb0, 0xfa, 0x05, 0xad, 0x91, 0xb7, 0xf0, |
| 450 | 0xff, 0x4d, 0xe2, 0xbb, 0x92, 0xaf, 0xf6, 0xf5, 0xb0, 0x94, 0xff, 0x2d, 0xfd, 0x23, 0xc6, 0x1b, |
| 451 | 0x68, 0x5f, 0x71, 0x39, 0xcb, 0x17, 0x75, 0xab, 0xff, 0xe3, 0xaa, 0x7f, 0x31, 0x63, 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame] | 456 | } |
| 457 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 458 | // Reference imports to suppress errors if they are not otherwise used. |
| 459 | var _ context.Context |
| 460 | var _ 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. |
| 464 | const _ = 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. |
| 469 | type 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 | |
| 477 | type ponSimClient struct { |
| 478 | cc *grpc.ClientConn |
| 479 | } |
| 480 | |
| 481 | func NewPonSimClient(cc *grpc.ClientConn) PonSimClient { |
| 482 | return &ponSimClient{cc} |
| 483 | } |
| 484 | |
| 485 | func (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 | |
| 494 | func (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 | |
| 509 | type PonSim_ReceiveFramesClient interface { |
| 510 | Recv() (*PonSimFrame, error) |
| 511 | grpc.ClientStream |
| 512 | } |
| 513 | |
| 514 | type ponSimReceiveFramesClient struct { |
| 515 | grpc.ClientStream |
| 516 | } |
| 517 | |
| 518 | func (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 | |
| 526 | func (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 | |
| 535 | func (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 | |
| 544 | func (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. |
| 554 | type 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. Bainbridge | c4bf538 | 2021-04-08 16:06:54 +0000 | [diff] [blame] | 562 | // UnimplementedPonSimServer can be embedded to have forward compatible implementations. |
| 563 | type UnimplementedPonSimServer struct { |
| 564 | } |
| 565 | |
| 566 | func (*UnimplementedPonSimServer) SendFrame(ctx context.Context, req *PonSimFrame) (*empty.Empty, error) { |
| 567 | return nil, status.Errorf(codes.Unimplemented, "method SendFrame not implemented") |
| 568 | } |
| 569 | func (*UnimplementedPonSimServer) ReceiveFrames(req *empty.Empty, srv PonSim_ReceiveFramesServer) error { |
| 570 | return status.Errorf(codes.Unimplemented, "method ReceiveFrames not implemented") |
| 571 | } |
| 572 | func (*UnimplementedPonSimServer) GetDeviceInfo(ctx context.Context, req *empty.Empty) (*PonSimDeviceInfo, error) { |
| 573 | return nil, status.Errorf(codes.Unimplemented, "method GetDeviceInfo not implemented") |
| 574 | } |
| 575 | func (*UnimplementedPonSimServer) UpdateFlowTable(ctx context.Context, req *FlowTable) (*empty.Empty, error) { |
| 576 | return nil, status.Errorf(codes.Unimplemented, "method UpdateFlowTable not implemented") |
| 577 | } |
| 578 | func (*UnimplementedPonSimServer) GetStats(ctx context.Context, req *empty.Empty) (*PonSimMetrics, error) { |
| 579 | return nil, status.Errorf(codes.Unimplemented, "method GetStats not implemented") |
| 580 | } |
| 581 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 582 | func RegisterPonSimServer(s *grpc.Server, srv PonSimServer) { |
| 583 | s.RegisterService(&_PonSim_serviceDesc, srv) |
| 584 | } |
| 585 | |
| 586 | func _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 | |
| 604 | func _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 | |
| 612 | type PonSim_ReceiveFramesServer interface { |
| 613 | Send(*PonSimFrame) error |
| 614 | grpc.ServerStream |
| 615 | } |
| 616 | |
| 617 | type ponSimReceiveFramesServer struct { |
| 618 | grpc.ServerStream |
| 619 | } |
| 620 | |
| 621 | func (x *ponSimReceiveFramesServer) Send(m *PonSimFrame) error { |
| 622 | return x.ServerStream.SendMsg(m) |
| 623 | } |
| 624 | |
| 625 | func _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 | |
| 643 | func _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 | |
| 661 | func _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 | |
| 679 | var _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 | } |