blob: c0636681a46e9a51140204c10fa43d67ed5fe94c [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: voltha_protos/ponsim.proto
package voltha
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
openflow_13 "github.com/opencord/voltha-protos/go/openflow_13"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type PonSimOnuDeviceInfo struct {
UniPort int32 `protobuf:"varint,1,opt,name=uni_port,json=uniPort,proto3" json:"uni_port,omitempty"`
SerialNumber string `protobuf:"bytes,2,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PonSimOnuDeviceInfo) Reset() { *m = PonSimOnuDeviceInfo{} }
func (m *PonSimOnuDeviceInfo) String() string { return proto.CompactTextString(m) }
func (*PonSimOnuDeviceInfo) ProtoMessage() {}
func (*PonSimOnuDeviceInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_352253851b8ea7c0, []int{0}
}
func (m *PonSimOnuDeviceInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PonSimOnuDeviceInfo.Unmarshal(m, b)
}
func (m *PonSimOnuDeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PonSimOnuDeviceInfo.Marshal(b, m, deterministic)
}
func (m *PonSimOnuDeviceInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_PonSimOnuDeviceInfo.Merge(m, src)
}
func (m *PonSimOnuDeviceInfo) XXX_Size() int {
return xxx_messageInfo_PonSimOnuDeviceInfo.Size(m)
}
func (m *PonSimOnuDeviceInfo) XXX_DiscardUnknown() {
xxx_messageInfo_PonSimOnuDeviceInfo.DiscardUnknown(m)
}
var xxx_messageInfo_PonSimOnuDeviceInfo proto.InternalMessageInfo
func (m *PonSimOnuDeviceInfo) GetUniPort() int32 {
if m != nil {
return m.UniPort
}
return 0
}
func (m *PonSimOnuDeviceInfo) GetSerialNumber() string {
if m != nil {
return m.SerialNumber
}
return ""
}
type PonSimDeviceInfo struct {
NniPort int32 `protobuf:"varint,1,opt,name=nni_port,json=nniPort,proto3" json:"nni_port,omitempty"`
Onus []*PonSimOnuDeviceInfo `protobuf:"bytes,2,rep,name=onus,proto3" json:"onus,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PonSimDeviceInfo) Reset() { *m = PonSimDeviceInfo{} }
func (m *PonSimDeviceInfo) String() string { return proto.CompactTextString(m) }
func (*PonSimDeviceInfo) ProtoMessage() {}
func (*PonSimDeviceInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_352253851b8ea7c0, []int{1}
}
func (m *PonSimDeviceInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PonSimDeviceInfo.Unmarshal(m, b)
}
func (m *PonSimDeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PonSimDeviceInfo.Marshal(b, m, deterministic)
}
func (m *PonSimDeviceInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_PonSimDeviceInfo.Merge(m, src)
}
func (m *PonSimDeviceInfo) XXX_Size() int {
return xxx_messageInfo_PonSimDeviceInfo.Size(m)
}
func (m *PonSimDeviceInfo) XXX_DiscardUnknown() {
xxx_messageInfo_PonSimDeviceInfo.DiscardUnknown(m)
}
var xxx_messageInfo_PonSimDeviceInfo proto.InternalMessageInfo
func (m *PonSimDeviceInfo) GetNniPort() int32 {
if m != nil {
return m.NniPort
}
return 0
}
func (m *PonSimDeviceInfo) GetOnus() []*PonSimOnuDeviceInfo {
if m != nil {
return m.Onus
}
return nil
}
type FlowTable struct {
Port int32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
Flows []*openflow_13.OfpFlowStats `protobuf:"bytes,2,rep,name=flows,proto3" json:"flows,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FlowTable) Reset() { *m = FlowTable{} }
func (m *FlowTable) String() string { return proto.CompactTextString(m) }
func (*FlowTable) ProtoMessage() {}
func (*FlowTable) Descriptor() ([]byte, []int) {
return fileDescriptor_352253851b8ea7c0, []int{2}
}
func (m *FlowTable) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FlowTable.Unmarshal(m, b)
}
func (m *FlowTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FlowTable.Marshal(b, m, deterministic)
}
func (m *FlowTable) XXX_Merge(src proto.Message) {
xxx_messageInfo_FlowTable.Merge(m, src)
}
func (m *FlowTable) XXX_Size() int {
return xxx_messageInfo_FlowTable.Size(m)
}
func (m *FlowTable) XXX_DiscardUnknown() {
xxx_messageInfo_FlowTable.DiscardUnknown(m)
}
var xxx_messageInfo_FlowTable proto.InternalMessageInfo
func (m *FlowTable) GetPort() int32 {
if m != nil {
return m.Port
}
return 0
}
func (m *FlowTable) GetFlows() []*openflow_13.OfpFlowStats {
if m != nil {
return m.Flows
}
return nil
}
type PonSimFrame struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
OutPort int32 `protobuf:"varint,3,opt,name=out_port,json=outPort,proto3" json:"out_port,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PonSimFrame) Reset() { *m = PonSimFrame{} }
func (m *PonSimFrame) String() string { return proto.CompactTextString(m) }
func (*PonSimFrame) ProtoMessage() {}
func (*PonSimFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_352253851b8ea7c0, []int{3}
}
func (m *PonSimFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PonSimFrame.Unmarshal(m, b)
}
func (m *PonSimFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PonSimFrame.Marshal(b, m, deterministic)
}
func (m *PonSimFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_PonSimFrame.Merge(m, src)
}
func (m *PonSimFrame) XXX_Size() int {
return xxx_messageInfo_PonSimFrame.Size(m)
}
func (m *PonSimFrame) XXX_DiscardUnknown() {
xxx_messageInfo_PonSimFrame.DiscardUnknown(m)
}
var xxx_messageInfo_PonSimFrame proto.InternalMessageInfo
func (m *PonSimFrame) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *PonSimFrame) GetPayload() []byte {
if m != nil {
return m.Payload
}
return nil
}
func (m *PonSimFrame) GetOutPort() int32 {
if m != nil {
return m.OutPort
}
return 0
}
type PonSimPacketCounter struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PonSimPacketCounter) Reset() { *m = PonSimPacketCounter{} }
func (m *PonSimPacketCounter) String() string { return proto.CompactTextString(m) }
func (*PonSimPacketCounter) ProtoMessage() {}
func (*PonSimPacketCounter) Descriptor() ([]byte, []int) {
return fileDescriptor_352253851b8ea7c0, []int{4}
}
func (m *PonSimPacketCounter) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PonSimPacketCounter.Unmarshal(m, b)
}
func (m *PonSimPacketCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PonSimPacketCounter.Marshal(b, m, deterministic)
}
func (m *PonSimPacketCounter) XXX_Merge(src proto.Message) {
xxx_messageInfo_PonSimPacketCounter.Merge(m, src)
}
func (m *PonSimPacketCounter) XXX_Size() int {
return xxx_messageInfo_PonSimPacketCounter.Size(m)
}
func (m *PonSimPacketCounter) XXX_DiscardUnknown() {
xxx_messageInfo_PonSimPacketCounter.DiscardUnknown(m)
}
var xxx_messageInfo_PonSimPacketCounter proto.InternalMessageInfo
func (m *PonSimPacketCounter) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *PonSimPacketCounter) GetValue() int64 {
if m != nil {
return m.Value
}
return 0
}
type PonSimPortMetrics struct {
PortName string `protobuf:"bytes,1,opt,name=port_name,json=portName,proto3" json:"port_name,omitempty"`
Packets []*PonSimPacketCounter `protobuf:"bytes,2,rep,name=packets,proto3" json:"packets,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PonSimPortMetrics) Reset() { *m = PonSimPortMetrics{} }
func (m *PonSimPortMetrics) String() string { return proto.CompactTextString(m) }
func (*PonSimPortMetrics) ProtoMessage() {}
func (*PonSimPortMetrics) Descriptor() ([]byte, []int) {
return fileDescriptor_352253851b8ea7c0, []int{5}
}
func (m *PonSimPortMetrics) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PonSimPortMetrics.Unmarshal(m, b)
}
func (m *PonSimPortMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PonSimPortMetrics.Marshal(b, m, deterministic)
}
func (m *PonSimPortMetrics) XXX_Merge(src proto.Message) {
xxx_messageInfo_PonSimPortMetrics.Merge(m, src)
}
func (m *PonSimPortMetrics) XXX_Size() int {
return xxx_messageInfo_PonSimPortMetrics.Size(m)
}
func (m *PonSimPortMetrics) XXX_DiscardUnknown() {
xxx_messageInfo_PonSimPortMetrics.DiscardUnknown(m)
}
var xxx_messageInfo_PonSimPortMetrics proto.InternalMessageInfo
func (m *PonSimPortMetrics) GetPortName() string {
if m != nil {
return m.PortName
}
return ""
}
func (m *PonSimPortMetrics) GetPackets() []*PonSimPacketCounter {
if m != nil {
return m.Packets
}
return nil
}
type PonSimMetrics struct {
Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
Metrics []*PonSimPortMetrics `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PonSimMetrics) Reset() { *m = PonSimMetrics{} }
func (m *PonSimMetrics) String() string { return proto.CompactTextString(m) }
func (*PonSimMetrics) ProtoMessage() {}
func (*PonSimMetrics) Descriptor() ([]byte, []int) {
return fileDescriptor_352253851b8ea7c0, []int{6}
}
func (m *PonSimMetrics) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PonSimMetrics.Unmarshal(m, b)
}
func (m *PonSimMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PonSimMetrics.Marshal(b, m, deterministic)
}
func (m *PonSimMetrics) XXX_Merge(src proto.Message) {
xxx_messageInfo_PonSimMetrics.Merge(m, src)
}
func (m *PonSimMetrics) XXX_Size() int {
return xxx_messageInfo_PonSimMetrics.Size(m)
}
func (m *PonSimMetrics) XXX_DiscardUnknown() {
xxx_messageInfo_PonSimMetrics.DiscardUnknown(m)
}
var xxx_messageInfo_PonSimMetrics proto.InternalMessageInfo
func (m *PonSimMetrics) GetDevice() string {
if m != nil {
return m.Device
}
return ""
}
func (m *PonSimMetrics) GetMetrics() []*PonSimPortMetrics {
if m != nil {
return m.Metrics
}
return nil
}
type PonSimMetricsRequest struct {
Port int32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PonSimMetricsRequest) Reset() { *m = PonSimMetricsRequest{} }
func (m *PonSimMetricsRequest) String() string { return proto.CompactTextString(m) }
func (*PonSimMetricsRequest) ProtoMessage() {}
func (*PonSimMetricsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_352253851b8ea7c0, []int{7}
}
func (m *PonSimMetricsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PonSimMetricsRequest.Unmarshal(m, b)
}
func (m *PonSimMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PonSimMetricsRequest.Marshal(b, m, deterministic)
}
func (m *PonSimMetricsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PonSimMetricsRequest.Merge(m, src)
}
func (m *PonSimMetricsRequest) XXX_Size() int {
return xxx_messageInfo_PonSimMetricsRequest.Size(m)
}
func (m *PonSimMetricsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PonSimMetricsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PonSimMetricsRequest proto.InternalMessageInfo
func (m *PonSimMetricsRequest) GetPort() int32 {
if m != nil {
return m.Port
}
return 0
}
func init() {
proto.RegisterType((*PonSimOnuDeviceInfo)(nil), "voltha.PonSimOnuDeviceInfo")
proto.RegisterType((*PonSimDeviceInfo)(nil), "voltha.PonSimDeviceInfo")
proto.RegisterType((*FlowTable)(nil), "voltha.FlowTable")
proto.RegisterType((*PonSimFrame)(nil), "voltha.PonSimFrame")
proto.RegisterType((*PonSimPacketCounter)(nil), "voltha.PonSimPacketCounter")
proto.RegisterType((*PonSimPortMetrics)(nil), "voltha.PonSimPortMetrics")
proto.RegisterType((*PonSimMetrics)(nil), "voltha.PonSimMetrics")
proto.RegisterType((*PonSimMetricsRequest)(nil), "voltha.PonSimMetricsRequest")
}
func init() { proto.RegisterFile("voltha_protos/ponsim.proto", fileDescriptor_352253851b8ea7c0) }
var fileDescriptor_352253851b8ea7c0 = []byte{
// 555 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x41, 0x6f, 0xd3, 0x4e,
0x10, 0xc5, 0x93, 0xb4, 0x4d, 0x9b, 0x69, 0xf3, 0xff, 0xd3, 0x6d, 0xa9, 0xd2, 0xf4, 0x40, 0xb4,
0x5c, 0x22, 0x50, 0x1d, 0xda, 0x88, 0x0b, 0x48, 0x80, 0x28, 0xb4, 0xe2, 0x40, 0x89, 0x36, 0xf4,
0x82, 0x10, 0x96, 0x63, 0x4f, 0x52, 0x0b, 0x7b, 0xc7, 0xd8, 0xbb, 0xa9, 0xfa, 0x0d, 0xf9, 0x58,
0xc8, 0xbb, 0x36, 0x89, 0xab, 0x84, 0xdb, 0xee, 0xf8, 0xe5, 0xf7, 0xe6, 0x8d, 0x27, 0x86, 0xee,
0x9c, 0x22, 0x75, 0xeb, 0xb9, 0x49, 0x4a, 0x8a, 0xb2, 0x41, 0x42, 0x32, 0x0b, 0x63, 0xc7, 0xdc,
0x58, 0xd3, 0x3e, 0xeb, 0x9e, 0xcc, 0x88, 0x66, 0x11, 0x0e, 0x4c, 0x75, 0xa2, 0xa7, 0x03, 0x8c,
0x13, 0x75, 0x6f, 0x45, 0xdd, 0x27, 0x55, 0x00, 0x25, 0x28, 0xa7, 0x11, 0xdd, 0xb9, 0x67, 0x43,
0x2b, 0xe0, 0x37, 0x70, 0x30, 0x22, 0x39, 0x0e, 0xe3, 0x2f, 0x52, 0x7f, 0xc0, 0x79, 0xe8, 0xe3,
0x27, 0x39, 0x25, 0x76, 0x0c, 0x3b, 0x5a, 0x86, 0x6e, 0x42, 0xa9, 0xea, 0xd4, 0x7b, 0xf5, 0xfe,
0x96, 0xd8, 0xd6, 0x32, 0x1c, 0x51, 0xaa, 0xd8, 0x53, 0x68, 0x67, 0x98, 0x86, 0x5e, 0xe4, 0x4a,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0x00,
0x00, 0xff, 0xff, 0x62, 0xcb, 0x74, 0xbe, 0x77, 0x04, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// PonSimClient is the client API for PonSim service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type PonSimClient interface {
SendFrame(ctx context.Context, in *PonSimFrame, opts ...grpc.CallOption) (*empty.Empty, error)
ReceiveFrames(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (PonSim_ReceiveFramesClient, error)
GetDeviceInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimDeviceInfo, error)
UpdateFlowTable(ctx context.Context, in *FlowTable, opts ...grpc.CallOption) (*empty.Empty, error)
GetStats(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimMetrics, error)
}
type ponSimClient struct {
cc *grpc.ClientConn
}
func NewPonSimClient(cc *grpc.ClientConn) PonSimClient {
return &ponSimClient{cc}
}
func (c *ponSimClient) SendFrame(ctx context.Context, in *PonSimFrame, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/voltha.PonSim/SendFrame", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ponSimClient) ReceiveFrames(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (PonSim_ReceiveFramesClient, error) {
stream, err := c.cc.NewStream(ctx, &_PonSim_serviceDesc.Streams[0], "/voltha.PonSim/ReceiveFrames", opts...)
if err != nil {
return nil, err
}
x := &ponSimReceiveFramesClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type PonSim_ReceiveFramesClient interface {
Recv() (*PonSimFrame, error)
grpc.ClientStream
}
type ponSimReceiveFramesClient struct {
grpc.ClientStream
}
func (x *ponSimReceiveFramesClient) Recv() (*PonSimFrame, error) {
m := new(PonSimFrame)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *ponSimClient) GetDeviceInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimDeviceInfo, error) {
out := new(PonSimDeviceInfo)
err := c.cc.Invoke(ctx, "/voltha.PonSim/GetDeviceInfo", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ponSimClient) UpdateFlowTable(ctx context.Context, in *FlowTable, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/voltha.PonSim/UpdateFlowTable", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *ponSimClient) GetStats(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PonSimMetrics, error) {
out := new(PonSimMetrics)
err := c.cc.Invoke(ctx, "/voltha.PonSim/GetStats", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// PonSimServer is the server API for PonSim service.
type PonSimServer interface {
SendFrame(context.Context, *PonSimFrame) (*empty.Empty, error)
ReceiveFrames(*empty.Empty, PonSim_ReceiveFramesServer) error
GetDeviceInfo(context.Context, *empty.Empty) (*PonSimDeviceInfo, error)
UpdateFlowTable(context.Context, *FlowTable) (*empty.Empty, error)
GetStats(context.Context, *empty.Empty) (*PonSimMetrics, error)
}
// UnimplementedPonSimServer can be embedded to have forward compatible implementations.
type UnimplementedPonSimServer struct {
}
func (*UnimplementedPonSimServer) SendFrame(ctx context.Context, req *PonSimFrame) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SendFrame not implemented")
}
func (*UnimplementedPonSimServer) ReceiveFrames(req *empty.Empty, srv PonSim_ReceiveFramesServer) error {
return status.Errorf(codes.Unimplemented, "method ReceiveFrames not implemented")
}
func (*UnimplementedPonSimServer) GetDeviceInfo(ctx context.Context, req *empty.Empty) (*PonSimDeviceInfo, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetDeviceInfo not implemented")
}
func (*UnimplementedPonSimServer) UpdateFlowTable(ctx context.Context, req *FlowTable) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateFlowTable not implemented")
}
func (*UnimplementedPonSimServer) GetStats(ctx context.Context, req *empty.Empty) (*PonSimMetrics, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetStats not implemented")
}
func RegisterPonSimServer(s *grpc.Server, srv PonSimServer) {
s.RegisterService(&_PonSim_serviceDesc, srv)
}
func _PonSim_SendFrame_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(PonSimFrame)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PonSimServer).SendFrame(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/voltha.PonSim/SendFrame",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PonSimServer).SendFrame(ctx, req.(*PonSimFrame))
}
return interceptor(ctx, in, info, handler)
}
func _PonSim_ReceiveFrames_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(empty.Empty)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(PonSimServer).ReceiveFrames(m, &ponSimReceiveFramesServer{stream})
}
type PonSim_ReceiveFramesServer interface {
Send(*PonSimFrame) error
grpc.ServerStream
}
type ponSimReceiveFramesServer struct {
grpc.ServerStream
}
func (x *ponSimReceiveFramesServer) Send(m *PonSimFrame) error {
return x.ServerStream.SendMsg(m)
}
func _PonSim_GetDeviceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PonSimServer).GetDeviceInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/voltha.PonSim/GetDeviceInfo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PonSimServer).GetDeviceInfo(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _PonSim_UpdateFlowTable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FlowTable)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PonSimServer).UpdateFlowTable(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/voltha.PonSim/UpdateFlowTable",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PonSimServer).UpdateFlowTable(ctx, req.(*FlowTable))
}
return interceptor(ctx, in, info, handler)
}
func _PonSim_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(empty.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PonSimServer).GetStats(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/voltha.PonSim/GetStats",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PonSimServer).GetStats(ctx, req.(*empty.Empty))
}
return interceptor(ctx, in, info, handler)
}
var _PonSim_serviceDesc = grpc.ServiceDesc{
ServiceName: "voltha.PonSim",
HandlerType: (*PonSimServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SendFrame",
Handler: _PonSim_SendFrame_Handler,
},
{
MethodName: "GetDeviceInfo",
Handler: _PonSim_GetDeviceInfo_Handler,
},
{
MethodName: "UpdateFlowTable",
Handler: _PonSim_UpdateFlowTable_Handler,
},
{
MethodName: "GetStats",
Handler: _PonSim_GetStats_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "ReceiveFrames",
Handler: _PonSim_ReceiveFrames_Handler,
ServerStreams: true,
},
},
Metadata: "voltha_protos/ponsim.proto",
}