| // 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/v4/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{ |
| // 565 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x5f, 0x6f, 0xd3, 0x3c, |
| 0x14, 0xc6, 0x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xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xf9, 0xf9, 0xa0, |
| 0x81, 0x8f, 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", |
| } |