| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: event.proto |
| |
| package _go |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| timestamp "github.com/golang/protobuf/ptypes/timestamp" |
| 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 struct { |
| Id *EventID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| // Types that are valid to be assigned to Asset: |
| // *Event_RackId |
| // *Event_MachineId |
| Asset isEvent_Asset `protobuf_oneof:"asset"` |
| EventLabel EventType `protobuf:"varint,4,opt,name=event_label,json=eventLabel,proto3,enum=fleet.EventType" json:"event_label,omitempty"` |
| OldValue string `protobuf:"bytes,5,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"` |
| NewValue string `protobuf:"bytes,6,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"` |
| UpdatedTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=updated_time,json=updatedTime,proto3" json:"updated_time,omitempty"` |
| User *Event_User `protobuf:"bytes,8,opt,name=user,proto3" json:"user,omitempty"` |
| Comment string `protobuf:"bytes,9,opt,name=comment,proto3" json:"comment,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_2d17a9d3f0ddf27e, []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) GetId() *EventID { |
| if m != nil { |
| return m.Id |
| } |
| return nil |
| } |
| |
| type isEvent_Asset interface { |
| isEvent_Asset() |
| } |
| |
| type Event_RackId struct { |
| RackId *RackID `protobuf:"bytes,2,opt,name=rack_id,json=rackId,proto3,oneof"` |
| } |
| |
| type Event_MachineId struct { |
| MachineId *MachineID `protobuf:"bytes,3,opt,name=machine_id,json=machineId,proto3,oneof"` |
| } |
| |
| func (*Event_RackId) isEvent_Asset() {} |
| |
| func (*Event_MachineId) isEvent_Asset() {} |
| |
| func (m *Event) GetAsset() isEvent_Asset { |
| if m != nil { |
| return m.Asset |
| } |
| return nil |
| } |
| |
| func (m *Event) GetRackId() *RackID { |
| if x, ok := m.GetAsset().(*Event_RackId); ok { |
| return x.RackId |
| } |
| return nil |
| } |
| |
| func (m *Event) GetMachineId() *MachineID { |
| if x, ok := m.GetAsset().(*Event_MachineId); ok { |
| return x.MachineId |
| } |
| return nil |
| } |
| |
| func (m *Event) GetEventLabel() EventType { |
| if m != nil { |
| return m.EventLabel |
| } |
| return EventType_EVENT_INVALID |
| } |
| |
| func (m *Event) GetOldValue() string { |
| if m != nil { |
| return m.OldValue |
| } |
| return "" |
| } |
| |
| func (m *Event) GetNewValue() string { |
| if m != nil { |
| return m.NewValue |
| } |
| return "" |
| } |
| |
| func (m *Event) GetUpdatedTime() *timestamp.Timestamp { |
| if m != nil { |
| return m.UpdatedTime |
| } |
| return nil |
| } |
| |
| func (m *Event) GetUser() *Event_User { |
| if m != nil { |
| return m.User |
| } |
| return nil |
| } |
| |
| func (m *Event) GetComment() string { |
| if m != nil { |
| return m.Comment |
| } |
| return "" |
| } |
| |
| // XXX_OneofWrappers is for the internal use of the proto package. |
| func (*Event) XXX_OneofWrappers() []interface{} { |
| return []interface{}{ |
| (*Event_RackId)(nil), |
| (*Event_MachineId)(nil), |
| } |
| } |
| |
| type Event_User struct { |
| Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Event_User) Reset() { *m = Event_User{} } |
| func (m *Event_User) String() string { return proto.CompactTextString(m) } |
| func (*Event_User) ProtoMessage() {} |
| func (*Event_User) Descriptor() ([]byte, []int) { |
| return fileDescriptor_2d17a9d3f0ddf27e, []int{0, 0} |
| } |
| |
| func (m *Event_User) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Event_User.Unmarshal(m, b) |
| } |
| func (m *Event_User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Event_User.Marshal(b, m, deterministic) |
| } |
| func (m *Event_User) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Event_User.Merge(m, src) |
| } |
| func (m *Event_User) XXX_Size() int { |
| return xxx_messageInfo_Event_User.Size(m) |
| } |
| func (m *Event_User) XXX_DiscardUnknown() { |
| xxx_messageInfo_Event_User.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Event_User proto.InternalMessageInfo |
| |
| func (m *Event_User) GetName() string { |
| if m != nil { |
| return m.Name |
| } |
| return "" |
| } |
| |
| func (m *Event_User) GetEmail() string { |
| if m != nil { |
| return m.Email |
| } |
| return "" |
| } |
| |
| func init() { |
| proto.RegisterType((*Event)(nil), "fleet.Event") |
| proto.RegisterType((*Event_User)(nil), "fleet.Event.User") |
| } |
| |
| func init() { proto.RegisterFile("event.proto", fileDescriptor_2d17a9d3f0ddf27e) } |
| |
| var fileDescriptor_2d17a9d3f0ddf27e = []byte{ |
| // 373 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x92, 0x4f, 0x8f, 0xd3, 0x30, |
| 0x14, 0xc4, 0x49, 0x37, 0x69, 0x36, 0x2e, 0x5b, 0x2d, 0x16, 0x07, 0x2b, 0x20, 0xa8, 0x90, 0x90, |
| 0x72, 0x4a, 0xf8, 0x73, 0xe6, 0xb2, 0x5a, 0x24, 0x2a, 0xc1, 0xc5, 0x5a, 0x38, 0x70, 0x89, 0x9c, |
| 0xf8, 0xb5, 0x58, 0x75, 0xe2, 0x28, 0x71, 0x5a, 0xf5, 0x3b, 0xf1, 0x21, 0x91, 0x9f, 0x93, 0x96, |
| 0x5b, 0xe6, 0xcd, 0x6f, 0xe4, 0xd1, 0x28, 0x64, 0x05, 0x47, 0x68, 0x6d, 0xde, 0xf5, 0xc6, 0x1a, |
| 0x1a, 0xed, 0x34, 0x80, 0x4d, 0xdf, 0xee, 0x8d, 0xd9, 0x6b, 0x28, 0xf0, 0x58, 0x8d, 0xbb, 0xc2, |
| 0xaa, 0x06, 0x06, 0x2b, 0x9a, 0xce, 0x73, 0xe9, 0x1a, 0x43, 0xa5, 0x92, 0x93, 0xbe, 0xf7, 0xda, |
| 0x9e, 0x3b, 0x98, 0x2f, 0x8d, 0xa8, 0xff, 0xa8, 0x16, 0xae, 0xcc, 0x5d, 0x2f, 0xea, 0xc3, 0x45, |
| 0xbe, 0xfb, 0x7b, 0x43, 0xa2, 0xaf, 0x2e, 0x45, 0xdf, 0x90, 0x85, 0x92, 0x2c, 0xd8, 0x04, 0xd9, |
| 0xea, 0xd3, 0x3a, 0xc7, 0x06, 0x39, 0x3a, 0xdb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