blob: 7f6a9213aa5ca1c6b29f15f028d9c64a3dd8def2 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: voltha_protos/events.proto
package voltha
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
_ "github.com/opencord/voltha-protos/v3/go/common"
_ "google.golang.org/genproto/googleapis/api/annotations"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type ConfigEventType_Types int32
const (
ConfigEventType_add ConfigEventType_Types = 0
ConfigEventType_remove ConfigEventType_Types = 1
ConfigEventType_update ConfigEventType_Types = 2
)
var ConfigEventType_Types_name = map[int32]string{
0: "add",
1: "remove",
2: "update",
}
var ConfigEventType_Types_value = map[string]int32{
"add": 0,
"remove": 1,
"update": 2,
}
func (x ConfigEventType_Types) String() string {
return proto.EnumName(ConfigEventType_Types_name, int32(x))
}
func (ConfigEventType_Types) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{0, 0}
}
type KpiEventType_Types int32
const (
KpiEventType_slice KpiEventType_Types = 0
KpiEventType_ts KpiEventType_Types = 1
)
var KpiEventType_Types_name = map[int32]string{
0: "slice",
1: "ts",
}
var KpiEventType_Types_value = map[string]int32{
"slice": 0,
"ts": 1,
}
func (x KpiEventType_Types) String() string {
return proto.EnumName(KpiEventType_Types_name, int32(x))
}
func (KpiEventType_Types) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{2, 0}
}
type AlarmEventType_Types int32
const (
AlarmEventType_COMMUNICATION AlarmEventType_Types = 0
AlarmEventType_ENVIRONMENT AlarmEventType_Types = 1
AlarmEventType_EQUIPMENT AlarmEventType_Types = 2
AlarmEventType_SERVICE AlarmEventType_Types = 3
AlarmEventType_PROCESSING AlarmEventType_Types = 4
AlarmEventType_SECURITY AlarmEventType_Types = 5
)
var AlarmEventType_Types_name = map[int32]string{
0: "COMMUNICATION",
1: "ENVIRONMENT",
2: "EQUIPMENT",
3: "SERVICE",
4: "PROCESSING",
5: "SECURITY",
}
var AlarmEventType_Types_value = map[string]int32{
"COMMUNICATION": 0,
"ENVIRONMENT": 1,
"EQUIPMENT": 2,
"SERVICE": 3,
"PROCESSING": 4,
"SECURITY": 5,
}
func (x AlarmEventType_Types) String() string {
return proto.EnumName(AlarmEventType_Types_name, int32(x))
}
func (AlarmEventType_Types) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{8, 0}
}
type AlarmEventCategory_Types int32
const (
AlarmEventCategory_PON AlarmEventCategory_Types = 0
AlarmEventCategory_OLT AlarmEventCategory_Types = 1
AlarmEventCategory_ONT AlarmEventCategory_Types = 2
AlarmEventCategory_ONU AlarmEventCategory_Types = 3
AlarmEventCategory_NNI AlarmEventCategory_Types = 4
)
var AlarmEventCategory_Types_name = map[int32]string{
0: "PON",
1: "OLT",
2: "ONT",
3: "ONU",
4: "NNI",
}
var AlarmEventCategory_Types_value = map[string]int32{
"PON": 0,
"OLT": 1,
"ONT": 2,
"ONU": 3,
"NNI": 4,
}
func (x AlarmEventCategory_Types) String() string {
return proto.EnumName(AlarmEventCategory_Types_name, int32(x))
}
func (AlarmEventCategory_Types) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{9, 0}
}
type AlarmEventState_Types int32
const (
AlarmEventState_RAISED AlarmEventState_Types = 0
AlarmEventState_CLEARED AlarmEventState_Types = 1
)
var AlarmEventState_Types_name = map[int32]string{
0: "RAISED",
1: "CLEARED",
}
var AlarmEventState_Types_value = map[string]int32{
"RAISED": 0,
"CLEARED": 1,
}
func (x AlarmEventState_Types) String() string {
return proto.EnumName(AlarmEventState_Types_name, int32(x))
}
func (AlarmEventState_Types) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{10, 0}
}
type AlarmEventSeverity_Types int32
const (
AlarmEventSeverity_INDETERMINATE AlarmEventSeverity_Types = 0
AlarmEventSeverity_WARNING AlarmEventSeverity_Types = 1
AlarmEventSeverity_MINOR AlarmEventSeverity_Types = 2
AlarmEventSeverity_MAJOR AlarmEventSeverity_Types = 3
AlarmEventSeverity_CRITICAL AlarmEventSeverity_Types = 4
)
var AlarmEventSeverity_Types_name = map[int32]string{
0: "INDETERMINATE",
1: "WARNING",
2: "MINOR",
3: "MAJOR",
4: "CRITICAL",
}
var AlarmEventSeverity_Types_value = map[string]int32{
"INDETERMINATE": 0,
"WARNING": 1,
"MINOR": 2,
"MAJOR": 3,
"CRITICAL": 4,
}
func (x AlarmEventSeverity_Types) String() string {
return proto.EnumName(AlarmEventSeverity_Types_name, int32(x))
}
func (AlarmEventSeverity_Types) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{11, 0}
}
type EventCategory_Types int32
const (
EventCategory_COMMUNICATION EventCategory_Types = 0
EventCategory_ENVIRONMENT EventCategory_Types = 1
EventCategory_EQUIPMENT EventCategory_Types = 2
EventCategory_SERVICE EventCategory_Types = 3
EventCategory_PROCESSING EventCategory_Types = 4
EventCategory_SECURITY EventCategory_Types = 5
)
var EventCategory_Types_name = map[int32]string{
0: "COMMUNICATION",
1: "ENVIRONMENT",
2: "EQUIPMENT",
3: "SERVICE",
4: "PROCESSING",
5: "SECURITY",
}
var EventCategory_Types_value = map[string]int32{
"COMMUNICATION": 0,
"ENVIRONMENT": 1,
"EQUIPMENT": 2,
"SERVICE": 3,
"PROCESSING": 4,
"SECURITY": 5,
}
func (x EventCategory_Types) String() string {
return proto.EnumName(EventCategory_Types_name, int32(x))
}
func (EventCategory_Types) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{14, 0}
}
type EventSubCategory_Types int32
const (
EventSubCategory_PON EventSubCategory_Types = 0
EventSubCategory_OLT EventSubCategory_Types = 1
EventSubCategory_ONT EventSubCategory_Types = 2
EventSubCategory_ONU EventSubCategory_Types = 3
EventSubCategory_NNI EventSubCategory_Types = 4
)
var EventSubCategory_Types_name = map[int32]string{
0: "PON",
1: "OLT",
2: "ONT",
3: "ONU",
4: "NNI",
}
var EventSubCategory_Types_value = map[string]int32{
"PON": 0,
"OLT": 1,
"ONT": 2,
"ONU": 3,
"NNI": 4,
}
func (x EventSubCategory_Types) String() string {
return proto.EnumName(EventSubCategory_Types_name, int32(x))
}
func (EventSubCategory_Types) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{15, 0}
}
type EventType_Types int32
const (
EventType_CONFIG_EVENT EventType_Types = 0
EventType_KPI_EVENT EventType_Types = 1
EventType_KPI_EVENT2 EventType_Types = 2
EventType_DEVICE_EVENT EventType_Types = 3
)
var EventType_Types_name = map[int32]string{
0: "CONFIG_EVENT",
1: "KPI_EVENT",
2: "KPI_EVENT2",
3: "DEVICE_EVENT",
}
var EventType_Types_value = map[string]int32{
"CONFIG_EVENT": 0,
"KPI_EVENT": 1,
"KPI_EVENT2": 2,
"DEVICE_EVENT": 3,
}
func (x EventType_Types) String() string {
return proto.EnumName(EventType_Types_name, int32(x))
}
func (EventType_Types) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{16, 0}
}
type ConfigEventType struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigEventType) Reset() { *m = ConfigEventType{} }
func (m *ConfigEventType) String() string { return proto.CompactTextString(m) }
func (*ConfigEventType) ProtoMessage() {}
func (*ConfigEventType) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{0}
}
func (m *ConfigEventType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigEventType.Unmarshal(m, b)
}
func (m *ConfigEventType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigEventType.Marshal(b, m, deterministic)
}
func (m *ConfigEventType) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigEventType.Merge(m, src)
}
func (m *ConfigEventType) XXX_Size() int {
return xxx_messageInfo_ConfigEventType.Size(m)
}
func (m *ConfigEventType) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigEventType.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigEventType proto.InternalMessageInfo
type ConfigEvent struct {
Type ConfigEventType_Types `protobuf:"varint,1,opt,name=type,proto3,enum=voltha.ConfigEventType_Types" json:"type,omitempty"`
Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigEvent) Reset() { *m = ConfigEvent{} }
func (m *ConfigEvent) String() string { return proto.CompactTextString(m) }
func (*ConfigEvent) ProtoMessage() {}
func (*ConfigEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{1}
}
func (m *ConfigEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigEvent.Unmarshal(m, b)
}
func (m *ConfigEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigEvent.Marshal(b, m, deterministic)
}
func (m *ConfigEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigEvent.Merge(m, src)
}
func (m *ConfigEvent) XXX_Size() int {
return xxx_messageInfo_ConfigEvent.Size(m)
}
func (m *ConfigEvent) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigEvent.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigEvent proto.InternalMessageInfo
func (m *ConfigEvent) GetType() ConfigEventType_Types {
if m != nil {
return m.Type
}
return ConfigEventType_add
}
func (m *ConfigEvent) GetHash() string {
if m != nil {
return m.Hash
}
return ""
}
func (m *ConfigEvent) GetData() string {
if m != nil {
return m.Data
}
return ""
}
type KpiEventType struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KpiEventType) Reset() { *m = KpiEventType{} }
func (m *KpiEventType) String() string { return proto.CompactTextString(m) }
func (*KpiEventType) ProtoMessage() {}
func (*KpiEventType) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{2}
}
func (m *KpiEventType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KpiEventType.Unmarshal(m, b)
}
func (m *KpiEventType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KpiEventType.Marshal(b, m, deterministic)
}
func (m *KpiEventType) XXX_Merge(src proto.Message) {
xxx_messageInfo_KpiEventType.Merge(m, src)
}
func (m *KpiEventType) XXX_Size() int {
return xxx_messageInfo_KpiEventType.Size(m)
}
func (m *KpiEventType) XXX_DiscardUnknown() {
xxx_messageInfo_KpiEventType.DiscardUnknown(m)
}
var xxx_messageInfo_KpiEventType proto.InternalMessageInfo
//
// Struct to convey a dictionary of metric metadata.
type MetricMetaData struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
Ts float64 `protobuf:"fixed64,2,opt,name=ts,proto3" json:"ts,omitempty"`
LogicalDeviceId string `protobuf:"bytes,3,opt,name=logical_device_id,json=logicalDeviceId,proto3" json:"logical_device_id,omitempty"`
// (equivalent to the DPID that ONOS has
// for the VOLTHA device without the
// 'of:' prefix
SerialNo string `protobuf:"bytes,4,opt,name=serial_no,json=serialNo,proto3" json:"serial_no,omitempty"`
DeviceId string `protobuf:"bytes,5,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
Context map[string]string `protobuf:"bytes,6,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MetricMetaData) Reset() { *m = MetricMetaData{} }
func (m *MetricMetaData) String() string { return proto.CompactTextString(m) }
func (*MetricMetaData) ProtoMessage() {}
func (*MetricMetaData) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{3}
}
func (m *MetricMetaData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MetricMetaData.Unmarshal(m, b)
}
func (m *MetricMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MetricMetaData.Marshal(b, m, deterministic)
}
func (m *MetricMetaData) XXX_Merge(src proto.Message) {
xxx_messageInfo_MetricMetaData.Merge(m, src)
}
func (m *MetricMetaData) XXX_Size() int {
return xxx_messageInfo_MetricMetaData.Size(m)
}
func (m *MetricMetaData) XXX_DiscardUnknown() {
xxx_messageInfo_MetricMetaData.DiscardUnknown(m)
}
var xxx_messageInfo_MetricMetaData proto.InternalMessageInfo
func (m *MetricMetaData) GetTitle() string {
if m != nil {
return m.Title
}
return ""
}
func (m *MetricMetaData) GetTs() float64 {
if m != nil {
return m.Ts
}
return 0
}
func (m *MetricMetaData) GetLogicalDeviceId() string {
if m != nil {
return m.LogicalDeviceId
}
return ""
}
func (m *MetricMetaData) GetSerialNo() string {
if m != nil {
return m.SerialNo
}
return ""
}
func (m *MetricMetaData) GetDeviceId() string {
if m != nil {
return m.DeviceId
}
return ""
}
func (m *MetricMetaData) GetContext() map[string]string {
if m != nil {
return m.Context
}
return nil
}
//
// Struct to convey a dictionary of metric->value pairs. Typically used in
// pure shared-timestamp or shared-timestamp + shared object prefix situations.
type MetricValuePairs struct {
// Metric / value pairs.
Metrics map[string]float32 `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MetricValuePairs) Reset() { *m = MetricValuePairs{} }
func (m *MetricValuePairs) String() string { return proto.CompactTextString(m) }
func (*MetricValuePairs) ProtoMessage() {}
func (*MetricValuePairs) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{4}
}
func (m *MetricValuePairs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MetricValuePairs.Unmarshal(m, b)
}
func (m *MetricValuePairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MetricValuePairs.Marshal(b, m, deterministic)
}
func (m *MetricValuePairs) XXX_Merge(src proto.Message) {
xxx_messageInfo_MetricValuePairs.Merge(m, src)
}
func (m *MetricValuePairs) XXX_Size() int {
return xxx_messageInfo_MetricValuePairs.Size(m)
}
func (m *MetricValuePairs) XXX_DiscardUnknown() {
xxx_messageInfo_MetricValuePairs.DiscardUnknown(m)
}
var xxx_messageInfo_MetricValuePairs proto.InternalMessageInfo
func (m *MetricValuePairs) GetMetrics() map[string]float32 {
if m != nil {
return m.Metrics
}
return nil
}
//
// Struct to group metadata for a metric (or group of metrics) with the key-value
// pairs of collected metrics
type MetricInformation struct {
Metadata *MetricMetaData `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
Metrics map[string]float32 `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"fixed32,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MetricInformation) Reset() { *m = MetricInformation{} }
func (m *MetricInformation) String() string { return proto.CompactTextString(m) }
func (*MetricInformation) ProtoMessage() {}
func (*MetricInformation) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{5}
}
func (m *MetricInformation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MetricInformation.Unmarshal(m, b)
}
func (m *MetricInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MetricInformation.Marshal(b, m, deterministic)
}
func (m *MetricInformation) XXX_Merge(src proto.Message) {
xxx_messageInfo_MetricInformation.Merge(m, src)
}
func (m *MetricInformation) XXX_Size() int {
return xxx_messageInfo_MetricInformation.Size(m)
}
func (m *MetricInformation) XXX_DiscardUnknown() {
xxx_messageInfo_MetricInformation.DiscardUnknown(m)
}
var xxx_messageInfo_MetricInformation proto.InternalMessageInfo
func (m *MetricInformation) GetMetadata() *MetricMetaData {
if m != nil {
return m.Metadata
}
return nil
}
func (m *MetricInformation) GetMetrics() map[string]float32 {
if m != nil {
return m.Metrics
}
return nil
}
//
// Legacy KPI Event structured. In mid-August, the KPI event format was updated
// to a more easily parsable format. See VOL-1140
// for more information.
type KpiEvent struct {
Type KpiEventType_Types `protobuf:"varint,1,opt,name=type,proto3,enum=voltha.KpiEventType_Types" json:"type,omitempty"`
Ts float32 `protobuf:"fixed32,2,opt,name=ts,proto3" json:"ts,omitempty"`
Prefixes map[string]*MetricValuePairs `protobuf:"bytes,3,rep,name=prefixes,proto3" json:"prefixes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KpiEvent) Reset() { *m = KpiEvent{} }
func (m *KpiEvent) String() string { return proto.CompactTextString(m) }
func (*KpiEvent) ProtoMessage() {}
func (*KpiEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{6}
}
func (m *KpiEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KpiEvent.Unmarshal(m, b)
}
func (m *KpiEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KpiEvent.Marshal(b, m, deterministic)
}
func (m *KpiEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_KpiEvent.Merge(m, src)
}
func (m *KpiEvent) XXX_Size() int {
return xxx_messageInfo_KpiEvent.Size(m)
}
func (m *KpiEvent) XXX_DiscardUnknown() {
xxx_messageInfo_KpiEvent.DiscardUnknown(m)
}
var xxx_messageInfo_KpiEvent proto.InternalMessageInfo
func (m *KpiEvent) GetType() KpiEventType_Types {
if m != nil {
return m.Type
}
return KpiEventType_slice
}
func (m *KpiEvent) GetTs() float32 {
if m != nil {
return m.Ts
}
return 0
}
func (m *KpiEvent) GetPrefixes() map[string]*MetricValuePairs {
if m != nil {
return m.Prefixes
}
return nil
}
type KpiEvent2 struct {
// Type of KPI Event
Type KpiEventType_Types `protobuf:"varint,1,opt,name=type,proto3,enum=voltha.KpiEventType_Types" json:"type,omitempty"`
// Fields used when for slice:
Ts float64 `protobuf:"fixed64,2,opt,name=ts,proto3" json:"ts,omitempty"`
SliceData []*MetricInformation `protobuf:"bytes,3,rep,name=slice_data,json=sliceData,proto3" json:"slice_data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *KpiEvent2) Reset() { *m = KpiEvent2{} }
func (m *KpiEvent2) String() string { return proto.CompactTextString(m) }
func (*KpiEvent2) ProtoMessage() {}
func (*KpiEvent2) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{7}
}
func (m *KpiEvent2) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_KpiEvent2.Unmarshal(m, b)
}
func (m *KpiEvent2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_KpiEvent2.Marshal(b, m, deterministic)
}
func (m *KpiEvent2) XXX_Merge(src proto.Message) {
xxx_messageInfo_KpiEvent2.Merge(m, src)
}
func (m *KpiEvent2) XXX_Size() int {
return xxx_messageInfo_KpiEvent2.Size(m)
}
func (m *KpiEvent2) XXX_DiscardUnknown() {
xxx_messageInfo_KpiEvent2.DiscardUnknown(m)
}
var xxx_messageInfo_KpiEvent2 proto.InternalMessageInfo
func (m *KpiEvent2) GetType() KpiEventType_Types {
if m != nil {
return m.Type
}
return KpiEventType_slice
}
func (m *KpiEvent2) GetTs() float64 {
if m != nil {
return m.Ts
}
return 0
}
func (m *KpiEvent2) GetSliceData() []*MetricInformation {
if m != nil {
return m.SliceData
}
return nil
}
//
// Identify to the area of the system impacted by the alarm
// To be deprecated once python version of OpenOLT adapter
// moves to the new event defination for device alarms
type AlarmEventType struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AlarmEventType) Reset() { *m = AlarmEventType{} }
func (m *AlarmEventType) String() string { return proto.CompactTextString(m) }
func (*AlarmEventType) ProtoMessage() {}
func (*AlarmEventType) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{8}
}
func (m *AlarmEventType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AlarmEventType.Unmarshal(m, b)
}
func (m *AlarmEventType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AlarmEventType.Marshal(b, m, deterministic)
}
func (m *AlarmEventType) XXX_Merge(src proto.Message) {
xxx_messageInfo_AlarmEventType.Merge(m, src)
}
func (m *AlarmEventType) XXX_Size() int {
return xxx_messageInfo_AlarmEventType.Size(m)
}
func (m *AlarmEventType) XXX_DiscardUnknown() {
xxx_messageInfo_AlarmEventType.DiscardUnknown(m)
}
var xxx_messageInfo_AlarmEventType proto.InternalMessageInfo
//
// Identify to the functional category originating the alarm
// To be deprecated once python version of OpenOLT adapter
// as well as OpenONU adapter moves to the new event
// defination for device alarms
type AlarmEventCategory struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AlarmEventCategory) Reset() { *m = AlarmEventCategory{} }
func (m *AlarmEventCategory) String() string { return proto.CompactTextString(m) }
func (*AlarmEventCategory) ProtoMessage() {}
func (*AlarmEventCategory) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{9}
}
func (m *AlarmEventCategory) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AlarmEventCategory.Unmarshal(m, b)
}
func (m *AlarmEventCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AlarmEventCategory.Marshal(b, m, deterministic)
}
func (m *AlarmEventCategory) XXX_Merge(src proto.Message) {
xxx_messageInfo_AlarmEventCategory.Merge(m, src)
}
func (m *AlarmEventCategory) XXX_Size() int {
return xxx_messageInfo_AlarmEventCategory.Size(m)
}
func (m *AlarmEventCategory) XXX_DiscardUnknown() {
xxx_messageInfo_AlarmEventCategory.DiscardUnknown(m)
}
var xxx_messageInfo_AlarmEventCategory proto.InternalMessageInfo
//
// Active state of the alarm
// To be deprecated once python version of OpenOLT adapter
// as well as OpenONU adapter moves to the new event
// defination for device alarms
type AlarmEventState struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AlarmEventState) Reset() { *m = AlarmEventState{} }
func (m *AlarmEventState) String() string { return proto.CompactTextString(m) }
func (*AlarmEventState) ProtoMessage() {}
func (*AlarmEventState) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{10}
}
func (m *AlarmEventState) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AlarmEventState.Unmarshal(m, b)
}
func (m *AlarmEventState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AlarmEventState.Marshal(b, m, deterministic)
}
func (m *AlarmEventState) XXX_Merge(src proto.Message) {
xxx_messageInfo_AlarmEventState.Merge(m, src)
}
func (m *AlarmEventState) XXX_Size() int {
return xxx_messageInfo_AlarmEventState.Size(m)
}
func (m *AlarmEventState) XXX_DiscardUnknown() {
xxx_messageInfo_AlarmEventState.DiscardUnknown(m)
}
var xxx_messageInfo_AlarmEventState proto.InternalMessageInfo
//
// Identify the overall impact of the alarm on the system
// To be deprecated once python version of OpenOLT adapter
// as well as OpenONU adapter moves to the new event
// defination for device alarms
type AlarmEventSeverity struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AlarmEventSeverity) Reset() { *m = AlarmEventSeverity{} }
func (m *AlarmEventSeverity) String() string { return proto.CompactTextString(m) }
func (*AlarmEventSeverity) ProtoMessage() {}
func (*AlarmEventSeverity) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{11}
}
func (m *AlarmEventSeverity) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AlarmEventSeverity.Unmarshal(m, b)
}
func (m *AlarmEventSeverity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AlarmEventSeverity.Marshal(b, m, deterministic)
}
func (m *AlarmEventSeverity) XXX_Merge(src proto.Message) {
xxx_messageInfo_AlarmEventSeverity.Merge(m, src)
}
func (m *AlarmEventSeverity) XXX_Size() int {
return xxx_messageInfo_AlarmEventSeverity.Size(m)
}
func (m *AlarmEventSeverity) XXX_DiscardUnknown() {
xxx_messageInfo_AlarmEventSeverity.DiscardUnknown(m)
}
var xxx_messageInfo_AlarmEventSeverity proto.InternalMessageInfo
//
// To be deprecated once python version of OpenOLT adapter
// as well as OpenONU adapter moves to the new event
// defination for device alarms
type AlarmEvent struct {
// Unique ID for this alarm. e.g. voltha.some_olt.1234
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Refers to the area of the system impacted by the alarm
Type AlarmEventType_Types `protobuf:"varint,2,opt,name=type,proto3,enum=voltha.AlarmEventType_Types" json:"type,omitempty"`
// Refers to functional category of the alarm
Category AlarmEventCategory_Types `protobuf:"varint,3,opt,name=category,proto3,enum=voltha.AlarmEventCategory_Types" json:"category,omitempty"`
// Current active state of the alarm
State AlarmEventState_Types `protobuf:"varint,4,opt,name=state,proto3,enum=voltha.AlarmEventState_Types" json:"state,omitempty"`
// Overall impact of the alarm on the system
Severity AlarmEventSeverity_Types `protobuf:"varint,5,opt,name=severity,proto3,enum=voltha.AlarmEventSeverity_Types" json:"severity,omitempty"`
// Timestamp at which the alarm was first raised
// TODO: Is this obsolete? Eventheader already has a raised_ts
RaisedTs *timestamp.Timestamp `protobuf:"bytes,6,opt,name=raised_ts,json=raisedTs,proto3" json:"raised_ts,omitempty"`
// Timestamp at which the alarm was reported
// TODO: Is this obsolete? Eventheader already has a reported_ts
ReportedTs *timestamp.Timestamp `protobuf:"bytes,7,opt,name=reported_ts,json=reportedTs,proto3" json:"reported_ts,omitempty"`
// Timestamp at which the alarm has changed since it was raised
ChangedTs *timestamp.Timestamp `protobuf:"bytes,8,opt,name=changed_ts,json=changedTs,proto3" json:"changed_ts,omitempty"`
// Identifier of the originating resource of the alarm
ResourceId string `protobuf:"bytes,9,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
// Textual explanation of the alarm
Description string `protobuf:"bytes,10,opt,name=description,proto3" json:"description,omitempty"`
// Key/Value storage for extra information that may give context to the alarm
Context map[string]string `protobuf:"bytes,11,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// logical device id
LogicalDeviceId string `protobuf:"bytes,12,opt,name=logical_device_id,json=logicalDeviceId,proto3" json:"logical_device_id,omitempty"`
// alarm_type name indicates clearly the name of the alarm
AlarmTypeName string `protobuf:"bytes,13,opt,name=alarm_type_name,json=alarmTypeName,proto3" json:"alarm_type_name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AlarmEvent) Reset() { *m = AlarmEvent{} }
func (m *AlarmEvent) String() string { return proto.CompactTextString(m) }
func (*AlarmEvent) ProtoMessage() {}
func (*AlarmEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{12}
}
func (m *AlarmEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AlarmEvent.Unmarshal(m, b)
}
func (m *AlarmEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AlarmEvent.Marshal(b, m, deterministic)
}
func (m *AlarmEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_AlarmEvent.Merge(m, src)
}
func (m *AlarmEvent) XXX_Size() int {
return xxx_messageInfo_AlarmEvent.Size(m)
}
func (m *AlarmEvent) XXX_DiscardUnknown() {
xxx_messageInfo_AlarmEvent.DiscardUnknown(m)
}
var xxx_messageInfo_AlarmEvent proto.InternalMessageInfo
func (m *AlarmEvent) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *AlarmEvent) GetType() AlarmEventType_Types {
if m != nil {
return m.Type
}
return AlarmEventType_COMMUNICATION
}
func (m *AlarmEvent) GetCategory() AlarmEventCategory_Types {
if m != nil {
return m.Category
}
return AlarmEventCategory_PON
}
func (m *AlarmEvent) GetState() AlarmEventState_Types {
if m != nil {
return m.State
}
return AlarmEventState_RAISED
}
func (m *AlarmEvent) GetSeverity() AlarmEventSeverity_Types {
if m != nil {
return m.Severity
}
return AlarmEventSeverity_INDETERMINATE
}
func (m *AlarmEvent) GetRaisedTs() *timestamp.Timestamp {
if m != nil {
return m.RaisedTs
}
return nil
}
func (m *AlarmEvent) GetReportedTs() *timestamp.Timestamp {
if m != nil {
return m.ReportedTs
}
return nil
}
func (m *AlarmEvent) GetChangedTs() *timestamp.Timestamp {
if m != nil {
return m.ChangedTs
}
return nil
}
func (m *AlarmEvent) GetResourceId() string {
if m != nil {
return m.ResourceId
}
return ""
}
func (m *AlarmEvent) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *AlarmEvent) GetContext() map[string]string {
if m != nil {
return m.Context
}
return nil
}
func (m *AlarmEvent) GetLogicalDeviceId() string {
if m != nil {
return m.LogicalDeviceId
}
return ""
}
func (m *AlarmEvent) GetAlarmTypeName() string {
if m != nil {
return m.AlarmTypeName
}
return ""
}
//
// Describes the events specific to device
type DeviceEvent struct {
// Identifier of the originating resource of the event, for ex: device_id
ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
// device_event_name indicates clearly the name of the device event
DeviceEventName string `protobuf:"bytes,2,opt,name=device_event_name,json=deviceEventName,proto3" json:"device_event_name,omitempty"`
// Textual explanation of the device event
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Key/Value storage for extra information that may give context to the event
Context map[string]string `protobuf:"bytes,4,rep,name=context,proto3" json:"context,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceEvent) Reset() { *m = DeviceEvent{} }
func (m *DeviceEvent) String() string { return proto.CompactTextString(m) }
func (*DeviceEvent) ProtoMessage() {}
func (*DeviceEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{13}
}
func (m *DeviceEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceEvent.Unmarshal(m, b)
}
func (m *DeviceEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceEvent.Marshal(b, m, deterministic)
}
func (m *DeviceEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceEvent.Merge(m, src)
}
func (m *DeviceEvent) XXX_Size() int {
return xxx_messageInfo_DeviceEvent.Size(m)
}
func (m *DeviceEvent) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceEvent.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceEvent proto.InternalMessageInfo
func (m *DeviceEvent) GetResourceId() string {
if m != nil {
return m.ResourceId
}
return ""
}
func (m *DeviceEvent) GetDeviceEventName() string {
if m != nil {
return m.DeviceEventName
}
return ""
}
func (m *DeviceEvent) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *DeviceEvent) GetContext() map[string]string {
if m != nil {
return m.Context
}
return nil
}
//
// Identify the area of the system impacted by the event.
type EventCategory struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EventCategory) Reset() { *m = EventCategory{} }
func (m *EventCategory) String() string { return proto.CompactTextString(m) }
func (*EventCategory) ProtoMessage() {}
func (*EventCategory) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{14}
}
func (m *EventCategory) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EventCategory.Unmarshal(m, b)
}
func (m *EventCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EventCategory.Marshal(b, m, deterministic)
}
func (m *EventCategory) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventCategory.Merge(m, src)
}
func (m *EventCategory) XXX_Size() int {
return xxx_messageInfo_EventCategory.Size(m)
}
func (m *EventCategory) XXX_DiscardUnknown() {
xxx_messageInfo_EventCategory.DiscardUnknown(m)
}
var xxx_messageInfo_EventCategory proto.InternalMessageInfo
//
// Identify the functional category originating the event
type EventSubCategory struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EventSubCategory) Reset() { *m = EventSubCategory{} }
func (m *EventSubCategory) String() string { return proto.CompactTextString(m) }
func (*EventSubCategory) ProtoMessage() {}
func (*EventSubCategory) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{15}
}
func (m *EventSubCategory) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EventSubCategory.Unmarshal(m, b)
}
func (m *EventSubCategory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EventSubCategory.Marshal(b, m, deterministic)
}
func (m *EventSubCategory) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventSubCategory.Merge(m, src)
}
func (m *EventSubCategory) XXX_Size() int {
return xxx_messageInfo_EventSubCategory.Size(m)
}
func (m *EventSubCategory) XXX_DiscardUnknown() {
xxx_messageInfo_EventSubCategory.DiscardUnknown(m)
}
var xxx_messageInfo_EventSubCategory proto.InternalMessageInfo
//
// Identify the type of event
type EventType struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EventType) Reset() { *m = EventType{} }
func (m *EventType) String() string { return proto.CompactTextString(m) }
func (*EventType) ProtoMessage() {}
func (*EventType) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{16}
}
func (m *EventType) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EventType.Unmarshal(m, b)
}
func (m *EventType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EventType.Marshal(b, m, deterministic)
}
func (m *EventType) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventType.Merge(m, src)
}
func (m *EventType) XXX_Size() int {
return xxx_messageInfo_EventType.Size(m)
}
func (m *EventType) XXX_DiscardUnknown() {
xxx_messageInfo_EventType.DiscardUnknown(m)
}
var xxx_messageInfo_EventType proto.InternalMessageInfo
//
// Identify the functional category originating the event
type EventHeader struct {
// Unique ID for this event. e.g. voltha.some_olt.1234
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Refers to the functional area affect by the event
Category EventCategory_Types `protobuf:"varint,2,opt,name=category,proto3,enum=voltha.EventCategory_Types" json:"category,omitempty"`
// Refers to functional category of the event
SubCategory EventSubCategory_Types `protobuf:"varint,3,opt,name=sub_category,json=subCategory,proto3,enum=voltha.EventSubCategory_Types" json:"sub_category,omitempty"`
// Refers to the type of the event
Type EventType_Types `protobuf:"varint,4,opt,name=type,proto3,enum=voltha.EventType_Types" json:"type,omitempty"`
// The version identifier for this event type, thus allowing each
// event type to evolve independently. The version should be in the
// format “MAJOR.MINOR” format and minor changes must only be additive
// and non-breaking.
TypeVersion string `protobuf:"bytes,5,opt,name=type_version,json=typeVersion,proto3" json:"type_version,omitempty"`
// Timestamp at which the event was first raised.
// This represents the UTC time stamp since epoch (in seconds) when the
// the event was first raised from the source entity.
// If the source entity doesn't send the raised_ts, this shall be set
// to timestamp when the event was received.
RaisedTs *timestamp.Timestamp `protobuf:"bytes,6,opt,name=raised_ts,json=raisedTs,proto3" json:"raised_ts,omitempty"`
// Timestamp at which the event was reported.
// This represents the UTC time stamp since epoch (in seconds) when the
// the event was reported (this time stamp is >= raised_ts).
// If the source entity that reported this event doesn't send the
// reported_ts, this shall be set to the same value as raised_ts.
ReportedTs *timestamp.Timestamp `protobuf:"bytes,7,opt,name=reported_ts,json=reportedTs,proto3" json:"reported_ts,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EventHeader) Reset() { *m = EventHeader{} }
func (m *EventHeader) String() string { return proto.CompactTextString(m) }
func (*EventHeader) ProtoMessage() {}
func (*EventHeader) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{17}
}
func (m *EventHeader) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EventHeader.Unmarshal(m, b)
}
func (m *EventHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EventHeader.Marshal(b, m, deterministic)
}
func (m *EventHeader) XXX_Merge(src proto.Message) {
xxx_messageInfo_EventHeader.Merge(m, src)
}
func (m *EventHeader) XXX_Size() int {
return xxx_messageInfo_EventHeader.Size(m)
}
func (m *EventHeader) XXX_DiscardUnknown() {
xxx_messageInfo_EventHeader.DiscardUnknown(m)
}
var xxx_messageInfo_EventHeader proto.InternalMessageInfo
func (m *EventHeader) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *EventHeader) GetCategory() EventCategory_Types {
if m != nil {
return m.Category
}
return EventCategory_COMMUNICATION
}
func (m *EventHeader) GetSubCategory() EventSubCategory_Types {
if m != nil {
return m.SubCategory
}
return EventSubCategory_PON
}
func (m *EventHeader) GetType() EventType_Types {
if m != nil {
return m.Type
}
return EventType_CONFIG_EVENT
}
func (m *EventHeader) GetTypeVersion() string {
if m != nil {
return m.TypeVersion
}
return ""
}
func (m *EventHeader) GetRaisedTs() *timestamp.Timestamp {
if m != nil {
return m.RaisedTs
}
return nil
}
func (m *EventHeader) GetReportedTs() *timestamp.Timestamp {
if m != nil {
return m.ReportedTs
}
return nil
}
//
// Event Structure
type Event struct {
// event header
Header *EventHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// oneof event types referred by EventType.
//
// Types that are valid to be assigned to EventType:
// *Event_ConfigEvent
// *Event_KpiEvent
// *Event_KpiEvent2
// *Event_DeviceEvent
EventType isEvent_EventType `protobuf_oneof:"event_type"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Event) Reset() { *m = Event{} }
func (m *Event) String() string { return proto.CompactTextString(m) }
func (*Event) ProtoMessage() {}
func (*Event) Descriptor() ([]byte, []int) {
return fileDescriptor_e63e6c07044fd2c4, []int{18}
}
func (m *Event) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Event.Unmarshal(m, b)
}
func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Event.Marshal(b, m, deterministic)
}
func (m *Event) XXX_Merge(src proto.Message) {
xxx_messageInfo_Event.Merge(m, src)
}
func (m *Event) XXX_Size() int {
return xxx_messageInfo_Event.Size(m)
}
func (m *Event) XXX_DiscardUnknown() {
xxx_messageInfo_Event.DiscardUnknown(m)
}
var xxx_messageInfo_Event proto.InternalMessageInfo
func (m *Event) GetHeader() *EventHeader {
if m != nil {
return m.Header
}
return nil
}
type isEvent_EventType interface {
isEvent_EventType()
}
type Event_ConfigEvent struct {
ConfigEvent *ConfigEvent `protobuf:"bytes,2,opt,name=config_event,json=configEvent,proto3,oneof"`
}
type Event_KpiEvent struct {
KpiEvent *KpiEvent `protobuf:"bytes,3,opt,name=kpi_event,json=kpiEvent,proto3,oneof"`
}
type Event_KpiEvent2 struct {
KpiEvent2 *KpiEvent2 `protobuf:"bytes,4,opt,name=kpi_event2,json=kpiEvent2,proto3,oneof"`
}
type Event_DeviceEvent struct {
DeviceEvent *DeviceEvent `protobuf:"bytes,5,opt,name=device_event,json=deviceEvent,proto3,oneof"`
}
func (*Event_ConfigEvent) isEvent_EventType() {}
func (*Event_KpiEvent) isEvent_EventType() {}
func (*Event_KpiEvent2) isEvent_EventType() {}
func (*Event_DeviceEvent) isEvent_EventType() {}
func (m *Event) GetEventType() isEvent_EventType {
if m != nil {
return m.EventType
}
return nil
}
func (m *Event) GetConfigEvent() *ConfigEvent {
if x, ok := m.GetEventType().(*Event_ConfigEvent); ok {
return x.ConfigEvent
}
return nil
}
func (m *Event) GetKpiEvent() *KpiEvent {
if x, ok := m.GetEventType().(*Event_KpiEvent); ok {
return x.KpiEvent
}
return nil
}
func (m *Event) GetKpiEvent2() *KpiEvent2 {
if x, ok := m.GetEventType().(*Event_KpiEvent2); ok {
return x.KpiEvent2
}
return nil
}
func (m *Event) GetDeviceEvent() *DeviceEvent {
if x, ok := m.GetEventType().(*Event_DeviceEvent); ok {
return x.DeviceEvent
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Event) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Event_ConfigEvent)(nil),
(*Event_KpiEvent)(nil),
(*Event_KpiEvent2)(nil),
(*Event_DeviceEvent)(nil),
}
}
func init() {
proto.RegisterEnum("voltha.ConfigEventType_Types", ConfigEventType_Types_name, ConfigEventType_Types_value)
proto.RegisterEnum("voltha.KpiEventType_Types", KpiEventType_Types_name, KpiEventType_Types_value)
proto.RegisterEnum("voltha.AlarmEventType_Types", AlarmEventType_Types_name, AlarmEventType_Types_value)
proto.RegisterEnum("voltha.AlarmEventCategory_Types", AlarmEventCategory_Types_name, AlarmEventCategory_Types_value)
proto.RegisterEnum("voltha.AlarmEventState_Types", AlarmEventState_Types_name, AlarmEventState_Types_value)
proto.RegisterEnum("voltha.AlarmEventSeverity_Types", AlarmEventSeverity_Types_name, AlarmEventSeverity_Types_value)
proto.RegisterEnum("voltha.EventCategory_Types", EventCategory_Types_name, EventCategory_Types_value)
proto.RegisterEnum("voltha.EventSubCategory_Types", EventSubCategory_Types_name, EventSubCategory_Types_value)
proto.RegisterEnum("voltha.EventType_Types", EventType_Types_name, EventType_Types_value)
proto.RegisterType((*ConfigEventType)(nil), "voltha.ConfigEventType")
proto.RegisterType((*ConfigEvent)(nil), "voltha.ConfigEvent")
proto.RegisterType((*KpiEventType)(nil), "voltha.KpiEventType")
proto.RegisterType((*MetricMetaData)(nil), "voltha.MetricMetaData")
proto.RegisterMapType((map[string]string)(nil), "voltha.MetricMetaData.ContextEntry")
proto.RegisterType((*MetricValuePairs)(nil), "voltha.MetricValuePairs")
proto.RegisterMapType((map[string]float32)(nil), "voltha.MetricValuePairs.MetricsEntry")
proto.RegisterType((*MetricInformation)(nil), "voltha.MetricInformation")
proto.RegisterMapType((map[string]float32)(nil), "voltha.MetricInformation.MetricsEntry")
proto.RegisterType((*KpiEvent)(nil), "voltha.KpiEvent")
proto.RegisterMapType((map[string]*MetricValuePairs)(nil), "voltha.KpiEvent.PrefixesEntry")
proto.RegisterType((*KpiEvent2)(nil), "voltha.KpiEvent2")
proto.RegisterType((*AlarmEventType)(nil), "voltha.AlarmEventType")
proto.RegisterType((*AlarmEventCategory)(nil), "voltha.AlarmEventCategory")
proto.RegisterType((*AlarmEventState)(nil), "voltha.AlarmEventState")
proto.RegisterType((*AlarmEventSeverity)(nil), "voltha.AlarmEventSeverity")
proto.RegisterType((*AlarmEvent)(nil), "voltha.AlarmEvent")
proto.RegisterMapType((map[string]string)(nil), "voltha.AlarmEvent.ContextEntry")
proto.RegisterType((*DeviceEvent)(nil), "voltha.DeviceEvent")
proto.RegisterMapType((map[string]string)(nil), "voltha.DeviceEvent.ContextEntry")
proto.RegisterType((*EventCategory)(nil), "voltha.EventCategory")
proto.RegisterType((*EventSubCategory)(nil), "voltha.EventSubCategory")
proto.RegisterType((*EventType)(nil), "voltha.EventType")
proto.RegisterType((*EventHeader)(nil), "voltha.EventHeader")
proto.RegisterType((*Event)(nil), "voltha.Event")
}
func init() { proto.RegisterFile("voltha_protos/events.proto", fileDescriptor_e63e6c07044fd2c4) }
var fileDescriptor_e63e6c07044fd2c4 = []byte{
// 1374 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0x5f, 0x73, 0xdb, 0x44,
0x10, 0xb7, 0xe4, 0x3f, 0xb1, 0x57, 0x4e, 0xa2, 0x5c, 0x19, 0x30, 0x6e, 0x69, 0x83, 0x18, 0x3a,
0x99, 0x76, 0xb0, 0xc1, 0x61, 0xa6, 0x69, 0x0a, 0x03, 0xae, 0x23, 0x1a, 0xb5, 0xb5, 0x1c, 0x64,
0x27, 0x1d, 0x78, 0xf1, 0x5c, 0xac, 0x8b, 0xad, 0x89, 0x6d, 0x79, 0xa4, 0xb3, 0x69, 0x3e, 0x00,
0xcf, 0x3c, 0xf2, 0xc0, 0x77, 0xe1, 0x8d, 0x8f, 0xc1, 0xf0, 0x25, 0xf8, 0x00, 0xcc, 0xfd, 0x91,
0x25, 0x39, 0x2e, 0x7d, 0xc8, 0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