package pubfault
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
const _ = proto.ProtoPackageIsVersion3
type RespStatus struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RespStatus) Reset() { *m = RespStatus{} }
func (m *RespStatus) String() string { return proto.CompactTextString(m) }
func (*RespStatus) ProtoMessage() {}
func (*RespStatus) Descriptor() ([]byte, []int) {
return fileDescriptor_8a19729a49216baa, []int{0}
}
func (m *RespStatus) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RespStatus.Unmarshal(m, b)
}
func (m *RespStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RespStatus.Marshal(b, m, deterministic)
}
func (m *RespStatus) XXX_Merge(src proto.Message) {
xxx_messageInfo_RespStatus.Merge(m, src)
}
func (m *RespStatus) XXX_Size() int {
return xxx_messageInfo_RespStatus.Size(m)
}
func (m *RespStatus) XXX_DiscardUnknown() {
xxx_messageInfo_RespStatus.DiscardUnknown(m)
}
var xxx_messageInfo_RespStatus proto.InternalMessageInfo
func (m *RespStatus) GetCode() int32 {
if m != nil {
return m.Code
}
return 0
}
func (m *RespStatus) GetInfo() string {
if m != nil {
return m.Info
}
return ""
}
type PublicFaultRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
Resource string `protobuf:"bytes,4,opt,name=resource,proto3" json:"resource,omitempty"`
Faults []*Fault `protobuf:"bytes,5,rep,name=faults,proto3" json:"faults,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PublicFaultRequest) Reset() { *m = PublicFaultRequest{} }
func (m *PublicFaultRequest) String() string { return proto.CompactTextString(m) }
func (*PublicFaultRequest) ProtoMessage() {}
func (*PublicFaultRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_8a19729a49216baa, []int{1}
}
func (m *PublicFaultRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PublicFaultRequest.Unmarshal(m, b)
}
func (m *PublicFaultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PublicFaultRequest.Marshal(b, m, deterministic)
}
func (m *PublicFaultRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublicFaultRequest.Merge(m, src)
}
func (m *PublicFaultRequest) XXX_Size() int {
return xxx_messageInfo_PublicFaultRequest.Size(m)
}
func (m *PublicFaultRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PublicFaultRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PublicFaultRequest proto.InternalMessageInfo
func (m *PublicFaultRequest) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *PublicFaultRequest) GetTimestamp() int64 {
if m != nil {
return m.Timestamp
}
return 0
}
func (m *PublicFaultRequest) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *PublicFaultRequest) GetResource() string {
if m != nil {
return m.Resource
}
return ""
}
func (m *PublicFaultRequest) GetFaults() []*Fault {
if m != nil {
return m.Faults
}
return nil
}
type Fault struct {
FaultId string `protobuf:"bytes,1,opt,name=faultId,proto3" json:"faultId,omitempty"`
FaultType string `protobuf:"bytes,2,opt,name=faultType,proto3" json:"faultType,omitempty"`
FaultCode string `protobuf:"bytes,3,opt,name=faultCode,proto3" json:"faultCode,omitempty"`
FaultTime int64 `protobuf:"varint,4,opt,name=faultTime,proto3" json:"faultTime,omitempty"`
Assertion string `protobuf:"bytes,5,opt,name=assertion,proto3" json:"assertion,omitempty"`
FaultLocation map[string]string `protobuf:"bytes,6,rep,name=faultLocation,proto3" json:"faultLocation,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Influence []*PubFaultInfo `protobuf:"bytes,7,rep,name=influence,proto3" json:"influence,omitempty"`
Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Fault) Reset() { *m = Fault{} }
func (m *Fault) String() string { return proto.CompactTextString(m) }
func (*Fault) ProtoMessage() {}
func (*Fault) Descriptor() ([]byte, []int) {
return fileDescriptor_8a19729a49216baa, []int{2}
}
func (m *Fault) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Fault.Unmarshal(m, b)
}
func (m *Fault) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Fault.Marshal(b, m, deterministic)
}
func (m *Fault) XXX_Merge(src proto.Message) {
xxx_messageInfo_Fault.Merge(m, src)
}
func (m *Fault) XXX_Size() int {
return xxx_messageInfo_Fault.Size(m)
}
func (m *Fault) XXX_DiscardUnknown() {
xxx_messageInfo_Fault.DiscardUnknown(m)
}
var xxx_messageInfo_Fault proto.InternalMessageInfo
func (m *Fault) GetFaultId() string {
if m != nil {
return m.FaultId
}
return ""
}
func (m *Fault) GetFaultType() string {
if m != nil {
return m.FaultType
}
return ""
}
func (m *Fault) GetFaultCode() string {
if m != nil {
return m.FaultCode
}
return ""
}
func (m *Fault) GetFaultTime() int64 {
if m != nil {
return m.FaultTime
}
return 0
}
func (m *Fault) GetAssertion() string {
if m != nil {
return m.Assertion
}
return ""
}
func (m *Fault) GetFaultLocation() map[string]string {
if m != nil {
return m.FaultLocation
}
return nil
}
func (m *Fault) GetInfluence() []*PubFaultInfo {
if m != nil {
return m.Influence
}
return nil
}
func (m *Fault) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
type PubFaultInfo struct {
NodeName string `protobuf:"bytes,1,opt,name=nodeName,proto3" json:"nodeName,omitempty"`
NodeSN string `protobuf:"bytes,2,opt,name=nodeSN,proto3" json:"nodeSN,omitempty"`
DeviceIds []int32 `protobuf:"varint,3,rep,packed,name=deviceIds,proto3" json:"deviceIds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PubFaultInfo) Reset() { *m = PubFaultInfo{} }
func (m *PubFaultInfo) String() string { return proto.CompactTextString(m) }
func (*PubFaultInfo) ProtoMessage() {}
func (*PubFaultInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_8a19729a49216baa, []int{3}
}
func (m *PubFaultInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PubFaultInfo.Unmarshal(m, b)
}
func (m *PubFaultInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PubFaultInfo.Marshal(b, m, deterministic)
}
func (m *PubFaultInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_PubFaultInfo.Merge(m, src)
}
func (m *PubFaultInfo) XXX_Size() int {
return xxx_messageInfo_PubFaultInfo.Size(m)
}
func (m *PubFaultInfo) XXX_DiscardUnknown() {
xxx_messageInfo_PubFaultInfo.DiscardUnknown(m)
}
var xxx_messageInfo_PubFaultInfo proto.InternalMessageInfo
func (m *PubFaultInfo) GetNodeName() string {
if m != nil {
return m.NodeName
}
return ""
}
func (m *PubFaultInfo) GetNodeSN() string {
if m != nil {
return m.NodeSN
}
return ""
}
func (m *PubFaultInfo) GetDeviceIds() []int32 {
if m != nil {
return m.DeviceIds
}
return nil
}
func init() {
proto.RegisterType((*RespStatus)(nil), "RespStatus")
proto.RegisterType((*PublicFaultRequest)(nil), "PublicFaultRequest")
proto.RegisterType((*Fault)(nil), "Fault")
proto.RegisterMapType((map[string]string)(nil), "Fault.FaultLocationEntry")
proto.RegisterType((*PubFaultInfo)(nil), "PubFaultInfo")
}
func init() {
proto.RegisterFile("pubfault.proto", fileDescriptor_8a19729a49216baa)
}
var fileDescriptor_8a19729a49216baa = []byte{
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x52, 0xdf, 0x8b, 0xd3, 0x40,
0x10, 0x36, 0xc9, 0x25, 0xd7, 0x4e, 0xef, 0x4e, 0x19, 0x45, 0x62, 0x11, 0x09, 0x79, 0x2a, 0x08,
0x79, 0x38, 0x15, 0x44, 0x1f, 0xfc, 0x85, 0x42, 0x41, 0x8e, 0x63, 0xeb, 0x93, 0x4f, 0xa6, 0xc9,
0x14, 0x16, 0xdb, 0xdd, 0x98, 0xdd, 0x2d, 0xf4, 0x3f, 0xf1, 0x7f, 0xf4, 0x9f, 0x90, 0x9d, 0x24,
0x4d, 0x8f, 0x7b, 0x09, 0x33, 0xdf, 0xb7, 0xdf, 0xcc, 0x37, 0x93, 0x81, 0xab, 0xc6, 0xad, 0x37,
0xa5, 0xdb, 0xda, 0xa2, 0x69, 0xb5, 0xd5, 0xf9, 0x6b, 0x00, 0x41, 0xa6, 0x59, 0xd9, 0xd2, 0x3a,
0x83, 0x08, 0x67, 0x95, 0xae, 0x29, 0x0d, 0xb2, 0x60, 0x11, 0x0b, 0x8e, 0x3d, 0x26, 0xd5, 0x46,
0xa7, 0x61, 0x16, 0x2c, 0xa6, 0x82, 0xe3, 0xfc, 0x6f, 0x00, 0x78, 0xeb, 0xd6, 0x5b, 0x59, 0x7d,
0xf3, 0xb5, 0x04, 0xfd, 0x71, 0x64, 0x2c, 0x5e, 0x41, 0x28, 0x6b, 0x16, 0x4f, 0x45, 0x28, 0x6b,
0x7c, 0x0e, 0x53, 0x2b, 0x77, 0x64, 0x6c, 0xb9, 0x6b, 0x58, 0x1f, 0x89, 0x11, 0xc0, 0x14, 0xce,
0xf7, 0xd4, 0x1a, 0xa9, 0x55, 0x1a, 0xb1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