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" |
| 11 | openflow_13 "github.com/opencord/voltha-protos/go/openflow_13" |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 12 | grpc "google.golang.org/grpc" |
William Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 13 | codes "google.golang.org/grpc/codes" |
| 14 | status "google.golang.org/grpc/status" |
| 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{ |
| 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 Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 457 | // Reference imports to suppress errors if they are not otherwise used. |
| 458 | var _ context.Context |
| 459 | var _ 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. |
| 463 | const _ = 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. |
| 468 | type 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 | |
| 476 | type ponSimClient struct { |
| 477 | cc *grpc.ClientConn |
| 478 | } |
| 479 | |
| 480 | func NewPonSimClient(cc *grpc.ClientConn) PonSimClient { |
| 481 | return &ponSimClient{cc} |
| 482 | } |
| 483 | |
| 484 | func (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 | |
| 493 | func (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 | |
| 508 | type PonSim_ReceiveFramesClient interface { |
| 509 | Recv() (*PonSimFrame, error) |
| 510 | grpc.ClientStream |
| 511 | } |
| 512 | |
| 513 | type ponSimReceiveFramesClient struct { |
| 514 | grpc.ClientStream |
| 515 | } |
| 516 | |
| 517 | func (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 | |
| 525 | func (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 | |
| 534 | func (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 | |
| 543 | func (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. |
| 553 | type 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 Kurkian | ad74565 | 2019-03-20 08:45:51 -0400 | [diff] [blame^] | 561 | // UnimplementedPonSimServer can be embedded to have forward compatible implementations. |
| 562 | type UnimplementedPonSimServer struct { |
| 563 | } |
| 564 | |
| 565 | func (*UnimplementedPonSimServer) SendFrame(ctx context.Context, req *PonSimFrame) (*empty.Empty, error) { |
| 566 | return nil, status.Errorf(codes.Unimplemented, "method SendFrame not implemented") |
| 567 | } |
| 568 | func (*UnimplementedPonSimServer) ReceiveFrames(req *empty.Empty, srv PonSim_ReceiveFramesServer) error { |
| 569 | return status.Errorf(codes.Unimplemented, "method ReceiveFrames not implemented") |
| 570 | } |
| 571 | func (*UnimplementedPonSimServer) GetDeviceInfo(ctx context.Context, req *empty.Empty) (*PonSimDeviceInfo, error) { |
| 572 | return nil, status.Errorf(codes.Unimplemented, "method GetDeviceInfo not implemented") |
| 573 | } |
| 574 | func (*UnimplementedPonSimServer) UpdateFlowTable(ctx context.Context, req *FlowTable) (*empty.Empty, error) { |
| 575 | return nil, status.Errorf(codes.Unimplemented, "method UpdateFlowTable not implemented") |
| 576 | } |
| 577 | func (*UnimplementedPonSimServer) GetStats(ctx context.Context, req *empty.Empty) (*PonSimMetrics, error) { |
| 578 | return nil, status.Errorf(codes.Unimplemented, "method GetStats not implemented") |
| 579 | } |
| 580 | |
William Kurkian | 1b363f4 | 2019-03-12 15:28:12 -0400 | [diff] [blame] | 581 | func RegisterPonSimServer(s *grpc.Server, srv PonSimServer) { |
| 582 | s.RegisterService(&_PonSim_serviceDesc, srv) |
| 583 | } |
| 584 | |
| 585 | func _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 | |
| 603 | func _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 | |
| 611 | type PonSim_ReceiveFramesServer interface { |
| 612 | Send(*PonSimFrame) error |
| 613 | grpc.ServerStream |
| 614 | } |
| 615 | |
| 616 | type ponSimReceiveFramesServer struct { |
| 617 | grpc.ServerStream |
| 618 | } |
| 619 | |
| 620 | func (x *ponSimReceiveFramesServer) Send(m *PonSimFrame) error { |
| 621 | return x.ServerStream.SendMsg(m) |
| 622 | } |
| 623 | |
| 624 | func _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 | |
| 642 | func _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 | |
| 660 | func _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 | |
| 678 | var _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 | } |