diff --git a/platform/command/internal/commandproto/command.go b/platform/command/internal/commandproto/command.go index 3b7dbd39..98a7c62d 100644 --- a/platform/command/internal/commandproto/command.go +++ b/platform/command/internal/commandproto/command.go @@ -1,3 +1,3 @@ package commandproto -//go:generate protoc --go_out=. command.proto +//go:generate protoc command.proto -I. --gofast_out=. diff --git a/platform/command/internal/commandproto/command.pb.go b/platform/command/internal/commandproto/command.pb.go index 031360dc..eaa8b663 100644 --- a/platform/command/internal/commandproto/command.pb.go +++ b/platform/command/internal/commandproto/command.pb.go @@ -1,32 +1,14 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. +// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: command.proto /* -Package commandproto is a generated protocol buffer package. + Package commandproto is a generated protocol buffer package. -It is generated from these files: - command.proto + 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 + It has these top-level messages: + Event */ package commandproto @@ -34,6 +16,8 @@ import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" +import io "io" + // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf @@ -46,17 +30,16 @@ var _ = math.Inf 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"` - PayloadBytes []byte `protobuf:"bytes,5,opt,name=payload_bytes,json=payloadBytes,proto3" json:"payload_bytes,omitempty"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` + DeviceUdid string `protobuf:"bytes,4,opt,name=device_udid,json=deviceUdid,proto3" json:"device_udid,omitempty"` + PayloadBytes []byte `protobuf:"bytes,5,opt,name=payload_bytes,json=payloadBytes,proto3" json:"payload_bytes,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 (*Event) Descriptor() ([]byte, []int) { return fileDescriptorCommand, []int{0} } func (m *Event) GetId() string { if m != nil { @@ -72,13 +55,6 @@ func (m *Event) GetTime() int64 { 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 @@ -93,623 +69,369 @@ func (m *Event) GetPayloadBytes() []byte { return nil } -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 (m *Event) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil } -func init() { proto.RegisterFile("command.proto", fileDescriptor0) } - -var fileDescriptor0 = []byte{ - // 1162 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x56, 0x5d, 0x6f, 0x1c, 0x35, - 0x17, 0xd6, 0xee, 0x36, 0xd9, 0xdd, 0xb3, 0xd9, 0x24, 0xf5, 0x9b, 0xa4, 0xd3, 0xb7, 0xb4, 0x09, - 0x53, 0x40, 0x29, 0xea, 0x07, 0x14, 0x84, 0x54, 0x09, 0x24, 0xd2, 0xa6, 0xa8, 0x15, 0xfd, 0x08, - 0x0e, 0x01, 0x21, 0x84, 0x2c, 0x67, 0xc6, 0xbb, 0x6b, 0x65, 0xc6, 0x9e, 0xda, 0x9e, 0xa0, 0xbd, - 0xe6, 0x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36, 0xec, 0x1c, 0xad, 0xee, 0xda, 0xbb, 0xfa, 0x82, 0x57, 0xa4, 0x52, 0xbc, 0xa4, - 0x6a, 0x4a, 0x34, 0x33, 0x75, 0x45, 0x1a, 0x87, 0x28, 0xe6, 0xcd, 0xe1, 0xc5, 0xf6, 0x2d, 0xf5, - 0xc4, 0x33, 0x4f, 0x2d, 0x31, 0x4a, 0x06, 0x1a, 0xfa, 0x09, 0xee, 0x69, 0x66, 0xde, 0x23, 0x46, - 0x35, 0x51, 0x6c, 0x5c, 0x17, 0x54, 0xf9, 0xa6, 0x69, 0x3b, 0xcd, 0xbb, 0x9a, 0x99, 0x15, 0x92, - 0x47, 0x1a, 0x7b, 0xae, 0xeb, 0x19, 0x02, 0x37, 0x69, 0x6d, 0x64, 0x14, 0xcc, 0x4b, 0x2e, 0xa2, - 0xac, 0x4e, 0x3a, 0xae, 0x08, 0x1f, 0x2d, 0x19, 0xb7, 0x36, 0xd2, 0xeb, 0x59, 0x72, 0x10, 0xd5, - 0x78, 0x8f, 0xae, 0xc4, 0xd3, 0x3f, 0x5b, 0xb0, 0xb7, 0x7a, 0x0b, 0xba, 0x0d, 0xa0, 0x27, 0x52, - 0x19, 0x22, 0x68, 0x19, 0x67, 0x67, 0xdf, 0x21, 0x6f, 0x68, 0xc9, 0xd0, 0x2d, 0xe8, 0x8f, 0xea, - 0xa2, 0xf0, 0xab, 0xbe, 0x52, 0x3d, 0x0b, 0xb8, 0x45, 0x77, 0x13, 0x68, 0xfd, 0xbb, 0x54, 0x39, - 0x99, 0x50, 0x3d, 0x71, 0x43, 0xd0, 0xdd, 0x04, 0x1e, 0x7c, 0x41, 0xf5, 0x04, 0xed, 0xc1, 0xfa, - 0x84, 0xe7, 0x39, 0xf3, 0x73, 0xad, 0x87, 0x43, 0x94, 0x3e, 0x80, 0xeb, 0x57, 0x66, 0x2d, 0x4a, - 0xa0, 0xfb, 0xae, 0x66, 0x8a, 0x87, 0xe6, 0xeb, 0xe3, 0x18, 0xa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x0a, 0x00, 0x00, +func (m *Event) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Id) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintCommand(dAtA, i, uint64(len(m.Id))) + i += copy(dAtA[i:], m.Id) + } + if m.Time != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintCommand(dAtA, i, uint64(m.Time)) + } + if len(m.DeviceUdid) > 0 { + dAtA[i] = 0x22 + i++ + i = encodeVarintCommand(dAtA, i, uint64(len(m.DeviceUdid))) + i += copy(dAtA[i:], m.DeviceUdid) + } + if len(m.PayloadBytes) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintCommand(dAtA, i, uint64(len(m.PayloadBytes))) + i += copy(dAtA[i:], m.PayloadBytes) + } + return i, nil +} + +func encodeVarintCommand(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *Event) Size() (n int) { + var l int + _ = l + l = len(m.Id) + if l > 0 { + n += 1 + l + sovCommand(uint64(l)) + } + if m.Time != 0 { + n += 1 + sovCommand(uint64(m.Time)) + } + l = len(m.DeviceUdid) + if l > 0 { + n += 1 + l + sovCommand(uint64(l)) + } + l = len(m.PayloadBytes) + if l > 0 { + n += 1 + l + sovCommand(uint64(l)) + } + return n +} + +func sovCommand(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozCommand(x uint64) (n int) { + return sovCommand(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Event) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommand + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Event: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommand + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommand + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Id = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType) + } + m.Time = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommand + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Time |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeviceUdid", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommand + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthCommand + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DeviceUdid = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PayloadBytes", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowCommand + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthCommand + } + postIndex := iNdEx + byteLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PayloadBytes = append(m.PayloadBytes[:0], dAtA[iNdEx:postIndex]...) + if m.PayloadBytes == nil { + m.PayloadBytes = []byte{} + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipCommand(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthCommand + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipCommand(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCommand + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCommand + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCommand + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthCommand + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowCommand + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipCommand(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthCommand = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowCommand = fmt.Errorf("proto: integer overflow") +) + +func init() { proto.RegisterFile("command.proto", fileDescriptorCommand) } + +var fileDescriptorCommand = []byte{ + // 166 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4d, 0xce, 0xcf, 0xcd, + 0x4d, 0xcc, 0x4b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0x72, 0xc1, 0x3c, 0xa5, + 0x42, 0x2e, 0x56, 0xd7, 0xb2, 0xd4, 0xbc, 0x12, 0x21, 0x3e, 0x2e, 0xa6, 0xcc, 0x14, 0x09, 0x46, + 0x05, 0x46, 0x0d, 0xce, 0x20, 0xa6, 0xcc, 0x14, 0x21, 0x21, 0x2e, 0x96, 0x92, 0xcc, 0xdc, 0x54, + 0x09, 0x26, 0x05, 0x46, 0x0d, 0xe6, 0x20, 0x30, 0x5b, 0x48, 0x9e, 0x8b, 0x3b, 0x25, 0xb5, 0x2c, + 0x33, 0x39, 0x35, 0xbe, 0x34, 0x25, 0x33, 0x45, 0x82, 0x05, 0xac, 0x98, 0x0b, 0x22, 0x14, 0x9a, + 0x92, 0x99, 0x22, 0xa4, 0xcc, 0xc5, 0x5b, 0x90, 0x58, 0x99, 0x93, 0x9f, 0x98, 0x12, 0x9f, 0x54, + 0x59, 0x92, 0x5a, 0x2c, 0xc1, 0xaa, 0xc0, 0xa8, 0xc1, 0x13, 0xc4, 0x03, 0x15, 0x74, 0x02, 0x89, + 0x39, 0x09, 0x9c, 0x78, 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x33, + 0x1e, 0xcb, 0x31, 0x24, 0xb1, 0x81, 0xdd, 0x62, 0x0c, 0x08, 0x00, 0x00, 0xff, 0xff, 0xb5, 0xca, + 0xac, 0xde, 0xaa, 0x00, 0x00, 0x00, } diff --git a/platform/command/internal/commandproto/command.proto b/platform/command/internal/commandproto/command.proto index acf8c03b..b7343968 100644 --- a/platform/command/internal/commandproto/command.proto +++ b/platform/command/internal/commandproto/command.proto @@ -5,109 +5,6 @@ package commandproto; message Event { string id = 1; int64 time = 2; - Payload payload = 3; // unused string device_udid = 4; bytes payload_bytes = 5; } - -message Payload { - string command_uuid = 1; - Command command = 2; -} - -message Command { - string request_type = 1; - DeviceInformation device_information = 2; - InstallProfile install_profile = 3; - InstallApplication install_application = 4; - AccountConfiguration account_configuration = 5; - ScheduleOSUpdate schedule_os_update = 6; - ScheduleOSUpdateScan schedule_os_update_scan = 7; - RemoveProfile remove_profile = 8; - DeleteUser delete_user = 9; - Settings settings = 10; - EraseDevice erase_device = 11; - DeviceLock device_lock = 12; -} - -message ScheduleOSUpdate { - repeated OSUpdate updates = 1; -} - -message OSUpdate { - string product_key = 1; - string install_action = 2; -} - -message ScheduleOSUpdateScan { - bool force = 1; -} - -message AccountConfiguration { - bool skip_primary_setup_account_creation = 1; - bool set_primary_setup_account_as_regular_user = 2; - repeated AutoSetupAdminAccounts auto_setup_admin_accounts = 3; -} - -message AutoSetupAdminAccounts { - string short_name = 1; - string full_name = 2; - bytes password_hash = 3; - bool hidden = 4; -} - -message DeviceInformation { - repeated string queries = 1; -} - -message InstallProfile { - bytes payload = 1; -} - -message RemoveProfile { - string identifier = 1; -} - -message DeleteUser { - string username = 1; - bool force_deletion = 2; -} - -message InstallApplication { - int64 itunes_store_id = 1; - string identifier = 2; - string manifest_url = 3; - int64 management_flags = 4; - bool not_managed = 5; - string change_management_state = 6; -} - -message EraseDevice { - string pin = 1; - bool preserve_data_plan = 2; -} - -message DeviceLock { - string pin = 1; - string message = 2; - string phone_number = 3; -} - -message Settings { - repeated Setting settings = 1; -} - -message Setting { - string item = 1; - DeviceNameSetting device_name = 2; - HostnameSetting hostname = 3; -} - -message DeviceNameSetting { - string device_name = 1; -} - - -message HostnameSetting { - string hostname = 1; -}