mirror of
https://github.com/micromdm/micromdm/
synced 2026-06-22 21:25:41 +08:00
Add more logic to the way code is organized. /pkg -- library code not directly connected to micromdm /mdm -- packages meant for the services devices interract with. The MDM protocol. /dep -- DEP API and related packages. /platform -- Core APIs the server provides. Commands API, Devices API, queue, pubsub etc. /workflow -- Packages/API that build on top of platform. Today that's the webhook package. Depending on what ends up here, the workflow folder might become its own repository.
707 lines
27 KiB
Go
707 lines
27 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: command.proto
|
|
|
|
/*
|
|
Package commandproto is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
command.proto
|
|
|
|
It has these top-level messages:
|
|
Event
|
|
Payload
|
|
Command
|
|
ScheduleOSUpdate
|
|
OSUpdate
|
|
ScheduleOSUpdateScan
|
|
AccountConfiguration
|
|
AutoSetupAdminAccounts
|
|
DeviceInformation
|
|
InstallProfile
|
|
RemoveProfile
|
|
DeleteUser
|
|
InstallApplication
|
|
EraseDevice
|
|
DeviceLock
|
|
Settings
|
|
Setting
|
|
DeviceNameSetting
|
|
HostnameSetting
|
|
*/
|
|
package commandproto
|
|
|
|
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 Event struct {
|
|
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
|
Time int64 `protobuf:"varint,2,opt,name=time" json:"time,omitempty"`
|
|
Payload *Payload `protobuf:"bytes,3,opt,name=payload" json:"payload,omitempty"`
|
|
DeviceUdid string `protobuf:"bytes,4,opt,name=device_udid,json=deviceUdid" json:"device_udid,omitempty"`
|
|
}
|
|
|
|
func (m *Event) Reset() { *m = Event{} }
|
|
func (m *Event) String() string { return proto.CompactTextString(m) }
|
|
func (*Event) ProtoMessage() {}
|
|
func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
func (m *Event) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Event) GetTime() int64 {
|
|
if m != nil {
|
|
return m.Time
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Event) GetPayload() *Payload {
|
|
if m != nil {
|
|
return m.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Event) GetDeviceUdid() string {
|
|
if m != nil {
|
|
return m.DeviceUdid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Payload struct {
|
|
CommandUuid string `protobuf:"bytes,1,opt,name=command_uuid,json=commandUuid" json:"command_uuid,omitempty"`
|
|
Command *Command `protobuf:"bytes,2,opt,name=command" json:"command,omitempty"`
|
|
}
|
|
|
|
func (m *Payload) Reset() { *m = Payload{} }
|
|
func (m *Payload) String() string { return proto.CompactTextString(m) }
|
|
func (*Payload) ProtoMessage() {}
|
|
func (*Payload) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
func (m *Payload) GetCommandUuid() string {
|
|
if m != nil {
|
|
return m.CommandUuid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Payload) GetCommand() *Command {
|
|
if m != nil {
|
|
return m.Command
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Command struct {
|
|
RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType" json:"request_type,omitempty"`
|
|
DeviceInformation *DeviceInformation `protobuf:"bytes,2,opt,name=device_information,json=deviceInformation" json:"device_information,omitempty"`
|
|
InstallProfile *InstallProfile `protobuf:"bytes,3,opt,name=install_profile,json=installProfile" json:"install_profile,omitempty"`
|
|
InstallApplication *InstallApplication `protobuf:"bytes,4,opt,name=install_application,json=installApplication" json:"install_application,omitempty"`
|
|
AccountConfiguration *AccountConfiguration `protobuf:"bytes,5,opt,name=account_configuration,json=accountConfiguration" json:"account_configuration,omitempty"`
|
|
ScheduleOsUpdate *ScheduleOSUpdate `protobuf:"bytes,6,opt,name=schedule_os_update,json=scheduleOsUpdate" json:"schedule_os_update,omitempty"`
|
|
ScheduleOsUpdateScan *ScheduleOSUpdateScan `protobuf:"bytes,7,opt,name=schedule_os_update_scan,json=scheduleOsUpdateScan" json:"schedule_os_update_scan,omitempty"`
|
|
RemoveProfile *RemoveProfile `protobuf:"bytes,8,opt,name=remove_profile,json=removeProfile" json:"remove_profile,omitempty"`
|
|
DeleteUser *DeleteUser `protobuf:"bytes,9,opt,name=delete_user,json=deleteUser" json:"delete_user,omitempty"`
|
|
Settings *Settings `protobuf:"bytes,10,opt,name=settings" json:"settings,omitempty"`
|
|
EraseDevice *EraseDevice `protobuf:"bytes,11,opt,name=erase_device,json=eraseDevice" json:"erase_device,omitempty"`
|
|
DeviceLock *DeviceLock `protobuf:"bytes,12,opt,name=device_lock,json=deviceLock" json:"device_lock,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{2} }
|
|
|
|
func (m *Command) GetRequestType() string {
|
|
if m != nil {
|
|
return m.RequestType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Command) GetDeviceInformation() *DeviceInformation {
|
|
if m != nil {
|
|
return m.DeviceInformation
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Command) GetInstallProfile() *InstallProfile {
|
|
if m != nil {
|
|
return m.InstallProfile
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Command) GetInstallApplication() *InstallApplication {
|
|
if m != nil {
|
|
return m.InstallApplication
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Command) GetAccountConfiguration() *AccountConfiguration {
|
|
if m != nil {
|
|
return m.AccountConfiguration
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Command) GetScheduleOsUpdate() *ScheduleOSUpdate {
|
|
if m != nil {
|
|
return m.ScheduleOsUpdate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Command) GetScheduleOsUpdateScan() *ScheduleOSUpdateScan {
|
|
if m != nil {
|
|
return m.ScheduleOsUpdateScan
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Command) GetRemoveProfile() *RemoveProfile {
|
|
if m != nil {
|
|
return m.RemoveProfile
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Command) GetDeleteUser() *DeleteUser {
|
|
if m != nil {
|
|
return m.DeleteUser
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Command) GetSettings() *Settings {
|
|
if m != nil {
|
|
return m.Settings
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Command) GetEraseDevice() *EraseDevice {
|
|
if m != nil {
|
|
return m.EraseDevice
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Command) GetDeviceLock() *DeviceLock {
|
|
if m != nil {
|
|
return m.DeviceLock
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ScheduleOSUpdate struct {
|
|
Updates []*OSUpdate `protobuf:"bytes,1,rep,name=updates" json:"updates,omitempty"`
|
|
}
|
|
|
|
func (m *ScheduleOSUpdate) Reset() { *m = ScheduleOSUpdate{} }
|
|
func (m *ScheduleOSUpdate) String() string { return proto.CompactTextString(m) }
|
|
func (*ScheduleOSUpdate) ProtoMessage() {}
|
|
func (*ScheduleOSUpdate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
|
|
|
func (m *ScheduleOSUpdate) GetUpdates() []*OSUpdate {
|
|
if m != nil {
|
|
return m.Updates
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OSUpdate struct {
|
|
ProductKey string `protobuf:"bytes,1,opt,name=product_key,json=productKey" json:"product_key,omitempty"`
|
|
InstallAction string `protobuf:"bytes,2,opt,name=install_action,json=installAction" json:"install_action,omitempty"`
|
|
}
|
|
|
|
func (m *OSUpdate) Reset() { *m = OSUpdate{} }
|
|
func (m *OSUpdate) String() string { return proto.CompactTextString(m) }
|
|
func (*OSUpdate) ProtoMessage() {}
|
|
func (*OSUpdate) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
|
|
|
func (m *OSUpdate) GetProductKey() string {
|
|
if m != nil {
|
|
return m.ProductKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *OSUpdate) GetInstallAction() string {
|
|
if m != nil {
|
|
return m.InstallAction
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ScheduleOSUpdateScan struct {
|
|
Force bool `protobuf:"varint,1,opt,name=force" json:"force,omitempty"`
|
|
}
|
|
|
|
func (m *ScheduleOSUpdateScan) Reset() { *m = ScheduleOSUpdateScan{} }
|
|
func (m *ScheduleOSUpdateScan) String() string { return proto.CompactTextString(m) }
|
|
func (*ScheduleOSUpdateScan) ProtoMessage() {}
|
|
func (*ScheduleOSUpdateScan) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
|
|
|
func (m *ScheduleOSUpdateScan) GetForce() bool {
|
|
if m != nil {
|
|
return m.Force
|
|
}
|
|
return false
|
|
}
|
|
|
|
type AccountConfiguration struct {
|
|
SkipPrimarySetupAccountCreation bool `protobuf:"varint,1,opt,name=skip_primary_setup_account_creation,json=skipPrimarySetupAccountCreation" json:"skip_primary_setup_account_creation,omitempty"`
|
|
SetPrimarySetupAccountAsRegularUser bool `protobuf:"varint,2,opt,name=set_primary_setup_account_as_regular_user,json=setPrimarySetupAccountAsRegularUser" json:"set_primary_setup_account_as_regular_user,omitempty"`
|
|
AutoSetupAdminAccounts []*AutoSetupAdminAccounts `protobuf:"bytes,3,rep,name=auto_setup_admin_accounts,json=autoSetupAdminAccounts" json:"auto_setup_admin_accounts,omitempty"`
|
|
}
|
|
|
|
func (m *AccountConfiguration) Reset() { *m = AccountConfiguration{} }
|
|
func (m *AccountConfiguration) String() string { return proto.CompactTextString(m) }
|
|
func (*AccountConfiguration) ProtoMessage() {}
|
|
func (*AccountConfiguration) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
|
|
|
func (m *AccountConfiguration) GetSkipPrimarySetupAccountCreation() bool {
|
|
if m != nil {
|
|
return m.SkipPrimarySetupAccountCreation
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *AccountConfiguration) GetSetPrimarySetupAccountAsRegularUser() bool {
|
|
if m != nil {
|
|
return m.SetPrimarySetupAccountAsRegularUser
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *AccountConfiguration) GetAutoSetupAdminAccounts() []*AutoSetupAdminAccounts {
|
|
if m != nil {
|
|
return m.AutoSetupAdminAccounts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AutoSetupAdminAccounts struct {
|
|
ShortName string `protobuf:"bytes,1,opt,name=short_name,json=shortName" json:"short_name,omitempty"`
|
|
FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName" json:"full_name,omitempty"`
|
|
PasswordHash []byte `protobuf:"bytes,3,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"`
|
|
Hidden bool `protobuf:"varint,4,opt,name=hidden" json:"hidden,omitempty"`
|
|
}
|
|
|
|
func (m *AutoSetupAdminAccounts) Reset() { *m = AutoSetupAdminAccounts{} }
|
|
func (m *AutoSetupAdminAccounts) String() string { return proto.CompactTextString(m) }
|
|
func (*AutoSetupAdminAccounts) ProtoMessage() {}
|
|
func (*AutoSetupAdminAccounts) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
|
|
|
func (m *AutoSetupAdminAccounts) GetShortName() string {
|
|
if m != nil {
|
|
return m.ShortName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AutoSetupAdminAccounts) GetFullName() string {
|
|
if m != nil {
|
|
return m.FullName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *AutoSetupAdminAccounts) GetPasswordHash() []byte {
|
|
if m != nil {
|
|
return m.PasswordHash
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AutoSetupAdminAccounts) GetHidden() bool {
|
|
if m != nil {
|
|
return m.Hidden
|
|
}
|
|
return false
|
|
}
|
|
|
|
type DeviceInformation struct {
|
|
Queries []string `protobuf:"bytes,1,rep,name=queries" json:"queries,omitempty"`
|
|
}
|
|
|
|
func (m *DeviceInformation) Reset() { *m = DeviceInformation{} }
|
|
func (m *DeviceInformation) String() string { return proto.CompactTextString(m) }
|
|
func (*DeviceInformation) ProtoMessage() {}
|
|
func (*DeviceInformation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
|
|
|
|
func (m *DeviceInformation) GetQueries() []string {
|
|
if m != nil {
|
|
return m.Queries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type InstallProfile struct {
|
|
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
}
|
|
|
|
func (m *InstallProfile) Reset() { *m = InstallProfile{} }
|
|
func (m *InstallProfile) String() string { return proto.CompactTextString(m) }
|
|
func (*InstallProfile) ProtoMessage() {}
|
|
func (*InstallProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
|
|
|
|
func (m *InstallProfile) GetPayload() []byte {
|
|
if m != nil {
|
|
return m.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RemoveProfile struct {
|
|
Identifier string `protobuf:"bytes,1,opt,name=identifier" json:"identifier,omitempty"`
|
|
}
|
|
|
|
func (m *RemoveProfile) Reset() { *m = RemoveProfile{} }
|
|
func (m *RemoveProfile) String() string { return proto.CompactTextString(m) }
|
|
func (*RemoveProfile) ProtoMessage() {}
|
|
func (*RemoveProfile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
|
|
|
|
func (m *RemoveProfile) GetIdentifier() string {
|
|
if m != nil {
|
|
return m.Identifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteUser struct {
|
|
Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
|
|
ForceDeletion bool `protobuf:"varint,2,opt,name=force_deletion,json=forceDeletion" json:"force_deletion,omitempty"`
|
|
}
|
|
|
|
func (m *DeleteUser) Reset() { *m = DeleteUser{} }
|
|
func (m *DeleteUser) String() string { return proto.CompactTextString(m) }
|
|
func (*DeleteUser) ProtoMessage() {}
|
|
func (*DeleteUser) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
|
|
|
|
func (m *DeleteUser) GetUsername() string {
|
|
if m != nil {
|
|
return m.Username
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeleteUser) GetForceDeletion() bool {
|
|
if m != nil {
|
|
return m.ForceDeletion
|
|
}
|
|
return false
|
|
}
|
|
|
|
type InstallApplication struct {
|
|
ItunesStoreId int64 `protobuf:"varint,1,opt,name=itunes_store_id,json=itunesStoreId" json:"itunes_store_id,omitempty"`
|
|
Identifier string `protobuf:"bytes,2,opt,name=identifier" json:"identifier,omitempty"`
|
|
ManifestUrl string `protobuf:"bytes,3,opt,name=manifest_url,json=manifestUrl" json:"manifest_url,omitempty"`
|
|
ManagementFlags int64 `protobuf:"varint,4,opt,name=management_flags,json=managementFlags" json:"management_flags,omitempty"`
|
|
NotManaged bool `protobuf:"varint,5,opt,name=not_managed,json=notManaged" json:"not_managed,omitempty"`
|
|
ChangeManagementState string `protobuf:"bytes,6,opt,name=change_management_state,json=changeManagementState" json:"change_management_state,omitempty"`
|
|
}
|
|
|
|
func (m *InstallApplication) Reset() { *m = InstallApplication{} }
|
|
func (m *InstallApplication) String() string { return proto.CompactTextString(m) }
|
|
func (*InstallApplication) ProtoMessage() {}
|
|
func (*InstallApplication) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
|
|
|
|
func (m *InstallApplication) GetItunesStoreId() int64 {
|
|
if m != nil {
|
|
return m.ItunesStoreId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *InstallApplication) GetIdentifier() string {
|
|
if m != nil {
|
|
return m.Identifier
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *InstallApplication) GetManifestUrl() string {
|
|
if m != nil {
|
|
return m.ManifestUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *InstallApplication) GetManagementFlags() int64 {
|
|
if m != nil {
|
|
return m.ManagementFlags
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *InstallApplication) GetNotManaged() bool {
|
|
if m != nil {
|
|
return m.NotManaged
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *InstallApplication) GetChangeManagementState() string {
|
|
if m != nil {
|
|
return m.ChangeManagementState
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type EraseDevice struct {
|
|
Pin string `protobuf:"bytes,1,opt,name=pin" json:"pin,omitempty"`
|
|
PreserveDataPlan bool `protobuf:"varint,2,opt,name=preserve_data_plan,json=preserveDataPlan" json:"preserve_data_plan,omitempty"`
|
|
}
|
|
|
|
func (m *EraseDevice) Reset() { *m = EraseDevice{} }
|
|
func (m *EraseDevice) String() string { return proto.CompactTextString(m) }
|
|
func (*EraseDevice) ProtoMessage() {}
|
|
func (*EraseDevice) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
|
|
|
|
func (m *EraseDevice) GetPin() string {
|
|
if m != nil {
|
|
return m.Pin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *EraseDevice) GetPreserveDataPlan() bool {
|
|
if m != nil {
|
|
return m.PreserveDataPlan
|
|
}
|
|
return false
|
|
}
|
|
|
|
type DeviceLock struct {
|
|
Pin string `protobuf:"bytes,1,opt,name=pin" json:"pin,omitempty"`
|
|
Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
|
|
PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber" json:"phone_number,omitempty"`
|
|
}
|
|
|
|
func (m *DeviceLock) Reset() { *m = DeviceLock{} }
|
|
func (m *DeviceLock) String() string { return proto.CompactTextString(m) }
|
|
func (*DeviceLock) ProtoMessage() {}
|
|
func (*DeviceLock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
|
|
|
|
func (m *DeviceLock) GetPin() string {
|
|
if m != nil {
|
|
return m.Pin
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeviceLock) GetMessage() string {
|
|
if m != nil {
|
|
return m.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DeviceLock) GetPhoneNumber() string {
|
|
if m != nil {
|
|
return m.PhoneNumber
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Settings struct {
|
|
Settings []*Setting `protobuf:"bytes,1,rep,name=settings" json:"settings,omitempty"`
|
|
}
|
|
|
|
func (m *Settings) Reset() { *m = Settings{} }
|
|
func (m *Settings) String() string { return proto.CompactTextString(m) }
|
|
func (*Settings) ProtoMessage() {}
|
|
func (*Settings) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
|
|
|
|
func (m *Settings) GetSettings() []*Setting {
|
|
if m != nil {
|
|
return m.Settings
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Setting struct {
|
|
Item string `protobuf:"bytes,1,opt,name=item" json:"item,omitempty"`
|
|
DeviceName *DeviceNameSetting `protobuf:"bytes,2,opt,name=device_name,json=deviceName" json:"device_name,omitempty"`
|
|
Hostname *HostnameSetting `protobuf:"bytes,3,opt,name=hostname" json:"hostname,omitempty"`
|
|
}
|
|
|
|
func (m *Setting) Reset() { *m = Setting{} }
|
|
func (m *Setting) String() string { return proto.CompactTextString(m) }
|
|
func (*Setting) ProtoMessage() {}
|
|
func (*Setting) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
|
|
|
|
func (m *Setting) GetItem() string {
|
|
if m != nil {
|
|
return m.Item
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Setting) GetDeviceName() *DeviceNameSetting {
|
|
if m != nil {
|
|
return m.DeviceName
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Setting) GetHostname() *HostnameSetting {
|
|
if m != nil {
|
|
return m.Hostname
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeviceNameSetting struct {
|
|
DeviceName string `protobuf:"bytes,1,opt,name=device_name,json=deviceName" json:"device_name,omitempty"`
|
|
}
|
|
|
|
func (m *DeviceNameSetting) Reset() { *m = DeviceNameSetting{} }
|
|
func (m *DeviceNameSetting) String() string { return proto.CompactTextString(m) }
|
|
func (*DeviceNameSetting) ProtoMessage() {}
|
|
func (*DeviceNameSetting) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
|
|
|
|
func (m *DeviceNameSetting) GetDeviceName() string {
|
|
if m != nil {
|
|
return m.DeviceName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type HostnameSetting struct {
|
|
Hostname string `protobuf:"bytes,1,opt,name=hostname" json:"hostname,omitempty"`
|
|
}
|
|
|
|
func (m *HostnameSetting) Reset() { *m = HostnameSetting{} }
|
|
func (m *HostnameSetting) String() string { return proto.CompactTextString(m) }
|
|
func (*HostnameSetting) ProtoMessage() {}
|
|
func (*HostnameSetting) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
|
|
|
|
func (m *HostnameSetting) GetHostname() string {
|
|
if m != nil {
|
|
return m.Hostname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Event)(nil), "commandproto.Event")
|
|
proto.RegisterType((*Payload)(nil), "commandproto.Payload")
|
|
proto.RegisterType((*Command)(nil), "commandproto.Command")
|
|
proto.RegisterType((*ScheduleOSUpdate)(nil), "commandproto.ScheduleOSUpdate")
|
|
proto.RegisterType((*OSUpdate)(nil), "commandproto.OSUpdate")
|
|
proto.RegisterType((*ScheduleOSUpdateScan)(nil), "commandproto.ScheduleOSUpdateScan")
|
|
proto.RegisterType((*AccountConfiguration)(nil), "commandproto.AccountConfiguration")
|
|
proto.RegisterType((*AutoSetupAdminAccounts)(nil), "commandproto.AutoSetupAdminAccounts")
|
|
proto.RegisterType((*DeviceInformation)(nil), "commandproto.DeviceInformation")
|
|
proto.RegisterType((*InstallProfile)(nil), "commandproto.InstallProfile")
|
|
proto.RegisterType((*RemoveProfile)(nil), "commandproto.RemoveProfile")
|
|
proto.RegisterType((*DeleteUser)(nil), "commandproto.DeleteUser")
|
|
proto.RegisterType((*InstallApplication)(nil), "commandproto.InstallApplication")
|
|
proto.RegisterType((*EraseDevice)(nil), "commandproto.EraseDevice")
|
|
proto.RegisterType((*DeviceLock)(nil), "commandproto.DeviceLock")
|
|
proto.RegisterType((*Settings)(nil), "commandproto.Settings")
|
|
proto.RegisterType((*Setting)(nil), "commandproto.Setting")
|
|
proto.RegisterType((*DeviceNameSetting)(nil), "commandproto.DeviceNameSetting")
|
|
proto.RegisterType((*HostnameSetting)(nil), "commandproto.HostnameSetting")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("command.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 1139 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x56, 0x5b, 0x6f, 0x1c, 0x35,
|
|
0x14, 0xd6, 0xee, 0xb6, 0xd9, 0xdd, 0xb3, 0xd9, 0x24, 0x35, 0x49, 0x3a, 0xa5, 0xb4, 0x09, 0x53,
|
|
0x40, 0x2d, 0xea, 0x05, 0x0a, 0x42, 0xaa, 0x04, 0x12, 0xa1, 0x29, 0x6a, 0x45, 0xdb, 0x04, 0x87,
|
|
0x80, 0x10, 0x42, 0x96, 0x3b, 0xe3, 0xdd, 0xb5, 0x32, 0x63, 0x4f, 0x6d, 0x4f, 0xd0, 0x3e, 0xf0,
|
|
0xc4, 0x2f, 0xe0, 0x15, 0x89, 0x7f, 0xc3, 0x0f, 0x43, 0xbe, 0xcd, 0x5e, 0xfb, 0xe6, 0xf3, 0xf9,
|
|
0x3b, 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