amit.ghosh | 9f6af0e | 2020-11-04 14:09:25 +0100 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: voltha_protos/extensions.proto |
| 3 | |
| 4 | package extension |
| 5 | |
| 6 | import ( |
| 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | proto "github.com/golang/protobuf/proto" |
| 10 | config "github.com/opencord/voltha-protos/v4/go/ext/config" |
| 11 | grpc "google.golang.org/grpc" |
| 12 | math "math" |
| 13 | ) |
| 14 | |
| 15 | // Reference imports to suppress errors if they are not otherwise used. |
| 16 | var _ = proto.Marshal |
| 17 | var _ = fmt.Errorf |
| 18 | var _ = math.Inf |
| 19 | |
| 20 | // This is a compile-time assertion to ensure that this generated file |
| 21 | // is compatible with the proto package it is being compiled against. |
| 22 | // A compilation error at this line likely means your copy of the |
| 23 | // proto package needs to be updated. |
| 24 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 25 | |
| 26 | // AlarmConfig from public import voltha_protos/ext_config.proto |
| 27 | type AlarmConfig = config.AlarmConfig |
| 28 | type AlarmConfig_OnuItuPonAlarmConfig = config.AlarmConfig_OnuItuPonAlarmConfig |
| 29 | |
| 30 | // OnuItuPonAlarm from public import voltha_protos/ext_config.proto |
| 31 | type OnuItuPonAlarm = config.OnuItuPonAlarm |
| 32 | type OnuItuPonAlarm_RateThresholdConfig_ = config.OnuItuPonAlarm_RateThresholdConfig_ |
| 33 | type OnuItuPonAlarm_RateRangeConfig_ = config.OnuItuPonAlarm_RateRangeConfig_ |
| 34 | type OnuItuPonAlarm_ValueThresholdConfig_ = config.OnuItuPonAlarm_ValueThresholdConfig_ |
| 35 | |
| 36 | // OnuItuPonAlarm_SoakTime from public import voltha_protos/ext_config.proto |
| 37 | type OnuItuPonAlarm_SoakTime = config.OnuItuPonAlarm_SoakTime |
| 38 | |
| 39 | // OnuItuPonAlarm_RateThresholdConfig from public import voltha_protos/ext_config.proto |
| 40 | type OnuItuPonAlarm_RateThresholdConfig = config.OnuItuPonAlarm_RateThresholdConfig |
| 41 | |
| 42 | // OnuItuPonAlarm_RateRangeConfig from public import voltha_protos/ext_config.proto |
| 43 | type OnuItuPonAlarm_RateRangeConfig = config.OnuItuPonAlarm_RateRangeConfig |
| 44 | |
| 45 | // OnuItuPonAlarm_ValueThresholdConfig from public import voltha_protos/ext_config.proto |
| 46 | type OnuItuPonAlarm_ValueThresholdConfig = config.OnuItuPonAlarm_ValueThresholdConfig |
| 47 | |
| 48 | // OnuItuPonAlarm_AlarmID from public import voltha_protos/ext_config.proto |
| 49 | type OnuItuPonAlarm_AlarmID = config.OnuItuPonAlarm_AlarmID |
| 50 | |
| 51 | var OnuItuPonAlarm_AlarmID_name = config.OnuItuPonAlarm_AlarmID_name |
| 52 | var OnuItuPonAlarm_AlarmID_value = config.OnuItuPonAlarm_AlarmID_value |
| 53 | |
| 54 | const OnuItuPonAlarm_RDI_ERRORS = OnuItuPonAlarm_AlarmID(config.OnuItuPonAlarm_RDI_ERRORS) |
| 55 | |
| 56 | // OnuItuPonAlarm_AlarmReportingCondition from public import voltha_protos/ext_config.proto |
| 57 | type OnuItuPonAlarm_AlarmReportingCondition = config.OnuItuPonAlarm_AlarmReportingCondition |
| 58 | |
| 59 | var OnuItuPonAlarm_AlarmReportingCondition_name = config.OnuItuPonAlarm_AlarmReportingCondition_name |
| 60 | var OnuItuPonAlarm_AlarmReportingCondition_value = config.OnuItuPonAlarm_AlarmReportingCondition_value |
| 61 | |
| 62 | const OnuItuPonAlarm_RATE_THRESHOLD = OnuItuPonAlarm_AlarmReportingCondition(config.OnuItuPonAlarm_RATE_THRESHOLD) |
| 63 | const OnuItuPonAlarm_RATE_RANGE = OnuItuPonAlarm_AlarmReportingCondition(config.OnuItuPonAlarm_RATE_RANGE) |
| 64 | const OnuItuPonAlarm_VALUE_THRESHOLD = OnuItuPonAlarm_AlarmReportingCondition(config.OnuItuPonAlarm_VALUE_THRESHOLD) |
| 65 | |
| 66 | type GetOnuUniInfoResponse_ConfigurationInd int32 |
| 67 | |
| 68 | const ( |
| 69 | GetOnuUniInfoResponse_UNKOWN GetOnuUniInfoResponse_ConfigurationInd = 0 |
| 70 | GetOnuUniInfoResponse_TEN_BASE_T_FDX GetOnuUniInfoResponse_ConfigurationInd = 1 |
| 71 | GetOnuUniInfoResponse_HUNDRED_BASE_T_FDX GetOnuUniInfoResponse_ConfigurationInd = 2 |
| 72 | GetOnuUniInfoResponse_GIGABIT_ETHERNET_FDX GetOnuUniInfoResponse_ConfigurationInd = 3 |
| 73 | GetOnuUniInfoResponse_TEN_G_ETHERNET_FDX GetOnuUniInfoResponse_ConfigurationInd = 4 |
| 74 | GetOnuUniInfoResponse_TEN_BASE_T_HDX GetOnuUniInfoResponse_ConfigurationInd = 5 |
| 75 | GetOnuUniInfoResponse_HUNDRED_BASE_T_HDX GetOnuUniInfoResponse_ConfigurationInd = 6 |
| 76 | GetOnuUniInfoResponse_GIGABIT_ETHERNET_HDX GetOnuUniInfoResponse_ConfigurationInd = 7 |
| 77 | ) |
| 78 | |
| 79 | var GetOnuUniInfoResponse_ConfigurationInd_name = map[int32]string{ |
| 80 | 0: "UNKOWN", |
| 81 | 1: "TEN_BASE_T_FDX", |
| 82 | 2: "HUNDRED_BASE_T_FDX", |
| 83 | 3: "GIGABIT_ETHERNET_FDX", |
| 84 | 4: "TEN_G_ETHERNET_FDX", |
| 85 | 5: "TEN_BASE_T_HDX", |
| 86 | 6: "HUNDRED_BASE_T_HDX", |
| 87 | 7: "GIGABIT_ETHERNET_HDX", |
| 88 | } |
| 89 | |
| 90 | var GetOnuUniInfoResponse_ConfigurationInd_value = map[string]int32{ |
| 91 | "UNKOWN": 0, |
| 92 | "TEN_BASE_T_FDX": 1, |
| 93 | "HUNDRED_BASE_T_FDX": 2, |
| 94 | "GIGABIT_ETHERNET_FDX": 3, |
| 95 | "TEN_G_ETHERNET_FDX": 4, |
| 96 | "TEN_BASE_T_HDX": 5, |
| 97 | "HUNDRED_BASE_T_HDX": 6, |
| 98 | "GIGABIT_ETHERNET_HDX": 7, |
| 99 | } |
| 100 | |
| 101 | func (x GetOnuUniInfoResponse_ConfigurationInd) String() string { |
| 102 | return proto.EnumName(GetOnuUniInfoResponse_ConfigurationInd_name, int32(x)) |
| 103 | } |
| 104 | |
| 105 | func (GetOnuUniInfoResponse_ConfigurationInd) EnumDescriptor() ([]byte, []int) { |
| 106 | return fileDescriptor_7ecf6e9799a9202d, []int{3, 0} |
| 107 | } |
| 108 | |
| 109 | type GetOnuUniInfoResponse_AdministrativeState int32 |
| 110 | |
| 111 | const ( |
| 112 | GetOnuUniInfoResponse_ADMSTATE_UNDEFINED GetOnuUniInfoResponse_AdministrativeState = 0 |
| 113 | GetOnuUniInfoResponse_LOCKED GetOnuUniInfoResponse_AdministrativeState = 1 |
| 114 | GetOnuUniInfoResponse_UNLOCKED GetOnuUniInfoResponse_AdministrativeState = 2 |
| 115 | ) |
| 116 | |
| 117 | var GetOnuUniInfoResponse_AdministrativeState_name = map[int32]string{ |
| 118 | 0: "ADMSTATE_UNDEFINED", |
| 119 | 1: "LOCKED", |
| 120 | 2: "UNLOCKED", |
| 121 | } |
| 122 | |
| 123 | var GetOnuUniInfoResponse_AdministrativeState_value = map[string]int32{ |
| 124 | "ADMSTATE_UNDEFINED": 0, |
| 125 | "LOCKED": 1, |
| 126 | "UNLOCKED": 2, |
| 127 | } |
| 128 | |
| 129 | func (x GetOnuUniInfoResponse_AdministrativeState) String() string { |
| 130 | return proto.EnumName(GetOnuUniInfoResponse_AdministrativeState_name, int32(x)) |
| 131 | } |
| 132 | |
| 133 | func (GetOnuUniInfoResponse_AdministrativeState) EnumDescriptor() ([]byte, []int) { |
| 134 | return fileDescriptor_7ecf6e9799a9202d, []int{3, 1} |
| 135 | } |
| 136 | |
| 137 | type GetOnuUniInfoResponse_OperationalState int32 |
| 138 | |
| 139 | const ( |
| 140 | GetOnuUniInfoResponse_OPERSTATE_UNDEFINED GetOnuUniInfoResponse_OperationalState = 0 |
| 141 | GetOnuUniInfoResponse_ENABLED GetOnuUniInfoResponse_OperationalState = 1 |
| 142 | GetOnuUniInfoResponse_DISABLED GetOnuUniInfoResponse_OperationalState = 2 |
| 143 | ) |
| 144 | |
| 145 | var GetOnuUniInfoResponse_OperationalState_name = map[int32]string{ |
| 146 | 0: "OPERSTATE_UNDEFINED", |
| 147 | 1: "ENABLED", |
| 148 | 2: "DISABLED", |
| 149 | } |
| 150 | |
| 151 | var GetOnuUniInfoResponse_OperationalState_value = map[string]int32{ |
| 152 | "OPERSTATE_UNDEFINED": 0, |
| 153 | "ENABLED": 1, |
| 154 | "DISABLED": 2, |
| 155 | } |
| 156 | |
| 157 | func (x GetOnuUniInfoResponse_OperationalState) String() string { |
| 158 | return proto.EnumName(GetOnuUniInfoResponse_OperationalState_name, int32(x)) |
| 159 | } |
| 160 | |
| 161 | func (GetOnuUniInfoResponse_OperationalState) EnumDescriptor() ([]byte, []int) { |
| 162 | return fileDescriptor_7ecf6e9799a9202d, []int{3, 2} |
| 163 | } |
| 164 | |
| 165 | type GetValueResponse_Status int32 |
| 166 | |
| 167 | const ( |
| 168 | GetValueResponse_STATUS_UNDEFINED GetValueResponse_Status = 0 |
| 169 | GetValueResponse_OK GetValueResponse_Status = 1 |
| 170 | GetValueResponse_ERROR GetValueResponse_Status = 2 |
| 171 | ) |
| 172 | |
| 173 | var GetValueResponse_Status_name = map[int32]string{ |
| 174 | 0: "STATUS_UNDEFINED", |
| 175 | 1: "OK", |
| 176 | 2: "ERROR", |
| 177 | } |
| 178 | |
| 179 | var GetValueResponse_Status_value = map[string]int32{ |
| 180 | "STATUS_UNDEFINED": 0, |
| 181 | "OK": 1, |
| 182 | "ERROR": 2, |
| 183 | } |
| 184 | |
| 185 | func (x GetValueResponse_Status) String() string { |
| 186 | return proto.EnumName(GetValueResponse_Status_name, int32(x)) |
| 187 | } |
| 188 | |
| 189 | func (GetValueResponse_Status) EnumDescriptor() ([]byte, []int) { |
| 190 | return fileDescriptor_7ecf6e9799a9202d, []int{5, 0} |
| 191 | } |
| 192 | |
| 193 | type GetValueResponse_ErrorReason int32 |
| 194 | |
| 195 | const ( |
| 196 | GetValueResponse_REASON_UNDEFINED GetValueResponse_ErrorReason = 0 |
| 197 | GetValueResponse_UNSUPPORTED GetValueResponse_ErrorReason = 1 |
| 198 | ) |
| 199 | |
| 200 | var GetValueResponse_ErrorReason_name = map[int32]string{ |
| 201 | 0: "REASON_UNDEFINED", |
| 202 | 1: "UNSUPPORTED", |
| 203 | } |
| 204 | |
| 205 | var GetValueResponse_ErrorReason_value = map[string]int32{ |
| 206 | "REASON_UNDEFINED": 0, |
| 207 | "UNSUPPORTED": 1, |
| 208 | } |
| 209 | |
| 210 | func (x GetValueResponse_ErrorReason) String() string { |
| 211 | return proto.EnumName(GetValueResponse_ErrorReason_name, int32(x)) |
| 212 | } |
| 213 | |
| 214 | func (GetValueResponse_ErrorReason) EnumDescriptor() ([]byte, []int) { |
| 215 | return fileDescriptor_7ecf6e9799a9202d, []int{5, 1} |
| 216 | } |
| 217 | |
| 218 | type SetValueResponse_Status int32 |
| 219 | |
| 220 | const ( |
| 221 | SetValueResponse_STATUS_UNDEFINED SetValueResponse_Status = 0 |
| 222 | SetValueResponse_OK SetValueResponse_Status = 1 |
| 223 | SetValueResponse_ERROR SetValueResponse_Status = 2 |
| 224 | ) |
| 225 | |
| 226 | var SetValueResponse_Status_name = map[int32]string{ |
| 227 | 0: "STATUS_UNDEFINED", |
| 228 | 1: "OK", |
| 229 | 2: "ERROR", |
| 230 | } |
| 231 | |
| 232 | var SetValueResponse_Status_value = map[string]int32{ |
| 233 | "STATUS_UNDEFINED": 0, |
| 234 | "OK": 1, |
| 235 | "ERROR": 2, |
| 236 | } |
| 237 | |
| 238 | func (x SetValueResponse_Status) String() string { |
| 239 | return proto.EnumName(SetValueResponse_Status_name, int32(x)) |
| 240 | } |
| 241 | |
| 242 | func (SetValueResponse_Status) EnumDescriptor() ([]byte, []int) { |
| 243 | return fileDescriptor_7ecf6e9799a9202d, []int{7, 0} |
| 244 | } |
| 245 | |
| 246 | type SetValueResponse_ErrorReason int32 |
| 247 | |
| 248 | const ( |
| 249 | SetValueResponse_REASON_UNDEFINED SetValueResponse_ErrorReason = 0 |
| 250 | SetValueResponse_UNSUPPORTED SetValueResponse_ErrorReason = 1 |
| 251 | ) |
| 252 | |
| 253 | var SetValueResponse_ErrorReason_name = map[int32]string{ |
| 254 | 0: "REASON_UNDEFINED", |
| 255 | 1: "UNSUPPORTED", |
| 256 | } |
| 257 | |
| 258 | var SetValueResponse_ErrorReason_value = map[string]int32{ |
| 259 | "REASON_UNDEFINED": 0, |
| 260 | "UNSUPPORTED": 1, |
| 261 | } |
| 262 | |
| 263 | func (x SetValueResponse_ErrorReason) String() string { |
| 264 | return proto.EnumName(SetValueResponse_ErrorReason_name, int32(x)) |
| 265 | } |
| 266 | |
| 267 | func (SetValueResponse_ErrorReason) EnumDescriptor() ([]byte, []int) { |
| 268 | return fileDescriptor_7ecf6e9799a9202d, []int{7, 1} |
| 269 | } |
| 270 | |
| 271 | type GetDistanceRequest struct { |
| 272 | OnuDeviceId string `protobuf:"bytes,1,opt,name=onuDeviceId,proto3" json:"onuDeviceId,omitempty"` |
| 273 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 274 | XXX_unrecognized []byte `json:"-"` |
| 275 | XXX_sizecache int32 `json:"-"` |
| 276 | } |
| 277 | |
| 278 | func (m *GetDistanceRequest) Reset() { *m = GetDistanceRequest{} } |
| 279 | func (m *GetDistanceRequest) String() string { return proto.CompactTextString(m) } |
| 280 | func (*GetDistanceRequest) ProtoMessage() {} |
| 281 | func (*GetDistanceRequest) Descriptor() ([]byte, []int) { |
| 282 | return fileDescriptor_7ecf6e9799a9202d, []int{0} |
| 283 | } |
| 284 | |
| 285 | func (m *GetDistanceRequest) XXX_Unmarshal(b []byte) error { |
| 286 | return xxx_messageInfo_GetDistanceRequest.Unmarshal(m, b) |
| 287 | } |
| 288 | func (m *GetDistanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 289 | return xxx_messageInfo_GetDistanceRequest.Marshal(b, m, deterministic) |
| 290 | } |
| 291 | func (m *GetDistanceRequest) XXX_Merge(src proto.Message) { |
| 292 | xxx_messageInfo_GetDistanceRequest.Merge(m, src) |
| 293 | } |
| 294 | func (m *GetDistanceRequest) XXX_Size() int { |
| 295 | return xxx_messageInfo_GetDistanceRequest.Size(m) |
| 296 | } |
| 297 | func (m *GetDistanceRequest) XXX_DiscardUnknown() { |
| 298 | xxx_messageInfo_GetDistanceRequest.DiscardUnknown(m) |
| 299 | } |
| 300 | |
| 301 | var xxx_messageInfo_GetDistanceRequest proto.InternalMessageInfo |
| 302 | |
| 303 | func (m *GetDistanceRequest) GetOnuDeviceId() string { |
| 304 | if m != nil { |
| 305 | return m.OnuDeviceId |
| 306 | } |
| 307 | return "" |
| 308 | } |
| 309 | |
| 310 | type GetDistanceResponse struct { |
| 311 | Distance uint32 `protobuf:"varint,1,opt,name=distance,proto3" json:"distance,omitempty"` |
| 312 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 313 | XXX_unrecognized []byte `json:"-"` |
| 314 | XXX_sizecache int32 `json:"-"` |
| 315 | } |
| 316 | |
| 317 | func (m *GetDistanceResponse) Reset() { *m = GetDistanceResponse{} } |
| 318 | func (m *GetDistanceResponse) String() string { return proto.CompactTextString(m) } |
| 319 | func (*GetDistanceResponse) ProtoMessage() {} |
| 320 | func (*GetDistanceResponse) Descriptor() ([]byte, []int) { |
| 321 | return fileDescriptor_7ecf6e9799a9202d, []int{1} |
| 322 | } |
| 323 | |
| 324 | func (m *GetDistanceResponse) XXX_Unmarshal(b []byte) error { |
| 325 | return xxx_messageInfo_GetDistanceResponse.Unmarshal(m, b) |
| 326 | } |
| 327 | func (m *GetDistanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 328 | return xxx_messageInfo_GetDistanceResponse.Marshal(b, m, deterministic) |
| 329 | } |
| 330 | func (m *GetDistanceResponse) XXX_Merge(src proto.Message) { |
| 331 | xxx_messageInfo_GetDistanceResponse.Merge(m, src) |
| 332 | } |
| 333 | func (m *GetDistanceResponse) XXX_Size() int { |
| 334 | return xxx_messageInfo_GetDistanceResponse.Size(m) |
| 335 | } |
| 336 | func (m *GetDistanceResponse) XXX_DiscardUnknown() { |
| 337 | xxx_messageInfo_GetDistanceResponse.DiscardUnknown(m) |
| 338 | } |
| 339 | |
| 340 | var xxx_messageInfo_GetDistanceResponse proto.InternalMessageInfo |
| 341 | |
| 342 | func (m *GetDistanceResponse) GetDistance() uint32 { |
| 343 | if m != nil { |
| 344 | return m.Distance |
| 345 | } |
| 346 | return 0 |
| 347 | } |
| 348 | |
| 349 | type GetOnuUniInfoRequest struct { |
| 350 | UniIndex uint32 `protobuf:"varint,1,opt,name=uniIndex,proto3" json:"uniIndex,omitempty"` |
| 351 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 352 | XXX_unrecognized []byte `json:"-"` |
| 353 | XXX_sizecache int32 `json:"-"` |
| 354 | } |
| 355 | |
| 356 | func (m *GetOnuUniInfoRequest) Reset() { *m = GetOnuUniInfoRequest{} } |
| 357 | func (m *GetOnuUniInfoRequest) String() string { return proto.CompactTextString(m) } |
| 358 | func (*GetOnuUniInfoRequest) ProtoMessage() {} |
| 359 | func (*GetOnuUniInfoRequest) Descriptor() ([]byte, []int) { |
| 360 | return fileDescriptor_7ecf6e9799a9202d, []int{2} |
| 361 | } |
| 362 | |
| 363 | func (m *GetOnuUniInfoRequest) XXX_Unmarshal(b []byte) error { |
| 364 | return xxx_messageInfo_GetOnuUniInfoRequest.Unmarshal(m, b) |
| 365 | } |
| 366 | func (m *GetOnuUniInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 367 | return xxx_messageInfo_GetOnuUniInfoRequest.Marshal(b, m, deterministic) |
| 368 | } |
| 369 | func (m *GetOnuUniInfoRequest) XXX_Merge(src proto.Message) { |
| 370 | xxx_messageInfo_GetOnuUniInfoRequest.Merge(m, src) |
| 371 | } |
| 372 | func (m *GetOnuUniInfoRequest) XXX_Size() int { |
| 373 | return xxx_messageInfo_GetOnuUniInfoRequest.Size(m) |
| 374 | } |
| 375 | func (m *GetOnuUniInfoRequest) XXX_DiscardUnknown() { |
| 376 | xxx_messageInfo_GetOnuUniInfoRequest.DiscardUnknown(m) |
| 377 | } |
| 378 | |
| 379 | var xxx_messageInfo_GetOnuUniInfoRequest proto.InternalMessageInfo |
| 380 | |
| 381 | func (m *GetOnuUniInfoRequest) GetUniIndex() uint32 { |
| 382 | if m != nil { |
| 383 | return m.UniIndex |
| 384 | } |
| 385 | return 0 |
| 386 | } |
| 387 | |
| 388 | type GetOnuUniInfoResponse struct { |
| 389 | AdmState GetOnuUniInfoResponse_AdministrativeState `protobuf:"varint,1,opt,name=admState,proto3,enum=extension.GetOnuUniInfoResponse_AdministrativeState" json:"admState,omitempty"` |
| 390 | OperState GetOnuUniInfoResponse_OperationalState `protobuf:"varint,2,opt,name=operState,proto3,enum=extension.GetOnuUniInfoResponse_OperationalState" json:"operState,omitempty"` |
| 391 | ConfigInd GetOnuUniInfoResponse_ConfigurationInd `protobuf:"varint,3,opt,name=configInd,proto3,enum=extension.GetOnuUniInfoResponse_ConfigurationInd" json:"configInd,omitempty"` |
| 392 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 393 | XXX_unrecognized []byte `json:"-"` |
| 394 | XXX_sizecache int32 `json:"-"` |
| 395 | } |
| 396 | |
| 397 | func (m *GetOnuUniInfoResponse) Reset() { *m = GetOnuUniInfoResponse{} } |
| 398 | func (m *GetOnuUniInfoResponse) String() string { return proto.CompactTextString(m) } |
| 399 | func (*GetOnuUniInfoResponse) ProtoMessage() {} |
| 400 | func (*GetOnuUniInfoResponse) Descriptor() ([]byte, []int) { |
| 401 | return fileDescriptor_7ecf6e9799a9202d, []int{3} |
| 402 | } |
| 403 | |
| 404 | func (m *GetOnuUniInfoResponse) XXX_Unmarshal(b []byte) error { |
| 405 | return xxx_messageInfo_GetOnuUniInfoResponse.Unmarshal(m, b) |
| 406 | } |
| 407 | func (m *GetOnuUniInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 408 | return xxx_messageInfo_GetOnuUniInfoResponse.Marshal(b, m, deterministic) |
| 409 | } |
| 410 | func (m *GetOnuUniInfoResponse) XXX_Merge(src proto.Message) { |
| 411 | xxx_messageInfo_GetOnuUniInfoResponse.Merge(m, src) |
| 412 | } |
| 413 | func (m *GetOnuUniInfoResponse) XXX_Size() int { |
| 414 | return xxx_messageInfo_GetOnuUniInfoResponse.Size(m) |
| 415 | } |
| 416 | func (m *GetOnuUniInfoResponse) XXX_DiscardUnknown() { |
| 417 | xxx_messageInfo_GetOnuUniInfoResponse.DiscardUnknown(m) |
| 418 | } |
| 419 | |
| 420 | var xxx_messageInfo_GetOnuUniInfoResponse proto.InternalMessageInfo |
| 421 | |
| 422 | func (m *GetOnuUniInfoResponse) GetAdmState() GetOnuUniInfoResponse_AdministrativeState { |
| 423 | if m != nil { |
| 424 | return m.AdmState |
| 425 | } |
| 426 | return GetOnuUniInfoResponse_ADMSTATE_UNDEFINED |
| 427 | } |
| 428 | |
| 429 | func (m *GetOnuUniInfoResponse) GetOperState() GetOnuUniInfoResponse_OperationalState { |
| 430 | if m != nil { |
| 431 | return m.OperState |
| 432 | } |
| 433 | return GetOnuUniInfoResponse_OPERSTATE_UNDEFINED |
| 434 | } |
| 435 | |
| 436 | func (m *GetOnuUniInfoResponse) GetConfigInd() GetOnuUniInfoResponse_ConfigurationInd { |
| 437 | if m != nil { |
| 438 | return m.ConfigInd |
| 439 | } |
| 440 | return GetOnuUniInfoResponse_UNKOWN |
| 441 | } |
| 442 | |
| 443 | type GetValueRequest struct { |
| 444 | // Types that are valid to be assigned to Request: |
| 445 | // *GetValueRequest_Distance |
| 446 | // *GetValueRequest_UniInfo |
| 447 | Request isGetValueRequest_Request `protobuf_oneof:"request"` |
| 448 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 449 | XXX_unrecognized []byte `json:"-"` |
| 450 | XXX_sizecache int32 `json:"-"` |
| 451 | } |
| 452 | |
| 453 | func (m *GetValueRequest) Reset() { *m = GetValueRequest{} } |
| 454 | func (m *GetValueRequest) String() string { return proto.CompactTextString(m) } |
| 455 | func (*GetValueRequest) ProtoMessage() {} |
| 456 | func (*GetValueRequest) Descriptor() ([]byte, []int) { |
| 457 | return fileDescriptor_7ecf6e9799a9202d, []int{4} |
| 458 | } |
| 459 | |
| 460 | func (m *GetValueRequest) XXX_Unmarshal(b []byte) error { |
| 461 | return xxx_messageInfo_GetValueRequest.Unmarshal(m, b) |
| 462 | } |
| 463 | func (m *GetValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 464 | return xxx_messageInfo_GetValueRequest.Marshal(b, m, deterministic) |
| 465 | } |
| 466 | func (m *GetValueRequest) XXX_Merge(src proto.Message) { |
| 467 | xxx_messageInfo_GetValueRequest.Merge(m, src) |
| 468 | } |
| 469 | func (m *GetValueRequest) XXX_Size() int { |
| 470 | return xxx_messageInfo_GetValueRequest.Size(m) |
| 471 | } |
| 472 | func (m *GetValueRequest) XXX_DiscardUnknown() { |
| 473 | xxx_messageInfo_GetValueRequest.DiscardUnknown(m) |
| 474 | } |
| 475 | |
| 476 | var xxx_messageInfo_GetValueRequest proto.InternalMessageInfo |
| 477 | |
| 478 | type isGetValueRequest_Request interface { |
| 479 | isGetValueRequest_Request() |
| 480 | } |
| 481 | |
| 482 | type GetValueRequest_Distance struct { |
| 483 | Distance *GetDistanceRequest `protobuf:"bytes,1,opt,name=distance,proto3,oneof"` |
| 484 | } |
| 485 | |
| 486 | type GetValueRequest_UniInfo struct { |
| 487 | UniInfo *GetOnuUniInfoRequest `protobuf:"bytes,2,opt,name=uniInfo,proto3,oneof"` |
| 488 | } |
| 489 | |
| 490 | func (*GetValueRequest_Distance) isGetValueRequest_Request() {} |
| 491 | |
| 492 | func (*GetValueRequest_UniInfo) isGetValueRequest_Request() {} |
| 493 | |
| 494 | func (m *GetValueRequest) GetRequest() isGetValueRequest_Request { |
| 495 | if m != nil { |
| 496 | return m.Request |
| 497 | } |
| 498 | return nil |
| 499 | } |
| 500 | |
| 501 | func (m *GetValueRequest) GetDistance() *GetDistanceRequest { |
| 502 | if x, ok := m.GetRequest().(*GetValueRequest_Distance); ok { |
| 503 | return x.Distance |
| 504 | } |
| 505 | return nil |
| 506 | } |
| 507 | |
| 508 | func (m *GetValueRequest) GetUniInfo() *GetOnuUniInfoRequest { |
| 509 | if x, ok := m.GetRequest().(*GetValueRequest_UniInfo); ok { |
| 510 | return x.UniInfo |
| 511 | } |
| 512 | return nil |
| 513 | } |
| 514 | |
| 515 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 516 | func (*GetValueRequest) XXX_OneofWrappers() []interface{} { |
| 517 | return []interface{}{ |
| 518 | (*GetValueRequest_Distance)(nil), |
| 519 | (*GetValueRequest_UniInfo)(nil), |
| 520 | } |
| 521 | } |
| 522 | |
| 523 | type GetValueResponse struct { |
| 524 | Status GetValueResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=extension.GetValueResponse_Status" json:"status,omitempty"` |
| 525 | ErrReason GetValueResponse_ErrorReason `protobuf:"varint,2,opt,name=errReason,proto3,enum=extension.GetValueResponse_ErrorReason" json:"errReason,omitempty"` |
| 526 | // Types that are valid to be assigned to Response: |
| 527 | // *GetValueResponse_Distance |
| 528 | // *GetValueResponse_UniInfo |
| 529 | Response isGetValueResponse_Response `protobuf_oneof:"response"` |
| 530 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 531 | XXX_unrecognized []byte `json:"-"` |
| 532 | XXX_sizecache int32 `json:"-"` |
| 533 | } |
| 534 | |
| 535 | func (m *GetValueResponse) Reset() { *m = GetValueResponse{} } |
| 536 | func (m *GetValueResponse) String() string { return proto.CompactTextString(m) } |
| 537 | func (*GetValueResponse) ProtoMessage() {} |
| 538 | func (*GetValueResponse) Descriptor() ([]byte, []int) { |
| 539 | return fileDescriptor_7ecf6e9799a9202d, []int{5} |
| 540 | } |
| 541 | |
| 542 | func (m *GetValueResponse) XXX_Unmarshal(b []byte) error { |
| 543 | return xxx_messageInfo_GetValueResponse.Unmarshal(m, b) |
| 544 | } |
| 545 | func (m *GetValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 546 | return xxx_messageInfo_GetValueResponse.Marshal(b, m, deterministic) |
| 547 | } |
| 548 | func (m *GetValueResponse) XXX_Merge(src proto.Message) { |
| 549 | xxx_messageInfo_GetValueResponse.Merge(m, src) |
| 550 | } |
| 551 | func (m *GetValueResponse) XXX_Size() int { |
| 552 | return xxx_messageInfo_GetValueResponse.Size(m) |
| 553 | } |
| 554 | func (m *GetValueResponse) XXX_DiscardUnknown() { |
| 555 | xxx_messageInfo_GetValueResponse.DiscardUnknown(m) |
| 556 | } |
| 557 | |
| 558 | var xxx_messageInfo_GetValueResponse proto.InternalMessageInfo |
| 559 | |
| 560 | func (m *GetValueResponse) GetStatus() GetValueResponse_Status { |
| 561 | if m != nil { |
| 562 | return m.Status |
| 563 | } |
| 564 | return GetValueResponse_STATUS_UNDEFINED |
| 565 | } |
| 566 | |
| 567 | func (m *GetValueResponse) GetErrReason() GetValueResponse_ErrorReason { |
| 568 | if m != nil { |
| 569 | return m.ErrReason |
| 570 | } |
| 571 | return GetValueResponse_REASON_UNDEFINED |
| 572 | } |
| 573 | |
| 574 | type isGetValueResponse_Response interface { |
| 575 | isGetValueResponse_Response() |
| 576 | } |
| 577 | |
| 578 | type GetValueResponse_Distance struct { |
| 579 | Distance *GetDistanceResponse `protobuf:"bytes,3,opt,name=distance,proto3,oneof"` |
| 580 | } |
| 581 | |
| 582 | type GetValueResponse_UniInfo struct { |
| 583 | UniInfo *GetOnuUniInfoResponse `protobuf:"bytes,4,opt,name=uniInfo,proto3,oneof"` |
| 584 | } |
| 585 | |
| 586 | func (*GetValueResponse_Distance) isGetValueResponse_Response() {} |
| 587 | |
| 588 | func (*GetValueResponse_UniInfo) isGetValueResponse_Response() {} |
| 589 | |
| 590 | func (m *GetValueResponse) GetResponse() isGetValueResponse_Response { |
| 591 | if m != nil { |
| 592 | return m.Response |
| 593 | } |
| 594 | return nil |
| 595 | } |
| 596 | |
| 597 | func (m *GetValueResponse) GetDistance() *GetDistanceResponse { |
| 598 | if x, ok := m.GetResponse().(*GetValueResponse_Distance); ok { |
| 599 | return x.Distance |
| 600 | } |
| 601 | return nil |
| 602 | } |
| 603 | |
| 604 | func (m *GetValueResponse) GetUniInfo() *GetOnuUniInfoResponse { |
| 605 | if x, ok := m.GetResponse().(*GetValueResponse_UniInfo); ok { |
| 606 | return x.UniInfo |
| 607 | } |
| 608 | return nil |
| 609 | } |
| 610 | |
| 611 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 612 | func (*GetValueResponse) XXX_OneofWrappers() []interface{} { |
| 613 | return []interface{}{ |
| 614 | (*GetValueResponse_Distance)(nil), |
| 615 | (*GetValueResponse_UniInfo)(nil), |
| 616 | } |
| 617 | } |
| 618 | |
| 619 | type SetValueRequest struct { |
| 620 | // Types that are valid to be assigned to Request: |
| 621 | // *SetValueRequest_AlarmConfig |
| 622 | Request isSetValueRequest_Request `protobuf_oneof:"request"` |
| 623 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 624 | XXX_unrecognized []byte `json:"-"` |
| 625 | XXX_sizecache int32 `json:"-"` |
| 626 | } |
| 627 | |
| 628 | func (m *SetValueRequest) Reset() { *m = SetValueRequest{} } |
| 629 | func (m *SetValueRequest) String() string { return proto.CompactTextString(m) } |
| 630 | func (*SetValueRequest) ProtoMessage() {} |
| 631 | func (*SetValueRequest) Descriptor() ([]byte, []int) { |
| 632 | return fileDescriptor_7ecf6e9799a9202d, []int{6} |
| 633 | } |
| 634 | |
| 635 | func (m *SetValueRequest) XXX_Unmarshal(b []byte) error { |
| 636 | return xxx_messageInfo_SetValueRequest.Unmarshal(m, b) |
| 637 | } |
| 638 | func (m *SetValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 639 | return xxx_messageInfo_SetValueRequest.Marshal(b, m, deterministic) |
| 640 | } |
| 641 | func (m *SetValueRequest) XXX_Merge(src proto.Message) { |
| 642 | xxx_messageInfo_SetValueRequest.Merge(m, src) |
| 643 | } |
| 644 | func (m *SetValueRequest) XXX_Size() int { |
| 645 | return xxx_messageInfo_SetValueRequest.Size(m) |
| 646 | } |
| 647 | func (m *SetValueRequest) XXX_DiscardUnknown() { |
| 648 | xxx_messageInfo_SetValueRequest.DiscardUnknown(m) |
| 649 | } |
| 650 | |
| 651 | var xxx_messageInfo_SetValueRequest proto.InternalMessageInfo |
| 652 | |
| 653 | type isSetValueRequest_Request interface { |
| 654 | isSetValueRequest_Request() |
| 655 | } |
| 656 | |
| 657 | type SetValueRequest_AlarmConfig struct { |
| 658 | AlarmConfig *config.AlarmConfig `protobuf:"bytes,1,opt,name=alarm_config,json=alarmConfig,proto3,oneof"` |
| 659 | } |
| 660 | |
| 661 | func (*SetValueRequest_AlarmConfig) isSetValueRequest_Request() {} |
| 662 | |
| 663 | func (m *SetValueRequest) GetRequest() isSetValueRequest_Request { |
| 664 | if m != nil { |
| 665 | return m.Request |
| 666 | } |
| 667 | return nil |
| 668 | } |
| 669 | |
| 670 | func (m *SetValueRequest) GetAlarmConfig() *config.AlarmConfig { |
| 671 | if x, ok := m.GetRequest().(*SetValueRequest_AlarmConfig); ok { |
| 672 | return x.AlarmConfig |
| 673 | } |
| 674 | return nil |
| 675 | } |
| 676 | |
| 677 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 678 | func (*SetValueRequest) XXX_OneofWrappers() []interface{} { |
| 679 | return []interface{}{ |
| 680 | (*SetValueRequest_AlarmConfig)(nil), |
| 681 | } |
| 682 | } |
| 683 | |
| 684 | type SetValueResponse struct { |
| 685 | Status SetValueResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=extension.SetValueResponse_Status" json:"status,omitempty"` |
| 686 | ErrReason SetValueResponse_ErrorReason `protobuf:"varint,2,opt,name=errReason,proto3,enum=extension.SetValueResponse_ErrorReason" json:"errReason,omitempty"` |
| 687 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 688 | XXX_unrecognized []byte `json:"-"` |
| 689 | XXX_sizecache int32 `json:"-"` |
| 690 | } |
| 691 | |
| 692 | func (m *SetValueResponse) Reset() { *m = SetValueResponse{} } |
| 693 | func (m *SetValueResponse) String() string { return proto.CompactTextString(m) } |
| 694 | func (*SetValueResponse) ProtoMessage() {} |
| 695 | func (*SetValueResponse) Descriptor() ([]byte, []int) { |
| 696 | return fileDescriptor_7ecf6e9799a9202d, []int{7} |
| 697 | } |
| 698 | |
| 699 | func (m *SetValueResponse) XXX_Unmarshal(b []byte) error { |
| 700 | return xxx_messageInfo_SetValueResponse.Unmarshal(m, b) |
| 701 | } |
| 702 | func (m *SetValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 703 | return xxx_messageInfo_SetValueResponse.Marshal(b, m, deterministic) |
| 704 | } |
| 705 | func (m *SetValueResponse) XXX_Merge(src proto.Message) { |
| 706 | xxx_messageInfo_SetValueResponse.Merge(m, src) |
| 707 | } |
| 708 | func (m *SetValueResponse) XXX_Size() int { |
| 709 | return xxx_messageInfo_SetValueResponse.Size(m) |
| 710 | } |
| 711 | func (m *SetValueResponse) XXX_DiscardUnknown() { |
| 712 | xxx_messageInfo_SetValueResponse.DiscardUnknown(m) |
| 713 | } |
| 714 | |
| 715 | var xxx_messageInfo_SetValueResponse proto.InternalMessageInfo |
| 716 | |
| 717 | func (m *SetValueResponse) GetStatus() SetValueResponse_Status { |
| 718 | if m != nil { |
| 719 | return m.Status |
| 720 | } |
| 721 | return SetValueResponse_STATUS_UNDEFINED |
| 722 | } |
| 723 | |
| 724 | func (m *SetValueResponse) GetErrReason() SetValueResponse_ErrorReason { |
| 725 | if m != nil { |
| 726 | return m.ErrReason |
| 727 | } |
| 728 | return SetValueResponse_REASON_UNDEFINED |
| 729 | } |
| 730 | |
| 731 | type SingleGetValueRequest struct { |
| 732 | TargetId string `protobuf:"bytes,1,opt,name=targetId,proto3" json:"targetId,omitempty"` |
| 733 | Request *GetValueRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` |
| 734 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 735 | XXX_unrecognized []byte `json:"-"` |
| 736 | XXX_sizecache int32 `json:"-"` |
| 737 | } |
| 738 | |
| 739 | func (m *SingleGetValueRequest) Reset() { *m = SingleGetValueRequest{} } |
| 740 | func (m *SingleGetValueRequest) String() string { return proto.CompactTextString(m) } |
| 741 | func (*SingleGetValueRequest) ProtoMessage() {} |
| 742 | func (*SingleGetValueRequest) Descriptor() ([]byte, []int) { |
| 743 | return fileDescriptor_7ecf6e9799a9202d, []int{8} |
| 744 | } |
| 745 | |
| 746 | func (m *SingleGetValueRequest) XXX_Unmarshal(b []byte) error { |
| 747 | return xxx_messageInfo_SingleGetValueRequest.Unmarshal(m, b) |
| 748 | } |
| 749 | func (m *SingleGetValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 750 | return xxx_messageInfo_SingleGetValueRequest.Marshal(b, m, deterministic) |
| 751 | } |
| 752 | func (m *SingleGetValueRequest) XXX_Merge(src proto.Message) { |
| 753 | xxx_messageInfo_SingleGetValueRequest.Merge(m, src) |
| 754 | } |
| 755 | func (m *SingleGetValueRequest) XXX_Size() int { |
| 756 | return xxx_messageInfo_SingleGetValueRequest.Size(m) |
| 757 | } |
| 758 | func (m *SingleGetValueRequest) XXX_DiscardUnknown() { |
| 759 | xxx_messageInfo_SingleGetValueRequest.DiscardUnknown(m) |
| 760 | } |
| 761 | |
| 762 | var xxx_messageInfo_SingleGetValueRequest proto.InternalMessageInfo |
| 763 | |
| 764 | func (m *SingleGetValueRequest) GetTargetId() string { |
| 765 | if m != nil { |
| 766 | return m.TargetId |
| 767 | } |
| 768 | return "" |
| 769 | } |
| 770 | |
| 771 | func (m *SingleGetValueRequest) GetRequest() *GetValueRequest { |
| 772 | if m != nil { |
| 773 | return m.Request |
| 774 | } |
| 775 | return nil |
| 776 | } |
| 777 | |
| 778 | type SingleGetValueResponse struct { |
| 779 | Response *GetValueResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` |
| 780 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 781 | XXX_unrecognized []byte `json:"-"` |
| 782 | XXX_sizecache int32 `json:"-"` |
| 783 | } |
| 784 | |
| 785 | func (m *SingleGetValueResponse) Reset() { *m = SingleGetValueResponse{} } |
| 786 | func (m *SingleGetValueResponse) String() string { return proto.CompactTextString(m) } |
| 787 | func (*SingleGetValueResponse) ProtoMessage() {} |
| 788 | func (*SingleGetValueResponse) Descriptor() ([]byte, []int) { |
| 789 | return fileDescriptor_7ecf6e9799a9202d, []int{9} |
| 790 | } |
| 791 | |
| 792 | func (m *SingleGetValueResponse) XXX_Unmarshal(b []byte) error { |
| 793 | return xxx_messageInfo_SingleGetValueResponse.Unmarshal(m, b) |
| 794 | } |
| 795 | func (m *SingleGetValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 796 | return xxx_messageInfo_SingleGetValueResponse.Marshal(b, m, deterministic) |
| 797 | } |
| 798 | func (m *SingleGetValueResponse) XXX_Merge(src proto.Message) { |
| 799 | xxx_messageInfo_SingleGetValueResponse.Merge(m, src) |
| 800 | } |
| 801 | func (m *SingleGetValueResponse) XXX_Size() int { |
| 802 | return xxx_messageInfo_SingleGetValueResponse.Size(m) |
| 803 | } |
| 804 | func (m *SingleGetValueResponse) XXX_DiscardUnknown() { |
| 805 | xxx_messageInfo_SingleGetValueResponse.DiscardUnknown(m) |
| 806 | } |
| 807 | |
| 808 | var xxx_messageInfo_SingleGetValueResponse proto.InternalMessageInfo |
| 809 | |
| 810 | func (m *SingleGetValueResponse) GetResponse() *GetValueResponse { |
| 811 | if m != nil { |
| 812 | return m.Response |
| 813 | } |
| 814 | return nil |
| 815 | } |
| 816 | |
| 817 | type SingleSetValueRequest struct { |
| 818 | TargetId string `protobuf:"bytes,1,opt,name=targetId,proto3" json:"targetId,omitempty"` |
| 819 | Request *SetValueRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` |
| 820 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 821 | XXX_unrecognized []byte `json:"-"` |
| 822 | XXX_sizecache int32 `json:"-"` |
| 823 | } |
| 824 | |
| 825 | func (m *SingleSetValueRequest) Reset() { *m = SingleSetValueRequest{} } |
| 826 | func (m *SingleSetValueRequest) String() string { return proto.CompactTextString(m) } |
| 827 | func (*SingleSetValueRequest) ProtoMessage() {} |
| 828 | func (*SingleSetValueRequest) Descriptor() ([]byte, []int) { |
| 829 | return fileDescriptor_7ecf6e9799a9202d, []int{10} |
| 830 | } |
| 831 | |
| 832 | func (m *SingleSetValueRequest) XXX_Unmarshal(b []byte) error { |
| 833 | return xxx_messageInfo_SingleSetValueRequest.Unmarshal(m, b) |
| 834 | } |
| 835 | func (m *SingleSetValueRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 836 | return xxx_messageInfo_SingleSetValueRequest.Marshal(b, m, deterministic) |
| 837 | } |
| 838 | func (m *SingleSetValueRequest) XXX_Merge(src proto.Message) { |
| 839 | xxx_messageInfo_SingleSetValueRequest.Merge(m, src) |
| 840 | } |
| 841 | func (m *SingleSetValueRequest) XXX_Size() int { |
| 842 | return xxx_messageInfo_SingleSetValueRequest.Size(m) |
| 843 | } |
| 844 | func (m *SingleSetValueRequest) XXX_DiscardUnknown() { |
| 845 | xxx_messageInfo_SingleSetValueRequest.DiscardUnknown(m) |
| 846 | } |
| 847 | |
| 848 | var xxx_messageInfo_SingleSetValueRequest proto.InternalMessageInfo |
| 849 | |
| 850 | func (m *SingleSetValueRequest) GetTargetId() string { |
| 851 | if m != nil { |
| 852 | return m.TargetId |
| 853 | } |
| 854 | return "" |
| 855 | } |
| 856 | |
| 857 | func (m *SingleSetValueRequest) GetRequest() *SetValueRequest { |
| 858 | if m != nil { |
| 859 | return m.Request |
| 860 | } |
| 861 | return nil |
| 862 | } |
| 863 | |
| 864 | type SingleSetValueResponse struct { |
| 865 | Response *SetValueResponse `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` |
| 866 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 867 | XXX_unrecognized []byte `json:"-"` |
| 868 | XXX_sizecache int32 `json:"-"` |
| 869 | } |
| 870 | |
| 871 | func (m *SingleSetValueResponse) Reset() { *m = SingleSetValueResponse{} } |
| 872 | func (m *SingleSetValueResponse) String() string { return proto.CompactTextString(m) } |
| 873 | func (*SingleSetValueResponse) ProtoMessage() {} |
| 874 | func (*SingleSetValueResponse) Descriptor() ([]byte, []int) { |
| 875 | return fileDescriptor_7ecf6e9799a9202d, []int{11} |
| 876 | } |
| 877 | |
| 878 | func (m *SingleSetValueResponse) XXX_Unmarshal(b []byte) error { |
| 879 | return xxx_messageInfo_SingleSetValueResponse.Unmarshal(m, b) |
| 880 | } |
| 881 | func (m *SingleSetValueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 882 | return xxx_messageInfo_SingleSetValueResponse.Marshal(b, m, deterministic) |
| 883 | } |
| 884 | func (m *SingleSetValueResponse) XXX_Merge(src proto.Message) { |
| 885 | xxx_messageInfo_SingleSetValueResponse.Merge(m, src) |
| 886 | } |
| 887 | func (m *SingleSetValueResponse) XXX_Size() int { |
| 888 | return xxx_messageInfo_SingleSetValueResponse.Size(m) |
| 889 | } |
| 890 | func (m *SingleSetValueResponse) XXX_DiscardUnknown() { |
| 891 | xxx_messageInfo_SingleSetValueResponse.DiscardUnknown(m) |
| 892 | } |
| 893 | |
| 894 | var xxx_messageInfo_SingleSetValueResponse proto.InternalMessageInfo |
| 895 | |
| 896 | func (m *SingleSetValueResponse) GetResponse() *SetValueResponse { |
| 897 | if m != nil { |
| 898 | return m.Response |
| 899 | } |
| 900 | return nil |
| 901 | } |
| 902 | |
| 903 | func init() { |
| 904 | proto.RegisterEnum("extension.GetOnuUniInfoResponse_ConfigurationInd", GetOnuUniInfoResponse_ConfigurationInd_name, GetOnuUniInfoResponse_ConfigurationInd_value) |
| 905 | proto.RegisterEnum("extension.GetOnuUniInfoResponse_AdministrativeState", GetOnuUniInfoResponse_AdministrativeState_name, GetOnuUniInfoResponse_AdministrativeState_value) |
| 906 | proto.RegisterEnum("extension.GetOnuUniInfoResponse_OperationalState", GetOnuUniInfoResponse_OperationalState_name, GetOnuUniInfoResponse_OperationalState_value) |
| 907 | proto.RegisterEnum("extension.GetValueResponse_Status", GetValueResponse_Status_name, GetValueResponse_Status_value) |
| 908 | proto.RegisterEnum("extension.GetValueResponse_ErrorReason", GetValueResponse_ErrorReason_name, GetValueResponse_ErrorReason_value) |
| 909 | proto.RegisterEnum("extension.SetValueResponse_Status", SetValueResponse_Status_name, SetValueResponse_Status_value) |
| 910 | proto.RegisterEnum("extension.SetValueResponse_ErrorReason", SetValueResponse_ErrorReason_name, SetValueResponse_ErrorReason_value) |
| 911 | proto.RegisterType((*GetDistanceRequest)(nil), "extension.GetDistanceRequest") |
| 912 | proto.RegisterType((*GetDistanceResponse)(nil), "extension.GetDistanceResponse") |
| 913 | proto.RegisterType((*GetOnuUniInfoRequest)(nil), "extension.GetOnuUniInfoRequest") |
| 914 | proto.RegisterType((*GetOnuUniInfoResponse)(nil), "extension.GetOnuUniInfoResponse") |
| 915 | proto.RegisterType((*GetValueRequest)(nil), "extension.GetValueRequest") |
| 916 | proto.RegisterType((*GetValueResponse)(nil), "extension.GetValueResponse") |
| 917 | proto.RegisterType((*SetValueRequest)(nil), "extension.SetValueRequest") |
| 918 | proto.RegisterType((*SetValueResponse)(nil), "extension.SetValueResponse") |
| 919 | proto.RegisterType((*SingleGetValueRequest)(nil), "extension.SingleGetValueRequest") |
| 920 | proto.RegisterType((*SingleGetValueResponse)(nil), "extension.SingleGetValueResponse") |
| 921 | proto.RegisterType((*SingleSetValueRequest)(nil), "extension.SingleSetValueRequest") |
| 922 | proto.RegisterType((*SingleSetValueResponse)(nil), "extension.SingleSetValueResponse") |
| 923 | } |
| 924 | |
| 925 | func init() { proto.RegisterFile("voltha_protos/extensions.proto", fileDescriptor_7ecf6e9799a9202d) } |
| 926 | |
| 927 | var fileDescriptor_7ecf6e9799a9202d = []byte{ |
| 928 | // 844 bytes of a gzipped FileDescriptorProto |
| 929 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xd1, 0x6e, 0xdb, 0x36, |
| 930 | 0x14, 0xb5, 0x9c, 0xd4, 0xb1, 0xaf, 0xba, 0x46, 0x60, 0xd2, 0x2e, 0xf0, 0xd0, 0x2e, 0xd3, 0xcb, |
| 931 | 0xf6, 0x32, 0x05, 0xf1, 0x82, 0x6d, 0x58, 0xfb, 0x62, 0x57, 0x8c, 0x6d, 0xa4, 0x93, 0x3c, 0xd2, |
| 932 | 0xee, 0x8a, 0xbd, 0x18, 0xaa, 0xcd, 0xba, 0x02, 0x1c, 0xd2, 0x93, 0xa8, 0x20, 0x5f, 0xb0, 0x4f, |
| 933 | 0xd8, 0x8f, 0xec, 0x0f, 0xf6, 0x27, 0xfb, 0x91, 0x61, 0x90, 0x48, 0x4b, 0x96, 0xea, 0x24, 0x0d, |
| 934 | 0x36, 0xec, 0xf1, 0x5e, 0xde, 0x73, 0x78, 0x79, 0xcf, 0xb9, 0xb6, 0xe0, 0xd9, 0x95, 0x58, 0xca, |
| 935 | 0xf7, 0xc1, 0x74, 0x15, 0x09, 0x29, 0xe2, 0x13, 0x76, 0x2d, 0x19, 0x8f, 0x43, 0xc1, 0x63, 0x27, |
| 936 | 0xcb, 0xa0, 0x56, 0x9e, 0x69, 0x7f, 0x58, 0x3a, 0x9d, 0x09, 0xfe, 0x2e, 0x5c, 0xa8, 0x52, 0xfb, |
| 937 | 0x5b, 0x40, 0x7d, 0x26, 0xdd, 0x30, 0x96, 0x01, 0x9f, 0x31, 0xc2, 0x7e, 0x4d, 0x58, 0x2c, 0xd1, |
| 938 | 0x31, 0x98, 0x82, 0x27, 0x2e, 0xbb, 0x0a, 0x67, 0x6c, 0x38, 0x3f, 0x32, 0x8e, 0x8d, 0xaf, 0x5a, |
| 939 | 0x64, 0x33, 0x65, 0x9f, 0xc2, 0x41, 0x09, 0x17, 0xaf, 0x04, 0x8f, 0x19, 0x6a, 0x43, 0x73, 0xae, |
| 940 | 0x73, 0x19, 0xea, 0x13, 0x92, 0xc7, 0x76, 0x07, 0x0e, 0xfb, 0x4c, 0xfa, 0x3c, 0x99, 0xf0, 0x70, |
| 941 | 0xc8, 0xdf, 0x89, 0xf5, 0x65, 0x6d, 0x68, 0x26, 0x69, 0x66, 0xce, 0xae, 0xd7, 0x98, 0x75, 0x6c, |
| 942 | 0xff, 0xb5, 0x0b, 0x8f, 0x2b, 0x20, 0x7d, 0xd3, 0x08, 0x9a, 0xc1, 0xfc, 0x92, 0xca, 0x40, 0xaa, |
| 943 | 0x9b, 0x1e, 0x75, 0xce, 0x9c, 0xfc, 0xd9, 0xce, 0x56, 0x8c, 0xd3, 0x9d, 0x5f, 0x86, 0x3c, 0x8c, |
| 944 | 0x65, 0x14, 0xc8, 0xf0, 0x8a, 0x65, 0x58, 0x92, 0xb3, 0x20, 0x1f, 0x5a, 0x62, 0xc5, 0x22, 0x45, |
| 945 | 0x59, 0xcf, 0x28, 0x4f, 0xef, 0xa4, 0xf4, 0x57, 0x2c, 0x65, 0x13, 0x3c, 0x58, 0x2a, 0xbe, 0x82, |
| 946 | 0x23, 0x25, 0x54, 0xb3, 0x1e, 0xf2, 0xf9, 0xd1, 0xce, 0x47, 0x12, 0xbe, 0xcc, 0x10, 0x89, 0x22, |
| 947 | 0x1d, 0xf2, 0x39, 0x29, 0x38, 0xec, 0x3f, 0x0d, 0xb0, 0xaa, 0xe7, 0x08, 0xa0, 0x31, 0xf1, 0x2e, |
| 948 | 0xfc, 0x9f, 0x3d, 0xab, 0x86, 0x10, 0x3c, 0x1a, 0x63, 0x6f, 0xda, 0xeb, 0x52, 0x3c, 0x1d, 0x4f, |
| 949 | 0xcf, 0xdd, 0x37, 0x96, 0x81, 0x9e, 0x00, 0x1a, 0x4c, 0x3c, 0x97, 0x60, 0x77, 0x33, 0x5f, 0x47, |
| 950 | 0x47, 0x70, 0xd8, 0x1f, 0xf6, 0xbb, 0xbd, 0xe1, 0x78, 0x8a, 0xc7, 0x03, 0x4c, 0x3c, 0xac, 0x4e, |
| 951 | 0x76, 0x52, 0x44, 0xca, 0xd2, 0x2f, 0xe7, 0x77, 0x2b, 0xec, 0x03, 0xf7, 0x8d, 0xf5, 0x60, 0x0b, |
| 952 | 0x7b, 0x9a, 0x6f, 0x6c, 0x65, 0x4f, 0x4f, 0xf6, 0xec, 0x3e, 0x1c, 0x6c, 0xd1, 0x21, 0x25, 0xea, |
| 953 | 0xba, 0x3f, 0xd2, 0x71, 0x77, 0x8c, 0xa7, 0x13, 0xcf, 0xc5, 0xe7, 0x43, 0x0f, 0xbb, 0x56, 0x2d, |
| 954 | 0x7d, 0xde, 0x2b, 0xff, 0xe5, 0x05, 0x76, 0x2d, 0x03, 0x3d, 0x84, 0xe6, 0xc4, 0xd3, 0x51, 0xdd, |
| 955 | 0x3e, 0x07, 0xab, 0x3a, 0x7d, 0xf4, 0x29, 0x1c, 0xf8, 0x23, 0x4c, 0x3e, 0xa4, 0x31, 0x61, 0x0f, |
| 956 | 0x7b, 0xdd, 0xde, 0xab, 0x35, 0x8f, 0x3b, 0xa4, 0x2a, 0xaa, 0xdb, 0xbf, 0x1b, 0xb0, 0xdf, 0x67, |
| 957 | 0xf2, 0x75, 0xb0, 0x4c, 0xf2, 0x05, 0x78, 0x5e, 0xf1, 0xb1, 0xd9, 0x79, 0x5a, 0x56, 0xae, 0xb2, |
| 958 | 0x31, 0x83, 0x5a, 0x61, 0x74, 0xf4, 0x1c, 0xf6, 0x12, 0xa5, 0x6a, 0x66, 0x23, 0xb3, 0xf3, 0xf9, |
| 959 | 0xcd, 0xaa, 0xaf, 0xd1, 0x6b, 0x44, 0xaf, 0x05, 0x7b, 0x91, 0xca, 0xda, 0xbf, 0xed, 0x80, 0x55, |
| 960 | 0x34, 0xa6, 0x7d, 0xff, 0x03, 0x34, 0x62, 0x19, 0xc8, 0x24, 0xd6, 0xae, 0xb7, 0xcb, 0xdc, 0xa5, |
| 961 | 0x62, 0x87, 0x66, 0x95, 0x44, 0x23, 0x10, 0x86, 0x16, 0x8b, 0x22, 0xc2, 0x82, 0x58, 0x70, 0xed, |
| 962 | 0xf0, 0x2f, 0x6f, 0x83, 0xe3, 0x28, 0x12, 0xba, 0x9c, 0x14, 0x48, 0xf4, 0x62, 0x63, 0x38, 0x3b, |
| 963 | 0xd9, 0x03, 0x9f, 0xdd, 0x34, 0x1c, 0x45, 0x54, 0x9a, 0xce, 0x8b, 0x62, 0x3a, 0xbb, 0x19, 0xf8, |
| 964 | 0xf8, 0xae, 0x9d, 0xd8, 0x18, 0x8f, 0x7d, 0x0a, 0x0d, 0xf5, 0x28, 0x74, 0x08, 0x56, 0x2a, 0xf3, |
| 965 | 0x84, 0x96, 0x74, 0x6e, 0x40, 0xdd, 0xbf, 0xb0, 0x0c, 0xd4, 0x82, 0x07, 0x98, 0x10, 0x9f, 0x58, |
| 966 | 0x75, 0xfb, 0x0c, 0xcc, 0x8d, 0x87, 0xa4, 0x38, 0x82, 0xbb, 0xd4, 0xf7, 0x4a, 0xb8, 0x7d, 0x30, |
| 967 | 0x27, 0x1e, 0x9d, 0x8c, 0x46, 0x3e, 0x19, 0xa7, 0x1e, 0xe9, 0x01, 0x34, 0x23, 0x7d, 0xbf, 0xfd, |
| 968 | 0x1a, 0xf6, 0x69, 0xc5, 0x20, 0xdf, 0xc3, 0xc3, 0x60, 0x19, 0x44, 0x97, 0xfa, 0xd7, 0x54, 0x9b, |
| 969 | 0xe4, 0xc0, 0xd1, 0x3f, 0xae, 0xdd, 0xf4, 0x4c, 0xad, 0xea, 0xa0, 0x46, 0xcc, 0xa0, 0x08, 0x37, |
| 970 | 0x05, 0xfe, 0xdb, 0x00, 0x8b, 0xde, 0x47, 0x60, 0xfa, 0xef, 0x04, 0xa6, 0x1f, 0x27, 0xf0, 0xff, |
| 971 | 0x36, 0x64, 0x3b, 0x84, 0xc7, 0x34, 0xe4, 0x8b, 0x25, 0xab, 0xee, 0x5f, 0x1b, 0x9a, 0x32, 0x88, |
| 972 | 0x16, 0x4c, 0xe6, 0xff, 0x3e, 0x79, 0x8c, 0xce, 0xf2, 0x01, 0xea, 0xf5, 0x6a, 0x6f, 0xf5, 0x70, |
| 973 | 0x56, 0x41, 0xf2, 0x59, 0xff, 0x04, 0x4f, 0xaa, 0x57, 0xe9, 0x81, 0x7f, 0x57, 0x28, 0xad, 0x65, |
| 974 | 0xfc, 0xec, 0x96, 0xa5, 0x20, 0x85, 0x2d, 0xf2, 0xee, 0xe9, 0x7f, 0xd5, 0x3d, 0xbd, 0xb3, 0x7b, |
| 975 | 0x7a, 0xbf, 0xee, 0xe9, 0x8d, 0xdd, 0x77, 0xfe, 0x30, 0xa0, 0x85, 0xd7, 0x85, 0x88, 0x80, 0xd9, |
| 976 | 0x67, 0x12, 0x5f, 0xab, 0x72, 0xb4, 0xb9, 0x93, 0x5b, 0x15, 0x6a, 0x7f, 0x71, 0x4b, 0x85, 0x6e, |
| 977 | 0x8d, 0x80, 0x49, 0x6f, 0xe5, 0xa4, 0x77, 0x72, 0x56, 0xfb, 0xef, 0x11, 0x78, 0x2a, 0xa2, 0x85, |
| 978 | 0x23, 0x56, 0x8c, 0xcf, 0x44, 0x34, 0x77, 0xd4, 0xe7, 0x4d, 0x81, 0xfb, 0xe5, 0x74, 0x11, 0xca, |
| 979 | 0xf7, 0xc9, 0x5b, 0x67, 0x26, 0x2e, 0x4f, 0xd6, 0x55, 0x27, 0xaa, 0xea, 0x6b, 0xfd, 0x11, 0x74, |
| 980 | 0x75, 0x76, 0xb2, 0x10, 0xc5, 0x57, 0xd3, 0xa8, 0xf6, 0xb6, 0x91, 0x9d, 0x7c, 0xf3, 0x4f, 0x00, |
| 981 | 0x00, 0x00, 0xff, 0xff, 0xa4, 0x45, 0xe3, 0xcc, 0x59, 0x09, 0x00, 0x00, |
| 982 | } |
| 983 | |
| 984 | // Reference imports to suppress errors if they are not otherwise used. |
| 985 | var _ context.Context |
| 986 | var _ grpc.ClientConn |
| 987 | |
| 988 | // This is a compile-time assertion to ensure that this generated file |
| 989 | // is compatible with the grpc package it is being compiled against. |
| 990 | const _ = grpc.SupportPackageIsVersion4 |
| 991 | |
| 992 | // ExtensionClient is the client API for Extension service. |
| 993 | // |
| 994 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 995 | type ExtensionClient interface { |
| 996 | // Get a single attribute |
| 997 | GetExtValue(ctx context.Context, in *SingleGetValueRequest, opts ...grpc.CallOption) (*SingleGetValueResponse, error) |
| 998 | // Set a single attribute |
| 999 | SetExtValue(ctx context.Context, in *SingleSetValueRequest, opts ...grpc.CallOption) (*SingleSetValueResponse, error) |
| 1000 | } |
| 1001 | |
| 1002 | type extensionClient struct { |
| 1003 | cc *grpc.ClientConn |
| 1004 | } |
| 1005 | |
| 1006 | func NewExtensionClient(cc *grpc.ClientConn) ExtensionClient { |
| 1007 | return &extensionClient{cc} |
| 1008 | } |
| 1009 | |
| 1010 | func (c *extensionClient) GetExtValue(ctx context.Context, in *SingleGetValueRequest, opts ...grpc.CallOption) (*SingleGetValueResponse, error) { |
| 1011 | out := new(SingleGetValueResponse) |
| 1012 | err := c.cc.Invoke(ctx, "/extension.Extension/GetExtValue", in, out, opts...) |
| 1013 | if err != nil { |
| 1014 | return nil, err |
| 1015 | } |
| 1016 | return out, nil |
| 1017 | } |
| 1018 | |
| 1019 | func (c *extensionClient) SetExtValue(ctx context.Context, in *SingleSetValueRequest, opts ...grpc.CallOption) (*SingleSetValueResponse, error) { |
| 1020 | out := new(SingleSetValueResponse) |
| 1021 | err := c.cc.Invoke(ctx, "/extension.Extension/SetExtValue", in, out, opts...) |
| 1022 | if err != nil { |
| 1023 | return nil, err |
| 1024 | } |
| 1025 | return out, nil |
| 1026 | } |
| 1027 | |
| 1028 | // ExtensionServer is the server API for Extension service. |
| 1029 | type ExtensionServer interface { |
| 1030 | // Get a single attribute |
| 1031 | GetExtValue(context.Context, *SingleGetValueRequest) (*SingleGetValueResponse, error) |
| 1032 | // Set a single attribute |
| 1033 | SetExtValue(context.Context, *SingleSetValueRequest) (*SingleSetValueResponse, error) |
| 1034 | } |
| 1035 | |
| 1036 | func RegisterExtensionServer(s *grpc.Server, srv ExtensionServer) { |
| 1037 | s.RegisterService(&_Extension_serviceDesc, srv) |
| 1038 | } |
| 1039 | |
| 1040 | func _Extension_GetExtValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1041 | in := new(SingleGetValueRequest) |
| 1042 | if err := dec(in); err != nil { |
| 1043 | return nil, err |
| 1044 | } |
| 1045 | if interceptor == nil { |
| 1046 | return srv.(ExtensionServer).GetExtValue(ctx, in) |
| 1047 | } |
| 1048 | info := &grpc.UnaryServerInfo{ |
| 1049 | Server: srv, |
| 1050 | FullMethod: "/extension.Extension/GetExtValue", |
| 1051 | } |
| 1052 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1053 | return srv.(ExtensionServer).GetExtValue(ctx, req.(*SingleGetValueRequest)) |
| 1054 | } |
| 1055 | return interceptor(ctx, in, info, handler) |
| 1056 | } |
| 1057 | |
| 1058 | func _Extension_SetExtValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1059 | in := new(SingleSetValueRequest) |
| 1060 | if err := dec(in); err != nil { |
| 1061 | return nil, err |
| 1062 | } |
| 1063 | if interceptor == nil { |
| 1064 | return srv.(ExtensionServer).SetExtValue(ctx, in) |
| 1065 | } |
| 1066 | info := &grpc.UnaryServerInfo{ |
| 1067 | Server: srv, |
| 1068 | FullMethod: "/extension.Extension/SetExtValue", |
| 1069 | } |
| 1070 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1071 | return srv.(ExtensionServer).SetExtValue(ctx, req.(*SingleSetValueRequest)) |
| 1072 | } |
| 1073 | return interceptor(ctx, in, info, handler) |
| 1074 | } |
| 1075 | |
| 1076 | var _Extension_serviceDesc = grpc.ServiceDesc{ |
| 1077 | ServiceName: "extension.Extension", |
| 1078 | HandlerType: (*ExtensionServer)(nil), |
| 1079 | Methods: []grpc.MethodDesc{ |
| 1080 | { |
| 1081 | MethodName: "GetExtValue", |
| 1082 | Handler: _Extension_GetExtValue_Handler, |
| 1083 | }, |
| 1084 | { |
| 1085 | MethodName: "SetExtValue", |
| 1086 | Handler: _Extension_SetExtValue_Handler, |
| 1087 | }, |
| 1088 | }, |
| 1089 | Streams: []grpc.StreamDesc{}, |
| 1090 | Metadata: "voltha_protos/extensions.proto", |
| 1091 | } |