blob: 7226f79bf0e9167adcf51675453632878dbdc377 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api/bbsim/bbsim.proto
package bbsim
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
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 PONPort struct {
ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
OperState string `protobuf:"bytes,2,opt,name=OperState,proto3" json:"OperState,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PONPort) Reset() { *m = PONPort{} }
func (m *PONPort) String() string { return proto.CompactTextString(m) }
func (*PONPort) ProtoMessage() {}
func (*PONPort) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7750073d18011b, []int{0}
}
func (m *PONPort) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PONPort.Unmarshal(m, b)
}
func (m *PONPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PONPort.Marshal(b, m, deterministic)
}
func (m *PONPort) XXX_Merge(src proto.Message) {
xxx_messageInfo_PONPort.Merge(m, src)
}
func (m *PONPort) XXX_Size() int {
return xxx_messageInfo_PONPort.Size(m)
}
func (m *PONPort) XXX_DiscardUnknown() {
xxx_messageInfo_PONPort.DiscardUnknown(m)
}
var xxx_messageInfo_PONPort proto.InternalMessageInfo
func (m *PONPort) GetID() int32 {
if m != nil {
return m.ID
}
return 0
}
func (m *PONPort) GetOperState() string {
if m != nil {
return m.OperState
}
return ""
}
type NNIPort struct {
ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
OperState string `protobuf:"bytes,2,opt,name=OperState,proto3" json:"OperState,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NNIPort) Reset() { *m = NNIPort{} }
func (m *NNIPort) String() string { return proto.CompactTextString(m) }
func (*NNIPort) ProtoMessage() {}
func (*NNIPort) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7750073d18011b, []int{1}
}
func (m *NNIPort) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NNIPort.Unmarshal(m, b)
}
func (m *NNIPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NNIPort.Marshal(b, m, deterministic)
}
func (m *NNIPort) XXX_Merge(src proto.Message) {
xxx_messageInfo_NNIPort.Merge(m, src)
}
func (m *NNIPort) XXX_Size() int {
return xxx_messageInfo_NNIPort.Size(m)
}
func (m *NNIPort) XXX_DiscardUnknown() {
xxx_messageInfo_NNIPort.DiscardUnknown(m)
}
var xxx_messageInfo_NNIPort proto.InternalMessageInfo
func (m *NNIPort) GetID() int32 {
if m != nil {
return m.ID
}
return 0
}
func (m *NNIPort) GetOperState() string {
if m != nil {
return m.OperState
}
return ""
}
type Olt struct {
ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
OperState string `protobuf:"bytes,3,opt,name=OperState,proto3" json:"OperState,omitempty"`
InternalState string `protobuf:"bytes,4,opt,name=InternalState,proto3" json:"InternalState,omitempty"`
NNIPorts []*NNIPort `protobuf:"bytes,5,rep,name=NNIPorts,proto3" json:"NNIPorts,omitempty"`
PONPorts []*PONPort `protobuf:"bytes,6,rep,name=PONPorts,proto3" json:"PONPorts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Olt) Reset() { *m = Olt{} }
func (m *Olt) String() string { return proto.CompactTextString(m) }
func (*Olt) ProtoMessage() {}
func (*Olt) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7750073d18011b, []int{2}
}
func (m *Olt) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Olt.Unmarshal(m, b)
}
func (m *Olt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Olt.Marshal(b, m, deterministic)
}
func (m *Olt) XXX_Merge(src proto.Message) {
xxx_messageInfo_Olt.Merge(m, src)
}
func (m *Olt) XXX_Size() int {
return xxx_messageInfo_Olt.Size(m)
}
func (m *Olt) XXX_DiscardUnknown() {
xxx_messageInfo_Olt.DiscardUnknown(m)
}
var xxx_messageInfo_Olt proto.InternalMessageInfo
func (m *Olt) GetID() int32 {
if m != nil {
return m.ID
}
return 0
}
func (m *Olt) GetSerialNumber() string {
if m != nil {
return m.SerialNumber
}
return ""
}
func (m *Olt) GetOperState() string {
if m != nil {
return m.OperState
}
return ""
}
func (m *Olt) GetInternalState() string {
if m != nil {
return m.InternalState
}
return ""
}
func (m *Olt) GetNNIPorts() []*NNIPort {
if m != nil {
return m.NNIPorts
}
return nil
}
func (m *Olt) GetPONPorts() []*PONPort {
if m != nil {
return m.PONPorts
}
return nil
}
type ONU struct {
ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
SerialNumber string `protobuf:"bytes,2,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
OperState string `protobuf:"bytes,3,opt,name=OperState,proto3" json:"OperState,omitempty"`
InternalState string `protobuf:"bytes,4,opt,name=InternalState,proto3" json:"InternalState,omitempty"`
PonPortID int32 `protobuf:"varint,5,opt,name=PonPortID,proto3" json:"PonPortID,omitempty"`
STag int32 `protobuf:"varint,6,opt,name=STag,proto3" json:"STag,omitempty"`
CTag int32 `protobuf:"varint,7,opt,name=CTag,proto3" json:"CTag,omitempty"`
HwAddress string `protobuf:"bytes,8,opt,name=HwAddress,proto3" json:"HwAddress,omitempty"`
PortNo int32 `protobuf:"varint,9,opt,name=PortNo,proto3" json:"PortNo,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ONU) Reset() { *m = ONU{} }
func (m *ONU) String() string { return proto.CompactTextString(m) }
func (*ONU) ProtoMessage() {}
func (*ONU) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7750073d18011b, []int{3}
}
func (m *ONU) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ONU.Unmarshal(m, b)
}
func (m *ONU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ONU.Marshal(b, m, deterministic)
}
func (m *ONU) XXX_Merge(src proto.Message) {
xxx_messageInfo_ONU.Merge(m, src)
}
func (m *ONU) XXX_Size() int {
return xxx_messageInfo_ONU.Size(m)
}
func (m *ONU) XXX_DiscardUnknown() {
xxx_messageInfo_ONU.DiscardUnknown(m)
}
var xxx_messageInfo_ONU proto.InternalMessageInfo
func (m *ONU) GetID() int32 {
if m != nil {
return m.ID
}
return 0
}
func (m *ONU) GetSerialNumber() string {
if m != nil {
return m.SerialNumber
}
return ""
}
func (m *ONU) GetOperState() string {
if m != nil {
return m.OperState
}
return ""
}
func (m *ONU) GetInternalState() string {
if m != nil {
return m.InternalState
}
return ""
}
func (m *ONU) GetPonPortID() int32 {
if m != nil {
return m.PonPortID
}
return 0
}
func (m *ONU) GetSTag() int32 {
if m != nil {
return m.STag
}
return 0
}
func (m *ONU) GetCTag() int32 {
if m != nil {
return m.CTag
}
return 0
}
func (m *ONU) GetHwAddress() string {
if m != nil {
return m.HwAddress
}
return ""
}
func (m *ONU) GetPortNo() int32 {
if m != nil {
return m.PortNo
}
return 0
}
type ONUs struct {
Items []*ONU `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ONUs) Reset() { *m = ONUs{} }
func (m *ONUs) String() string { return proto.CompactTextString(m) }
func (*ONUs) ProtoMessage() {}
func (*ONUs) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7750073d18011b, []int{4}
}
func (m *ONUs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ONUs.Unmarshal(m, b)
}
func (m *ONUs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ONUs.Marshal(b, m, deterministic)
}
func (m *ONUs) XXX_Merge(src proto.Message) {
xxx_messageInfo_ONUs.Merge(m, src)
}
func (m *ONUs) XXX_Size() int {
return xxx_messageInfo_ONUs.Size(m)
}
func (m *ONUs) XXX_DiscardUnknown() {
xxx_messageInfo_ONUs.DiscardUnknown(m)
}
var xxx_messageInfo_ONUs proto.InternalMessageInfo
func (m *ONUs) GetItems() []*ONU {
if m != nil {
return m.Items
}
return nil
}
type ONURequest struct {
SerialNumber string `protobuf:"bytes,1,opt,name=SerialNumber,proto3" json:"SerialNumber,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ONURequest) Reset() { *m = ONURequest{} }
func (m *ONURequest) String() string { return proto.CompactTextString(m) }
func (*ONURequest) ProtoMessage() {}
func (*ONURequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7750073d18011b, []int{5}
}
func (m *ONURequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ONURequest.Unmarshal(m, b)
}
func (m *ONURequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ONURequest.Marshal(b, m, deterministic)
}
func (m *ONURequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ONURequest.Merge(m, src)
}
func (m *ONURequest) XXX_Size() int {
return xxx_messageInfo_ONURequest.Size(m)
}
func (m *ONURequest) XXX_DiscardUnknown() {
xxx_messageInfo_ONURequest.DiscardUnknown(m)
}
var xxx_messageInfo_ONURequest proto.InternalMessageInfo
func (m *ONURequest) GetSerialNumber() string {
if m != nil {
return m.SerialNumber
}
return ""
}
type VersionNumber struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
BuildTime string `protobuf:"bytes,2,opt,name=buildTime,proto3" json:"buildTime,omitempty"`
CommitHash string `protobuf:"bytes,3,opt,name=commitHash,proto3" json:"commitHash,omitempty"`
GitStatus string `protobuf:"bytes,4,opt,name=gitStatus,proto3" json:"gitStatus,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VersionNumber) Reset() { *m = VersionNumber{} }
func (m *VersionNumber) String() string { return proto.CompactTextString(m) }
func (*VersionNumber) ProtoMessage() {}
func (*VersionNumber) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7750073d18011b, []int{6}
}
func (m *VersionNumber) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VersionNumber.Unmarshal(m, b)
}
func (m *VersionNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VersionNumber.Marshal(b, m, deterministic)
}
func (m *VersionNumber) XXX_Merge(src proto.Message) {
xxx_messageInfo_VersionNumber.Merge(m, src)
}
func (m *VersionNumber) XXX_Size() int {
return xxx_messageInfo_VersionNumber.Size(m)
}
func (m *VersionNumber) XXX_DiscardUnknown() {
xxx_messageInfo_VersionNumber.DiscardUnknown(m)
}
var xxx_messageInfo_VersionNumber proto.InternalMessageInfo
func (m *VersionNumber) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *VersionNumber) GetBuildTime() string {
if m != nil {
return m.BuildTime
}
return ""
}
func (m *VersionNumber) GetCommitHash() string {
if m != nil {
return m.CommitHash
}
return ""
}
func (m *VersionNumber) GetGitStatus() string {
if m != nil {
return m.GitStatus
}
return ""
}
type LogLevel struct {
Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`
Caller bool `protobuf:"varint,2,opt,name=caller,proto3" json:"caller,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LogLevel) Reset() { *m = LogLevel{} }
func (m *LogLevel) String() string { return proto.CompactTextString(m) }
func (*LogLevel) ProtoMessage() {}
func (*LogLevel) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7750073d18011b, []int{7}
}
func (m *LogLevel) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LogLevel.Unmarshal(m, b)
}
func (m *LogLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LogLevel.Marshal(b, m, deterministic)
}
func (m *LogLevel) XXX_Merge(src proto.Message) {
xxx_messageInfo_LogLevel.Merge(m, src)
}
func (m *LogLevel) XXX_Size() int {
return xxx_messageInfo_LogLevel.Size(m)
}
func (m *LogLevel) XXX_DiscardUnknown() {
xxx_messageInfo_LogLevel.DiscardUnknown(m)
}
var xxx_messageInfo_LogLevel proto.InternalMessageInfo
func (m *LogLevel) GetLevel() string {
if m != nil {
return m.Level
}
return ""
}
func (m *LogLevel) GetCaller() bool {
if m != nil {
return m.Caller
}
return false
}
type Response struct {
StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Response) Reset() { *m = Response{} }
func (m *Response) String() string { return proto.CompactTextString(m) }
func (*Response) ProtoMessage() {}
func (*Response) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7750073d18011b, []int{8}
}
func (m *Response) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Response.Unmarshal(m, b)
}
func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Response.Marshal(b, m, deterministic)
}
func (m *Response) XXX_Merge(src proto.Message) {
xxx_messageInfo_Response.Merge(m, src)
}
func (m *Response) XXX_Size() int {
return xxx_messageInfo_Response.Size(m)
}
func (m *Response) XXX_DiscardUnknown() {
xxx_messageInfo_Response.DiscardUnknown(m)
}
var xxx_messageInfo_Response proto.InternalMessageInfo
func (m *Response) GetStatusCode() int32 {
if m != nil {
return m.StatusCode
}
return 0
}
func (m *Response) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
type Empty struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Empty) Reset() { *m = Empty{} }
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) {
return fileDescriptor_ef7750073d18011b, []int{9}
}
func (m *Empty) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Empty.Unmarshal(m, b)
}
func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Empty.Marshal(b, m, deterministic)
}
func (m *Empty) XXX_Merge(src proto.Message) {
xxx_messageInfo_Empty.Merge(m, src)
}
func (m *Empty) XXX_Size() int {
return xxx_messageInfo_Empty.Size(m)
}
func (m *Empty) XXX_DiscardUnknown() {
xxx_messageInfo_Empty.DiscardUnknown(m)
}
var xxx_messageInfo_Empty proto.InternalMessageInfo
func init() {
proto.RegisterType((*PONPort)(nil), "bbsim.PONPort")
proto.RegisterType((*NNIPort)(nil), "bbsim.NNIPort")
proto.RegisterType((*Olt)(nil), "bbsim.Olt")
proto.RegisterType((*ONU)(nil), "bbsim.ONU")
proto.RegisterType((*ONUs)(nil), "bbsim.ONUs")
proto.RegisterType((*ONURequest)(nil), "bbsim.ONURequest")
proto.RegisterType((*VersionNumber)(nil), "bbsim.VersionNumber")
proto.RegisterType((*LogLevel)(nil), "bbsim.LogLevel")
proto.RegisterType((*Response)(nil), "bbsim.Response")
proto.RegisterType((*Empty)(nil), "bbsim.Empty")
}
func init() { proto.RegisterFile("api/bbsim/bbsim.proto", fileDescriptor_ef7750073d18011b) }
var fileDescriptor_ef7750073d18011b = []byte{
// 593 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x94, 0xd1, 0x6e, 0xda, 0x30,
0x14, 0x86, 0x13, 0x20, 0x04, 0x4e, 0x68, 0xa7, 0x59, 0xdd, 0x14, 0xa1, 0x6a, 0x43, 0x56, 0x35,
0xb1, 0x5d, 0xb4, 0x1b, 0x4c, 0xda, 0x6e, 0xd7, 0x82, 0x56, 0xa4, 0x2a, 0xa0, 0xa4, 0xec, 0x76,
0x0a, 0xc4, 0x82, 0x48, 0x49, 0x9c, 0xc5, 0xa6, 0x68, 0x0f, 0xb0, 0x77, 0xda, 0x8b, 0xec, 0x61,
0x76, 0x37, 0x39, 0x76, 0x02, 0x29, 0x9a, 0xd4, 0xed, 0xa6, 0x37, 0xc8, 0xe7, 0x3b, 0xe7, 0x3f,
0xb6, 0xff, 0x63, 0x02, 0xcf, 0xfc, 0x34, 0xbc, 0x58, 0x2c, 0x58, 0x18, 0xcb, 0xdf, 0xf3, 0x34,
0xa3, 0x9c, 0x22, 0x23, 0x0f, 0xf0, 0x07, 0x30, 0x67, 0x53, 0x67, 0x46, 0x33, 0x8e, 0x8e, 0xa1,
0x36, 0x19, 0xd9, 0x7a, 0x4f, 0xef, 0x1b, 0x6e, 0x6d, 0x32, 0x42, 0xa7, 0xd0, 0x9e, 0xa6, 0x24,
0xf3, 0xb8, 0xcf, 0x89, 0x5d, 0xeb, 0xe9, 0xfd, 0xb6, 0xbb, 0x03, 0x42, 0xe8, 0x38, 0x93, 0xff,
0x10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0xf2, 0x08, 0x2f, 0x0d, 0x7c, 0xa2, 0x92, 0x05, 0xe8, 0xde, 0x07, 0x58, 0x43, 0x43, 0xb0,
0xbc, 0xf5, 0x86, 0x07, 0x74, 0x9b, 0xfc, 0x65, 0x8b, 0x42, 0x54, 0xb8, 0x8b, 0x35, 0x34, 0x00,
0x98, 0xd1, 0x2d, 0xc9, 0xe8, 0x3f, 0x68, 0xde, 0x43, 0xc7, 0x25, 0x8c, 0xfb, 0x19, 0x1f, 0xfb,
0x29, 0x8d, 0x1e, 0xa8, 0x1a, 0x82, 0xa5, 0x54, 0xa3, 0xf5, 0x32, 0x7d, 0x98, 0x68, 0xd1, 0xcc,
0x3f, 0xbe, 0xc3, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x15, 0x8d, 0x8c, 0x02, 0x95, 0x05, 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
// BBSimClient is the client API for BBSim service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type BBSimClient interface {
Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error)
GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error)
GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error)
GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error)
SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error)
ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error)
}
type bBSimClient struct {
cc *grpc.ClientConn
}
func NewBBSimClient(cc *grpc.ClientConn) BBSimClient {
return &bBSimClient{cc}
}
func (c *bBSimClient) Version(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*VersionNumber, error) {
out := new(VersionNumber)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/Version", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bBSimClient) GetOlt(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Olt, error) {
out := new(Olt)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetOlt", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bBSimClient) GetONUs(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ONUs, error) {
out := new(ONUs)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONUs", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bBSimClient) GetONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*ONU, error) {
out := new(ONU)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/GetONU", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bBSimClient) SetLogLevel(ctx context.Context, in *LogLevel, opts ...grpc.CallOption) (*LogLevel, error) {
out := new(LogLevel)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/SetLogLevel", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bBSimClient) ShutdownONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/ShutdownONU", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bBSimClient) PoweronONU(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/PoweronONU", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bBSimClient) RestartEapol(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartEapol", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *bBSimClient) RestartDhcp(ctx context.Context, in *ONURequest, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/bbsim.BBSim/RestartDhcp", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// BBSimServer is the server API for BBSim service.
type BBSimServer interface {
Version(context.Context, *Empty) (*VersionNumber, error)
GetOlt(context.Context, *Empty) (*Olt, error)
GetONUs(context.Context, *Empty) (*ONUs, error)
GetONU(context.Context, *ONURequest) (*ONU, error)
SetLogLevel(context.Context, *LogLevel) (*LogLevel, error)
ShutdownONU(context.Context, *ONURequest) (*Response, error)
PoweronONU(context.Context, *ONURequest) (*Response, error)
RestartEapol(context.Context, *ONURequest) (*Response, error)
RestartDhcp(context.Context, *ONURequest) (*Response, error)
}
// UnimplementedBBSimServer can be embedded to have forward compatible implementations.
type UnimplementedBBSimServer struct {
}
func (*UnimplementedBBSimServer) Version(ctx context.Context, req *Empty) (*VersionNumber, error) {
return nil, status.Errorf(codes.Unimplemented, "method Version not implemented")
}
func (*UnimplementedBBSimServer) GetOlt(ctx context.Context, req *Empty) (*Olt, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetOlt not implemented")
}
func (*UnimplementedBBSimServer) GetONUs(ctx context.Context, req *Empty) (*ONUs, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetONUs not implemented")
}
func (*UnimplementedBBSimServer) GetONU(ctx context.Context, req *ONURequest) (*ONU, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetONU not implemented")
}
func (*UnimplementedBBSimServer) SetLogLevel(ctx context.Context, req *LogLevel) (*LogLevel, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetLogLevel not implemented")
}
func (*UnimplementedBBSimServer) ShutdownONU(ctx context.Context, req *ONURequest) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method ShutdownONU not implemented")
}
func (*UnimplementedBBSimServer) PoweronONU(ctx context.Context, req *ONURequest) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method PoweronONU not implemented")
}
func (*UnimplementedBBSimServer) RestartEapol(ctx context.Context, req *ONURequest) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method RestartEapol not implemented")
}
func (*UnimplementedBBSimServer) RestartDhcp(ctx context.Context, req *ONURequest) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method RestartDhcp not implemented")
}
func RegisterBBSimServer(s *grpc.Server, srv BBSimServer) {
s.RegisterService(&_BBSim_serviceDesc, srv)
}
func _BBSim_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BBSimServer).Version(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bbsim.BBSim/Version",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BBSimServer).Version(ctx, req.(*Empty))
}
return interceptor(ctx, in, info, handler)
}
func _BBSim_GetOlt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BBSimServer).GetOlt(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bbsim.BBSim/GetOlt",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BBSimServer).GetOlt(ctx, req.(*Empty))
}
return interceptor(ctx, in, info, handler)
}
func _BBSim_GetONUs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BBSimServer).GetONUs(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bbsim.BBSim/GetONUs",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BBSimServer).GetONUs(ctx, req.(*Empty))
}
return interceptor(ctx, in, info, handler)
}
func _BBSim_GetONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ONURequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BBSimServer).GetONU(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bbsim.BBSim/GetONU",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BBSimServer).GetONU(ctx, req.(*ONURequest))
}
return interceptor(ctx, in, info, handler)
}
func _BBSim_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(LogLevel)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BBSimServer).SetLogLevel(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bbsim.BBSim/SetLogLevel",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BBSimServer).SetLogLevel(ctx, req.(*LogLevel))
}
return interceptor(ctx, in, info, handler)
}
func _BBSim_ShutdownONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ONURequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BBSimServer).ShutdownONU(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bbsim.BBSim/ShutdownONU",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BBSimServer).ShutdownONU(ctx, req.(*ONURequest))
}
return interceptor(ctx, in, info, handler)
}
func _BBSim_PoweronONU_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ONURequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BBSimServer).PoweronONU(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bbsim.BBSim/PoweronONU",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BBSimServer).PoweronONU(ctx, req.(*ONURequest))
}
return interceptor(ctx, in, info, handler)
}
func _BBSim_RestartEapol_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ONURequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BBSimServer).RestartEapol(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bbsim.BBSim/RestartEapol",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BBSimServer).RestartEapol(ctx, req.(*ONURequest))
}
return interceptor(ctx, in, info, handler)
}
func _BBSim_RestartDhcp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ONURequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(BBSimServer).RestartDhcp(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/bbsim.BBSim/RestartDhcp",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(BBSimServer).RestartDhcp(ctx, req.(*ONURequest))
}
return interceptor(ctx, in, info, handler)
}
var _BBSim_serviceDesc = grpc.ServiceDesc{
ServiceName: "bbsim.BBSim",
HandlerType: (*BBSimServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Version",
Handler: _BBSim_Version_Handler,
},
{
MethodName: "GetOlt",
Handler: _BBSim_GetOlt_Handler,
},
{
MethodName: "GetONUs",
Handler: _BBSim_GetONUs_Handler,
},
{
MethodName: "GetONU",
Handler: _BBSim_GetONU_Handler,
},
{
MethodName: "SetLogLevel",
Handler: _BBSim_SetLogLevel_Handler,
},
{
MethodName: "ShutdownONU",
Handler: _BBSim_ShutdownONU_Handler,
},
{
MethodName: "PoweronONU",
Handler: _BBSim_PoweronONU_Handler,
},
{
MethodName: "RestartEapol",
Handler: _BBSim_RestartEapol_Handler,
},
{
MethodName: "RestartDhcp",
Handler: _BBSim_RestartDhcp_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "api/bbsim/bbsim.proto",
}