mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-15 18:06:22 +08:00
173 lines
5.9 KiB
Go
173 lines
5.9 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: device_command.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package devicecommandproto is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
device_command.proto
|
|
|
|
It has these top-level messages:
|
|
Command
|
|
DeviceCommand
|
|
*/
|
|
package devicecommandproto
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type Command struct {
|
|
Uuid string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"`
|
|
Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt" json:"created_at,omitempty"`
|
|
LastSentAt int64 `protobuf:"varint,4,opt,name=last_sent_at,json=lastSentAt" json:"last_sent_at,omitempty"`
|
|
Acknowledged int64 `protobuf:"varint,5,opt,name=acknowledged" json:"acknowledged,omitempty"`
|
|
TimesSent int64 `protobuf:"varint,6,opt,name=times_sent,json=timesSent" json:"times_sent,omitempty"`
|
|
LastStatus string `protobuf:"bytes,7,opt,name=last_status,json=lastStatus" json:"last_status,omitempty"`
|
|
FailureMessage []byte `protobuf:"bytes,8,opt,name=failure_message,json=failureMessage,proto3" json:"failure_message,omitempty"`
|
|
}
|
|
|
|
func (m *Command) Reset() { *m = Command{} }
|
|
func (m *Command) String() string { return proto.CompactTextString(m) }
|
|
func (*Command) ProtoMessage() {}
|
|
func (*Command) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
func (m *Command) GetUuid() string {
|
|
if m != nil {
|
|
return m.Uuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Command) GetPayload() []byte {
|
|
if m != nil {
|
|
return m.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Command) GetCreatedAt() int64 {
|
|
if m != nil {
|
|
return m.CreatedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Command) GetLastSentAt() int64 {
|
|
if m != nil {
|
|
return m.LastSentAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Command) GetAcknowledged() int64 {
|
|
if m != nil {
|
|
return m.Acknowledged
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Command) GetTimesSent() int64 {
|
|
if m != nil {
|
|
return m.TimesSent
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Command) GetLastStatus() string {
|
|
if m != nil {
|
|
return m.LastStatus
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Command) GetFailureMessage() []byte {
|
|
if m != nil {
|
|
return m.FailureMessage
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeviceCommand struct {
|
|
DeviceUdid string `protobuf:"bytes,1,opt,name=device_udid,json=deviceUdid" json:"device_udid,omitempty"`
|
|
Commands []*Command `protobuf:"bytes,2,rep,name=commands" json:"commands,omitempty"`
|
|
Completed []*Command `protobuf:"bytes,3,rep,name=completed" json:"completed,omitempty"`
|
|
Failed []*Command `protobuf:"bytes,4,rep,name=failed" json:"failed,omitempty"`
|
|
}
|
|
|
|
func (m *DeviceCommand) Reset() { *m = DeviceCommand{} }
|
|
func (m *DeviceCommand) String() string { return proto.CompactTextString(m) }
|
|
func (*DeviceCommand) ProtoMessage() {}
|
|
func (*DeviceCommand) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
func (m *DeviceCommand) GetDeviceUdid() string {
|
|
if m != nil {
|
|
return m.DeviceUdid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeviceCommand) GetCommands() []*Command {
|
|
if m != nil {
|
|
return m.Commands
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DeviceCommand) GetCompleted() []*Command {
|
|
if m != nil {
|
|
return m.Completed
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *DeviceCommand) GetFailed() []*Command {
|
|
if m != nil {
|
|
return m.Failed
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Command)(nil), "devicecommandproto.Command")
|
|
proto.RegisterType((*DeviceCommand)(nil), "devicecommandproto.DeviceCommand")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("device_command.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 304 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x90, 0xcf, 0x4a, 0xc3, 0x40,
|
|
0x10, 0xc6, 0x49, 0x53, 0xfb, 0x67, 0x5a, 0x15, 0x06, 0x0f, 0x0b, 0x22, 0x0d, 0xbd, 0x98, 0x53,
|
|
0x0f, 0xf6, 0x20, 0x1e, 0x8b, 0x5e, 0xbd, 0x44, 0x3c, 0x87, 0x35, 0x33, 0x96, 0x60, 0x92, 0x2d,
|
|
0xd9, 0x89, 0xe2, 0x03, 0xf8, 0x90, 0xbe, 0x8d, 0x64, 0x77, 0x5b, 0x11, 0x0f, 0xbd, 0x25, 0x3f,
|
|
0xbe, 0x99, 0x6f, 0xf6, 0x07, 0x17, 0xc4, 0xef, 0x65, 0xc1, 0x79, 0x61, 0xea, 0x5a, 0x37, 0xb4,
|
|
0xda, 0xb5, 0x46, 0x0c, 0xa2, 0xa7, 0x01, 0x3a, 0xb6, 0xfc, 0x1a, 0xc0, 0xf8, 0xde, 0x03, 0x44,
|
|
0x18, 0x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