2019-05-11 12:46:12 -05:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: events.proto
|
|
|
|
|
|
|
|
package witProtobuf
|
|
|
|
|
|
|
|
import (
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
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 Event_EventType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
Event_ADD Event_EventType = 0
|
|
|
|
Event_DELETE Event_EventType = 1
|
|
|
|
Event_POWERON Event_EventType = 2
|
|
|
|
Event_POWEROFF Event_EventType = 3
|
2019-05-12 01:02:53 -05:00
|
|
|
Event_HIBERNATE Event_EventType = 4
|
2019-05-11 12:46:12 -05:00
|
|
|
Event_MIGRATE Event_EventType = 5
|
|
|
|
)
|
|
|
|
|
|
|
|
var Event_EventType_name = map[int32]string{
|
|
|
|
0: "ADD",
|
|
|
|
1: "DELETE",
|
|
|
|
2: "POWERON",
|
|
|
|
3: "POWEROFF",
|
2019-05-12 01:02:53 -05:00
|
|
|
4: "HIBERNATE",
|
2019-05-11 12:46:12 -05:00
|
|
|
5: "MIGRATE",
|
|
|
|
}
|
|
|
|
|
|
|
|
var Event_EventType_value = map[string]int32{
|
|
|
|
"ADD": 0,
|
|
|
|
"DELETE": 1,
|
|
|
|
"POWERON": 2,
|
|
|
|
"POWEROFF": 3,
|
2019-05-12 01:02:53 -05:00
|
|
|
"HIBERNATE": 4,
|
2019-05-11 12:46:12 -05:00
|
|
|
"MIGRATE": 5,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x Event_EventType) String() string {
|
|
|
|
return proto.EnumName(Event_EventType_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Event_EventType) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_8f22242cb04491f9, []int{0, 0}
|
|
|
|
}
|
|
|
|
|
|
|
|
type Event struct {
|
|
|
|
Type Event_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=witProtobuf.Event_EventType" json:"type,omitempty"`
|
|
|
|
Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Results []*Event_Response `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"`
|
|
|
|
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Comment string `protobuf:"bytes,5,opt,name=comment,proto3" json:"comment,omitempty"`
|
|
|
|
Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
|
|
|
|
Reps []int64 `protobuf:"varint,7,rep,packed,name=reps,proto3" json:"reps,omitempty"`
|
|
|
|
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_8f22242cb04491f9, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
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) GetType() Event_EventType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return Event_ADD
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Event) GetId() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Event) GetResults() []*Event_Response {
|
|
|
|
if m != nil {
|
|
|
|
return m.Results
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Event) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Event) GetComment() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Comment
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Event) GetEmail() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Email
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Event) GetReps() []int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Reps
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Event_Response struct {
|
|
|
|
Type Event_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=witProtobuf.Event_EventType" json:"type,omitempty"`
|
|
|
|
Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
|
|
|
|
Snippets []string `protobuf:"bytes,5,rep,name=snippets,proto3" json:"snippets,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Event_Response) Reset() { *m = Event_Response{} }
|
|
|
|
func (m *Event_Response) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Event_Response) ProtoMessage() {}
|
|
|
|
func (*Event_Response) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_8f22242cb04491f9, []int{0, 0}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Event_Response) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Event_Response.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Event_Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Event_Response.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Event_Response) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Event_Response.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Event_Response) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Event_Response.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Event_Response) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Event_Response.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Event_Response proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Event_Response) GetType() Event_EventType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return Event_ADD
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Event_Response) GetId() int32 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Event_Response) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Event_Response) GetError() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Error
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Event_Response) GetSnippets() []string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Snippets
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterEnum("witProtobuf.Event_EventType", Event_EventType_name, Event_EventType_value)
|
|
|
|
proto.RegisterType((*Event)(nil), "witProtobuf.Event")
|
|
|
|
proto.RegisterType((*Event_Response)(nil), "witProtobuf.Event.Response")
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("events.proto", fileDescriptor_8f22242cb04491f9) }
|
|
|
|
|
|
|
|
var fileDescriptor_8f22242cb04491f9 = []byte{
|
2019-05-12 01:02:53 -05:00
|
|
|
// 309 bytes of a gzipped FileDescriptorProto
|
2019-05-11 12:46:12 -05:00
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x91, 0xc1, 0x6a, 0xf2, 0x40,
|
|
|
|
0x10, 0xc7, 0xbf, 0x64, 0x13, 0x63, 0x46, 0x3f, 0x09, 0x43, 0x0f, 0x8b, 0xed, 0x21, 0x78, 0xca,
|
2019-05-12 01:02:53 -05:00
|
|
|
0x49, 0x8a, 0xa5, 0x0f, 0x60, 0x71, 0x6d, 0x85, 0x56, 0x65, 0x09, 0x78, 0xd6, 0x3a, 0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