blob: a296e5ef683264a703346fccef2d2118065499fd [file] [log] [blame]
hkouser24361d42020-12-14 19:21:47 +05301// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: api/bbsim/bbsim_dmi.proto
3
4package bbsim
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
10 grpc "google.golang.org/grpc"
11 codes "google.golang.org/grpc/codes"
12 status "google.golang.org/grpc/status"
13 math "math"
14)
15
16// Reference imports to suppress errors if they are not otherwise used.
17var _ = proto.Marshal
18var _ = fmt.Errorf
19var _ = math.Inf
20
21// This is a compile-time assertion to ensure that this generated file
22// is compatible with the proto package it is being compiled against.
23// A compilation error at this line likely means your copy of the
24// proto package needs to be updated.
25const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
26
27type DmiEvent struct {
28 EventName string `protobuf:"bytes,1,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"`
29 XXX_NoUnkeyedLiteral struct{} `json:"-"`
30 XXX_unrecognized []byte `json:"-"`
31 XXX_sizecache int32 `json:"-"`
32}
33
34func (m *DmiEvent) Reset() { *m = DmiEvent{} }
35func (m *DmiEvent) String() string { return proto.CompactTextString(m) }
36func (*DmiEvent) ProtoMessage() {}
37func (*DmiEvent) Descriptor() ([]byte, []int) {
38 return fileDescriptor_49e784b4938902cc, []int{0}
39}
40
41func (m *DmiEvent) XXX_Unmarshal(b []byte) error {
42 return xxx_messageInfo_DmiEvent.Unmarshal(m, b)
43}
44func (m *DmiEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
45 return xxx_messageInfo_DmiEvent.Marshal(b, m, deterministic)
46}
47func (m *DmiEvent) XXX_Merge(src proto.Message) {
48 xxx_messageInfo_DmiEvent.Merge(m, src)
49}
50func (m *DmiEvent) XXX_Size() int {
51 return xxx_messageInfo_DmiEvent.Size(m)
52}
53func (m *DmiEvent) XXX_DiscardUnknown() {
54 xxx_messageInfo_DmiEvent.DiscardUnknown(m)
55}
56
57var xxx_messageInfo_DmiEvent proto.InternalMessageInfo
58
59func (m *DmiEvent) GetEventName() string {
60 if m != nil {
61 return m.EventName
62 }
63 return ""
64}
65
Elia Battistone8d1fa42022-04-01 10:47:37 +020066type DmiResponse struct {
hkouser24361d42020-12-14 19:21:47 +053067 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
68 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
69 XXX_NoUnkeyedLiteral struct{} `json:"-"`
70 XXX_unrecognized []byte `json:"-"`
71 XXX_sizecache int32 `json:"-"`
72}
73
Elia Battistone8d1fa42022-04-01 10:47:37 +020074func (m *DmiResponse) Reset() { *m = DmiResponse{} }
75func (m *DmiResponse) String() string { return proto.CompactTextString(m) }
76func (*DmiResponse) ProtoMessage() {}
77func (*DmiResponse) Descriptor() ([]byte, []int) {
hkouser24361d42020-12-14 19:21:47 +053078 return fileDescriptor_49e784b4938902cc, []int{1}
79}
80
Elia Battistone8d1fa42022-04-01 10:47:37 +020081func (m *DmiResponse) XXX_Unmarshal(b []byte) error {
82 return xxx_messageInfo_DmiResponse.Unmarshal(m, b)
hkouser24361d42020-12-14 19:21:47 +053083}
Elia Battistone8d1fa42022-04-01 10:47:37 +020084func (m *DmiResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
85 return xxx_messageInfo_DmiResponse.Marshal(b, m, deterministic)
hkouser24361d42020-12-14 19:21:47 +053086}
Elia Battistone8d1fa42022-04-01 10:47:37 +020087func (m *DmiResponse) XXX_Merge(src proto.Message) {
88 xxx_messageInfo_DmiResponse.Merge(m, src)
hkouser24361d42020-12-14 19:21:47 +053089}
Elia Battistone8d1fa42022-04-01 10:47:37 +020090func (m *DmiResponse) XXX_Size() int {
91 return xxx_messageInfo_DmiResponse.Size(m)
hkouser24361d42020-12-14 19:21:47 +053092}
Elia Battistone8d1fa42022-04-01 10:47:37 +020093func (m *DmiResponse) XXX_DiscardUnknown() {
94 xxx_messageInfo_DmiResponse.DiscardUnknown(m)
hkouser24361d42020-12-14 19:21:47 +053095}
96
Elia Battistone8d1fa42022-04-01 10:47:37 +020097var xxx_messageInfo_DmiResponse proto.InternalMessageInfo
hkouser24361d42020-12-14 19:21:47 +053098
Elia Battistone8d1fa42022-04-01 10:47:37 +020099func (m *DmiResponse) GetStatusCode() int32 {
hkouser24361d42020-12-14 19:21:47 +0530100 if m != nil {
101 return m.StatusCode
102 }
103 return 0
104}
105
Elia Battistone8d1fa42022-04-01 10:47:37 +0200106func (m *DmiResponse) GetMessage() string {
hkouser24361d42020-12-14 19:21:47 +0530107 if m != nil {
108 return m.Message
109 }
110 return ""
111}
112
Elia Battistone8d1fa42022-04-01 10:47:37 +0200113type DmiEmpty struct {
114 XXX_NoUnkeyedLiteral struct{} `json:"-"`
115 XXX_unrecognized []byte `json:"-"`
116 XXX_sizecache int32 `json:"-"`
117}
118
119func (m *DmiEmpty) Reset() { *m = DmiEmpty{} }
120func (m *DmiEmpty) String() string { return proto.CompactTextString(m) }
121func (*DmiEmpty) ProtoMessage() {}
122func (*DmiEmpty) Descriptor() ([]byte, []int) {
123 return fileDescriptor_49e784b4938902cc, []int{2}
124}
125
126func (m *DmiEmpty) XXX_Unmarshal(b []byte) error {
127 return xxx_messageInfo_DmiEmpty.Unmarshal(m, b)
128}
129func (m *DmiEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
130 return xxx_messageInfo_DmiEmpty.Marshal(b, m, deterministic)
131}
132func (m *DmiEmpty) XXX_Merge(src proto.Message) {
133 xxx_messageInfo_DmiEmpty.Merge(m, src)
134}
135func (m *DmiEmpty) XXX_Size() int {
136 return xxx_messageInfo_DmiEmpty.Size(m)
137}
138func (m *DmiEmpty) XXX_DiscardUnknown() {
139 xxx_messageInfo_DmiEmpty.DiscardUnknown(m)
140}
141
142var xxx_messageInfo_DmiEmpty proto.InternalMessageInfo
143
144type TransceiverRequest struct {
145 TransceiverId uint32 `protobuf:"varint,1,opt,name=TransceiverId,proto3" json:"TransceiverId,omitempty"`
146 XXX_NoUnkeyedLiteral struct{} `json:"-"`
147 XXX_unrecognized []byte `json:"-"`
148 XXX_sizecache int32 `json:"-"`
149}
150
151func (m *TransceiverRequest) Reset() { *m = TransceiverRequest{} }
152func (m *TransceiverRequest) String() string { return proto.CompactTextString(m) }
153func (*TransceiverRequest) ProtoMessage() {}
154func (*TransceiverRequest) Descriptor() ([]byte, []int) {
155 return fileDescriptor_49e784b4938902cc, []int{3}
156}
157
158func (m *TransceiverRequest) XXX_Unmarshal(b []byte) error {
159 return xxx_messageInfo_TransceiverRequest.Unmarshal(m, b)
160}
161func (m *TransceiverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
162 return xxx_messageInfo_TransceiverRequest.Marshal(b, m, deterministic)
163}
164func (m *TransceiverRequest) XXX_Merge(src proto.Message) {
165 xxx_messageInfo_TransceiverRequest.Merge(m, src)
166}
167func (m *TransceiverRequest) XXX_Size() int {
168 return xxx_messageInfo_TransceiverRequest.Size(m)
169}
170func (m *TransceiverRequest) XXX_DiscardUnknown() {
171 xxx_messageInfo_TransceiverRequest.DiscardUnknown(m)
172}
173
174var xxx_messageInfo_TransceiverRequest proto.InternalMessageInfo
175
176func (m *TransceiverRequest) GetTransceiverId() uint32 {
177 if m != nil {
178 return m.TransceiverId
179 }
180 return 0
181}
182
183type Transceiver struct {
184 ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
185 UUID string `protobuf:"bytes,2,opt,name=UUID,proto3" json:"UUID,omitempty"`
186 Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
187 Technology string `protobuf:"bytes,4,opt,name=Technology,proto3" json:"Technology,omitempty"`
188 PluggedIn bool `protobuf:"varint,5,opt,name=PluggedIn,proto3" json:"PluggedIn,omitempty"`
189 PonIds []uint32 `protobuf:"varint,6,rep,packed,name=PonIds,proto3" json:"PonIds,omitempty"`
190 XXX_NoUnkeyedLiteral struct{} `json:"-"`
191 XXX_unrecognized []byte `json:"-"`
192 XXX_sizecache int32 `json:"-"`
193}
194
195func (m *Transceiver) Reset() { *m = Transceiver{} }
196func (m *Transceiver) String() string { return proto.CompactTextString(m) }
197func (*Transceiver) ProtoMessage() {}
198func (*Transceiver) Descriptor() ([]byte, []int) {
199 return fileDescriptor_49e784b4938902cc, []int{4}
200}
201
202func (m *Transceiver) XXX_Unmarshal(b []byte) error {
203 return xxx_messageInfo_Transceiver.Unmarshal(m, b)
204}
205func (m *Transceiver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
206 return xxx_messageInfo_Transceiver.Marshal(b, m, deterministic)
207}
208func (m *Transceiver) XXX_Merge(src proto.Message) {
209 xxx_messageInfo_Transceiver.Merge(m, src)
210}
211func (m *Transceiver) XXX_Size() int {
212 return xxx_messageInfo_Transceiver.Size(m)
213}
214func (m *Transceiver) XXX_DiscardUnknown() {
215 xxx_messageInfo_Transceiver.DiscardUnknown(m)
216}
217
218var xxx_messageInfo_Transceiver proto.InternalMessageInfo
219
220func (m *Transceiver) GetID() uint32 {
221 if m != nil {
222 return m.ID
223 }
224 return 0
225}
226
227func (m *Transceiver) GetUUID() string {
228 if m != nil {
229 return m.UUID
230 }
231 return ""
232}
233
234func (m *Transceiver) GetName() string {
235 if m != nil {
236 return m.Name
237 }
238 return ""
239}
240
241func (m *Transceiver) GetTechnology() string {
242 if m != nil {
243 return m.Technology
244 }
245 return ""
246}
247
248func (m *Transceiver) GetPluggedIn() bool {
249 if m != nil {
250 return m.PluggedIn
251 }
252 return false
253}
254
255func (m *Transceiver) GetPonIds() []uint32 {
256 if m != nil {
257 return m.PonIds
258 }
259 return nil
260}
261
262type Transceivers struct {
263 Items []*Transceiver `protobuf:"bytes,1,rep,name=Items,proto3" json:"Items,omitempty"`
264 XXX_NoUnkeyedLiteral struct{} `json:"-"`
265 XXX_unrecognized []byte `json:"-"`
266 XXX_sizecache int32 `json:"-"`
267}
268
269func (m *Transceivers) Reset() { *m = Transceivers{} }
270func (m *Transceivers) String() string { return proto.CompactTextString(m) }
271func (*Transceivers) ProtoMessage() {}
272func (*Transceivers) Descriptor() ([]byte, []int) {
273 return fileDescriptor_49e784b4938902cc, []int{5}
274}
275
276func (m *Transceivers) XXX_Unmarshal(b []byte) error {
277 return xxx_messageInfo_Transceivers.Unmarshal(m, b)
278}
279func (m *Transceivers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
280 return xxx_messageInfo_Transceivers.Marshal(b, m, deterministic)
281}
282func (m *Transceivers) XXX_Merge(src proto.Message) {
283 xxx_messageInfo_Transceivers.Merge(m, src)
284}
285func (m *Transceivers) XXX_Size() int {
286 return xxx_messageInfo_Transceivers.Size(m)
287}
288func (m *Transceivers) XXX_DiscardUnknown() {
289 xxx_messageInfo_Transceivers.DiscardUnknown(m)
290}
291
292var xxx_messageInfo_Transceivers proto.InternalMessageInfo
293
294func (m *Transceivers) GetItems() []*Transceiver {
295 if m != nil {
296 return m.Items
297 }
298 return nil
299}
300
hkouser24361d42020-12-14 19:21:47 +0530301func init() {
302 proto.RegisterType((*DmiEvent)(nil), "bbsim.DmiEvent")
Elia Battistone8d1fa42022-04-01 10:47:37 +0200303 proto.RegisterType((*DmiResponse)(nil), "bbsim.DmiResponse")
304 proto.RegisterType((*DmiEmpty)(nil), "bbsim.DmiEmpty")
305 proto.RegisterType((*TransceiverRequest)(nil), "bbsim.TransceiverRequest")
306 proto.RegisterType((*Transceiver)(nil), "bbsim.Transceiver")
307 proto.RegisterType((*Transceivers)(nil), "bbsim.Transceivers")
hkouser24361d42020-12-14 19:21:47 +0530308}
309
310func init() { proto.RegisterFile("api/bbsim/bbsim_dmi.proto", fileDescriptor_49e784b4938902cc) }
311
312var fileDescriptor_49e784b4938902cc = []byte{
Elia Battistone8d1fa42022-04-01 10:47:37 +0200313 // 414 bytes of a gzipped FileDescriptorProto
314 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x92, 0xcd, 0x6e, 0xd4, 0x30,
315 0x10, 0xc7, 0x9b, 0xdd, 0xee, 0xd2, 0x9d, 0xb0, 0x54, 0x0c, 0x12, 0x72, 0x2b, 0x3e, 0x56, 0x06,
316 0xa4, 0x70, 0x49, 0xa5, 0xc2, 0x01, 0x38, 0x6e, 0x53, 0x81, 0x2f, 0x50, 0x45, 0xed, 0x85, 0xcb,
317 0x2a, 0x1f, 0xa3, 0x34, 0x52, 0x6d, 0x87, 0xd8, 0xa9, 0xd4, 0x47, 0xe0, 0x19, 0x78, 0x59, 0x14,
318 0x3b, 0x4b, 0x53, 0x01, 0xa7, 0x5e, 0xa2, 0xf1, 0x2f, 0x33, 0xe3, 0xff, 0xf8, 0x3f, 0x70, 0x90,
319 0x35, 0xf5, 0x51, 0x9e, 0x9b, 0x5a, 0xfa, 0xef, 0xa6, 0x94, 0x75, 0xdc, 0xb4, 0xda, 0x6a, 0x9c,
320 0x39, 0xc0, 0xdf, 0xc2, 0x5e, 0x22, 0xeb, 0xd3, 0x6b, 0x52, 0x16, 0x9f, 0x03, 0x50, 0x1f, 0x6c,
321 0x54, 0x26, 0x89, 0x05, 0xab, 0x20, 0x5a, 0xa4, 0x0b, 0x47, 0xbe, 0x66, 0x92, 0xf8, 0x17, 0x08,
322 0x13, 0x59, 0xa7, 0x64, 0x1a, 0xad, 0x0c, 0xe1, 0x4b, 0x08, 0x8d, 0xcd, 0x6c, 0x67, 0x36, 0x85,
323 0x2e, 0x7d, 0xfa, 0x2c, 0x05, 0x8f, 0x4e, 0x74, 0x49, 0xc8, 0xe0, 0x81, 0x24, 0x63, 0xb2, 0x8a,
324 0xd8, 0xc4, 0xf5, 0xda, 0x1e, 0x39, 0xf8, 0x4b, 0x65, 0x63, 0x6f, 0xf8, 0x27, 0xc0, 0xf3, 0x36,
325 0x53, 0xa6, 0xa0, 0xfa, 0x9a, 0xda, 0x94, 0x7e, 0x74, 0x64, 0x2c, 0xbe, 0x86, 0xe5, 0x88, 0x8a,
326 0xd2, 0xb5, 0x5f, 0xa6, 0x77, 0x21, 0xff, 0x15, 0x40, 0x38, 0x22, 0xf8, 0x08, 0x26, 0x22, 0x19,
327 0x52, 0x27, 0x22, 0x41, 0x84, 0xdd, 0x8b, 0x0b, 0x91, 0x0c, 0xd7, 0xbb, 0xb8, 0x67, 0xfd, 0x34,
328 0x6c, 0xea, 0x59, 0x1f, 0xe3, 0x0b, 0x80, 0x73, 0x2a, 0x2e, 0x95, 0xbe, 0xd2, 0xd5, 0x0d, 0xdb,
329 0x75, 0x7f, 0x46, 0x04, 0x9f, 0xc1, 0xe2, 0xec, 0xaa, 0xab, 0x2a, 0x2a, 0x85, 0x62, 0xb3, 0x55,
330 0x10, 0xed, 0xa5, 0xb7, 0x00, 0x9f, 0xc2, 0xfc, 0x4c, 0x2b, 0x51, 0x1a, 0x36, 0x5f, 0x4d, 0xa3,
331 0x65, 0x3a, 0x9c, 0xf8, 0x07, 0x78, 0x38, 0x12, 0x67, 0x30, 0x82, 0x99, 0xb0, 0x24, 0x0d, 0x0b,
332 0x56, 0xd3, 0x28, 0x3c, 0xc6, 0xd8, 0x39, 0x10, 0x8f, 0xa7, 0xf7, 0x09, 0xc7, 0x3f, 0x27, 0xb0,
333 0x58, 0xaf, 0x07, 0xbf, 0xf0, 0x3d, 0x84, 0x27, 0x2d, 0x65, 0x96, 0xbc, 0x4b, 0xfb, 0x43, 0xdd,
334 0xd6, 0xb6, 0x43, 0xbc, 0x05, 0x5b, 0x73, 0xf8, 0x0e, 0x7e, 0x84, 0xfd, 0xcf, 0x64, 0xef, 0x08,
335 0x18, 0x57, 0xf6, 0x6f, 0x7f, 0xf8, 0xe4, 0x6f, 0x09, 0x86, 0xef, 0xe0, 0x29, 0x60, 0x3f, 0xdd,
336 0xb7, 0x6e, 0x5c, 0x8e, 0x07, 0xff, 0xd0, 0xeb, 0xdd, 0xfa, 0x8f, 0x82, 0x04, 0x1e, 0xf7, 0x6d,
337 0x84, 0xba, 0x4f, 0x97, 0xf5, 0x9b, 0xef, 0xaf, 0xaa, 0xda, 0x5e, 0x76, 0x79, 0x5c, 0x68, 0x79,
338 0xa4, 0x1b, 0x52, 0x85, 0x6e, 0xcb, 0x61, 0xa9, 0xff, 0xac, 0x77, 0x3e, 0x77, 0x5b, 0xfd, 0xee,
339 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x62, 0xd2, 0xd2, 0x82, 0xf2, 0x02, 0x00, 0x00,
hkouser24361d42020-12-14 19:21:47 +0530340}
341
342// Reference imports to suppress errors if they are not otherwise used.
343var _ context.Context
344var _ grpc.ClientConn
345
346// This is a compile-time assertion to ensure that this generated file
347// is compatible with the grpc package it is being compiled against.
348const _ = grpc.SupportPackageIsVersion4
349
350// BBsimDmiClient is the client API for BBsimDmi service.
351//
352// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
353type BBsimDmiClient interface {
354 // Ask the DMI Server to create an event
Elia Battistone8d1fa42022-04-01 10:47:37 +0200355 CreateEvent(ctx context.Context, in *DmiEvent, opts ...grpc.CallOption) (*DmiResponse, error)
356 GetTransceivers(ctx context.Context, in *DmiEmpty, opts ...grpc.CallOption) (*Transceivers, error)
357 // Plug out the transceiver by transceiverId
358 PlugOutTransceiver(ctx context.Context, in *TransceiverRequest, opts ...grpc.CallOption) (*DmiResponse, error)
359 // Plug in the transceiver of a PON by pon-port-ID
360 PlugInTransceiver(ctx context.Context, in *TransceiverRequest, opts ...grpc.CallOption) (*DmiResponse, error)
hkouser24361d42020-12-14 19:21:47 +0530361}
362
363type bBsimDmiClient struct {
364 cc *grpc.ClientConn
365}
366
367func NewBBsimDmiClient(cc *grpc.ClientConn) BBsimDmiClient {
368 return &bBsimDmiClient{cc}
369}
370
Elia Battistone8d1fa42022-04-01 10:47:37 +0200371func (c *bBsimDmiClient) CreateEvent(ctx context.Context, in *DmiEvent, opts ...grpc.CallOption) (*DmiResponse, error) {
372 out := new(DmiResponse)
hkouser24361d42020-12-14 19:21:47 +0530373 err := c.cc.Invoke(ctx, "/bbsim.BBsim_dmi/CreateEvent", in, out, opts...)
374 if err != nil {
375 return nil, err
376 }
377 return out, nil
378}
379
Elia Battistone8d1fa42022-04-01 10:47:37 +0200380func (c *bBsimDmiClient) GetTransceivers(ctx context.Context, in *DmiEmpty, opts ...grpc.CallOption) (*Transceivers, error) {
381 out := new(Transceivers)
382 err := c.cc.Invoke(ctx, "/bbsim.BBsim_dmi/GetTransceivers", in, out, opts...)
383 if err != nil {
384 return nil, err
385 }
386 return out, nil
387}
388
389func (c *bBsimDmiClient) PlugOutTransceiver(ctx context.Context, in *TransceiverRequest, opts ...grpc.CallOption) (*DmiResponse, error) {
390 out := new(DmiResponse)
391 err := c.cc.Invoke(ctx, "/bbsim.BBsim_dmi/PlugOutTransceiver", in, out, opts...)
392 if err != nil {
393 return nil, err
394 }
395 return out, nil
396}
397
398func (c *bBsimDmiClient) PlugInTransceiver(ctx context.Context, in *TransceiverRequest, opts ...grpc.CallOption) (*DmiResponse, error) {
399 out := new(DmiResponse)
400 err := c.cc.Invoke(ctx, "/bbsim.BBsim_dmi/PlugInTransceiver", in, out, opts...)
401 if err != nil {
402 return nil, err
403 }
404 return out, nil
405}
406
hkouser24361d42020-12-14 19:21:47 +0530407// BBsimDmiServer is the server API for BBsimDmi service.
408type BBsimDmiServer interface {
409 // Ask the DMI Server to create an event
Elia Battistone8d1fa42022-04-01 10:47:37 +0200410 CreateEvent(context.Context, *DmiEvent) (*DmiResponse, error)
411 GetTransceivers(context.Context, *DmiEmpty) (*Transceivers, error)
412 // Plug out the transceiver by transceiverId
413 PlugOutTransceiver(context.Context, *TransceiverRequest) (*DmiResponse, error)
414 // Plug in the transceiver of a PON by pon-port-ID
415 PlugInTransceiver(context.Context, *TransceiverRequest) (*DmiResponse, error)
hkouser24361d42020-12-14 19:21:47 +0530416}
417
418// UnimplementedBBsimDmiServer can be embedded to have forward compatible implementations.
419type UnimplementedBBsimDmiServer struct {
420}
421
Elia Battistone8d1fa42022-04-01 10:47:37 +0200422func (*UnimplementedBBsimDmiServer) CreateEvent(ctx context.Context, req *DmiEvent) (*DmiResponse, error) {
hkouser24361d42020-12-14 19:21:47 +0530423 return nil, status.Errorf(codes.Unimplemented, "method CreateEvent not implemented")
424}
Elia Battistone8d1fa42022-04-01 10:47:37 +0200425func (*UnimplementedBBsimDmiServer) GetTransceivers(ctx context.Context, req *DmiEmpty) (*Transceivers, error) {
426 return nil, status.Errorf(codes.Unimplemented, "method GetTransceivers not implemented")
427}
428func (*UnimplementedBBsimDmiServer) PlugOutTransceiver(ctx context.Context, req *TransceiverRequest) (*DmiResponse, error) {
429 return nil, status.Errorf(codes.Unimplemented, "method PlugOutTransceiver not implemented")
430}
431func (*UnimplementedBBsimDmiServer) PlugInTransceiver(ctx context.Context, req *TransceiverRequest) (*DmiResponse, error) {
432 return nil, status.Errorf(codes.Unimplemented, "method PlugInTransceiver not implemented")
433}
hkouser24361d42020-12-14 19:21:47 +0530434
435func RegisterBBsimDmiServer(s *grpc.Server, srv BBsimDmiServer) {
436 s.RegisterService(&_BBsimDmi_serviceDesc, srv)
437}
438
439func _BBsimDmi_CreateEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
440 in := new(DmiEvent)
441 if err := dec(in); err != nil {
442 return nil, err
443 }
444 if interceptor == nil {
445 return srv.(BBsimDmiServer).CreateEvent(ctx, in)
446 }
447 info := &grpc.UnaryServerInfo{
448 Server: srv,
449 FullMethod: "/bbsim.BBsim_dmi/CreateEvent",
450 }
451 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
452 return srv.(BBsimDmiServer).CreateEvent(ctx, req.(*DmiEvent))
453 }
454 return interceptor(ctx, in, info, handler)
455}
456
Elia Battistone8d1fa42022-04-01 10:47:37 +0200457func _BBsimDmi_GetTransceivers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
458 in := new(DmiEmpty)
459 if err := dec(in); err != nil {
460 return nil, err
461 }
462 if interceptor == nil {
463 return srv.(BBsimDmiServer).GetTransceivers(ctx, in)
464 }
465 info := &grpc.UnaryServerInfo{
466 Server: srv,
467 FullMethod: "/bbsim.BBsim_dmi/GetTransceivers",
468 }
469 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
470 return srv.(BBsimDmiServer).GetTransceivers(ctx, req.(*DmiEmpty))
471 }
472 return interceptor(ctx, in, info, handler)
473}
474
475func _BBsimDmi_PlugOutTransceiver_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
476 in := new(TransceiverRequest)
477 if err := dec(in); err != nil {
478 return nil, err
479 }
480 if interceptor == nil {
481 return srv.(BBsimDmiServer).PlugOutTransceiver(ctx, in)
482 }
483 info := &grpc.UnaryServerInfo{
484 Server: srv,
485 FullMethod: "/bbsim.BBsim_dmi/PlugOutTransceiver",
486 }
487 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
488 return srv.(BBsimDmiServer).PlugOutTransceiver(ctx, req.(*TransceiverRequest))
489 }
490 return interceptor(ctx, in, info, handler)
491}
492
493func _BBsimDmi_PlugInTransceiver_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
494 in := new(TransceiverRequest)
495 if err := dec(in); err != nil {
496 return nil, err
497 }
498 if interceptor == nil {
499 return srv.(BBsimDmiServer).PlugInTransceiver(ctx, in)
500 }
501 info := &grpc.UnaryServerInfo{
502 Server: srv,
503 FullMethod: "/bbsim.BBsim_dmi/PlugInTransceiver",
504 }
505 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
506 return srv.(BBsimDmiServer).PlugInTransceiver(ctx, req.(*TransceiverRequest))
507 }
508 return interceptor(ctx, in, info, handler)
509}
510
hkouser24361d42020-12-14 19:21:47 +0530511var _BBsimDmi_serviceDesc = grpc.ServiceDesc{
512 ServiceName: "bbsim.BBsim_dmi",
513 HandlerType: (*BBsimDmiServer)(nil),
514 Methods: []grpc.MethodDesc{
515 {
516 MethodName: "CreateEvent",
517 Handler: _BBsimDmi_CreateEvent_Handler,
518 },
Elia Battistone8d1fa42022-04-01 10:47:37 +0200519 {
520 MethodName: "GetTransceivers",
521 Handler: _BBsimDmi_GetTransceivers_Handler,
522 },
523 {
524 MethodName: "PlugOutTransceiver",
525 Handler: _BBsimDmi_PlugOutTransceiver_Handler,
526 },
527 {
528 MethodName: "PlugInTransceiver",
529 Handler: _BBsimDmi_PlugInTransceiver_Handler,
530 },
hkouser24361d42020-12-14 19:21:47 +0530531 },
532 Streams: []grpc.StreamDesc{},
533 Metadata: "api/bbsim/bbsim_dmi.proto",
534}