hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: api/bbsim/bbsim_dmi.proto |
| 3 | |
| 4 | package bbsim |
| 5 | |
| 6 | import ( |
| 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. |
| 17 | var _ = proto.Marshal |
| 18 | var _ = fmt.Errorf |
| 19 | var _ = 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. |
| 25 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 26 | |
| 27 | type 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 | |
| 34 | func (m *DmiEvent) Reset() { *m = DmiEvent{} } |
| 35 | func (m *DmiEvent) String() string { return proto.CompactTextString(m) } |
| 36 | func (*DmiEvent) ProtoMessage() {} |
| 37 | func (*DmiEvent) Descriptor() ([]byte, []int) { |
| 38 | return fileDescriptor_49e784b4938902cc, []int{0} |
| 39 | } |
| 40 | |
| 41 | func (m *DmiEvent) XXX_Unmarshal(b []byte) error { |
| 42 | return xxx_messageInfo_DmiEvent.Unmarshal(m, b) |
| 43 | } |
| 44 | func (m *DmiEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 45 | return xxx_messageInfo_DmiEvent.Marshal(b, m, deterministic) |
| 46 | } |
| 47 | func (m *DmiEvent) XXX_Merge(src proto.Message) { |
| 48 | xxx_messageInfo_DmiEvent.Merge(m, src) |
| 49 | } |
| 50 | func (m *DmiEvent) XXX_Size() int { |
| 51 | return xxx_messageInfo_DmiEvent.Size(m) |
| 52 | } |
| 53 | func (m *DmiEvent) XXX_DiscardUnknown() { |
| 54 | xxx_messageInfo_DmiEvent.DiscardUnknown(m) |
| 55 | } |
| 56 | |
| 57 | var xxx_messageInfo_DmiEvent proto.InternalMessageInfo |
| 58 | |
| 59 | func (m *DmiEvent) GetEventName() string { |
| 60 | if m != nil { |
| 61 | return m.EventName |
| 62 | } |
| 63 | return "" |
| 64 | } |
| 65 | |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 66 | type DmiResponse struct { |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 67 | 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 Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 74 | func (m *DmiResponse) Reset() { *m = DmiResponse{} } |
| 75 | func (m *DmiResponse) String() string { return proto.CompactTextString(m) } |
| 76 | func (*DmiResponse) ProtoMessage() {} |
| 77 | func (*DmiResponse) Descriptor() ([]byte, []int) { |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 78 | return fileDescriptor_49e784b4938902cc, []int{1} |
| 79 | } |
| 80 | |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 81 | func (m *DmiResponse) XXX_Unmarshal(b []byte) error { |
| 82 | return xxx_messageInfo_DmiResponse.Unmarshal(m, b) |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 83 | } |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 84 | func (m *DmiResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 85 | return xxx_messageInfo_DmiResponse.Marshal(b, m, deterministic) |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 86 | } |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 87 | func (m *DmiResponse) XXX_Merge(src proto.Message) { |
| 88 | xxx_messageInfo_DmiResponse.Merge(m, src) |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 89 | } |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 90 | func (m *DmiResponse) XXX_Size() int { |
| 91 | return xxx_messageInfo_DmiResponse.Size(m) |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 92 | } |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 93 | func (m *DmiResponse) XXX_DiscardUnknown() { |
| 94 | xxx_messageInfo_DmiResponse.DiscardUnknown(m) |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 95 | } |
| 96 | |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 97 | var xxx_messageInfo_DmiResponse proto.InternalMessageInfo |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 98 | |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 99 | func (m *DmiResponse) GetStatusCode() int32 { |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 100 | if m != nil { |
| 101 | return m.StatusCode |
| 102 | } |
| 103 | return 0 |
| 104 | } |
| 105 | |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 106 | func (m *DmiResponse) GetMessage() string { |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 107 | if m != nil { |
| 108 | return m.Message |
| 109 | } |
| 110 | return "" |
| 111 | } |
| 112 | |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 113 | type DmiEmpty struct { |
| 114 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 115 | XXX_unrecognized []byte `json:"-"` |
| 116 | XXX_sizecache int32 `json:"-"` |
| 117 | } |
| 118 | |
| 119 | func (m *DmiEmpty) Reset() { *m = DmiEmpty{} } |
| 120 | func (m *DmiEmpty) String() string { return proto.CompactTextString(m) } |
| 121 | func (*DmiEmpty) ProtoMessage() {} |
| 122 | func (*DmiEmpty) Descriptor() ([]byte, []int) { |
| 123 | return fileDescriptor_49e784b4938902cc, []int{2} |
| 124 | } |
| 125 | |
| 126 | func (m *DmiEmpty) XXX_Unmarshal(b []byte) error { |
| 127 | return xxx_messageInfo_DmiEmpty.Unmarshal(m, b) |
| 128 | } |
| 129 | func (m *DmiEmpty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 130 | return xxx_messageInfo_DmiEmpty.Marshal(b, m, deterministic) |
| 131 | } |
| 132 | func (m *DmiEmpty) XXX_Merge(src proto.Message) { |
| 133 | xxx_messageInfo_DmiEmpty.Merge(m, src) |
| 134 | } |
| 135 | func (m *DmiEmpty) XXX_Size() int { |
| 136 | return xxx_messageInfo_DmiEmpty.Size(m) |
| 137 | } |
| 138 | func (m *DmiEmpty) XXX_DiscardUnknown() { |
| 139 | xxx_messageInfo_DmiEmpty.DiscardUnknown(m) |
| 140 | } |
| 141 | |
| 142 | var xxx_messageInfo_DmiEmpty proto.InternalMessageInfo |
| 143 | |
| 144 | type 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 | |
| 151 | func (m *TransceiverRequest) Reset() { *m = TransceiverRequest{} } |
| 152 | func (m *TransceiverRequest) String() string { return proto.CompactTextString(m) } |
| 153 | func (*TransceiverRequest) ProtoMessage() {} |
| 154 | func (*TransceiverRequest) Descriptor() ([]byte, []int) { |
| 155 | return fileDescriptor_49e784b4938902cc, []int{3} |
| 156 | } |
| 157 | |
| 158 | func (m *TransceiverRequest) XXX_Unmarshal(b []byte) error { |
| 159 | return xxx_messageInfo_TransceiverRequest.Unmarshal(m, b) |
| 160 | } |
| 161 | func (m *TransceiverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 162 | return xxx_messageInfo_TransceiverRequest.Marshal(b, m, deterministic) |
| 163 | } |
| 164 | func (m *TransceiverRequest) XXX_Merge(src proto.Message) { |
| 165 | xxx_messageInfo_TransceiverRequest.Merge(m, src) |
| 166 | } |
| 167 | func (m *TransceiverRequest) XXX_Size() int { |
| 168 | return xxx_messageInfo_TransceiverRequest.Size(m) |
| 169 | } |
| 170 | func (m *TransceiverRequest) XXX_DiscardUnknown() { |
| 171 | xxx_messageInfo_TransceiverRequest.DiscardUnknown(m) |
| 172 | } |
| 173 | |
| 174 | var xxx_messageInfo_TransceiverRequest proto.InternalMessageInfo |
| 175 | |
| 176 | func (m *TransceiverRequest) GetTransceiverId() uint32 { |
| 177 | if m != nil { |
| 178 | return m.TransceiverId |
| 179 | } |
| 180 | return 0 |
| 181 | } |
| 182 | |
| 183 | type 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 | |
| 195 | func (m *Transceiver) Reset() { *m = Transceiver{} } |
| 196 | func (m *Transceiver) String() string { return proto.CompactTextString(m) } |
| 197 | func (*Transceiver) ProtoMessage() {} |
| 198 | func (*Transceiver) Descriptor() ([]byte, []int) { |
| 199 | return fileDescriptor_49e784b4938902cc, []int{4} |
| 200 | } |
| 201 | |
| 202 | func (m *Transceiver) XXX_Unmarshal(b []byte) error { |
| 203 | return xxx_messageInfo_Transceiver.Unmarshal(m, b) |
| 204 | } |
| 205 | func (m *Transceiver) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 206 | return xxx_messageInfo_Transceiver.Marshal(b, m, deterministic) |
| 207 | } |
| 208 | func (m *Transceiver) XXX_Merge(src proto.Message) { |
| 209 | xxx_messageInfo_Transceiver.Merge(m, src) |
| 210 | } |
| 211 | func (m *Transceiver) XXX_Size() int { |
| 212 | return xxx_messageInfo_Transceiver.Size(m) |
| 213 | } |
| 214 | func (m *Transceiver) XXX_DiscardUnknown() { |
| 215 | xxx_messageInfo_Transceiver.DiscardUnknown(m) |
| 216 | } |
| 217 | |
| 218 | var xxx_messageInfo_Transceiver proto.InternalMessageInfo |
| 219 | |
| 220 | func (m *Transceiver) GetID() uint32 { |
| 221 | if m != nil { |
| 222 | return m.ID |
| 223 | } |
| 224 | return 0 |
| 225 | } |
| 226 | |
| 227 | func (m *Transceiver) GetUUID() string { |
| 228 | if m != nil { |
| 229 | return m.UUID |
| 230 | } |
| 231 | return "" |
| 232 | } |
| 233 | |
| 234 | func (m *Transceiver) GetName() string { |
| 235 | if m != nil { |
| 236 | return m.Name |
| 237 | } |
| 238 | return "" |
| 239 | } |
| 240 | |
| 241 | func (m *Transceiver) GetTechnology() string { |
| 242 | if m != nil { |
| 243 | return m.Technology |
| 244 | } |
| 245 | return "" |
| 246 | } |
| 247 | |
| 248 | func (m *Transceiver) GetPluggedIn() bool { |
| 249 | if m != nil { |
| 250 | return m.PluggedIn |
| 251 | } |
| 252 | return false |
| 253 | } |
| 254 | |
| 255 | func (m *Transceiver) GetPonIds() []uint32 { |
| 256 | if m != nil { |
| 257 | return m.PonIds |
| 258 | } |
| 259 | return nil |
| 260 | } |
| 261 | |
| 262 | type 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 | |
| 269 | func (m *Transceivers) Reset() { *m = Transceivers{} } |
| 270 | func (m *Transceivers) String() string { return proto.CompactTextString(m) } |
| 271 | func (*Transceivers) ProtoMessage() {} |
| 272 | func (*Transceivers) Descriptor() ([]byte, []int) { |
| 273 | return fileDescriptor_49e784b4938902cc, []int{5} |
| 274 | } |
| 275 | |
| 276 | func (m *Transceivers) XXX_Unmarshal(b []byte) error { |
| 277 | return xxx_messageInfo_Transceivers.Unmarshal(m, b) |
| 278 | } |
| 279 | func (m *Transceivers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 280 | return xxx_messageInfo_Transceivers.Marshal(b, m, deterministic) |
| 281 | } |
| 282 | func (m *Transceivers) XXX_Merge(src proto.Message) { |
| 283 | xxx_messageInfo_Transceivers.Merge(m, src) |
| 284 | } |
| 285 | func (m *Transceivers) XXX_Size() int { |
| 286 | return xxx_messageInfo_Transceivers.Size(m) |
| 287 | } |
| 288 | func (m *Transceivers) XXX_DiscardUnknown() { |
| 289 | xxx_messageInfo_Transceivers.DiscardUnknown(m) |
| 290 | } |
| 291 | |
| 292 | var xxx_messageInfo_Transceivers proto.InternalMessageInfo |
| 293 | |
| 294 | func (m *Transceivers) GetItems() []*Transceiver { |
| 295 | if m != nil { |
| 296 | return m.Items |
| 297 | } |
| 298 | return nil |
| 299 | } |
| 300 | |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 301 | func init() { |
| 302 | proto.RegisterType((*DmiEvent)(nil), "bbsim.DmiEvent") |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 303 | 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") |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 308 | } |
| 309 | |
| 310 | func init() { proto.RegisterFile("api/bbsim/bbsim_dmi.proto", fileDescriptor_49e784b4938902cc) } |
| 311 | |
| 312 | var fileDescriptor_49e784b4938902cc = []byte{ |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 313 | // 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, |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 340 | } |
| 341 | |
| 342 | // Reference imports to suppress errors if they are not otherwise used. |
| 343 | var _ context.Context |
| 344 | var _ 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. |
| 348 | const _ = 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. |
| 353 | type BBsimDmiClient interface { |
| 354 | // Ask the DMI Server to create an event |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 355 | 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) |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 361 | } |
| 362 | |
| 363 | type bBsimDmiClient struct { |
| 364 | cc *grpc.ClientConn |
| 365 | } |
| 366 | |
| 367 | func NewBBsimDmiClient(cc *grpc.ClientConn) BBsimDmiClient { |
| 368 | return &bBsimDmiClient{cc} |
| 369 | } |
| 370 | |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 371 | func (c *bBsimDmiClient) CreateEvent(ctx context.Context, in *DmiEvent, opts ...grpc.CallOption) (*DmiResponse, error) { |
| 372 | out := new(DmiResponse) |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 373 | 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 Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 380 | func (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 | |
| 389 | func (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 | |
| 398 | func (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 | |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 407 | // BBsimDmiServer is the server API for BBsimDmi service. |
| 408 | type BBsimDmiServer interface { |
| 409 | // Ask the DMI Server to create an event |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 410 | 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) |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 416 | } |
| 417 | |
| 418 | // UnimplementedBBsimDmiServer can be embedded to have forward compatible implementations. |
| 419 | type UnimplementedBBsimDmiServer struct { |
| 420 | } |
| 421 | |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 422 | func (*UnimplementedBBsimDmiServer) CreateEvent(ctx context.Context, req *DmiEvent) (*DmiResponse, error) { |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 423 | return nil, status.Errorf(codes.Unimplemented, "method CreateEvent not implemented") |
| 424 | } |
Elia Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 425 | func (*UnimplementedBBsimDmiServer) GetTransceivers(ctx context.Context, req *DmiEmpty) (*Transceivers, error) { |
| 426 | return nil, status.Errorf(codes.Unimplemented, "method GetTransceivers not implemented") |
| 427 | } |
| 428 | func (*UnimplementedBBsimDmiServer) PlugOutTransceiver(ctx context.Context, req *TransceiverRequest) (*DmiResponse, error) { |
| 429 | return nil, status.Errorf(codes.Unimplemented, "method PlugOutTransceiver not implemented") |
| 430 | } |
| 431 | func (*UnimplementedBBsimDmiServer) PlugInTransceiver(ctx context.Context, req *TransceiverRequest) (*DmiResponse, error) { |
| 432 | return nil, status.Errorf(codes.Unimplemented, "method PlugInTransceiver not implemented") |
| 433 | } |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 434 | |
| 435 | func RegisterBBsimDmiServer(s *grpc.Server, srv BBsimDmiServer) { |
| 436 | s.RegisterService(&_BBsimDmi_serviceDesc, srv) |
| 437 | } |
| 438 | |
| 439 | func _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 Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 457 | func _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 | |
| 475 | func _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 | |
| 493 | func _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 | |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 511 | var _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 Battiston | e8d1fa4 | 2022-04-01 10:47:37 +0200 | [diff] [blame] | 519 | { |
| 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 | }, |
hkouser | 24361d4 | 2020-12-14 19:21:47 +0530 | [diff] [blame] | 531 | }, |
| 532 | Streams: []grpc.StreamDesc{}, |
| 533 | Metadata: "api/bbsim/bbsim_dmi.proto", |
| 534 | } |