diff --git a/CHANGELOG.md b/CHANGELOG.md index fd986fba..0c8e6f54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## [Unreleased](https://github.com/micromdm/micromdm/compare/v1.8.0...main) TBD +- Replace gogo/protobuf with Google protobuf (#773) - Add GHCR container workflow. Add ARM build. (#745) - New in-memory-only command queue (#736) - Bootstrap token support (#781, #782) diff --git a/go.mod b/go.mod index d95757ce..7eb6459a 100644 --- a/go.mod +++ b/go.mod @@ -9,8 +9,6 @@ require ( github.com/go-kit/kit v0.7.0 github.com/go-sql-driver/mysql v1.4.0 // indirect github.com/go-stack/stack v1.7.0 // indirect - github.com/gogo/protobuf v1.3.2 - github.com/golang/protobuf v1.4.3 github.com/google/uuid v1.1.1 github.com/gorilla/context v1.1.1 // indirect github.com/gorilla/handlers v1.5.1 @@ -33,7 +31,9 @@ require ( go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 golang.org/x/net v0.0.0-20201021035429-f5854403a974 + golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect google.golang.org/appengine v1.2.0 // indirect + google.golang.org/protobuf v1.27.1 gopkg.in/Masterminds/squirrel.v1 v1.0.0-20170825200431-a6b93000bd21 ) diff --git a/go.sum b/go.sum index 7a6462ca..4e577674 100644 --- a/go.sum +++ b/go.sum @@ -13,7 +13,6 @@ github.com/go-kit/kit v0.4.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2 github.com/go-kit/kit v0.5.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.7.0 h1:ApufNmWF1H6/wUbAG81hZOHmqwd0zRf8mNfLjYj/064= github.com/go-kit/kit v0.7.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= -github.com/go-kit/kit v0.10.0 h1:dXFJfIHVvUcpSgDOV+Ne6t7jXri8Tfv2uOLHUZ2XNuo= github.com/go-logfmt/logfmt v0.3.0 h1:8HUsc87TaSWLKwrnumgC8/YconD2fJQsRJAsWaPg2ic= github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= github.com/go-sql-driver/mysql v1.4.0 h1:7LxgVwFb2hIQtMm87NdgAVfXjnt4OePseqT1tKx+opk= @@ -21,20 +20,10 @@ github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG github.com/go-stack/stack v1.6.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-stack/stack v1.7.0 h1:S04+lLfST9FvL8dl4R31wVUC/paZp/WQZbLmUgWboGw= github.com/go-stack/stack v1.7.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= -github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/context v0.0.0-20160226214623-1ea25387ff6f/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= @@ -51,8 +40,6 @@ github.com/groob/plist v0.0.0-20180203051248-dd56909aee38 h1:afbUddvIjPRC7XHHgeS github.com/groob/plist v0.0.0-20180203051248-dd56909aee38/go.mod h1:qg2Nek0ND/hIr+nY8H1oVqEW2cLzVVNaAQ0QexOyjyc= github.com/jmoiron/sqlx v0.0.0-20180614180643-0dae4fefe7c0 h1:5B0uxl2lzNRVkJVg+uGHxWtRt4C0Wjc6kJKo5XYx8xE= github.com/jmoiron/sqlx v0.0.0-20180614180643-0dae4fefe7c0/go.mod h1:IiEW3SEiiErVyFdH8NTuWjSifiEQKUoyK3LNqr2kCHU= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= github.com/kolide/kit v0.0.0-20180912215818-0c28f72eb2b0 h1:8UB0NJBoB/lN2O9zG9+U2klyYE0UhvN2Zrn7HBjhwNY= github.com/kolide/kit v0.0.0-20180912215818-0c28f72eb2b0/go.mod h1:N3Yv8okDVC/5qZhPA9uxVYRfkp4mD2vrlQiSCWlNCpg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY= @@ -77,29 +64,19 @@ github.com/pressly/goose v2.3.0+incompatible h1:Nc9o+JsN4j8sS4hvRzcfKYOrr7W2EXMD github.com/pressly/goose v2.3.0+incompatible/go.mod h1:m+QHWCqxR3k8D9l7qfzuC/djtlfzxr34mozWDYEu1z8= github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/ziutek/mymysql v1.5.4 h1:GB0qdRGsTwQSBVYuVShFBKaXSnSnYYC2d9knnE1LHFs= github.com/ziutek/mymysql v1.5.4/go.mod h1:LMSpPZ6DbqWFxNCHW77HeMg9I646SAhApZ/wKdgO/C0= go.mozilla.org/pkcs7 v0.0.0-20210730143726-725912489c62/go.mod h1:SNgMg+EgDFwmvSmLRTNKC5fegJjB7v23qTQ0XLGUNHk= go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 h1:CCriYyAfq1Br1aIYettdHZTy8mBTIPo7We18TuO/bak= go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352/go.mod h1:SNgMg+EgDFwmvSmLRTNKC5fegJjB7v23qTQ0XLGUNHk= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20170726083632-f5079bd7f6f7/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974 h1:IX6qOQeG5uLjB/hjjwjedwfjND0hgjPMMyO1RoIXQNI= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20170728174421-0f826bdd13b5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -109,22 +86,13 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.2.0 h1:S0iUepdCWODXRvtE+gcRDd15L+k+k1AiHlMiMjefH24= google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.23.0 h1:4MY060fB1DLGMB/7MBTLnwQUY6+F09GEiz6SsrNqyzM= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= gopkg.in/Masterminds/squirrel.v1 v1.0.0-20170825200431-a6b93000bd21 h1:GmGVIcDxdecAcVjcTp4IpK4VmCMxXhyZKwN2eIzsZ4Y= gopkg.in/Masterminds/squirrel.v1 v1.0.0-20170825200431-a6b93000bd21/go.mod h1:8PH4rQjb7OdPC6OWDDuY6J/PT8iSNTiff3jmccc2m10= diff --git a/mdm/acknowledge_event.go b/mdm/acknowledge_event.go index 32115598..8975d7ba 100644 --- a/mdm/acknowledge_event.go +++ b/mdm/acknowledge_event.go @@ -3,7 +3,8 @@ package mdm import ( "time" - "github.com/gogo/protobuf/proto" + "google.golang.org/protobuf/proto" + "github.com/micromdm/micromdm/mdm/internal/connectproto" ) diff --git a/mdm/checkin_event.go b/mdm/checkin_event.go index 62c9e849..2dbfba84 100644 --- a/mdm/checkin_event.go +++ b/mdm/checkin_event.go @@ -4,7 +4,7 @@ import ( "encoding/hex" "time" - "github.com/gogo/protobuf/proto" + "google.golang.org/protobuf/proto" "github.com/micromdm/micromdm/mdm/internal/checkinproto" ) diff --git a/mdm/internal/checkinproto/checkin.go b/mdm/internal/checkinproto/checkin.go index d5f55eed..825d9ef0 100644 --- a/mdm/internal/checkinproto/checkin.go +++ b/mdm/internal/checkinproto/checkin.go @@ -1,3 +1,3 @@ package checkinproto -//go:generate protoc --go_out=. checkin.proto +//go:generate protoc --go_out=. --go_opt=paths=source_relative checkin.proto diff --git a/mdm/internal/checkinproto/checkin.pb.go b/mdm/internal/checkinproto/checkin.pb.go index 3d4e7155..68102cd7 100644 --- a/mdm/internal/checkinproto/checkin.pb.go +++ b/mdm/internal/checkinproto/checkin.pb.go @@ -1,537 +1,765 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: checkin.proto package checkinproto import ( - fmt "fmt" - - proto "github.com/golang/protobuf/proto" - - math "math" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Event struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` - Command *Command `protobuf:"bytes,3,opt,name=command,proto3" json:"command,omitempty"` - Raw []byte `protobuf:"bytes,4,opt,name=raw,proto3" json:"raw,omitempty"` - Params map[string]string `protobuf:"bytes,5,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` + Command *Command `protobuf:"bytes,3,opt,name=command,proto3" json:"command,omitempty"` + Raw []byte `protobuf:"bytes,4,opt,name=raw,proto3" json:"raw,omitempty"` + Params map[string]string `protobuf:"bytes,5,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} +func (x *Event) Reset() { + *x = Event{} + if protoimpl.UnsafeEnabled { + mi := &file_checkin_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Event) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Event) ProtoMessage() {} + +func (x *Event) ProtoReflect() protoreflect.Message { + mi := &file_checkin_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Event.ProtoReflect.Descriptor instead. func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_checkin_f106eb4ffaf2f7e3, []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 (dst *Event) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event.Merge(dst, src) -} -func (m *Event) XXX_Size() int { - return xxx_messageInfo_Event.Size(m) -} -func (m *Event) XXX_DiscardUnknown() { - xxx_messageInfo_Event.DiscardUnknown(m) + return file_checkin_proto_rawDescGZIP(), []int{0} } -var xxx_messageInfo_Event proto.InternalMessageInfo - -func (m *Event) GetId() string { - if m != nil { - return m.Id +func (x *Event) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Event) GetTime() int64 { - if m != nil { - return m.Time +func (x *Event) GetTime() int64 { + if x != nil { + return x.Time } return 0 } -func (m *Event) GetCommand() *Command { - if m != nil { - return m.Command +func (x *Event) GetCommand() *Command { + if x != nil { + return x.Command } return nil } -func (m *Event) GetRaw() []byte { - if m != nil { - return m.Raw +func (x *Event) GetRaw() []byte { + if x != nil { + return x.Raw } return nil } -func (m *Event) GetParams() map[string]string { - if m != nil { - return m.Params +func (x *Event) GetParams() map[string]string { + if x != nil { + return x.Params } return nil } type Command struct { - MessageType string `protobuf:"bytes,1,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"` - Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` - Udid string `protobuf:"bytes,3,opt,name=udid,proto3" json:"udid,omitempty"` - Authenticate *Authenticate `protobuf:"bytes,4,opt,name=authenticate,proto3" json:"authenticate,omitempty"` - TokenUpdate *TokenUpdate `protobuf:"bytes,5,opt,name=token_update,json=tokenUpdate,proto3" json:"token_update,omitempty"` - EnrollmentId string `protobuf:"bytes,6,opt,name=enrollment_id,json=enrollmentId,proto3" json:"enrollment_id,omitempty"` - GetBootstrapToken *GetBootstrapToken `protobuf:"bytes,7,opt,name=get_bootstrap_token,json=getBootstrapToken,proto3" json:"get_bootstrap_token,omitempty"` - SetBootstrapToken *SetBootstrapToken `protobuf:"bytes,8,opt,name=set_bootstrap_token,json=setBootstrapToken,proto3" json:"set_bootstrap_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MessageType string `protobuf:"bytes,1,opt,name=message_type,json=messageType,proto3" json:"message_type,omitempty"` + Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"` + Udid string `protobuf:"bytes,3,opt,name=udid,proto3" json:"udid,omitempty"` + Authenticate *Authenticate `protobuf:"bytes,4,opt,name=authenticate,proto3" json:"authenticate,omitempty"` + TokenUpdate *TokenUpdate `protobuf:"bytes,5,opt,name=token_update,json=tokenUpdate,proto3" json:"token_update,omitempty"` + EnrollmentId string `protobuf:"bytes,6,opt,name=enrollment_id,json=enrollmentId,proto3" json:"enrollment_id,omitempty"` + GetBootstrapToken *GetBootstrapToken `protobuf:"bytes,7,opt,name=get_bootstrap_token,json=getBootstrapToken,proto3" json:"get_bootstrap_token,omitempty"` + SetBootstrapToken *SetBootstrapToken `protobuf:"bytes,8,opt,name=set_bootstrap_token,json=setBootstrapToken,proto3" json:"set_bootstrap_token,omitempty"` } -func (m *Command) Reset() { *m = Command{} } -func (m *Command) String() string { return proto.CompactTextString(m) } -func (*Command) ProtoMessage() {} +func (x *Command) Reset() { + *x = Command{} + if protoimpl.UnsafeEnabled { + mi := &file_checkin_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Command) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Command) ProtoMessage() {} + +func (x *Command) ProtoReflect() protoreflect.Message { + mi := &file_checkin_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Command.ProtoReflect.Descriptor instead. func (*Command) Descriptor() ([]byte, []int) { - return fileDescriptor_checkin_f106eb4ffaf2f7e3, []int{1} -} -func (m *Command) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Command.Unmarshal(m, b) -} -func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Command.Marshal(b, m, deterministic) -} -func (dst *Command) XXX_Merge(src proto.Message) { - xxx_messageInfo_Command.Merge(dst, src) -} -func (m *Command) XXX_Size() int { - return xxx_messageInfo_Command.Size(m) -} -func (m *Command) XXX_DiscardUnknown() { - xxx_messageInfo_Command.DiscardUnknown(m) + return file_checkin_proto_rawDescGZIP(), []int{1} } -var xxx_messageInfo_Command proto.InternalMessageInfo - -func (m *Command) GetMessageType() string { - if m != nil { - return m.MessageType +func (x *Command) GetMessageType() string { + if x != nil { + return x.MessageType } return "" } -func (m *Command) GetTopic() string { - if m != nil { - return m.Topic +func (x *Command) GetTopic() string { + if x != nil { + return x.Topic } return "" } -func (m *Command) GetUdid() string { - if m != nil { - return m.Udid +func (x *Command) GetUdid() string { + if x != nil { + return x.Udid } return "" } -func (m *Command) GetAuthenticate() *Authenticate { - if m != nil { - return m.Authenticate +func (x *Command) GetAuthenticate() *Authenticate { + if x != nil { + return x.Authenticate } return nil } -func (m *Command) GetTokenUpdate() *TokenUpdate { - if m != nil { - return m.TokenUpdate +func (x *Command) GetTokenUpdate() *TokenUpdate { + if x != nil { + return x.TokenUpdate } return nil } -func (m *Command) GetEnrollmentId() string { - if m != nil { - return m.EnrollmentId +func (x *Command) GetEnrollmentId() string { + if x != nil { + return x.EnrollmentId } return "" } -func (m *Command) GetGetBootstrapToken() *GetBootstrapToken { - if m != nil { - return m.GetBootstrapToken +func (x *Command) GetGetBootstrapToken() *GetBootstrapToken { + if x != nil { + return x.GetBootstrapToken } return nil } -func (m *Command) GetSetBootstrapToken() *SetBootstrapToken { - if m != nil { - return m.SetBootstrapToken +func (x *Command) GetSetBootstrapToken() *SetBootstrapToken { + if x != nil { + return x.SetBootstrapToken } return nil } type Authenticate struct { - OsVersion string `protobuf:"bytes,1,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"` - BuildVersion string `protobuf:"bytes,2,opt,name=build_version,json=buildVersion,proto3" json:"build_version,omitempty"` - ProductName string `protobuf:"bytes,3,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` - SerialNumber string `protobuf:"bytes,4,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` - Imei string `protobuf:"bytes,5,opt,name=imei,proto3" json:"imei,omitempty"` - Meid string `protobuf:"bytes,6,opt,name=meid,proto3" json:"meid,omitempty"` - DeviceName string `protobuf:"bytes,7,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` - Challenge []byte `protobuf:"bytes,8,opt,name=challenge,proto3" json:"challenge,omitempty"` - Model string `protobuf:"bytes,9,opt,name=model,proto3" json:"model,omitempty"` - ModelName string `protobuf:"bytes,10,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + OsVersion string `protobuf:"bytes,1,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"` + BuildVersion string `protobuf:"bytes,2,opt,name=build_version,json=buildVersion,proto3" json:"build_version,omitempty"` + ProductName string `protobuf:"bytes,3,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` + SerialNumber string `protobuf:"bytes,4,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` + Imei string `protobuf:"bytes,5,opt,name=imei,proto3" json:"imei,omitempty"` + Meid string `protobuf:"bytes,6,opt,name=meid,proto3" json:"meid,omitempty"` + DeviceName string `protobuf:"bytes,7,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` + Challenge []byte `protobuf:"bytes,8,opt,name=challenge,proto3" json:"challenge,omitempty"` + Model string `protobuf:"bytes,9,opt,name=model,proto3" json:"model,omitempty"` + ModelName string `protobuf:"bytes,10,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"` } -func (m *Authenticate) Reset() { *m = Authenticate{} } -func (m *Authenticate) String() string { return proto.CompactTextString(m) } -func (*Authenticate) ProtoMessage() {} +func (x *Authenticate) Reset() { + *x = Authenticate{} + if protoimpl.UnsafeEnabled { + mi := &file_checkin_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Authenticate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Authenticate) ProtoMessage() {} + +func (x *Authenticate) ProtoReflect() protoreflect.Message { + mi := &file_checkin_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Authenticate.ProtoReflect.Descriptor instead. func (*Authenticate) Descriptor() ([]byte, []int) { - return fileDescriptor_checkin_f106eb4ffaf2f7e3, []int{2} -} -func (m *Authenticate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Authenticate.Unmarshal(m, b) -} -func (m *Authenticate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Authenticate.Marshal(b, m, deterministic) -} -func (dst *Authenticate) XXX_Merge(src proto.Message) { - xxx_messageInfo_Authenticate.Merge(dst, src) -} -func (m *Authenticate) XXX_Size() int { - return xxx_messageInfo_Authenticate.Size(m) -} -func (m *Authenticate) XXX_DiscardUnknown() { - xxx_messageInfo_Authenticate.DiscardUnknown(m) + return file_checkin_proto_rawDescGZIP(), []int{2} } -var xxx_messageInfo_Authenticate proto.InternalMessageInfo - -func (m *Authenticate) GetOsVersion() string { - if m != nil { - return m.OsVersion +func (x *Authenticate) GetOsVersion() string { + if x != nil { + return x.OsVersion } return "" } -func (m *Authenticate) GetBuildVersion() string { - if m != nil { - return m.BuildVersion +func (x *Authenticate) GetBuildVersion() string { + if x != nil { + return x.BuildVersion } return "" } -func (m *Authenticate) GetProductName() string { - if m != nil { - return m.ProductName +func (x *Authenticate) GetProductName() string { + if x != nil { + return x.ProductName } return "" } -func (m *Authenticate) GetSerialNumber() string { - if m != nil { - return m.SerialNumber +func (x *Authenticate) GetSerialNumber() string { + if x != nil { + return x.SerialNumber } return "" } -func (m *Authenticate) GetImei() string { - if m != nil { - return m.Imei +func (x *Authenticate) GetImei() string { + if x != nil { + return x.Imei } return "" } -func (m *Authenticate) GetMeid() string { - if m != nil { - return m.Meid +func (x *Authenticate) GetMeid() string { + if x != nil { + return x.Meid } return "" } -func (m *Authenticate) GetDeviceName() string { - if m != nil { - return m.DeviceName +func (x *Authenticate) GetDeviceName() string { + if x != nil { + return x.DeviceName } return "" } -func (m *Authenticate) GetChallenge() []byte { - if m != nil { - return m.Challenge +func (x *Authenticate) GetChallenge() []byte { + if x != nil { + return x.Challenge } return nil } -func (m *Authenticate) GetModel() string { - if m != nil { - return m.Model +func (x *Authenticate) GetModel() string { + if x != nil { + return x.Model } return "" } -func (m *Authenticate) GetModelName() string { - if m != nil { - return m.ModelName +func (x *Authenticate) GetModelName() string { + if x != nil { + return x.ModelName } return "" } type TokenUpdate struct { - Token []byte `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` - PushMagic string `protobuf:"bytes,2,opt,name=push_magic,json=pushMagic,proto3" json:"push_magic,omitempty"` - UnlockToken []byte `protobuf:"bytes,3,opt,name=unlock_token,json=unlockToken,proto3" json:"unlock_token,omitempty"` - AwaitingConfiguration bool `protobuf:"varint,4,opt,name=awaiting_configuration,json=awaitingConfiguration,proto3" json:"awaiting_configuration,omitempty"` - UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - UserLongName string `protobuf:"bytes,6,opt,name=user_long_name,json=userLongName,proto3" json:"user_long_name,omitempty"` - UserShortName string `protobuf:"bytes,7,opt,name=user_short_name,json=userShortName,proto3" json:"user_short_name,omitempty"` - NotOnConsole bool `protobuf:"varint,8,opt,name=not_on_console,json=notOnConsole,proto3" json:"not_on_console,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Token []byte `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` + PushMagic string `protobuf:"bytes,2,opt,name=push_magic,json=pushMagic,proto3" json:"push_magic,omitempty"` + UnlockToken []byte `protobuf:"bytes,3,opt,name=unlock_token,json=unlockToken,proto3" json:"unlock_token,omitempty"` + AwaitingConfiguration bool `protobuf:"varint,4,opt,name=awaiting_configuration,json=awaitingConfiguration,proto3" json:"awaiting_configuration,omitempty"` + UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + UserLongName string `protobuf:"bytes,6,opt,name=user_long_name,json=userLongName,proto3" json:"user_long_name,omitempty"` + UserShortName string `protobuf:"bytes,7,opt,name=user_short_name,json=userShortName,proto3" json:"user_short_name,omitempty"` + NotOnConsole bool `protobuf:"varint,8,opt,name=not_on_console,json=notOnConsole,proto3" json:"not_on_console,omitempty"` } -func (m *TokenUpdate) Reset() { *m = TokenUpdate{} } -func (m *TokenUpdate) String() string { return proto.CompactTextString(m) } -func (*TokenUpdate) ProtoMessage() {} +func (x *TokenUpdate) Reset() { + *x = TokenUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_checkin_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TokenUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TokenUpdate) ProtoMessage() {} + +func (x *TokenUpdate) ProtoReflect() protoreflect.Message { + mi := &file_checkin_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TokenUpdate.ProtoReflect.Descriptor instead. func (*TokenUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_checkin_f106eb4ffaf2f7e3, []int{3} -} -func (m *TokenUpdate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TokenUpdate.Unmarshal(m, b) -} -func (m *TokenUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TokenUpdate.Marshal(b, m, deterministic) -} -func (dst *TokenUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_TokenUpdate.Merge(dst, src) -} -func (m *TokenUpdate) XXX_Size() int { - return xxx_messageInfo_TokenUpdate.Size(m) -} -func (m *TokenUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_TokenUpdate.DiscardUnknown(m) + return file_checkin_proto_rawDescGZIP(), []int{3} } -var xxx_messageInfo_TokenUpdate proto.InternalMessageInfo - -func (m *TokenUpdate) GetToken() []byte { - if m != nil { - return m.Token +func (x *TokenUpdate) GetToken() []byte { + if x != nil { + return x.Token } return nil } -func (m *TokenUpdate) GetPushMagic() string { - if m != nil { - return m.PushMagic +func (x *TokenUpdate) GetPushMagic() string { + if x != nil { + return x.PushMagic } return "" } -func (m *TokenUpdate) GetUnlockToken() []byte { - if m != nil { - return m.UnlockToken +func (x *TokenUpdate) GetUnlockToken() []byte { + if x != nil { + return x.UnlockToken } return nil } -func (m *TokenUpdate) GetAwaitingConfiguration() bool { - if m != nil { - return m.AwaitingConfiguration +func (x *TokenUpdate) GetAwaitingConfiguration() bool { + if x != nil { + return x.AwaitingConfiguration } return false } -func (m *TokenUpdate) GetUserId() string { - if m != nil { - return m.UserId +func (x *TokenUpdate) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *TokenUpdate) GetUserLongName() string { - if m != nil { - return m.UserLongName +func (x *TokenUpdate) GetUserLongName() string { + if x != nil { + return x.UserLongName } return "" } -func (m *TokenUpdate) GetUserShortName() string { - if m != nil { - return m.UserShortName +func (x *TokenUpdate) GetUserShortName() string { + if x != nil { + return x.UserShortName } return "" } -func (m *TokenUpdate) GetNotOnConsole() bool { - if m != nil { - return m.NotOnConsole +func (x *TokenUpdate) GetNotOnConsole() bool { + if x != nil { + return x.NotOnConsole } return false } type GetBootstrapToken struct { - GetAwaitingConfiguration bool `protobuf:"varint,1,opt,name=get_awaiting_configuration,json=getAwaitingConfiguration,proto3" json:"get_awaiting_configuration,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + GetAwaitingConfiguration bool `protobuf:"varint,1,opt,name=get_awaiting_configuration,json=getAwaitingConfiguration,proto3" json:"get_awaiting_configuration,omitempty"` } -func (m *GetBootstrapToken) Reset() { *m = GetBootstrapToken{} } -func (m *GetBootstrapToken) String() string { return proto.CompactTextString(m) } -func (*GetBootstrapToken) ProtoMessage() {} +func (x *GetBootstrapToken) Reset() { + *x = GetBootstrapToken{} + if protoimpl.UnsafeEnabled { + mi := &file_checkin_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetBootstrapToken) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBootstrapToken) ProtoMessage() {} + +func (x *GetBootstrapToken) ProtoReflect() protoreflect.Message { + mi := &file_checkin_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetBootstrapToken.ProtoReflect.Descriptor instead. func (*GetBootstrapToken) Descriptor() ([]byte, []int) { - return fileDescriptor_checkin_f106eb4ffaf2f7e3, []int{4} -} -func (m *GetBootstrapToken) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetBootstrapToken.Unmarshal(m, b) -} -func (m *GetBootstrapToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetBootstrapToken.Marshal(b, m, deterministic) -} -func (dst *GetBootstrapToken) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetBootstrapToken.Merge(dst, src) -} -func (m *GetBootstrapToken) XXX_Size() int { - return xxx_messageInfo_GetBootstrapToken.Size(m) -} -func (m *GetBootstrapToken) XXX_DiscardUnknown() { - xxx_messageInfo_GetBootstrapToken.DiscardUnknown(m) + return file_checkin_proto_rawDescGZIP(), []int{4} } -var xxx_messageInfo_GetBootstrapToken proto.InternalMessageInfo - -func (m *GetBootstrapToken) GetGetAwaitingConfiguration() bool { - if m != nil { - return m.GetAwaitingConfiguration +func (x *GetBootstrapToken) GetGetAwaitingConfiguration() bool { + if x != nil { + return x.GetAwaitingConfiguration } return false } type SetBootstrapToken struct { - BootstrapToken []byte `protobuf:"bytes,1,opt,name=bootstrap_token,json=bootstrapToken,proto3" json:"bootstrap_token,omitempty"` - SetAwaitingConfiguration bool `protobuf:"varint,2,opt,name=set_awaiting_configuration,json=setAwaitingConfiguration,proto3" json:"set_awaiting_configuration,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BootstrapToken []byte `protobuf:"bytes,1,opt,name=bootstrap_token,json=bootstrapToken,proto3" json:"bootstrap_token,omitempty"` + SetAwaitingConfiguration bool `protobuf:"varint,2,opt,name=set_awaiting_configuration,json=setAwaitingConfiguration,proto3" json:"set_awaiting_configuration,omitempty"` } -func (m *SetBootstrapToken) Reset() { *m = SetBootstrapToken{} } -func (m *SetBootstrapToken) String() string { return proto.CompactTextString(m) } -func (*SetBootstrapToken) ProtoMessage() {} +func (x *SetBootstrapToken) Reset() { + *x = SetBootstrapToken{} + if protoimpl.UnsafeEnabled { + mi := &file_checkin_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetBootstrapToken) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetBootstrapToken) ProtoMessage() {} + +func (x *SetBootstrapToken) ProtoReflect() protoreflect.Message { + mi := &file_checkin_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetBootstrapToken.ProtoReflect.Descriptor instead. func (*SetBootstrapToken) Descriptor() ([]byte, []int) { - return fileDescriptor_checkin_f106eb4ffaf2f7e3, []int{5} -} -func (m *SetBootstrapToken) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SetBootstrapToken.Unmarshal(m, b) -} -func (m *SetBootstrapToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SetBootstrapToken.Marshal(b, m, deterministic) -} -func (dst *SetBootstrapToken) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetBootstrapToken.Merge(dst, src) -} -func (m *SetBootstrapToken) XXX_Size() int { - return xxx_messageInfo_SetBootstrapToken.Size(m) -} -func (m *SetBootstrapToken) XXX_DiscardUnknown() { - xxx_messageInfo_SetBootstrapToken.DiscardUnknown(m) + return file_checkin_proto_rawDescGZIP(), []int{5} } -var xxx_messageInfo_SetBootstrapToken proto.InternalMessageInfo - -func (m *SetBootstrapToken) GetBootstrapToken() []byte { - if m != nil { - return m.BootstrapToken +func (x *SetBootstrapToken) GetBootstrapToken() []byte { + if x != nil { + return x.BootstrapToken } return nil } -func (m *SetBootstrapToken) GetSetAwaitingConfiguration() bool { - if m != nil { - return m.SetAwaitingConfiguration +func (x *SetBootstrapToken) GetSetAwaitingConfiguration() bool { + if x != nil { + return x.SetAwaitingConfiguration } return false } -func init() { - proto.RegisterType((*Event)(nil), "checkinproto.Event") - proto.RegisterMapType((map[string]string)(nil), "checkinproto.Event.ParamsEntry") - proto.RegisterType((*Command)(nil), "checkinproto.Command") - proto.RegisterType((*Authenticate)(nil), "checkinproto.Authenticate") - proto.RegisterType((*TokenUpdate)(nil), "checkinproto.TokenUpdate") - proto.RegisterType((*GetBootstrapToken)(nil), "checkinproto.GetBootstrapToken") - proto.RegisterType((*SetBootstrapToken)(nil), "checkinproto.SetBootstrapToken") +var File_checkin_proto protoreflect.FileDescriptor + +var file_checkin_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0c, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x69, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe2, 0x01, + 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x07, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x69, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x10, 0x0a, 0x03, + 0x72, 0x61, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x72, 0x61, 0x77, 0x12, 0x37, + 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x69, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, + 0x38, 0x01, 0x22, 0x9b, 0x03, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x21, + 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x64, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x64, 0x69, 0x64, 0x12, 0x3e, 0x0a, 0x0c, 0x61, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x69, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x61, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x69, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x6e, 0x72, + 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0c, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x4f, + 0x0a, 0x13, 0x67, 0x65, 0x74, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x69, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6f, + 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x11, 0x67, 0x65, + 0x74, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x4f, 0x0a, 0x13, 0x73, 0x65, 0x74, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, + 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x69, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x74, 0x42, + 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x11, 0x73, + 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x22, 0xb6, 0x02, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, + 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, + 0x64, 0x75, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x69, + 0x61, 0x6c, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, + 0x04, 0x69, 0x6d, 0x65, 0x69, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6d, 0x65, + 0x69, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x65, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6d, 0x65, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, + 0x6e, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, + 0x65, 0x6e, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xa9, 0x02, 0x0a, 0x0b, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, + 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x73, 0x68, 0x4d, 0x61, 0x67, 0x69, 0x63, 0x12, 0x21, + 0x0a, 0x0c, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x6f, 0x6b, 0x65, + 0x6e, 0x12, 0x35, 0x0a, 0x16, 0x61, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x15, 0x61, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x6e, 0x67, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x4c, + 0x6f, 0x6e, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x73, 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x24, 0x0a, 0x0e, 0x6e, 0x6f, 0x74, 0x5f, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6e, 0x6f, 0x74, 0x4f, 0x6e, 0x43, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x22, 0x51, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x74, + 0x73, 0x74, 0x72, 0x61, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x3c, 0x0a, 0x1a, 0x67, 0x65, + 0x74, 0x5f, 0x61, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, + 0x67, 0x65, 0x74, 0x41, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7a, 0x0a, 0x11, 0x53, 0x65, 0x74, 0x42, + 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x27, 0x0a, + 0x0f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, + 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x3c, 0x0a, 0x1a, 0x73, 0x65, 0x74, 0x5f, 0x61, 0x77, + 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x73, 0x65, 0x74, 0x41, + 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, + 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x6d, 0x64, 0x6d, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x2f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x69, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("checkin.proto", fileDescriptor_checkin_f106eb4ffaf2f7e3) } +var ( + file_checkin_proto_rawDescOnce sync.Once + file_checkin_proto_rawDescData = file_checkin_proto_rawDesc +) -var fileDescriptor_checkin_f106eb4ffaf2f7e3 = []byte{ - // 722 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0x6d, 0x6e, 0xdb, 0x38, - 0x10, 0x85, 0xec, 0xd8, 0x8e, 0x46, 0x8a, 0xb3, 0xe1, 0x6e, 0x76, 0xb5, 0xc1, 0x2e, 0xe2, 0xb8, - 0x41, 0xeb, 0x5f, 0x2e, 0x90, 0xa2, 0xe8, 0x07, 0x82, 0x02, 0x69, 0x10, 0x14, 0x01, 0xda, 0xa4, - 0x55, 0xd2, 0xfe, 0x15, 0x68, 0x89, 0x95, 0x09, 0x4b, 0xa4, 0x20, 0x52, 0x0e, 0xdc, 0xab, 0xf4, - 0x04, 0xbd, 0x40, 0x0f, 0xd4, 0x93, 0x14, 0x1c, 0xca, 0x89, 0x3f, 0x92, 0x7f, 0x33, 0x8f, 0x8f, - 0x6f, 0x38, 0x6f, 0x86, 0xb0, 0x15, 0x8f, 0x59, 0x3c, 0xe1, 0x62, 0x58, 0x94, 0x52, 0x4b, 0xe2, - 0xd7, 0x29, 0x66, 0xfd, 0x5f, 0x0e, 0xb4, 0xce, 0xa6, 0x4c, 0x68, 0xd2, 0x85, 0x06, 0x4f, 0x02, - 0xa7, 0xe7, 0x0c, 0xdc, 0xb0, 0xc1, 0x13, 0x42, 0x60, 0x43, 0xf3, 0x9c, 0x05, 0x8d, 0x9e, 0x33, - 0x68, 0x86, 0x18, 0x93, 0xa7, 0xd0, 0x89, 0x65, 0x9e, 0x53, 0x91, 0x04, 0xcd, 0x9e, 0x33, 0xf0, - 0x8e, 0x76, 0x87, 0x8b, 0x6a, 0xc3, 0x53, 0x7b, 0x18, 0xce, 0x59, 0xe4, 0x0f, 0x68, 0x96, 0xf4, - 0x26, 0xd8, 0xe8, 0x39, 0x03, 0x3f, 0x34, 0x21, 0x79, 0x01, 0xed, 0x82, 0x96, 0x34, 0x57, 0x41, - 0xab, 0xd7, 0x1c, 0x78, 0x47, 0xfb, 0xcb, 0x0a, 0xf8, 0x96, 0xe1, 0x47, 0x64, 0x9c, 0x09, 0x5d, - 0xce, 0xc2, 0x9a, 0xbe, 0xf7, 0x0a, 0xbc, 0x05, 0xd8, 0x28, 0x4f, 0xd8, 0xac, 0x7e, 0xaf, 0x09, - 0xc9, 0x5f, 0xd0, 0x9a, 0xd2, 0xac, 0xb2, 0x2f, 0x76, 0x43, 0x9b, 0xbc, 0x6e, 0xbc, 0x74, 0xfa, - 0xdf, 0x9b, 0xd0, 0xa9, 0x9f, 0x46, 0x0e, 0xc0, 0xcf, 0x99, 0x52, 0x34, 0x65, 0x91, 0x9e, 0x15, - 0xac, 0x16, 0xf0, 0x6a, 0xec, 0x7a, 0x56, 0x30, 0x23, 0xa4, 0x65, 0xc1, 0xe3, 0xb9, 0x10, 0x26, - 0xc6, 0x8f, 0x2a, 0xe1, 0xb6, 0x71, 0x37, 0xc4, 0x98, 0xbc, 0x01, 0x9f, 0x56, 0x7a, 0xcc, 0x84, - 0xe6, 0x31, 0xd5, 0x0c, 0xfb, 0xf4, 0x8e, 0xf6, 0x96, 0x5b, 0x3a, 0x59, 0x60, 0x84, 0x4b, 0x7c, - 0x72, 0x0c, 0xbe, 0x96, 0x13, 0x26, 0xa2, 0xaa, 0x48, 0xcc, 0xfd, 0x16, 0xde, 0xff, 0x77, 0xf9, - 0xfe, 0xb5, 0x61, 0x7c, 0x46, 0x42, 0xe8, 0xe9, 0xbb, 0x84, 0x3c, 0x82, 0x2d, 0x26, 0x4a, 0x99, - 0x65, 0x39, 0x13, 0x3a, 0xe2, 0x49, 0xd0, 0xc6, 0xa7, 0xf9, 0x77, 0xe0, 0x79, 0x42, 0x2e, 0xe1, - 0xcf, 0x94, 0xe9, 0x68, 0x24, 0xa5, 0x56, 0xba, 0xa4, 0x45, 0x84, 0x0a, 0x41, 0x07, 0x2b, 0xad, - 0x98, 0xff, 0x8e, 0xe9, 0xb7, 0x73, 0x1e, 0x56, 0x0d, 0x77, 0xd2, 0x55, 0xc8, 0x08, 0xaa, 0x7b, - 0x04, 0x37, 0xef, 0x13, 0xbc, 0x5a, 0x17, 0x54, 0xab, 0x50, 0xff, 0x67, 0x03, 0xfc, 0x45, 0x8f, - 0xc8, 0xff, 0x00, 0x52, 0x45, 0x53, 0x56, 0x2a, 0x2e, 0x45, 0x3d, 0x20, 0x57, 0xaa, 0x2f, 0x16, - 0x30, 0x6d, 0x8f, 0x2a, 0x9e, 0x25, 0xb7, 0x0c, 0x3b, 0x26, 0x1f, 0xc1, 0x39, 0xe9, 0x00, 0xfc, - 0xa2, 0x94, 0x49, 0x15, 0xeb, 0x48, 0xd0, 0x9c, 0xd5, 0x53, 0xf3, 0x6a, 0xec, 0x82, 0xe6, 0x68, - 0x9f, 0x62, 0x25, 0xa7, 0x59, 0x24, 0xaa, 0x7c, 0xc4, 0x4a, 0x9c, 0x9e, 0x1b, 0xfa, 0x16, 0xbc, - 0x40, 0xcc, 0x4c, 0x9d, 0xe7, 0x8c, 0xe3, 0x64, 0xdc, 0x10, 0x63, 0x83, 0xe5, 0xec, 0xd6, 0x6e, - 0x8c, 0xc9, 0x3e, 0x78, 0x09, 0x9b, 0xf2, 0x98, 0xd9, 0x72, 0x1d, 0x3c, 0x02, 0x0b, 0x61, 0xb5, - 0xff, 0xc0, 0x8d, 0xc7, 0x34, 0xcb, 0x98, 0x48, 0x19, 0x9a, 0xe5, 0x87, 0x77, 0x80, 0x59, 0xb9, - 0x5c, 0x26, 0x2c, 0x0b, 0x5c, 0xbb, 0x72, 0x98, 0x18, 0x23, 0x30, 0xb0, 0x9a, 0x60, 0x8d, 0x40, - 0xc4, 0x48, 0xf6, 0x7f, 0x34, 0xc0, 0x5b, 0x58, 0x0e, 0xbb, 0xb7, 0x66, 0x16, 0x0e, 0xca, 0xdb, - 0xc4, 0x88, 0x14, 0x95, 0x1a, 0x47, 0x39, 0x4d, 0x6f, 0x57, 0xda, 0x35, 0xc8, 0x07, 0x03, 0x18, - 0xa3, 0x2a, 0x91, 0xc9, 0x78, 0x52, 0xcf, 0xb1, 0x89, 0x77, 0x3d, 0x8b, 0xd9, 0x89, 0x3f, 0x87, - 0xbf, 0xe9, 0x0d, 0xe5, 0x9a, 0x8b, 0x34, 0x8a, 0xa5, 0xf8, 0xca, 0xd3, 0xaa, 0xa4, 0xda, 0x38, - 0x6f, 0x1c, 0xdb, 0x0c, 0x77, 0xe7, 0xa7, 0xa7, 0x8b, 0x87, 0xe4, 0x1f, 0xe8, 0x54, 0x8a, 0x95, - 0x66, 0x31, 0xad, 0x7b, 0x6d, 0x93, 0x9e, 0x27, 0xe4, 0x10, 0xba, 0x78, 0x90, 0x49, 0x91, 0xda, - 0xd6, 0xea, 0xc5, 0x35, 0xe8, 0x7b, 0x29, 0x52, 0x34, 0xec, 0x31, 0x6c, 0x23, 0x4b, 0x8d, 0x65, - 0xa9, 0x17, 0x5d, 0xdd, 0x32, 0xf0, 0x95, 0x41, 0x91, 0x77, 0x08, 0x5d, 0x21, 0x75, 0x24, 0x85, - 0x79, 0x9b, 0x92, 0x99, 0x75, 0x77, 0x33, 0xf4, 0x85, 0xd4, 0x97, 0xe2, 0xd4, 0x62, 0xfd, 0x4f, - 0xb0, 0xb3, 0xb6, 0xdd, 0xe4, 0x18, 0xf6, 0xcc, 0xdf, 0x78, 0xa0, 0x39, 0x07, 0x65, 0x82, 0x94, - 0xe9, 0x93, 0xfb, 0xfa, 0xeb, 0x7f, 0x83, 0x9d, 0xb5, 0xfd, 0x26, 0x4f, 0x60, 0x7b, 0xf5, 0x67, - 0xd8, 0x69, 0x74, 0x47, 0x6b, 0xb5, 0xd5, 0xc3, 0xb5, 0x1b, 0xb6, 0xb6, 0x7a, 0xa0, 0xf6, 0xa8, - 0x8d, 0xff, 0xeb, 0xd9, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x47, 0xe2, 0x94, 0x6e, 0xdc, 0x05, - 0x00, 0x00, +func file_checkin_proto_rawDescGZIP() []byte { + file_checkin_proto_rawDescOnce.Do(func() { + file_checkin_proto_rawDescData = protoimpl.X.CompressGZIP(file_checkin_proto_rawDescData) + }) + return file_checkin_proto_rawDescData +} + +var file_checkin_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_checkin_proto_goTypes = []interface{}{ + (*Event)(nil), // 0: checkinproto.Event + (*Command)(nil), // 1: checkinproto.Command + (*Authenticate)(nil), // 2: checkinproto.Authenticate + (*TokenUpdate)(nil), // 3: checkinproto.TokenUpdate + (*GetBootstrapToken)(nil), // 4: checkinproto.GetBootstrapToken + (*SetBootstrapToken)(nil), // 5: checkinproto.SetBootstrapToken + nil, // 6: checkinproto.Event.ParamsEntry +} +var file_checkin_proto_depIdxs = []int32{ + 1, // 0: checkinproto.Event.command:type_name -> checkinproto.Command + 6, // 1: checkinproto.Event.params:type_name -> checkinproto.Event.ParamsEntry + 2, // 2: checkinproto.Command.authenticate:type_name -> checkinproto.Authenticate + 3, // 3: checkinproto.Command.token_update:type_name -> checkinproto.TokenUpdate + 4, // 4: checkinproto.Command.get_bootstrap_token:type_name -> checkinproto.GetBootstrapToken + 5, // 5: checkinproto.Command.set_bootstrap_token:type_name -> checkinproto.SetBootstrapToken + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_checkin_proto_init() } +func file_checkin_proto_init() { + if File_checkin_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_checkin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Event); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_checkin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Command); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_checkin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Authenticate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_checkin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TokenUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_checkin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBootstrapToken); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_checkin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetBootstrapToken); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_checkin_proto_rawDesc, + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_checkin_proto_goTypes, + DependencyIndexes: file_checkin_proto_depIdxs, + MessageInfos: file_checkin_proto_msgTypes, + }.Build() + File_checkin_proto = out.File + file_checkin_proto_rawDesc = nil + file_checkin_proto_goTypes = nil + file_checkin_proto_depIdxs = nil } diff --git a/mdm/internal/checkinproto/checkin.proto b/mdm/internal/checkinproto/checkin.proto index a7a95033..b99bd92d 100644 --- a/mdm/internal/checkinproto/checkin.proto +++ b/mdm/internal/checkinproto/checkin.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package checkinproto; +option go_package = "github.com/micromdm/micromdm/mdm/internal/checkinproto"; + message Event { string id = 1; int64 time = 2; diff --git a/mdm/internal/connectproto/connect.go b/mdm/internal/connectproto/connect.go index 45c7a4b6..f51900c5 100644 --- a/mdm/internal/connectproto/connect.go +++ b/mdm/internal/connectproto/connect.go @@ -1,3 +1,3 @@ package connectproto -//go:generate protoc --go_out=. connect.proto +//go:generate protoc --go_out=. --go_opt=paths=source_relative connect.proto diff --git a/mdm/internal/connectproto/connect.pb.go b/mdm/internal/connectproto/connect.pb.go index 164677fc..c91f413b 100644 --- a/mdm/internal/connectproto/connect.pb.go +++ b/mdm/internal/connectproto/connect.pb.go @@ -1,199 +1,304 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: connect.proto package connectproto -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Event struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` - Response *Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` - Raw []byte `protobuf:"bytes,4,opt,name=raw,proto3" json:"raw,omitempty"` - Params map[string]string `protobuf:"bytes,5,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` + Response *Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` + Raw []byte `protobuf:"bytes,4,opt,name=raw,proto3" json:"raw,omitempty"` + Params map[string]string `protobuf:"bytes,5,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (m *Event) Reset() { *m = Event{} } -func (m *Event) String() string { return proto.CompactTextString(m) } -func (*Event) ProtoMessage() {} +func (x *Event) Reset() { + *x = Event{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Event) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Event) ProtoMessage() {} + +func (x *Event) ProtoReflect() protoreflect.Message { + mi := &file_connect_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Event.ProtoReflect.Descriptor instead. func (*Event) Descriptor() ([]byte, []int) { - return fileDescriptor_connect_1685d4746e4a2c8b, []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 (dst *Event) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event.Merge(dst, src) -} -func (m *Event) XXX_Size() int { - return xxx_messageInfo_Event.Size(m) -} -func (m *Event) XXX_DiscardUnknown() { - xxx_messageInfo_Event.DiscardUnknown(m) + return file_connect_proto_rawDescGZIP(), []int{0} } -var xxx_messageInfo_Event proto.InternalMessageInfo - -func (m *Event) GetId() string { - if m != nil { - return m.Id +func (x *Event) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Event) GetTime() int64 { - if m != nil { - return m.Time +func (x *Event) GetTime() int64 { + if x != nil { + return x.Time } return 0 } -func (m *Event) GetResponse() *Response { - if m != nil { - return m.Response +func (x *Event) GetResponse() *Response { + if x != nil { + return x.Response } return nil } -func (m *Event) GetRaw() []byte { - if m != nil { - return m.Raw +func (x *Event) GetRaw() []byte { + if x != nil { + return x.Raw } return nil } -func (m *Event) GetParams() map[string]string { - if m != nil { - return m.Params +func (x *Event) GetParams() map[string]string { + if x != nil { + return x.Params } return nil } type Response struct { - Udid string `protobuf:"bytes,1,opt,name=udid,proto3" json:"udid,omitempty"` - UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` - RequestType string `protobuf:"bytes,4,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"` - CommandUuid string `protobuf:"bytes,5,opt,name=command_uuid,json=commandUuid,proto3" json:"command_uuid,omitempty"` - EnrollmentId string `protobuf:"bytes,6,opt,name=enrollment_id,json=enrollmentId,proto3" json:"enrollment_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Udid string `protobuf:"bytes,1,opt,name=udid,proto3" json:"udid,omitempty"` + UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + RequestType string `protobuf:"bytes,4,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"` + CommandUuid string `protobuf:"bytes,5,opt,name=command_uuid,json=commandUuid,proto3" json:"command_uuid,omitempty"` + EnrollmentId string `protobuf:"bytes,6,opt,name=enrollment_id,json=enrollmentId,proto3" json:"enrollment_id,omitempty"` } -func (m *Response) Reset() { *m = Response{} } -func (m *Response) String() string { return proto.CompactTextString(m) } -func (*Response) ProtoMessage() {} +func (x *Response) Reset() { + *x = Response{} + if protoimpl.UnsafeEnabled { + mi := &file_connect_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Response) ProtoMessage() {} + +func (x *Response) ProtoReflect() protoreflect.Message { + mi := &file_connect_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Response.ProtoReflect.Descriptor instead. func (*Response) Descriptor() ([]byte, []int) { - return fileDescriptor_connect_1685d4746e4a2c8b, []int{1} -} -func (m *Response) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Response.Unmarshal(m, b) -} -func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Response.Marshal(b, m, deterministic) -} -func (dst *Response) XXX_Merge(src proto.Message) { - xxx_messageInfo_Response.Merge(dst, src) -} -func (m *Response) XXX_Size() int { - return xxx_messageInfo_Response.Size(m) -} -func (m *Response) XXX_DiscardUnknown() { - xxx_messageInfo_Response.DiscardUnknown(m) + return file_connect_proto_rawDescGZIP(), []int{1} } -var xxx_messageInfo_Response proto.InternalMessageInfo - -func (m *Response) GetUdid() string { - if m != nil { - return m.Udid +func (x *Response) GetUdid() string { + if x != nil { + return x.Udid } return "" } -func (m *Response) GetUserId() string { - if m != nil { - return m.UserId +func (x *Response) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *Response) GetStatus() string { - if m != nil { - return m.Status +func (x *Response) GetStatus() string { + if x != nil { + return x.Status } return "" } -func (m *Response) GetRequestType() string { - if m != nil { - return m.RequestType +func (x *Response) GetRequestType() string { + if x != nil { + return x.RequestType } return "" } -func (m *Response) GetCommandUuid() string { - if m != nil { - return m.CommandUuid +func (x *Response) GetCommandUuid() string { + if x != nil { + return x.CommandUuid } return "" } -func (m *Response) GetEnrollmentId() string { - if m != nil { - return m.EnrollmentId +func (x *Response) GetEnrollmentId() string { + if x != nil { + return x.EnrollmentId } return "" } -func init() { - proto.RegisterType((*Event)(nil), "connectproto.Event") - proto.RegisterMapType((map[string]string)(nil), "connectproto.Event.ParamsEntry") - proto.RegisterType((*Response)(nil), "connectproto.Response") +var File_connect_proto protoreflect.FileDescriptor + +var file_connect_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0c, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe5, 0x01, + 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x10, 0x0a, 0x03, 0x72, 0x61, 0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x72, 0x61, + 0x77, 0x12, 0x37, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xba, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x75, 0x64, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x55, 0x75, 0x69, 0x64, 0x12, 0x23, 0x0a, + 0x0d, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x6e, 0x72, 0x6f, 0x6c, 0x6c, 0x6d, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, + 0x64, 0x6d, 0x2f, 0x6d, 0x64, 0x6d, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("connect.proto", fileDescriptor_connect_1685d4746e4a2c8b) } +var ( + file_connect_proto_rawDescOnce sync.Once + file_connect_proto_rawDescData = file_connect_proto_rawDesc +) -var fileDescriptor_connect_1685d4746e4a2c8b = []byte{ - // 306 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x50, 0x3d, 0x4f, 0xf3, 0x30, - 0x18, 0x94, 0x93, 0x26, 0x6f, 0xf3, 0x24, 0x7d, 0x85, 0x2c, 0x54, 0x22, 0x16, 0x42, 0x59, 0x32, - 0x65, 0x28, 0x03, 0x1f, 0x7b, 0x87, 0x6e, 0xc8, 0x82, 0xb9, 0x0a, 0xf5, 0x33, 0x44, 0x34, 0x76, - 0xf0, 0x47, 0x51, 0xfe, 0x1a, 0xff, 0x87, 0xff, 0x81, 0xec, 0x9a, 0x52, 0xb6, 0xbb, 0xf3, 0xf9, - 0x7c, 0x67, 0x98, 0x6d, 0xa5, 0x10, 0xb8, 0x35, 0xcd, 0xa0, 0xa4, 0x91, 0xb4, 0x08, 0xd4, 0xb3, - 0xc5, 0x17, 0x81, 0x64, 0xb5, 0x47, 0x61, 0xe8, 0x7f, 0x88, 0x3a, 0x5e, 0x92, 0x8a, 0xd4, 0x19, - 0x8b, 0x3a, 0x4e, 0x29, 0x4c, 0x4c, 0xd7, 0x63, 0x19, 0x55, 0xa4, 0x8e, 0x99, 0xc7, 0x74, 0x09, - 0x53, 0x85, 0x7a, 0x90, 0x42, 0x63, 0x19, 0x57, 0xa4, 0xce, 0x97, 0xf3, 0xe6, 0x34, 0xae, 0x61, - 0xe1, 0x94, 0x1d, 0x7d, 0xf4, 0x0c, 0x62, 0xd5, 0x7e, 0x94, 0x93, 0x8a, 0xd4, 0x05, 0x73, 0x90, - 0xde, 0x41, 0x3a, 0xb4, 0xaa, 0xed, 0x75, 0x99, 0x54, 0x71, 0x9d, 0x2f, 0xaf, 0xfe, 0x66, 0xf8, - 0x3a, 0xcd, 0x93, 0x77, 0xac, 0x84, 0x51, 0x23, 0x0b, 0xf6, 0xcb, 0x07, 0xc8, 0x4f, 0x64, 0x97, - 0xfc, 0x86, 0x63, 0xa8, 0xec, 0x20, 0x3d, 0x87, 0x64, 0xdf, 0xee, 0xec, 0xa1, 0x74, 0xc6, 0x0e, - 0xe4, 0x31, 0xba, 0x27, 0x8b, 0x4f, 0x02, 0xd3, 0x9f, 0x72, 0x6e, 0x9a, 0xe5, 0xc7, 0xb1, 0x1e, - 0xd3, 0x0b, 0xf8, 0x67, 0x35, 0xaa, 0x4d, 0xc7, 0xc3, 0xe5, 0xd4, 0xd1, 0x35, 0xa7, 0x73, 0x48, - 0xb5, 0x69, 0x8d, 0xd5, 0x7e, 0x71, 0xc6, 0x02, 0xa3, 0xd7, 0x50, 0x28, 0x7c, 0xb7, 0xa8, 0xcd, - 0xc6, 0x8c, 0x03, 0xfa, 0x81, 0x19, 0xcb, 0x83, 0xf6, 0x3c, 0x0e, 0xe8, 0x2c, 0x5b, 0xd9, 0xf7, - 0xad, 0xe0, 0x1b, 0x6b, 0x3b, 0x5e, 0x26, 0x07, 0x4b, 0xd0, 0x5e, 0x6c, 0xc7, 0xe9, 0x0d, 0xcc, - 0x50, 0x28, 0xb9, 0xdb, 0xf5, 0x28, 0x8c, 0x7b, 0x3c, 0xf5, 0x9e, 0xe2, 0x57, 0x5c, 0xf3, 0xd7, - 0xd4, 0x7f, 0xcc, 0xed, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x57, 0xaf, 0x0d, 0xca, 0x01, - 0x00, 0x00, +func file_connect_proto_rawDescGZIP() []byte { + file_connect_proto_rawDescOnce.Do(func() { + file_connect_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_proto_rawDescData) + }) + return file_connect_proto_rawDescData +} + +var file_connect_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_connect_proto_goTypes = []interface{}{ + (*Event)(nil), // 0: connectproto.Event + (*Response)(nil), // 1: connectproto.Response + nil, // 2: connectproto.Event.ParamsEntry +} +var file_connect_proto_depIdxs = []int32{ + 1, // 0: connectproto.Event.response:type_name -> connectproto.Response + 2, // 1: connectproto.Event.params:type_name -> connectproto.Event.ParamsEntry + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_connect_proto_init() } +func file_connect_proto_init() { + if File_connect_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_connect_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Event); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_connect_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Response); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_connect_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_connect_proto_goTypes, + DependencyIndexes: file_connect_proto_depIdxs, + MessageInfos: file_connect_proto_msgTypes, + }.Build() + File_connect_proto = out.File + file_connect_proto_rawDesc = nil + file_connect_proto_goTypes = nil + file_connect_proto_depIdxs = nil } diff --git a/mdm/internal/connectproto/connect.proto b/mdm/internal/connectproto/connect.proto index 2faa76bf..e72b0377 100644 --- a/mdm/internal/connectproto/connect.proto +++ b/mdm/internal/connectproto/connect.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package connectproto; +option go_package = "github.com/micromdm/micromdm/mdm/internal/connectproto"; + message Event { string id = 1; int64 time = 2; diff --git a/mdm/mdm/internal/mdmproto/mdm.go b/mdm/mdm/internal/mdmproto/mdm.go index 8018c0be..45ca9eb9 100644 --- a/mdm/mdm/internal/mdmproto/mdm.go +++ b/mdm/mdm/internal/mdmproto/mdm.go @@ -1,3 +1,3 @@ package mdmproto -//go:generate protoc mdm.proto -I. --gofast_out=:. +//go:generate protoc --go_out=. --go_opt=paths=source_relative mdm.proto diff --git a/mdm/mdm/internal/mdmproto/mdm.pb.go b/mdm/mdm/internal/mdmproto/mdm.pb.go index 47cf1d69..7a1b8507 100644 --- a/mdm/mdm/internal/mdmproto/mdm.pb.go +++ b/mdm/mdm/internal/mdmproto/mdm.pb.go @@ -1,26 +1,24 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: mdm.proto package mdmproto import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ResultPayload_Status int32 @@ -32,86 +30,111 @@ const ( ResultPayload_NotNow ResultPayload_Status = 4 ) -var ResultPayload_Status_name = map[int32]string{ - 0: "Acknowledged", - 1: "Error", - 2: "CommandFormatError", - 3: "Idle", - 4: "NotNow", -} +// Enum value maps for ResultPayload_Status. +var ( + ResultPayload_Status_name = map[int32]string{ + 0: "Acknowledged", + 1: "Error", + 2: "CommandFormatError", + 3: "Idle", + 4: "NotNow", + } + ResultPayload_Status_value = map[string]int32{ + "Acknowledged": 0, + "Error": 1, + "CommandFormatError": 2, + "Idle": 3, + "NotNow": 4, + } +) -var ResultPayload_Status_value = map[string]int32{ - "Acknowledged": 0, - "Error": 1, - "CommandFormatError": 2, - "Idle": 3, - "NotNow": 4, +func (x ResultPayload_Status) Enum() *ResultPayload_Status { + p := new(ResultPayload_Status) + *p = x + return p } func (x ResultPayload_Status) String() string { - return proto.EnumName(ResultPayload_Status_name, int32(x)) + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } +func (ResultPayload_Status) Descriptor() protoreflect.EnumDescriptor { + return file_mdm_proto_enumTypes[0].Descriptor() +} + +func (ResultPayload_Status) Type() protoreflect.EnumType { + return &file_mdm_proto_enumTypes[0] +} + +func (x ResultPayload_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ResultPayload_Status.Descriptor instead. func (ResultPayload_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{69, 0} + return file_mdm_proto_rawDescGZIP(), []int{69, 0} } type CommandPayload struct { - CommandUuid string `protobuf:"bytes,1,opt,name=command_uuid,json=commandUuid,proto3" json:"command_uuid,omitempty"` - Command *Command `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CommandUuid string `protobuf:"bytes,1,opt,name=command_uuid,json=commandUuid,proto3" json:"command_uuid,omitempty"` + Command *Command `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` } -func (m *CommandPayload) Reset() { *m = CommandPayload{} } -func (m *CommandPayload) String() string { return proto.CompactTextString(m) } -func (*CommandPayload) ProtoMessage() {} -func (*CommandPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{0} -} -func (m *CommandPayload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *CommandPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_CommandPayload.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *CommandPayload) Reset() { + *x = CommandPayload{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *CommandPayload) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommandPayload.Merge(m, src) -} -func (m *CommandPayload) XXX_Size() int { - return m.Size() -} -func (m *CommandPayload) XXX_DiscardUnknown() { - xxx_messageInfo_CommandPayload.DiscardUnknown(m) + +func (x *CommandPayload) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_CommandPayload proto.InternalMessageInfo +func (*CommandPayload) ProtoMessage() {} -func (m *CommandPayload) GetCommandUuid() string { - if m != nil { - return m.CommandUuid +func (x *CommandPayload) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CommandPayload.ProtoReflect.Descriptor instead. +func (*CommandPayload) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{0} +} + +func (x *CommandPayload) GetCommandUuid() string { + if x != nil { + return x.CommandUuid } return "" } -func (m *CommandPayload) GetCommand() *Command { - if m != nil { - return m.Command +func (x *CommandPayload) GetCommand() *Command { + if x != nil { + return x.Command } return nil } type Command struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + RequestType string `protobuf:"bytes,1,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"` // //Request Types that do not have additional fields: @@ -136,7 +159,7 @@ type Command struct { //- DisableRemoteDesktop //- ActivationLockBypassCode // - // Types that are valid to be assigned to Request: + // Types that are assignable to Request: // *Command_InstallProfile // *Command_RemoveProfile // *Command_InstallProvisioningProfile @@ -175,204 +198,47 @@ type Command struct { // *Command_SetBootstrapToken // *Command_SetRecoveryLock // *Command_VerifyRecoveryLock - Request isCommand_Request `protobuf_oneof:"request"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Request isCommand_Request `protobuf_oneof:"request"` } -func (m *Command) Reset() { *m = Command{} } -func (m *Command) String() string { return proto.CompactTextString(m) } -func (*Command) ProtoMessage() {} -func (*Command) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{1} -} -func (m *Command) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Command.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Command) Reset() { + *x = Command{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Command) XXX_Merge(src proto.Message) { - xxx_messageInfo_Command.Merge(m, src) -} -func (m *Command) XXX_Size() int { - return m.Size() -} -func (m *Command) XXX_DiscardUnknown() { - xxx_messageInfo_Command.DiscardUnknown(m) + +func (x *Command) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Command proto.InternalMessageInfo +func (*Command) ProtoMessage() {} -type isCommand_Request interface { - isCommand_Request() - MarshalTo([]byte) (int, error) - Size() int +func (x *Command) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -type Command_InstallProfile struct { - InstallProfile *InstallProfile `protobuf:"bytes,2,opt,name=install_profile,json=installProfile,proto3,oneof" json:"install_profile,omitempty"` -} -type Command_RemoveProfile struct { - RemoveProfile *RemoveProfile `protobuf:"bytes,3,opt,name=remove_profile,json=removeProfile,proto3,oneof" json:"remove_profile,omitempty"` -} -type Command_InstallProvisioningProfile struct { - InstallProvisioningProfile *InstallProvisioningProfile `protobuf:"bytes,4,opt,name=install_provisioning_profile,json=installProvisioningProfile,proto3,oneof" json:"install_provisioning_profile,omitempty"` -} -type Command_RemoveProfisioningProfile struct { - RemoveProfisioningProfile *RemoveProvisioningProfile `protobuf:"bytes,5,opt,name=remove_profisioning_profile,json=removeProfisioningProfile,proto3,oneof" json:"remove_profisioning_profile,omitempty"` -} -type Command_InstalledApplicationList struct { - InstalledApplicationList *InstalledApplicationList `protobuf:"bytes,6,opt,name=installed_application_list,json=installedApplicationList,proto3,oneof" json:"installed_application_list,omitempty"` -} -type Command_DeviceInformation struct { - DeviceInformation *DeviceInformation `protobuf:"bytes,7,opt,name=device_information,json=deviceInformation,proto3,oneof" json:"device_information,omitempty"` -} -type Command_DeviceLock struct { - DeviceLock *DeviceLock `protobuf:"bytes,8,opt,name=device_lock,json=deviceLock,proto3,oneof" json:"device_lock,omitempty"` -} -type Command_ClearPasscode struct { - ClearPasscode *ClearPasscode `protobuf:"bytes,9,opt,name=clear_passcode,json=clearPasscode,proto3,oneof" json:"clear_passcode,omitempty"` -} -type Command_EraseDevice struct { - EraseDevice *EraseDevice `protobuf:"bytes,10,opt,name=erase_device,json=eraseDevice,proto3,oneof" json:"erase_device,omitempty"` -} -type Command_RequestMirroring struct { - RequestMirroring *RequestMirroring `protobuf:"bytes,11,opt,name=request_mirroring,json=requestMirroring,proto3,oneof" json:"request_mirroring,omitempty"` -} -type Command_Restrictions struct { - Restrictions *Restrictions `protobuf:"bytes,12,opt,name=restrictions,proto3,oneof" json:"restrictions,omitempty"` -} -type Command_UnlockUserAccount struct { - UnlockUserAccount *UnlockUserAccount `protobuf:"bytes,13,opt,name=unlock_user_account,json=unlockUserAccount,proto3,oneof" json:"unlock_user_account,omitempty"` -} -type Command_DeleteUser struct { - DeleteUser *DeleteUser `protobuf:"bytes,14,opt,name=delete_user,json=deleteUser,proto3,oneof" json:"delete_user,omitempty"` -} -type Command_EnableLostMode struct { - EnableLostMode *EnableLostMode `protobuf:"bytes,15,opt,name=enable_lost_mode,json=enableLostMode,proto3,oneof" json:"enable_lost_mode,omitempty"` -} -type Command_InstallApplication struct { - InstallApplication *InstallApplication `protobuf:"bytes,16,opt,name=install_application,json=installApplication,proto3,oneof" json:"install_application,omitempty"` -} -type Command_AccountConfiguration struct { - AccountConfiguration *AccountConfiguration `protobuf:"bytes,17,opt,name=account_configuration,json=accountConfiguration,proto3,oneof" json:"account_configuration,omitempty"` -} -type Command_ApplyRedemptionCode struct { - ApplyRedemptionCode *ApplyRedemptionCode `protobuf:"bytes,18,opt,name=apply_redemption_code,json=applyRedemptionCode,proto3,oneof" json:"apply_redemption_code,omitempty"` -} -type Command_ManagedApplicationList struct { - ManagedApplicationList *ManagedApplicationList `protobuf:"bytes,19,opt,name=managed_application_list,json=managedApplicationList,proto3,oneof" json:"managed_application_list,omitempty"` -} -type Command_RemoveApplication struct { - RemoveApplication *RemoveApplication `protobuf:"bytes,20,opt,name=remove_application,json=removeApplication,proto3,oneof" json:"remove_application,omitempty"` -} -type Command_InviteToProgram struct { - InviteToProgram *InviteToProgram `protobuf:"bytes,21,opt,name=invite_to_program,json=inviteToProgram,proto3,oneof" json:"invite_to_program,omitempty"` -} -type Command_ValidataApplications struct { - ValidataApplications *ValidateApplications `protobuf:"bytes,22,opt,name=validata_applications,json=validataApplications,proto3,oneof" json:"validata_applications,omitempty"` -} -type Command_InstallMedia struct { - InstallMedia *InstallMedia `protobuf:"bytes,23,opt,name=install_media,json=installMedia,proto3,oneof" json:"install_media,omitempty"` -} -type Command_RemoveMedia struct { - RemoveMedia *RemoveMedia `protobuf:"bytes,24,opt,name=remove_media,json=removeMedia,proto3,oneof" json:"remove_media,omitempty"` -} -type Command_Settings struct { - Settings *Settings `protobuf:"bytes,25,opt,name=settings,proto3,oneof" json:"settings,omitempty"` -} -type Command_ManagedApplicationConfiguration struct { - ManagedApplicationConfiguration *ManagedApplicationConfiguration `protobuf:"bytes,26,opt,name=managed_application_configuration,json=managedApplicationConfiguration,proto3,oneof" json:"managed_application_configuration,omitempty"` -} -type Command_ManagedApplicationAttributes struct { - ManagedApplicationAttributes *ManagedApplicationAttributes `protobuf:"bytes,27,opt,name=managed_application_attributes,json=managedApplicationAttributes,proto3,oneof" json:"managed_application_attributes,omitempty"` -} -type Command_ManagedApplicationFeedback struct { - ManagedApplicationFeedback *ManagedApplicationFeedback `protobuf:"bytes,28,opt,name=managed_application_feedback,json=managedApplicationFeedback,proto3,oneof" json:"managed_application_feedback,omitempty"` -} -type Command_SetFirmwarePassword struct { - SetFirmwarePassword *SetFirmwarePassword `protobuf:"bytes,29,opt,name=set_firmware_password,json=setFirmwarePassword,proto3,oneof" json:"set_firmware_password,omitempty"` -} -type Command_VerifyFirmwarePassword struct { - VerifyFirmwarePassword *VerifyFirmwarePassword `protobuf:"bytes,30,opt,name=verify_firmware_password,json=verifyFirmwarePassword,proto3,oneof" json:"verify_firmware_password,omitempty"` -} -type Command_SetAutoAdminPassword struct { - SetAutoAdminPassword *SetAutoAdminPassword `protobuf:"bytes,31,opt,name=set_auto_admin_password,json=setAutoAdminPassword,proto3,oneof" json:"set_auto_admin_password,omitempty"` -} -type Command_ScheduleOsUpdate struct { - ScheduleOsUpdate *ScheduleOSUpdate `protobuf:"bytes,32,opt,name=schedule_os_update,json=scheduleOsUpdate,proto3,oneof" json:"schedule_os_update,omitempty"` -} -type Command_ScheduleOsUpdateScan struct { - ScheduleOsUpdateScan *ScheduleOSUpdateScan `protobuf:"bytes,33,opt,name=schedule_os_update_scan,json=scheduleOsUpdateScan,proto3,oneof" json:"schedule_os_update_scan,omitempty"` -} -type Command_ActiveNsExtensions struct { - ActiveNsExtensions *ActiveNSExtensions `protobuf:"bytes,34,opt,name=active_ns_extensions,json=activeNsExtensions,proto3,oneof" json:"active_ns_extensions,omitempty"` -} -type Command_RotateFilevaultKey struct { - RotateFilevaultKey *RotateFileVaultKey `protobuf:"bytes,35,opt,name=rotate_filevault_key,json=rotateFilevaultKey,proto3,oneof" json:"rotate_filevault_key,omitempty"` -} -type Command_InstallEnterpriseApplication struct { - InstallEnterpriseApplication *InstallEnterpriseApplication `protobuf:"bytes,36,opt,name=install_enterprise_application,json=installEnterpriseApplication,proto3,oneof" json:"install_enterprise_application,omitempty"` -} -type Command_SetBootstrapToken struct { - SetBootstrapToken *SetBootstrapToken `protobuf:"bytes,37,opt,name=set_bootstrap_token,json=setBootstrapToken,proto3,oneof" json:"set_bootstrap_token,omitempty"` -} -type Command_SetRecoveryLock struct { - SetRecoveryLock *SetRecoveryLock `protobuf:"bytes,38,opt,name=set_recovery_lock,json=setRecoveryLock,proto3,oneof" json:"set_recovery_lock,omitempty"` -} -type Command_VerifyRecoveryLock struct { - VerifyRecoveryLock *VerifyRecoveryLock `protobuf:"bytes,39,opt,name=verify_recovery_lock,json=verifyRecoveryLock,proto3,oneof" json:"verify_recovery_lock,omitempty"` +// Deprecated: Use Command.ProtoReflect.Descriptor instead. +func (*Command) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{1} } -func (*Command_InstallProfile) isCommand_Request() {} -func (*Command_RemoveProfile) isCommand_Request() {} -func (*Command_InstallProvisioningProfile) isCommand_Request() {} -func (*Command_RemoveProfisioningProfile) isCommand_Request() {} -func (*Command_InstalledApplicationList) isCommand_Request() {} -func (*Command_DeviceInformation) isCommand_Request() {} -func (*Command_DeviceLock) isCommand_Request() {} -func (*Command_ClearPasscode) isCommand_Request() {} -func (*Command_EraseDevice) isCommand_Request() {} -func (*Command_RequestMirroring) isCommand_Request() {} -func (*Command_Restrictions) isCommand_Request() {} -func (*Command_UnlockUserAccount) isCommand_Request() {} -func (*Command_DeleteUser) isCommand_Request() {} -func (*Command_EnableLostMode) isCommand_Request() {} -func (*Command_InstallApplication) isCommand_Request() {} -func (*Command_AccountConfiguration) isCommand_Request() {} -func (*Command_ApplyRedemptionCode) isCommand_Request() {} -func (*Command_ManagedApplicationList) isCommand_Request() {} -func (*Command_RemoveApplication) isCommand_Request() {} -func (*Command_InviteToProgram) isCommand_Request() {} -func (*Command_ValidataApplications) isCommand_Request() {} -func (*Command_InstallMedia) isCommand_Request() {} -func (*Command_RemoveMedia) isCommand_Request() {} -func (*Command_Settings) isCommand_Request() {} -func (*Command_ManagedApplicationConfiguration) isCommand_Request() {} -func (*Command_ManagedApplicationAttributes) isCommand_Request() {} -func (*Command_ManagedApplicationFeedback) isCommand_Request() {} -func (*Command_SetFirmwarePassword) isCommand_Request() {} -func (*Command_VerifyFirmwarePassword) isCommand_Request() {} -func (*Command_SetAutoAdminPassword) isCommand_Request() {} -func (*Command_ScheduleOsUpdate) isCommand_Request() {} -func (*Command_ScheduleOsUpdateScan) isCommand_Request() {} -func (*Command_ActiveNsExtensions) isCommand_Request() {} -func (*Command_RotateFilevaultKey) isCommand_Request() {} -func (*Command_InstallEnterpriseApplication) isCommand_Request() {} -func (*Command_SetBootstrapToken) isCommand_Request() {} -func (*Command_SetRecoveryLock) isCommand_Request() {} -func (*Command_VerifyRecoveryLock) isCommand_Request() {} +func (x *Command) GetRequestType() string { + if x != nil { + return x.RequestType + } + return "" +} func (m *Command) GetRequest() isCommand_Request { if m != nil { @@ -381,282 +247,6215 @@ func (m *Command) GetRequest() isCommand_Request { return nil } -func (m *Command) GetRequestType() string { - if m != nil { - return m.RequestType - } - return "" -} - -func (m *Command) GetInstallProfile() *InstallProfile { - if x, ok := m.GetRequest().(*Command_InstallProfile); ok { +func (x *Command) GetInstallProfile() *InstallProfile { + if x, ok := x.GetRequest().(*Command_InstallProfile); ok { return x.InstallProfile } return nil } -func (m *Command) GetRemoveProfile() *RemoveProfile { - if x, ok := m.GetRequest().(*Command_RemoveProfile); ok { +func (x *Command) GetRemoveProfile() *RemoveProfile { + if x, ok := x.GetRequest().(*Command_RemoveProfile); ok { return x.RemoveProfile } return nil } -func (m *Command) GetInstallProvisioningProfile() *InstallProvisioningProfile { - if x, ok := m.GetRequest().(*Command_InstallProvisioningProfile); ok { +func (x *Command) GetInstallProvisioningProfile() *InstallProvisioningProfile { + if x, ok := x.GetRequest().(*Command_InstallProvisioningProfile); ok { return x.InstallProvisioningProfile } return nil } -func (m *Command) GetRemoveProfisioningProfile() *RemoveProvisioningProfile { - if x, ok := m.GetRequest().(*Command_RemoveProfisioningProfile); ok { +func (x *Command) GetRemoveProfisioningProfile() *RemoveProvisioningProfile { + if x, ok := x.GetRequest().(*Command_RemoveProfisioningProfile); ok { return x.RemoveProfisioningProfile } return nil } -func (m *Command) GetInstalledApplicationList() *InstalledApplicationList { - if x, ok := m.GetRequest().(*Command_InstalledApplicationList); ok { +func (x *Command) GetInstalledApplicationList() *InstalledApplicationList { + if x, ok := x.GetRequest().(*Command_InstalledApplicationList); ok { return x.InstalledApplicationList } return nil } -func (m *Command) GetDeviceInformation() *DeviceInformation { - if x, ok := m.GetRequest().(*Command_DeviceInformation); ok { +func (x *Command) GetDeviceInformation() *DeviceInformation { + if x, ok := x.GetRequest().(*Command_DeviceInformation); ok { return x.DeviceInformation } return nil } -func (m *Command) GetDeviceLock() *DeviceLock { - if x, ok := m.GetRequest().(*Command_DeviceLock); ok { +func (x *Command) GetDeviceLock() *DeviceLock { + if x, ok := x.GetRequest().(*Command_DeviceLock); ok { return x.DeviceLock } return nil } -func (m *Command) GetClearPasscode() *ClearPasscode { - if x, ok := m.GetRequest().(*Command_ClearPasscode); ok { +func (x *Command) GetClearPasscode() *ClearPasscode { + if x, ok := x.GetRequest().(*Command_ClearPasscode); ok { return x.ClearPasscode } return nil } -func (m *Command) GetEraseDevice() *EraseDevice { - if x, ok := m.GetRequest().(*Command_EraseDevice); ok { +func (x *Command) GetEraseDevice() *EraseDevice { + if x, ok := x.GetRequest().(*Command_EraseDevice); ok { return x.EraseDevice } return nil } -func (m *Command) GetRequestMirroring() *RequestMirroring { - if x, ok := m.GetRequest().(*Command_RequestMirroring); ok { +func (x *Command) GetRequestMirroring() *RequestMirroring { + if x, ok := x.GetRequest().(*Command_RequestMirroring); ok { return x.RequestMirroring } return nil } -func (m *Command) GetRestrictions() *Restrictions { - if x, ok := m.GetRequest().(*Command_Restrictions); ok { +func (x *Command) GetRestrictions() *Restrictions { + if x, ok := x.GetRequest().(*Command_Restrictions); ok { return x.Restrictions } return nil } -func (m *Command) GetUnlockUserAccount() *UnlockUserAccount { - if x, ok := m.GetRequest().(*Command_UnlockUserAccount); ok { +func (x *Command) GetUnlockUserAccount() *UnlockUserAccount { + if x, ok := x.GetRequest().(*Command_UnlockUserAccount); ok { return x.UnlockUserAccount } return nil } -func (m *Command) GetDeleteUser() *DeleteUser { - if x, ok := m.GetRequest().(*Command_DeleteUser); ok { +func (x *Command) GetDeleteUser() *DeleteUser { + if x, ok := x.GetRequest().(*Command_DeleteUser); ok { return x.DeleteUser } return nil } -func (m *Command) GetEnableLostMode() *EnableLostMode { - if x, ok := m.GetRequest().(*Command_EnableLostMode); ok { +func (x *Command) GetEnableLostMode() *EnableLostMode { + if x, ok := x.GetRequest().(*Command_EnableLostMode); ok { return x.EnableLostMode } return nil } -func (m *Command) GetInstallApplication() *InstallApplication { - if x, ok := m.GetRequest().(*Command_InstallApplication); ok { +func (x *Command) GetInstallApplication() *InstallApplication { + if x, ok := x.GetRequest().(*Command_InstallApplication); ok { return x.InstallApplication } return nil } -func (m *Command) GetAccountConfiguration() *AccountConfiguration { - if x, ok := m.GetRequest().(*Command_AccountConfiguration); ok { +func (x *Command) GetAccountConfiguration() *AccountConfiguration { + if x, ok := x.GetRequest().(*Command_AccountConfiguration); ok { return x.AccountConfiguration } return nil } -func (m *Command) GetApplyRedemptionCode() *ApplyRedemptionCode { - if x, ok := m.GetRequest().(*Command_ApplyRedemptionCode); ok { +func (x *Command) GetApplyRedemptionCode() *ApplyRedemptionCode { + if x, ok := x.GetRequest().(*Command_ApplyRedemptionCode); ok { return x.ApplyRedemptionCode } return nil } -func (m *Command) GetManagedApplicationList() *ManagedApplicationList { - if x, ok := m.GetRequest().(*Command_ManagedApplicationList); ok { +func (x *Command) GetManagedApplicationList() *ManagedApplicationList { + if x, ok := x.GetRequest().(*Command_ManagedApplicationList); ok { return x.ManagedApplicationList } return nil } -func (m *Command) GetRemoveApplication() *RemoveApplication { - if x, ok := m.GetRequest().(*Command_RemoveApplication); ok { +func (x *Command) GetRemoveApplication() *RemoveApplication { + if x, ok := x.GetRequest().(*Command_RemoveApplication); ok { return x.RemoveApplication } return nil } -func (m *Command) GetInviteToProgram() *InviteToProgram { - if x, ok := m.GetRequest().(*Command_InviteToProgram); ok { +func (x *Command) GetInviteToProgram() *InviteToProgram { + if x, ok := x.GetRequest().(*Command_InviteToProgram); ok { return x.InviteToProgram } return nil } -func (m *Command) GetValidataApplications() *ValidateApplications { - if x, ok := m.GetRequest().(*Command_ValidataApplications); ok { +func (x *Command) GetValidataApplications() *ValidateApplications { + if x, ok := x.GetRequest().(*Command_ValidataApplications); ok { return x.ValidataApplications } return nil } -func (m *Command) GetInstallMedia() *InstallMedia { - if x, ok := m.GetRequest().(*Command_InstallMedia); ok { +func (x *Command) GetInstallMedia() *InstallMedia { + if x, ok := x.GetRequest().(*Command_InstallMedia); ok { return x.InstallMedia } return nil } -func (m *Command) GetRemoveMedia() *RemoveMedia { - if x, ok := m.GetRequest().(*Command_RemoveMedia); ok { +func (x *Command) GetRemoveMedia() *RemoveMedia { + if x, ok := x.GetRequest().(*Command_RemoveMedia); ok { return x.RemoveMedia } return nil } -func (m *Command) GetSettings() *Settings { - if x, ok := m.GetRequest().(*Command_Settings); ok { +func (x *Command) GetSettings() *Settings { + if x, ok := x.GetRequest().(*Command_Settings); ok { return x.Settings } return nil } -func (m *Command) GetManagedApplicationConfiguration() *ManagedApplicationConfiguration { - if x, ok := m.GetRequest().(*Command_ManagedApplicationConfiguration); ok { +func (x *Command) GetManagedApplicationConfiguration() *ManagedApplicationConfiguration { + if x, ok := x.GetRequest().(*Command_ManagedApplicationConfiguration); ok { return x.ManagedApplicationConfiguration } return nil } -func (m *Command) GetManagedApplicationAttributes() *ManagedApplicationAttributes { - if x, ok := m.GetRequest().(*Command_ManagedApplicationAttributes); ok { +func (x *Command) GetManagedApplicationAttributes() *ManagedApplicationAttributes { + if x, ok := x.GetRequest().(*Command_ManagedApplicationAttributes); ok { return x.ManagedApplicationAttributes } return nil } -func (m *Command) GetManagedApplicationFeedback() *ManagedApplicationFeedback { - if x, ok := m.GetRequest().(*Command_ManagedApplicationFeedback); ok { +func (x *Command) GetManagedApplicationFeedback() *ManagedApplicationFeedback { + if x, ok := x.GetRequest().(*Command_ManagedApplicationFeedback); ok { return x.ManagedApplicationFeedback } return nil } -func (m *Command) GetSetFirmwarePassword() *SetFirmwarePassword { - if x, ok := m.GetRequest().(*Command_SetFirmwarePassword); ok { +func (x *Command) GetSetFirmwarePassword() *SetFirmwarePassword { + if x, ok := x.GetRequest().(*Command_SetFirmwarePassword); ok { return x.SetFirmwarePassword } return nil } -func (m *Command) GetVerifyFirmwarePassword() *VerifyFirmwarePassword { - if x, ok := m.GetRequest().(*Command_VerifyFirmwarePassword); ok { +func (x *Command) GetVerifyFirmwarePassword() *VerifyFirmwarePassword { + if x, ok := x.GetRequest().(*Command_VerifyFirmwarePassword); ok { return x.VerifyFirmwarePassword } return nil } -func (m *Command) GetSetAutoAdminPassword() *SetAutoAdminPassword { - if x, ok := m.GetRequest().(*Command_SetAutoAdminPassword); ok { +func (x *Command) GetSetAutoAdminPassword() *SetAutoAdminPassword { + if x, ok := x.GetRequest().(*Command_SetAutoAdminPassword); ok { return x.SetAutoAdminPassword } return nil } -func (m *Command) GetScheduleOsUpdate() *ScheduleOSUpdate { - if x, ok := m.GetRequest().(*Command_ScheduleOsUpdate); ok { +func (x *Command) GetScheduleOsUpdate() *ScheduleOSUpdate { + if x, ok := x.GetRequest().(*Command_ScheduleOsUpdate); ok { return x.ScheduleOsUpdate } return nil } -func (m *Command) GetScheduleOsUpdateScan() *ScheduleOSUpdateScan { - if x, ok := m.GetRequest().(*Command_ScheduleOsUpdateScan); ok { +func (x *Command) GetScheduleOsUpdateScan() *ScheduleOSUpdateScan { + if x, ok := x.GetRequest().(*Command_ScheduleOsUpdateScan); ok { return x.ScheduleOsUpdateScan } return nil } -func (m *Command) GetActiveNsExtensions() *ActiveNSExtensions { - if x, ok := m.GetRequest().(*Command_ActiveNsExtensions); ok { +func (x *Command) GetActiveNsExtensions() *ActiveNSExtensions { + if x, ok := x.GetRequest().(*Command_ActiveNsExtensions); ok { return x.ActiveNsExtensions } return nil } -func (m *Command) GetRotateFilevaultKey() *RotateFileVaultKey { - if x, ok := m.GetRequest().(*Command_RotateFilevaultKey); ok { +func (x *Command) GetRotateFilevaultKey() *RotateFileVaultKey { + if x, ok := x.GetRequest().(*Command_RotateFilevaultKey); ok { return x.RotateFilevaultKey } return nil } -func (m *Command) GetInstallEnterpriseApplication() *InstallEnterpriseApplication { - if x, ok := m.GetRequest().(*Command_InstallEnterpriseApplication); ok { +func (x *Command) GetInstallEnterpriseApplication() *InstallEnterpriseApplication { + if x, ok := x.GetRequest().(*Command_InstallEnterpriseApplication); ok { return x.InstallEnterpriseApplication } return nil } -func (m *Command) GetSetBootstrapToken() *SetBootstrapToken { - if x, ok := m.GetRequest().(*Command_SetBootstrapToken); ok { +func (x *Command) GetSetBootstrapToken() *SetBootstrapToken { + if x, ok := x.GetRequest().(*Command_SetBootstrapToken); ok { return x.SetBootstrapToken } return nil } -func (m *Command) GetSetRecoveryLock() *SetRecoveryLock { - if x, ok := m.GetRequest().(*Command_SetRecoveryLock); ok { +func (x *Command) GetSetRecoveryLock() *SetRecoveryLock { + if x, ok := x.GetRequest().(*Command_SetRecoveryLock); ok { return x.SetRecoveryLock } return nil } -func (m *Command) GetVerifyRecoveryLock() *VerifyRecoveryLock { - if x, ok := m.GetRequest().(*Command_VerifyRecoveryLock); ok { +func (x *Command) GetVerifyRecoveryLock() *VerifyRecoveryLock { + if x, ok := x.GetRequest().(*Command_VerifyRecoveryLock); ok { return x.VerifyRecoveryLock } return nil } -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Command) XXX_OneofWrappers() []interface{} { - return []interface{}{ +type isCommand_Request interface { + isCommand_Request() +} + +type Command_InstallProfile struct { + InstallProfile *InstallProfile `protobuf:"bytes,2,opt,name=install_profile,json=installProfile,proto3,oneof"` +} + +type Command_RemoveProfile struct { + RemoveProfile *RemoveProfile `protobuf:"bytes,3,opt,name=remove_profile,json=removeProfile,proto3,oneof"` +} + +type Command_InstallProvisioningProfile struct { + InstallProvisioningProfile *InstallProvisioningProfile `protobuf:"bytes,4,opt,name=install_provisioning_profile,json=installProvisioningProfile,proto3,oneof"` +} + +type Command_RemoveProfisioningProfile struct { + RemoveProfisioningProfile *RemoveProvisioningProfile `protobuf:"bytes,5,opt,name=remove_profisioning_profile,json=removeProfisioningProfile,proto3,oneof"` +} + +type Command_InstalledApplicationList struct { + InstalledApplicationList *InstalledApplicationList `protobuf:"bytes,6,opt,name=installed_application_list,json=installedApplicationList,proto3,oneof"` +} + +type Command_DeviceInformation struct { + DeviceInformation *DeviceInformation `protobuf:"bytes,7,opt,name=device_information,json=deviceInformation,proto3,oneof"` +} + +type Command_DeviceLock struct { + DeviceLock *DeviceLock `protobuf:"bytes,8,opt,name=device_lock,json=deviceLock,proto3,oneof"` +} + +type Command_ClearPasscode struct { + ClearPasscode *ClearPasscode `protobuf:"bytes,9,opt,name=clear_passcode,json=clearPasscode,proto3,oneof"` +} + +type Command_EraseDevice struct { + EraseDevice *EraseDevice `protobuf:"bytes,10,opt,name=erase_device,json=eraseDevice,proto3,oneof"` +} + +type Command_RequestMirroring struct { + RequestMirroring *RequestMirroring `protobuf:"bytes,11,opt,name=request_mirroring,json=requestMirroring,proto3,oneof"` +} + +type Command_Restrictions struct { + Restrictions *Restrictions `protobuf:"bytes,12,opt,name=restrictions,proto3,oneof"` +} + +type Command_UnlockUserAccount struct { + UnlockUserAccount *UnlockUserAccount `protobuf:"bytes,13,opt,name=unlock_user_account,json=unlockUserAccount,proto3,oneof"` +} + +type Command_DeleteUser struct { + DeleteUser *DeleteUser `protobuf:"bytes,14,opt,name=delete_user,json=deleteUser,proto3,oneof"` +} + +type Command_EnableLostMode struct { + EnableLostMode *EnableLostMode `protobuf:"bytes,15,opt,name=enable_lost_mode,json=enableLostMode,proto3,oneof"` +} + +type Command_InstallApplication struct { + InstallApplication *InstallApplication `protobuf:"bytes,16,opt,name=install_application,json=installApplication,proto3,oneof"` +} + +type Command_AccountConfiguration struct { + AccountConfiguration *AccountConfiguration `protobuf:"bytes,17,opt,name=account_configuration,json=accountConfiguration,proto3,oneof"` +} + +type Command_ApplyRedemptionCode struct { + ApplyRedemptionCode *ApplyRedemptionCode `protobuf:"bytes,18,opt,name=apply_redemption_code,json=applyRedemptionCode,proto3,oneof"` +} + +type Command_ManagedApplicationList struct { + ManagedApplicationList *ManagedApplicationList `protobuf:"bytes,19,opt,name=managed_application_list,json=managedApplicationList,proto3,oneof"` +} + +type Command_RemoveApplication struct { + RemoveApplication *RemoveApplication `protobuf:"bytes,20,opt,name=remove_application,json=removeApplication,proto3,oneof"` +} + +type Command_InviteToProgram struct { + InviteToProgram *InviteToProgram `protobuf:"bytes,21,opt,name=invite_to_program,json=inviteToProgram,proto3,oneof"` +} + +type Command_ValidataApplications struct { + ValidataApplications *ValidateApplications `protobuf:"bytes,22,opt,name=validata_applications,json=validataApplications,proto3,oneof"` +} + +type Command_InstallMedia struct { + InstallMedia *InstallMedia `protobuf:"bytes,23,opt,name=install_media,json=installMedia,proto3,oneof"` +} + +type Command_RemoveMedia struct { + RemoveMedia *RemoveMedia `protobuf:"bytes,24,opt,name=remove_media,json=removeMedia,proto3,oneof"` +} + +type Command_Settings struct { + Settings *Settings `protobuf:"bytes,25,opt,name=settings,proto3,oneof"` +} + +type Command_ManagedApplicationConfiguration struct { + ManagedApplicationConfiguration *ManagedApplicationConfiguration `protobuf:"bytes,26,opt,name=managed_application_configuration,json=managedApplicationConfiguration,proto3,oneof"` +} + +type Command_ManagedApplicationAttributes struct { + ManagedApplicationAttributes *ManagedApplicationAttributes `protobuf:"bytes,27,opt,name=managed_application_attributes,json=managedApplicationAttributes,proto3,oneof"` +} + +type Command_ManagedApplicationFeedback struct { + ManagedApplicationFeedback *ManagedApplicationFeedback `protobuf:"bytes,28,opt,name=managed_application_feedback,json=managedApplicationFeedback,proto3,oneof"` +} + +type Command_SetFirmwarePassword struct { + SetFirmwarePassword *SetFirmwarePassword `protobuf:"bytes,29,opt,name=set_firmware_password,json=setFirmwarePassword,proto3,oneof"` +} + +type Command_VerifyFirmwarePassword struct { + VerifyFirmwarePassword *VerifyFirmwarePassword `protobuf:"bytes,30,opt,name=verify_firmware_password,json=verifyFirmwarePassword,proto3,oneof"` +} + +type Command_SetAutoAdminPassword struct { + SetAutoAdminPassword *SetAutoAdminPassword `protobuf:"bytes,31,opt,name=set_auto_admin_password,json=setAutoAdminPassword,proto3,oneof"` +} + +type Command_ScheduleOsUpdate struct { + ScheduleOsUpdate *ScheduleOSUpdate `protobuf:"bytes,32,opt,name=schedule_os_update,json=scheduleOsUpdate,proto3,oneof"` +} + +type Command_ScheduleOsUpdateScan struct { + ScheduleOsUpdateScan *ScheduleOSUpdateScan `protobuf:"bytes,33,opt,name=schedule_os_update_scan,json=scheduleOsUpdateScan,proto3,oneof"` +} + +type Command_ActiveNsExtensions struct { + ActiveNsExtensions *ActiveNSExtensions `protobuf:"bytes,34,opt,name=active_ns_extensions,json=activeNsExtensions,proto3,oneof"` +} + +type Command_RotateFilevaultKey struct { + RotateFilevaultKey *RotateFileVaultKey `protobuf:"bytes,35,opt,name=rotate_filevault_key,json=rotateFilevaultKey,proto3,oneof"` +} + +type Command_InstallEnterpriseApplication struct { + InstallEnterpriseApplication *InstallEnterpriseApplication `protobuf:"bytes,36,opt,name=install_enterprise_application,json=installEnterpriseApplication,proto3,oneof"` +} + +type Command_SetBootstrapToken struct { + SetBootstrapToken *SetBootstrapToken `protobuf:"bytes,37,opt,name=set_bootstrap_token,json=setBootstrapToken,proto3,oneof"` +} + +type Command_SetRecoveryLock struct { + SetRecoveryLock *SetRecoveryLock `protobuf:"bytes,38,opt,name=set_recovery_lock,json=setRecoveryLock,proto3,oneof"` +} + +type Command_VerifyRecoveryLock struct { + VerifyRecoveryLock *VerifyRecoveryLock `protobuf:"bytes,39,opt,name=verify_recovery_lock,json=verifyRecoveryLock,proto3,oneof"` +} + +func (*Command_InstallProfile) isCommand_Request() {} + +func (*Command_RemoveProfile) isCommand_Request() {} + +func (*Command_InstallProvisioningProfile) isCommand_Request() {} + +func (*Command_RemoveProfisioningProfile) isCommand_Request() {} + +func (*Command_InstalledApplicationList) isCommand_Request() {} + +func (*Command_DeviceInformation) isCommand_Request() {} + +func (*Command_DeviceLock) isCommand_Request() {} + +func (*Command_ClearPasscode) isCommand_Request() {} + +func (*Command_EraseDevice) isCommand_Request() {} + +func (*Command_RequestMirroring) isCommand_Request() {} + +func (*Command_Restrictions) isCommand_Request() {} + +func (*Command_UnlockUserAccount) isCommand_Request() {} + +func (*Command_DeleteUser) isCommand_Request() {} + +func (*Command_EnableLostMode) isCommand_Request() {} + +func (*Command_InstallApplication) isCommand_Request() {} + +func (*Command_AccountConfiguration) isCommand_Request() {} + +func (*Command_ApplyRedemptionCode) isCommand_Request() {} + +func (*Command_ManagedApplicationList) isCommand_Request() {} + +func (*Command_RemoveApplication) isCommand_Request() {} + +func (*Command_InviteToProgram) isCommand_Request() {} + +func (*Command_ValidataApplications) isCommand_Request() {} + +func (*Command_InstallMedia) isCommand_Request() {} + +func (*Command_RemoveMedia) isCommand_Request() {} + +func (*Command_Settings) isCommand_Request() {} + +func (*Command_ManagedApplicationConfiguration) isCommand_Request() {} + +func (*Command_ManagedApplicationAttributes) isCommand_Request() {} + +func (*Command_ManagedApplicationFeedback) isCommand_Request() {} + +func (*Command_SetFirmwarePassword) isCommand_Request() {} + +func (*Command_VerifyFirmwarePassword) isCommand_Request() {} + +func (*Command_SetAutoAdminPassword) isCommand_Request() {} + +func (*Command_ScheduleOsUpdate) isCommand_Request() {} + +func (*Command_ScheduleOsUpdateScan) isCommand_Request() {} + +func (*Command_ActiveNsExtensions) isCommand_Request() {} + +func (*Command_RotateFilevaultKey) isCommand_Request() {} + +func (*Command_InstallEnterpriseApplication) isCommand_Request() {} + +func (*Command_SetBootstrapToken) isCommand_Request() {} + +func (*Command_SetRecoveryLock) isCommand_Request() {} + +func (*Command_VerifyRecoveryLock) isCommand_Request() {} + +type InstallProfile struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // The mobileconfig data. +} + +func (x *InstallProfile) Reset() { + *x = InstallProfile{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstallProfile) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstallProfile) ProtoMessage() {} + +func (x *InstallProfile) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InstallProfile.ProtoReflect.Descriptor instead. +func (*InstallProfile) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{2} +} + +func (x *InstallProfile) GetPayload() []byte { + if x != nil { + return x.Payload + } + return nil +} + +type RemoveProfile struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` +} + +func (x *RemoveProfile) Reset() { + *x = RemoveProfile{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveProfile) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveProfile) ProtoMessage() {} + +func (x *RemoveProfile) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RemoveProfile.ProtoReflect.Descriptor instead. +func (*RemoveProfile) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{3} +} + +func (x *RemoveProfile) GetIdentifier() string { + if x != nil { + return x.Identifier + } + return "" +} + +type InstallProvisioningProfile struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProvisioningProfile []byte `protobuf:"bytes,1,opt,name=provisioning_profile,json=provisioningProfile,proto3" json:"provisioning_profile,omitempty"` +} + +func (x *InstallProvisioningProfile) Reset() { + *x = InstallProvisioningProfile{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstallProvisioningProfile) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstallProvisioningProfile) ProtoMessage() {} + +func (x *InstallProvisioningProfile) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InstallProvisioningProfile.ProtoReflect.Descriptor instead. +func (*InstallProvisioningProfile) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{4} +} + +func (x *InstallProvisioningProfile) GetProvisioningProfile() []byte { + if x != nil { + return x.ProvisioningProfile + } + return nil +} + +type RemoveProvisioningProfile struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` +} + +func (x *RemoveProvisioningProfile) Reset() { + *x = RemoveProvisioningProfile{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveProvisioningProfile) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveProvisioningProfile) ProtoMessage() {} + +func (x *RemoveProvisioningProfile) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RemoveProvisioningProfile.ProtoReflect.Descriptor instead. +func (*RemoveProvisioningProfile) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{5} +} + +func (x *RemoveProvisioningProfile) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +type InstalledApplicationList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifiers []string `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"` + ManagedAppsOnly bool `protobuf:"varint,2,opt,name=managed_apps_only,json=managedAppsOnly,proto3" json:"managed_apps_only,omitempty"` +} + +func (x *InstalledApplicationList) Reset() { + *x = InstalledApplicationList{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstalledApplicationList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstalledApplicationList) ProtoMessage() {} + +func (x *InstalledApplicationList) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InstalledApplicationList.ProtoReflect.Descriptor instead. +func (*InstalledApplicationList) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{6} +} + +func (x *InstalledApplicationList) GetIdentifiers() []string { + if x != nil { + return x.Identifiers + } + return nil +} + +func (x *InstalledApplicationList) GetManagedAppsOnly() bool { + if x != nil { + return x.ManagedAppsOnly + } + return false +} + +type DeviceInformation struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Queries []string `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"` +} + +func (x *DeviceInformation) Reset() { + *x = DeviceInformation{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeviceInformation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeviceInformation) ProtoMessage() {} + +func (x *DeviceInformation) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeviceInformation.ProtoReflect.Descriptor instead. +func (*DeviceInformation) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{7} +} + +func (x *DeviceInformation) GetQueries() []string { + if x != nil { + return x.Queries + } + return nil +} + +type ClearPasscode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UnlockToken []byte `protobuf:"bytes,1,opt,name=unlock_token,json=unlockToken,proto3" json:"unlock_token,omitempty"` +} + +func (x *ClearPasscode) Reset() { + *x = ClearPasscode{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClearPasscode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClearPasscode) ProtoMessage() {} + +func (x *ClearPasscode) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClearPasscode.ProtoReflect.Descriptor instead. +func (*ClearPasscode) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{8} +} + +func (x *ClearPasscode) GetUnlockToken() []byte { + if x != nil { + return x.UnlockToken + } + return nil +} + +type DeviceLock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Pin string `protobuf:"bytes,1,opt,name=pin,proto3" json:"pin,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` +} + +func (x *DeviceLock) Reset() { + *x = DeviceLock{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeviceLock) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeviceLock) ProtoMessage() {} + +func (x *DeviceLock) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeviceLock.ProtoReflect.Descriptor instead. +func (*DeviceLock) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{9} +} + +func (x *DeviceLock) GetPin() string { + if x != nil { + return x.Pin + } + return "" +} + +func (x *DeviceLock) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *DeviceLock) GetPhoneNumber() string { + if x != nil { + return x.PhoneNumber + } + return "" +} + +type EraseDevice struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Pin string `protobuf:"bytes,1,opt,name=pin,proto3" json:"pin,omitempty"` + PreserveDataPlan bool `protobuf:"varint,2,opt,name=preserve_data_plan,json=preserveDataPlan,proto3" json:"preserve_data_plan,omitempty"` + DisallowProximitySetup bool `protobuf:"varint,3,opt,name=disallow_proximity_setup,json=disallowProximitySetup,proto3" json:"disallow_proximity_setup,omitempty"` +} + +func (x *EraseDevice) Reset() { + *x = EraseDevice{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EraseDevice) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EraseDevice) ProtoMessage() {} + +func (x *EraseDevice) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EraseDevice.ProtoReflect.Descriptor instead. +func (*EraseDevice) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{10} +} + +func (x *EraseDevice) GetPin() string { + if x != nil { + return x.Pin + } + return "" +} + +func (x *EraseDevice) GetPreserveDataPlan() bool { + if x != nil { + return x.PreserveDataPlan + } + return false +} + +func (x *EraseDevice) GetDisallowProximitySetup() bool { + if x != nil { + return x.DisallowProximitySetup + } + return false +} + +type RequestMirroring struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DestinationName string `protobuf:"bytes,1,opt,name=destination_name,json=destinationName,proto3" json:"destination_name,omitempty"` + DestinationDeviceId string `protobuf:"bytes,2,opt,name=destination_device_id,json=destinationDeviceId,proto3" json:"destination_device_id,omitempty"` + ScanTime string `protobuf:"bytes,3,opt,name=scan_time,json=scanTime,proto3" json:"scan_time,omitempty"` + Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *RequestMirroring) Reset() { + *x = RequestMirroring{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestMirroring) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestMirroring) ProtoMessage() {} + +func (x *RequestMirroring) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RequestMirroring.ProtoReflect.Descriptor instead. +func (*RequestMirroring) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{11} +} + +func (x *RequestMirroring) GetDestinationName() string { + if x != nil { + return x.DestinationName + } + return "" +} + +func (x *RequestMirroring) GetDestinationDeviceId() string { + if x != nil { + return x.DestinationDeviceId + } + return "" +} + +func (x *RequestMirroring) GetScanTime() string { + if x != nil { + return x.ScanTime + } + return "" +} + +func (x *RequestMirroring) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type Restrictions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProfileRestrictions bool `protobuf:"varint,1,opt,name=profile_restrictions,json=profileRestrictions,proto3" json:"profile_restrictions,omitempty"` +} + +func (x *Restrictions) Reset() { + *x = Restrictions{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Restrictions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Restrictions) ProtoMessage() {} + +func (x *Restrictions) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Restrictions.ProtoReflect.Descriptor instead. +func (*Restrictions) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{12} +} + +func (x *Restrictions) GetProfileRestrictions() bool { + if x != nil { + return x.ProfileRestrictions + } + return false +} + +type UnlockUserAccount struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` +} + +func (x *UnlockUserAccount) Reset() { + *x = UnlockUserAccount{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnlockUserAccount) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnlockUserAccount) ProtoMessage() {} + +func (x *UnlockUserAccount) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnlockUserAccount.ProtoReflect.Descriptor instead. +func (*UnlockUserAccount) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{13} +} + +func (x *UnlockUserAccount) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +type DeleteUser struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` + ForceDeletion bool `protobuf:"varint,2,opt,name=force_deletion,json=forceDeletion,proto3" json:"force_deletion,omitempty"` +} + +func (x *DeleteUser) Reset() { + *x = DeleteUser{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteUser) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteUser) ProtoMessage() {} + +func (x *DeleteUser) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteUser.ProtoReflect.Descriptor instead. +func (*DeleteUser) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{14} +} + +func (x *DeleteUser) GetUsername() string { + if x != nil { + return x.Username + } + return "" +} + +func (x *DeleteUser) GetForceDeletion() bool { + if x != nil { + return x.ForceDeletion + } + return false +} + +type EnableLostMode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + PhoneNumber string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` + Footnote string `protobuf:"bytes,3,opt,name=footnote,proto3" json:"footnote,omitempty"` +} + +func (x *EnableLostMode) Reset() { + *x = EnableLostMode{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EnableLostMode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnableLostMode) ProtoMessage() {} + +func (x *EnableLostMode) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnableLostMode.ProtoReflect.Descriptor instead. +func (*EnableLostMode) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{15} +} + +func (x *EnableLostMode) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *EnableLostMode) GetPhoneNumber() string { + if x != nil { + return x.PhoneNumber + } + return "" +} + +func (x *EnableLostMode) GetFootnote() string { + if x != nil { + return x.Footnote + } + return "" +} + +type InstallApplication struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ItunesStoreId int64 `protobuf:"varint,1,opt,name=itunes_store_id,json=itunesStoreId,proto3" json:"itunes_store_id,omitempty"` + Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` + Options *InstallApplicationOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` + ManifestUrl string `protobuf:"bytes,4,opt,name=manifest_url,json=manifestUrl,proto3" json:"manifest_url,omitempty"` + ManagementFlags int64 `protobuf:"varint,5,opt,name=management_flags,json=managementFlags,proto3" json:"management_flags,omitempty"` // bitwise OR + Configuration *InstallApplicationConfiguration `protobuf:"bytes,6,opt,name=configuration,proto3" json:"configuration,omitempty"` + Attributes *InstallApplicationAttributes `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"` + ChangeManagementState string `protobuf:"bytes,8,opt,name=change_management_state,json=changeManagementState,proto3" json:"change_management_state,omitempty"` +} + +func (x *InstallApplication) Reset() { + *x = InstallApplication{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstallApplication) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstallApplication) ProtoMessage() {} + +func (x *InstallApplication) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InstallApplication.ProtoReflect.Descriptor instead. +func (*InstallApplication) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{16} +} + +func (x *InstallApplication) GetItunesStoreId() int64 { + if x != nil { + return x.ItunesStoreId + } + return 0 +} + +func (x *InstallApplication) GetIdentifier() string { + if x != nil { + return x.Identifier + } + return "" +} + +func (x *InstallApplication) GetOptions() *InstallApplicationOptions { + if x != nil { + return x.Options + } + return nil +} + +func (x *InstallApplication) GetManifestUrl() string { + if x != nil { + return x.ManifestUrl + } + return "" +} + +func (x *InstallApplication) GetManagementFlags() int64 { + if x != nil { + return x.ManagementFlags + } + return 0 +} + +func (x *InstallApplication) GetConfiguration() *InstallApplicationConfiguration { + if x != nil { + return x.Configuration + } + return nil +} + +func (x *InstallApplication) GetAttributes() *InstallApplicationAttributes { + if x != nil { + return x.Attributes + } + return nil +} + +func (x *InstallApplication) GetChangeManagementState() string { + if x != nil { + return x.ChangeManagementState + } + return "" +} + +type InstallApplicationOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PurchaseMethod int64 `protobuf:"varint,1,opt,name=purchase_method,json=purchaseMethod,proto3" json:"purchase_method,omitempty"` +} + +func (x *InstallApplicationOptions) Reset() { + *x = InstallApplicationOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstallApplicationOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstallApplicationOptions) ProtoMessage() {} + +func (x *InstallApplicationOptions) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InstallApplicationOptions.ProtoReflect.Descriptor instead. +func (*InstallApplicationOptions) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{17} +} + +func (x *InstallApplicationOptions) GetPurchaseMethod() int64 { + if x != nil { + return x.PurchaseMethod + } + return 0 +} + +type InstallApplicationConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *InstallApplicationConfiguration) Reset() { + *x = InstallApplicationConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstallApplicationConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstallApplicationConfiguration) ProtoMessage() {} + +func (x *InstallApplicationConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InstallApplicationConfiguration.ProtoReflect.Descriptor instead. +func (*InstallApplicationConfiguration) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{18} +} + +type InstallApplicationAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *InstallApplicationAttributes) Reset() { + *x = InstallApplicationAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstallApplicationAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstallApplicationAttributes) ProtoMessage() {} + +func (x *InstallApplicationAttributes) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InstallApplicationAttributes.ProtoReflect.Descriptor instead. +func (*InstallApplicationAttributes) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{19} +} + +type InstallEnterpriseApplication struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Manifest *Manifest `protobuf:"bytes,1,opt,name=manifest,proto3" json:"manifest,omitempty"` + ManifestUrl string `protobuf:"bytes,2,opt,name=manifest_url,json=manifestUrl,proto3" json:"manifest_url,omitempty"` + ManifestUrlPinningCerts [][]byte `protobuf:"bytes,3,rep,name=manifest_url_pinning_certs,json=manifestUrlPinningCerts,proto3" json:"manifest_url_pinning_certs,omitempty"` + PinningRevocationCheckRequired bool `protobuf:"varint,4,opt,name=pinning_revocation_check_required,json=pinningRevocationCheckRequired,proto3" json:"pinning_revocation_check_required,omitempty"` +} + +func (x *InstallEnterpriseApplication) Reset() { + *x = InstallEnterpriseApplication{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstallEnterpriseApplication) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstallEnterpriseApplication) ProtoMessage() {} + +func (x *InstallEnterpriseApplication) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InstallEnterpriseApplication.ProtoReflect.Descriptor instead. +func (*InstallEnterpriseApplication) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{20} +} + +func (x *InstallEnterpriseApplication) GetManifest() *Manifest { + if x != nil { + return x.Manifest + } + return nil +} + +func (x *InstallEnterpriseApplication) GetManifestUrl() string { + if x != nil { + return x.ManifestUrl + } + return "" +} + +func (x *InstallEnterpriseApplication) GetManifestUrlPinningCerts() [][]byte { + if x != nil { + return x.ManifestUrlPinningCerts + } + return nil +} + +func (x *InstallEnterpriseApplication) GetPinningRevocationCheckRequired() bool { + if x != nil { + return x.PinningRevocationCheckRequired + } + return false +} + +type Manifest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ManifestItems []*ManifestItem `protobuf:"bytes,1,rep,name=manifest_items,json=manifestItems,proto3" json:"manifest_items,omitempty"` +} + +func (x *Manifest) Reset() { + *x = Manifest{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Manifest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Manifest) ProtoMessage() {} + +func (x *Manifest) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Manifest.ProtoReflect.Descriptor instead. +func (*Manifest) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{21} +} + +func (x *Manifest) GetManifestItems() []*ManifestItem { + if x != nil { + return x.ManifestItems + } + return nil +} + +type ManifestItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` + Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *ManifestItem) Reset() { + *x = ManifestItem{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ManifestItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ManifestItem) ProtoMessage() {} + +func (x *ManifestItem) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ManifestItem.ProtoReflect.Descriptor instead. +func (*ManifestItem) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{22} +} + +func (x *ManifestItem) GetAssets() []*Asset { + if x != nil { + return x.Assets + } + return nil +} + +func (x *ManifestItem) GetMetadata() *Metadata { + if x != nil { + return x.Metadata + } + return nil +} + +type Asset struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` + Md5Size int64 `protobuf:"varint,2,opt,name=md5_size,json=md5Size,proto3" json:"md5_size,omitempty"` + Md5S []string `protobuf:"bytes,3,rep,name=md5s,proto3" json:"md5s,omitempty"` + Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` + Sha256Size int64 `protobuf:"varint,5,opt,name=sha256_size,json=sha256Size,proto3" json:"sha256_size,omitempty"` + Sha256S []string `protobuf:"bytes,6,rep,name=sha256s,proto3" json:"sha256s,omitempty"` +} + +func (x *Asset) Reset() { + *x = Asset{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Asset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Asset) ProtoMessage() {} + +func (x *Asset) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Asset.ProtoReflect.Descriptor instead. +func (*Asset) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{23} +} + +func (x *Asset) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + +func (x *Asset) GetMd5Size() int64 { + if x != nil { + return x.Md5Size + } + return 0 +} + +func (x *Asset) GetMd5S() []string { + if x != nil { + return x.Md5S + } + return nil +} + +func (x *Asset) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *Asset) GetSha256Size() int64 { + if x != nil { + return x.Sha256Size + } + return 0 +} + +func (x *Asset) GetSha256S() []string { + if x != nil { + return x.Sha256S + } + return nil +} + +type Metadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BundleIdentifier string `protobuf:"bytes,1,opt,name=bundle_identifier,json=bundleIdentifier,proto3" json:"bundle_identifier,omitempty"` + BundleVersion string `protobuf:"bytes,2,opt,name=bundle_version,json=bundleVersion,proto3" json:"bundle_version,omitempty"` + Items []*BundleInfo `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` + Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"` + Subtitle string `protobuf:"bytes,5,opt,name=subtitle,proto3" json:"subtitle,omitempty"` + Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` + SizeInBytes int64 `protobuf:"varint,7,opt,name=size_in_bytes,json=sizeInBytes,proto3" json:"size_in_bytes,omitempty"` +} + +func (x *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{24} +} + +func (x *Metadata) GetBundleIdentifier() string { + if x != nil { + return x.BundleIdentifier + } + return "" +} + +func (x *Metadata) GetBundleVersion() string { + if x != nil { + return x.BundleVersion + } + return "" +} + +func (x *Metadata) GetItems() []*BundleInfo { + if x != nil { + return x.Items + } + return nil +} + +func (x *Metadata) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + +func (x *Metadata) GetSubtitle() string { + if x != nil { + return x.Subtitle + } + return "" +} + +func (x *Metadata) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *Metadata) GetSizeInBytes() int64 { + if x != nil { + return x.SizeInBytes + } + return 0 +} + +type BundleInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BundleIdentifier string `protobuf:"bytes,1,opt,name=bundle_identifier,json=bundleIdentifier,proto3" json:"bundle_identifier,omitempty"` + BundleVersion string `protobuf:"bytes,2,opt,name=bundle_version,json=bundleVersion,proto3" json:"bundle_version,omitempty"` +} + +func (x *BundleInfo) Reset() { + *x = BundleInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BundleInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BundleInfo) ProtoMessage() {} + +func (x *BundleInfo) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BundleInfo.ProtoReflect.Descriptor instead. +func (*BundleInfo) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{25} +} + +func (x *BundleInfo) GetBundleIdentifier() string { + if x != nil { + return x.BundleIdentifier + } + return "" +} + +func (x *BundleInfo) GetBundleVersion() string { + if x != nil { + return x.BundleVersion + } + return "" +} + +type ApplyRedemptionCode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + RedemptionCode string `protobuf:"bytes,2,opt,name=redemption_code,json=redemptionCode,proto3" json:"redemption_code,omitempty"` +} + +func (x *ApplyRedemptionCode) Reset() { + *x = ApplyRedemptionCode{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplyRedemptionCode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplyRedemptionCode) ProtoMessage() {} + +func (x *ApplyRedemptionCode) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplyRedemptionCode.ProtoReflect.Descriptor instead. +func (*ApplyRedemptionCode) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{26} +} + +func (x *ApplyRedemptionCode) GetIdentifier() string { + if x != nil { + return x.Identifier + } + return "" +} + +func (x *ApplyRedemptionCode) GetRedemptionCode() string { + if x != nil { + return x.RedemptionCode + } + return "" +} + +type ManagedApplicationList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifiers []string `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"` +} + +func (x *ManagedApplicationList) Reset() { + *x = ManagedApplicationList{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ManagedApplicationList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ManagedApplicationList) ProtoMessage() {} + +func (x *ManagedApplicationList) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ManagedApplicationList.ProtoReflect.Descriptor instead. +func (*ManagedApplicationList) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{27} +} + +func (x *ManagedApplicationList) GetIdentifiers() []string { + if x != nil { + return x.Identifiers + } + return nil +} + +type RemoveApplication struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` +} + +func (x *RemoveApplication) Reset() { + *x = RemoveApplication{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveApplication) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveApplication) ProtoMessage() {} + +func (x *RemoveApplication) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RemoveApplication.ProtoReflect.Descriptor instead. +func (*RemoveApplication) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{28} +} + +func (x *RemoveApplication) GetIdentifier() string { + if x != nil { + return x.Identifier + } + return "" +} + +type InviteToProgram struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProgramId string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty"` + InvitationUrl string `protobuf:"bytes,2,opt,name=invitation_url,json=invitationUrl,proto3" json:"invitation_url,omitempty"` +} + +func (x *InviteToProgram) Reset() { + *x = InviteToProgram{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InviteToProgram) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InviteToProgram) ProtoMessage() {} + +func (x *InviteToProgram) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InviteToProgram.ProtoReflect.Descriptor instead. +func (*InviteToProgram) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{29} +} + +func (x *InviteToProgram) GetProgramId() string { + if x != nil { + return x.ProgramId + } + return "" +} + +func (x *InviteToProgram) GetInvitationUrl() string { + if x != nil { + return x.InvitationUrl + } + return "" +} + +type ValidateApplications struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifiers []string `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"` +} + +func (x *ValidateApplications) Reset() { + *x = ValidateApplications{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidateApplications) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidateApplications) ProtoMessage() {} + +func (x *ValidateApplications) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ValidateApplications.ProtoReflect.Descriptor instead. +func (*ValidateApplications) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{30} +} + +func (x *ValidateApplications) GetIdentifiers() []string { + if x != nil { + return x.Identifiers + } + return nil +} + +type AccountConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SkipPrimarySetupAccountCreation bool `protobuf:"varint,1,opt,name=skip_primary_setup_account_creation,json=skipPrimarySetupAccountCreation,proto3" json:"skip_primary_setup_account_creation,omitempty"` + SetPrimarySetupAccountAsRegularUser bool `protobuf:"varint,2,opt,name=set_primary_setup_account_as_regular_user,json=setPrimarySetupAccountAsRegularUser,proto3" json:"set_primary_setup_account_as_regular_user,omitempty"` + DontAutoPopulatePrimaryAccountInfo bool `protobuf:"varint,4,opt,name=dont_auto_populate_primary_account_info,json=dontAutoPopulatePrimaryAccountInfo,proto3" json:"dont_auto_populate_primary_account_info,omitempty"` + LockPrimaryAccountInfo bool `protobuf:"varint,5,opt,name=lock_primary_account_info,json=lockPrimaryAccountInfo,proto3" json:"lock_primary_account_info,omitempty"` + PrimaryAccountFullName string `protobuf:"bytes,6,opt,name=primary_account_full_name,json=primaryAccountFullName,proto3" json:"primary_account_full_name,omitempty"` + PrimaryAccountUserName string `protobuf:"bytes,7,opt,name=primary_account_user_name,json=primaryAccountUserName,proto3" json:"primary_account_user_name,omitempty"` + AutoSetupAdminAccounts []*AutoSetupAdminAccounts `protobuf:"bytes,3,rep,name=auto_setup_admin_accounts,json=autoSetupAdminAccounts,proto3" json:"auto_setup_admin_accounts,omitempty"` +} + +func (x *AccountConfiguration) Reset() { + *x = AccountConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AccountConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AccountConfiguration) ProtoMessage() {} + +func (x *AccountConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AccountConfiguration.ProtoReflect.Descriptor instead. +func (*AccountConfiguration) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{31} +} + +func (x *AccountConfiguration) GetSkipPrimarySetupAccountCreation() bool { + if x != nil { + return x.SkipPrimarySetupAccountCreation + } + return false +} + +func (x *AccountConfiguration) GetSetPrimarySetupAccountAsRegularUser() bool { + if x != nil { + return x.SetPrimarySetupAccountAsRegularUser + } + return false +} + +func (x *AccountConfiguration) GetDontAutoPopulatePrimaryAccountInfo() bool { + if x != nil { + return x.DontAutoPopulatePrimaryAccountInfo + } + return false +} + +func (x *AccountConfiguration) GetLockPrimaryAccountInfo() bool { + if x != nil { + return x.LockPrimaryAccountInfo + } + return false +} + +func (x *AccountConfiguration) GetPrimaryAccountFullName() string { + if x != nil { + return x.PrimaryAccountFullName + } + return "" +} + +func (x *AccountConfiguration) GetPrimaryAccountUserName() string { + if x != nil { + return x.PrimaryAccountUserName + } + return "" +} + +func (x *AccountConfiguration) GetAutoSetupAdminAccounts() []*AutoSetupAdminAccounts { + if x != nil { + return x.AutoSetupAdminAccounts + } + return nil +} + +type AutoSetupAdminAccounts struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ShortName string `protobuf:"bytes,1,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` + FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" 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,proto3" json:"hidden,omitempty"` +} + +func (x *AutoSetupAdminAccounts) Reset() { + *x = AutoSetupAdminAccounts{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AutoSetupAdminAccounts) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AutoSetupAdminAccounts) ProtoMessage() {} + +func (x *AutoSetupAdminAccounts) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AutoSetupAdminAccounts.ProtoReflect.Descriptor instead. +func (*AutoSetupAdminAccounts) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{32} +} + +func (x *AutoSetupAdminAccounts) GetShortName() string { + if x != nil { + return x.ShortName + } + return "" +} + +func (x *AutoSetupAdminAccounts) GetFullName() string { + if x != nil { + return x.FullName + } + return "" +} + +func (x *AutoSetupAdminAccounts) GetPasswordHash() []byte { + if x != nil { + return x.PasswordHash + } + return nil +} + +func (x *AutoSetupAdminAccounts) GetHidden() bool { + if x != nil { + return x.Hidden + } + return false +} + +type InstallMedia struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ItunesStoreId int64 `protobuf:"varint,1,opt,name=itunes_store_id,json=itunesStoreId,proto3" json:"itunes_store_id,omitempty"` + MediaUrl string `protobuf:"bytes,2,opt,name=media_url,json=mediaUrl,proto3" json:"media_url,omitempty"` + MediaType string `protobuf:"bytes,3,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` +} + +func (x *InstallMedia) Reset() { + *x = InstallMedia{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InstallMedia) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InstallMedia) ProtoMessage() {} + +func (x *InstallMedia) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use InstallMedia.ProtoReflect.Descriptor instead. +func (*InstallMedia) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{33} +} + +func (x *InstallMedia) GetItunesStoreId() int64 { + if x != nil { + return x.ItunesStoreId + } + return 0 +} + +func (x *InstallMedia) GetMediaUrl() string { + if x != nil { + return x.MediaUrl + } + return "" +} + +func (x *InstallMedia) GetMediaType() string { + if x != nil { + return x.MediaType + } + return "" +} + +type RemoveMedia struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MediaType string `protobuf:"bytes,1,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` + ItunesStoreId int64 `protobuf:"varint,2,opt,name=itunes_store_id,json=itunesStoreId,proto3" json:"itunes_store_id,omitempty"` + PersistentId string `protobuf:"bytes,3,opt,name=persistent_id,json=persistentId,proto3" json:"persistent_id,omitempty"` +} + +func (x *RemoveMedia) Reset() { + *x = RemoveMedia{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RemoveMedia) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RemoveMedia) ProtoMessage() {} + +func (x *RemoveMedia) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RemoveMedia.ProtoReflect.Descriptor instead. +func (*RemoveMedia) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{34} +} + +func (x *RemoveMedia) GetMediaType() string { + if x != nil { + return x.MediaType + } + return "" +} + +func (x *RemoveMedia) GetItunesStoreId() int64 { + if x != nil { + return x.ItunesStoreId + } + return 0 +} + +func (x *RemoveMedia) GetPersistentId() string { + if x != nil { + return x.PersistentId + } + return "" +} + +type Settings struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Settings []*Setting `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"` +} + +func (x *Settings) Reset() { + *x = Settings{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Settings) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Settings) ProtoMessage() {} + +func (x *Settings) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Settings.ProtoReflect.Descriptor instead. +func (*Settings) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{35} +} + +func (x *Settings) GetSettings() []*Setting { + if x != nil { + return x.Settings + } + return nil +} + +type Setting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Item string `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` + DeviceName *DeviceNameSetting `protobuf:"bytes,2,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` + Hostname *HostnameSetting `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"` + VoiceRoaming *VoiceRoamingSetting `protobuf:"bytes,4,opt,name=voice_roaming,json=voiceRoaming,proto3" json:"voice_roaming,omitempty"` + PersonalHotspot *PersonalHotspotSetting `protobuf:"bytes,5,opt,name=personal_hotspot,json=personalHotspot,proto3" json:"personal_hotspot,omitempty"` + Wallpaper *WallpaperSetting `protobuf:"bytes,6,opt,name=wallpaper,proto3" json:"wallpaper,omitempty"` + DataRoaming *DataRoamingSetting `protobuf:"bytes,7,opt,name=data_roaming,json=dataRoaming,proto3" json:"data_roaming,omitempty"` + Bluetooth *BluetoothSetting `protobuf:"bytes,8,opt,name=bluetooth,proto3" json:"bluetooth,omitempty"` + ApplicationAttributes *ApplicationAttributesSetting `protobuf:"bytes,9,opt,name=application_attributes,json=applicationAttributes,proto3" json:"application_attributes,omitempty"` + MdmOptions *MDMOptionsSetting `protobuf:"bytes,10,opt,name=mdm_options,json=mdmOptions,proto3" json:"mdm_options,omitempty"` + PasscodeLockGracePeriod *PasscodeLockGracePeriodSetting `protobuf:"bytes,11,opt,name=passcode_lock_grace_period,json=passcodeLockGracePeriod,proto3" json:"passcode_lock_grace_period,omitempty"` + MaximumResidentUsers *MaximumResidentUsersSetting `protobuf:"bytes,12,opt,name=maximum_resident_users,json=maximumResidentUsers,proto3" json:"maximum_resident_users,omitempty"` + DiagnosticSubmission *DiagnosticSubmissionSetting `protobuf:"bytes,13,opt,name=diagnostic_submission,json=diagnosticSubmission,proto3" json:"diagnostic_submission,omitempty"` + AppAnalytics *AppAnalyticsSetting `protobuf:"bytes,14,opt,name=app_analytics,json=appAnalytics,proto3" json:"app_analytics,omitempty"` + ApplicationConfiguration *ApplicationConfigurationSetting `protobuf:"bytes,15,opt,name=application_configuration,json=applicationConfiguration,proto3" json:"application_configuration,omitempty"` + TimeZone *TimeZoneSetting `protobuf:"bytes,16,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` +} + +func (x *Setting) Reset() { + *x = Setting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Setting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Setting) ProtoMessage() {} + +func (x *Setting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Setting.ProtoReflect.Descriptor instead. +func (*Setting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{36} +} + +func (x *Setting) GetItem() string { + if x != nil { + return x.Item + } + return "" +} + +func (x *Setting) GetDeviceName() *DeviceNameSetting { + if x != nil { + return x.DeviceName + } + return nil +} + +func (x *Setting) GetHostname() *HostnameSetting { + if x != nil { + return x.Hostname + } + return nil +} + +func (x *Setting) GetVoiceRoaming() *VoiceRoamingSetting { + if x != nil { + return x.VoiceRoaming + } + return nil +} + +func (x *Setting) GetPersonalHotspot() *PersonalHotspotSetting { + if x != nil { + return x.PersonalHotspot + } + return nil +} + +func (x *Setting) GetWallpaper() *WallpaperSetting { + if x != nil { + return x.Wallpaper + } + return nil +} + +func (x *Setting) GetDataRoaming() *DataRoamingSetting { + if x != nil { + return x.DataRoaming + } + return nil +} + +func (x *Setting) GetBluetooth() *BluetoothSetting { + if x != nil { + return x.Bluetooth + } + return nil +} + +func (x *Setting) GetApplicationAttributes() *ApplicationAttributesSetting { + if x != nil { + return x.ApplicationAttributes + } + return nil +} + +func (x *Setting) GetMdmOptions() *MDMOptionsSetting { + if x != nil { + return x.MdmOptions + } + return nil +} + +func (x *Setting) GetPasscodeLockGracePeriod() *PasscodeLockGracePeriodSetting { + if x != nil { + return x.PasscodeLockGracePeriod + } + return nil +} + +func (x *Setting) GetMaximumResidentUsers() *MaximumResidentUsersSetting { + if x != nil { + return x.MaximumResidentUsers + } + return nil +} + +func (x *Setting) GetDiagnosticSubmission() *DiagnosticSubmissionSetting { + if x != nil { + return x.DiagnosticSubmission + } + return nil +} + +func (x *Setting) GetAppAnalytics() *AppAnalyticsSetting { + if x != nil { + return x.AppAnalytics + } + return nil +} + +func (x *Setting) GetApplicationConfiguration() *ApplicationConfigurationSetting { + if x != nil { + return x.ApplicationConfiguration + } + return nil +} + +func (x *Setting) GetTimeZone() *TimeZoneSetting { + if x != nil { + return x.TimeZone + } + return nil +} + +type VoiceRoamingSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` +} + +func (x *VoiceRoamingSetting) Reset() { + *x = VoiceRoamingSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VoiceRoamingSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VoiceRoamingSetting) ProtoMessage() {} + +func (x *VoiceRoamingSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VoiceRoamingSetting.ProtoReflect.Descriptor instead. +func (*VoiceRoamingSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{37} +} + +func (x *VoiceRoamingSetting) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +type PersonalHotspotSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` +} + +func (x *PersonalHotspotSetting) Reset() { + *x = PersonalHotspotSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PersonalHotspotSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PersonalHotspotSetting) ProtoMessage() {} + +func (x *PersonalHotspotSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PersonalHotspotSetting.ProtoReflect.Descriptor instead. +func (*PersonalHotspotSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{38} +} + +func (x *PersonalHotspotSetting) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +type WallpaperSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` + Where int64 `protobuf:"varint,2,opt,name=where,proto3" json:"where,omitempty"` +} + +func (x *WallpaperSetting) Reset() { + *x = WallpaperSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WallpaperSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WallpaperSetting) ProtoMessage() {} + +func (x *WallpaperSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use WallpaperSetting.ProtoReflect.Descriptor instead. +func (*WallpaperSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{39} +} + +func (x *WallpaperSetting) GetImage() []byte { + if x != nil { + return x.Image + } + return nil +} + +func (x *WallpaperSetting) GetWhere() int64 { + if x != nil { + return x.Where + } + return 0 +} + +type DataRoamingSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` +} + +func (x *DataRoamingSetting) Reset() { + *x = DataRoamingSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DataRoamingSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DataRoamingSetting) ProtoMessage() {} + +func (x *DataRoamingSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[40] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DataRoamingSetting.ProtoReflect.Descriptor instead. +func (*DataRoamingSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{40} +} + +func (x *DataRoamingSetting) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +type BluetoothSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` +} + +func (x *BluetoothSetting) Reset() { + *x = BluetoothSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BluetoothSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BluetoothSetting) ProtoMessage() {} + +func (x *BluetoothSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[41] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BluetoothSetting.ProtoReflect.Descriptor instead. +func (*BluetoothSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{41} +} + +func (x *BluetoothSetting) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +type ApplicationAttributesSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + ApplicationAttributes *ApplicationAttributes `protobuf:"bytes,2,opt,name=application_attributes,json=applicationAttributes,proto3" json:"application_attributes,omitempty"` +} + +func (x *ApplicationAttributesSetting) Reset() { + *x = ApplicationAttributesSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplicationAttributesSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplicationAttributesSetting) ProtoMessage() {} + +func (x *ApplicationAttributesSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[42] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplicationAttributesSetting.ProtoReflect.Descriptor instead. +func (*ApplicationAttributesSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{42} +} + +func (x *ApplicationAttributesSetting) GetIdentifier() string { + if x != nil { + return x.Identifier + } + return "" +} + +func (x *ApplicationAttributesSetting) GetApplicationAttributes() *ApplicationAttributes { + if x != nil { + return x.ApplicationAttributes + } + return nil +} + +type ApplicationConfigurationSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` + ConfigurationDictionaryData []byte `protobuf:"bytes,2,opt,name=configuration_dictionary_data,json=configurationDictionaryData,proto3" json:"configuration_dictionary_data,omitempty"` // A serialized plist of the dictionary. +} + +func (x *ApplicationConfigurationSetting) Reset() { + *x = ApplicationConfigurationSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplicationConfigurationSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplicationConfigurationSetting) ProtoMessage() {} + +func (x *ApplicationConfigurationSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[43] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplicationConfigurationSetting.ProtoReflect.Descriptor instead. +func (*ApplicationConfigurationSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{43} +} + +func (x *ApplicationConfigurationSetting) GetIdentifier() string { + if x != nil { + return x.Identifier + } + return "" +} + +func (x *ApplicationConfigurationSetting) GetConfigurationDictionaryData() []byte { + if x != nil { + return x.ConfigurationDictionaryData + } + return nil +} + +type ApplicationAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + VpnUuid string `protobuf:"bytes,1,opt,name=vpn_uuid,json=vpnUuid,proto3" json:"vpn_uuid,omitempty"` +} + +func (x *ApplicationAttributes) Reset() { + *x = ApplicationAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ApplicationAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApplicationAttributes) ProtoMessage() {} + +func (x *ApplicationAttributes) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[44] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApplicationAttributes.ProtoReflect.Descriptor instead. +func (*ApplicationAttributes) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{44} +} + +func (x *ApplicationAttributes) GetVpnUuid() string { + if x != nil { + return x.VpnUuid + } + return "" +} + +type DeviceNameSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DeviceName string `protobuf:"bytes,1,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` +} + +func (x *DeviceNameSetting) Reset() { + *x = DeviceNameSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeviceNameSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeviceNameSetting) ProtoMessage() {} + +func (x *DeviceNameSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[45] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeviceNameSetting.ProtoReflect.Descriptor instead. +func (*DeviceNameSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{45} +} + +func (x *DeviceNameSetting) GetDeviceName() string { + if x != nil { + return x.DeviceName + } + return "" +} + +type TimeZoneSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TimeZone string `protobuf:"bytes,1,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` +} + +func (x *TimeZoneSetting) Reset() { + *x = TimeZoneSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TimeZoneSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimeZoneSetting) ProtoMessage() {} + +func (x *TimeZoneSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[46] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TimeZoneSetting.ProtoReflect.Descriptor instead. +func (*TimeZoneSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{46} +} + +func (x *TimeZoneSetting) GetTimeZone() string { + if x != nil { + return x.TimeZone + } + return "" +} + +type HostnameSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` +} + +func (x *HostnameSetting) Reset() { + *x = HostnameSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *HostnameSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HostnameSetting) ProtoMessage() {} + +func (x *HostnameSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[47] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HostnameSetting.ProtoReflect.Descriptor instead. +func (*HostnameSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{47} +} + +func (x *HostnameSetting) GetHostname() string { + if x != nil { + return x.Hostname + } + return "" +} + +type MDMOptionsSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MdmOptions *MDMOptions `protobuf:"bytes,1,opt,name=mdm_options,json=mdmOptions,proto3" json:"mdm_options,omitempty"` +} + +func (x *MDMOptionsSetting) Reset() { + *x = MDMOptionsSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MDMOptionsSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MDMOptionsSetting) ProtoMessage() {} + +func (x *MDMOptionsSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[48] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MDMOptionsSetting.ProtoReflect.Descriptor instead. +func (*MDMOptionsSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{48} +} + +func (x *MDMOptionsSetting) GetMdmOptions() *MDMOptions { + if x != nil { + return x.MdmOptions + } + return nil +} + +type MDMOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ActivationLockAllowedWhileSupervised bool `protobuf:"varint,1,opt,name=activation_lock_allowed_while_supervised,json=activationLockAllowedWhileSupervised,proto3" json:"activation_lock_allowed_while_supervised,omitempty"` + BootstrapTokenAllowed bool `protobuf:"varint,2,opt,name=bootstrap_token_allowed,json=bootstrapTokenAllowed,proto3" json:"bootstrap_token_allowed,omitempty"` + PromptUserToAllowBootstrapTokenForAuthentication bool `protobuf:"varint,3,opt,name=prompt_user_to_allow_bootstrap_token_for_authentication,json=promptUserToAllowBootstrapTokenForAuthentication,proto3" json:"prompt_user_to_allow_bootstrap_token_for_authentication,omitempty"` +} + +func (x *MDMOptions) Reset() { + *x = MDMOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MDMOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MDMOptions) ProtoMessage() {} + +func (x *MDMOptions) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[49] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MDMOptions.ProtoReflect.Descriptor instead. +func (*MDMOptions) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{49} +} + +func (x *MDMOptions) GetActivationLockAllowedWhileSupervised() bool { + if x != nil { + return x.ActivationLockAllowedWhileSupervised + } + return false +} + +func (x *MDMOptions) GetBootstrapTokenAllowed() bool { + if x != nil { + return x.BootstrapTokenAllowed + } + return false +} + +func (x *MDMOptions) GetPromptUserToAllowBootstrapTokenForAuthentication() bool { + if x != nil { + return x.PromptUserToAllowBootstrapTokenForAuthentication + } + return false +} + +type PasscodeLockGracePeriodSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PasscodeLockGracePeriod int64 `protobuf:"varint,1,opt,name=passcode_lock_grace_period,json=passcodeLockGracePeriod,proto3" json:"passcode_lock_grace_period,omitempty"` +} + +func (x *PasscodeLockGracePeriodSetting) Reset() { + *x = PasscodeLockGracePeriodSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PasscodeLockGracePeriodSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PasscodeLockGracePeriodSetting) ProtoMessage() {} + +func (x *PasscodeLockGracePeriodSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[50] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PasscodeLockGracePeriodSetting.ProtoReflect.Descriptor instead. +func (*PasscodeLockGracePeriodSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{50} +} + +func (x *PasscodeLockGracePeriodSetting) GetPasscodeLockGracePeriod() int64 { + if x != nil { + return x.PasscodeLockGracePeriod + } + return 0 +} + +type MaximumResidentUsersSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MaximumResidentUsers int64 `protobuf:"varint,1,opt,name=maximum_resident_users,json=maximumResidentUsers,proto3" json:"maximum_resident_users,omitempty"` +} + +func (x *MaximumResidentUsersSetting) Reset() { + *x = MaximumResidentUsersSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MaximumResidentUsersSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MaximumResidentUsersSetting) ProtoMessage() {} + +func (x *MaximumResidentUsersSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[51] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MaximumResidentUsersSetting.ProtoReflect.Descriptor instead. +func (*MaximumResidentUsersSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{51} +} + +func (x *MaximumResidentUsersSetting) GetMaximumResidentUsers() int64 { + if x != nil { + return x.MaximumResidentUsers + } + return 0 +} + +type DiagnosticSubmissionSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` +} + +func (x *DiagnosticSubmissionSetting) Reset() { + *x = DiagnosticSubmissionSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DiagnosticSubmissionSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DiagnosticSubmissionSetting) ProtoMessage() {} + +func (x *DiagnosticSubmissionSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[52] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DiagnosticSubmissionSetting.ProtoReflect.Descriptor instead. +func (*DiagnosticSubmissionSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{52} +} + +func (x *DiagnosticSubmissionSetting) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +type AppAnalyticsSetting struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` +} + +func (x *AppAnalyticsSetting) Reset() { + *x = AppAnalyticsSetting{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AppAnalyticsSetting) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AppAnalyticsSetting) ProtoMessage() {} + +func (x *AppAnalyticsSetting) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[53] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AppAnalyticsSetting.ProtoReflect.Descriptor instead. +func (*AppAnalyticsSetting) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{53} +} + +func (x *AppAnalyticsSetting) GetEnabled() bool { + if x != nil { + return x.Enabled + } + return false +} + +type ManagedApplicationConfiguration struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifiers []string `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"` +} + +func (x *ManagedApplicationConfiguration) Reset() { + *x = ManagedApplicationConfiguration{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ManagedApplicationConfiguration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ManagedApplicationConfiguration) ProtoMessage() {} + +func (x *ManagedApplicationConfiguration) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[54] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ManagedApplicationConfiguration.ProtoReflect.Descriptor instead. +func (*ManagedApplicationConfiguration) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{54} +} + +func (x *ManagedApplicationConfiguration) GetIdentifiers() []string { + if x != nil { + return x.Identifiers + } + return nil +} + +type ManagedApplicationAttributes struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifiers []string `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"` +} + +func (x *ManagedApplicationAttributes) Reset() { + *x = ManagedApplicationAttributes{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ManagedApplicationAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ManagedApplicationAttributes) ProtoMessage() {} + +func (x *ManagedApplicationAttributes) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[55] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ManagedApplicationAttributes.ProtoReflect.Descriptor instead. +func (*ManagedApplicationAttributes) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{55} +} + +func (x *ManagedApplicationAttributes) GetIdentifiers() []string { + if x != nil { + return x.Identifiers + } + return nil +} + +type ManagedApplicationFeedback struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Identifiers []string `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"` + DeleteFeedback bool `protobuf:"varint,2,opt,name=delete_feedback,json=deleteFeedback,proto3" json:"delete_feedback,omitempty"` +} + +func (x *ManagedApplicationFeedback) Reset() { + *x = ManagedApplicationFeedback{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ManagedApplicationFeedback) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ManagedApplicationFeedback) ProtoMessage() {} + +func (x *ManagedApplicationFeedback) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[56] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ManagedApplicationFeedback.ProtoReflect.Descriptor instead. +func (*ManagedApplicationFeedback) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{56} +} + +func (x *ManagedApplicationFeedback) GetIdentifiers() []string { + if x != nil { + return x.Identifiers + } + return nil +} + +func (x *ManagedApplicationFeedback) GetDeleteFeedback() bool { + if x != nil { + return x.DeleteFeedback + } + return false +} + +type SetFirmwarePassword struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CurrentPassword string `protobuf:"bytes,1,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"` + NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` + AllowOroms bool `protobuf:"varint,3,opt,name=allow_oroms,json=allowOroms,proto3" json:"allow_oroms,omitempty"` + RequestRequiresNetworkTether bool `protobuf:"varint,4,opt,name=request_requires_network_tether,json=requestRequiresNetworkTether,proto3" json:"request_requires_network_tether,omitempty"` +} + +func (x *SetFirmwarePassword) Reset() { + *x = SetFirmwarePassword{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetFirmwarePassword) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetFirmwarePassword) ProtoMessage() {} + +func (x *SetFirmwarePassword) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[57] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetFirmwarePassword.ProtoReflect.Descriptor instead. +func (*SetFirmwarePassword) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{57} +} + +func (x *SetFirmwarePassword) GetCurrentPassword() string { + if x != nil { + return x.CurrentPassword + } + return "" +} + +func (x *SetFirmwarePassword) GetNewPassword() string { + if x != nil { + return x.NewPassword + } + return "" +} + +func (x *SetFirmwarePassword) GetAllowOroms() bool { + if x != nil { + return x.AllowOroms + } + return false +} + +func (x *SetFirmwarePassword) GetRequestRequiresNetworkTether() bool { + if x != nil { + return x.RequestRequiresNetworkTether + } + return false +} + +type VerifyFirmwarePassword struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *VerifyFirmwarePassword) Reset() { + *x = VerifyFirmwarePassword{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyFirmwarePassword) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyFirmwarePassword) ProtoMessage() {} + +func (x *VerifyFirmwarePassword) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[58] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyFirmwarePassword.ProtoReflect.Descriptor instead. +func (*VerifyFirmwarePassword) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{58} +} + +func (x *VerifyFirmwarePassword) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type SetRecoveryLock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CurrentPassword string `protobuf:"bytes,1,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"` + NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` + AllowOroms bool `protobuf:"varint,3,opt,name=allow_oroms,json=allowOroms,proto3" json:"allow_oroms,omitempty"` + RequestRequiresNetworkTether bool `protobuf:"varint,4,opt,name=request_requires_network_tether,json=requestRequiresNetworkTether,proto3" json:"request_requires_network_tether,omitempty"` +} + +func (x *SetRecoveryLock) Reset() { + *x = SetRecoveryLock{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetRecoveryLock) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetRecoveryLock) ProtoMessage() {} + +func (x *SetRecoveryLock) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[59] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetRecoveryLock.ProtoReflect.Descriptor instead. +func (*SetRecoveryLock) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{59} +} + +func (x *SetRecoveryLock) GetCurrentPassword() string { + if x != nil { + return x.CurrentPassword + } + return "" +} + +func (x *SetRecoveryLock) GetNewPassword() string { + if x != nil { + return x.NewPassword + } + return "" +} + +func (x *SetRecoveryLock) GetAllowOroms() bool { + if x != nil { + return x.AllowOroms + } + return false +} + +func (x *SetRecoveryLock) GetRequestRequiresNetworkTether() bool { + if x != nil { + return x.RequestRequiresNetworkTether + } + return false +} + +type VerifyRecoveryLock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` +} + +func (x *VerifyRecoveryLock) Reset() { + *x = VerifyRecoveryLock{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *VerifyRecoveryLock) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*VerifyRecoveryLock) ProtoMessage() {} + +func (x *VerifyRecoveryLock) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[60] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use VerifyRecoveryLock.ProtoReflect.Descriptor instead. +func (*VerifyRecoveryLock) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{60} +} + +func (x *VerifyRecoveryLock) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +type SetAutoAdminPassword struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Guid string `protobuf:"bytes,1,opt,name=guid,proto3" json:"guid,omitempty"` + PasswordHash []byte `protobuf:"bytes,2,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"` +} + +func (x *SetAutoAdminPassword) Reset() { + *x = SetAutoAdminPassword{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetAutoAdminPassword) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetAutoAdminPassword) ProtoMessage() {} + +func (x *SetAutoAdminPassword) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[61] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetAutoAdminPassword.ProtoReflect.Descriptor instead. +func (*SetAutoAdminPassword) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{61} +} + +func (x *SetAutoAdminPassword) GetGuid() string { + if x != nil { + return x.Guid + } + return "" +} + +func (x *SetAutoAdminPassword) GetPasswordHash() []byte { + if x != nil { + return x.PasswordHash + } + return nil +} + +type ScheduleOSUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Updates []*Update `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` +} + +func (x *ScheduleOSUpdate) Reset() { + *x = ScheduleOSUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ScheduleOSUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleOSUpdate) ProtoMessage() {} + +func (x *ScheduleOSUpdate) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[62] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ScheduleOSUpdate.ProtoReflect.Descriptor instead. +func (*ScheduleOSUpdate) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{62} +} + +func (x *ScheduleOSUpdate) GetUpdates() []*Update { + if x != nil { + return x.Updates + } + return nil +} + +type Update struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProductKey string `protobuf:"bytes,1,opt,name=product_key,json=productKey,proto3" json:"product_key,omitempty"` + ProductVersion string `protobuf:"bytes,2,opt,name=product_version,json=productVersion,proto3" json:"product_version,omitempty"` + InstallAction string `protobuf:"bytes,3,opt,name=install_action,json=installAction,proto3" json:"install_action,omitempty"` +} + +func (x *Update) Reset() { + *x = Update{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Update) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Update) ProtoMessage() {} + +func (x *Update) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[63] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Update.ProtoReflect.Descriptor instead. +func (*Update) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{63} +} + +func (x *Update) GetProductKey() string { + if x != nil { + return x.ProductKey + } + return "" +} + +func (x *Update) GetProductVersion() string { + if x != nil { + return x.ProductVersion + } + return "" +} + +func (x *Update) GetInstallAction() string { + if x != nil { + return x.InstallAction + } + return "" +} + +type ScheduleOSUpdateScan struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Force bool `protobuf:"varint,1,opt,name=force,proto3" json:"force,omitempty"` +} + +func (x *ScheduleOSUpdateScan) Reset() { + *x = ScheduleOSUpdateScan{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ScheduleOSUpdateScan) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ScheduleOSUpdateScan) ProtoMessage() {} + +func (x *ScheduleOSUpdateScan) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[64] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ScheduleOSUpdateScan.ProtoReflect.Descriptor instead. +func (*ScheduleOSUpdateScan) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{64} +} + +func (x *ScheduleOSUpdateScan) GetForce() bool { + if x != nil { + return x.Force + } + return false +} + +type ActiveNSExtensions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FilterExtensionPoints []string `protobuf:"bytes,1,rep,name=filter_extension_points,json=filterExtensionPoints,proto3" json:"filter_extension_points,omitempty"` +} + +func (x *ActiveNSExtensions) Reset() { + *x = ActiveNSExtensions{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActiveNSExtensions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActiveNSExtensions) ProtoMessage() {} + +func (x *ActiveNSExtensions) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[65] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ActiveNSExtensions.ProtoReflect.Descriptor instead. +func (*ActiveNSExtensions) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{65} +} + +func (x *ActiveNSExtensions) GetFilterExtensionPoints() []string { + if x != nil { + return x.FilterExtensionPoints + } + return nil +} + +type RotateFileVaultKey struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + KeyType string `protobuf:"bytes,1,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"` + FilevaultUnlock *FileVaultUnlock `protobuf:"bytes,2,opt,name=filevault_unlock,json=filevaultUnlock,proto3" json:"filevault_unlock,omitempty"` + NewCertificate []byte `protobuf:"bytes,3,opt,name=new_certificate,json=newCertificate,proto3" json:"new_certificate,omitempty"` + ReplyEncryptionCertificate []byte `protobuf:"bytes,4,opt,name=reply_encryption_certificate,json=replyEncryptionCertificate,proto3" json:"reply_encryption_certificate,omitempty"` +} + +func (x *RotateFileVaultKey) Reset() { + *x = RotateFileVaultKey{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RotateFileVaultKey) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RotateFileVaultKey) ProtoMessage() {} + +func (x *RotateFileVaultKey) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[66] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RotateFileVaultKey.ProtoReflect.Descriptor instead. +func (*RotateFileVaultKey) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{66} +} + +func (x *RotateFileVaultKey) GetKeyType() string { + if x != nil { + return x.KeyType + } + return "" +} + +func (x *RotateFileVaultKey) GetFilevaultUnlock() *FileVaultUnlock { + if x != nil { + return x.FilevaultUnlock + } + return nil +} + +func (x *RotateFileVaultKey) GetNewCertificate() []byte { + if x != nil { + return x.NewCertificate + } + return nil +} + +func (x *RotateFileVaultKey) GetReplyEncryptionCertificate() []byte { + if x != nil { + return x.ReplyEncryptionCertificate + } + return nil +} + +type FileVaultUnlock struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` + PrivateKeyExport []byte `protobuf:"bytes,2,opt,name=private_key_export,json=privateKeyExport,proto3" json:"private_key_export,omitempty"` + PrivateKeyExportPassword string `protobuf:"bytes,3,opt,name=private_key_export_password,json=privateKeyExportPassword,proto3" json:"private_key_export_password,omitempty"` +} + +func (x *FileVaultUnlock) Reset() { + *x = FileVaultUnlock{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FileVaultUnlock) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileVaultUnlock) ProtoMessage() {} + +func (x *FileVaultUnlock) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[67] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FileVaultUnlock.ProtoReflect.Descriptor instead. +func (*FileVaultUnlock) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{67} +} + +func (x *FileVaultUnlock) GetPassword() string { + if x != nil { + return x.Password + } + return "" +} + +func (x *FileVaultUnlock) GetPrivateKeyExport() []byte { + if x != nil { + return x.PrivateKeyExport + } + return nil +} + +func (x *FileVaultUnlock) GetPrivateKeyExportPassword() string { + if x != nil { + return x.PrivateKeyExportPassword + } + return "" +} + +type SetBootstrapToken struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BootstrapToken string `protobuf:"bytes,1,opt,name=bootstrap_token,json=bootstrapToken,proto3" json:"bootstrap_token,omitempty"` +} + +func (x *SetBootstrapToken) Reset() { + *x = SetBootstrapToken{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetBootstrapToken) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetBootstrapToken) ProtoMessage() {} + +func (x *SetBootstrapToken) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[68] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetBootstrapToken.ProtoReflect.Descriptor instead. +func (*SetBootstrapToken) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{68} +} + +func (x *SetBootstrapToken) GetBootstrapToken() string { + if x != nil { + return x.BootstrapToken + } + return "" +} + +type ResultPayload struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Udid string `protobuf:"bytes,1,opt,name=udid,proto3" json:"udid,omitempty"` + CommandUuid string `protobuf:"bytes,2,opt,name=command_uuid,json=commandUuid,proto3" json:"command_uuid,omitempty"` + ErrorChain []*ErrorChain `protobuf:"bytes,3,rep,name=error_chain,json=errorChain,proto3" json:"error_chain,omitempty"` +} + +func (x *ResultPayload) Reset() { + *x = ResultPayload{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ResultPayload) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResultPayload) ProtoMessage() {} + +func (x *ResultPayload) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[69] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ResultPayload.ProtoReflect.Descriptor instead. +func (*ResultPayload) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{69} +} + +func (x *ResultPayload) GetUdid() string { + if x != nil { + return x.Udid + } + return "" +} + +func (x *ResultPayload) GetCommandUuid() string { + if x != nil { + return x.CommandUuid + } + return "" +} + +func (x *ResultPayload) GetErrorChain() []*ErrorChain { + if x != nil { + return x.ErrorChain + } + return nil +} + +type ErrorChain struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LocalizedDescription string `protobuf:"bytes,1,opt,name=localized_description,json=localizedDescription,proto3" json:"localized_description,omitempty"` + UsEnglishDescription string `protobuf:"bytes,2,opt,name=us_english_description,json=usEnglishDescription,proto3" json:"us_english_description,omitempty"` + // The ErrorDomain and ErrorCode keys contain internal codes used by Apple + // that may be useful for diagnostics. Your host should not rely on these + // values, as they may change between software releases. + ErrorDomain string `protobuf:"bytes,3,opt,name=error_domain,json=errorDomain,proto3" json:"error_domain,omitempty"` + ErrorCode int32 `protobuf:"varint,4,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` +} + +func (x *ErrorChain) Reset() { + *x = ErrorChain{} + if protoimpl.UnsafeEnabled { + mi := &file_mdm_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ErrorChain) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ErrorChain) ProtoMessage() {} + +func (x *ErrorChain) ProtoReflect() protoreflect.Message { + mi := &file_mdm_proto_msgTypes[70] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ErrorChain.ProtoReflect.Descriptor instead. +func (*ErrorChain) Descriptor() ([]byte, []int) { + return file_mdm_proto_rawDescGZIP(), []int{70} +} + +func (x *ErrorChain) GetLocalizedDescription() string { + if x != nil { + return x.LocalizedDescription + } + return "" +} + +func (x *ErrorChain) GetUsEnglishDescription() string { + if x != nil { + return x.UsEnglishDescription + } + return "" +} + +func (x *ErrorChain) GetErrorDomain() string { + if x != nil { + return x.ErrorDomain + } + return "" +} + +func (x *ErrorChain) GetErrorCode() int32 { + if x != nil { + return x.ErrorCode + } + return 0 +} + +var File_mdm_proto protoreflect.FileDescriptor + +var file_mdm_proto_rawDesc = []byte{ + 0x0a, 0x09, 0x6d, 0x64, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x6d, 0x64, 0x6d, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x60, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x55, 0x75, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x07, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x64, + 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x07, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22, 0xc7, 0x18, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, + 0x61, 0x6e, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x43, 0x0a, 0x0f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x72, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0d, + 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x68, 0x0a, + 0x1c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, + 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x1a, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, + 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x65, 0x0a, 0x1b, 0x72, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, + 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6d, + 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, + 0x65, 0x48, 0x00, 0x52, 0x19, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x62, + 0x0a, 0x1a, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x06, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x48, 0x00, 0x52, 0x18, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, + 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x12, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x6e, 0x66, + 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x11, 0x64, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x37, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x6f, 0x63, 0x6b, 0x48, 0x00, 0x52, 0x0a, 0x64, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x6f, 0x63, 0x6b, 0x12, 0x40, 0x0a, 0x0e, 0x63, 0x6c, 0x65, + 0x61, 0x72, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6c, 0x65, + 0x61, 0x72, 0x50, 0x61, 0x73, 0x73, 0x63, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0d, 0x63, 0x6c, + 0x65, 0x61, 0x72, 0x50, 0x61, 0x73, 0x73, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x3a, 0x0a, 0x0c, 0x65, + 0x72, 0x61, 0x73, 0x65, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x72, 0x61, + 0x73, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x65, 0x72, 0x61, 0x73, + 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x49, 0x0a, 0x11, 0x72, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x5f, 0x6d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x00, + 0x52, 0x10, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x69, + 0x6e, 0x67, 0x12, 0x3c, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x48, 0x00, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x12, 0x4d, 0x0a, 0x13, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, + 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11, 0x75, 0x6e, + 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x37, 0x0a, 0x0b, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x0e, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12, 0x44, 0x0a, 0x10, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x6c, 0x6f, 0x73, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x0f, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x6f, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x0e, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x6f, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x4f, + 0x0a, 0x13, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x64, + 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x12, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x55, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, + 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, + 0x52, 0x14, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x53, 0x0a, 0x15, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, + 0x72, 0x65, 0x64, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, + 0x12, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x64, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x64, 0x65, 0x48, 0x00, 0x52, 0x13, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x64, + 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x5c, 0x0a, 0x18, 0x6d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, + 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x48, + 0x00, 0x52, 0x16, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x12, 0x72, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x11, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x70, 0x70, 0x6c, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x11, 0x69, 0x6e, 0x76, 0x69, 0x74, + 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x18, 0x15, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, + 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x48, 0x00, 0x52, + 0x0f, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, + 0x12, 0x55, 0x0a, 0x15, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, + 0x00, 0x52, 0x14, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x61, 0x41, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x5f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x48, 0x00, 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, + 0x6c, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x12, 0x3a, 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x5f, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, + 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x65, + 0x64, 0x69, 0x61, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x4d, 0x65, 0x64, + 0x69, 0x61, 0x12, 0x30, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x19, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x48, 0x00, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x73, 0x12, 0x77, 0x0a, 0x21, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, + 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x29, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x1f, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x6e, 0x0a, + 0x1e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, + 0x1b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x48, 0x00, 0x52, + 0x1c, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x68, 0x0a, + 0x1c, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x1c, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, 0x48, 0x00, 0x52, 0x1a, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, + 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x53, 0x0a, 0x15, 0x73, 0x65, 0x74, 0x5f, 0x66, + 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2e, 0x53, 0x65, 0x74, 0x46, 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x50, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, 0x13, 0x73, 0x65, 0x74, 0x46, 0x69, 0x72, 0x6d, + 0x77, 0x61, 0x72, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x5c, 0x0a, 0x18, + 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x66, 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x5f, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, + 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, + 0x46, 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x48, 0x00, 0x52, 0x16, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x46, 0x69, 0x72, 0x6d, 0x77, 0x61, + 0x72, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x57, 0x0a, 0x17, 0x73, 0x65, + 0x74, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x64, + 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, 0x14, 0x73, + 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x12, 0x4a, 0x0a, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x6f, 0x73, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x20, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x4f, 0x53, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x10, 0x73, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x4f, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, + 0x57, 0x0a, 0x17, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6f, 0x73, 0x5f, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x63, 0x61, 0x6e, 0x18, 0x21, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x65, 0x4f, 0x53, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x61, 0x6e, + 0x48, 0x00, 0x52, 0x14, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x4f, 0x73, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x53, 0x63, 0x61, 0x6e, 0x12, 0x50, 0x0a, 0x14, 0x61, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x5f, 0x6e, 0x73, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x22, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x53, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x73, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x50, 0x0a, 0x14, 0x72, 0x6f, + 0x74, 0x61, 0x74, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x6b, + 0x65, 0x79, 0x18, 0x23, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x61, + 0x75, 0x6c, 0x74, 0x4b, 0x65, 0x79, 0x48, 0x00, 0x52, 0x12, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x65, + 0x46, 0x69, 0x6c, 0x65, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x6e, 0x0a, 0x1e, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x5f, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, + 0x73, 0x65, 0x5f, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x24, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, + 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x1c, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, + 0x65, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4d, 0x0a, 0x13, + 0x73, 0x65, 0x74, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x25, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6d, 0x64, 0x6d, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, + 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x11, 0x73, 0x65, 0x74, 0x42, 0x6f, 0x6f, + 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x47, 0x0a, 0x11, 0x73, + 0x65, 0x74, 0x5f, 0x72, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, + 0x18, 0x26, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2e, 0x53, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x63, + 0x6b, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x65, 0x74, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, + 0x4c, 0x6f, 0x63, 0x6b, 0x12, 0x50, 0x0a, 0x14, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x72, + 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x27, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x65, + 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x6b, + 0x48, 0x00, 0x52, 0x12, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, + 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x42, 0x09, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x2a, 0x0a, 0x0e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x66, + 0x69, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x2f, 0x0a, + 0x0d, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1e, + 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x22, 0x4f, + 0x0a, 0x1a, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x14, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x72, 0x6f, + 0x66, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, + 0x2f, 0x0a, 0x19, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, + 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, + 0x22, 0x68, 0x0a, 0x18, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x41, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x0b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x12, 0x2a, + 0x0a, 0x11, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x5f, 0x6f, + 0x6e, 0x6c, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x6d, 0x61, 0x6e, 0x61, 0x67, + 0x65, 0x64, 0x41, 0x70, 0x70, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x2d, 0x0a, 0x11, 0x44, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x18, 0x0a, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x07, 0x71, 0x75, 0x65, 0x72, 0x69, 0x65, 0x73, 0x22, 0x32, 0x0a, 0x0d, 0x43, 0x6c, 0x65, + 0x61, 0x72, 0x50, 0x61, 0x73, 0x73, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x6e, + 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x0b, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x5b, 0x0a, + 0x0a, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x6f, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x70, + 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x70, 0x69, 0x6e, 0x12, 0x18, 0x0a, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, + 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, + 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x87, 0x01, 0x0a, 0x0b, 0x45, + 0x72, 0x61, 0x73, 0x65, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, + 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x70, 0x69, 0x6e, 0x12, 0x2c, 0x0a, 0x12, + 0x70, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x6c, + 0x61, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x70, 0x72, 0x65, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x44, 0x61, 0x74, 0x61, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x69, + 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x69, 0x74, 0x79, + 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x69, + 0x73, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x50, 0x72, 0x6f, 0x78, 0x69, 0x6d, 0x69, 0x74, 0x79, 0x53, + 0x65, 0x74, 0x75, 0x70, 0x22, 0xaa, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x63, 0x61, 0x6e, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x63, 0x61, + 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, + 0x64, 0x22, 0x41, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x31, 0x0a, 0x14, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x73, + 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x13, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2f, 0x0a, 0x11, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x55, 0x73, + 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, + 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4f, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x25, 0x0a, 0x0e, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x69, 0x0a, 0x0e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x4c, 0x6f, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x6f, 0x6f, 0x74, 0x6e, 0x6f, 0x74, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x6f, 0x6f, 0x74, 0x6e, 0x6f, 0x74, + 0x65, 0x22, 0xba, 0x03, 0x0a, 0x12, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x0f, 0x69, 0x74, 0x75, 0x6e, + 0x65, 0x73, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0d, 0x69, 0x74, 0x75, 0x6e, 0x65, 0x73, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x64, + 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x12, 0x3d, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x23, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, + 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x55, + 0x72, 0x6c, 0x12, 0x29, 0x0a, 0x10, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x4f, 0x0a, + 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, + 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x4d, + 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x44, + 0x0a, 0x19, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x70, + 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x70, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73, 0x65, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x22, 0x21, 0x0a, 0x1f, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, + 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x1e, 0x0a, 0x1c, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0xf9, 0x01, 0x0a, 0x1c, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6c, 0x6c, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x41, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x08, 0x6d, 0x61, 0x6e, 0x69, + 0x66, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x64, 0x6d, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x52, 0x08, + 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x61, 0x6e, 0x69, + 0x66, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x55, 0x72, 0x6c, 0x12, 0x3b, 0x0a, 0x1a, 0x6d, + 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x5f, 0x70, 0x69, 0x6e, 0x6e, + 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0c, 0x52, + 0x17, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x55, 0x72, 0x6c, 0x50, 0x69, 0x6e, 0x6e, + 0x69, 0x6e, 0x67, 0x43, 0x65, 0x72, 0x74, 0x73, 0x12, 0x49, 0x0a, 0x21, 0x70, 0x69, 0x6e, 0x6e, + 0x69, 0x6e, 0x67, 0x5f, 0x72, 0x65, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, + 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x1e, 0x70, 0x69, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x76, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x69, + 0x72, 0x65, 0x64, 0x22, 0x49, 0x0a, 0x08, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x12, + 0x3d, 0x0a, 0x0e, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x74, 0x65, 0x6d, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2e, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, + 0x0d, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x67, + 0x0a, 0x0c, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x27, + 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, + 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, + 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x64, 0x6d, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x97, 0x01, 0x0a, 0x05, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6d, 0x64, 0x35, 0x5f, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x64, 0x35, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x64, 0x35, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, + 0x6d, 0x64, 0x35, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, + 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x73, 0x68, 0x61, + 0x32, 0x35, 0x36, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x68, 0x61, 0x32, 0x35, + 0x36, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x68, 0x61, 0x32, 0x35, 0x36, + 0x73, 0x22, 0xf4, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2b, + 0x0a, 0x11, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x62, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x12, + 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, + 0x6e, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x14, + 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, + 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x69, 0x6e, 0x5f, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x73, 0x69, 0x7a, + 0x65, 0x49, 0x6e, 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x60, 0x0a, 0x0a, 0x42, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2b, 0x0a, 0x11, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x10, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, + 0x69, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x5f, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x62, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x5e, 0x0a, 0x13, 0x41, 0x70, + 0x70, 0x6c, 0x79, 0x52, 0x65, 0x64, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, + 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x64, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x64, 0x65, + 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x3a, 0x0a, 0x16, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4c, 0x69, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x22, 0x33, 0x0a, 0x11, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x22, 0x57, 0x0a, 0x0f, 0x49, + 0x6e, 0x76, 0x69, 0x74, 0x65, 0x54, 0x6f, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x1d, + 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x49, 0x64, 0x12, 0x25, 0x0a, + 0x0e, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x72, 0x6c, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x76, 0x69, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x55, 0x72, 0x6c, 0x22, 0x38, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, + 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x20, 0x0a, 0x0b, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x0b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x22, 0x9f, + 0x04, 0x0a, 0x14, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4c, 0x0a, 0x23, 0x73, 0x6b, 0x69, 0x70, 0x5f, + 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70, 0x5f, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x1f, 0x73, 0x6b, 0x69, 0x70, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, + 0x79, 0x53, 0x65, 0x74, 0x75, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x56, 0x0a, 0x29, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x69, + 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x5f, 0x61, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x5f, 0x75, 0x73, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x23, 0x73, 0x65, 0x74, 0x50, 0x72, 0x69, + 0x6d, 0x61, 0x72, 0x79, 0x53, 0x65, 0x74, 0x75, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x41, 0x73, 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x55, 0x73, 0x65, 0x72, 0x12, 0x53, 0x0a, + 0x27, 0x64, 0x6f, 0x6e, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x70, 0x6f, 0x70, 0x75, 0x6c, + 0x61, 0x74, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x22, + 0x64, 0x6f, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x50, 0x6f, 0x70, 0x75, 0x6c, 0x61, 0x74, 0x65, + 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, + 0x66, 0x6f, 0x12, 0x39, 0x0a, 0x19, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x6c, 0x6f, 0x63, 0x6b, 0x50, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x39, 0x0a, + 0x19, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x16, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x19, 0x70, 0x72, 0x69, 0x6d, + 0x61, 0x72, 0x79, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x70, 0x72, 0x69, + 0x6d, 0x61, 0x72, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x5b, 0x0a, 0x19, 0x61, 0x75, 0x74, 0x6f, 0x5f, 0x73, 0x65, 0x74, 0x75, + 0x70, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x53, 0x65, 0x74, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x16, 0x61, 0x75, 0x74, 0x6f, 0x53, 0x65, + 0x74, 0x75, 0x70, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x22, 0x91, 0x01, 0x0a, 0x16, 0x41, 0x75, 0x74, 0x6f, 0x53, 0x65, 0x74, 0x75, 0x70, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x73, + 0x68, 0x6f, 0x72, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x75, + 0x6c, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, + 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x48, 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, + 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x68, 0x69, + 0x64, 0x64, 0x65, 0x6e, 0x22, 0x72, 0x0a, 0x0c, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x4d, + 0x65, 0x64, 0x69, 0x61, 0x12, 0x26, 0x0a, 0x0f, 0x69, 0x74, 0x75, 0x6e, 0x65, 0x73, 0x5f, 0x73, + 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x69, + 0x74, 0x75, 0x6e, 0x65, 0x73, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, + 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x55, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x64, + 0x69, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, + 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x22, 0x79, 0x0a, 0x0b, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x65, 0x64, 0x69, 0x61, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x65, 0x64, + 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x69, 0x74, 0x75, 0x6e, 0x65, 0x73, + 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0d, 0x69, 0x74, 0x75, 0x6e, 0x65, 0x73, 0x53, 0x74, 0x6f, 0x72, 0x65, 0x49, 0x64, 0x12, 0x23, + 0x0a, 0x0d, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x65, 0x72, 0x73, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x22, 0x39, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, + 0x2d, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xf9, + 0x08, 0x0a, 0x07, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x74, + 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x12, 0x3c, + 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, + 0x68, 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x6f, 0x73, 0x74, 0x6e, 0x61, + 0x6d, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x76, 0x6f, 0x69, 0x63, 0x65, 0x5f, 0x72, 0x6f, 0x61, + 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x64, 0x6d, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x52, 0x6f, 0x61, 0x6d, 0x69, + 0x6e, 0x67, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x76, 0x6f, 0x69, 0x63, 0x65, + 0x52, 0x6f, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x12, 0x4b, 0x0a, 0x10, 0x70, 0x65, 0x72, 0x73, 0x6f, + 0x6e, 0x61, 0x6c, 0x5f, 0x68, 0x6f, 0x74, 0x73, 0x70, 0x6f, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x20, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x65, 0x72, + 0x73, 0x6f, 0x6e, 0x61, 0x6c, 0x48, 0x6f, 0x74, 0x73, 0x70, 0x6f, 0x74, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x52, 0x0f, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x61, 0x6c, 0x48, 0x6f, 0x74, + 0x73, 0x70, 0x6f, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x77, 0x61, 0x6c, 0x6c, 0x70, 0x61, 0x70, 0x65, + 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2e, 0x57, 0x61, 0x6c, 0x6c, 0x70, 0x61, 0x70, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x52, 0x09, 0x77, 0x61, 0x6c, 0x6c, 0x70, 0x61, 0x70, 0x65, 0x72, 0x12, 0x3f, + 0x0a, 0x0c, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x72, 0x6f, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x44, 0x61, 0x74, 0x61, 0x52, 0x6f, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x74, 0x74, 0x69, + 0x6e, 0x67, 0x52, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x52, 0x6f, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x12, + 0x38, 0x0a, 0x09, 0x62, 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x42, 0x6c, + 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x09, + 0x62, 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x12, 0x5d, 0x0a, 0x16, 0x61, 0x70, 0x70, + 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, + 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6d, 0x64, 0x6d, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x52, 0x15, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x0b, 0x6d, 0x64, 0x6d, 0x5f, + 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x44, 0x4d, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x0a, 0x6d, 0x64, 0x6d, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x65, 0x0a, 0x1a, 0x70, 0x61, 0x73, 0x73, 0x63, 0x6f, + 0x64, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x67, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x70, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6d, 0x64, 0x6d, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x63, 0x6f, 0x64, 0x65, 0x4c, 0x6f, + 0x63, 0x6b, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x52, 0x17, 0x70, 0x61, 0x73, 0x73, 0x63, 0x6f, 0x64, 0x65, 0x4c, 0x6f, + 0x63, 0x6b, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x5b, 0x0a, + 0x16, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, 0x65, 0x73, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, + 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, + 0x52, 0x65, 0x73, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x53, 0x65, 0x74, + 0x74, 0x69, 0x6e, 0x67, 0x52, 0x14, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, 0x73, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x5a, 0x0a, 0x15, 0x64, 0x69, + 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6d, 0x64, 0x6d, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x53, + 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x52, 0x14, 0x64, 0x69, 0x61, 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x53, 0x75, 0x62, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x0d, 0x61, 0x70, 0x70, 0x5f, 0x61, 0x6e, + 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x41, 0x6e, 0x61, 0x6c, + 0x79, 0x74, 0x69, 0x63, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x0c, 0x61, 0x70, + 0x70, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, 0x63, 0x73, 0x12, 0x66, 0x0a, 0x19, 0x61, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, + 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x18, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, 0x18, + 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x5a, 0x6f, 0x6e, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, + 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x5a, 0x6f, 0x6e, 0x65, 0x22, 0x2f, 0x0a, 0x13, 0x56, 0x6f, + 0x69, 0x63, 0x65, 0x52, 0x6f, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x32, 0x0a, 0x16, 0x50, + 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x61, 0x6c, 0x48, 0x6f, 0x74, 0x73, 0x70, 0x6f, 0x74, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, + 0x3e, 0x0a, 0x10, 0x57, 0x61, 0x6c, 0x6c, 0x70, 0x61, 0x70, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x68, 0x65, + 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x77, 0x68, 0x65, 0x72, 0x65, 0x22, + 0x2e, 0x0a, 0x12, 0x44, 0x61, 0x74, 0x61, 0x52, 0x6f, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x53, 0x65, + 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, + 0x2c, 0x0a, 0x10, 0x42, 0x6c, 0x75, 0x65, 0x74, 0x6f, 0x6f, 0x74, 0x68, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x96, 0x01, + 0x0a, 0x1c, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1e, + 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x56, + 0x0a, 0x16, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x61, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, + 0x15, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, 0x72, + 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0x85, 0x01, 0x0a, 0x1f, 0x41, 0x70, 0x70, 0x6c, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x1d, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x69, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x1b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x22, 0x32, + 0x0a, 0x15, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x74, 0x74, + 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x76, 0x70, 0x6e, 0x5f, 0x75, + 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x70, 0x6e, 0x55, 0x75, + 0x69, 0x64, 0x22, 0x34, 0x0a, 0x11, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2e, 0x0a, 0x0f, 0x54, 0x69, 0x6d, 0x65, + 0x5a, 0x6f, 0x6e, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x74, 0x69, 0x6d, 0x65, 0x5a, 0x6f, 0x6e, 0x65, 0x22, 0x2d, 0x0a, 0x0f, 0x48, 0x6f, 0x73, 0x74, + 0x6e, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x68, + 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, + 0x6f, 0x73, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x4a, 0x0a, 0x11, 0x4d, 0x44, 0x4d, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x35, 0x0a, 0x0b, + 0x6d, 0x64, 0x6d, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4d, 0x44, 0x4d, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x0a, 0x6d, 0x64, 0x6d, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x22, 0x8f, 0x02, 0x0a, 0x0a, 0x4d, 0x44, 0x4d, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x56, 0x0a, 0x28, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x77, 0x68, + 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x65, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x24, 0x61, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4c, 0x6f, 0x63, 0x6b, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x57, 0x68, 0x69, 0x6c, 0x65, + 0x53, 0x75, 0x70, 0x65, 0x72, 0x76, 0x69, 0x73, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x17, 0x62, 0x6f, + 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x61, 0x6c, + 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x62, 0x6f, 0x6f, + 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, + 0x65, 0x64, 0x12, 0x71, 0x0a, 0x37, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x5f, 0x75, 0x73, 0x65, + 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, + 0x74, 0x72, 0x61, 0x70, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x61, + 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x30, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x55, 0x73, 0x65, 0x72, 0x54, + 0x6f, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x54, + 0x6f, 0x6b, 0x65, 0x6e, 0x46, 0x6f, 0x72, 0x41, 0x75, 0x74, 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x0a, 0x1e, 0x50, 0x61, 0x73, 0x73, 0x63, 0x6f, 0x64, + 0x65, 0x4c, 0x6f, 0x63, 0x6b, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x3b, 0x0a, 0x1a, 0x70, 0x61, 0x73, 0x73, 0x63, + 0x6f, 0x64, 0x65, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x67, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x70, + 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x17, 0x70, 0x61, 0x73, + 0x73, 0x63, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x63, 0x6b, 0x47, 0x72, 0x61, 0x63, 0x65, 0x50, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x22, 0x53, 0x0a, 0x1b, 0x4d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, + 0x65, 0x73, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x12, 0x34, 0x0a, 0x16, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x5f, 0x72, + 0x65, 0x73, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x14, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x52, 0x65, 0x73, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x22, 0x37, 0x0a, 0x1b, 0x44, 0x69, 0x61, + 0x67, 0x6e, 0x6f, 0x73, 0x74, 0x69, 0x63, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x22, 0x2f, 0x0a, 0x13, 0x41, 0x70, 0x70, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x74, 0x69, + 0x63, 0x73, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x22, 0x43, 0x0a, 0x1f, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x41, 0x70, + 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x66, 0x69, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x22, 0x40, 0x0a, 0x1c, 0x4d, 0x61, 0x6e, 0x61, + 0x67, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x74, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x22, 0x67, 0x0a, 0x1a, 0x4d, 0x61, + 0x6e, 0x61, 0x67, 0x65, 0x64, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x64, 0x65, 0x6e, + 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x69, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x66, 0x65, 0x65, 0x64, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x46, 0x65, 0x65, 0x64, 0x62, + 0x61, 0x63, 0x6b, 0x22, 0xcb, 0x01, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x46, 0x69, 0x72, 0x6d, 0x77, + 0x61, 0x72, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x50, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, + 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6c, 0x6c, + 0x6f, 0x77, 0x5f, 0x6f, 0x72, 0x6f, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4f, 0x72, 0x6f, 0x6d, 0x73, 0x12, 0x45, 0x0a, 0x1f, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x74, 0x65, 0x74, 0x68, 0x65, 0x72, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x1c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x69, 0x72, 0x65, 0x73, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x65, 0x74, 0x68, 0x65, + 0x72, 0x22, 0x34, 0x0a, 0x16, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x46, 0x69, 0x72, 0x6d, 0x77, + 0x61, 0x72, 0x65, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, + 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xc7, 0x01, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x52, + 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x12, 0x29, 0x0a, 0x10, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x50, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x6e, 0x65, 0x77, 0x5f, 0x70, 0x61, + 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x65, + 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x6c, 0x6c, + 0x6f, 0x77, 0x5f, 0x6f, 0x72, 0x6f, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, + 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4f, 0x72, 0x6f, 0x6d, 0x73, 0x12, 0x45, 0x0a, 0x1f, 0x72, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x74, 0x65, 0x74, 0x68, 0x65, 0x72, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x1c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x69, 0x72, 0x65, 0x73, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x54, 0x65, 0x74, 0x68, 0x65, + 0x72, 0x22, 0x30, 0x0a, 0x12, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x76, + 0x65, 0x72, 0x79, 0x4c, 0x6f, 0x63, 0x6b, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, + 0x6f, 0x72, 0x64, 0x22, 0x4f, 0x0a, 0x14, 0x53, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x41, 0x64, + 0x6d, 0x69, 0x6e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x67, + 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x67, 0x75, 0x69, 0x64, 0x12, + 0x23, 0x0a, 0x0d, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x68, 0x61, 0x73, 0x68, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, + 0x48, 0x61, 0x73, 0x68, 0x22, 0x3e, 0x0a, 0x10, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x4f, 0x53, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x6d, 0x64, 0x6d, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x07, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x73, 0x22, 0x79, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1f, + 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x4b, 0x65, 0x79, 0x12, + 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, + 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x73, 0x74, + 0x61, 0x6c, 0x6c, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x2c, 0x0a, 0x14, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x4f, 0x53, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x53, 0x63, 0x61, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0x4c, 0x0a, + 0x12, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x53, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x65, 0x78, + 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x74, 0x65, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x22, 0xe0, 0x01, 0x0a, 0x12, + 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x4b, + 0x65, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a, + 0x10, 0x66, 0x69, 0x6c, 0x65, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x75, 0x6e, 0x6c, 0x6f, 0x63, + 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x55, 0x6e, 0x6c, 0x6f, + 0x63, 0x6b, 0x52, 0x0f, 0x66, 0x69, 0x6c, 0x65, 0x76, 0x61, 0x75, 0x6c, 0x74, 0x55, 0x6e, 0x6c, + 0x6f, 0x63, 0x6b, 0x12, 0x27, 0x0a, 0x0f, 0x6e, 0x65, 0x77, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x6e, 0x65, + 0x77, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x40, 0x0a, 0x1c, + 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x1a, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x22, 0x9a, + 0x01, 0x0a, 0x0f, 0x46, 0x69, 0x6c, 0x65, 0x56, 0x61, 0x75, 0x6c, 0x74, 0x55, 0x6e, 0x6c, 0x6f, + 0x63, 0x6b, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x2c, + 0x0a, 0x12, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x65, 0x78, + 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x70, 0x72, 0x69, 0x76, + 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3d, 0x0a, 0x1b, + 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x65, 0x78, 0x70, 0x6f, + 0x72, 0x74, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x18, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x45, 0x78, 0x70, + 0x6f, 0x72, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x3c, 0x0a, 0x11, 0x53, + 0x65, 0x74, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, + 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x5f, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x6f, 0x6f, 0x74, 0x73, + 0x74, 0x72, 0x61, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xd2, 0x01, 0x0a, 0x0d, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, + 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x64, 0x69, 0x64, 0x12, + 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x55, 0x75, + 0x69, 0x64, 0x12, 0x35, 0x0a, 0x0b, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6d, 0x64, 0x6d, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x0a, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x22, 0x53, 0x0a, 0x06, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, + 0x67, 0x65, 0x64, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x01, + 0x12, 0x16, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x46, 0x6f, 0x72, 0x6d, 0x61, + 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x64, 0x6c, 0x65, + 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x6f, 0x74, 0x4e, 0x6f, 0x77, 0x10, 0x04, 0x22, 0xb9, + 0x01, 0x0a, 0x0a, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x12, 0x33, 0x0a, + 0x15, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, + 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x6c, 0x6f, + 0x63, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x75, 0x73, 0x5f, 0x65, 0x6e, 0x67, 0x6c, 0x69, 0x73, 0x68, + 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x14, 0x75, 0x73, 0x45, 0x6e, 0x67, 0x6c, 0x69, 0x73, 0x68, 0x44, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x72, 0x72, 0x6f, + 0x72, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, + 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x6d, 0x64, 0x6d, 0x2f, 0x6d, + 0x64, 0x6d, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x6d, 0x64, 0x6d, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_mdm_proto_rawDescOnce sync.Once + file_mdm_proto_rawDescData = file_mdm_proto_rawDesc +) + +func file_mdm_proto_rawDescGZIP() []byte { + file_mdm_proto_rawDescOnce.Do(func() { + file_mdm_proto_rawDescData = protoimpl.X.CompressGZIP(file_mdm_proto_rawDescData) + }) + return file_mdm_proto_rawDescData +} + +var file_mdm_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_mdm_proto_msgTypes = make([]protoimpl.MessageInfo, 71) +var file_mdm_proto_goTypes = []interface{}{ + (ResultPayload_Status)(0), // 0: mdmproto.ResultPayload.Status + (*CommandPayload)(nil), // 1: mdmproto.CommandPayload + (*Command)(nil), // 2: mdmproto.Command + (*InstallProfile)(nil), // 3: mdmproto.InstallProfile + (*RemoveProfile)(nil), // 4: mdmproto.RemoveProfile + (*InstallProvisioningProfile)(nil), // 5: mdmproto.InstallProvisioningProfile + (*RemoveProvisioningProfile)(nil), // 6: mdmproto.RemoveProvisioningProfile + (*InstalledApplicationList)(nil), // 7: mdmproto.InstalledApplicationList + (*DeviceInformation)(nil), // 8: mdmproto.DeviceInformation + (*ClearPasscode)(nil), // 9: mdmproto.ClearPasscode + (*DeviceLock)(nil), // 10: mdmproto.DeviceLock + (*EraseDevice)(nil), // 11: mdmproto.EraseDevice + (*RequestMirroring)(nil), // 12: mdmproto.RequestMirroring + (*Restrictions)(nil), // 13: mdmproto.Restrictions + (*UnlockUserAccount)(nil), // 14: mdmproto.UnlockUserAccount + (*DeleteUser)(nil), // 15: mdmproto.DeleteUser + (*EnableLostMode)(nil), // 16: mdmproto.EnableLostMode + (*InstallApplication)(nil), // 17: mdmproto.InstallApplication + (*InstallApplicationOptions)(nil), // 18: mdmproto.InstallApplicationOptions + (*InstallApplicationConfiguration)(nil), // 19: mdmproto.InstallApplicationConfiguration + (*InstallApplicationAttributes)(nil), // 20: mdmproto.InstallApplicationAttributes + (*InstallEnterpriseApplication)(nil), // 21: mdmproto.InstallEnterpriseApplication + (*Manifest)(nil), // 22: mdmproto.Manifest + (*ManifestItem)(nil), // 23: mdmproto.ManifestItem + (*Asset)(nil), // 24: mdmproto.Asset + (*Metadata)(nil), // 25: mdmproto.Metadata + (*BundleInfo)(nil), // 26: mdmproto.BundleInfo + (*ApplyRedemptionCode)(nil), // 27: mdmproto.ApplyRedemptionCode + (*ManagedApplicationList)(nil), // 28: mdmproto.ManagedApplicationList + (*RemoveApplication)(nil), // 29: mdmproto.RemoveApplication + (*InviteToProgram)(nil), // 30: mdmproto.InviteToProgram + (*ValidateApplications)(nil), // 31: mdmproto.ValidateApplications + (*AccountConfiguration)(nil), // 32: mdmproto.AccountConfiguration + (*AutoSetupAdminAccounts)(nil), // 33: mdmproto.AutoSetupAdminAccounts + (*InstallMedia)(nil), // 34: mdmproto.InstallMedia + (*RemoveMedia)(nil), // 35: mdmproto.RemoveMedia + (*Settings)(nil), // 36: mdmproto.Settings + (*Setting)(nil), // 37: mdmproto.Setting + (*VoiceRoamingSetting)(nil), // 38: mdmproto.VoiceRoamingSetting + (*PersonalHotspotSetting)(nil), // 39: mdmproto.PersonalHotspotSetting + (*WallpaperSetting)(nil), // 40: mdmproto.WallpaperSetting + (*DataRoamingSetting)(nil), // 41: mdmproto.DataRoamingSetting + (*BluetoothSetting)(nil), // 42: mdmproto.BluetoothSetting + (*ApplicationAttributesSetting)(nil), // 43: mdmproto.ApplicationAttributesSetting + (*ApplicationConfigurationSetting)(nil), // 44: mdmproto.ApplicationConfigurationSetting + (*ApplicationAttributes)(nil), // 45: mdmproto.ApplicationAttributes + (*DeviceNameSetting)(nil), // 46: mdmproto.DeviceNameSetting + (*TimeZoneSetting)(nil), // 47: mdmproto.TimeZoneSetting + (*HostnameSetting)(nil), // 48: mdmproto.HostnameSetting + (*MDMOptionsSetting)(nil), // 49: mdmproto.MDMOptionsSetting + (*MDMOptions)(nil), // 50: mdmproto.MDMOptions + (*PasscodeLockGracePeriodSetting)(nil), // 51: mdmproto.PasscodeLockGracePeriodSetting + (*MaximumResidentUsersSetting)(nil), // 52: mdmproto.MaximumResidentUsersSetting + (*DiagnosticSubmissionSetting)(nil), // 53: mdmproto.DiagnosticSubmissionSetting + (*AppAnalyticsSetting)(nil), // 54: mdmproto.AppAnalyticsSetting + (*ManagedApplicationConfiguration)(nil), // 55: mdmproto.ManagedApplicationConfiguration + (*ManagedApplicationAttributes)(nil), // 56: mdmproto.ManagedApplicationAttributes + (*ManagedApplicationFeedback)(nil), // 57: mdmproto.ManagedApplicationFeedback + (*SetFirmwarePassword)(nil), // 58: mdmproto.SetFirmwarePassword + (*VerifyFirmwarePassword)(nil), // 59: mdmproto.VerifyFirmwarePassword + (*SetRecoveryLock)(nil), // 60: mdmproto.SetRecoveryLock + (*VerifyRecoveryLock)(nil), // 61: mdmproto.VerifyRecoveryLock + (*SetAutoAdminPassword)(nil), // 62: mdmproto.SetAutoAdminPassword + (*ScheduleOSUpdate)(nil), // 63: mdmproto.ScheduleOSUpdate + (*Update)(nil), // 64: mdmproto.Update + (*ScheduleOSUpdateScan)(nil), // 65: mdmproto.ScheduleOSUpdateScan + (*ActiveNSExtensions)(nil), // 66: mdmproto.ActiveNSExtensions + (*RotateFileVaultKey)(nil), // 67: mdmproto.RotateFileVaultKey + (*FileVaultUnlock)(nil), // 68: mdmproto.FileVaultUnlock + (*SetBootstrapToken)(nil), // 69: mdmproto.SetBootstrapToken + (*ResultPayload)(nil), // 70: mdmproto.ResultPayload + (*ErrorChain)(nil), // 71: mdmproto.ErrorChain +} +var file_mdm_proto_depIdxs = []int32{ + 2, // 0: mdmproto.CommandPayload.command:type_name -> mdmproto.Command + 3, // 1: mdmproto.Command.install_profile:type_name -> mdmproto.InstallProfile + 4, // 2: mdmproto.Command.remove_profile:type_name -> mdmproto.RemoveProfile + 5, // 3: mdmproto.Command.install_provisioning_profile:type_name -> mdmproto.InstallProvisioningProfile + 6, // 4: mdmproto.Command.remove_profisioning_profile:type_name -> mdmproto.RemoveProvisioningProfile + 7, // 5: mdmproto.Command.installed_application_list:type_name -> mdmproto.InstalledApplicationList + 8, // 6: mdmproto.Command.device_information:type_name -> mdmproto.DeviceInformation + 10, // 7: mdmproto.Command.device_lock:type_name -> mdmproto.DeviceLock + 9, // 8: mdmproto.Command.clear_passcode:type_name -> mdmproto.ClearPasscode + 11, // 9: mdmproto.Command.erase_device:type_name -> mdmproto.EraseDevice + 12, // 10: mdmproto.Command.request_mirroring:type_name -> mdmproto.RequestMirroring + 13, // 11: mdmproto.Command.restrictions:type_name -> mdmproto.Restrictions + 14, // 12: mdmproto.Command.unlock_user_account:type_name -> mdmproto.UnlockUserAccount + 15, // 13: mdmproto.Command.delete_user:type_name -> mdmproto.DeleteUser + 16, // 14: mdmproto.Command.enable_lost_mode:type_name -> mdmproto.EnableLostMode + 17, // 15: mdmproto.Command.install_application:type_name -> mdmproto.InstallApplication + 32, // 16: mdmproto.Command.account_configuration:type_name -> mdmproto.AccountConfiguration + 27, // 17: mdmproto.Command.apply_redemption_code:type_name -> mdmproto.ApplyRedemptionCode + 28, // 18: mdmproto.Command.managed_application_list:type_name -> mdmproto.ManagedApplicationList + 29, // 19: mdmproto.Command.remove_application:type_name -> mdmproto.RemoveApplication + 30, // 20: mdmproto.Command.invite_to_program:type_name -> mdmproto.InviteToProgram + 31, // 21: mdmproto.Command.validata_applications:type_name -> mdmproto.ValidateApplications + 34, // 22: mdmproto.Command.install_media:type_name -> mdmproto.InstallMedia + 35, // 23: mdmproto.Command.remove_media:type_name -> mdmproto.RemoveMedia + 36, // 24: mdmproto.Command.settings:type_name -> mdmproto.Settings + 55, // 25: mdmproto.Command.managed_application_configuration:type_name -> mdmproto.ManagedApplicationConfiguration + 56, // 26: mdmproto.Command.managed_application_attributes:type_name -> mdmproto.ManagedApplicationAttributes + 57, // 27: mdmproto.Command.managed_application_feedback:type_name -> mdmproto.ManagedApplicationFeedback + 58, // 28: mdmproto.Command.set_firmware_password:type_name -> mdmproto.SetFirmwarePassword + 59, // 29: mdmproto.Command.verify_firmware_password:type_name -> mdmproto.VerifyFirmwarePassword + 62, // 30: mdmproto.Command.set_auto_admin_password:type_name -> mdmproto.SetAutoAdminPassword + 63, // 31: mdmproto.Command.schedule_os_update:type_name -> mdmproto.ScheduleOSUpdate + 65, // 32: mdmproto.Command.schedule_os_update_scan:type_name -> mdmproto.ScheduleOSUpdateScan + 66, // 33: mdmproto.Command.active_ns_extensions:type_name -> mdmproto.ActiveNSExtensions + 67, // 34: mdmproto.Command.rotate_filevault_key:type_name -> mdmproto.RotateFileVaultKey + 21, // 35: mdmproto.Command.install_enterprise_application:type_name -> mdmproto.InstallEnterpriseApplication + 69, // 36: mdmproto.Command.set_bootstrap_token:type_name -> mdmproto.SetBootstrapToken + 60, // 37: mdmproto.Command.set_recovery_lock:type_name -> mdmproto.SetRecoveryLock + 61, // 38: mdmproto.Command.verify_recovery_lock:type_name -> mdmproto.VerifyRecoveryLock + 18, // 39: mdmproto.InstallApplication.options:type_name -> mdmproto.InstallApplicationOptions + 19, // 40: mdmproto.InstallApplication.configuration:type_name -> mdmproto.InstallApplicationConfiguration + 20, // 41: mdmproto.InstallApplication.attributes:type_name -> mdmproto.InstallApplicationAttributes + 22, // 42: mdmproto.InstallEnterpriseApplication.manifest:type_name -> mdmproto.Manifest + 23, // 43: mdmproto.Manifest.manifest_items:type_name -> mdmproto.ManifestItem + 24, // 44: mdmproto.ManifestItem.assets:type_name -> mdmproto.Asset + 25, // 45: mdmproto.ManifestItem.metadata:type_name -> mdmproto.Metadata + 26, // 46: mdmproto.Metadata.items:type_name -> mdmproto.BundleInfo + 33, // 47: mdmproto.AccountConfiguration.auto_setup_admin_accounts:type_name -> mdmproto.AutoSetupAdminAccounts + 37, // 48: mdmproto.Settings.settings:type_name -> mdmproto.Setting + 46, // 49: mdmproto.Setting.device_name:type_name -> mdmproto.DeviceNameSetting + 48, // 50: mdmproto.Setting.hostname:type_name -> mdmproto.HostnameSetting + 38, // 51: mdmproto.Setting.voice_roaming:type_name -> mdmproto.VoiceRoamingSetting + 39, // 52: mdmproto.Setting.personal_hotspot:type_name -> mdmproto.PersonalHotspotSetting + 40, // 53: mdmproto.Setting.wallpaper:type_name -> mdmproto.WallpaperSetting + 41, // 54: mdmproto.Setting.data_roaming:type_name -> mdmproto.DataRoamingSetting + 42, // 55: mdmproto.Setting.bluetooth:type_name -> mdmproto.BluetoothSetting + 43, // 56: mdmproto.Setting.application_attributes:type_name -> mdmproto.ApplicationAttributesSetting + 49, // 57: mdmproto.Setting.mdm_options:type_name -> mdmproto.MDMOptionsSetting + 51, // 58: mdmproto.Setting.passcode_lock_grace_period:type_name -> mdmproto.PasscodeLockGracePeriodSetting + 52, // 59: mdmproto.Setting.maximum_resident_users:type_name -> mdmproto.MaximumResidentUsersSetting + 53, // 60: mdmproto.Setting.diagnostic_submission:type_name -> mdmproto.DiagnosticSubmissionSetting + 54, // 61: mdmproto.Setting.app_analytics:type_name -> mdmproto.AppAnalyticsSetting + 44, // 62: mdmproto.Setting.application_configuration:type_name -> mdmproto.ApplicationConfigurationSetting + 47, // 63: mdmproto.Setting.time_zone:type_name -> mdmproto.TimeZoneSetting + 45, // 64: mdmproto.ApplicationAttributesSetting.application_attributes:type_name -> mdmproto.ApplicationAttributes + 50, // 65: mdmproto.MDMOptionsSetting.mdm_options:type_name -> mdmproto.MDMOptions + 64, // 66: mdmproto.ScheduleOSUpdate.updates:type_name -> mdmproto.Update + 68, // 67: mdmproto.RotateFileVaultKey.filevault_unlock:type_name -> mdmproto.FileVaultUnlock + 71, // 68: mdmproto.ResultPayload.error_chain:type_name -> mdmproto.ErrorChain + 69, // [69:69] is the sub-list for method output_type + 69, // [69:69] is the sub-list for method input_type + 69, // [69:69] is the sub-list for extension type_name + 69, // [69:69] is the sub-list for extension extendee + 0, // [0:69] is the sub-list for field type_name +} + +func init() { file_mdm_proto_init() } +func file_mdm_proto_init() { + if File_mdm_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_mdm_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommandPayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Command); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallProfile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveProfile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallProvisioningProfile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveProvisioningProfile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstalledApplicationList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeviceInformation); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearPasscode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeviceLock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EraseDevice); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestMirroring); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Restrictions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnlockUserAccount); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteUser); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EnableLostMode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallApplication); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallApplicationOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallApplicationConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallApplicationAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallEnterpriseApplication); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Manifest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ManifestItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Asset); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplyRedemptionCode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ManagedApplicationList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveApplication); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InviteToProgram); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidateApplications); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AccountConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AutoSetupAdminAccounts); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InstallMedia); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RemoveMedia); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Settings); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Setting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VoiceRoamingSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PersonalHotspotSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WallpaperSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DataRoamingSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BluetoothSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplicationAttributesSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplicationConfigurationSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ApplicationAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeviceNameSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimeZoneSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HostnameSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MDMOptionsSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MDMOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PasscodeLockGracePeriodSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MaximumResidentUsersSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DiagnosticSubmissionSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AppAnalyticsSetting); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ManagedApplicationConfiguration); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ManagedApplicationAttributes); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ManagedApplicationFeedback); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetFirmwarePassword); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyFirmwarePassword); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetRecoveryLock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*VerifyRecoveryLock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetAutoAdminPassword); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ScheduleOSUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Update); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ScheduleOSUpdateScan); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActiveNSExtensions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RotateFileVaultKey); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FileVaultUnlock); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetBootstrapToken); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ResultPayload); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_mdm_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ErrorChain); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_mdm_proto_msgTypes[1].OneofWrappers = []interface{}{ (*Command_InstallProfile)(nil), (*Command_RemoveProfile)(nil), (*Command_InstallProvisioningProfile)(nil), @@ -696,20157 +6495,23 @@ func (*Command) XXX_OneofWrappers() []interface{} { (*Command_SetRecoveryLock)(nil), (*Command_VerifyRecoveryLock)(nil), } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_mdm_proto_rawDesc, + NumEnums: 1, + NumMessages: 71, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_mdm_proto_goTypes, + DependencyIndexes: file_mdm_proto_depIdxs, + EnumInfos: file_mdm_proto_enumTypes, + MessageInfos: file_mdm_proto_msgTypes, + }.Build() + File_mdm_proto = out.File + file_mdm_proto_rawDesc = nil + file_mdm_proto_goTypes = nil + file_mdm_proto_depIdxs = nil } - -type InstallProfile struct { - Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InstallProfile) Reset() { *m = InstallProfile{} } -func (m *InstallProfile) String() string { return proto.CompactTextString(m) } -func (*InstallProfile) ProtoMessage() {} -func (*InstallProfile) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{2} -} -func (m *InstallProfile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InstallProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InstallProfile.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *InstallProfile) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallProfile.Merge(m, src) -} -func (m *InstallProfile) XXX_Size() int { - return m.Size() -} -func (m *InstallProfile) XXX_DiscardUnknown() { - xxx_messageInfo_InstallProfile.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallProfile proto.InternalMessageInfo - -func (m *InstallProfile) GetPayload() []byte { - if m != nil { - return m.Payload - } - return nil -} - -type RemoveProfile struct { - Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoveProfile) Reset() { *m = RemoveProfile{} } -func (m *RemoveProfile) String() string { return proto.CompactTextString(m) } -func (*RemoveProfile) ProtoMessage() {} -func (*RemoveProfile) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{3} -} -func (m *RemoveProfile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveProfile.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RemoveProfile) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveProfile.Merge(m, src) -} -func (m *RemoveProfile) XXX_Size() int { - return m.Size() -} -func (m *RemoveProfile) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveProfile.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveProfile proto.InternalMessageInfo - -func (m *RemoveProfile) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" -} - -type InstallProvisioningProfile struct { - ProvisioningProfile []byte `protobuf:"bytes,1,opt,name=provisioning_profile,json=provisioningProfile,proto3" json:"provisioning_profile,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InstallProvisioningProfile) Reset() { *m = InstallProvisioningProfile{} } -func (m *InstallProvisioningProfile) String() string { return proto.CompactTextString(m) } -func (*InstallProvisioningProfile) ProtoMessage() {} -func (*InstallProvisioningProfile) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{4} -} -func (m *InstallProvisioningProfile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InstallProvisioningProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InstallProvisioningProfile.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *InstallProvisioningProfile) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallProvisioningProfile.Merge(m, src) -} -func (m *InstallProvisioningProfile) XXX_Size() int { - return m.Size() -} -func (m *InstallProvisioningProfile) XXX_DiscardUnknown() { - xxx_messageInfo_InstallProvisioningProfile.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallProvisioningProfile proto.InternalMessageInfo - -func (m *InstallProvisioningProfile) GetProvisioningProfile() []byte { - if m != nil { - return m.ProvisioningProfile - } - return nil -} - -type RemoveProvisioningProfile struct { - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoveProvisioningProfile) Reset() { *m = RemoveProvisioningProfile{} } -func (m *RemoveProvisioningProfile) String() string { return proto.CompactTextString(m) } -func (*RemoveProvisioningProfile) ProtoMessage() {} -func (*RemoveProvisioningProfile) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{5} -} -func (m *RemoveProvisioningProfile) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveProvisioningProfile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveProvisioningProfile.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RemoveProvisioningProfile) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveProvisioningProfile.Merge(m, src) -} -func (m *RemoveProvisioningProfile) XXX_Size() int { - return m.Size() -} -func (m *RemoveProvisioningProfile) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveProvisioningProfile.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveProvisioningProfile proto.InternalMessageInfo - -func (m *RemoveProvisioningProfile) GetUuid() string { - if m != nil { - return m.Uuid - } - return "" -} - -type InstalledApplicationList struct { - Identifiers []string `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"` - ManagedAppsOnly bool `protobuf:"varint,2,opt,name=managed_apps_only,json=managedAppsOnly,proto3" json:"managed_apps_only,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InstalledApplicationList) Reset() { *m = InstalledApplicationList{} } -func (m *InstalledApplicationList) String() string { return proto.CompactTextString(m) } -func (*InstalledApplicationList) ProtoMessage() {} -func (*InstalledApplicationList) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{6} -} -func (m *InstalledApplicationList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InstalledApplicationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InstalledApplicationList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *InstalledApplicationList) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstalledApplicationList.Merge(m, src) -} -func (m *InstalledApplicationList) XXX_Size() int { - return m.Size() -} -func (m *InstalledApplicationList) XXX_DiscardUnknown() { - xxx_messageInfo_InstalledApplicationList.DiscardUnknown(m) -} - -var xxx_messageInfo_InstalledApplicationList proto.InternalMessageInfo - -func (m *InstalledApplicationList) GetIdentifiers() []string { - if m != nil { - return m.Identifiers - } - return nil -} - -func (m *InstalledApplicationList) GetManagedAppsOnly() bool { - if m != nil { - return m.ManagedAppsOnly - } - return false -} - -type DeviceInformation struct { - Queries []string `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeviceInformation) Reset() { *m = DeviceInformation{} } -func (m *DeviceInformation) String() string { return proto.CompactTextString(m) } -func (*DeviceInformation) ProtoMessage() {} -func (*DeviceInformation) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{7} -} -func (m *DeviceInformation) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeviceInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeviceInformation.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DeviceInformation) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeviceInformation.Merge(m, src) -} -func (m *DeviceInformation) XXX_Size() int { - return m.Size() -} -func (m *DeviceInformation) XXX_DiscardUnknown() { - xxx_messageInfo_DeviceInformation.DiscardUnknown(m) -} - -var xxx_messageInfo_DeviceInformation proto.InternalMessageInfo - -func (m *DeviceInformation) GetQueries() []string { - if m != nil { - return m.Queries - } - return nil -} - -type ClearPasscode struct { - UnlockToken []byte `protobuf:"bytes,1,opt,name=unlock_token,json=unlockToken,proto3" json:"unlock_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClearPasscode) Reset() { *m = ClearPasscode{} } -func (m *ClearPasscode) String() string { return proto.CompactTextString(m) } -func (*ClearPasscode) ProtoMessage() {} -func (*ClearPasscode) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{8} -} -func (m *ClearPasscode) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ClearPasscode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ClearPasscode.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ClearPasscode) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClearPasscode.Merge(m, src) -} -func (m *ClearPasscode) XXX_Size() int { - return m.Size() -} -func (m *ClearPasscode) XXX_DiscardUnknown() { - xxx_messageInfo_ClearPasscode.DiscardUnknown(m) -} - -var xxx_messageInfo_ClearPasscode proto.InternalMessageInfo - -func (m *ClearPasscode) GetUnlockToken() []byte { - if m != nil { - return m.UnlockToken - } - return nil -} - -type DeviceLock struct { - Pin string `protobuf:"bytes,1,opt,name=pin,proto3" json:"pin,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeviceLock) Reset() { *m = DeviceLock{} } -func (m *DeviceLock) String() string { return proto.CompactTextString(m) } -func (*DeviceLock) ProtoMessage() {} -func (*DeviceLock) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{9} -} -func (m *DeviceLock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeviceLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeviceLock.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DeviceLock) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeviceLock.Merge(m, src) -} -func (m *DeviceLock) XXX_Size() int { - return m.Size() -} -func (m *DeviceLock) XXX_DiscardUnknown() { - xxx_messageInfo_DeviceLock.DiscardUnknown(m) -} - -var xxx_messageInfo_DeviceLock proto.InternalMessageInfo - -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 EraseDevice struct { - Pin string `protobuf:"bytes,1,opt,name=pin,proto3" json:"pin,omitempty"` - PreserveDataPlan bool `protobuf:"varint,2,opt,name=preserve_data_plan,json=preserveDataPlan,proto3" json:"preserve_data_plan,omitempty"` - DisallowProximitySetup bool `protobuf:"varint,3,opt,name=disallow_proximity_setup,json=disallowProximitySetup,proto3" json:"disallow_proximity_setup,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EraseDevice) Reset() { *m = EraseDevice{} } -func (m *EraseDevice) String() string { return proto.CompactTextString(m) } -func (*EraseDevice) ProtoMessage() {} -func (*EraseDevice) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{10} -} -func (m *EraseDevice) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EraseDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EraseDevice.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *EraseDevice) XXX_Merge(src proto.Message) { - xxx_messageInfo_EraseDevice.Merge(m, src) -} -func (m *EraseDevice) XXX_Size() int { - return m.Size() -} -func (m *EraseDevice) XXX_DiscardUnknown() { - xxx_messageInfo_EraseDevice.DiscardUnknown(m) -} - -var xxx_messageInfo_EraseDevice proto.InternalMessageInfo - -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 -} - -func (m *EraseDevice) GetDisallowProximitySetup() bool { - if m != nil { - return m.DisallowProximitySetup - } - return false -} - -type RequestMirroring struct { - DestinationName string `protobuf:"bytes,1,opt,name=destination_name,json=destinationName,proto3" json:"destination_name,omitempty"` - DestinationDeviceId string `protobuf:"bytes,2,opt,name=destination_device_id,json=destinationDeviceId,proto3" json:"destination_device_id,omitempty"` - ScanTime string `protobuf:"bytes,3,opt,name=scan_time,json=scanTime,proto3" json:"scan_time,omitempty"` - Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RequestMirroring) Reset() { *m = RequestMirroring{} } -func (m *RequestMirroring) String() string { return proto.CompactTextString(m) } -func (*RequestMirroring) ProtoMessage() {} -func (*RequestMirroring) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{11} -} -func (m *RequestMirroring) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RequestMirroring) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RequestMirroring.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RequestMirroring) XXX_Merge(src proto.Message) { - xxx_messageInfo_RequestMirroring.Merge(m, src) -} -func (m *RequestMirroring) XXX_Size() int { - return m.Size() -} -func (m *RequestMirroring) XXX_DiscardUnknown() { - xxx_messageInfo_RequestMirroring.DiscardUnknown(m) -} - -var xxx_messageInfo_RequestMirroring proto.InternalMessageInfo - -func (m *RequestMirroring) GetDestinationName() string { - if m != nil { - return m.DestinationName - } - return "" -} - -func (m *RequestMirroring) GetDestinationDeviceId() string { - if m != nil { - return m.DestinationDeviceId - } - return "" -} - -func (m *RequestMirroring) GetScanTime() string { - if m != nil { - return m.ScanTime - } - return "" -} - -func (m *RequestMirroring) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -type Restrictions struct { - ProfileRestrictions bool `protobuf:"varint,1,opt,name=profile_restrictions,json=profileRestrictions,proto3" json:"profile_restrictions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Restrictions) Reset() { *m = Restrictions{} } -func (m *Restrictions) String() string { return proto.CompactTextString(m) } -func (*Restrictions) ProtoMessage() {} -func (*Restrictions) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{12} -} -func (m *Restrictions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Restrictions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Restrictions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Restrictions) XXX_Merge(src proto.Message) { - xxx_messageInfo_Restrictions.Merge(m, src) -} -func (m *Restrictions) XXX_Size() int { - return m.Size() -} -func (m *Restrictions) XXX_DiscardUnknown() { - xxx_messageInfo_Restrictions.DiscardUnknown(m) -} - -var xxx_messageInfo_Restrictions proto.InternalMessageInfo - -func (m *Restrictions) GetProfileRestrictions() bool { - if m != nil { - return m.ProfileRestrictions - } - return false -} - -type UnlockUserAccount struct { - Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UnlockUserAccount) Reset() { *m = UnlockUserAccount{} } -func (m *UnlockUserAccount) String() string { return proto.CompactTextString(m) } -func (*UnlockUserAccount) ProtoMessage() {} -func (*UnlockUserAccount) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{13} -} -func (m *UnlockUserAccount) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *UnlockUserAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_UnlockUserAccount.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *UnlockUserAccount) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnlockUserAccount.Merge(m, src) -} -func (m *UnlockUserAccount) XXX_Size() int { - return m.Size() -} -func (m *UnlockUserAccount) XXX_DiscardUnknown() { - xxx_messageInfo_UnlockUserAccount.DiscardUnknown(m) -} - -var xxx_messageInfo_UnlockUserAccount proto.InternalMessageInfo - -func (m *UnlockUserAccount) GetUsername() string { - if m != nil { - return m.Username - } - return "" -} - -type DeleteUser struct { - Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` - ForceDeletion bool `protobuf:"varint,2,opt,name=force_deletion,json=forceDeletion,proto3" json:"force_deletion,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteUser) Reset() { *m = DeleteUser{} } -func (m *DeleteUser) String() string { return proto.CompactTextString(m) } -func (*DeleteUser) ProtoMessage() {} -func (*DeleteUser) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{14} -} -func (m *DeleteUser) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeleteUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeleteUser.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DeleteUser) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteUser.Merge(m, src) -} -func (m *DeleteUser) XXX_Size() int { - return m.Size() -} -func (m *DeleteUser) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteUser.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteUser proto.InternalMessageInfo - -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 EnableLostMode struct { - Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` - PhoneNumber string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` - Footnote string `protobuf:"bytes,3,opt,name=footnote,proto3" json:"footnote,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EnableLostMode) Reset() { *m = EnableLostMode{} } -func (m *EnableLostMode) String() string { return proto.CompactTextString(m) } -func (*EnableLostMode) ProtoMessage() {} -func (*EnableLostMode) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{15} -} -func (m *EnableLostMode) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *EnableLostMode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_EnableLostMode.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *EnableLostMode) XXX_Merge(src proto.Message) { - xxx_messageInfo_EnableLostMode.Merge(m, src) -} -func (m *EnableLostMode) XXX_Size() int { - return m.Size() -} -func (m *EnableLostMode) XXX_DiscardUnknown() { - xxx_messageInfo_EnableLostMode.DiscardUnknown(m) -} - -var xxx_messageInfo_EnableLostMode proto.InternalMessageInfo - -func (m *EnableLostMode) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -func (m *EnableLostMode) GetPhoneNumber() string { - if m != nil { - return m.PhoneNumber - } - return "" -} - -func (m *EnableLostMode) GetFootnote() string { - if m != nil { - return m.Footnote - } - return "" -} - -type InstallApplication struct { - ItunesStoreId int64 `protobuf:"varint,1,opt,name=itunes_store_id,json=itunesStoreId,proto3" json:"itunes_store_id,omitempty"` - Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"` - Options *InstallApplicationOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` - ManifestUrl string `protobuf:"bytes,4,opt,name=manifest_url,json=manifestUrl,proto3" json:"manifest_url,omitempty"` - ManagementFlags int64 `protobuf:"varint,5,opt,name=management_flags,json=managementFlags,proto3" json:"management_flags,omitempty"` - Configuration *InstallApplicationConfiguration `protobuf:"bytes,6,opt,name=configuration,proto3" json:"configuration,omitempty"` - Attributes *InstallApplicationAttributes `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"` - ChangeManagementState string `protobuf:"bytes,8,opt,name=change_management_state,json=changeManagementState,proto3" json:"change_management_state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InstallApplication) Reset() { *m = InstallApplication{} } -func (m *InstallApplication) String() string { return proto.CompactTextString(m) } -func (*InstallApplication) ProtoMessage() {} -func (*InstallApplication) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{16} -} -func (m *InstallApplication) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InstallApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InstallApplication.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *InstallApplication) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallApplication.Merge(m, src) -} -func (m *InstallApplication) XXX_Size() int { - return m.Size() -} -func (m *InstallApplication) XXX_DiscardUnknown() { - xxx_messageInfo_InstallApplication.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallApplication proto.InternalMessageInfo - -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) GetOptions() *InstallApplicationOptions { - if m != nil { - return m.Options - } - return nil -} - -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) GetConfiguration() *InstallApplicationConfiguration { - if m != nil { - return m.Configuration - } - return nil -} - -func (m *InstallApplication) GetAttributes() *InstallApplicationAttributes { - if m != nil { - return m.Attributes - } - return nil -} - -func (m *InstallApplication) GetChangeManagementState() string { - if m != nil { - return m.ChangeManagementState - } - return "" -} - -type InstallApplicationOptions struct { - PurchaseMethod int64 `protobuf:"varint,1,opt,name=purchase_method,json=purchaseMethod,proto3" json:"purchase_method,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InstallApplicationOptions) Reset() { *m = InstallApplicationOptions{} } -func (m *InstallApplicationOptions) String() string { return proto.CompactTextString(m) } -func (*InstallApplicationOptions) ProtoMessage() {} -func (*InstallApplicationOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{17} -} -func (m *InstallApplicationOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InstallApplicationOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InstallApplicationOptions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *InstallApplicationOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallApplicationOptions.Merge(m, src) -} -func (m *InstallApplicationOptions) XXX_Size() int { - return m.Size() -} -func (m *InstallApplicationOptions) XXX_DiscardUnknown() { - xxx_messageInfo_InstallApplicationOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallApplicationOptions proto.InternalMessageInfo - -func (m *InstallApplicationOptions) GetPurchaseMethod() int64 { - if m != nil { - return m.PurchaseMethod - } - return 0 -} - -type InstallApplicationConfiguration struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InstallApplicationConfiguration) Reset() { *m = InstallApplicationConfiguration{} } -func (m *InstallApplicationConfiguration) String() string { return proto.CompactTextString(m) } -func (*InstallApplicationConfiguration) ProtoMessage() {} -func (*InstallApplicationConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{18} -} -func (m *InstallApplicationConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InstallApplicationConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InstallApplicationConfiguration.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *InstallApplicationConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallApplicationConfiguration.Merge(m, src) -} -func (m *InstallApplicationConfiguration) XXX_Size() int { - return m.Size() -} -func (m *InstallApplicationConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_InstallApplicationConfiguration.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallApplicationConfiguration proto.InternalMessageInfo - -type InstallApplicationAttributes struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InstallApplicationAttributes) Reset() { *m = InstallApplicationAttributes{} } -func (m *InstallApplicationAttributes) String() string { return proto.CompactTextString(m) } -func (*InstallApplicationAttributes) ProtoMessage() {} -func (*InstallApplicationAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{19} -} -func (m *InstallApplicationAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InstallApplicationAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InstallApplicationAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *InstallApplicationAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallApplicationAttributes.Merge(m, src) -} -func (m *InstallApplicationAttributes) XXX_Size() int { - return m.Size() -} -func (m *InstallApplicationAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_InstallApplicationAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallApplicationAttributes proto.InternalMessageInfo - -type InstallEnterpriseApplication struct { - Manifest *Manifest `protobuf:"bytes,1,opt,name=manifest,proto3" json:"manifest,omitempty"` - ManifestUrl string `protobuf:"bytes,2,opt,name=manifest_url,json=manifestUrl,proto3" json:"manifest_url,omitempty"` - ManifestUrlPinningCerts [][]byte `protobuf:"bytes,3,rep,name=manifest_url_pinning_certs,json=manifestUrlPinningCerts,proto3" json:"manifest_url_pinning_certs,omitempty"` - PinningRevocationCheckRequired bool `protobuf:"varint,4,opt,name=pinning_revocation_check_required,json=pinningRevocationCheckRequired,proto3" json:"pinning_revocation_check_required,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InstallEnterpriseApplication) Reset() { *m = InstallEnterpriseApplication{} } -func (m *InstallEnterpriseApplication) String() string { return proto.CompactTextString(m) } -func (*InstallEnterpriseApplication) ProtoMessage() {} -func (*InstallEnterpriseApplication) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{20} -} -func (m *InstallEnterpriseApplication) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InstallEnterpriseApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InstallEnterpriseApplication.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *InstallEnterpriseApplication) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallEnterpriseApplication.Merge(m, src) -} -func (m *InstallEnterpriseApplication) XXX_Size() int { - return m.Size() -} -func (m *InstallEnterpriseApplication) XXX_DiscardUnknown() { - xxx_messageInfo_InstallEnterpriseApplication.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallEnterpriseApplication proto.InternalMessageInfo - -func (m *InstallEnterpriseApplication) GetManifest() *Manifest { - if m != nil { - return m.Manifest - } - return nil -} - -func (m *InstallEnterpriseApplication) GetManifestUrl() string { - if m != nil { - return m.ManifestUrl - } - return "" -} - -func (m *InstallEnterpriseApplication) GetManifestUrlPinningCerts() [][]byte { - if m != nil { - return m.ManifestUrlPinningCerts - } - return nil -} - -func (m *InstallEnterpriseApplication) GetPinningRevocationCheckRequired() bool { - if m != nil { - return m.PinningRevocationCheckRequired - } - return false -} - -type Manifest struct { - ManifestItems []*ManifestItem `protobuf:"bytes,1,rep,name=manifest_items,json=manifestItems,proto3" json:"manifest_items,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Manifest) Reset() { *m = Manifest{} } -func (m *Manifest) String() string { return proto.CompactTextString(m) } -func (*Manifest) ProtoMessage() {} -func (*Manifest) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{21} -} -func (m *Manifest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Manifest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Manifest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Manifest) XXX_Merge(src proto.Message) { - xxx_messageInfo_Manifest.Merge(m, src) -} -func (m *Manifest) XXX_Size() int { - return m.Size() -} -func (m *Manifest) XXX_DiscardUnknown() { - xxx_messageInfo_Manifest.DiscardUnknown(m) -} - -var xxx_messageInfo_Manifest proto.InternalMessageInfo - -func (m *Manifest) GetManifestItems() []*ManifestItem { - if m != nil { - return m.ManifestItems - } - return nil -} - -type ManifestItem struct { - Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` - Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ManifestItem) Reset() { *m = ManifestItem{} } -func (m *ManifestItem) String() string { return proto.CompactTextString(m) } -func (*ManifestItem) ProtoMessage() {} -func (*ManifestItem) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{22} -} -func (m *ManifestItem) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ManifestItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ManifestItem.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ManifestItem) XXX_Merge(src proto.Message) { - xxx_messageInfo_ManifestItem.Merge(m, src) -} -func (m *ManifestItem) XXX_Size() int { - return m.Size() -} -func (m *ManifestItem) XXX_DiscardUnknown() { - xxx_messageInfo_ManifestItem.DiscardUnknown(m) -} - -var xxx_messageInfo_ManifestItem proto.InternalMessageInfo - -func (m *ManifestItem) GetAssets() []*Asset { - if m != nil { - return m.Assets - } - return nil -} - -func (m *ManifestItem) GetMetadata() *Metadata { - if m != nil { - return m.Metadata - } - return nil -} - -type Asset struct { - Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` - Md5Size int64 `protobuf:"varint,2,opt,name=md5_size,json=md5Size,proto3" json:"md5_size,omitempty"` - Md5S []string `protobuf:"bytes,3,rep,name=md5s,proto3" json:"md5s,omitempty"` - Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` - Sha256Size int64 `protobuf:"varint,5,opt,name=sha256_size,json=sha256Size,proto3" json:"sha256_size,omitempty"` - Sha256S []string `protobuf:"bytes,6,rep,name=sha256s,proto3" json:"sha256s,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Asset) Reset() { *m = Asset{} } -func (m *Asset) String() string { return proto.CompactTextString(m) } -func (*Asset) ProtoMessage() {} -func (*Asset) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{23} -} -func (m *Asset) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Asset.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Asset) XXX_Merge(src proto.Message) { - xxx_messageInfo_Asset.Merge(m, src) -} -func (m *Asset) XXX_Size() int { - return m.Size() -} -func (m *Asset) XXX_DiscardUnknown() { - xxx_messageInfo_Asset.DiscardUnknown(m) -} - -var xxx_messageInfo_Asset proto.InternalMessageInfo - -func (m *Asset) GetKind() string { - if m != nil { - return m.Kind - } - return "" -} - -func (m *Asset) GetMd5Size() int64 { - if m != nil { - return m.Md5Size - } - return 0 -} - -func (m *Asset) GetMd5S() []string { - if m != nil { - return m.Md5S - } - return nil -} - -func (m *Asset) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -func (m *Asset) GetSha256Size() int64 { - if m != nil { - return m.Sha256Size - } - return 0 -} - -func (m *Asset) GetSha256S() []string { - if m != nil { - return m.Sha256S - } - return nil -} - -type Metadata struct { - BundleIdentifier string `protobuf:"bytes,1,opt,name=bundle_identifier,json=bundleIdentifier,proto3" json:"bundle_identifier,omitempty"` - BundleVersion string `protobuf:"bytes,2,opt,name=bundle_version,json=bundleVersion,proto3" json:"bundle_version,omitempty"` - Items []*BundleInfo `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` - Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"` - Subtitle string `protobuf:"bytes,5,opt,name=subtitle,proto3" json:"subtitle,omitempty"` - Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` - SizeInBytes int64 `protobuf:"varint,7,opt,name=size_in_bytes,json=sizeInBytes,proto3" json:"size_in_bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Metadata) Reset() { *m = Metadata{} } -func (m *Metadata) String() string { return proto.CompactTextString(m) } -func (*Metadata) ProtoMessage() {} -func (*Metadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{24} -} -func (m *Metadata) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Metadata.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Metadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_Metadata.Merge(m, src) -} -func (m *Metadata) XXX_Size() int { - return m.Size() -} -func (m *Metadata) XXX_DiscardUnknown() { - xxx_messageInfo_Metadata.DiscardUnknown(m) -} - -var xxx_messageInfo_Metadata proto.InternalMessageInfo - -func (m *Metadata) GetBundleIdentifier() string { - if m != nil { - return m.BundleIdentifier - } - return "" -} - -func (m *Metadata) GetBundleVersion() string { - if m != nil { - return m.BundleVersion - } - return "" -} - -func (m *Metadata) GetItems() []*BundleInfo { - if m != nil { - return m.Items - } - return nil -} - -func (m *Metadata) GetKind() string { - if m != nil { - return m.Kind - } - return "" -} - -func (m *Metadata) GetSubtitle() string { - if m != nil { - return m.Subtitle - } - return "" -} - -func (m *Metadata) GetTitle() string { - if m != nil { - return m.Title - } - return "" -} - -func (m *Metadata) GetSizeInBytes() int64 { - if m != nil { - return m.SizeInBytes - } - return 0 -} - -type BundleInfo struct { - BundleIdentifier string `protobuf:"bytes,1,opt,name=bundle_identifier,json=bundleIdentifier,proto3" json:"bundle_identifier,omitempty"` - BundleVersion string `protobuf:"bytes,2,opt,name=bundle_version,json=bundleVersion,proto3" json:"bundle_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BundleInfo) Reset() { *m = BundleInfo{} } -func (m *BundleInfo) String() string { return proto.CompactTextString(m) } -func (*BundleInfo) ProtoMessage() {} -func (*BundleInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{25} -} -func (m *BundleInfo) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BundleInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BundleInfo.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BundleInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_BundleInfo.Merge(m, src) -} -func (m *BundleInfo) XXX_Size() int { - return m.Size() -} -func (m *BundleInfo) XXX_DiscardUnknown() { - xxx_messageInfo_BundleInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_BundleInfo proto.InternalMessageInfo - -func (m *BundleInfo) GetBundleIdentifier() string { - if m != nil { - return m.BundleIdentifier - } - return "" -} - -func (m *BundleInfo) GetBundleVersion() string { - if m != nil { - return m.BundleVersion - } - return "" -} - -type ApplyRedemptionCode struct { - Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` - RedemptionCode string `protobuf:"bytes,2,opt,name=redemption_code,json=redemptionCode,proto3" json:"redemption_code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplyRedemptionCode) Reset() { *m = ApplyRedemptionCode{} } -func (m *ApplyRedemptionCode) String() string { return proto.CompactTextString(m) } -func (*ApplyRedemptionCode) ProtoMessage() {} -func (*ApplyRedemptionCode) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{26} -} -func (m *ApplyRedemptionCode) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ApplyRedemptionCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ApplyRedemptionCode.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ApplyRedemptionCode) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplyRedemptionCode.Merge(m, src) -} -func (m *ApplyRedemptionCode) XXX_Size() int { - return m.Size() -} -func (m *ApplyRedemptionCode) XXX_DiscardUnknown() { - xxx_messageInfo_ApplyRedemptionCode.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplyRedemptionCode proto.InternalMessageInfo - -func (m *ApplyRedemptionCode) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" -} - -func (m *ApplyRedemptionCode) GetRedemptionCode() string { - if m != nil { - return m.RedemptionCode - } - return "" -} - -type ManagedApplicationList struct { - Identifiers []string `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ManagedApplicationList) Reset() { *m = ManagedApplicationList{} } -func (m *ManagedApplicationList) String() string { return proto.CompactTextString(m) } -func (*ManagedApplicationList) ProtoMessage() {} -func (*ManagedApplicationList) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{27} -} -func (m *ManagedApplicationList) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ManagedApplicationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ManagedApplicationList.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ManagedApplicationList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ManagedApplicationList.Merge(m, src) -} -func (m *ManagedApplicationList) XXX_Size() int { - return m.Size() -} -func (m *ManagedApplicationList) XXX_DiscardUnknown() { - xxx_messageInfo_ManagedApplicationList.DiscardUnknown(m) -} - -var xxx_messageInfo_ManagedApplicationList proto.InternalMessageInfo - -func (m *ManagedApplicationList) GetIdentifiers() []string { - if m != nil { - return m.Identifiers - } - return nil -} - -type RemoveApplication struct { - Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoveApplication) Reset() { *m = RemoveApplication{} } -func (m *RemoveApplication) String() string { return proto.CompactTextString(m) } -func (*RemoveApplication) ProtoMessage() {} -func (*RemoveApplication) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{28} -} -func (m *RemoveApplication) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveApplication.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RemoveApplication) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveApplication.Merge(m, src) -} -func (m *RemoveApplication) XXX_Size() int { - return m.Size() -} -func (m *RemoveApplication) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveApplication.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveApplication proto.InternalMessageInfo - -func (m *RemoveApplication) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" -} - -type InviteToProgram struct { - ProgramId string `protobuf:"bytes,1,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty"` - InvitationUrl string `protobuf:"bytes,2,opt,name=invitation_url,json=invitationUrl,proto3" json:"invitation_url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InviteToProgram) Reset() { *m = InviteToProgram{} } -func (m *InviteToProgram) String() string { return proto.CompactTextString(m) } -func (*InviteToProgram) ProtoMessage() {} -func (*InviteToProgram) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{29} -} -func (m *InviteToProgram) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InviteToProgram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InviteToProgram.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *InviteToProgram) XXX_Merge(src proto.Message) { - xxx_messageInfo_InviteToProgram.Merge(m, src) -} -func (m *InviteToProgram) XXX_Size() int { - return m.Size() -} -func (m *InviteToProgram) XXX_DiscardUnknown() { - xxx_messageInfo_InviteToProgram.DiscardUnknown(m) -} - -var xxx_messageInfo_InviteToProgram proto.InternalMessageInfo - -func (m *InviteToProgram) GetProgramId() string { - if m != nil { - return m.ProgramId - } - return "" -} - -func (m *InviteToProgram) GetInvitationUrl() string { - if m != nil { - return m.InvitationUrl - } - return "" -} - -type ValidateApplications struct { - Identifiers []string `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ValidateApplications) Reset() { *m = ValidateApplications{} } -func (m *ValidateApplications) String() string { return proto.CompactTextString(m) } -func (*ValidateApplications) ProtoMessage() {} -func (*ValidateApplications) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{30} -} -func (m *ValidateApplications) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ValidateApplications) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ValidateApplications.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ValidateApplications) XXX_Merge(src proto.Message) { - xxx_messageInfo_ValidateApplications.Merge(m, src) -} -func (m *ValidateApplications) XXX_Size() int { - return m.Size() -} -func (m *ValidateApplications) XXX_DiscardUnknown() { - xxx_messageInfo_ValidateApplications.DiscardUnknown(m) -} - -var xxx_messageInfo_ValidateApplications proto.InternalMessageInfo - -func (m *ValidateApplications) GetIdentifiers() []string { - if m != nil { - return m.Identifiers - } - return nil -} - -type AccountConfiguration struct { - SkipPrimarySetupAccountCreation bool `protobuf:"varint,1,opt,name=skip_primary_setup_account_creation,json=skipPrimarySetupAccountCreation,proto3" json:"skip_primary_setup_account_creation,omitempty"` - SetPrimarySetupAccountAsRegularUser bool `protobuf:"varint,2,opt,name=set_primary_setup_account_as_regular_user,json=setPrimarySetupAccountAsRegularUser,proto3" json:"set_primary_setup_account_as_regular_user,omitempty"` - DontAutoPopulatePrimaryAccountInfo bool `protobuf:"varint,4,opt,name=dont_auto_populate_primary_account_info,json=dontAutoPopulatePrimaryAccountInfo,proto3" json:"dont_auto_populate_primary_account_info,omitempty"` - LockPrimaryAccountInfo bool `protobuf:"varint,5,opt,name=lock_primary_account_info,json=lockPrimaryAccountInfo,proto3" json:"lock_primary_account_info,omitempty"` - PrimaryAccountFullName string `protobuf:"bytes,6,opt,name=primary_account_full_name,json=primaryAccountFullName,proto3" json:"primary_account_full_name,omitempty"` - PrimaryAccountUserName string `protobuf:"bytes,7,opt,name=primary_account_user_name,json=primaryAccountUserName,proto3" json:"primary_account_user_name,omitempty"` - AutoSetupAdminAccounts []*AutoSetupAdminAccounts `protobuf:"bytes,3,rep,name=auto_setup_admin_accounts,json=autoSetupAdminAccounts,proto3" json:"auto_setup_admin_accounts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AccountConfiguration) Reset() { *m = AccountConfiguration{} } -func (m *AccountConfiguration) String() string { return proto.CompactTextString(m) } -func (*AccountConfiguration) ProtoMessage() {} -func (*AccountConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{31} -} -func (m *AccountConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AccountConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AccountConfiguration.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AccountConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_AccountConfiguration.Merge(m, src) -} -func (m *AccountConfiguration) XXX_Size() int { - return m.Size() -} -func (m *AccountConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_AccountConfiguration.DiscardUnknown(m) -} - -var xxx_messageInfo_AccountConfiguration proto.InternalMessageInfo - -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) GetDontAutoPopulatePrimaryAccountInfo() bool { - if m != nil { - return m.DontAutoPopulatePrimaryAccountInfo - } - return false -} - -func (m *AccountConfiguration) GetLockPrimaryAccountInfo() bool { - if m != nil { - return m.LockPrimaryAccountInfo - } - return false -} - -func (m *AccountConfiguration) GetPrimaryAccountFullName() string { - if m != nil { - return m.PrimaryAccountFullName - } - return "" -} - -func (m *AccountConfiguration) GetPrimaryAccountUserName() string { - if m != nil { - return m.PrimaryAccountUserName - } - return "" -} - -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,proto3" json:"short_name,omitempty"` - FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" 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,proto3" json:"hidden,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AutoSetupAdminAccounts) Reset() { *m = AutoSetupAdminAccounts{} } -func (m *AutoSetupAdminAccounts) String() string { return proto.CompactTextString(m) } -func (*AutoSetupAdminAccounts) ProtoMessage() {} -func (*AutoSetupAdminAccounts) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{32} -} -func (m *AutoSetupAdminAccounts) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AutoSetupAdminAccounts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AutoSetupAdminAccounts.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AutoSetupAdminAccounts) XXX_Merge(src proto.Message) { - xxx_messageInfo_AutoSetupAdminAccounts.Merge(m, src) -} -func (m *AutoSetupAdminAccounts) XXX_Size() int { - return m.Size() -} -func (m *AutoSetupAdminAccounts) XXX_DiscardUnknown() { - xxx_messageInfo_AutoSetupAdminAccounts.DiscardUnknown(m) -} - -var xxx_messageInfo_AutoSetupAdminAccounts proto.InternalMessageInfo - -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 InstallMedia struct { - ItunesStoreId int64 `protobuf:"varint,1,opt,name=itunes_store_id,json=itunesStoreId,proto3" json:"itunes_store_id,omitempty"` - MediaUrl string `protobuf:"bytes,2,opt,name=media_url,json=mediaUrl,proto3" json:"media_url,omitempty"` - MediaType string `protobuf:"bytes,3,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InstallMedia) Reset() { *m = InstallMedia{} } -func (m *InstallMedia) String() string { return proto.CompactTextString(m) } -func (*InstallMedia) ProtoMessage() {} -func (*InstallMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{33} -} -func (m *InstallMedia) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *InstallMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_InstallMedia.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *InstallMedia) XXX_Merge(src proto.Message) { - xxx_messageInfo_InstallMedia.Merge(m, src) -} -func (m *InstallMedia) XXX_Size() int { - return m.Size() -} -func (m *InstallMedia) XXX_DiscardUnknown() { - xxx_messageInfo_InstallMedia.DiscardUnknown(m) -} - -var xxx_messageInfo_InstallMedia proto.InternalMessageInfo - -func (m *InstallMedia) GetItunesStoreId() int64 { - if m != nil { - return m.ItunesStoreId - } - return 0 -} - -func (m *InstallMedia) GetMediaUrl() string { - if m != nil { - return m.MediaUrl - } - return "" -} - -func (m *InstallMedia) GetMediaType() string { - if m != nil { - return m.MediaType - } - return "" -} - -type RemoveMedia struct { - MediaType string `protobuf:"bytes,1,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` - ItunesStoreId int64 `protobuf:"varint,2,opt,name=itunes_store_id,json=itunesStoreId,proto3" json:"itunes_store_id,omitempty"` - PersistentId string `protobuf:"bytes,3,opt,name=persistent_id,json=persistentId,proto3" json:"persistent_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RemoveMedia) Reset() { *m = RemoveMedia{} } -func (m *RemoveMedia) String() string { return proto.CompactTextString(m) } -func (*RemoveMedia) ProtoMessage() {} -func (*RemoveMedia) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{34} -} -func (m *RemoveMedia) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RemoveMedia) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RemoveMedia.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RemoveMedia) XXX_Merge(src proto.Message) { - xxx_messageInfo_RemoveMedia.Merge(m, src) -} -func (m *RemoveMedia) XXX_Size() int { - return m.Size() -} -func (m *RemoveMedia) XXX_DiscardUnknown() { - xxx_messageInfo_RemoveMedia.DiscardUnknown(m) -} - -var xxx_messageInfo_RemoveMedia proto.InternalMessageInfo - -func (m *RemoveMedia) GetMediaType() string { - if m != nil { - return m.MediaType - } - return "" -} - -func (m *RemoveMedia) GetItunesStoreId() int64 { - if m != nil { - return m.ItunesStoreId - } - return 0 -} - -func (m *RemoveMedia) GetPersistentId() string { - if m != nil { - return m.PersistentId - } - return "" -} - -type Settings struct { - Settings []*Setting `protobuf:"bytes,1,rep,name=settings,proto3" json:"settings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Settings) Reset() { *m = Settings{} } -func (m *Settings) String() string { return proto.CompactTextString(m) } -func (*Settings) ProtoMessage() {} -func (*Settings) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{35} -} -func (m *Settings) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Settings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Settings.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Settings) XXX_Merge(src proto.Message) { - xxx_messageInfo_Settings.Merge(m, src) -} -func (m *Settings) XXX_Size() int { - return m.Size() -} -func (m *Settings) XXX_DiscardUnknown() { - xxx_messageInfo_Settings.DiscardUnknown(m) -} - -var xxx_messageInfo_Settings proto.InternalMessageInfo - -func (m *Settings) GetSettings() []*Setting { - if m != nil { - return m.Settings - } - return nil -} - -type Setting struct { - Item string `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` - DeviceName *DeviceNameSetting `protobuf:"bytes,2,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` - Hostname *HostnameSetting `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"` - VoiceRoaming *VoiceRoamingSetting `protobuf:"bytes,4,opt,name=voice_roaming,json=voiceRoaming,proto3" json:"voice_roaming,omitempty"` - PersonalHotspot *PersonalHotspotSetting `protobuf:"bytes,5,opt,name=personal_hotspot,json=personalHotspot,proto3" json:"personal_hotspot,omitempty"` - Wallpaper *WallpaperSetting `protobuf:"bytes,6,opt,name=wallpaper,proto3" json:"wallpaper,omitempty"` - DataRoaming *DataRoamingSetting `protobuf:"bytes,7,opt,name=data_roaming,json=dataRoaming,proto3" json:"data_roaming,omitempty"` - Bluetooth *BluetoothSetting `protobuf:"bytes,8,opt,name=bluetooth,proto3" json:"bluetooth,omitempty"` - ApplicationAttributes *ApplicationAttributesSetting `protobuf:"bytes,9,opt,name=application_attributes,json=applicationAttributes,proto3" json:"application_attributes,omitempty"` - MdmOptions *MDMOptionsSetting `protobuf:"bytes,10,opt,name=mdm_options,json=mdmOptions,proto3" json:"mdm_options,omitempty"` - PasscodeLockGracePeriod *PasscodeLockGracePeriodSetting `protobuf:"bytes,11,opt,name=passcode_lock_grace_period,json=passcodeLockGracePeriod,proto3" json:"passcode_lock_grace_period,omitempty"` - MaximumResidentUsers *MaximumResidentUsersSetting `protobuf:"bytes,12,opt,name=maximum_resident_users,json=maximumResidentUsers,proto3" json:"maximum_resident_users,omitempty"` - DiagnosticSubmission *DiagnosticSubmissionSetting `protobuf:"bytes,13,opt,name=diagnostic_submission,json=diagnosticSubmission,proto3" json:"diagnostic_submission,omitempty"` - AppAnalytics *AppAnalyticsSetting `protobuf:"bytes,14,opt,name=app_analytics,json=appAnalytics,proto3" json:"app_analytics,omitempty"` - ApplicationConfiguration *ApplicationConfigurationSetting `protobuf:"bytes,15,opt,name=application_configuration,json=applicationConfiguration,proto3" json:"application_configuration,omitempty"` - TimeZone *TimeZoneSetting `protobuf:"bytes,16,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Setting) Reset() { *m = Setting{} } -func (m *Setting) String() string { return proto.CompactTextString(m) } -func (*Setting) ProtoMessage() {} -func (*Setting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{36} -} -func (m *Setting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Setting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Setting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Setting) XXX_Merge(src proto.Message) { - xxx_messageInfo_Setting.Merge(m, src) -} -func (m *Setting) XXX_Size() int { - return m.Size() -} -func (m *Setting) XXX_DiscardUnknown() { - xxx_messageInfo_Setting.DiscardUnknown(m) -} - -var xxx_messageInfo_Setting proto.InternalMessageInfo - -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 -} - -func (m *Setting) GetVoiceRoaming() *VoiceRoamingSetting { - if m != nil { - return m.VoiceRoaming - } - return nil -} - -func (m *Setting) GetPersonalHotspot() *PersonalHotspotSetting { - if m != nil { - return m.PersonalHotspot - } - return nil -} - -func (m *Setting) GetWallpaper() *WallpaperSetting { - if m != nil { - return m.Wallpaper - } - return nil -} - -func (m *Setting) GetDataRoaming() *DataRoamingSetting { - if m != nil { - return m.DataRoaming - } - return nil -} - -func (m *Setting) GetBluetooth() *BluetoothSetting { - if m != nil { - return m.Bluetooth - } - return nil -} - -func (m *Setting) GetApplicationAttributes() *ApplicationAttributesSetting { - if m != nil { - return m.ApplicationAttributes - } - return nil -} - -func (m *Setting) GetMdmOptions() *MDMOptionsSetting { - if m != nil { - return m.MdmOptions - } - return nil -} - -func (m *Setting) GetPasscodeLockGracePeriod() *PasscodeLockGracePeriodSetting { - if m != nil { - return m.PasscodeLockGracePeriod - } - return nil -} - -func (m *Setting) GetMaximumResidentUsers() *MaximumResidentUsersSetting { - if m != nil { - return m.MaximumResidentUsers - } - return nil -} - -func (m *Setting) GetDiagnosticSubmission() *DiagnosticSubmissionSetting { - if m != nil { - return m.DiagnosticSubmission - } - return nil -} - -func (m *Setting) GetAppAnalytics() *AppAnalyticsSetting { - if m != nil { - return m.AppAnalytics - } - return nil -} - -func (m *Setting) GetApplicationConfiguration() *ApplicationConfigurationSetting { - if m != nil { - return m.ApplicationConfiguration - } - return nil -} - -func (m *Setting) GetTimeZone() *TimeZoneSetting { - if m != nil { - return m.TimeZone - } - return nil -} - -type VoiceRoamingSetting struct { - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VoiceRoamingSetting) Reset() { *m = VoiceRoamingSetting{} } -func (m *VoiceRoamingSetting) String() string { return proto.CompactTextString(m) } -func (*VoiceRoamingSetting) ProtoMessage() {} -func (*VoiceRoamingSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{37} -} -func (m *VoiceRoamingSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VoiceRoamingSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VoiceRoamingSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *VoiceRoamingSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_VoiceRoamingSetting.Merge(m, src) -} -func (m *VoiceRoamingSetting) XXX_Size() int { - return m.Size() -} -func (m *VoiceRoamingSetting) XXX_DiscardUnknown() { - xxx_messageInfo_VoiceRoamingSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_VoiceRoamingSetting proto.InternalMessageInfo - -func (m *VoiceRoamingSetting) GetEnabled() bool { - if m != nil { - return m.Enabled - } - return false -} - -type PersonalHotspotSetting struct { - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PersonalHotspotSetting) Reset() { *m = PersonalHotspotSetting{} } -func (m *PersonalHotspotSetting) String() string { return proto.CompactTextString(m) } -func (*PersonalHotspotSetting) ProtoMessage() {} -func (*PersonalHotspotSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{38} -} -func (m *PersonalHotspotSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PersonalHotspotSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PersonalHotspotSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PersonalHotspotSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_PersonalHotspotSetting.Merge(m, src) -} -func (m *PersonalHotspotSetting) XXX_Size() int { - return m.Size() -} -func (m *PersonalHotspotSetting) XXX_DiscardUnknown() { - xxx_messageInfo_PersonalHotspotSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_PersonalHotspotSetting proto.InternalMessageInfo - -func (m *PersonalHotspotSetting) GetEnabled() bool { - if m != nil { - return m.Enabled - } - return false -} - -type WallpaperSetting struct { - Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` - Where int64 `protobuf:"varint,2,opt,name=where,proto3" json:"where,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WallpaperSetting) Reset() { *m = WallpaperSetting{} } -func (m *WallpaperSetting) String() string { return proto.CompactTextString(m) } -func (*WallpaperSetting) ProtoMessage() {} -func (*WallpaperSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{39} -} -func (m *WallpaperSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *WallpaperSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_WallpaperSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *WallpaperSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_WallpaperSetting.Merge(m, src) -} -func (m *WallpaperSetting) XXX_Size() int { - return m.Size() -} -func (m *WallpaperSetting) XXX_DiscardUnknown() { - xxx_messageInfo_WallpaperSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_WallpaperSetting proto.InternalMessageInfo - -func (m *WallpaperSetting) GetImage() []byte { - if m != nil { - return m.Image - } - return nil -} - -func (m *WallpaperSetting) GetWhere() int64 { - if m != nil { - return m.Where - } - return 0 -} - -type DataRoamingSetting struct { - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DataRoamingSetting) Reset() { *m = DataRoamingSetting{} } -func (m *DataRoamingSetting) String() string { return proto.CompactTextString(m) } -func (*DataRoamingSetting) ProtoMessage() {} -func (*DataRoamingSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{40} -} -func (m *DataRoamingSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DataRoamingSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DataRoamingSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DataRoamingSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataRoamingSetting.Merge(m, src) -} -func (m *DataRoamingSetting) XXX_Size() int { - return m.Size() -} -func (m *DataRoamingSetting) XXX_DiscardUnknown() { - xxx_messageInfo_DataRoamingSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_DataRoamingSetting proto.InternalMessageInfo - -func (m *DataRoamingSetting) GetEnabled() bool { - if m != nil { - return m.Enabled - } - return false -} - -type BluetoothSetting struct { - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BluetoothSetting) Reset() { *m = BluetoothSetting{} } -func (m *BluetoothSetting) String() string { return proto.CompactTextString(m) } -func (*BluetoothSetting) ProtoMessage() {} -func (*BluetoothSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{41} -} -func (m *BluetoothSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *BluetoothSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_BluetoothSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *BluetoothSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_BluetoothSetting.Merge(m, src) -} -func (m *BluetoothSetting) XXX_Size() int { - return m.Size() -} -func (m *BluetoothSetting) XXX_DiscardUnknown() { - xxx_messageInfo_BluetoothSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_BluetoothSetting proto.InternalMessageInfo - -func (m *BluetoothSetting) GetEnabled() bool { - if m != nil { - return m.Enabled - } - return false -} - -type ApplicationAttributesSetting struct { - Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` - ApplicationAttributes *ApplicationAttributes `protobuf:"bytes,2,opt,name=application_attributes,json=applicationAttributes,proto3" json:"application_attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationAttributesSetting) Reset() { *m = ApplicationAttributesSetting{} } -func (m *ApplicationAttributesSetting) String() string { return proto.CompactTextString(m) } -func (*ApplicationAttributesSetting) ProtoMessage() {} -func (*ApplicationAttributesSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{42} -} -func (m *ApplicationAttributesSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ApplicationAttributesSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ApplicationAttributesSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ApplicationAttributesSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationAttributesSetting.Merge(m, src) -} -func (m *ApplicationAttributesSetting) XXX_Size() int { - return m.Size() -} -func (m *ApplicationAttributesSetting) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationAttributesSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationAttributesSetting proto.InternalMessageInfo - -func (m *ApplicationAttributesSetting) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" -} - -func (m *ApplicationAttributesSetting) GetApplicationAttributes() *ApplicationAttributes { - if m != nil { - return m.ApplicationAttributes - } - return nil -} - -type ApplicationConfigurationSetting struct { - Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` - ConfigurationDictionaryData []byte `protobuf:"bytes,2,opt,name=configuration_dictionary_data,json=configurationDictionaryData,proto3" json:"configuration_dictionary_data,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationConfigurationSetting) Reset() { *m = ApplicationConfigurationSetting{} } -func (m *ApplicationConfigurationSetting) String() string { return proto.CompactTextString(m) } -func (*ApplicationConfigurationSetting) ProtoMessage() {} -func (*ApplicationConfigurationSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{43} -} -func (m *ApplicationConfigurationSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ApplicationConfigurationSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ApplicationConfigurationSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ApplicationConfigurationSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationConfigurationSetting.Merge(m, src) -} -func (m *ApplicationConfigurationSetting) XXX_Size() int { - return m.Size() -} -func (m *ApplicationConfigurationSetting) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationConfigurationSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationConfigurationSetting proto.InternalMessageInfo - -func (m *ApplicationConfigurationSetting) GetIdentifier() string { - if m != nil { - return m.Identifier - } - return "" -} - -func (m *ApplicationConfigurationSetting) GetConfigurationDictionaryData() []byte { - if m != nil { - return m.ConfigurationDictionaryData - } - return nil -} - -type ApplicationAttributes struct { - VpnUuid string `protobuf:"bytes,1,opt,name=vpn_uuid,json=vpnUuid,proto3" json:"vpn_uuid,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApplicationAttributes) Reset() { *m = ApplicationAttributes{} } -func (m *ApplicationAttributes) String() string { return proto.CompactTextString(m) } -func (*ApplicationAttributes) ProtoMessage() {} -func (*ApplicationAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{44} -} -func (m *ApplicationAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ApplicationAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ApplicationAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ApplicationAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApplicationAttributes.Merge(m, src) -} -func (m *ApplicationAttributes) XXX_Size() int { - return m.Size() -} -func (m *ApplicationAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ApplicationAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_ApplicationAttributes proto.InternalMessageInfo - -func (m *ApplicationAttributes) GetVpnUuid() string { - if m != nil { - return m.VpnUuid - } - return "" -} - -type DeviceNameSetting struct { - DeviceName string `protobuf:"bytes,1,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeviceNameSetting) Reset() { *m = DeviceNameSetting{} } -func (m *DeviceNameSetting) String() string { return proto.CompactTextString(m) } -func (*DeviceNameSetting) ProtoMessage() {} -func (*DeviceNameSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{45} -} -func (m *DeviceNameSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DeviceNameSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DeviceNameSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DeviceNameSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeviceNameSetting.Merge(m, src) -} -func (m *DeviceNameSetting) XXX_Size() int { - return m.Size() -} -func (m *DeviceNameSetting) XXX_DiscardUnknown() { - xxx_messageInfo_DeviceNameSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_DeviceNameSetting proto.InternalMessageInfo - -func (m *DeviceNameSetting) GetDeviceName() string { - if m != nil { - return m.DeviceName - } - return "" -} - -type TimeZoneSetting struct { - TimeZone string `protobuf:"bytes,1,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TimeZoneSetting) Reset() { *m = TimeZoneSetting{} } -func (m *TimeZoneSetting) String() string { return proto.CompactTextString(m) } -func (*TimeZoneSetting) ProtoMessage() {} -func (*TimeZoneSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{46} -} -func (m *TimeZoneSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *TimeZoneSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_TimeZoneSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *TimeZoneSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_TimeZoneSetting.Merge(m, src) -} -func (m *TimeZoneSetting) XXX_Size() int { - return m.Size() -} -func (m *TimeZoneSetting) XXX_DiscardUnknown() { - xxx_messageInfo_TimeZoneSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_TimeZoneSetting proto.InternalMessageInfo - -func (m *TimeZoneSetting) GetTimeZone() string { - if m != nil { - return m.TimeZone - } - return "" -} - -type HostnameSetting struct { - Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HostnameSetting) Reset() { *m = HostnameSetting{} } -func (m *HostnameSetting) String() string { return proto.CompactTextString(m) } -func (*HostnameSetting) ProtoMessage() {} -func (*HostnameSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{47} -} -func (m *HostnameSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *HostnameSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_HostnameSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *HostnameSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_HostnameSetting.Merge(m, src) -} -func (m *HostnameSetting) XXX_Size() int { - return m.Size() -} -func (m *HostnameSetting) XXX_DiscardUnknown() { - xxx_messageInfo_HostnameSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_HostnameSetting proto.InternalMessageInfo - -func (m *HostnameSetting) GetHostname() string { - if m != nil { - return m.Hostname - } - return "" -} - -type MDMOptionsSetting struct { - MdmOptions *MDMOptions `protobuf:"bytes,1,opt,name=mdm_options,json=mdmOptions,proto3" json:"mdm_options,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MDMOptionsSetting) Reset() { *m = MDMOptionsSetting{} } -func (m *MDMOptionsSetting) String() string { return proto.CompactTextString(m) } -func (*MDMOptionsSetting) ProtoMessage() {} -func (*MDMOptionsSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{48} -} -func (m *MDMOptionsSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MDMOptionsSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MDMOptionsSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MDMOptionsSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_MDMOptionsSetting.Merge(m, src) -} -func (m *MDMOptionsSetting) XXX_Size() int { - return m.Size() -} -func (m *MDMOptionsSetting) XXX_DiscardUnknown() { - xxx_messageInfo_MDMOptionsSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_MDMOptionsSetting proto.InternalMessageInfo - -func (m *MDMOptionsSetting) GetMdmOptions() *MDMOptions { - if m != nil { - return m.MdmOptions - } - return nil -} - -type MDMOptions struct { - ActivationLockAllowedWhileSupervised bool `protobuf:"varint,1,opt,name=activation_lock_allowed_while_supervised,json=activationLockAllowedWhileSupervised,proto3" json:"activation_lock_allowed_while_supervised,omitempty"` - BootstrapTokenAllowed bool `protobuf:"varint,2,opt,name=bootstrap_token_allowed,json=bootstrapTokenAllowed,proto3" json:"bootstrap_token_allowed,omitempty"` - PromptUserToAllowBootstrapTokenForAuthentication bool `protobuf:"varint,3,opt,name=prompt_user_to_allow_bootstrap_token_for_authentication,json=promptUserToAllowBootstrapTokenForAuthentication,proto3" json:"prompt_user_to_allow_bootstrap_token_for_authentication,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MDMOptions) Reset() { *m = MDMOptions{} } -func (m *MDMOptions) String() string { return proto.CompactTextString(m) } -func (*MDMOptions) ProtoMessage() {} -func (*MDMOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{49} -} -func (m *MDMOptions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MDMOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MDMOptions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MDMOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_MDMOptions.Merge(m, src) -} -func (m *MDMOptions) XXX_Size() int { - return m.Size() -} -func (m *MDMOptions) XXX_DiscardUnknown() { - xxx_messageInfo_MDMOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_MDMOptions proto.InternalMessageInfo - -func (m *MDMOptions) GetActivationLockAllowedWhileSupervised() bool { - if m != nil { - return m.ActivationLockAllowedWhileSupervised - } - return false -} - -func (m *MDMOptions) GetBootstrapTokenAllowed() bool { - if m != nil { - return m.BootstrapTokenAllowed - } - return false -} - -func (m *MDMOptions) GetPromptUserToAllowBootstrapTokenForAuthentication() bool { - if m != nil { - return m.PromptUserToAllowBootstrapTokenForAuthentication - } - return false -} - -type PasscodeLockGracePeriodSetting struct { - PasscodeLockGracePeriod int64 `protobuf:"varint,1,opt,name=passcode_lock_grace_period,json=passcodeLockGracePeriod,proto3" json:"passcode_lock_grace_period,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PasscodeLockGracePeriodSetting) Reset() { *m = PasscodeLockGracePeriodSetting{} } -func (m *PasscodeLockGracePeriodSetting) String() string { return proto.CompactTextString(m) } -func (*PasscodeLockGracePeriodSetting) ProtoMessage() {} -func (*PasscodeLockGracePeriodSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{50} -} -func (m *PasscodeLockGracePeriodSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *PasscodeLockGracePeriodSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_PasscodeLockGracePeriodSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *PasscodeLockGracePeriodSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_PasscodeLockGracePeriodSetting.Merge(m, src) -} -func (m *PasscodeLockGracePeriodSetting) XXX_Size() int { - return m.Size() -} -func (m *PasscodeLockGracePeriodSetting) XXX_DiscardUnknown() { - xxx_messageInfo_PasscodeLockGracePeriodSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_PasscodeLockGracePeriodSetting proto.InternalMessageInfo - -func (m *PasscodeLockGracePeriodSetting) GetPasscodeLockGracePeriod() int64 { - if m != nil { - return m.PasscodeLockGracePeriod - } - return 0 -} - -type MaximumResidentUsersSetting struct { - MaximumResidentUsers int64 `protobuf:"varint,1,opt,name=maximum_resident_users,json=maximumResidentUsers,proto3" json:"maximum_resident_users,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MaximumResidentUsersSetting) Reset() { *m = MaximumResidentUsersSetting{} } -func (m *MaximumResidentUsersSetting) String() string { return proto.CompactTextString(m) } -func (*MaximumResidentUsersSetting) ProtoMessage() {} -func (*MaximumResidentUsersSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{51} -} -func (m *MaximumResidentUsersSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *MaximumResidentUsersSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_MaximumResidentUsersSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *MaximumResidentUsersSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_MaximumResidentUsersSetting.Merge(m, src) -} -func (m *MaximumResidentUsersSetting) XXX_Size() int { - return m.Size() -} -func (m *MaximumResidentUsersSetting) XXX_DiscardUnknown() { - xxx_messageInfo_MaximumResidentUsersSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_MaximumResidentUsersSetting proto.InternalMessageInfo - -func (m *MaximumResidentUsersSetting) GetMaximumResidentUsers() int64 { - if m != nil { - return m.MaximumResidentUsers - } - return 0 -} - -type DiagnosticSubmissionSetting struct { - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DiagnosticSubmissionSetting) Reset() { *m = DiagnosticSubmissionSetting{} } -func (m *DiagnosticSubmissionSetting) String() string { return proto.CompactTextString(m) } -func (*DiagnosticSubmissionSetting) ProtoMessage() {} -func (*DiagnosticSubmissionSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{52} -} -func (m *DiagnosticSubmissionSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DiagnosticSubmissionSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DiagnosticSubmissionSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *DiagnosticSubmissionSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_DiagnosticSubmissionSetting.Merge(m, src) -} -func (m *DiagnosticSubmissionSetting) XXX_Size() int { - return m.Size() -} -func (m *DiagnosticSubmissionSetting) XXX_DiscardUnknown() { - xxx_messageInfo_DiagnosticSubmissionSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_DiagnosticSubmissionSetting proto.InternalMessageInfo - -func (m *DiagnosticSubmissionSetting) GetEnabled() bool { - if m != nil { - return m.Enabled - } - return false -} - -type AppAnalyticsSetting struct { - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AppAnalyticsSetting) Reset() { *m = AppAnalyticsSetting{} } -func (m *AppAnalyticsSetting) String() string { return proto.CompactTextString(m) } -func (*AppAnalyticsSetting) ProtoMessage() {} -func (*AppAnalyticsSetting) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{53} -} -func (m *AppAnalyticsSetting) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *AppAnalyticsSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_AppAnalyticsSetting.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *AppAnalyticsSetting) XXX_Merge(src proto.Message) { - xxx_messageInfo_AppAnalyticsSetting.Merge(m, src) -} -func (m *AppAnalyticsSetting) XXX_Size() int { - return m.Size() -} -func (m *AppAnalyticsSetting) XXX_DiscardUnknown() { - xxx_messageInfo_AppAnalyticsSetting.DiscardUnknown(m) -} - -var xxx_messageInfo_AppAnalyticsSetting proto.InternalMessageInfo - -func (m *AppAnalyticsSetting) GetEnabled() bool { - if m != nil { - return m.Enabled - } - return false -} - -type ManagedApplicationConfiguration struct { - Identifiers []string `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ManagedApplicationConfiguration) Reset() { *m = ManagedApplicationConfiguration{} } -func (m *ManagedApplicationConfiguration) String() string { return proto.CompactTextString(m) } -func (*ManagedApplicationConfiguration) ProtoMessage() {} -func (*ManagedApplicationConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{54} -} -func (m *ManagedApplicationConfiguration) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ManagedApplicationConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ManagedApplicationConfiguration.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ManagedApplicationConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_ManagedApplicationConfiguration.Merge(m, src) -} -func (m *ManagedApplicationConfiguration) XXX_Size() int { - return m.Size() -} -func (m *ManagedApplicationConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_ManagedApplicationConfiguration.DiscardUnknown(m) -} - -var xxx_messageInfo_ManagedApplicationConfiguration proto.InternalMessageInfo - -func (m *ManagedApplicationConfiguration) GetIdentifiers() []string { - if m != nil { - return m.Identifiers - } - return nil -} - -type ManagedApplicationAttributes struct { - Identifiers []string `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ManagedApplicationAttributes) Reset() { *m = ManagedApplicationAttributes{} } -func (m *ManagedApplicationAttributes) String() string { return proto.CompactTextString(m) } -func (*ManagedApplicationAttributes) ProtoMessage() {} -func (*ManagedApplicationAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{55} -} -func (m *ManagedApplicationAttributes) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ManagedApplicationAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ManagedApplicationAttributes.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ManagedApplicationAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ManagedApplicationAttributes.Merge(m, src) -} -func (m *ManagedApplicationAttributes) XXX_Size() int { - return m.Size() -} -func (m *ManagedApplicationAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ManagedApplicationAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_ManagedApplicationAttributes proto.InternalMessageInfo - -func (m *ManagedApplicationAttributes) GetIdentifiers() []string { - if m != nil { - return m.Identifiers - } - return nil -} - -type ManagedApplicationFeedback struct { - Identifiers []string `protobuf:"bytes,1,rep,name=identifiers,proto3" json:"identifiers,omitempty"` - DeleteFeedback bool `protobuf:"varint,2,opt,name=delete_feedback,json=deleteFeedback,proto3" json:"delete_feedback,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ManagedApplicationFeedback) Reset() { *m = ManagedApplicationFeedback{} } -func (m *ManagedApplicationFeedback) String() string { return proto.CompactTextString(m) } -func (*ManagedApplicationFeedback) ProtoMessage() {} -func (*ManagedApplicationFeedback) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{56} -} -func (m *ManagedApplicationFeedback) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ManagedApplicationFeedback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ManagedApplicationFeedback.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ManagedApplicationFeedback) XXX_Merge(src proto.Message) { - xxx_messageInfo_ManagedApplicationFeedback.Merge(m, src) -} -func (m *ManagedApplicationFeedback) XXX_Size() int { - return m.Size() -} -func (m *ManagedApplicationFeedback) XXX_DiscardUnknown() { - xxx_messageInfo_ManagedApplicationFeedback.DiscardUnknown(m) -} - -var xxx_messageInfo_ManagedApplicationFeedback proto.InternalMessageInfo - -func (m *ManagedApplicationFeedback) GetIdentifiers() []string { - if m != nil { - return m.Identifiers - } - return nil -} - -func (m *ManagedApplicationFeedback) GetDeleteFeedback() bool { - if m != nil { - return m.DeleteFeedback - } - return false -} - -type SetFirmwarePassword struct { - CurrentPassword string `protobuf:"bytes,1,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"` - NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` - AllowOroms bool `protobuf:"varint,3,opt,name=allow_oroms,json=allowOroms,proto3" json:"allow_oroms,omitempty"` - RequestRequiresNetworkTether bool `protobuf:"varint,4,opt,name=request_requires_network_tether,json=requestRequiresNetworkTether,proto3" json:"request_requires_network_tether,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SetFirmwarePassword) Reset() { *m = SetFirmwarePassword{} } -func (m *SetFirmwarePassword) String() string { return proto.CompactTextString(m) } -func (*SetFirmwarePassword) ProtoMessage() {} -func (*SetFirmwarePassword) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{57} -} -func (m *SetFirmwarePassword) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SetFirmwarePassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SetFirmwarePassword.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SetFirmwarePassword) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetFirmwarePassword.Merge(m, src) -} -func (m *SetFirmwarePassword) XXX_Size() int { - return m.Size() -} -func (m *SetFirmwarePassword) XXX_DiscardUnknown() { - xxx_messageInfo_SetFirmwarePassword.DiscardUnknown(m) -} - -var xxx_messageInfo_SetFirmwarePassword proto.InternalMessageInfo - -func (m *SetFirmwarePassword) GetCurrentPassword() string { - if m != nil { - return m.CurrentPassword - } - return "" -} - -func (m *SetFirmwarePassword) GetNewPassword() string { - if m != nil { - return m.NewPassword - } - return "" -} - -func (m *SetFirmwarePassword) GetAllowOroms() bool { - if m != nil { - return m.AllowOroms - } - return false -} - -func (m *SetFirmwarePassword) GetRequestRequiresNetworkTether() bool { - if m != nil { - return m.RequestRequiresNetworkTether - } - return false -} - -type VerifyFirmwarePassword struct { - Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VerifyFirmwarePassword) Reset() { *m = VerifyFirmwarePassword{} } -func (m *VerifyFirmwarePassword) String() string { return proto.CompactTextString(m) } -func (*VerifyFirmwarePassword) ProtoMessage() {} -func (*VerifyFirmwarePassword) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{58} -} -func (m *VerifyFirmwarePassword) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VerifyFirmwarePassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VerifyFirmwarePassword.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *VerifyFirmwarePassword) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyFirmwarePassword.Merge(m, src) -} -func (m *VerifyFirmwarePassword) XXX_Size() int { - return m.Size() -} -func (m *VerifyFirmwarePassword) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyFirmwarePassword.DiscardUnknown(m) -} - -var xxx_messageInfo_VerifyFirmwarePassword proto.InternalMessageInfo - -func (m *VerifyFirmwarePassword) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -type SetRecoveryLock struct { - CurrentPassword string `protobuf:"bytes,1,opt,name=current_password,json=currentPassword,proto3" json:"current_password,omitempty"` - NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` - AllowOroms bool `protobuf:"varint,3,opt,name=allow_oroms,json=allowOroms,proto3" json:"allow_oroms,omitempty"` - RequestRequiresNetworkTether bool `protobuf:"varint,4,opt,name=request_requires_network_tether,json=requestRequiresNetworkTether,proto3" json:"request_requires_network_tether,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SetRecoveryLock) Reset() { *m = SetRecoveryLock{} } -func (m *SetRecoveryLock) String() string { return proto.CompactTextString(m) } -func (*SetRecoveryLock) ProtoMessage() {} -func (*SetRecoveryLock) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{59} -} -func (m *SetRecoveryLock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SetRecoveryLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SetRecoveryLock.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SetRecoveryLock) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetRecoveryLock.Merge(m, src) -} -func (m *SetRecoveryLock) XXX_Size() int { - return m.Size() -} -func (m *SetRecoveryLock) XXX_DiscardUnknown() { - xxx_messageInfo_SetRecoveryLock.DiscardUnknown(m) -} - -var xxx_messageInfo_SetRecoveryLock proto.InternalMessageInfo - -func (m *SetRecoveryLock) GetCurrentPassword() string { - if m != nil { - return m.CurrentPassword - } - return "" -} - -func (m *SetRecoveryLock) GetNewPassword() string { - if m != nil { - return m.NewPassword - } - return "" -} - -func (m *SetRecoveryLock) GetAllowOroms() bool { - if m != nil { - return m.AllowOroms - } - return false -} - -func (m *SetRecoveryLock) GetRequestRequiresNetworkTether() bool { - if m != nil { - return m.RequestRequiresNetworkTether - } - return false -} - -type VerifyRecoveryLock struct { - Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VerifyRecoveryLock) Reset() { *m = VerifyRecoveryLock{} } -func (m *VerifyRecoveryLock) String() string { return proto.CompactTextString(m) } -func (*VerifyRecoveryLock) ProtoMessage() {} -func (*VerifyRecoveryLock) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{60} -} -func (m *VerifyRecoveryLock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *VerifyRecoveryLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_VerifyRecoveryLock.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *VerifyRecoveryLock) XXX_Merge(src proto.Message) { - xxx_messageInfo_VerifyRecoveryLock.Merge(m, src) -} -func (m *VerifyRecoveryLock) XXX_Size() int { - return m.Size() -} -func (m *VerifyRecoveryLock) XXX_DiscardUnknown() { - xxx_messageInfo_VerifyRecoveryLock.DiscardUnknown(m) -} - -var xxx_messageInfo_VerifyRecoveryLock proto.InternalMessageInfo - -func (m *VerifyRecoveryLock) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -type SetAutoAdminPassword struct { - Guid string `protobuf:"bytes,1,opt,name=guid,proto3" json:"guid,omitempty"` - PasswordHash []byte `protobuf:"bytes,2,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SetAutoAdminPassword) Reset() { *m = SetAutoAdminPassword{} } -func (m *SetAutoAdminPassword) String() string { return proto.CompactTextString(m) } -func (*SetAutoAdminPassword) ProtoMessage() {} -func (*SetAutoAdminPassword) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{61} -} -func (m *SetAutoAdminPassword) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SetAutoAdminPassword) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SetAutoAdminPassword.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SetAutoAdminPassword) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetAutoAdminPassword.Merge(m, src) -} -func (m *SetAutoAdminPassword) XXX_Size() int { - return m.Size() -} -func (m *SetAutoAdminPassword) XXX_DiscardUnknown() { - xxx_messageInfo_SetAutoAdminPassword.DiscardUnknown(m) -} - -var xxx_messageInfo_SetAutoAdminPassword proto.InternalMessageInfo - -func (m *SetAutoAdminPassword) GetGuid() string { - if m != nil { - return m.Guid - } - return "" -} - -func (m *SetAutoAdminPassword) GetPasswordHash() []byte { - if m != nil { - return m.PasswordHash - } - return nil -} - -type ScheduleOSUpdate struct { - Updates []*Update `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScheduleOSUpdate) Reset() { *m = ScheduleOSUpdate{} } -func (m *ScheduleOSUpdate) String() string { return proto.CompactTextString(m) } -func (*ScheduleOSUpdate) ProtoMessage() {} -func (*ScheduleOSUpdate) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{62} -} -func (m *ScheduleOSUpdate) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScheduleOSUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScheduleOSUpdate.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ScheduleOSUpdate) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScheduleOSUpdate.Merge(m, src) -} -func (m *ScheduleOSUpdate) XXX_Size() int { - return m.Size() -} -func (m *ScheduleOSUpdate) XXX_DiscardUnknown() { - xxx_messageInfo_ScheduleOSUpdate.DiscardUnknown(m) -} - -var xxx_messageInfo_ScheduleOSUpdate proto.InternalMessageInfo - -func (m *ScheduleOSUpdate) GetUpdates() []*Update { - if m != nil { - return m.Updates - } - return nil -} - -type Update struct { - ProductKey string `protobuf:"bytes,1,opt,name=product_key,json=productKey,proto3" json:"product_key,omitempty"` - ProductVersion string `protobuf:"bytes,2,opt,name=product_version,json=productVersion,proto3" json:"product_version,omitempty"` - InstallAction string `protobuf:"bytes,3,opt,name=install_action,json=installAction,proto3" json:"install_action,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Update) Reset() { *m = Update{} } -func (m *Update) String() string { return proto.CompactTextString(m) } -func (*Update) ProtoMessage() {} -func (*Update) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{63} -} -func (m *Update) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Update.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *Update) XXX_Merge(src proto.Message) { - xxx_messageInfo_Update.Merge(m, src) -} -func (m *Update) XXX_Size() int { - return m.Size() -} -func (m *Update) XXX_DiscardUnknown() { - xxx_messageInfo_Update.DiscardUnknown(m) -} - -var xxx_messageInfo_Update proto.InternalMessageInfo - -func (m *Update) GetProductKey() string { - if m != nil { - return m.ProductKey - } - return "" -} - -func (m *Update) GetProductVersion() string { - if m != nil { - return m.ProductVersion - } - return "" -} - -func (m *Update) GetInstallAction() string { - if m != nil { - return m.InstallAction - } - return "" -} - -type ScheduleOSUpdateScan struct { - Force bool `protobuf:"varint,1,opt,name=force,proto3" json:"force,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ScheduleOSUpdateScan) Reset() { *m = ScheduleOSUpdateScan{} } -func (m *ScheduleOSUpdateScan) String() string { return proto.CompactTextString(m) } -func (*ScheduleOSUpdateScan) ProtoMessage() {} -func (*ScheduleOSUpdateScan) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{64} -} -func (m *ScheduleOSUpdateScan) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ScheduleOSUpdateScan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ScheduleOSUpdateScan.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ScheduleOSUpdateScan) XXX_Merge(src proto.Message) { - xxx_messageInfo_ScheduleOSUpdateScan.Merge(m, src) -} -func (m *ScheduleOSUpdateScan) XXX_Size() int { - return m.Size() -} -func (m *ScheduleOSUpdateScan) XXX_DiscardUnknown() { - xxx_messageInfo_ScheduleOSUpdateScan.DiscardUnknown(m) -} - -var xxx_messageInfo_ScheduleOSUpdateScan proto.InternalMessageInfo - -func (m *ScheduleOSUpdateScan) GetForce() bool { - if m != nil { - return m.Force - } - return false -} - -type ActiveNSExtensions struct { - FilterExtensionPoints []string `protobuf:"bytes,1,rep,name=filter_extension_points,json=filterExtensionPoints,proto3" json:"filter_extension_points,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ActiveNSExtensions) Reset() { *m = ActiveNSExtensions{} } -func (m *ActiveNSExtensions) String() string { return proto.CompactTextString(m) } -func (*ActiveNSExtensions) ProtoMessage() {} -func (*ActiveNSExtensions) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{65} -} -func (m *ActiveNSExtensions) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ActiveNSExtensions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ActiveNSExtensions.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ActiveNSExtensions) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActiveNSExtensions.Merge(m, src) -} -func (m *ActiveNSExtensions) XXX_Size() int { - return m.Size() -} -func (m *ActiveNSExtensions) XXX_DiscardUnknown() { - xxx_messageInfo_ActiveNSExtensions.DiscardUnknown(m) -} - -var xxx_messageInfo_ActiveNSExtensions proto.InternalMessageInfo - -func (m *ActiveNSExtensions) GetFilterExtensionPoints() []string { - if m != nil { - return m.FilterExtensionPoints - } - return nil -} - -type RotateFileVaultKey struct { - KeyType string `protobuf:"bytes,1,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"` - FilevaultUnlock *FileVaultUnlock `protobuf:"bytes,2,opt,name=filevault_unlock,json=filevaultUnlock,proto3" json:"filevault_unlock,omitempty"` - NewCertificate []byte `protobuf:"bytes,3,opt,name=new_certificate,json=newCertificate,proto3" json:"new_certificate,omitempty"` - ReplyEncryptionCertificate []byte `protobuf:"bytes,4,opt,name=reply_encryption_certificate,json=replyEncryptionCertificate,proto3" json:"reply_encryption_certificate,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RotateFileVaultKey) Reset() { *m = RotateFileVaultKey{} } -func (m *RotateFileVaultKey) String() string { return proto.CompactTextString(m) } -func (*RotateFileVaultKey) ProtoMessage() {} -func (*RotateFileVaultKey) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{66} -} -func (m *RotateFileVaultKey) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RotateFileVaultKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RotateFileVaultKey.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *RotateFileVaultKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_RotateFileVaultKey.Merge(m, src) -} -func (m *RotateFileVaultKey) XXX_Size() int { - return m.Size() -} -func (m *RotateFileVaultKey) XXX_DiscardUnknown() { - xxx_messageInfo_RotateFileVaultKey.DiscardUnknown(m) -} - -var xxx_messageInfo_RotateFileVaultKey proto.InternalMessageInfo - -func (m *RotateFileVaultKey) GetKeyType() string { - if m != nil { - return m.KeyType - } - return "" -} - -func (m *RotateFileVaultKey) GetFilevaultUnlock() *FileVaultUnlock { - if m != nil { - return m.FilevaultUnlock - } - return nil -} - -func (m *RotateFileVaultKey) GetNewCertificate() []byte { - if m != nil { - return m.NewCertificate - } - return nil -} - -func (m *RotateFileVaultKey) GetReplyEncryptionCertificate() []byte { - if m != nil { - return m.ReplyEncryptionCertificate - } - return nil -} - -type FileVaultUnlock struct { - Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"` - PrivateKeyExport []byte `protobuf:"bytes,2,opt,name=private_key_export,json=privateKeyExport,proto3" json:"private_key_export,omitempty"` - PrivateKeyExportPassword string `protobuf:"bytes,3,opt,name=private_key_export_password,json=privateKeyExportPassword,proto3" json:"private_key_export_password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FileVaultUnlock) Reset() { *m = FileVaultUnlock{} } -func (m *FileVaultUnlock) String() string { return proto.CompactTextString(m) } -func (*FileVaultUnlock) ProtoMessage() {} -func (*FileVaultUnlock) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{67} -} -func (m *FileVaultUnlock) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *FileVaultUnlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_FileVaultUnlock.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *FileVaultUnlock) XXX_Merge(src proto.Message) { - xxx_messageInfo_FileVaultUnlock.Merge(m, src) -} -func (m *FileVaultUnlock) XXX_Size() int { - return m.Size() -} -func (m *FileVaultUnlock) XXX_DiscardUnknown() { - xxx_messageInfo_FileVaultUnlock.DiscardUnknown(m) -} - -var xxx_messageInfo_FileVaultUnlock proto.InternalMessageInfo - -func (m *FileVaultUnlock) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -func (m *FileVaultUnlock) GetPrivateKeyExport() []byte { - if m != nil { - return m.PrivateKeyExport - } - return nil -} - -func (m *FileVaultUnlock) GetPrivateKeyExportPassword() string { - if m != nil { - return m.PrivateKeyExportPassword - } - return "" -} - -type SetBootstrapToken struct { - BootstrapToken string `protobuf:"bytes,1,opt,name=bootstrap_token,json=bootstrapToken,proto3" json:"bootstrap_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SetBootstrapToken) Reset() { *m = SetBootstrapToken{} } -func (m *SetBootstrapToken) String() string { return proto.CompactTextString(m) } -func (*SetBootstrapToken) ProtoMessage() {} -func (*SetBootstrapToken) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{68} -} -func (m *SetBootstrapToken) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *SetBootstrapToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_SetBootstrapToken.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *SetBootstrapToken) XXX_Merge(src proto.Message) { - xxx_messageInfo_SetBootstrapToken.Merge(m, src) -} -func (m *SetBootstrapToken) XXX_Size() int { - return m.Size() -} -func (m *SetBootstrapToken) XXX_DiscardUnknown() { - xxx_messageInfo_SetBootstrapToken.DiscardUnknown(m) -} - -var xxx_messageInfo_SetBootstrapToken proto.InternalMessageInfo - -func (m *SetBootstrapToken) GetBootstrapToken() string { - if m != nil { - return m.BootstrapToken - } - return "" -} - -type ResultPayload struct { - Udid string `protobuf:"bytes,1,opt,name=udid,proto3" json:"udid,omitempty"` - CommandUuid string `protobuf:"bytes,2,opt,name=command_uuid,json=commandUuid,proto3" json:"command_uuid,omitempty"` - ErrorChain []*ErrorChain `protobuf:"bytes,3,rep,name=error_chain,json=errorChain,proto3" json:"error_chain,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResultPayload) Reset() { *m = ResultPayload{} } -func (m *ResultPayload) String() string { return proto.CompactTextString(m) } -func (*ResultPayload) ProtoMessage() {} -func (*ResultPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{69} -} -func (m *ResultPayload) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ResultPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ResultPayload.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ResultPayload) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResultPayload.Merge(m, src) -} -func (m *ResultPayload) XXX_Size() int { - return m.Size() -} -func (m *ResultPayload) XXX_DiscardUnknown() { - xxx_messageInfo_ResultPayload.DiscardUnknown(m) -} - -var xxx_messageInfo_ResultPayload proto.InternalMessageInfo - -func (m *ResultPayload) GetUdid() string { - if m != nil { - return m.Udid - } - return "" -} - -func (m *ResultPayload) GetCommandUuid() string { - if m != nil { - return m.CommandUuid - } - return "" -} - -func (m *ResultPayload) GetErrorChain() []*ErrorChain { - if m != nil { - return m.ErrorChain - } - return nil -} - -type ErrorChain struct { - LocalizedDescription string `protobuf:"bytes,1,opt,name=localized_description,json=localizedDescription,proto3" json:"localized_description,omitempty"` - UsEnglishDescription string `protobuf:"bytes,2,opt,name=us_english_description,json=usEnglishDescription,proto3" json:"us_english_description,omitempty"` - // The ErrorDomain and ErrorCode keys contain internal codes used by Apple - // that may be useful for diagnostics. Your host should not rely on these - // values, as they may change between software releases. - ErrorDomain string `protobuf:"bytes,3,opt,name=error_domain,json=errorDomain,proto3" json:"error_domain,omitempty"` - ErrorCode int32 `protobuf:"varint,4,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ErrorChain) Reset() { *m = ErrorChain{} } -func (m *ErrorChain) String() string { return proto.CompactTextString(m) } -func (*ErrorChain) ProtoMessage() {} -func (*ErrorChain) Descriptor() ([]byte, []int) { - return fileDescriptor_fd1fa389f704dbf7, []int{70} -} -func (m *ErrorChain) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ErrorChain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ErrorChain.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *ErrorChain) XXX_Merge(src proto.Message) { - xxx_messageInfo_ErrorChain.Merge(m, src) -} -func (m *ErrorChain) XXX_Size() int { - return m.Size() -} -func (m *ErrorChain) XXX_DiscardUnknown() { - xxx_messageInfo_ErrorChain.DiscardUnknown(m) -} - -var xxx_messageInfo_ErrorChain proto.InternalMessageInfo - -func (m *ErrorChain) GetLocalizedDescription() string { - if m != nil { - return m.LocalizedDescription - } - return "" -} - -func (m *ErrorChain) GetUsEnglishDescription() string { - if m != nil { - return m.UsEnglishDescription - } - return "" -} - -func (m *ErrorChain) GetErrorDomain() string { - if m != nil { - return m.ErrorDomain - } - return "" -} - -func (m *ErrorChain) GetErrorCode() int32 { - if m != nil { - return m.ErrorCode - } - return 0 -} - -func init() { - proto.RegisterEnum("mdmproto.ResultPayload_Status", ResultPayload_Status_name, ResultPayload_Status_value) - proto.RegisterType((*CommandPayload)(nil), "mdmproto.CommandPayload") - proto.RegisterType((*Command)(nil), "mdmproto.Command") - proto.RegisterType((*InstallProfile)(nil), "mdmproto.InstallProfile") - proto.RegisterType((*RemoveProfile)(nil), "mdmproto.RemoveProfile") - proto.RegisterType((*InstallProvisioningProfile)(nil), "mdmproto.InstallProvisioningProfile") - proto.RegisterType((*RemoveProvisioningProfile)(nil), "mdmproto.RemoveProvisioningProfile") - proto.RegisterType((*InstalledApplicationList)(nil), "mdmproto.InstalledApplicationList") - proto.RegisterType((*DeviceInformation)(nil), "mdmproto.DeviceInformation") - proto.RegisterType((*ClearPasscode)(nil), "mdmproto.ClearPasscode") - proto.RegisterType((*DeviceLock)(nil), "mdmproto.DeviceLock") - proto.RegisterType((*EraseDevice)(nil), "mdmproto.EraseDevice") - proto.RegisterType((*RequestMirroring)(nil), "mdmproto.RequestMirroring") - proto.RegisterType((*Restrictions)(nil), "mdmproto.Restrictions") - proto.RegisterType((*UnlockUserAccount)(nil), "mdmproto.UnlockUserAccount") - proto.RegisterType((*DeleteUser)(nil), "mdmproto.DeleteUser") - proto.RegisterType((*EnableLostMode)(nil), "mdmproto.EnableLostMode") - proto.RegisterType((*InstallApplication)(nil), "mdmproto.InstallApplication") - proto.RegisterType((*InstallApplicationOptions)(nil), "mdmproto.InstallApplicationOptions") - proto.RegisterType((*InstallApplicationConfiguration)(nil), "mdmproto.InstallApplicationConfiguration") - proto.RegisterType((*InstallApplicationAttributes)(nil), "mdmproto.InstallApplicationAttributes") - proto.RegisterType((*InstallEnterpriseApplication)(nil), "mdmproto.InstallEnterpriseApplication") - proto.RegisterType((*Manifest)(nil), "mdmproto.Manifest") - proto.RegisterType((*ManifestItem)(nil), "mdmproto.ManifestItem") - proto.RegisterType((*Asset)(nil), "mdmproto.Asset") - proto.RegisterType((*Metadata)(nil), "mdmproto.Metadata") - proto.RegisterType((*BundleInfo)(nil), "mdmproto.BundleInfo") - proto.RegisterType((*ApplyRedemptionCode)(nil), "mdmproto.ApplyRedemptionCode") - proto.RegisterType((*ManagedApplicationList)(nil), "mdmproto.ManagedApplicationList") - proto.RegisterType((*RemoveApplication)(nil), "mdmproto.RemoveApplication") - proto.RegisterType((*InviteToProgram)(nil), "mdmproto.InviteToProgram") - proto.RegisterType((*ValidateApplications)(nil), "mdmproto.ValidateApplications") - proto.RegisterType((*AccountConfiguration)(nil), "mdmproto.AccountConfiguration") - proto.RegisterType((*AutoSetupAdminAccounts)(nil), "mdmproto.AutoSetupAdminAccounts") - proto.RegisterType((*InstallMedia)(nil), "mdmproto.InstallMedia") - proto.RegisterType((*RemoveMedia)(nil), "mdmproto.RemoveMedia") - proto.RegisterType((*Settings)(nil), "mdmproto.Settings") - proto.RegisterType((*Setting)(nil), "mdmproto.Setting") - proto.RegisterType((*VoiceRoamingSetting)(nil), "mdmproto.VoiceRoamingSetting") - proto.RegisterType((*PersonalHotspotSetting)(nil), "mdmproto.PersonalHotspotSetting") - proto.RegisterType((*WallpaperSetting)(nil), "mdmproto.WallpaperSetting") - proto.RegisterType((*DataRoamingSetting)(nil), "mdmproto.DataRoamingSetting") - proto.RegisterType((*BluetoothSetting)(nil), "mdmproto.BluetoothSetting") - proto.RegisterType((*ApplicationAttributesSetting)(nil), "mdmproto.ApplicationAttributesSetting") - proto.RegisterType((*ApplicationConfigurationSetting)(nil), "mdmproto.ApplicationConfigurationSetting") - proto.RegisterType((*ApplicationAttributes)(nil), "mdmproto.ApplicationAttributes") - proto.RegisterType((*DeviceNameSetting)(nil), "mdmproto.DeviceNameSetting") - proto.RegisterType((*TimeZoneSetting)(nil), "mdmproto.TimeZoneSetting") - proto.RegisterType((*HostnameSetting)(nil), "mdmproto.HostnameSetting") - proto.RegisterType((*MDMOptionsSetting)(nil), "mdmproto.MDMOptionsSetting") - proto.RegisterType((*MDMOptions)(nil), "mdmproto.MDMOptions") - proto.RegisterType((*PasscodeLockGracePeriodSetting)(nil), "mdmproto.PasscodeLockGracePeriodSetting") - proto.RegisterType((*MaximumResidentUsersSetting)(nil), "mdmproto.MaximumResidentUsersSetting") - proto.RegisterType((*DiagnosticSubmissionSetting)(nil), "mdmproto.DiagnosticSubmissionSetting") - proto.RegisterType((*AppAnalyticsSetting)(nil), "mdmproto.AppAnalyticsSetting") - proto.RegisterType((*ManagedApplicationConfiguration)(nil), "mdmproto.ManagedApplicationConfiguration") - proto.RegisterType((*ManagedApplicationAttributes)(nil), "mdmproto.ManagedApplicationAttributes") - proto.RegisterType((*ManagedApplicationFeedback)(nil), "mdmproto.ManagedApplicationFeedback") - proto.RegisterType((*SetFirmwarePassword)(nil), "mdmproto.SetFirmwarePassword") - proto.RegisterType((*VerifyFirmwarePassword)(nil), "mdmproto.VerifyFirmwarePassword") - proto.RegisterType((*SetRecoveryLock)(nil), "mdmproto.SetRecoveryLock") - proto.RegisterType((*VerifyRecoveryLock)(nil), "mdmproto.VerifyRecoveryLock") - proto.RegisterType((*SetAutoAdminPassword)(nil), "mdmproto.SetAutoAdminPassword") - proto.RegisterType((*ScheduleOSUpdate)(nil), "mdmproto.ScheduleOSUpdate") - proto.RegisterType((*Update)(nil), "mdmproto.Update") - proto.RegisterType((*ScheduleOSUpdateScan)(nil), "mdmproto.ScheduleOSUpdateScan") - proto.RegisterType((*ActiveNSExtensions)(nil), "mdmproto.ActiveNSExtensions") - proto.RegisterType((*RotateFileVaultKey)(nil), "mdmproto.RotateFileVaultKey") - proto.RegisterType((*FileVaultUnlock)(nil), "mdmproto.FileVaultUnlock") - proto.RegisterType((*SetBootstrapToken)(nil), "mdmproto.SetBootstrapToken") - proto.RegisterType((*ResultPayload)(nil), "mdmproto.ResultPayload") - proto.RegisterType((*ErrorChain)(nil), "mdmproto.ErrorChain") -} - -func init() { proto.RegisterFile("mdm.proto", fileDescriptor_fd1fa389f704dbf7) } - -var fileDescriptor_fd1fa389f704dbf7 = []byte{ - // 3999 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5a, 0x4f, 0x73, 0xdc, 0x46, - 0x76, 0xe7, 0x90, 0x12, 0xc9, 0x79, 0x33, 0x24, 0x87, 0xcd, 0x3f, 0x1a, 0x92, 0x12, 0x29, 0x41, - 0xb6, 0x25, 0x7b, 0x6d, 0xc9, 0x91, 0x2d, 0xdb, 0xbb, 0x6b, 0x27, 0xa6, 0x48, 0x69, 0xc9, 0xb5, - 0x28, 0xb2, 0x30, 0x92, 0x5c, 0xb5, 0xce, 0x06, 0x0b, 0x02, 0x4d, 0x4e, 0x17, 0x01, 0x34, 0xdc, - 0xdd, 0x18, 0x7a, 0x7c, 0x4f, 0xe5, 0x98, 0xca, 0x25, 0x49, 0xe5, 0x92, 0x7b, 0xbe, 0x41, 0xf2, - 0x05, 0x36, 0x55, 0xb9, 0xa4, 0xf2, 0x09, 0xb6, 0x9c, 0xaf, 0x90, 0x8b, 0x6f, 0xa9, 0xfe, 0x07, - 0x60, 0x30, 0xe0, 0x48, 0x97, 0x1c, 0x72, 0x9b, 0x7e, 0xef, 0xd7, 0xaf, 0x1b, 0xdd, 0xfd, 0xfe, - 0x0f, 0x34, 0xe3, 0x30, 0x7e, 0x90, 0x32, 0x2a, 0x28, 0x9a, 0x8f, 0xc3, 0x58, 0xfd, 0x72, 0xfe, - 0x00, 0x8b, 0x7b, 0x34, 0x8e, 0xfd, 0x24, 0x3c, 0xf1, 0x87, 0x11, 0xf5, 0x43, 0x74, 0x07, 0xda, - 0x81, 0xa6, 0x78, 0x59, 0x46, 0xc2, 0x6e, 0xe3, 0x76, 0xe3, 0x7e, 0xd3, 0x6d, 0x19, 0xda, 0xab, - 0x8c, 0x84, 0xe8, 0x17, 0x30, 0x67, 0x86, 0xdd, 0xe9, 0xdb, 0x8d, 0xfb, 0xad, 0x47, 0xcb, 0x0f, - 0xac, 0xc0, 0x07, 0x46, 0x9a, 0x6b, 0x11, 0xce, 0x1f, 0xbb, 0x30, 0x67, 0x88, 0x52, 0x36, 0xc3, - 0xdf, 0x67, 0x98, 0x0b, 0x4f, 0x0c, 0x53, 0x6c, 0x65, 0x1b, 0xda, 0xcb, 0x61, 0x8a, 0xd1, 0x1e, - 0x2c, 0x91, 0x84, 0x0b, 0x3f, 0x8a, 0xbc, 0x94, 0xd1, 0x33, 0x12, 0x61, 0xb3, 0x46, 0xb7, 0x58, - 0xe3, 0x50, 0x03, 0x4e, 0x34, 0xff, 0x60, 0xca, 0x5d, 0x24, 0x23, 0x14, 0xf4, 0x35, 0x2c, 0x32, - 0x1c, 0xd3, 0x01, 0xce, 0x65, 0xcc, 0x28, 0x19, 0x37, 0x0a, 0x19, 0xae, 0xe2, 0x17, 0x22, 0x16, - 0x58, 0x99, 0x80, 0xfa, 0x70, 0xb3, 0xb4, 0x8d, 0x01, 0xe1, 0x84, 0x26, 0x24, 0x39, 0xcf, 0xe5, - 0x5d, 0x53, 0xf2, 0xde, 0xa9, 0xdb, 0x53, 0x0e, 0x2e, 0x84, 0x6f, 0x92, 0x2b, 0xb9, 0x08, 0xc3, - 0x56, 0x79, 0xaf, 0xd5, 0x85, 0xae, 0xab, 0x85, 0xee, 0xd6, 0x6c, 0xbc, 0x66, 0x9d, 0x8d, 0xd2, - 0x47, 0x54, 0x96, 0x39, 0x05, 0xbb, 0x09, 0x1c, 0x7a, 0x7e, 0x9a, 0x46, 0x24, 0xf0, 0x05, 0xa1, - 0x89, 0x17, 0x11, 0x2e, 0xba, 0xb3, 0x6a, 0x15, 0x67, 0xec, 0x73, 0x70, 0xb8, 0x5b, 0x40, 0x9f, - 0x13, 0x2e, 0x0e, 0xa6, 0xdc, 0x2e, 0xb9, 0x82, 0x87, 0x9e, 0x03, 0x0a, 0xf1, 0x80, 0x04, 0xd8, - 0x23, 0xc9, 0x19, 0x65, 0xb1, 0xe2, 0x74, 0xe7, 0x94, 0xec, 0xad, 0x42, 0xf6, 0xbe, 0xc2, 0x1c, - 0x16, 0x90, 0x83, 0x29, 0x77, 0x39, 0xac, 0x12, 0xd1, 0xe7, 0xd0, 0x32, 0xd2, 0x22, 0x1a, 0x5c, - 0x74, 0xe7, 0x95, 0x98, 0xd5, 0xaa, 0x98, 0xe7, 0x34, 0xb8, 0x38, 0x98, 0x72, 0x21, 0xcc, 0x47, - 0xf2, 0xf6, 0x83, 0x08, 0xfb, 0xcc, 0x4b, 0x7d, 0xce, 0x03, 0x1a, 0xe2, 0x6e, 0xb3, 0x7a, 0xfb, - 0x7b, 0x92, 0x7f, 0x62, 0xd8, 0xf2, 0xf6, 0x83, 0x32, 0x01, 0xfd, 0x0a, 0xda, 0x98, 0xf9, 0x1c, - 0x7b, 0x5a, 0x6a, 0x17, 0xd4, 0xfc, 0xb5, 0x62, 0xfe, 0x53, 0xc9, 0xd5, 0x1b, 0x38, 0x98, 0x72, - 0x5b, 0xb8, 0x18, 0xa2, 0x43, 0x58, 0xb6, 0x6f, 0x3c, 0x26, 0x8c, 0x51, 0x46, 0x92, 0xf3, 0x6e, - 0x4b, 0x09, 0xd8, 0x2c, 0xdf, 0xa2, 0x82, 0x1c, 0x59, 0xc4, 0xc1, 0x94, 0xdb, 0x61, 0x15, 0x1a, - 0xfa, 0x52, 0xaa, 0x0b, 0x17, 0x8c, 0x04, 0xf2, 0x40, 0x78, 0xb7, 0xad, 0xa4, 0xac, 0x97, 0xa5, - 0x14, 0xdc, 0x83, 0x29, 0x77, 0x04, 0x8d, 0x8e, 0x60, 0x25, 0x4b, 0xe4, 0xd1, 0x79, 0x19, 0xc7, - 0xcc, 0xf3, 0x83, 0x80, 0x66, 0x89, 0xe8, 0x2e, 0x54, 0xaf, 0xe3, 0x95, 0x02, 0xbd, 0xe2, 0x98, - 0xed, 0x6a, 0x88, 0xbc, 0x8e, 0xac, 0x4a, 0xd4, 0xd7, 0x11, 0x61, 0x81, 0x95, 0xb8, 0xee, 0xe2, - 0xf8, 0x75, 0x48, 0xa6, 0x9c, 0xa1, 0xaf, 0xc3, 0x8e, 0xd0, 0x3e, 0x74, 0x70, 0xe2, 0x9f, 0x46, - 0xf2, 0x1e, 0xe5, 0xa1, 0xc8, 0x0b, 0x59, 0xaa, 0xaa, 0xf4, 0x53, 0x85, 0x78, 0x4e, 0xb9, 0x38, - 0xd2, 0x37, 0xb2, 0x88, 0x47, 0x28, 0xe8, 0x18, 0x56, 0xac, 0x42, 0x96, 0x5e, 0x6f, 0xb7, 0xa3, - 0x04, 0xdd, 0x1c, 0x7b, 0xb8, 0xa5, 0xa7, 0x79, 0x30, 0xe5, 0x22, 0x32, 0x46, 0x45, 0xaf, 0x60, - 0xcd, 0x1c, 0x89, 0x17, 0xd0, 0xe4, 0x8c, 0x9c, 0x67, 0x4c, 0x8b, 0x5c, 0x56, 0x22, 0xb7, 0x0b, - 0x91, 0xe6, 0x04, 0xf6, 0xca, 0xa8, 0x83, 0x29, 0x77, 0xd5, 0xaf, 0xa1, 0xa3, 0x1e, 0xac, 0xc9, - 0xfd, 0x0d, 0x3d, 0x86, 0x43, 0x1c, 0xa7, 0x4a, 0xc5, 0xd4, 0x1b, 0x44, 0x4a, 0xec, 0xad, 0x92, - 0x58, 0x09, 0x73, 0x73, 0xd4, 0x9e, 0xfe, 0xee, 0x15, 0x7f, 0x9c, 0x8c, 0xfe, 0x12, 0xba, 0xb1, - 0x9f, 0xf8, 0xe7, 0x75, 0xaa, 0xbb, 0xa2, 0xe4, 0xde, 0x2e, 0xe4, 0x1e, 0x69, 0xe4, 0xb8, 0xe2, - 0xae, 0xc7, 0xb5, 0x1c, 0xa9, 0xb6, 0xc6, 0x02, 0x95, 0x4f, 0x76, 0xb5, 0xfa, 0x4e, 0xb4, 0xe1, - 0x19, 0x3d, 0xd8, 0x65, 0x56, 0x25, 0xa2, 0xdf, 0xc0, 0x32, 0x49, 0x06, 0x44, 0x60, 0x4f, 0x50, - 0x69, 0xc5, 0xce, 0x99, 0x1f, 0x77, 0xd7, 0x94, 0xb0, 0x8d, 0xf2, 0x35, 0x49, 0xc8, 0x4b, 0x7a, - 0xa2, 0x01, 0x07, 0x53, 0xee, 0x12, 0x19, 0x25, 0xc9, 0x0b, 0x1a, 0xf8, 0x11, 0x09, 0x7d, 0xe1, - 0x97, 0x37, 0xc6, 0xbb, 0xeb, 0xd5, 0x0b, 0x7a, 0xad, 0x61, 0xe5, 0x6d, 0x48, 0x75, 0x58, 0xb5, - 0xd3, 0xcb, 0x74, 0xf4, 0x15, 0x2c, 0xd8, 0x87, 0x14, 0xe3, 0x90, 0xf8, 0xdd, 0x1b, 0x55, 0xad, - 0x32, 0x4f, 0xe8, 0x48, 0x72, 0xa5, 0x56, 0x91, 0xd2, 0x58, 0x9a, 0x06, 0x73, 0x58, 0x7a, 0x76, - 0xb7, 0x6a, 0x1a, 0xf4, 0x31, 0xd9, 0xc9, 0x2d, 0x56, 0x0c, 0xd1, 0xc7, 0x30, 0xcf, 0xb1, 0x10, - 0x24, 0x39, 0xe7, 0xdd, 0x0d, 0x35, 0x0f, 0x15, 0xf3, 0x7a, 0x86, 0x73, 0x30, 0xe5, 0xe6, 0x28, - 0x74, 0x09, 0x77, 0xea, 0x2e, 0x7e, 0xf4, 0xc1, 0x6e, 0x2a, 0x51, 0xef, 0x4f, 0x7a, 0x01, 0xd5, - 0xb7, 0xbb, 0x13, 0x4f, 0x86, 0xa0, 0x04, 0xb6, 0xeb, 0x16, 0xf6, 0x85, 0x60, 0xe4, 0x34, 0x13, - 0x98, 0x77, 0xb7, 0xd4, 0xaa, 0xef, 0x4d, 0x5a, 0x75, 0x37, 0x47, 0x1f, 0x4c, 0xb9, 0x37, 0xe3, - 0x09, 0x7c, 0xe9, 0x6f, 0xeb, 0xd6, 0x3b, 0xc3, 0x38, 0x3c, 0xf5, 0x83, 0x8b, 0xee, 0xcd, 0xaa, - 0xbf, 0x1d, 0x5f, 0xed, 0x99, 0xc1, 0x4a, 0x7f, 0x1b, 0x5f, 0xc9, 0x95, 0x0a, 0xca, 0xb1, 0xf0, - 0xce, 0x08, 0x8b, 0x2f, 0x7d, 0x86, 0x95, 0x93, 0xb8, 0xa4, 0x2c, 0xec, 0xde, 0xaa, 0x2a, 0x68, - 0x0f, 0x8b, 0x67, 0x06, 0x75, 0x62, 0x40, 0x52, 0x41, 0xf9, 0x38, 0x59, 0x2a, 0xe8, 0x00, 0x33, - 0x72, 0x36, 0xac, 0x91, 0xbb, 0x5d, 0x55, 0xd0, 0xd7, 0x0a, 0x59, 0x23, 0x7a, 0x7d, 0x50, 0xcb, - 0x41, 0xdf, 0xc2, 0x0d, 0xb9, 0x65, 0x3f, 0x13, 0xd4, 0xf3, 0xc3, 0x98, 0x24, 0x85, 0xf0, 0x9d, - 0xaa, 0x2e, 0xf4, 0xb0, 0xd8, 0xcd, 0x04, 0xdd, 0x95, 0xb0, 0x92, 0xe8, 0x55, 0x5e, 0x43, 0x47, - 0xbf, 0x05, 0xc4, 0x83, 0x3e, 0x0e, 0xb3, 0x08, 0x7b, 0x94, 0x7b, 0x59, 0x2a, 0xb5, 0xa8, 0x7b, - 0xbb, 0xea, 0xac, 0x7a, 0x06, 0x73, 0xdc, 0x7b, 0xa5, 0x10, 0xd2, 0x59, 0xd9, 0x79, 0xc7, 0x5c, - 0xd3, 0xd4, 0x26, 0xc7, 0x64, 0x79, 0x3c, 0xf0, 0x93, 0xee, 0x9d, 0xb1, 0x4d, 0x56, 0x04, 0xf6, - 0x02, 0x5f, 0x59, 0xd4, 0xaa, 0x50, 0x49, 0x47, 0x27, 0xb0, 0xea, 0x07, 0x82, 0x0c, 0xb0, 0x97, - 0x70, 0x0f, 0xff, 0x20, 0x70, 0xc2, 0x95, 0x19, 0x70, 0xaa, 0xa6, 0x7f, 0x57, 0xa1, 0x5e, 0xf4, - 0x9e, 0xe6, 0x18, 0x69, 0xfa, 0xf5, 0xdc, 0x17, 0xbc, 0xa0, 0x4a, 0x89, 0x8c, 0x0a, 0xb9, 0x3d, - 0x19, 0x1a, 0x0d, 0xfc, 0x2c, 0x12, 0xde, 0x05, 0x1e, 0x76, 0xef, 0x56, 0x25, 0xba, 0x0a, 0xf5, - 0x8c, 0x44, 0xf8, 0xb5, 0x04, 0x7d, 0x83, 0x87, 0x52, 0x22, 0xcb, 0xa9, 0x03, 0x43, 0x95, 0xea, - 0x62, 0x8d, 0x0a, 0x4e, 0x04, 0x66, 0x29, 0x23, 0x7c, 0xd4, 0x9c, 0xbe, 0x53, 0x55, 0x17, 0x63, - 0x65, 0x9e, 0xe6, 0xf0, 0x51, 0xcb, 0x6a, 0xc3, 0xcf, 0x5a, 0xbe, 0xf4, 0xed, 0xf2, 0x45, 0x9c, - 0x52, 0x2a, 0xb8, 0x60, 0x7e, 0xea, 0x09, 0x7a, 0x81, 0x93, 0xee, 0xbb, 0x55, 0x9b, 0xdd, 0xc3, - 0xe2, 0x89, 0xc5, 0xbc, 0x94, 0x10, 0x69, 0xb3, 0x79, 0x95, 0x28, 0x6d, 0xb6, 0x14, 0xc7, 0x70, - 0x40, 0x07, 0x98, 0x0d, 0x75, 0xc0, 0xf5, 0x5e, 0xd5, 0x66, 0xf7, 0xb0, 0x70, 0x0d, 0xc2, 0x44, - 0x5d, 0x4b, 0x7c, 0x94, 0x24, 0x4f, 0xd6, 0xe8, 0xc1, 0xa8, 0xac, 0x7b, 0xd5, 0x93, 0xd5, 0x3a, - 0x50, 0x11, 0x87, 0x06, 0x63, 0xd4, 0x27, 0x4d, 0x98, 0x33, 0x71, 0x91, 0xf3, 0x01, 0x2c, 0x8e, - 0x46, 0xfe, 0xa8, 0x0b, 0x73, 0xa9, 0x4e, 0x5b, 0x54, 0x2a, 0xd1, 0x76, 0xed, 0xd0, 0x79, 0x08, - 0x0b, 0x23, 0x11, 0x3e, 0xda, 0x06, 0x20, 0x21, 0x4e, 0x04, 0x39, 0x23, 0x98, 0x99, 0xc4, 0xa3, - 0x44, 0x71, 0x8e, 0x61, 0xf3, 0xea, 0x10, 0x1e, 0xfd, 0x19, 0xac, 0xd6, 0xa6, 0x01, 0x7a, 0xd5, - 0x95, 0x74, 0x7c, 0x8a, 0xf3, 0x10, 0x36, 0xae, 0x0c, 0xd5, 0x11, 0x82, 0x6b, 0xa5, 0xe4, 0x4a, - 0xfd, 0x76, 0xfa, 0xd0, 0xbd, 0x2a, 0xea, 0x46, 0xb7, 0xa1, 0x55, 0xec, 0x95, 0x77, 0x1b, 0xb7, - 0x67, 0x64, 0xde, 0x54, 0x22, 0xa1, 0x0f, 0x60, 0xb9, 0x64, 0x40, 0xb9, 0x47, 0x93, 0x68, 0xa8, - 0x32, 0xa7, 0x79, 0x77, 0xa9, 0xb0, 0x86, 0xfc, 0x38, 0x89, 0x86, 0xce, 0x47, 0xb0, 0x3c, 0x16, - 0x83, 0xcb, 0xb3, 0xfc, 0x3e, 0xc3, 0x8c, 0x60, 0x2b, 0xde, 0x0e, 0x9d, 0x47, 0xb0, 0x30, 0x12, - 0x2f, 0xcb, 0x34, 0xce, 0x44, 0x96, 0xfa, 0xd9, 0xe9, 0x53, 0x68, 0x69, 0x9a, 0x7a, 0x51, 0xce, - 0x77, 0x00, 0x45, 0x7c, 0x8e, 0x3a, 0x30, 0x93, 0x92, 0xc4, 0x7c, 0xad, 0xfc, 0x29, 0x57, 0x8b, - 0x31, 0xe7, 0xfe, 0xb9, 0x4e, 0xef, 0x9a, 0xae, 0x1d, 0x4a, 0xe1, 0x69, 0x9f, 0x26, 0xd8, 0x4b, - 0xb2, 0xf8, 0x14, 0x33, 0x95, 0xb9, 0x35, 0xdd, 0x96, 0xa2, 0xbd, 0x50, 0x24, 0xe7, 0x6f, 0x1a, - 0xd0, 0x2a, 0x45, 0xe0, 0x35, 0xe2, 0x3f, 0x04, 0x94, 0x32, 0xcc, 0x31, 0x1b, 0x60, 0x4f, 0x05, - 0x10, 0x69, 0xe4, 0x27, 0xe6, 0x38, 0x3a, 0x96, 0xb3, 0xef, 0x0b, 0xff, 0x24, 0xf2, 0x13, 0xf4, - 0x05, 0x74, 0x43, 0xc2, 0xfd, 0x28, 0xa2, 0x97, 0xf2, 0x66, 0x7f, 0x20, 0x31, 0x11, 0x43, 0x8f, - 0x63, 0x91, 0xa5, 0x6a, 0xf9, 0x79, 0x77, 0xdd, 0xf2, 0x4f, 0x2c, 0xbb, 0x27, 0xb9, 0xce, 0xbf, - 0x34, 0xa0, 0x53, 0x0d, 0xe5, 0xd1, 0xfb, 0xd0, 0x09, 0x31, 0x17, 0x24, 0xd1, 0x3e, 0x2c, 0xf1, - 0x63, 0x9b, 0xe9, 0x2e, 0x95, 0xe8, 0x2f, 0xfc, 0x18, 0xa3, 0x47, 0xb0, 0x56, 0x86, 0xda, 0xec, - 0x29, 0x34, 0x87, 0xb2, 0x52, 0x62, 0x9a, 0x1b, 0x0b, 0xd1, 0x16, 0x34, 0xa5, 0x55, 0xf5, 0x04, - 0x89, 0xb1, 0x39, 0x9d, 0x79, 0x49, 0x78, 0x49, 0x62, 0x8c, 0x36, 0x61, 0x3e, 0xf7, 0x0d, 0xd7, - 0x34, 0xcf, 0x8e, 0x9d, 0x5d, 0x68, 0x97, 0x13, 0x06, 0xf3, 0xa8, 0xe5, 0x7b, 0xf4, 0x46, 0xd2, - 0x8c, 0x86, 0xfa, 0xe4, 0x15, 0xc3, 0x2b, 0x4f, 0x71, 0x1e, 0xc2, 0xf2, 0x58, 0xba, 0x20, 0xd7, - 0x94, 0x29, 0x41, 0xe9, 0x3b, 0xf3, 0xb1, 0x73, 0x2c, 0xdf, 0x41, 0x9e, 0x0a, 0x4c, 0x40, 0xa2, - 0x77, 0x61, 0xf1, 0x8c, 0xb2, 0x40, 0xe6, 0x5c, 0x11, 0x56, 0x26, 0x53, 0x5f, 0xd7, 0x82, 0xa2, - 0xee, 0x1b, 0xa2, 0x43, 0x60, 0x71, 0x34, 0x57, 0x28, 0x3f, 0xa5, 0xc6, 0xe4, 0xa7, 0x34, 0x3d, - 0xf6, 0x94, 0xe4, 0x8e, 0xce, 0x28, 0x15, 0x09, 0x15, 0xf9, 0x59, 0xda, 0xb1, 0xf3, 0x6f, 0x33, - 0x80, 0xc6, 0xd3, 0x09, 0xf4, 0x1e, 0x2c, 0x11, 0x91, 0x25, 0x98, 0x7b, 0x5c, 0x50, 0xa6, 0x6e, - 0x4b, 0xae, 0x3b, 0xe3, 0x2e, 0x68, 0x72, 0x4f, 0x52, 0x0f, 0xc3, 0x8a, 0xc5, 0x99, 0xae, 0x5a, - 0x1c, 0xf4, 0x15, 0xcc, 0xd1, 0x54, 0x9f, 0xf8, 0x4c, 0x35, 0xc9, 0x1f, 0x5f, 0xf6, 0x58, 0x43, - 0x5d, 0x3b, 0x47, 0x7e, 0x5c, 0xec, 0x27, 0xe4, 0x4c, 0x26, 0x9a, 0x19, 0x8b, 0xcc, 0x6d, 0xb7, - 0x2c, 0xed, 0x15, 0x8b, 0xe4, 0x43, 0xd4, 0xaa, 0x1f, 0xe3, 0x44, 0x78, 0x67, 0x91, 0x7f, 0xce, - 0x55, 0x3d, 0x61, 0xc6, 0x9a, 0x04, 0x49, 0x7f, 0x26, 0xc9, 0xe8, 0x18, 0x16, 0x46, 0x83, 0xca, - 0xd9, 0x6a, 0x50, 0x39, 0xbe, 0xa5, 0x91, 0x88, 0xd1, 0x1d, 0x9d, 0x8f, 0x9e, 0x01, 0x94, 0x82, - 0xc5, 0xb9, 0x2b, 0xbc, 0x5f, 0x6d, 0x30, 0xe8, 0x96, 0x66, 0xa2, 0xcf, 0xe0, 0x46, 0xd0, 0xf7, - 0x93, 0x73, 0xec, 0x95, 0x3e, 0x85, 0x4b, 0x07, 0xac, 0x2a, 0x02, 0x4d, 0x77, 0x4d, 0xb3, 0x8f, - 0x72, 0x6e, 0x4f, 0x32, 0x9d, 0x7d, 0xd8, 0xb8, 0xf2, 0x10, 0xd1, 0x3d, 0x58, 0x4a, 0x33, 0x16, - 0xf4, 0x65, 0x8a, 0x1f, 0x63, 0xd1, 0xa7, 0xf6, 0x0a, 0x17, 0x2d, 0xf9, 0x48, 0x51, 0x9d, 0x3b, - 0xb0, 0xf3, 0x86, 0xef, 0x76, 0xb6, 0xe1, 0xe6, 0xa4, 0x8f, 0x71, 0x7e, 0x6e, 0xe4, 0x80, 0x7a, - 0x5f, 0xfe, 0x00, 0xe6, 0xed, 0xa5, 0xa9, 0x5d, 0x8c, 0x64, 0x05, 0x47, 0x86, 0xe3, 0xe6, 0x98, - 0xb1, 0x8b, 0x9f, 0x1e, 0xbf, 0xf8, 0x5f, 0xc3, 0x66, 0x19, 0xe2, 0xa5, 0x24, 0x51, 0x6e, 0x2b, - 0xc0, 0x4c, 0xc8, 0xd7, 0x36, 0x73, 0xbf, 0xed, 0xde, 0x28, 0x4d, 0x38, 0xd1, 0xfc, 0x3d, 0xc9, - 0x46, 0x87, 0x70, 0xc7, 0xe2, 0x19, 0x1e, 0x50, 0x9b, 0x72, 0xf4, 0x71, 0x70, 0xe1, 0x49, 0x57, - 0x4c, 0x18, 0xd6, 0xb6, 0x65, 0xde, 0xdd, 0x36, 0x40, 0x37, 0xc7, 0xed, 0x49, 0x98, 0x6b, 0x50, - 0xce, 0x21, 0xcc, 0xdb, 0x0f, 0x40, 0x5f, 0xc1, 0x62, 0xbe, 0x27, 0x22, 0x70, 0xac, 0xdd, 0xcc, - 0x48, 0xe2, 0x65, 0xb1, 0x87, 0x02, 0xc7, 0xee, 0x42, 0x5c, 0x1a, 0x71, 0xe7, 0x1c, 0xda, 0x65, - 0x36, 0xba, 0x07, 0xb3, 0x3e, 0xe7, 0x58, 0x58, 0x31, 0x4b, 0xa5, 0x38, 0x50, 0xd2, 0x5d, 0xc3, - 0x56, 0xc7, 0x8b, 0x85, 0x2f, 0xbd, 0x80, 0xa9, 0x24, 0x96, 0x8f, 0xd7, 0x70, 0xdc, 0x1c, 0xe3, - 0xfc, 0x43, 0x03, 0xae, 0x2b, 0x09, 0xd2, 0x49, 0x5f, 0x90, 0x24, 0x77, 0xd2, 0xf2, 0x37, 0xda, - 0x80, 0xf9, 0x38, 0x7c, 0xec, 0x71, 0xf2, 0xa3, 0x76, 0x5c, 0x33, 0xee, 0x5c, 0x1c, 0x3e, 0xee, - 0x91, 0x1f, 0x95, 0x4f, 0x8f, 0xc3, 0xc7, 0xfa, 0x78, 0x9b, 0xae, 0xfa, 0x2d, 0x3d, 0x53, 0xa1, - 0x9b, 0xf2, 0x27, 0xda, 0x81, 0x16, 0xef, 0xfb, 0x8f, 0x1e, 0x7f, 0xa6, 0x65, 0x68, 0x75, 0x04, - 0x4d, 0x52, 0x62, 0xba, 0x30, 0xa7, 0x47, 0xbc, 0x3b, 0xab, 0xfd, 0xb0, 0x19, 0x3a, 0xff, 0xd3, - 0x80, 0x79, 0xbb, 0x61, 0xf4, 0x0b, 0x58, 0x3e, 0xcd, 0x92, 0x30, 0x92, 0xf6, 0xa7, 0x12, 0xd6, - 0x74, 0x34, 0xe3, 0xb0, 0x30, 0x35, 0xef, 0xc2, 0xa2, 0x01, 0x0f, 0x30, 0xe3, 0xd6, 0xb6, 0x36, - 0xdd, 0x05, 0x4d, 0x7d, 0xad, 0x89, 0xe8, 0x03, 0xb8, 0xae, 0x6f, 0x66, 0x46, 0x1d, 0x69, 0xa9, - 0xb8, 0xf3, 0x44, 0x4b, 0x4c, 0xce, 0xa8, 0xab, 0x21, 0xf9, 0xe1, 0x5c, 0x2b, 0x1d, 0xce, 0x26, - 0xcc, 0xf3, 0xec, 0x54, 0x10, 0x61, 0xea, 0x96, 0xd2, 0x31, 0x99, 0x31, 0x5a, 0x85, 0xeb, 0x9a, - 0x31, 0xab, 0x18, 0x7a, 0x80, 0x1c, 0x58, 0x90, 0xc7, 0xe0, 0x91, 0xc4, 0x3b, 0x1d, 0x5a, 0x43, - 0x31, 0xe3, 0xb6, 0x24, 0xf1, 0x30, 0x79, 0x22, 0x49, 0xce, 0x1f, 0x00, 0x8a, 0xe5, 0xff, 0x2f, - 0xbe, 0xdb, 0xf9, 0x2b, 0x58, 0xa9, 0x29, 0xc6, 0xbc, 0x29, 0x64, 0x94, 0x56, 0xa4, 0x5a, 0xe4, - 0xd1, 0xe2, 0x17, 0xd9, 0x88, 0x20, 0xe7, 0x57, 0xb0, 0x5e, 0x5f, 0x94, 0x79, 0x73, 0x5c, 0xe7, - 0x7c, 0x02, 0xcb, 0x63, 0x85, 0x97, 0x37, 0x06, 0xb3, 0xdf, 0xc2, 0x52, 0xa5, 0xc0, 0x82, 0x6e, - 0x01, 0x98, 0x62, 0x8c, 0x97, 0xc7, 0x9d, 0x4d, 0x43, 0x39, 0x0c, 0xe5, 0x49, 0xa9, 0xfa, 0x8b, - 0x56, 0xf6, 0xc2, 0xac, 0x2c, 0x14, 0xd4, 0x57, 0x2c, 0x72, 0xbe, 0x80, 0xd5, 0xba, 0x62, 0xcb, - 0x5b, 0x7c, 0xc7, 0x3f, 0x5f, 0x83, 0xd5, 0xba, 0x42, 0x1a, 0x7a, 0x0e, 0x77, 0xf9, 0x05, 0x49, - 0xbd, 0x94, 0x91, 0xd8, 0x67, 0x26, 0xec, 0xf2, 0xf2, 0xd2, 0x1c, 0xc3, 0xda, 0x1f, 0xe9, 0xa0, - 0x64, 0x47, 0x42, 0x4f, 0x34, 0x52, 0x45, 0x60, 0x56, 0xa4, 0x81, 0xa1, 0xd7, 0xf0, 0xbe, 0xcc, - 0x64, 0xea, 0x85, 0xf9, 0xdc, 0x63, 0xf8, 0x3c, 0x8b, 0x7c, 0xa6, 0x6b, 0x98, 0x3a, 0xc0, 0xb8, - 0xcb, 0xb1, 0xa8, 0x11, 0xb9, 0xcb, 0x5d, 0x8d, 0x55, 0x91, 0x4b, 0x0f, 0xee, 0x85, 0x34, 0x31, - 0x39, 0x78, 0x4a, 0xd3, 0x2c, 0x92, 0xe9, 0xa3, 0x5d, 0xc6, 0x2e, 0x40, 0x92, 0x33, 0x6a, 0x4c, - 0xa3, 0x23, 0xe1, 0x32, 0xe3, 0x3e, 0x31, 0x60, 0xb3, 0x84, 0x91, 0xae, 0xde, 0xf2, 0x2f, 0x61, - 0x43, 0x45, 0xd1, 0xb5, 0x62, 0xae, 0xeb, 0xc0, 0x53, 0x02, 0xea, 0xa7, 0x56, 0x67, 0x9d, 0x65, - 0x51, 0xa4, 0x83, 0x4d, 0xad, 0x62, 0xeb, 0xe9, 0xc8, 0xb4, 0x67, 0x59, 0x14, 0xa9, 0x98, 0xb3, - 0x66, 0xaa, 0x2a, 0x10, 0xab, 0xa9, 0x73, 0x75, 0x53, 0xe5, 0x09, 0xa8, 0xa9, 0xdf, 0xc1, 0x86, - 0x3a, 0x00, 0x73, 0xac, 0xaa, 0x14, 0x61, 0x64, 0x58, 0xa3, 0x51, 0xaa, 0x73, 0xc8, 0xaf, 0xd7, - 0x27, 0x2a, 0x81, 0x46, 0x16, 0x77, 0xd7, 0xfd, 0x5a, 0xba, 0xf3, 0x77, 0x0d, 0x58, 0xaf, 0x9f, - 0x22, 0x1f, 0x2f, 0xef, 0x53, 0x26, 0xca, 0xb1, 0x74, 0x53, 0x51, 0xd4, 0xb6, 0xb6, 0xa0, 0x59, - 0x7c, 0xfc, 0xb4, 0x89, 0xe2, 0xec, 0xe7, 0xde, 0x85, 0x05, 0x1b, 0x01, 0x7b, 0x7d, 0x9f, 0xf7, - 0x55, 0xb0, 0xd5, 0x76, 0xdb, 0x96, 0x78, 0xe0, 0xf3, 0x3e, 0x5a, 0x87, 0xd9, 0x3e, 0x09, 0x43, - 0x9c, 0x98, 0xdb, 0x33, 0x23, 0x87, 0x41, 0xbb, 0x5c, 0x0d, 0x7c, 0xeb, 0xd8, 0x6f, 0x0b, 0x9a, - 0xaa, 0x3c, 0x58, 0xd2, 0xa4, 0x79, 0x45, 0x90, 0xde, 0xf9, 0x16, 0x80, 0x66, 0xaa, 0x1e, 0x98, - 0x8e, 0x3a, 0x35, 0xfc, 0xe5, 0x30, 0xc5, 0xce, 0x10, 0x5a, 0xa5, 0x1a, 0x62, 0x05, 0xdd, 0xa8, - 0xa0, 0xeb, 0x76, 0x34, 0x5d, 0xb7, 0x23, 0x79, 0x0c, 0xd2, 0xdc, 0x71, 0x21, 0x03, 0x28, 0x12, - 0x9a, 0x75, 0xdb, 0x05, 0xf1, 0x30, 0x74, 0x7e, 0x09, 0xf3, 0xb6, 0x0c, 0x89, 0x3e, 0x2a, 0x15, - 0x2b, 0xb5, 0x8b, 0x5d, 0x1e, 0x2b, 0x56, 0x16, 0x95, 0x4a, 0xe7, 0xe7, 0x79, 0x98, 0x33, 0x54, - 0xe9, 0x1b, 0xa4, 0x93, 0xb0, 0x8e, 0x53, 0xfe, 0x46, 0x5f, 0xe6, 0xdd, 0x9c, 0xfc, 0x96, 0x6a, - 0x9a, 0x42, 0xf2, 0xc6, 0xac, 0x6c, 0xd3, 0xd2, 0x51, 0x97, 0xf8, 0x18, 0xe6, 0xfb, 0x94, 0x0b, - 0x35, 0x75, 0xa6, 0x5a, 0x97, 0x38, 0x30, 0x9c, 0x7c, 0x53, 0x16, 0x8a, 0x9e, 0xc0, 0xc2, 0x80, - 0xca, 0x35, 0x19, 0xf5, 0x63, 0x92, 0x9c, 0x9b, 0xb6, 0x5d, 0xa9, 0xc6, 0xf7, 0x5a, 0xb2, 0x5d, - 0xcd, 0xb5, 0xf3, 0xdb, 0x83, 0x12, 0x11, 0x7d, 0x03, 0x1d, 0x79, 0x46, 0x34, 0xf1, 0x23, 0xaf, - 0x4f, 0x05, 0x4f, 0xa9, 0x30, 0x4d, 0xb9, 0xd2, 0x53, 0x3f, 0x31, 0x88, 0x03, 0x0d, 0xb0, 0x92, - 0x96, 0xd2, 0x51, 0x3a, 0xfa, 0x02, 0x9a, 0x97, 0x7e, 0x14, 0xa5, 0x7e, 0x8a, 0x99, 0x09, 0xb1, - 0x4b, 0x75, 0xb6, 0x6f, 0x2d, 0xcb, 0xce, 0x2f, 0xc0, 0xe8, 0x2f, 0xa0, 0xad, 0x12, 0x59, 0xfb, - 0x25, 0x73, 0xd5, 0x8a, 0x8a, 0xcc, 0x66, 0x2b, 0x1f, 0xd2, 0x0a, 0x0b, 0x9a, 0x5c, 0xfa, 0x34, - 0xca, 0xb0, 0xa0, 0x54, 0xf4, 0x4d, 0x33, 0xad, 0xb4, 0xf4, 0x13, 0xcb, 0xca, 0x97, 0xce, 0xc1, - 0xe8, 0xf7, 0xb0, 0x7e, 0x45, 0x0d, 0xb8, 0x59, 0x0d, 0xeb, 0x6b, 0x43, 0x60, 0x2b, 0x72, 0xcd, - 0xaf, 0x2d, 0xfd, 0x7e, 0x09, 0xad, 0x38, 0x8c, 0x3d, 0x9b, 0x0b, 0x41, 0xf5, 0x65, 0x1c, 0xed, - 0x1f, 0x99, 0xb8, 0x3d, 0x7f, 0x19, 0x71, 0x18, 0xdb, 0x50, 0x1e, 0xc3, 0xa6, 0x6d, 0xf3, 0xa9, - 0x52, 0x93, 0x77, 0xce, 0xfc, 0x00, 0x7b, 0x29, 0x66, 0x84, 0x86, 0xa6, 0xef, 0x76, 0xbf, 0x74, - 0x51, 0x06, 0xfb, 0x9c, 0x06, 0x17, 0xbf, 0x91, 0xc8, 0x13, 0x05, 0xb4, 0x92, 0x6f, 0xa4, 0xf5, - 0x7c, 0xf4, 0x1d, 0xac, 0xc7, 0xfe, 0x0f, 0x24, 0xce, 0x62, 0x99, 0x2b, 0x2b, 0xc7, 0xa6, 0xac, - 0xa6, 0x6d, 0xca, 0xbd, 0x5b, 0x8e, 0x62, 0x15, 0xce, 0x35, 0x30, 0x69, 0x3c, 0xf3, 0x9d, 0xaf, - 0xc6, 0x35, 0x4c, 0xf4, 0x3b, 0x58, 0x0b, 0x89, 0x7f, 0x9e, 0x50, 0x2e, 0x48, 0xe0, 0xf1, 0xec, - 0x34, 0x26, 0x5c, 0x45, 0x2b, 0x0b, 0x55, 0xd9, 0xfb, 0x39, 0xac, 0x97, 0xa3, 0x72, 0xd9, 0x61, - 0x0d, 0x53, 0xaa, 0x80, 0x9f, 0xa6, 0x9e, 0x9f, 0xf8, 0xd1, 0x50, 0x90, 0x80, 0x9b, 0xc6, 0xdd, - 0x68, 0x1f, 0x6a, 0xd7, 0x72, 0x73, 0x15, 0xf0, 0x4b, 0x44, 0x74, 0x06, 0x1b, 0x57, 0x77, 0x1f, - 0x96, 0xaa, 0x89, 0xe2, 0x55, 0x99, 0x92, 0x95, 0xdd, 0xf5, 0xaf, 0x6a, 0x3a, 0x7c, 0x06, 0x4d, - 0x41, 0x62, 0xec, 0xfd, 0x48, 0x13, 0x6c, 0x3a, 0x7b, 0x25, 0x35, 0x7f, 0x49, 0x62, 0xfc, 0x3b, - 0x9a, 0x14, 0x6a, 0x2e, 0x0c, 0xc1, 0x79, 0x08, 0x2b, 0x35, 0x7a, 0x2c, 0x23, 0x69, 0xdd, 0x44, - 0x0c, 0x4d, 0xf4, 0x60, 0x87, 0xce, 0x23, 0x58, 0xaf, 0xd7, 0xd8, 0x09, 0x73, 0xfe, 0x1c, 0x3a, - 0x55, 0xfd, 0x94, 0x41, 0x2d, 0x89, 0x6d, 0xe1, 0xa1, 0xed, 0xea, 0x81, 0xa4, 0x5e, 0xf6, 0x31, - 0xb3, 0x09, 0x82, 0x1e, 0x38, 0x0f, 0x00, 0x8d, 0xab, 0xe8, 0x84, 0xf5, 0x3e, 0x84, 0x4e, 0x55, - 0x29, 0x27, 0xa0, 0xff, 0xbe, 0x01, 0x37, 0x27, 0x29, 0xdf, 0x1b, 0x83, 0xd9, 0xd7, 0x57, 0x2a, - 0xb9, 0x36, 0xd5, 0x3b, 0x6f, 0x50, 0xf2, 0x2b, 0xb4, 0xdb, 0xf9, 0xeb, 0x06, 0xec, 0xbc, 0xe1, - 0x45, 0xbc, 0x71, 0x6f, 0x4f, 0xe0, 0xd6, 0xc8, 0x9b, 0xf3, 0x42, 0x5d, 0x8f, 0x92, 0x21, 0x4c, - 0x9e, 0xd7, 0xb5, 0xdd, 0xad, 0x11, 0xd0, 0x7e, 0x8e, 0x91, 0xc7, 0xee, 0x3c, 0x82, 0xb5, 0xfa, - 0xce, 0xd3, 0x06, 0xcc, 0x0f, 0xd2, 0xa4, 0xfc, 0x5f, 0x97, 0xb9, 0x41, 0x9a, 0xbc, 0xca, 0x48, - 0xe8, 0x7c, 0x6a, 0xeb, 0xa4, 0x25, 0xb7, 0x24, 0x13, 0xb8, 0xb2, 0x23, 0x33, 0xbb, 0x2d, 0x7c, - 0x95, 0xf3, 0x00, 0x96, 0x2a, 0x4f, 0x55, 0x86, 0x03, 0xc5, 0xc3, 0x36, 0x85, 0xaf, 0xfc, 0xf5, - 0x7e, 0x04, 0x4b, 0x15, 0x0f, 0x26, 0x13, 0xa9, 0xdc, 0xdd, 0x19, 0xb8, 0x1d, 0x3b, 0xbf, 0x85, - 0xe5, 0x31, 0x8b, 0x88, 0x1e, 0x8f, 0xda, 0xd0, 0x46, 0xb5, 0x39, 0x5f, 0xcc, 0x28, 0x1b, 0x4f, - 0xe7, 0x6f, 0xa7, 0x01, 0x0a, 0x16, 0x7a, 0x0d, 0xf7, 0x55, 0xb7, 0xc4, 0x74, 0x97, 0xa5, 0x35, - 0x55, 0x45, 0x4f, 0x1c, 0x7a, 0x97, 0x7d, 0x12, 0x61, 0x8f, 0x67, 0x29, 0x66, 0x03, 0xc2, 0xf3, - 0xf7, 0xf7, 0x4e, 0x81, 0x97, 0x16, 0x73, 0x57, 0xa3, 0xbf, 0x95, 0xe0, 0x5e, 0x8e, 0x45, 0x9f, - 0xc1, 0x8d, 0x4a, 0xa7, 0xc2, 0xca, 0x35, 0x21, 0xf8, 0xda, 0xe9, 0x48, 0x3f, 0xc2, 0x88, 0x41, - 0xdf, 0xc3, 0xe7, 0x29, 0xa3, 0x71, 0x6a, 0x02, 0x54, 0x41, 0xf5, 0xb4, 0x6a, 0xdb, 0xc3, 0x3b, - 0xa3, 0x4c, 0x06, 0xe6, 0x7d, 0xf9, 0x60, 0x4c, 0xbb, 0x45, 0x97, 0x6d, 0x3f, 0xd6, 0xd3, 0xa5, - 0x95, 0x7d, 0x49, 0x95, 0xd4, 0xd1, 0xc6, 0xc7, 0x33, 0xca, 0x76, 0x47, 0xe6, 0x39, 0xbf, 0x87, - 0xed, 0xc9, 0x2e, 0x02, 0xfd, 0x7a, 0xa2, 0xc3, 0xd1, 0xd1, 0xe0, 0x55, 0x6e, 0xc4, 0xe9, 0xc1, - 0xd6, 0x04, 0xf7, 0x80, 0x3e, 0xbd, 0xd2, 0xcb, 0x68, 0xb9, 0xb5, 0xee, 0xc3, 0xf9, 0x1c, 0xb6, - 0x26, 0xf8, 0x85, 0x09, 0x46, 0xe3, 0xa1, 0xca, 0x7b, 0xab, 0xc6, 0x7f, 0xc2, 0x84, 0x3d, 0xd8, - 0x79, 0x43, 0x6f, 0xf9, 0x2d, 0x32, 0xc1, 0xaf, 0xe1, 0xe6, 0xa4, 0x56, 0xf1, 0x5b, 0x48, 0x38, - 0x87, 0xcd, 0xab, 0xdb, 0xbf, 0x6f, 0xd1, 0x2b, 0xb9, 0x07, 0x4b, 0xe6, 0xaf, 0x2c, 0x79, 0x7f, - 0x59, 0xbf, 0xc3, 0x45, 0x4d, 0xb6, 0xa2, 0x9c, 0xff, 0x68, 0xc0, 0x4a, 0x4d, 0x17, 0x18, 0xbd, - 0x0f, 0x9d, 0x20, 0x63, 0x4c, 0x5e, 0x4f, 0x5e, 0x6d, 0x37, 0x15, 0x7e, 0x43, 0xcf, 0xa1, 0x77, - 0xa0, 0x9d, 0xe0, 0xcb, 0x02, 0x66, 0xaa, 0x75, 0x09, 0xbe, 0xcc, 0x21, 0x3b, 0xd0, 0xd2, 0xef, - 0x9a, 0x32, 0x1a, 0x73, 0xf3, 0x74, 0x41, 0x91, 0x8e, 0x25, 0x05, 0x3d, 0x85, 0x1d, 0xfb, 0x97, - 0x22, 0x53, 0x80, 0xe3, 0x5e, 0x82, 0xc5, 0x25, 0x65, 0x17, 0x9e, 0xc0, 0xa2, 0x8f, 0x99, 0x49, - 0x5b, 0x6e, 0x1a, 0x98, 0x29, 0xc0, 0xf1, 0x17, 0x1a, 0xf4, 0x52, 0x61, 0x9c, 0x4f, 0x61, 0xbd, - 0xbe, 0xf5, 0x3c, 0xd2, 0x35, 0x68, 0x54, 0xba, 0x06, 0x7f, 0x6c, 0xc0, 0x52, 0xa5, 0xf3, 0xf7, - 0xff, 0xf4, 0xfb, 0x3f, 0x06, 0x34, 0xde, 0x76, 0x9c, 0xf8, 0xed, 0xc7, 0xb0, 0x5a, 0xd7, 0x4f, - 0x97, 0x09, 0xce, 0x79, 0xa9, 0x7d, 0x27, 0x7f, 0x8f, 0xe7, 0x99, 0xd3, 0xe3, 0x79, 0xa6, 0x0c, - 0x22, 0xaa, 0xbd, 0x6f, 0xf4, 0x01, 0xcc, 0xe9, 0x66, 0xb9, 0xcd, 0xb3, 0x3a, 0xa5, 0xff, 0x66, - 0x29, 0x86, 0x6b, 0x01, 0xce, 0x10, 0x66, 0xcd, 0xac, 0x1d, 0x68, 0xa5, 0x8c, 0x86, 0x59, 0xa0, - 0x5b, 0xd7, 0xc6, 0x0d, 0x19, 0xd2, 0x37, 0x78, 0xa8, 0x6a, 0xdc, 0x06, 0x30, 0x5a, 0xfc, 0x5a, - 0x34, 0x64, 0x5b, 0xf5, 0x53, 0xa5, 0x1f, 0xf3, 0xcf, 0xaa, 0x20, 0x37, 0x9e, 0xaa, 0xf4, 0xa3, - 0xcb, 0xda, 0x8a, 0xe8, 0x7c, 0x08, 0xab, 0x75, 0x6d, 0x7b, 0x19, 0xed, 0xa8, 0x0e, 0x8d, 0xb1, - 0x15, 0x7a, 0xe0, 0x3c, 0x07, 0x34, 0xde, 0x8e, 0x97, 0x8e, 0xe0, 0x8c, 0x44, 0x02, 0xb3, 0xa2, - 0x8f, 0xef, 0xa5, 0x94, 0x24, 0xc2, 0xaa, 0xe9, 0x9a, 0x66, 0xe7, 0x53, 0x4e, 0x14, 0xd3, 0xf9, - 0x53, 0x03, 0xd0, 0x78, 0x2f, 0x5e, 0xba, 0xee, 0x0b, 0x3c, 0x2c, 0x27, 0xc6, 0x73, 0x17, 0x78, - 0xa8, 0xd2, 0xe2, 0x7d, 0xe8, 0x14, 0xbd, 0x7d, 0xdd, 0x98, 0x34, 0x81, 0x4c, 0x29, 0xa2, 0xcc, - 0x85, 0xe9, 0x9e, 0x96, 0xbb, 0x94, 0x4f, 0xd1, 0x04, 0x79, 0x86, 0xf2, 0xf1, 0x06, 0x98, 0x49, - 0xd3, 0x11, 0xf8, 0xa6, 0x49, 0xd4, 0x76, 0x17, 0x13, 0x7c, 0xb9, 0x57, 0x50, 0xd1, 0xd7, 0x70, - 0x93, 0xe1, 0x34, 0x1a, 0x7a, 0x38, 0x09, 0xd8, 0xd0, 0x14, 0x04, 0x4b, 0xb3, 0xae, 0xa9, 0x59, - 0x9b, 0x0a, 0xf3, 0x34, 0x87, 0x94, 0x24, 0x38, 0xff, 0xd4, 0x80, 0xa5, 0xca, 0x7e, 0x26, 0x3d, - 0x4d, 0xdd, 0xe1, 0x94, 0xae, 0x17, 0xcb, 0xfb, 0xf7, 0xf0, 0x0f, 0x29, 0x65, 0xc2, 0xbc, 0xb9, - 0x8e, 0xe1, 0x7c, 0x83, 0x87, 0x4f, 0x15, 0x1d, 0x7d, 0x05, 0x5b, 0xe3, 0xe8, 0x42, 0x29, 0xf5, - 0x85, 0x77, 0xab, 0xd3, 0xec, 0x7b, 0x77, 0xbe, 0x84, 0xe5, 0xb1, 0x7f, 0x12, 0xc8, 0xc3, 0xa9, - 0xfe, 0xff, 0x40, 0x6f, 0x72, 0x71, 0xd4, 0x9b, 0x3b, 0xff, 0xd5, 0x80, 0x05, 0x17, 0xf3, 0x2c, - 0x12, 0xf6, 0x3f, 0xc6, 0x08, 0xae, 0x65, 0x61, 0xa9, 0xfd, 0x1d, 0x92, 0xf1, 0xff, 0x1d, 0x4f, - 0x8f, 0xff, 0xef, 0xf8, 0x31, 0xb4, 0x30, 0x63, 0x94, 0x79, 0x41, 0xdf, 0x27, 0xc9, 0x78, 0x95, - 0xfa, 0xa9, 0x64, 0xee, 0x49, 0x9e, 0x0b, 0x38, 0xff, 0xed, 0xf4, 0x60, 0xb6, 0x27, 0x7c, 0x91, - 0x71, 0xd4, 0x81, 0xf6, 0x6e, 0x70, 0x91, 0xd0, 0xcb, 0x08, 0x87, 0xe7, 0x38, 0xec, 0x4c, 0xa1, - 0x26, 0x5c, 0x57, 0xb3, 0x3a, 0x0d, 0xb4, 0x0e, 0xc8, 0xfc, 0x4f, 0xf9, 0x99, 0x6a, 0x8a, 0x6b, - 0xfa, 0x34, 0x9a, 0x87, 0x6b, 0x87, 0x61, 0x84, 0x3b, 0x33, 0x08, 0x60, 0xf6, 0x05, 0x15, 0x2f, - 0xe8, 0x65, 0xe7, 0x9a, 0xf3, 0xaf, 0x0d, 0x80, 0x62, 0x3d, 0xf4, 0x09, 0xac, 0x45, 0x34, 0xf0, - 0x23, 0xf2, 0x23, 0x0e, 0xbd, 0x10, 0xf3, 0x80, 0x91, 0x34, 0xaf, 0x5b, 0x36, 0xdd, 0xd5, 0x9c, - 0xb9, 0x5f, 0xf0, 0xa4, 0xbb, 0xcf, 0xb8, 0x87, 0x93, 0xf3, 0x88, 0xf0, 0xfe, 0xc8, 0x2c, 0xfd, - 0xf1, 0xab, 0x19, 0x7f, 0xaa, 0x99, 0xe5, 0x59, 0x77, 0xa0, 0xad, 0x4f, 0x21, 0xa4, 0xb1, 0x3e, - 0x06, 0x75, 0x50, 0x8a, 0xb6, 0xaf, 0x48, 0xe8, 0x16, 0x80, 0x39, 0x28, 0x1a, 0xea, 0xc7, 0x77, - 0xdd, 0x6d, 0xea, 0x13, 0xa1, 0x21, 0x7e, 0xd2, 0xf9, 0xf7, 0x9f, 0xb6, 0x1b, 0xff, 0xf9, 0xd3, - 0x76, 0xe3, 0x4f, 0x3f, 0x6d, 0x37, 0xfe, 0xf1, 0xbf, 0xb7, 0xa7, 0x4e, 0x67, 0xd5, 0x01, 0x7e, - 0xf2, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x86, 0xd1, 0xeb, 0x2d, 0x24, 0x2e, 0x00, 0x00, -} - -func (m *CommandPayload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *CommandPayload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *CommandPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Command != nil { - { - size, err := m.Command.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.CommandUuid) > 0 { - i -= len(m.CommandUuid) - copy(dAtA[i:], m.CommandUuid) - i = encodeVarintMdm(dAtA, i, uint64(len(m.CommandUuid))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Command) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Command) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Request != nil { - { - size := m.Request.Size() - i -= size - if _, err := m.Request.MarshalTo(dAtA[i:]); err != nil { - return 0, err - } - } - } - if len(m.RequestType) > 0 { - i -= len(m.RequestType) - copy(dAtA[i:], m.RequestType) - i = encodeVarintMdm(dAtA, i, uint64(len(m.RequestType))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Command_InstallProfile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_InstallProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.InstallProfile != nil { - { - size, err := m.InstallProfile.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - return len(dAtA) - i, nil -} -func (m *Command_RemoveProfile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_RemoveProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.RemoveProfile != nil { - { - size, err := m.RemoveProfile.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - return len(dAtA) - i, nil -} -func (m *Command_InstallProvisioningProfile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_InstallProvisioningProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.InstallProvisioningProfile != nil { - { - size, err := m.InstallProvisioningProfile.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - return len(dAtA) - i, nil -} -func (m *Command_RemoveProfisioningProfile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_RemoveProfisioningProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.RemoveProfisioningProfile != nil { - { - size, err := m.RemoveProfisioningProfile.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - return len(dAtA) - i, nil -} -func (m *Command_InstalledApplicationList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_InstalledApplicationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.InstalledApplicationList != nil { - { - size, err := m.InstalledApplicationList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - return len(dAtA) - i, nil -} -func (m *Command_DeviceInformation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_DeviceInformation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.DeviceInformation != nil { - { - size, err := m.DeviceInformation.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - return len(dAtA) - i, nil -} -func (m *Command_DeviceLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_DeviceLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.DeviceLock != nil { - { - size, err := m.DeviceLock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - return len(dAtA) - i, nil -} -func (m *Command_ClearPasscode) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_ClearPasscode) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ClearPasscode != nil { - { - size, err := m.ClearPasscode.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - return len(dAtA) - i, nil -} -func (m *Command_EraseDevice) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_EraseDevice) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.EraseDevice != nil { - { - size, err := m.EraseDevice.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - return len(dAtA) - i, nil -} -func (m *Command_RequestMirroring) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_RequestMirroring) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.RequestMirroring != nil { - { - size, err := m.RequestMirroring.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - return len(dAtA) - i, nil -} -func (m *Command_Restrictions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_Restrictions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Restrictions != nil { - { - size, err := m.Restrictions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - return len(dAtA) - i, nil -} -func (m *Command_UnlockUserAccount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_UnlockUserAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.UnlockUserAccount != nil { - { - size, err := m.UnlockUserAccount.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - return len(dAtA) - i, nil -} -func (m *Command_DeleteUser) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_DeleteUser) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.DeleteUser != nil { - { - size, err := m.DeleteUser.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - return len(dAtA) - i, nil -} -func (m *Command_EnableLostMode) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_EnableLostMode) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.EnableLostMode != nil { - { - size, err := m.EnableLostMode.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - return len(dAtA) - i, nil -} -func (m *Command_InstallApplication) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_InstallApplication) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.InstallApplication != nil { - { - size, err := m.InstallApplication.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - return len(dAtA) - i, nil -} -func (m *Command_AccountConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_AccountConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.AccountConfiguration != nil { - { - size, err := m.AccountConfiguration.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x8a - } - return len(dAtA) - i, nil -} -func (m *Command_ApplyRedemptionCode) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_ApplyRedemptionCode) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ApplyRedemptionCode != nil { - { - size, err := m.ApplyRedemptionCode.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x92 - } - return len(dAtA) - i, nil -} -func (m *Command_ManagedApplicationList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_ManagedApplicationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ManagedApplicationList != nil { - { - size, err := m.ManagedApplicationList.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x9a - } - return len(dAtA) - i, nil -} -func (m *Command_RemoveApplication) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_RemoveApplication) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.RemoveApplication != nil { - { - size, err := m.RemoveApplication.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xa2 - } - return len(dAtA) - i, nil -} -func (m *Command_InviteToProgram) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_InviteToProgram) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.InviteToProgram != nil { - { - size, err := m.InviteToProgram.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xaa - } - return len(dAtA) - i, nil -} -func (m *Command_ValidataApplications) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_ValidataApplications) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ValidataApplications != nil { - { - size, err := m.ValidataApplications.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xb2 - } - return len(dAtA) - i, nil -} -func (m *Command_InstallMedia) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_InstallMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.InstallMedia != nil { - { - size, err := m.InstallMedia.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - return len(dAtA) - i, nil -} -func (m *Command_RemoveMedia) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_RemoveMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.RemoveMedia != nil { - { - size, err := m.RemoveMedia.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xc2 - } - return len(dAtA) - i, nil -} -func (m *Command_Settings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_Settings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.Settings != nil { - { - size, err := m.Settings.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xca - } - return len(dAtA) - i, nil -} -func (m *Command_ManagedApplicationConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_ManagedApplicationConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ManagedApplicationConfiguration != nil { - { - size, err := m.ManagedApplicationConfiguration.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xd2 - } - return len(dAtA) - i, nil -} -func (m *Command_ManagedApplicationAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_ManagedApplicationAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ManagedApplicationAttributes != nil { - { - size, err := m.ManagedApplicationAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xda - } - return len(dAtA) - i, nil -} -func (m *Command_ManagedApplicationFeedback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_ManagedApplicationFeedback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ManagedApplicationFeedback != nil { - { - size, err := m.ManagedApplicationFeedback.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xe2 - } - return len(dAtA) - i, nil -} -func (m *Command_SetFirmwarePassword) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_SetFirmwarePassword) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SetFirmwarePassword != nil { - { - size, err := m.SetFirmwarePassword.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xea - } - return len(dAtA) - i, nil -} -func (m *Command_VerifyFirmwarePassword) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_VerifyFirmwarePassword) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.VerifyFirmwarePassword != nil { - { - size, err := m.VerifyFirmwarePassword.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xf2 - } - return len(dAtA) - i, nil -} -func (m *Command_SetAutoAdminPassword) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_SetAutoAdminPassword) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SetAutoAdminPassword != nil { - { - size, err := m.SetAutoAdminPassword.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xfa - } - return len(dAtA) - i, nil -} -func (m *Command_ScheduleOsUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_ScheduleOsUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ScheduleOsUpdate != nil { - { - size, err := m.ScheduleOsUpdate.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x82 - } - return len(dAtA) - i, nil -} -func (m *Command_ScheduleOsUpdateScan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_ScheduleOsUpdateScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ScheduleOsUpdateScan != nil { - { - size, err := m.ScheduleOsUpdateScan.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x8a - } - return len(dAtA) - i, nil -} -func (m *Command_ActiveNsExtensions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_ActiveNsExtensions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.ActiveNsExtensions != nil { - { - size, err := m.ActiveNsExtensions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x92 - } - return len(dAtA) - i, nil -} -func (m *Command_RotateFilevaultKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_RotateFilevaultKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.RotateFilevaultKey != nil { - { - size, err := m.RotateFilevaultKey.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x9a - } - return len(dAtA) - i, nil -} -func (m *Command_InstallEnterpriseApplication) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_InstallEnterpriseApplication) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.InstallEnterpriseApplication != nil { - { - size, err := m.InstallEnterpriseApplication.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xa2 - } - return len(dAtA) - i, nil -} -func (m *Command_SetBootstrapToken) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_SetBootstrapToken) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SetBootstrapToken != nil { - { - size, err := m.SetBootstrapToken.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xaa - } - return len(dAtA) - i, nil -} -func (m *Command_SetRecoveryLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_SetRecoveryLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.SetRecoveryLock != nil { - { - size, err := m.SetRecoveryLock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xb2 - } - return len(dAtA) - i, nil -} -func (m *Command_VerifyRecoveryLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Command_VerifyRecoveryLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - if m.VerifyRecoveryLock != nil { - { - size, err := m.VerifyRecoveryLock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0xba - } - return len(dAtA) - i, nil -} -func (m *InstallProfile) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *InstallProfile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InstallProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Payload) > 0 { - i -= len(m.Payload) - copy(dAtA[i:], m.Payload) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Payload))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RemoveProfile) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RemoveProfile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *InstallProvisioningProfile) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *InstallProvisioningProfile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InstallProvisioningProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ProvisioningProfile) > 0 { - i -= len(m.ProvisioningProfile) - copy(dAtA[i:], m.ProvisioningProfile) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ProvisioningProfile))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RemoveProvisioningProfile) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RemoveProvisioningProfile) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveProvisioningProfile) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Uuid) > 0 { - i -= len(m.Uuid) - copy(dAtA[i:], m.Uuid) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Uuid))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *InstalledApplicationList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *InstalledApplicationList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InstalledApplicationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ManagedAppsOnly { - i-- - if m.ManagedAppsOnly { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.Identifiers) > 0 { - for iNdEx := len(m.Identifiers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Identifiers[iNdEx]) - copy(dAtA[i:], m.Identifiers[iNdEx]) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Identifiers[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *DeviceInformation) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeviceInformation) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeviceInformation) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Queries) > 0 { - for iNdEx := len(m.Queries) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Queries[iNdEx]) - copy(dAtA[i:], m.Queries[iNdEx]) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Queries[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ClearPasscode) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ClearPasscode) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ClearPasscode) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.UnlockToken) > 0 { - i -= len(m.UnlockToken) - copy(dAtA[i:], m.UnlockToken) - i = encodeVarintMdm(dAtA, i, uint64(len(m.UnlockToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeviceLock) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeviceLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeviceLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PhoneNumber) > 0 { - i -= len(m.PhoneNumber) - copy(dAtA[i:], m.PhoneNumber) - i = encodeVarintMdm(dAtA, i, uint64(len(m.PhoneNumber))) - i-- - dAtA[i] = 0x1a - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0x12 - } - if len(m.Pin) > 0 { - i -= len(m.Pin) - copy(dAtA[i:], m.Pin) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Pin))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EraseDevice) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EraseDevice) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EraseDevice) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.DisallowProximitySetup { - i-- - if m.DisallowProximitySetup { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.PreserveDataPlan { - i-- - if m.PreserveDataPlan { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.Pin) > 0 { - i -= len(m.Pin) - copy(dAtA[i:], m.Pin) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Pin))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *RequestMirroring) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RequestMirroring) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RequestMirroring) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Password) > 0 { - i -= len(m.Password) - copy(dAtA[i:], m.Password) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Password))) - i-- - dAtA[i] = 0x22 - } - if len(m.ScanTime) > 0 { - i -= len(m.ScanTime) - copy(dAtA[i:], m.ScanTime) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ScanTime))) - i-- - dAtA[i] = 0x1a - } - if len(m.DestinationDeviceId) > 0 { - i -= len(m.DestinationDeviceId) - copy(dAtA[i:], m.DestinationDeviceId) - i = encodeVarintMdm(dAtA, i, uint64(len(m.DestinationDeviceId))) - i-- - dAtA[i] = 0x12 - } - if len(m.DestinationName) > 0 { - i -= len(m.DestinationName) - copy(dAtA[i:], m.DestinationName) - i = encodeVarintMdm(dAtA, i, uint64(len(m.DestinationName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Restrictions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Restrictions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Restrictions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ProfileRestrictions { - i-- - if m.ProfileRestrictions { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *UnlockUserAccount) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *UnlockUserAccount) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *UnlockUserAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Username) > 0 { - i -= len(m.Username) - copy(dAtA[i:], m.Username) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Username))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeleteUser) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeleteUser) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeleteUser) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ForceDeletion { - i-- - if m.ForceDeletion { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.Username) > 0 { - i -= len(m.Username) - copy(dAtA[i:], m.Username) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Username))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *EnableLostMode) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *EnableLostMode) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *EnableLostMode) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Footnote) > 0 { - i -= len(m.Footnote) - copy(dAtA[i:], m.Footnote) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Footnote))) - i-- - dAtA[i] = 0x1a - } - if len(m.PhoneNumber) > 0 { - i -= len(m.PhoneNumber) - copy(dAtA[i:], m.PhoneNumber) - i = encodeVarintMdm(dAtA, i, uint64(len(m.PhoneNumber))) - i-- - dAtA[i] = 0x12 - } - if len(m.Message) > 0 { - i -= len(m.Message) - copy(dAtA[i:], m.Message) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Message))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *InstallApplication) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *InstallApplication) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InstallApplication) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ChangeManagementState) > 0 { - i -= len(m.ChangeManagementState) - copy(dAtA[i:], m.ChangeManagementState) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ChangeManagementState))) - i-- - dAtA[i] = 0x42 - } - if m.Attributes != nil { - { - size, err := m.Attributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.Configuration != nil { - { - size, err := m.Configuration.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.ManagementFlags != 0 { - i = encodeVarintMdm(dAtA, i, uint64(m.ManagementFlags)) - i-- - dAtA[i] = 0x28 - } - if len(m.ManifestUrl) > 0 { - i -= len(m.ManifestUrl) - copy(dAtA[i:], m.ManifestUrl) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ManifestUrl))) - i-- - dAtA[i] = 0x22 - } - if m.Options != nil { - { - size, err := m.Options.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0x12 - } - if m.ItunesStoreId != 0 { - i = encodeVarintMdm(dAtA, i, uint64(m.ItunesStoreId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *InstallApplicationOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *InstallApplicationOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InstallApplicationOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PurchaseMethod != 0 { - i = encodeVarintMdm(dAtA, i, uint64(m.PurchaseMethod)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *InstallApplicationConfiguration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *InstallApplicationConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InstallApplicationConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *InstallApplicationAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *InstallApplicationAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InstallApplicationAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - return len(dAtA) - i, nil -} - -func (m *InstallEnterpriseApplication) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *InstallEnterpriseApplication) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InstallEnterpriseApplication) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PinningRevocationCheckRequired { - i-- - if m.PinningRevocationCheckRequired { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.ManifestUrlPinningCerts) > 0 { - for iNdEx := len(m.ManifestUrlPinningCerts) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.ManifestUrlPinningCerts[iNdEx]) - copy(dAtA[i:], m.ManifestUrlPinningCerts[iNdEx]) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ManifestUrlPinningCerts[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if len(m.ManifestUrl) > 0 { - i -= len(m.ManifestUrl) - copy(dAtA[i:], m.ManifestUrl) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ManifestUrl))) - i-- - dAtA[i] = 0x12 - } - if m.Manifest != nil { - { - size, err := m.Manifest.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Manifest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Manifest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Manifest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ManifestItems) > 0 { - for iNdEx := len(m.ManifestItems) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ManifestItems[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ManifestItem) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ManifestItem) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ManifestItem) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Metadata != nil { - { - size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Assets) > 0 { - for iNdEx := len(m.Assets) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Assets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Asset) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Asset) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Asset) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Sha256S) > 0 { - for iNdEx := len(m.Sha256S) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Sha256S[iNdEx]) - copy(dAtA[i:], m.Sha256S[iNdEx]) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Sha256S[iNdEx]))) - i-- - dAtA[i] = 0x32 - } - } - if m.Sha256Size != 0 { - i = encodeVarintMdm(dAtA, i, uint64(m.Sha256Size)) - i-- - dAtA[i] = 0x28 - } - if len(m.Url) > 0 { - i -= len(m.Url) - copy(dAtA[i:], m.Url) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Url))) - i-- - dAtA[i] = 0x22 - } - if len(m.Md5S) > 0 { - for iNdEx := len(m.Md5S) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Md5S[iNdEx]) - copy(dAtA[i:], m.Md5S[iNdEx]) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Md5S[iNdEx]))) - i-- - dAtA[i] = 0x1a - } - } - if m.Md5Size != 0 { - i = encodeVarintMdm(dAtA, i, uint64(m.Md5Size)) - i-- - dAtA[i] = 0x10 - } - if len(m.Kind) > 0 { - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Metadata) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Metadata) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.SizeInBytes != 0 { - i = encodeVarintMdm(dAtA, i, uint64(m.SizeInBytes)) - i-- - dAtA[i] = 0x38 - } - if len(m.Title) > 0 { - i -= len(m.Title) - copy(dAtA[i:], m.Title) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Title))) - i-- - dAtA[i] = 0x32 - } - if len(m.Subtitle) > 0 { - i -= len(m.Subtitle) - copy(dAtA[i:], m.Subtitle) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Subtitle))) - i-- - dAtA[i] = 0x2a - } - if len(m.Kind) > 0 { - i -= len(m.Kind) - copy(dAtA[i:], m.Kind) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Kind))) - i-- - dAtA[i] = 0x22 - } - if len(m.Items) > 0 { - for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.BundleVersion) > 0 { - i -= len(m.BundleVersion) - copy(dAtA[i:], m.BundleVersion) - i = encodeVarintMdm(dAtA, i, uint64(len(m.BundleVersion))) - i-- - dAtA[i] = 0x12 - } - if len(m.BundleIdentifier) > 0 { - i -= len(m.BundleIdentifier) - copy(dAtA[i:], m.BundleIdentifier) - i = encodeVarintMdm(dAtA, i, uint64(len(m.BundleIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *BundleInfo) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BundleInfo) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BundleInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.BundleVersion) > 0 { - i -= len(m.BundleVersion) - copy(dAtA[i:], m.BundleVersion) - i = encodeVarintMdm(dAtA, i, uint64(len(m.BundleVersion))) - i-- - dAtA[i] = 0x12 - } - if len(m.BundleIdentifier) > 0 { - i -= len(m.BundleIdentifier) - copy(dAtA[i:], m.BundleIdentifier) - i = encodeVarintMdm(dAtA, i, uint64(len(m.BundleIdentifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ApplyRedemptionCode) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ApplyRedemptionCode) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ApplyRedemptionCode) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.RedemptionCode) > 0 { - i -= len(m.RedemptionCode) - copy(dAtA[i:], m.RedemptionCode) - i = encodeVarintMdm(dAtA, i, uint64(len(m.RedemptionCode))) - i-- - dAtA[i] = 0x12 - } - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ManagedApplicationList) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ManagedApplicationList) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ManagedApplicationList) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Identifiers) > 0 { - for iNdEx := len(m.Identifiers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Identifiers[iNdEx]) - copy(dAtA[i:], m.Identifiers[iNdEx]) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Identifiers[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RemoveApplication) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RemoveApplication) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveApplication) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *InviteToProgram) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *InviteToProgram) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InviteToProgram) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.InvitationUrl) > 0 { - i -= len(m.InvitationUrl) - copy(dAtA[i:], m.InvitationUrl) - i = encodeVarintMdm(dAtA, i, uint64(len(m.InvitationUrl))) - i-- - dAtA[i] = 0x12 - } - if len(m.ProgramId) > 0 { - i -= len(m.ProgramId) - copy(dAtA[i:], m.ProgramId) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ProgramId))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ValidateApplications) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ValidateApplications) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ValidateApplications) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Identifiers) > 0 { - for iNdEx := len(m.Identifiers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Identifiers[iNdEx]) - copy(dAtA[i:], m.Identifiers[iNdEx]) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Identifiers[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *AccountConfiguration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AccountConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AccountConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PrimaryAccountUserName) > 0 { - i -= len(m.PrimaryAccountUserName) - copy(dAtA[i:], m.PrimaryAccountUserName) - i = encodeVarintMdm(dAtA, i, uint64(len(m.PrimaryAccountUserName))) - i-- - dAtA[i] = 0x3a - } - if len(m.PrimaryAccountFullName) > 0 { - i -= len(m.PrimaryAccountFullName) - copy(dAtA[i:], m.PrimaryAccountFullName) - i = encodeVarintMdm(dAtA, i, uint64(len(m.PrimaryAccountFullName))) - i-- - dAtA[i] = 0x32 - } - if m.LockPrimaryAccountInfo { - i-- - if m.LockPrimaryAccountInfo { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x28 - } - if m.DontAutoPopulatePrimaryAccountInfo { - i-- - if m.DontAutoPopulatePrimaryAccountInfo { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.AutoSetupAdminAccounts) > 0 { - for iNdEx := len(m.AutoSetupAdminAccounts) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.AutoSetupAdminAccounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if m.SetPrimarySetupAccountAsRegularUser { - i-- - if m.SetPrimarySetupAccountAsRegularUser { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.SkipPrimarySetupAccountCreation { - i-- - if m.SkipPrimarySetupAccountCreation { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AutoSetupAdminAccounts) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AutoSetupAdminAccounts) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AutoSetupAdminAccounts) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Hidden { - i-- - if m.Hidden { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if len(m.PasswordHash) > 0 { - i -= len(m.PasswordHash) - copy(dAtA[i:], m.PasswordHash) - i = encodeVarintMdm(dAtA, i, uint64(len(m.PasswordHash))) - i-- - dAtA[i] = 0x1a - } - if len(m.FullName) > 0 { - i -= len(m.FullName) - copy(dAtA[i:], m.FullName) - i = encodeVarintMdm(dAtA, i, uint64(len(m.FullName))) - i-- - dAtA[i] = 0x12 - } - if len(m.ShortName) > 0 { - i -= len(m.ShortName) - copy(dAtA[i:], m.ShortName) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ShortName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *InstallMedia) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *InstallMedia) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *InstallMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.MediaType) > 0 { - i -= len(m.MediaType) - copy(dAtA[i:], m.MediaType) - i = encodeVarintMdm(dAtA, i, uint64(len(m.MediaType))) - i-- - dAtA[i] = 0x1a - } - if len(m.MediaUrl) > 0 { - i -= len(m.MediaUrl) - copy(dAtA[i:], m.MediaUrl) - i = encodeVarintMdm(dAtA, i, uint64(len(m.MediaUrl))) - i-- - dAtA[i] = 0x12 - } - if m.ItunesStoreId != 0 { - i = encodeVarintMdm(dAtA, i, uint64(m.ItunesStoreId)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *RemoveMedia) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RemoveMedia) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RemoveMedia) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PersistentId) > 0 { - i -= len(m.PersistentId) - copy(dAtA[i:], m.PersistentId) - i = encodeVarintMdm(dAtA, i, uint64(len(m.PersistentId))) - i-- - dAtA[i] = 0x1a - } - if m.ItunesStoreId != 0 { - i = encodeVarintMdm(dAtA, i, uint64(m.ItunesStoreId)) - i-- - dAtA[i] = 0x10 - } - if len(m.MediaType) > 0 { - i -= len(m.MediaType) - copy(dAtA[i:], m.MediaType) - i = encodeVarintMdm(dAtA, i, uint64(len(m.MediaType))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *Settings) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Settings) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Settings) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Settings) > 0 { - for iNdEx := len(m.Settings) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Settings[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Setting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Setting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Setting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.TimeZone != nil { - { - size, err := m.TimeZone.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if m.ApplicationConfiguration != nil { - { - size, err := m.ApplicationConfiguration.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x7a - } - if m.AppAnalytics != nil { - { - size, err := m.AppAnalytics.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x72 - } - if m.DiagnosticSubmission != nil { - { - size, err := m.DiagnosticSubmission.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x6a - } - if m.MaximumResidentUsers != nil { - { - size, err := m.MaximumResidentUsers.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x62 - } - if m.PasscodeLockGracePeriod != nil { - { - size, err := m.PasscodeLockGracePeriod.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x5a - } - if m.MdmOptions != nil { - { - size, err := m.MdmOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x52 - } - if m.ApplicationAttributes != nil { - { - size, err := m.ApplicationAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x4a - } - if m.Bluetooth != nil { - { - size, err := m.Bluetooth.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x42 - } - if m.DataRoaming != nil { - { - size, err := m.DataRoaming.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x3a - } - if m.Wallpaper != nil { - { - size, err := m.Wallpaper.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x32 - } - if m.PersonalHotspot != nil { - { - size, err := m.PersonalHotspot.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x2a - } - if m.VoiceRoaming != nil { - { - size, err := m.VoiceRoaming.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - if m.Hostname != nil { - { - size, err := m.Hostname.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - if m.DeviceName != nil { - { - size, err := m.DeviceName.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Item) > 0 { - i -= len(m.Item) - copy(dAtA[i:], m.Item) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Item))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VoiceRoamingSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VoiceRoamingSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VoiceRoamingSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Enabled { - i-- - if m.Enabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *PersonalHotspotSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PersonalHotspotSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PersonalHotspotSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Enabled { - i-- - if m.Enabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *WallpaperSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *WallpaperSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *WallpaperSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Where != 0 { - i = encodeVarintMdm(dAtA, i, uint64(m.Where)) - i-- - dAtA[i] = 0x10 - } - if len(m.Image) > 0 { - i -= len(m.Image) - copy(dAtA[i:], m.Image) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Image))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DataRoamingSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DataRoamingSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DataRoamingSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Enabled { - i-- - if m.Enabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *BluetoothSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BluetoothSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *BluetoothSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Enabled { - i-- - if m.Enabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ApplicationAttributesSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ApplicationAttributesSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ApplicationAttributesSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ApplicationAttributes != nil { - { - size, err := m.ApplicationAttributes.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ApplicationConfigurationSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ApplicationConfigurationSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ApplicationConfigurationSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ConfigurationDictionaryData) > 0 { - i -= len(m.ConfigurationDictionaryData) - copy(dAtA[i:], m.ConfigurationDictionaryData) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ConfigurationDictionaryData))) - i-- - dAtA[i] = 0x12 - } - if len(m.Identifier) > 0 { - i -= len(m.Identifier) - copy(dAtA[i:], m.Identifier) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Identifier))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ApplicationAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ApplicationAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ApplicationAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.VpnUuid) > 0 { - i -= len(m.VpnUuid) - copy(dAtA[i:], m.VpnUuid) - i = encodeVarintMdm(dAtA, i, uint64(len(m.VpnUuid))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *DeviceNameSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DeviceNameSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DeviceNameSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.DeviceName) > 0 { - i -= len(m.DeviceName) - copy(dAtA[i:], m.DeviceName) - i = encodeVarintMdm(dAtA, i, uint64(len(m.DeviceName))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *TimeZoneSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *TimeZoneSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *TimeZoneSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.TimeZone) > 0 { - i -= len(m.TimeZone) - copy(dAtA[i:], m.TimeZone) - i = encodeVarintMdm(dAtA, i, uint64(len(m.TimeZone))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *HostnameSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *HostnameSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *HostnameSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Hostname) > 0 { - i -= len(m.Hostname) - copy(dAtA[i:], m.Hostname) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Hostname))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MDMOptionsSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MDMOptionsSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MDMOptionsSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MdmOptions != nil { - { - size, err := m.MdmOptions.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *MDMOptions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MDMOptions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MDMOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PromptUserToAllowBootstrapTokenForAuthentication { - i-- - if m.PromptUserToAllowBootstrapTokenForAuthentication { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if m.BootstrapTokenAllowed { - i-- - if m.BootstrapTokenAllowed { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if m.ActivationLockAllowedWhileSupervised { - i-- - if m.ActivationLockAllowedWhileSupervised { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *PasscodeLockGracePeriodSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *PasscodeLockGracePeriodSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *PasscodeLockGracePeriodSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.PasscodeLockGracePeriod != 0 { - i = encodeVarintMdm(dAtA, i, uint64(m.PasscodeLockGracePeriod)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *MaximumResidentUsersSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MaximumResidentUsersSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *MaximumResidentUsersSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.MaximumResidentUsers != 0 { - i = encodeVarintMdm(dAtA, i, uint64(m.MaximumResidentUsers)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *DiagnosticSubmissionSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DiagnosticSubmissionSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *DiagnosticSubmissionSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Enabled { - i-- - if m.Enabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *AppAnalyticsSetting) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *AppAnalyticsSetting) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *AppAnalyticsSetting) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Enabled { - i-- - if m.Enabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ManagedApplicationConfiguration) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ManagedApplicationConfiguration) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ManagedApplicationConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Identifiers) > 0 { - for iNdEx := len(m.Identifiers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Identifiers[iNdEx]) - copy(dAtA[i:], m.Identifiers[iNdEx]) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Identifiers[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ManagedApplicationAttributes) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ManagedApplicationAttributes) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ManagedApplicationAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Identifiers) > 0 { - for iNdEx := len(m.Identifiers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Identifiers[iNdEx]) - copy(dAtA[i:], m.Identifiers[iNdEx]) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Identifiers[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ManagedApplicationFeedback) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ManagedApplicationFeedback) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ManagedApplicationFeedback) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.DeleteFeedback { - i-- - if m.DeleteFeedback { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(m.Identifiers) > 0 { - for iNdEx := len(m.Identifiers) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Identifiers[iNdEx]) - copy(dAtA[i:], m.Identifiers[iNdEx]) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Identifiers[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *SetFirmwarePassword) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SetFirmwarePassword) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SetFirmwarePassword) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RequestRequiresNetworkTether { - i-- - if m.RequestRequiresNetworkTether { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.AllowOroms { - i-- - if m.AllowOroms { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.NewPassword) > 0 { - i -= len(m.NewPassword) - copy(dAtA[i:], m.NewPassword) - i = encodeVarintMdm(dAtA, i, uint64(len(m.NewPassword))) - i-- - dAtA[i] = 0x12 - } - if len(m.CurrentPassword) > 0 { - i -= len(m.CurrentPassword) - copy(dAtA[i:], m.CurrentPassword) - i = encodeVarintMdm(dAtA, i, uint64(len(m.CurrentPassword))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VerifyFirmwarePassword) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VerifyFirmwarePassword) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VerifyFirmwarePassword) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Password) > 0 { - i -= len(m.Password) - copy(dAtA[i:], m.Password) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Password))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SetRecoveryLock) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SetRecoveryLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SetRecoveryLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.RequestRequiresNetworkTether { - i-- - if m.RequestRequiresNetworkTether { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x20 - } - if m.AllowOroms { - i-- - if m.AllowOroms { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x18 - } - if len(m.NewPassword) > 0 { - i -= len(m.NewPassword) - copy(dAtA[i:], m.NewPassword) - i = encodeVarintMdm(dAtA, i, uint64(len(m.NewPassword))) - i-- - dAtA[i] = 0x12 - } - if len(m.CurrentPassword) > 0 { - i -= len(m.CurrentPassword) - copy(dAtA[i:], m.CurrentPassword) - i = encodeVarintMdm(dAtA, i, uint64(len(m.CurrentPassword))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *VerifyRecoveryLock) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *VerifyRecoveryLock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *VerifyRecoveryLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Password) > 0 { - i -= len(m.Password) - copy(dAtA[i:], m.Password) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Password))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SetAutoAdminPassword) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SetAutoAdminPassword) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SetAutoAdminPassword) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PasswordHash) > 0 { - i -= len(m.PasswordHash) - copy(dAtA[i:], m.PasswordHash) - i = encodeVarintMdm(dAtA, i, uint64(len(m.PasswordHash))) - i-- - dAtA[i] = 0x12 - } - if len(m.Guid) > 0 { - i -= len(m.Guid) - copy(dAtA[i:], m.Guid) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Guid))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ScheduleOSUpdate) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScheduleOSUpdate) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScheduleOSUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.Updates) > 0 { - for iNdEx := len(m.Updates) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Updates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *Update) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Update) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Update) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.InstallAction) > 0 { - i -= len(m.InstallAction) - copy(dAtA[i:], m.InstallAction) - i = encodeVarintMdm(dAtA, i, uint64(len(m.InstallAction))) - i-- - dAtA[i] = 0x1a - } - if len(m.ProductVersion) > 0 { - i -= len(m.ProductVersion) - copy(dAtA[i:], m.ProductVersion) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ProductVersion))) - i-- - dAtA[i] = 0x12 - } - if len(m.ProductKey) > 0 { - i -= len(m.ProductKey) - copy(dAtA[i:], m.ProductKey) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ProductKey))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ScheduleOSUpdateScan) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ScheduleOSUpdateScan) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ScheduleOSUpdateScan) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.Force { - i-- - if m.Force { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ActiveNSExtensions) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ActiveNSExtensions) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ActiveNSExtensions) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.FilterExtensionPoints) > 0 { - for iNdEx := len(m.FilterExtensionPoints) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.FilterExtensionPoints[iNdEx]) - copy(dAtA[i:], m.FilterExtensionPoints[iNdEx]) - i = encodeVarintMdm(dAtA, i, uint64(len(m.FilterExtensionPoints[iNdEx]))) - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *RotateFileVaultKey) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RotateFileVaultKey) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *RotateFileVaultKey) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ReplyEncryptionCertificate) > 0 { - i -= len(m.ReplyEncryptionCertificate) - copy(dAtA[i:], m.ReplyEncryptionCertificate) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ReplyEncryptionCertificate))) - i-- - dAtA[i] = 0x22 - } - if len(m.NewCertificate) > 0 { - i -= len(m.NewCertificate) - copy(dAtA[i:], m.NewCertificate) - i = encodeVarintMdm(dAtA, i, uint64(len(m.NewCertificate))) - i-- - dAtA[i] = 0x1a - } - if m.FilevaultUnlock != nil { - { - size, err := m.FilevaultUnlock.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.KeyType) > 0 { - i -= len(m.KeyType) - copy(dAtA[i:], m.KeyType) - i = encodeVarintMdm(dAtA, i, uint64(len(m.KeyType))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *FileVaultUnlock) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *FileVaultUnlock) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *FileVaultUnlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PrivateKeyExportPassword) > 0 { - i -= len(m.PrivateKeyExportPassword) - copy(dAtA[i:], m.PrivateKeyExportPassword) - i = encodeVarintMdm(dAtA, i, uint64(len(m.PrivateKeyExportPassword))) - i-- - dAtA[i] = 0x1a - } - if len(m.PrivateKeyExport) > 0 { - i -= len(m.PrivateKeyExport) - copy(dAtA[i:], m.PrivateKeyExport) - i = encodeVarintMdm(dAtA, i, uint64(len(m.PrivateKeyExport))) - i-- - dAtA[i] = 0x12 - } - if len(m.Password) > 0 { - i -= len(m.Password) - copy(dAtA[i:], m.Password) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Password))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *SetBootstrapToken) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *SetBootstrapToken) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *SetBootstrapToken) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.BootstrapToken) > 0 { - i -= len(m.BootstrapToken) - copy(dAtA[i:], m.BootstrapToken) - i = encodeVarintMdm(dAtA, i, uint64(len(m.BootstrapToken))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ResultPayload) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ResultPayload) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ResultPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.ErrorChain) > 0 { - for iNdEx := len(m.ErrorChain) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ErrorChain[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintMdm(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - } - } - if len(m.CommandUuid) > 0 { - i -= len(m.CommandUuid) - copy(dAtA[i:], m.CommandUuid) - i = encodeVarintMdm(dAtA, i, uint64(len(m.CommandUuid))) - i-- - dAtA[i] = 0x12 - } - if len(m.Udid) > 0 { - i -= len(m.Udid) - copy(dAtA[i:], m.Udid) - i = encodeVarintMdm(dAtA, i, uint64(len(m.Udid))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *ErrorChain) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ErrorChain) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ErrorChain) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if m.ErrorCode != 0 { - i = encodeVarintMdm(dAtA, i, uint64(m.ErrorCode)) - i-- - dAtA[i] = 0x20 - } - if len(m.ErrorDomain) > 0 { - i -= len(m.ErrorDomain) - copy(dAtA[i:], m.ErrorDomain) - i = encodeVarintMdm(dAtA, i, uint64(len(m.ErrorDomain))) - i-- - dAtA[i] = 0x1a - } - if len(m.UsEnglishDescription) > 0 { - i -= len(m.UsEnglishDescription) - copy(dAtA[i:], m.UsEnglishDescription) - i = encodeVarintMdm(dAtA, i, uint64(len(m.UsEnglishDescription))) - i-- - dAtA[i] = 0x12 - } - if len(m.LocalizedDescription) > 0 { - i -= len(m.LocalizedDescription) - copy(dAtA[i:], m.LocalizedDescription) - i = encodeVarintMdm(dAtA, i, uint64(len(m.LocalizedDescription))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintMdm(dAtA []byte, offset int, v uint64) int { - offset -= sovMdm(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *CommandPayload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CommandUuid) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.Command != nil { - l = m.Command.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Command) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.RequestType) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.Request != nil { - n += m.Request.Size() - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Command_InstallProfile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InstallProfile != nil { - l = m.InstallProfile.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_RemoveProfile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RemoveProfile != nil { - l = m.RemoveProfile.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_InstallProvisioningProfile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InstallProvisioningProfile != nil { - l = m.InstallProvisioningProfile.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_RemoveProfisioningProfile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RemoveProfisioningProfile != nil { - l = m.RemoveProfisioningProfile.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_InstalledApplicationList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InstalledApplicationList != nil { - l = m.InstalledApplicationList.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_DeviceInformation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DeviceInformation != nil { - l = m.DeviceInformation.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_DeviceLock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DeviceLock != nil { - l = m.DeviceLock.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_ClearPasscode) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ClearPasscode != nil { - l = m.ClearPasscode.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_EraseDevice) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EraseDevice != nil { - l = m.EraseDevice.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_RequestMirroring) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RequestMirroring != nil { - l = m.RequestMirroring.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_Restrictions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Restrictions != nil { - l = m.Restrictions.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_UnlockUserAccount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.UnlockUserAccount != nil { - l = m.UnlockUserAccount.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_DeleteUser) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.DeleteUser != nil { - l = m.DeleteUser.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_EnableLostMode) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.EnableLostMode != nil { - l = m.EnableLostMode.Size() - n += 1 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_InstallApplication) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InstallApplication != nil { - l = m.InstallApplication.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_AccountConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.AccountConfiguration != nil { - l = m.AccountConfiguration.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_ApplyRedemptionCode) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ApplyRedemptionCode != nil { - l = m.ApplyRedemptionCode.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_ManagedApplicationList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ManagedApplicationList != nil { - l = m.ManagedApplicationList.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_RemoveApplication) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RemoveApplication != nil { - l = m.RemoveApplication.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_InviteToProgram) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InviteToProgram != nil { - l = m.InviteToProgram.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_ValidataApplications) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ValidataApplications != nil { - l = m.ValidataApplications.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_InstallMedia) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InstallMedia != nil { - l = m.InstallMedia.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_RemoveMedia) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RemoveMedia != nil { - l = m.RemoveMedia.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_Settings) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Settings != nil { - l = m.Settings.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_ManagedApplicationConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ManagedApplicationConfiguration != nil { - l = m.ManagedApplicationConfiguration.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_ManagedApplicationAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ManagedApplicationAttributes != nil { - l = m.ManagedApplicationAttributes.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_ManagedApplicationFeedback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ManagedApplicationFeedback != nil { - l = m.ManagedApplicationFeedback.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_SetFirmwarePassword) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SetFirmwarePassword != nil { - l = m.SetFirmwarePassword.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_VerifyFirmwarePassword) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.VerifyFirmwarePassword != nil { - l = m.VerifyFirmwarePassword.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_SetAutoAdminPassword) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SetAutoAdminPassword != nil { - l = m.SetAutoAdminPassword.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_ScheduleOsUpdate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ScheduleOsUpdate != nil { - l = m.ScheduleOsUpdate.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_ScheduleOsUpdateScan) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ScheduleOsUpdateScan != nil { - l = m.ScheduleOsUpdateScan.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_ActiveNsExtensions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ActiveNsExtensions != nil { - l = m.ActiveNsExtensions.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_RotateFilevaultKey) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.RotateFilevaultKey != nil { - l = m.RotateFilevaultKey.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_InstallEnterpriseApplication) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InstallEnterpriseApplication != nil { - l = m.InstallEnterpriseApplication.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_SetBootstrapToken) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SetBootstrapToken != nil { - l = m.SetBootstrapToken.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_SetRecoveryLock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SetRecoveryLock != nil { - l = m.SetRecoveryLock.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *Command_VerifyRecoveryLock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.VerifyRecoveryLock != nil { - l = m.VerifyRecoveryLock.Size() - n += 2 + l + sovMdm(uint64(l)) - } - return n -} -func (m *InstallProfile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Payload) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *RemoveProfile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InstallProvisioningProfile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ProvisioningProfile) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *RemoveProvisioningProfile) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Uuid) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InstalledApplicationList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Identifiers) > 0 { - for _, s := range m.Identifiers { - l = len(s) - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.ManagedAppsOnly { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DeviceInformation) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Queries) > 0 { - for _, s := range m.Queries { - l = len(s) - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ClearPasscode) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.UnlockToken) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DeviceLock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Pin) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.Message) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.PhoneNumber) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *EraseDevice) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Pin) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.PreserveDataPlan { - n += 2 - } - if m.DisallowProximitySetup { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *RequestMirroring) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DestinationName) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.DestinationDeviceId) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.ScanTime) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.Password) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Restrictions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ProfileRestrictions { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *UnlockUserAccount) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Username) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DeleteUser) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Username) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.ForceDeletion { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *EnableLostMode) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Message) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.PhoneNumber) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.Footnote) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InstallApplication) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ItunesStoreId != 0 { - n += 1 + sovMdm(uint64(m.ItunesStoreId)) - } - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.Options != nil { - l = m.Options.Size() - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.ManifestUrl) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.ManagementFlags != 0 { - n += 1 + sovMdm(uint64(m.ManagementFlags)) - } - if m.Configuration != nil { - l = m.Configuration.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.Attributes != nil { - l = m.Attributes.Size() - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.ChangeManagementState) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InstallApplicationOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PurchaseMethod != 0 { - n += 1 + sovMdm(uint64(m.PurchaseMethod)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InstallApplicationConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InstallApplicationAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InstallEnterpriseApplication) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Manifest != nil { - l = m.Manifest.Size() - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.ManifestUrl) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if len(m.ManifestUrlPinningCerts) > 0 { - for _, b := range m.ManifestUrlPinningCerts { - l = len(b) - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.PinningRevocationCheckRequired { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Manifest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ManifestItems) > 0 { - for _, e := range m.ManifestItems { - l = e.Size() - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ManifestItem) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Assets) > 0 { - for _, e := range m.Assets { - l = e.Size() - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.Metadata != nil { - l = m.Metadata.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Asset) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Kind) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.Md5Size != 0 { - n += 1 + sovMdm(uint64(m.Md5Size)) - } - if len(m.Md5S) > 0 { - for _, s := range m.Md5S { - l = len(s) - n += 1 + l + sovMdm(uint64(l)) - } - } - l = len(m.Url) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.Sha256Size != 0 { - n += 1 + sovMdm(uint64(m.Sha256Size)) - } - if len(m.Sha256S) > 0 { - for _, s := range m.Sha256S { - l = len(s) - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Metadata) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BundleIdentifier) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.BundleVersion) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if len(m.Items) > 0 { - for _, e := range m.Items { - l = e.Size() - n += 1 + l + sovMdm(uint64(l)) - } - } - l = len(m.Kind) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.Subtitle) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.Title) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.SizeInBytes != 0 { - n += 1 + sovMdm(uint64(m.SizeInBytes)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *BundleInfo) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BundleIdentifier) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.BundleVersion) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ApplyRedemptionCode) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.RedemptionCode) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ManagedApplicationList) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Identifiers) > 0 { - for _, s := range m.Identifiers { - l = len(s) - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *RemoveApplication) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InviteToProgram) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ProgramId) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.InvitationUrl) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ValidateApplications) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Identifiers) > 0 { - for _, s := range m.Identifiers { - l = len(s) - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AccountConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.SkipPrimarySetupAccountCreation { - n += 2 - } - if m.SetPrimarySetupAccountAsRegularUser { - n += 2 - } - if len(m.AutoSetupAdminAccounts) > 0 { - for _, e := range m.AutoSetupAdminAccounts { - l = e.Size() - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.DontAutoPopulatePrimaryAccountInfo { - n += 2 - } - if m.LockPrimaryAccountInfo { - n += 2 - } - l = len(m.PrimaryAccountFullName) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.PrimaryAccountUserName) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AutoSetupAdminAccounts) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ShortName) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.FullName) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.PasswordHash) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.Hidden { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *InstallMedia) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ItunesStoreId != 0 { - n += 1 + sovMdm(uint64(m.ItunesStoreId)) - } - l = len(m.MediaUrl) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.MediaType) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *RemoveMedia) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.MediaType) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.ItunesStoreId != 0 { - n += 1 + sovMdm(uint64(m.ItunesStoreId)) - } - l = len(m.PersistentId) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Settings) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Settings) > 0 { - for _, e := range m.Settings { - l = e.Size() - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Setting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Item) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.DeviceName != nil { - l = m.DeviceName.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.Hostname != nil { - l = m.Hostname.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.VoiceRoaming != nil { - l = m.VoiceRoaming.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.PersonalHotspot != nil { - l = m.PersonalHotspot.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.Wallpaper != nil { - l = m.Wallpaper.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.DataRoaming != nil { - l = m.DataRoaming.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.Bluetooth != nil { - l = m.Bluetooth.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.ApplicationAttributes != nil { - l = m.ApplicationAttributes.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.MdmOptions != nil { - l = m.MdmOptions.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.PasscodeLockGracePeriod != nil { - l = m.PasscodeLockGracePeriod.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.MaximumResidentUsers != nil { - l = m.MaximumResidentUsers.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.DiagnosticSubmission != nil { - l = m.DiagnosticSubmission.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.AppAnalytics != nil { - l = m.AppAnalytics.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.ApplicationConfiguration != nil { - l = m.ApplicationConfiguration.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.TimeZone != nil { - l = m.TimeZone.Size() - n += 2 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *VoiceRoamingSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Enabled { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *PersonalHotspotSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Enabled { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *WallpaperSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Image) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.Where != 0 { - n += 1 + sovMdm(uint64(m.Where)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DataRoamingSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Enabled { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *BluetoothSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Enabled { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ApplicationAttributesSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.ApplicationAttributes != nil { - l = m.ApplicationAttributes.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ApplicationConfigurationSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Identifier) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.ConfigurationDictionaryData) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ApplicationAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.VpnUuid) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DeviceNameSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.DeviceName) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *TimeZoneSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.TimeZone) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *HostnameSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Hostname) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MDMOptionsSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MdmOptions != nil { - l = m.MdmOptions.Size() - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MDMOptions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.ActivationLockAllowedWhileSupervised { - n += 2 - } - if m.BootstrapTokenAllowed { - n += 2 - } - if m.PromptUserToAllowBootstrapTokenForAuthentication { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *PasscodeLockGracePeriodSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.PasscodeLockGracePeriod != 0 { - n += 1 + sovMdm(uint64(m.PasscodeLockGracePeriod)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *MaximumResidentUsersSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.MaximumResidentUsers != 0 { - n += 1 + sovMdm(uint64(m.MaximumResidentUsers)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DiagnosticSubmissionSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Enabled { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *AppAnalyticsSetting) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Enabled { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ManagedApplicationConfiguration) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Identifiers) > 0 { - for _, s := range m.Identifiers { - l = len(s) - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ManagedApplicationAttributes) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Identifiers) > 0 { - for _, s := range m.Identifiers { - l = len(s) - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ManagedApplicationFeedback) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Identifiers) > 0 { - for _, s := range m.Identifiers { - l = len(s) - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.DeleteFeedback { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SetFirmwarePassword) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CurrentPassword) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.NewPassword) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.AllowOroms { - n += 2 - } - if m.RequestRequiresNetworkTether { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *VerifyFirmwarePassword) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Password) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SetRecoveryLock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.CurrentPassword) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.NewPassword) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.AllowOroms { - n += 2 - } - if m.RequestRequiresNetworkTether { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *VerifyRecoveryLock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Password) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SetAutoAdminPassword) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Guid) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.PasswordHash) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ScheduleOSUpdate) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Updates) > 0 { - for _, e := range m.Updates { - l = e.Size() - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *Update) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.ProductKey) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.ProductVersion) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.InstallAction) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ScheduleOSUpdateScan) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Force { - n += 2 - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ActiveNSExtensions) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.FilterExtensionPoints) > 0 { - for _, s := range m.FilterExtensionPoints { - l = len(s) - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *RotateFileVaultKey) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.KeyType) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.FilevaultUnlock != nil { - l = m.FilevaultUnlock.Size() - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.NewCertificate) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.ReplyEncryptionCertificate) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *FileVaultUnlock) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Password) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.PrivateKeyExport) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.PrivateKeyExportPassword) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *SetBootstrapToken) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.BootstrapToken) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ResultPayload) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Udid) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.CommandUuid) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if len(m.ErrorChain) > 0 { - for _, e := range m.ErrorChain { - l = e.Size() - n += 1 + l + sovMdm(uint64(l)) - } - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *ErrorChain) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.LocalizedDescription) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.UsEnglishDescription) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - l = len(m.ErrorDomain) - if l > 0 { - n += 1 + l + sovMdm(uint64(l)) - } - if m.ErrorCode != 0 { - n += 1 + sovMdm(uint64(m.ErrorCode)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovMdm(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozMdm(x uint64) (n int) { - return sovMdm(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *CommandPayload) 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 ErrIntOverflowMdm - } - 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: CommandPayload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: CommandPayload: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommandUuid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CommandUuid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Command", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Command == nil { - m.Command = &Command{} - } - if err := m.Command.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Command) 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 ErrIntOverflowMdm - } - 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: Command: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Command: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RequestType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InstallProfile", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &InstallProfile{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_InstallProfile{v} - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RemoveProfile", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &RemoveProfile{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_RemoveProfile{v} - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InstallProvisioningProfile", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &InstallProvisioningProfile{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_InstallProvisioningProfile{v} - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RemoveProfisioningProfile", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &RemoveProvisioningProfile{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_RemoveProfisioningProfile{v} - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InstalledApplicationList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &InstalledApplicationList{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_InstalledApplicationList{v} - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeviceInformation", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &DeviceInformation{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_DeviceInformation{v} - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeviceLock", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &DeviceLock{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_DeviceLock{v} - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ClearPasscode", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ClearPasscode{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_ClearPasscode{v} - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EraseDevice", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &EraseDevice{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_EraseDevice{v} - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestMirroring", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &RequestMirroring{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_RequestMirroring{v} - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Restrictions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Restrictions{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_Restrictions{v} - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnlockUserAccount", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &UnlockUserAccount{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_UnlockUserAccount{v} - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteUser", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &DeleteUser{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_DeleteUser{v} - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EnableLostMode", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &EnableLostMode{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_EnableLostMode{v} - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InstallApplication", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &InstallApplication{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_InstallApplication{v} - iNdEx = postIndex - case 17: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AccountConfiguration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &AccountConfiguration{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_AccountConfiguration{v} - iNdEx = postIndex - case 18: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ApplyRedemptionCode", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ApplyRedemptionCode{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_ApplyRedemptionCode{v} - iNdEx = postIndex - case 19: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ManagedApplicationList", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ManagedApplicationList{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_ManagedApplicationList{v} - iNdEx = postIndex - case 20: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RemoveApplication", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &RemoveApplication{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_RemoveApplication{v} - iNdEx = postIndex - case 21: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InviteToProgram", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &InviteToProgram{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_InviteToProgram{v} - iNdEx = postIndex - case 22: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ValidataApplications", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ValidateApplications{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_ValidataApplications{v} - iNdEx = postIndex - case 23: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InstallMedia", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &InstallMedia{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_InstallMedia{v} - iNdEx = postIndex - case 24: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RemoveMedia", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &RemoveMedia{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_RemoveMedia{v} - iNdEx = postIndex - case 25: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Settings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &Settings{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_Settings{v} - iNdEx = postIndex - case 26: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ManagedApplicationConfiguration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ManagedApplicationConfiguration{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_ManagedApplicationConfiguration{v} - iNdEx = postIndex - case 27: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ManagedApplicationAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ManagedApplicationAttributes{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_ManagedApplicationAttributes{v} - iNdEx = postIndex - case 28: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ManagedApplicationFeedback", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ManagedApplicationFeedback{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_ManagedApplicationFeedback{v} - iNdEx = postIndex - case 29: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SetFirmwarePassword", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &SetFirmwarePassword{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_SetFirmwarePassword{v} - iNdEx = postIndex - case 30: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VerifyFirmwarePassword", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &VerifyFirmwarePassword{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_VerifyFirmwarePassword{v} - iNdEx = postIndex - case 31: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SetAutoAdminPassword", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &SetAutoAdminPassword{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_SetAutoAdminPassword{v} - iNdEx = postIndex - case 32: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleOsUpdate", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ScheduleOSUpdate{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_ScheduleOsUpdate{v} - iNdEx = postIndex - case 33: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScheduleOsUpdateScan", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ScheduleOSUpdateScan{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_ScheduleOsUpdateScan{v} - iNdEx = postIndex - case 34: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActiveNsExtensions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &ActiveNSExtensions{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_ActiveNsExtensions{v} - iNdEx = postIndex - case 35: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RotateFilevaultKey", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &RotateFileVaultKey{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_RotateFilevaultKey{v} - iNdEx = postIndex - case 36: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InstallEnterpriseApplication", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &InstallEnterpriseApplication{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_InstallEnterpriseApplication{v} - iNdEx = postIndex - case 37: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SetBootstrapToken", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &SetBootstrapToken{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_SetBootstrapToken{v} - iNdEx = postIndex - case 38: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SetRecoveryLock", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &SetRecoveryLock{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_SetRecoveryLock{v} - iNdEx = postIndex - case 39: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VerifyRecoveryLock", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - v := &VerifyRecoveryLock{} - if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - m.Request = &Command_VerifyRecoveryLock{v} - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InstallProfile) 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 ErrIntOverflowMdm - } - 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: InstallProfile: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InstallProfile: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Payload = append(m.Payload[:0], dAtA[iNdEx:postIndex]...) - if m.Payload == nil { - m.Payload = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveProfile) 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 ErrIntOverflowMdm - } - 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: RemoveProfile: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveProfile: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InstallProvisioningProfile) 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 ErrIntOverflowMdm - } - 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: InstallProvisioningProfile: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InstallProvisioningProfile: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProvisioningProfile", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProvisioningProfile = append(m.ProvisioningProfile[:0], dAtA[iNdEx:postIndex]...) - if m.ProvisioningProfile == nil { - m.ProvisioningProfile = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveProvisioningProfile) 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 ErrIntOverflowMdm - } - 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: RemoveProvisioningProfile: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveProvisioningProfile: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Uuid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Uuid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InstalledApplicationList) 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 ErrIntOverflowMdm - } - 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: InstalledApplicationList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InstalledApplicationList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifiers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifiers = append(m.Identifiers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ManagedAppsOnly", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ManagedAppsOnly = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeviceInformation) 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 ErrIntOverflowMdm - } - 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: DeviceInformation: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeviceInformation: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Queries", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Queries = append(m.Queries, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ClearPasscode) 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 ErrIntOverflowMdm - } - 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: ClearPasscode: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ClearPasscode: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UnlockToken", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UnlockToken = append(m.UnlockToken[:0], dAtA[iNdEx:postIndex]...) - if m.UnlockToken == nil { - m.UnlockToken = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeviceLock) 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 ErrIntOverflowMdm - } - 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: DeviceLock: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeviceLock: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PhoneNumber", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PhoneNumber = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EraseDevice) 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 ErrIntOverflowMdm - } - 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: EraseDevice: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EraseDevice: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pin", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Pin = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PreserveDataPlan", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.PreserveDataPlan = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DisallowProximitySetup", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DisallowProximitySetup = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RequestMirroring) 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 ErrIntOverflowMdm - } - 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: RequestMirroring: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RequestMirroring: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DestinationName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DestinationName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DestinationDeviceId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DestinationDeviceId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ScanTime", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ScanTime = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Password = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Restrictions) 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 ErrIntOverflowMdm - } - 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: Restrictions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Restrictions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ProfileRestrictions", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ProfileRestrictions = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *UnlockUserAccount) 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 ErrIntOverflowMdm - } - 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: UnlockUserAccount: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: UnlockUserAccount: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Username = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeleteUser) 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 ErrIntOverflowMdm - } - 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: DeleteUser: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeleteUser: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Username", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Username = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ForceDeletion", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ForceDeletion = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *EnableLostMode) 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 ErrIntOverflowMdm - } - 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: EnableLostMode: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: EnableLostMode: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Message = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PhoneNumber", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PhoneNumber = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Footnote", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Footnote = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InstallApplication) 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 ErrIntOverflowMdm - } - 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: InstallApplication: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InstallApplication: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ItunesStoreId", wireType) - } - m.ItunesStoreId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ItunesStoreId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Options == nil { - m.Options = &InstallApplicationOptions{} - } - if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ManifestUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ManifestUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ManagementFlags", wireType) - } - m.ManagementFlags = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ManagementFlags |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Configuration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Configuration == nil { - m.Configuration = &InstallApplicationConfiguration{} - } - if err := m.Configuration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Attributes == nil { - m.Attributes = &InstallApplicationAttributes{} - } - if err := m.Attributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ChangeManagementState", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ChangeManagementState = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InstallApplicationOptions) 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 ErrIntOverflowMdm - } - 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: InstallApplicationOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InstallApplicationOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PurchaseMethod", wireType) - } - m.PurchaseMethod = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PurchaseMethod |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InstallApplicationConfiguration) 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 ErrIntOverflowMdm - } - 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: InstallApplicationConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InstallApplicationConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InstallApplicationAttributes) 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 ErrIntOverflowMdm - } - 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: InstallApplicationAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InstallApplicationAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InstallEnterpriseApplication) 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 ErrIntOverflowMdm - } - 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: InstallEnterpriseApplication: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InstallEnterpriseApplication: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Manifest", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Manifest == nil { - m.Manifest = &Manifest{} - } - if err := m.Manifest.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ManifestUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ManifestUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ManifestUrlPinningCerts", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ManifestUrlPinningCerts = append(m.ManifestUrlPinningCerts, make([]byte, postIndex-iNdEx)) - copy(m.ManifestUrlPinningCerts[len(m.ManifestUrlPinningCerts)-1], dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PinningRevocationCheckRequired", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.PinningRevocationCheckRequired = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Manifest) 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 ErrIntOverflowMdm - } - 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: Manifest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Manifest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ManifestItems", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ManifestItems = append(m.ManifestItems, &ManifestItem{}) - if err := m.ManifestItems[len(m.ManifestItems)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ManifestItem) 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 ErrIntOverflowMdm - } - 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: ManifestItem: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ManifestItem: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Assets", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Assets = append(m.Assets, &Asset{}) - if err := m.Assets[len(m.Assets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Metadata == nil { - m.Metadata = &Metadata{} - } - if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Asset) 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 ErrIntOverflowMdm - } - 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: Asset: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Asset: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Md5Size", wireType) - } - m.Md5Size = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Md5Size |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Md5S", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Md5S = append(m.Md5S, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Url = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Sha256Size", wireType) - } - m.Sha256Size = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sha256Size |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Sha256S", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Sha256S = append(m.Sha256S, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Metadata) 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 ErrIntOverflowMdm - } - 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: Metadata: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BundleIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BundleIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BundleVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BundleVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Items = append(m.Items, &BundleInfo{}) - if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Kind = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Subtitle", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Subtitle = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Title = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SizeInBytes", wireType) - } - m.SizeInBytes = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.SizeInBytes |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BundleInfo) 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 ErrIntOverflowMdm - } - 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: BundleInfo: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BundleInfo: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BundleIdentifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BundleIdentifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BundleVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BundleVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ApplyRedemptionCode) 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 ErrIntOverflowMdm - } - 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: ApplyRedemptionCode: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ApplyRedemptionCode: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RedemptionCode", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RedemptionCode = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ManagedApplicationList) 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 ErrIntOverflowMdm - } - 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: ManagedApplicationList: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ManagedApplicationList: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifiers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifiers = append(m.Identifiers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveApplication) 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 ErrIntOverflowMdm - } - 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: RemoveApplication: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveApplication: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InviteToProgram) 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 ErrIntOverflowMdm - } - 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: InviteToProgram: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InviteToProgram: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProgramId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProgramId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InvitationUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InvitationUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ValidateApplications) 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 ErrIntOverflowMdm - } - 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: ValidateApplications: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ValidateApplications: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifiers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifiers = append(m.Identifiers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AccountConfiguration) 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 ErrIntOverflowMdm - } - 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: AccountConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AccountConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SkipPrimarySetupAccountCreation", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SkipPrimarySetupAccountCreation = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field SetPrimarySetupAccountAsRegularUser", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.SetPrimarySetupAccountAsRegularUser = bool(v != 0) - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AutoSetupAdminAccounts", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.AutoSetupAdminAccounts = append(m.AutoSetupAdminAccounts, &AutoSetupAdminAccounts{}) - if err := m.AutoSetupAdminAccounts[len(m.AutoSetupAdminAccounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DontAutoPopulatePrimaryAccountInfo", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DontAutoPopulatePrimaryAccountInfo = bool(v != 0) - case 5: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field LockPrimaryAccountInfo", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.LockPrimaryAccountInfo = bool(v != 0) - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PrimaryAccountFullName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PrimaryAccountFullName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PrimaryAccountUserName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PrimaryAccountUserName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AutoSetupAdminAccounts) 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 ErrIntOverflowMdm - } - 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: AutoSetupAdminAccounts: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AutoSetupAdminAccounts: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ShortName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ShortName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FullName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FullName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PasswordHash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PasswordHash = append(m.PasswordHash[:0], dAtA[iNdEx:postIndex]...) - if m.PasswordHash == nil { - m.PasswordHash = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Hidden", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Hidden = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *InstallMedia) 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 ErrIntOverflowMdm - } - 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: InstallMedia: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: InstallMedia: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ItunesStoreId", wireType) - } - m.ItunesStoreId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ItunesStoreId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MediaUrl", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MediaUrl = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MediaType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MediaType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RemoveMedia) 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 ErrIntOverflowMdm - } - 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: RemoveMedia: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RemoveMedia: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MediaType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MediaType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ItunesStoreId", wireType) - } - m.ItunesStoreId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ItunesStoreId |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersistentId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PersistentId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Settings) 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 ErrIntOverflowMdm - } - 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: Settings: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Settings: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Settings", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Settings = append(m.Settings, &Setting{}) - if err := m.Settings[len(m.Settings)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Setting) 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 ErrIntOverflowMdm - } - 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: Setting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Setting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Item", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Item = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeviceName", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DeviceName == nil { - m.DeviceName = &DeviceNameSetting{} - } - if err := m.DeviceName.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Hostname == nil { - m.Hostname = &HostnameSetting{} - } - if err := m.Hostname.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VoiceRoaming", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.VoiceRoaming == nil { - m.VoiceRoaming = &VoiceRoamingSetting{} - } - if err := m.VoiceRoaming.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PersonalHotspot", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PersonalHotspot == nil { - m.PersonalHotspot = &PersonalHotspotSetting{} - } - if err := m.PersonalHotspot.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Wallpaper", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Wallpaper == nil { - m.Wallpaper = &WallpaperSetting{} - } - if err := m.Wallpaper.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DataRoaming", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DataRoaming == nil { - m.DataRoaming = &DataRoamingSetting{} - } - if err := m.DataRoaming.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Bluetooth", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Bluetooth == nil { - m.Bluetooth = &BluetoothSetting{} - } - if err := m.Bluetooth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ApplicationAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ApplicationAttributes == nil { - m.ApplicationAttributes = &ApplicationAttributesSetting{} - } - if err := m.ApplicationAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 10: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MdmOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MdmOptions == nil { - m.MdmOptions = &MDMOptionsSetting{} - } - if err := m.MdmOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PasscodeLockGracePeriod", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PasscodeLockGracePeriod == nil { - m.PasscodeLockGracePeriod = &PasscodeLockGracePeriodSetting{} - } - if err := m.PasscodeLockGracePeriod.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 12: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaximumResidentUsers", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MaximumResidentUsers == nil { - m.MaximumResidentUsers = &MaximumResidentUsersSetting{} - } - if err := m.MaximumResidentUsers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 13: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DiagnosticSubmission", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DiagnosticSubmission == nil { - m.DiagnosticSubmission = &DiagnosticSubmissionSetting{} - } - if err := m.DiagnosticSubmission.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 14: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field AppAnalytics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.AppAnalytics == nil { - m.AppAnalytics = &AppAnalyticsSetting{} - } - if err := m.AppAnalytics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 15: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ApplicationConfiguration", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ApplicationConfiguration == nil { - m.ApplicationConfiguration = &ApplicationConfigurationSetting{} - } - if err := m.ApplicationConfiguration.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 16: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeZone", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.TimeZone == nil { - m.TimeZone = &TimeZoneSetting{} - } - if err := m.TimeZone.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VoiceRoamingSetting) 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 ErrIntOverflowMdm - } - 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: VoiceRoamingSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VoiceRoamingSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enabled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PersonalHotspotSetting) 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 ErrIntOverflowMdm - } - 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: PersonalHotspotSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PersonalHotspotSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enabled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *WallpaperSetting) 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 ErrIntOverflowMdm - } - 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: WallpaperSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: WallpaperSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Image = append(m.Image[:0], dAtA[iNdEx:postIndex]...) - if m.Image == nil { - m.Image = []byte{} - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Where", wireType) - } - m.Where = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Where |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DataRoamingSetting) 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 ErrIntOverflowMdm - } - 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: DataRoamingSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DataRoamingSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enabled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BluetoothSetting) 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 ErrIntOverflowMdm - } - 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: BluetoothSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BluetoothSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enabled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ApplicationAttributesSetting) 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 ErrIntOverflowMdm - } - 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: ApplicationAttributesSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ApplicationAttributesSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ApplicationAttributes", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ApplicationAttributes == nil { - m.ApplicationAttributes = &ApplicationAttributes{} - } - if err := m.ApplicationAttributes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ApplicationConfigurationSetting) 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 ErrIntOverflowMdm - } - 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: ApplicationConfigurationSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ApplicationConfigurationSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifier", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifier = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ConfigurationDictionaryData", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ConfigurationDictionaryData = append(m.ConfigurationDictionaryData[:0], dAtA[iNdEx:postIndex]...) - if m.ConfigurationDictionaryData == nil { - m.ConfigurationDictionaryData = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ApplicationAttributes) 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 ErrIntOverflowMdm - } - 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: ApplicationAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ApplicationAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field VpnUuid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.VpnUuid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DeviceNameSetting) 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 ErrIntOverflowMdm - } - 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: DeviceNameSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DeviceNameSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DeviceName", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DeviceName = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *TimeZoneSetting) 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 ErrIntOverflowMdm - } - 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: TimeZoneSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: TimeZoneSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeZone", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimeZone = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *HostnameSetting) 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 ErrIntOverflowMdm - } - 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: HostnameSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: HostnameSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Hostname", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Hostname = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MDMOptionsSetting) 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 ErrIntOverflowMdm - } - 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: MDMOptionsSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MDMOptionsSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MdmOptions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.MdmOptions == nil { - m.MdmOptions = &MDMOptions{} - } - if err := m.MdmOptions.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MDMOptions) 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 ErrIntOverflowMdm - } - 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: MDMOptions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MDMOptions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ActivationLockAllowedWhileSupervised", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ActivationLockAllowedWhileSupervised = bool(v != 0) - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BootstrapTokenAllowed", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.BootstrapTokenAllowed = bool(v != 0) - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PromptUserToAllowBootstrapTokenForAuthentication", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.PromptUserToAllowBootstrapTokenForAuthentication = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *PasscodeLockGracePeriodSetting) 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 ErrIntOverflowMdm - } - 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: PasscodeLockGracePeriodSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: PasscodeLockGracePeriodSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field PasscodeLockGracePeriod", wireType) - } - m.PasscodeLockGracePeriod = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.PasscodeLockGracePeriod |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MaximumResidentUsersSetting) 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 ErrIntOverflowMdm - } - 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: MaximumResidentUsersSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MaximumResidentUsersSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field MaximumResidentUsers", wireType) - } - m.MaximumResidentUsers = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.MaximumResidentUsers |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DiagnosticSubmissionSetting) 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 ErrIntOverflowMdm - } - 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: DiagnosticSubmissionSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DiagnosticSubmissionSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enabled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *AppAnalyticsSetting) 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 ErrIntOverflowMdm - } - 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: AppAnalyticsSetting: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: AppAnalyticsSetting: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Enabled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ManagedApplicationConfiguration) 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 ErrIntOverflowMdm - } - 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: ManagedApplicationConfiguration: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ManagedApplicationConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifiers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifiers = append(m.Identifiers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ManagedApplicationAttributes) 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 ErrIntOverflowMdm - } - 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: ManagedApplicationAttributes: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ManagedApplicationAttributes: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifiers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifiers = append(m.Identifiers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ManagedApplicationFeedback) 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 ErrIntOverflowMdm - } - 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: ManagedApplicationFeedback: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ManagedApplicationFeedback: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Identifiers", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Identifiers = append(m.Identifiers, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field DeleteFeedback", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.DeleteFeedback = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SetFirmwarePassword) 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 ErrIntOverflowMdm - } - 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: SetFirmwarePassword: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetFirmwarePassword: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentPassword", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentPassword = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewPassword", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NewPassword = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowOroms", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowOroms = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestRequiresNetworkTether", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RequestRequiresNetworkTether = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VerifyFirmwarePassword) 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 ErrIntOverflowMdm - } - 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: VerifyFirmwarePassword: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VerifyFirmwarePassword: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Password = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SetRecoveryLock) 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 ErrIntOverflowMdm - } - 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: SetRecoveryLock: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetRecoveryLock: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CurrentPassword", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CurrentPassword = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewPassword", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NewPassword = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field AllowOroms", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.AllowOroms = bool(v != 0) - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field RequestRequiresNetworkTether", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.RequestRequiresNetworkTether = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *VerifyRecoveryLock) 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 ErrIntOverflowMdm - } - 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: VerifyRecoveryLock: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: VerifyRecoveryLock: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Password = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SetAutoAdminPassword) 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 ErrIntOverflowMdm - } - 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: SetAutoAdminPassword: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetAutoAdminPassword: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Guid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Guid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PasswordHash", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PasswordHash = append(m.PasswordHash[:0], dAtA[iNdEx:postIndex]...) - if m.PasswordHash == nil { - m.PasswordHash = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScheduleOSUpdate) 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 ErrIntOverflowMdm - } - 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: ScheduleOSUpdate: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScheduleOSUpdate: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Updates", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Updates = append(m.Updates, &Update{}) - if err := m.Updates[len(m.Updates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Update) 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 ErrIntOverflowMdm - } - 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: Update: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Update: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProductKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProductKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProductVersion", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ProductVersion = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InstallAction", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InstallAction = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ScheduleOSUpdateScan) 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 ErrIntOverflowMdm - } - 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: ScheduleOSUpdateScan: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ScheduleOSUpdateScan: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.Force = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ActiveNSExtensions) 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 ErrIntOverflowMdm - } - 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: ActiveNSExtensions: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ActiveNSExtensions: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FilterExtensionPoints", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.FilterExtensionPoints = append(m.FilterExtensionPoints, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RotateFileVaultKey) 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 ErrIntOverflowMdm - } - 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: RotateFileVaultKey: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RotateFileVaultKey: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyType", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KeyType = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field FilevaultUnlock", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.FilevaultUnlock == nil { - m.FilevaultUnlock = &FileVaultUnlock{} - } - if err := m.FilevaultUnlock.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NewCertificate", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NewCertificate = append(m.NewCertificate[:0], dAtA[iNdEx:postIndex]...) - if m.NewCertificate == nil { - m.NewCertificate = []byte{} - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplyEncryptionCertificate", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ReplyEncryptionCertificate = append(m.ReplyEncryptionCertificate[:0], dAtA[iNdEx:postIndex]...) - if m.ReplyEncryptionCertificate == nil { - m.ReplyEncryptionCertificate = []byte{} - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *FileVaultUnlock) 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 ErrIntOverflowMdm - } - 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: FileVaultUnlock: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: FileVaultUnlock: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Password = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PrivateKeyExport", wireType) - } - var byteLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - byteLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if byteLen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + byteLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PrivateKeyExport = append(m.PrivateKeyExport[:0], dAtA[iNdEx:postIndex]...) - if m.PrivateKeyExport == nil { - m.PrivateKeyExport = []byte{} - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PrivateKeyExportPassword", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.PrivateKeyExportPassword = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *SetBootstrapToken) 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 ErrIntOverflowMdm - } - 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: SetBootstrapToken: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SetBootstrapToken: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field BootstrapToken", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.BootstrapToken = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ResultPayload) 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 ErrIntOverflowMdm - } - 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: ResultPayload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ResultPayload: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Udid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Udid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CommandUuid", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.CommandUuid = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrorChain", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthMdm - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ErrorChain = append(m.ErrorChain, &ErrorChain{}) - if err := m.ErrorChain[len(m.ErrorChain)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ErrorChain) 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 ErrIntOverflowMdm - } - 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: ErrorChain: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ErrorChain: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LocalizedDescription", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LocalizedDescription = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field UsEnglishDescription", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.UsEnglishDescription = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrorDomain", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - 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 ErrInvalidLengthMdm - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthMdm - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ErrorDomain = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field ErrorCode", wireType) - } - m.ErrorCode = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMdm - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.ErrorCode |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipMdm(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthMdm - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipMdm(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMdm - } - 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, ErrIntOverflowMdm - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowMdm - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthMdm - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupMdm - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthMdm - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthMdm = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowMdm = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupMdm = fmt.Errorf("proto: unexpected end of group") -) diff --git a/mdm/mdm/internal/mdmproto/mdm.proto b/mdm/mdm/internal/mdmproto/mdm.proto index 10ba7201..3ebd0358 100644 --- a/mdm/mdm/internal/mdmproto/mdm.proto +++ b/mdm/mdm/internal/mdmproto/mdm.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package mdmproto; +option go_package = "github.com/micromdm/micromdm/mdm/mdm/internal/mdmproto"; + message CommandPayload { string command_uuid = 1; Command command = 2; diff --git a/mdm/mdm/marshal_proto.go b/mdm/mdm/marshal_proto.go index 6428469b..c128e83f 100644 --- a/mdm/mdm/marshal_proto.go +++ b/mdm/mdm/marshal_proto.go @@ -3,7 +3,8 @@ package mdm import ( "fmt" - "github.com/gogo/protobuf/proto" + "google.golang.org/protobuf/proto" + "github.com/micromdm/micromdm/mdm/mdm/internal/mdmproto" ) diff --git a/mdm/mdm/unmarshal_proto.go b/mdm/mdm/unmarshal_proto.go index d764d32a..e8668696 100644 --- a/mdm/mdm/unmarshal_proto.go +++ b/mdm/mdm/unmarshal_proto.go @@ -1,9 +1,10 @@ package mdm import ( - "github.com/gogo/protobuf/proto" "github.com/micromdm/micromdm/mdm/appmanifest" "github.com/micromdm/micromdm/mdm/mdm/internal/mdmproto" + + "google.golang.org/protobuf/proto" ) func protoToCommand(pb *mdmproto.Command) *Command { diff --git a/platform/apns/internal/pushproto/push.go b/platform/apns/internal/pushproto/push.go index d2cf04b3..980879b8 100644 --- a/platform/apns/internal/pushproto/push.go +++ b/platform/apns/internal/pushproto/push.go @@ -1,3 +1,3 @@ package pushproto -//go:generate protoc --go_out=. push.proto +//go:generate protoc --go_out=. --go_opt=paths=source_relative push.proto diff --git a/platform/apns/internal/pushproto/push.pb.go b/platform/apns/internal/pushproto/push.pb.go index 576f1429..3399a6e6 100644 --- a/platform/apns/internal/pushproto/push.pb.go +++ b/platform/apns/internal/pushproto/push.pb.go @@ -1,88 +1,174 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: push.proto -// DO NOT EDIT! -/* -Package pushproto is a generated protocol buffer package. - -It is generated from these files: - push.proto - -It has these top-level messages: - PushInfo -*/ package pushproto -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type PushInfo struct { - Udid string `protobuf:"bytes,1,opt,name=udid" json:"udid,omitempty"` - Token string `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"` - PushMagic string `protobuf:"bytes,3,opt,name=push_magic,json=pushMagic" json:"push_magic,omitempty"` - MdmTopic string `protobuf:"bytes,4,opt,name=mdm_topic,json=mdmTopic" json:"mdm_topic,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Udid string `protobuf:"bytes,1,opt,name=udid,proto3" json:"udid,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + PushMagic string `protobuf:"bytes,3,opt,name=push_magic,json=pushMagic,proto3" json:"push_magic,omitempty"` + MdmTopic string `protobuf:"bytes,4,opt,name=mdm_topic,json=mdmTopic,proto3" json:"mdm_topic,omitempty"` } -func (m *PushInfo) Reset() { *m = PushInfo{} } -func (m *PushInfo) String() string { return proto.CompactTextString(m) } -func (*PushInfo) ProtoMessage() {} -func (*PushInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (x *PushInfo) Reset() { + *x = PushInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_push_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *PushInfo) GetUdid() string { - if m != nil { - return m.Udid +func (x *PushInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PushInfo) ProtoMessage() {} + +func (x *PushInfo) ProtoReflect() protoreflect.Message { + mi := &file_push_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PushInfo.ProtoReflect.Descriptor instead. +func (*PushInfo) Descriptor() ([]byte, []int) { + return file_push_proto_rawDescGZIP(), []int{0} +} + +func (x *PushInfo) GetUdid() string { + if x != nil { + return x.Udid } return "" } -func (m *PushInfo) GetToken() string { - if m != nil { - return m.Token +func (x *PushInfo) GetToken() string { + if x != nil { + return x.Token } return "" } -func (m *PushInfo) GetPushMagic() string { - if m != nil { - return m.PushMagic +func (x *PushInfo) GetPushMagic() string { + if x != nil { + return x.PushMagic } return "" } -func (m *PushInfo) GetMdmTopic() string { - if m != nil { - return m.MdmTopic +func (x *PushInfo) GetMdmTopic() string { + if x != nil { + return x.MdmTopic } return "" } -func init() { - proto.RegisterType((*PushInfo)(nil), "pushproto.PushInfo") +var File_push_proto protoreflect.FileDescriptor + +var file_push_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x70, 0x75, 0x73, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x70, 0x75, + 0x73, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x70, 0x0a, 0x08, 0x50, 0x75, 0x73, 0x68, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x75, 0x64, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, + 0x0a, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x70, 0x75, 0x73, 0x68, 0x4d, 0x61, 0x67, 0x69, 0x63, 0x12, 0x1b, 0x0a, 0x09, + 0x6d, 0x64, 0x6d, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x6d, 0x64, 0x6d, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, + 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2f, 0x70, 0x75, 0x73, 0x68, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x2f, 0x70, 0x75, 0x73, 0x68, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } -func init() { proto.RegisterFile("push.proto", fileDescriptor0) } +var ( + file_push_proto_rawDescOnce sync.Once + file_push_proto_rawDescData = file_push_proto_rawDesc +) -var fileDescriptor0 = []byte{ - // 133 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x2a, 0x28, 0x2d, 0xce, - 0xd0, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x04, 0xb1, 0xc1, 0x4c, 0xa5, 0x02, 0x2e, 0x8e, - 0x80, 0xd2, 0xe2, 0x0c, 0xcf, 0xbc, 0xb4, 0x7c, 0x21, 0x21, 0x2e, 0x96, 0xd2, 0x94, 0xcc, 0x14, - 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x30, 0x5b, 0x48, 0x84, 0x8b, 0xb5, 0x24, 0x3f, 0x3b, - 0x35, 0x4f, 0x82, 0x09, 0x2c, 0x08, 0xe1, 0x08, 0xc9, 0x42, 0x8c, 0x8b, 0xcf, 0x4d, 0x4c, 0xcf, - 0x4c, 0x96, 0x60, 0x06, 0x4b, 0x81, 0x0d, 0xf5, 0x05, 0x09, 0x08, 0x49, 0x73, 0x71, 0xe6, 0xa6, - 0xe4, 0xc6, 0x97, 0xe4, 0x17, 0x64, 0x26, 0x4b, 0xb0, 0x80, 0x65, 0x39, 0x72, 0x53, 0x72, 0x43, - 0x40, 0xfc, 0x24, 0x36, 0xb0, 0xc5, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1e, 0xd3, 0xd3, - 0x24, 0x91, 0x00, 0x00, 0x00, +func file_push_proto_rawDescGZIP() []byte { + file_push_proto_rawDescOnce.Do(func() { + file_push_proto_rawDescData = protoimpl.X.CompressGZIP(file_push_proto_rawDescData) + }) + return file_push_proto_rawDescData +} + +var file_push_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_push_proto_goTypes = []interface{}{ + (*PushInfo)(nil), // 0: pushproto.PushInfo +} +var file_push_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_push_proto_init() } +func file_push_proto_init() { + if File_push_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_push_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PushInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_push_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_push_proto_goTypes, + DependencyIndexes: file_push_proto_depIdxs, + MessageInfos: file_push_proto_msgTypes, + }.Build() + File_push_proto = out.File + file_push_proto_rawDesc = nil + file_push_proto_goTypes = nil + file_push_proto_depIdxs = nil } diff --git a/platform/apns/internal/pushproto/push.proto b/platform/apns/internal/pushproto/push.proto index b21c43b8..a41c5528 100644 --- a/platform/apns/internal/pushproto/push.proto +++ b/platform/apns/internal/pushproto/push.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package pushproto; +option go_package = "github.com/micromdm/micromdm/platform/push/internal/pushproto"; message PushInfo { string udid = 1; diff --git a/platform/apns/push_info.go b/platform/apns/push_info.go index 08621fad..bdd9d6ed 100644 --- a/platform/apns/push_info.go +++ b/platform/apns/push_info.go @@ -2,8 +2,8 @@ package apns import ( "github.com/pkg/errors" + "google.golang.org/protobuf/proto" - "github.com/gogo/protobuf/proto" "github.com/micromdm/micromdm/platform/apns/internal/pushproto" ) diff --git a/platform/blueprint/blueprint.go b/platform/blueprint/blueprint.go index a309be83..cee444e5 100644 --- a/platform/blueprint/blueprint.go +++ b/platform/blueprint/blueprint.go @@ -3,7 +3,8 @@ package blueprint import ( "errors" - "github.com/gogo/protobuf/proto" + "google.golang.org/protobuf/proto" + "github.com/micromdm/micromdm/platform/blueprint/internal/blueprintproto" ) diff --git a/platform/blueprint/internal/blueprintproto/blueprint.go b/platform/blueprint/internal/blueprintproto/blueprint.go index 649272d8..e150a4f3 100644 --- a/platform/blueprint/internal/blueprintproto/blueprint.go +++ b/platform/blueprint/internal/blueprintproto/blueprint.go @@ -1,3 +1,3 @@ package blueprintproto -//go:generate protoc --go_out=. blueprint.proto +//go:generate protoc --go_out=. --go_opt=paths=source_relative blueprint.proto diff --git a/platform/blueprint/internal/blueprintproto/blueprint.pb.go b/platform/blueprint/internal/blueprintproto/blueprint.pb.go index 0e3c5d17..74538999 100644 --- a/platform/blueprint/internal/blueprintproto/blueprint.pb.go +++ b/platform/blueprint/internal/blueprintproto/blueprint.pb.go @@ -1,128 +1,223 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: blueprint.proto -/* -Package blueprintproto is a generated protocol buffer package. - -It is generated from these files: - blueprint.proto - -It has these top-level messages: - Blueprint -*/ package blueprintproto -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Blueprint struct { - Uuid string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` - ManifestUrls []string `protobuf:"bytes,3,rep,name=manifest_urls,json=manifestUrls" json:"manifest_urls,omitempty"` - ProfileIds []string `protobuf:"bytes,5,rep,name=profile_ids,json=profileIds" json:"profile_ids,omitempty"` - ApplyAt []string `protobuf:"bytes,6,rep,name=apply_at,json=applyAt" json:"apply_at,omitempty"` - UserUuid []string `protobuf:"bytes,7,rep,name=user_uuid,json=userUuid" json:"user_uuid,omitempty"` - SkipPrimarySetupAccountCreation bool `protobuf:"varint,8,opt,name=skip_primary_setup_account_creation,json=skipPrimarySetupAccountCreation" json:"skip_primary_setup_account_creation,omitempty"` - SetPrimarySetupAccountAsRegularUser bool `protobuf:"varint,9,opt,name=set_primary_setup_account_as_regular_user,json=setPrimarySetupAccountAsRegularUser" json:"set_primary_setup_account_as_regular_user,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + ManifestUrls []string `protobuf:"bytes,3,rep,name=manifest_urls,json=manifestUrls,proto3" json:"manifest_urls,omitempty"` + ProfileIds []string `protobuf:"bytes,5,rep,name=profile_ids,json=profileIds,proto3" json:"profile_ids,omitempty"` + ApplyAt []string `protobuf:"bytes,6,rep,name=apply_at,json=applyAt,proto3" json:"apply_at,omitempty"` + UserUuid []string `protobuf:"bytes,7,rep,name=user_uuid,json=userUuid,proto3" json:"user_uuid,omitempty"` + SkipPrimarySetupAccountCreation bool `protobuf:"varint,8,opt,name=skip_primary_setup_account_creation,json=skipPrimarySetupAccountCreation,proto3" json:"skip_primary_setup_account_creation,omitempty"` + SetPrimarySetupAccountAsRegularUser bool `protobuf:"varint,9,opt,name=set_primary_setup_account_as_regular_user,json=setPrimarySetupAccountAsRegularUser,proto3" json:"set_primary_setup_account_as_regular_user,omitempty"` } -func (m *Blueprint) Reset() { *m = Blueprint{} } -func (m *Blueprint) String() string { return proto.CompactTextString(m) } -func (*Blueprint) ProtoMessage() {} -func (*Blueprint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (x *Blueprint) Reset() { + *x = Blueprint{} + if protoimpl.UnsafeEnabled { + mi := &file_blueprint_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *Blueprint) GetUuid() string { - if m != nil { - return m.Uuid +func (x *Blueprint) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Blueprint) ProtoMessage() {} + +func (x *Blueprint) ProtoReflect() protoreflect.Message { + mi := &file_blueprint_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Blueprint.ProtoReflect.Descriptor instead. +func (*Blueprint) Descriptor() ([]byte, []int) { + return file_blueprint_proto_rawDescGZIP(), []int{0} +} + +func (x *Blueprint) GetUuid() string { + if x != nil { + return x.Uuid } return "" } -func (m *Blueprint) GetName() string { - if m != nil { - return m.Name +func (x *Blueprint) GetName() string { + if x != nil { + return x.Name } return "" } -func (m *Blueprint) GetManifestUrls() []string { - if m != nil { - return m.ManifestUrls +func (x *Blueprint) GetManifestUrls() []string { + if x != nil { + return x.ManifestUrls } return nil } -func (m *Blueprint) GetProfileIds() []string { - if m != nil { - return m.ProfileIds +func (x *Blueprint) GetProfileIds() []string { + if x != nil { + return x.ProfileIds } return nil } -func (m *Blueprint) GetApplyAt() []string { - if m != nil { - return m.ApplyAt +func (x *Blueprint) GetApplyAt() []string { + if x != nil { + return x.ApplyAt } return nil } -func (m *Blueprint) GetUserUuid() []string { - if m != nil { - return m.UserUuid +func (x *Blueprint) GetUserUuid() []string { + if x != nil { + return x.UserUuid } return nil } -func (m *Blueprint) GetSkipPrimarySetupAccountCreation() bool { - if m != nil { - return m.SkipPrimarySetupAccountCreation +func (x *Blueprint) GetSkipPrimarySetupAccountCreation() bool { + if x != nil { + return x.SkipPrimarySetupAccountCreation } return false } -func (m *Blueprint) GetSetPrimarySetupAccountAsRegularUser() bool { - if m != nil { - return m.SetPrimarySetupAccountAsRegularUser +func (x *Blueprint) GetSetPrimarySetupAccountAsRegularUser() bool { + if x != nil { + return x.SetPrimarySetupAccountAsRegularUser } return false } -func init() { - proto.RegisterType((*Blueprint)(nil), "blueprintproto.Blueprint") +var File_blueprint_proto protoreflect.FileDescriptor + +var file_blueprint_proto_rawDesc = []byte{ + 0x0a, 0x0f, 0x62, 0x6c, 0x75, 0x65, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x0e, 0x62, 0x6c, 0x75, 0x65, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x22, 0xec, 0x02, 0x0a, 0x09, 0x42, 0x6c, 0x75, 0x65, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x12, + 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, + 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x6e, 0x69, 0x66, + 0x65, 0x73, 0x74, 0x5f, 0x75, 0x72, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, + 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x55, 0x72, 0x6c, 0x73, 0x12, 0x1f, 0x0a, 0x0b, + 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x12, 0x19, 0x0a, + 0x08, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x07, 0x61, 0x70, 0x70, 0x6c, 0x79, 0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, + 0x72, 0x55, 0x75, 0x69, 0x64, 0x12, 0x4c, 0x0a, 0x23, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x70, 0x72, + 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70, 0x5f, 0x61, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x1f, 0x73, 0x6b, 0x69, 0x70, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x53, + 0x65, 0x74, 0x75, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x56, 0x0a, 0x29, 0x73, 0x65, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x75, 0x70, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x5f, 0x61, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x5f, 0x75, 0x73, 0x65, 0x72, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x23, 0x73, 0x65, 0x74, 0x50, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x53, 0x65, 0x74, 0x75, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x73, + 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x55, 0x73, 0x65, 0x72, 0x4a, 0x04, 0x08, 0x04, 0x10, + 0x05, 0x52, 0x0d, 0x6d, 0x6f, 0x62, 0x69, 0x6c, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, + 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, + 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, + 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x62, 0x6c, 0x75, 0x65, 0x70, 0x72, + 0x69, 0x6e, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x6c, 0x75, + 0x65, 0x70, 0x72, 0x69, 0x6e, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("blueprint.proto", fileDescriptor0) } +var ( + file_blueprint_proto_rawDescOnce sync.Once + file_blueprint_proto_rawDescData = file_blueprint_proto_rawDesc +) -var fileDescriptor0 = []byte{ - // 282 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xbd, 0x4e, 0x2b, 0x31, - 0x10, 0x85, 0x95, 0xff, 0x5d, 0xdf, 0x1b, 0x40, 0xae, 0x8c, 0x28, 0x12, 0x91, 0x26, 0x34, 0x34, - 0x3c, 0x41, 0xa0, 0x02, 0x51, 0xa0, 0x45, 0xa1, 0xb5, 0xbc, 0xbb, 0xb3, 0x91, 0x85, 0xd7, 0xb6, - 0x66, 0xec, 0x22, 0xef, 0xcc, 0x43, 0x20, 0x7b, 0x13, 0x2a, 0xe8, 0x66, 0xbe, 0xf9, 0x74, 0x7c, - 0x64, 0x76, 0x59, 0x9b, 0x08, 0x1e, 0xb5, 0x0d, 0xf7, 0x1e, 0x5d, 0x70, 0xfc, 0xe2, 0x07, 0xe4, - 0xfd, 0xf6, 0x6b, 0xcc, 0xca, 0xc7, 0x33, 0xe2, 0x9c, 0x4d, 0x63, 0xd4, 0xad, 0x18, 0xad, 0x47, - 0xdb, 0xb2, 0xca, 0x73, 0x62, 0x56, 0xf5, 0x20, 0xc6, 0x03, 0x4b, 0x33, 0xdf, 0xb0, 0x65, 0xaf, - 0xac, 0xee, 0x80, 0x82, 0x8c, 0x68, 0x48, 0x4c, 0xd6, 0x93, 0x6d, 0x59, 0xfd, 0x3f, 0xc3, 0x3d, - 0x1a, 0xe2, 0x2b, 0xf6, 0xcf, 0xa3, 0xeb, 0xb4, 0x01, 0xa9, 0x5b, 0x12, 0xb3, 0xac, 0xb0, 0x13, - 0x7a, 0x6e, 0x89, 0x5f, 0xb3, 0x42, 0x79, 0x6f, 0x8e, 0x52, 0x05, 0x31, 0xcf, 0xd7, 0x45, 0xde, - 0x77, 0x81, 0xdf, 0xb0, 0x32, 0x12, 0xa0, 0xcc, 0x6d, 0x16, 0xf9, 0x56, 0x24, 0xb0, 0x4f, 0x8d, - 0x5e, 0xd9, 0x86, 0x3e, 0xb5, 0x97, 0x1e, 0x75, 0xaf, 0xf0, 0x28, 0x09, 0x42, 0xf4, 0x52, 0x35, - 0x8d, 0x8b, 0x36, 0xc8, 0x06, 0x41, 0x05, 0xed, 0xac, 0x28, 0xd6, 0xa3, 0x6d, 0x51, 0xad, 0x92, - 0xfa, 0x36, 0x98, 0xef, 0x49, 0xdc, 0x0d, 0xde, 0xd3, 0x49, 0xe3, 0x1f, 0xec, 0x8e, 0x20, 0xfc, - 0x11, 0xa6, 0x48, 0x22, 0x1c, 0xa2, 0x51, 0x28, 0xd3, 0xf3, 0xa2, 0xcc, 0x99, 0x1b, 0x82, 0xf0, - 0x4b, 0xe4, 0x8e, 0xaa, 0xc1, 0xdd, 0x13, 0xe0, 0xcb, 0xb4, 0x98, 0x5e, 0xcd, 0xaa, 0x65, 0xef, - 0x6a, 0x6d, 0xa0, 0x71, 0xb6, 0xd3, 0x07, 0xaa, 0xe7, 0xf9, 0xd7, 0x1f, 0xbe, 0x03, 0x00, 0x00, - 0xff, 0xff, 0x22, 0x48, 0x96, 0x88, 0x98, 0x01, 0x00, 0x00, +func file_blueprint_proto_rawDescGZIP() []byte { + file_blueprint_proto_rawDescOnce.Do(func() { + file_blueprint_proto_rawDescData = protoimpl.X.CompressGZIP(file_blueprint_proto_rawDescData) + }) + return file_blueprint_proto_rawDescData +} + +var file_blueprint_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_blueprint_proto_goTypes = []interface{}{ + (*Blueprint)(nil), // 0: blueprintproto.Blueprint +} +var file_blueprint_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_blueprint_proto_init() } +func file_blueprint_proto_init() { + if File_blueprint_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_blueprint_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Blueprint); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_blueprint_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_blueprint_proto_goTypes, + DependencyIndexes: file_blueprint_proto_depIdxs, + MessageInfos: file_blueprint_proto_msgTypes, + }.Build() + File_blueprint_proto = out.File + file_blueprint_proto_rawDesc = nil + file_blueprint_proto_goTypes = nil + file_blueprint_proto_depIdxs = nil } diff --git a/platform/blueprint/internal/blueprintproto/blueprint.proto b/platform/blueprint/internal/blueprintproto/blueprint.proto index 8ef1dcc0..16a9c786 100644 --- a/platform/blueprint/internal/blueprintproto/blueprint.proto +++ b/platform/blueprint/internal/blueprintproto/blueprint.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package blueprintproto; +option go_package = "github.com/micromdm/micromdm/platform/blueprint/internal/blueprintproto"; + message Blueprint { reserved 4; reserved "mobileconfigs"; diff --git a/platform/command/event.go b/platform/command/event.go index 9c7ace35..2afabadf 100644 --- a/platform/command/event.go +++ b/platform/command/event.go @@ -3,9 +3,9 @@ package command import ( "time" - "github.com/gogo/protobuf/proto" "github.com/google/uuid" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/micromdm/micromdm/mdm/mdm" "github.com/micromdm/micromdm/platform/command/internal/commandproto" diff --git a/platform/command/internal/commandproto/command.go b/platform/command/internal/commandproto/command.go index 98a7c62d..2d4a2b2a 100644 --- a/platform/command/internal/commandproto/command.go +++ b/platform/command/internal/commandproto/command.go @@ -1,3 +1,3 @@ package commandproto -//go:generate protoc command.proto -I. --gofast_out=. +//go:generate protoc --go_out=. --go_opt=paths=source_relative command.proto diff --git a/platform/command/internal/commandproto/command.pb.go b/platform/command/internal/commandproto/command.pb.go index 09ccff14..a5ef95e2 100644 --- a/platform/command/internal/commandproto/command.pb.go +++ b/platform/command/internal/commandproto/command.pb.go @@ -1,465 +1,174 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: command.proto package commandproto import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - io "io" - math "math" - math_bits "math/bits" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" ) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Event struct { - 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"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + 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 fileDescriptor_213c0bb044472049, []int{0} -} -func (m *Event) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_Event.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (x *Event) Reset() { + *x = Event{} + if protoimpl.UnsafeEnabled { + mi := &file_command_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } } -func (m *Event) XXX_Merge(src proto.Message) { - xxx_messageInfo_Event.Merge(m, src) -} -func (m *Event) XXX_Size() int { - return m.Size() -} -func (m *Event) XXX_DiscardUnknown() { - xxx_messageInfo_Event.DiscardUnknown(m) + +func (x *Event) String() string { + return protoimpl.X.MessageStringOf(x) } -var xxx_messageInfo_Event proto.InternalMessageInfo +func (*Event) ProtoMessage() {} -func (m *Event) GetId() string { - if m != nil { - return m.Id +func (x *Event) ProtoReflect() protoreflect.Message { + mi := &file_command_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Event.ProtoReflect.Descriptor instead. +func (*Event) Descriptor() ([]byte, []int) { + return file_command_proto_rawDescGZIP(), []int{0} +} + +func (x *Event) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Event) GetTime() int64 { - if m != nil { - return m.Time +func (x *Event) GetTime() int64 { + if x != nil { + return x.Time } return 0 } -func (m *Event) GetDeviceUdid() string { - if m != nil { - return m.DeviceUdid +func (x *Event) GetDeviceUdid() string { + if x != nil { + return x.DeviceUdid } return "" } -func (m *Event) GetPayloadBytes() []byte { - if m != nil { - return m.PayloadBytes +func (x *Event) GetPayloadBytes() []byte { + if x != nil { + return x.PayloadBytes } return nil } -func init() { - proto.RegisterType((*Event)(nil), "commandproto.Event") -} +var File_command_proto protoreflect.FileDescriptor -func init() { proto.RegisterFile("command.proto", fileDescriptor_213c0bb044472049) } - -var fileDescriptor_213c0bb044472049 = []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, -} - -func (m *Event) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Event) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *Event) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.XXX_unrecognized != nil { - i -= len(m.XXX_unrecognized) - copy(dAtA[i:], m.XXX_unrecognized) - } - if len(m.PayloadBytes) > 0 { - i -= len(m.PayloadBytes) - copy(dAtA[i:], m.PayloadBytes) - i = encodeVarintCommand(dAtA, i, uint64(len(m.PayloadBytes))) - i-- - dAtA[i] = 0x2a - } - if len(m.DeviceUdid) > 0 { - i -= len(m.DeviceUdid) - copy(dAtA[i:], m.DeviceUdid) - i = encodeVarintCommand(dAtA, i, uint64(len(m.DeviceUdid))) - i-- - dAtA[i] = 0x22 - } - if m.Time != 0 { - i = encodeVarintCommand(dAtA, i, uint64(m.Time)) - i-- - dAtA[i] = 0x10 - } - if len(m.Id) > 0 { - i -= len(m.Id) - copy(dAtA[i:], m.Id) - i = encodeVarintCommand(dAtA, i, uint64(len(m.Id))) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func encodeVarintCommand(dAtA []byte, offset int, v uint64) int { - offset -= sovCommand(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *Event) Size() (n int) { - if m == nil { - return 0 - } - 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)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovCommand(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -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 < 0 { - return ErrInvalidLengthCommand - } - 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 < 0 { - return ErrInvalidLengthCommand - } - 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 < 0 { - return ErrInvalidLengthCommand - } - 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) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthCommand - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipCommand(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 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 - } - } - case 1: - iNdEx += 8 - 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 - } - } - if length < 0 { - return 0, ErrInvalidLengthCommand - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupCommand - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthCommand - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF +var file_command_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x71, 0x0a, + 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x5f, 0x75, 0x64, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x55, 0x64, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, + 0x42, 0x45, 0x5a, 0x43, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, + 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, + 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - ErrInvalidLengthCommand = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowCommand = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupCommand = fmt.Errorf("proto: unexpected end of group") + file_command_proto_rawDescOnce sync.Once + file_command_proto_rawDescData = file_command_proto_rawDesc ) + +func file_command_proto_rawDescGZIP() []byte { + file_command_proto_rawDescOnce.Do(func() { + file_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_command_proto_rawDescData) + }) + return file_command_proto_rawDescData +} + +var file_command_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_command_proto_goTypes = []interface{}{ + (*Event)(nil), // 0: commandproto.Event +} +var file_command_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_command_proto_init() } +func file_command_proto_init() { + if File_command_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Event); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_command_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_command_proto_goTypes, + DependencyIndexes: file_command_proto_depIdxs, + MessageInfos: file_command_proto_msgTypes, + }.Build() + File_command_proto = out.File + file_command_proto_rawDesc = nil + file_command_proto_goTypes = nil + file_command_proto_depIdxs = nil +} diff --git a/platform/command/internal/commandproto/command.proto b/platform/command/internal/commandproto/command.proto index b7343968..34581de0 100644 --- a/platform/command/internal/commandproto/command.proto +++ b/platform/command/internal/commandproto/command.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package commandproto; +option go_package = "github.com/micromdm/micromdm/platform/command/internal/commandproto"; + message Event { string id = 1; int64 time = 2; diff --git a/platform/config/config.go b/platform/config/config.go index 8830b5c4..8d2a7796 100644 --- a/platform/config/config.go +++ b/platform/config/config.go @@ -1,8 +1,8 @@ package config import ( - "github.com/gogo/protobuf/proto" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/micromdm/micromdm/platform/config/internal/configproto" ) diff --git a/platform/config/internal/configproto/config.go b/platform/config/internal/configproto/config.go index a814ca24..bc7b9a15 100644 --- a/platform/config/internal/configproto/config.go +++ b/platform/config/internal/configproto/config.go @@ -1,3 +1,3 @@ package configproto -//go:generate protoc --go_out=. config.proto +//go:generate protoc --go_out=. --go_opt=paths=source_relative config.proto diff --git a/platform/config/internal/configproto/config.pb.go b/platform/config/internal/configproto/config.pb.go index 806ce106..429b2657 100644 --- a/platform/config/internal/configproto/config.pb.go +++ b/platform/config/internal/configproto/config.pb.go @@ -1,70 +1,158 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: config.proto -/* -Package configproto is a generated protocol buffer package. - -It is generated from these files: - config.proto - -It has these top-level messages: - ServerConfig -*/ package configproto -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type ServerConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + PushCertificate []byte `protobuf:"bytes,1,opt,name=push_certificate,json=pushCertificate,proto3" json:"push_certificate,omitempty"` PushCertificateKey []byte `protobuf:"bytes,2,opt,name=push_certificate_key,json=pushCertificateKey,proto3" json:"push_certificate_key,omitempty"` } -func (m *ServerConfig) Reset() { *m = ServerConfig{} } -func (m *ServerConfig) String() string { return proto.CompactTextString(m) } -func (*ServerConfig) ProtoMessage() {} -func (*ServerConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (x *ServerConfig) Reset() { + *x = ServerConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *ServerConfig) GetPushCertificate() []byte { - if m != nil { - return m.PushCertificate +func (x *ServerConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServerConfig) ProtoMessage() {} + +func (x *ServerConfig) ProtoReflect() protoreflect.Message { + mi := &file_config_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead. +func (*ServerConfig) Descriptor() ([]byte, []int) { + return file_config_proto_rawDescGZIP(), []int{0} +} + +func (x *ServerConfig) GetPushCertificate() []byte { + if x != nil { + return x.PushCertificate } return nil } -func (m *ServerConfig) GetPushCertificateKey() []byte { - if m != nil { - return m.PushCertificateKey +func (x *ServerConfig) GetPushCertificateKey() []byte { + if x != nil { + return x.PushCertificateKey } return nil } -func init() { - proto.RegisterType((*ServerConfig)(nil), "configproto.ServerConfig") +var File_config_proto protoreflect.FileDescriptor + +var file_config_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6b, 0x0a, 0x0c, 0x53, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x0a, 0x10, 0x70, + 0x75, 0x73, 0x68, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x70, 0x75, 0x73, 0x68, 0x43, 0x65, 0x72, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x63, + 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x70, 0x75, 0x73, 0x68, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, + 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, + 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, + 0x6c, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("config.proto", fileDescriptor0) } +var ( + file_config_proto_rawDescOnce sync.Once + file_config_proto_rawDescData = file_config_proto_rawDesc +) -var fileDescriptor0 = []byte{ - // 115 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x49, 0xce, 0xcf, 0x4b, - 0xcb, 0x4c, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0xf0, 0xc0, 0x1c, 0xa5, 0x6c, - 0x2e, 0x9e, 0xe0, 0xd4, 0xa2, 0xb2, 0xd4, 0x22, 0x67, 0xb0, 0xa0, 0x90, 0x26, 0x97, 0x40, 0x41, - 0x69, 0x71, 0x46, 0x7c, 0x72, 0x6a, 0x51, 0x49, 0x66, 0x5a, 0x66, 0x72, 0x62, 0x49, 0xaa, 0x04, - 0xa3, 0x02, 0xa3, 0x06, 0x4f, 0x10, 0x3f, 0x48, 0xdc, 0x19, 0x21, 0x2c, 0x64, 0xc0, 0x25, 0x82, - 0xae, 0x34, 0x3e, 0x3b, 0xb5, 0x52, 0x82, 0x09, 0xac, 0x5c, 0x08, 0x4d, 0xb9, 0x77, 0x6a, 0x65, - 0x12, 0x1b, 0xd8, 0x4e, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xea, 0xa7, 0xb0, 0xbc, 0x90, - 0x00, 0x00, 0x00, +func file_config_proto_rawDescGZIP() []byte { + file_config_proto_rawDescOnce.Do(func() { + file_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_config_proto_rawDescData) + }) + return file_config_proto_rawDescData +} + +var file_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_config_proto_goTypes = []interface{}{ + (*ServerConfig)(nil), // 0: configproto.ServerConfig +} +var file_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_config_proto_init() } +func file_config_proto_init() { + if File_config_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_config_proto_goTypes, + DependencyIndexes: file_config_proto_depIdxs, + MessageInfos: file_config_proto_msgTypes, + }.Build() + File_config_proto = out.File + file_config_proto_rawDesc = nil + file_config_proto_goTypes = nil + file_config_proto_depIdxs = nil } diff --git a/platform/config/internal/configproto/config.proto b/platform/config/internal/configproto/config.proto index d5a2ed1d..e46e5939 100644 --- a/platform/config/internal/configproto/config.proto +++ b/platform/config/internal/configproto/config.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package configproto; +option go_package = "github.com/micromdm/micromdm/platform/config/internal/configproto"; + message ServerConfig { bytes push_certificate = 1; bytes push_certificate_key = 2; diff --git a/platform/dep/sync/event.go b/platform/dep/sync/event.go index 8c6212b9..5ac1bec3 100644 --- a/platform/dep/sync/event.go +++ b/platform/dep/sync/event.go @@ -3,8 +3,8 @@ package sync import ( "time" - "github.com/gogo/protobuf/proto" "github.com/google/uuid" + "google.golang.org/protobuf/proto" "github.com/micromdm/micromdm/dep" "github.com/micromdm/micromdm/platform/dep/sync/internal/depsyncproto" diff --git a/platform/dep/sync/internal/depsyncproto/depsync.go b/platform/dep/sync/internal/depsyncproto/depsync.go index e5cb3e86..558a81ba 100644 --- a/platform/dep/sync/internal/depsyncproto/depsync.go +++ b/platform/dep/sync/internal/depsyncproto/depsync.go @@ -1,3 +1,3 @@ package depsyncproto -//go:generate protoc --go_out=. depsync.proto +//go:generate protoc --go_out=. --go_opt=paths=source_relative depsync.proto diff --git a/platform/dep/sync/internal/depsyncproto/depsync.pb.go b/platform/dep/sync/internal/depsyncproto/depsync.pb.go index c0eb87ff..785fab0c 100644 --- a/platform/dep/sync/internal/depsyncproto/depsync.pb.go +++ b/platform/dep/sync/internal/depsyncproto/depsync.pb.go @@ -1,208 +1,351 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: depsync.proto -// DO NOT EDIT! -/* -Package depsyncproto is a generated protocol buffer package. - -It is generated from these files: - depsync.proto - -It has these top-level messages: - Event - Device -*/ package depsyncproto -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) 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"` - Devices []*Device `protobuf:"bytes,3,rep,name=devices" json:"devices,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Time int64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` + Devices []*Device `protobuf:"bytes,3,rep,name=devices,proto3" json:"devices,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 (x *Event) Reset() { + *x = Event{} + if protoimpl.UnsafeEnabled { + mi := &file_depsync_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *Event) GetId() string { - if m != nil { - return m.Id +func (x *Event) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Event) ProtoMessage() {} + +func (x *Event) ProtoReflect() protoreflect.Message { + mi := &file_depsync_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Event.ProtoReflect.Descriptor instead. +func (*Event) Descriptor() ([]byte, []int) { + return file_depsync_proto_rawDescGZIP(), []int{0} +} + +func (x *Event) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Event) GetTime() int64 { - if m != nil { - return m.Time +func (x *Event) GetTime() int64 { + if x != nil { + return x.Time } return 0 } -func (m *Event) GetDevices() []*Device { - if m != nil { - return m.Devices +func (x *Event) GetDevices() []*Device { + if x != nil { + return x.Devices } return nil } type Device struct { - SerialNumber string `protobuf:"bytes,1,opt,name=serial_number,json=serialNumber" json:"serial_number,omitempty"` - Model string `protobuf:"bytes,2,opt,name=model" json:"model,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` - Color string `protobuf:"bytes,4,opt,name=color" json:"color,omitempty"` - AssetTag string `protobuf:"bytes,5,opt,name=asset_tag,json=assetTag" json:"asset_tag,omitempty"` - ProfileStatus string `protobuf:"bytes,6,opt,name=profile_status,json=profileStatus" json:"profile_status,omitempty"` - ProfileUuid string `protobuf:"bytes,7,opt,name=profile_uuid,json=profileUuid" json:"profile_uuid,omitempty"` - ProfileAssignTime int64 `protobuf:"varint,8,opt,name=profile_assign_time,json=profileAssignTime" json:"profile_assign_time,omitempty"` - ProfilePushTime int64 `protobuf:"varint,9,opt,name=profile_push_time,json=profilePushTime" json:"profile_push_time,omitempty"` - DeviceAssignedDate int64 `protobuf:"varint,10,opt,name=device_assigned_date,json=deviceAssignedDate" json:"device_assigned_date,omitempty"` - DeviceAssignedBy string `protobuf:"bytes,11,opt,name=device_assigned_by,json=deviceAssignedBy" json:"device_assigned_by,omitempty"` - OpType string `protobuf:"bytes,12,opt,name=op_type,json=opType" json:"op_type,omitempty"` - OpDate int64 `protobuf:"varint,13,opt,name=op_date,json=opDate" json:"op_date,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SerialNumber string `protobuf:"bytes,1,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` + Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` + AssetTag string `protobuf:"bytes,5,opt,name=asset_tag,json=assetTag,proto3" json:"asset_tag,omitempty"` + ProfileStatus string `protobuf:"bytes,6,opt,name=profile_status,json=profileStatus,proto3" json:"profile_status,omitempty"` + ProfileUuid string `protobuf:"bytes,7,opt,name=profile_uuid,json=profileUuid,proto3" json:"profile_uuid,omitempty"` + ProfileAssignTime int64 `protobuf:"varint,8,opt,name=profile_assign_time,json=profileAssignTime,proto3" json:"profile_assign_time,omitempty"` + ProfilePushTime int64 `protobuf:"varint,9,opt,name=profile_push_time,json=profilePushTime,proto3" json:"profile_push_time,omitempty"` + DeviceAssignedDate int64 `protobuf:"varint,10,opt,name=device_assigned_date,json=deviceAssignedDate,proto3" json:"device_assigned_date,omitempty"` + DeviceAssignedBy string `protobuf:"bytes,11,opt,name=device_assigned_by,json=deviceAssignedBy,proto3" json:"device_assigned_by,omitempty"` + OpType string `protobuf:"bytes,12,opt,name=op_type,json=opType,proto3" json:"op_type,omitempty"` + OpDate int64 `protobuf:"varint,13,opt,name=op_date,json=opDate,proto3" json:"op_date,omitempty"` } -func (m *Device) Reset() { *m = Device{} } -func (m *Device) String() string { return proto.CompactTextString(m) } -func (*Device) ProtoMessage() {} -func (*Device) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } +func (x *Device) Reset() { + *x = Device{} + if protoimpl.UnsafeEnabled { + mi := &file_depsync_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *Device) GetSerialNumber() string { - if m != nil { - return m.SerialNumber +func (x *Device) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Device) ProtoMessage() {} + +func (x *Device) ProtoReflect() protoreflect.Message { + mi := &file_depsync_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Device.ProtoReflect.Descriptor instead. +func (*Device) Descriptor() ([]byte, []int) { + return file_depsync_proto_rawDescGZIP(), []int{1} +} + +func (x *Device) GetSerialNumber() string { + if x != nil { + return x.SerialNumber } return "" } -func (m *Device) GetModel() string { - if m != nil { - return m.Model +func (x *Device) GetModel() string { + if x != nil { + return x.Model } return "" } -func (m *Device) GetDescription() string { - if m != nil { - return m.Description +func (x *Device) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *Device) GetColor() string { - if m != nil { - return m.Color +func (x *Device) GetColor() string { + if x != nil { + return x.Color } return "" } -func (m *Device) GetAssetTag() string { - if m != nil { - return m.AssetTag +func (x *Device) GetAssetTag() string { + if x != nil { + return x.AssetTag } return "" } -func (m *Device) GetProfileStatus() string { - if m != nil { - return m.ProfileStatus +func (x *Device) GetProfileStatus() string { + if x != nil { + return x.ProfileStatus } return "" } -func (m *Device) GetProfileUuid() string { - if m != nil { - return m.ProfileUuid +func (x *Device) GetProfileUuid() string { + if x != nil { + return x.ProfileUuid } return "" } -func (m *Device) GetProfileAssignTime() int64 { - if m != nil { - return m.ProfileAssignTime +func (x *Device) GetProfileAssignTime() int64 { + if x != nil { + return x.ProfileAssignTime } return 0 } -func (m *Device) GetProfilePushTime() int64 { - if m != nil { - return m.ProfilePushTime +func (x *Device) GetProfilePushTime() int64 { + if x != nil { + return x.ProfilePushTime } return 0 } -func (m *Device) GetDeviceAssignedDate() int64 { - if m != nil { - return m.DeviceAssignedDate +func (x *Device) GetDeviceAssignedDate() int64 { + if x != nil { + return x.DeviceAssignedDate } return 0 } -func (m *Device) GetDeviceAssignedBy() string { - if m != nil { - return m.DeviceAssignedBy +func (x *Device) GetDeviceAssignedBy() string { + if x != nil { + return x.DeviceAssignedBy } return "" } -func (m *Device) GetOpType() string { - if m != nil { - return m.OpType +func (x *Device) GetOpType() string { + if x != nil { + return x.OpType } return "" } -func (m *Device) GetOpDate() int64 { - if m != nil { - return m.OpDate +func (x *Device) GetOpDate() int64 { + if x != nil { + return x.OpDate } return 0 } -func init() { - proto.RegisterType((*Event)(nil), "depsyncproto.Event") - proto.RegisterType((*Device)(nil), "depsyncproto.Device") +var File_depsync_proto protoreflect.FileDescriptor + +var file_depsync_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x64, 0x65, 0x70, 0x73, 0x79, 0x6e, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0c, 0x64, 0x65, 0x70, 0x73, 0x79, 0x6e, 0x63, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5b, 0x0a, + 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x64, 0x65, + 0x70, 0x73, 0x79, 0x6e, 0x63, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x52, 0x07, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0xd0, 0x03, 0x0a, 0x06, 0x44, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x5f, + 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, + 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, + 0x74, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, + 0x65, 0x74, 0x54, 0x61, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x70, + 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x0c, + 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x55, 0x75, 0x69, 0x64, 0x12, + 0x2e, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, + 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x70, 0x72, + 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x75, 0x73, 0x68, 0x5f, + 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x66, + 0x69, 0x6c, 0x65, 0x50, 0x75, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x14, 0x64, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x64, + 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x64, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x44, 0x61, 0x74, 0x65, 0x12, 0x2c, 0x0a, + 0x12, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, + 0x5f, 0x62, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x42, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x6f, + 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x70, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6f, 0x70, 0x5f, 0x64, 0x61, 0x74, 0x65, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x65, 0x42, 0x46, 0x5a, + 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, + 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x70, 0x6c, + 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x64, 0x65, 0x70, 0x2f, 0x73, 0x79, 0x6e, 0x63, 0x2f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x64, 0x65, 0x70, 0x73, 0x79, 0x6e, 0x63, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("depsync.proto", fileDescriptor0) } +var ( + file_depsync_proto_rawDescOnce sync.Once + file_depsync_proto_rawDescData = file_depsync_proto_rawDesc +) -var fileDescriptor0 = []byte{ - // 361 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0x51, 0x8b, 0xd3, 0x40, - 0x10, 0xc7, 0x69, 0x73, 0x4d, 0x2f, 0xd3, 0xe4, 0xd4, 0xb1, 0xe0, 0x82, 0x2f, 0xf1, 0x44, 0x28, - 0x22, 0x41, 0xf4, 0x13, 0x9c, 0x9c, 0xaf, 0x22, 0xb1, 0x3e, 0xf9, 0x10, 0xb6, 0xd9, 0xb1, 0xb7, - 0x90, 0x66, 0x97, 0xec, 0xa6, 0x90, 0x6f, 0xe9, 0x47, 0x92, 0xce, 0x6e, 0xa0, 0xfa, 0x96, 0xf9, - 0xff, 0x7e, 0x33, 0x13, 0x66, 0xa1, 0x50, 0x64, 0xdd, 0xd4, 0xb7, 0x95, 0x1d, 0x8c, 0x37, 0x98, - 0xc7, 0x92, 0xab, 0xfb, 0x5f, 0xb0, 0xfa, 0x7a, 0xa6, 0xde, 0xe3, 0x1d, 0x2c, 0xb5, 0x12, 0x8b, - 0x72, 0xb1, 0xcb, 0xea, 0xa5, 0x56, 0x88, 0x70, 0xe3, 0xf5, 0x89, 0xc4, 0xb2, 0x5c, 0xec, 0x92, - 0x9a, 0xbf, 0xb1, 0x82, 0xb5, 0xa2, 0xb3, 0x6e, 0xc9, 0x89, 0xa4, 0x4c, 0x76, 0x9b, 0x4f, 0xdb, - 0xea, 0x7a, 0x58, 0xf5, 0xc8, 0xb0, 0x9e, 0xa5, 0xfb, 0x3f, 0x09, 0xa4, 0x21, 0xc3, 0xb7, 0x50, - 0x38, 0x1a, 0xb4, 0xec, 0x9a, 0x7e, 0x3c, 0x1d, 0x68, 0x88, 0x9b, 0xf2, 0x10, 0x7e, 0xe3, 0x0c, - 0xb7, 0xb0, 0x3a, 0x19, 0x45, 0x1d, 0x2f, 0xcd, 0xea, 0x50, 0x60, 0x09, 0x1b, 0x45, 0xae, 0x1d, - 0xb4, 0xf5, 0xda, 0xf4, 0x22, 0x61, 0x76, 0x1d, 0x5d, 0xfa, 0x5a, 0xd3, 0x99, 0x41, 0xdc, 0x84, - 0x3e, 0x2e, 0xf0, 0x35, 0x64, 0xd2, 0x39, 0xf2, 0x8d, 0x97, 0x47, 0xb1, 0x62, 0x72, 0xcb, 0xc1, - 0x5e, 0x1e, 0xf1, 0x1d, 0xdc, 0xd9, 0xc1, 0xfc, 0xd6, 0x1d, 0x35, 0xce, 0x4b, 0x3f, 0x3a, 0x91, - 0xb2, 0x51, 0xc4, 0xf4, 0x07, 0x87, 0xf8, 0x06, 0xf2, 0x59, 0x1b, 0x47, 0xad, 0xc4, 0x3a, 0x2c, - 0x8f, 0xd9, 0xcf, 0x51, 0x2b, 0xac, 0xe0, 0xe5, 0xac, 0x48, 0xe7, 0xf4, 0xb1, 0x6f, 0xf8, 0x6e, - 0xb7, 0x7c, 0xb7, 0x17, 0x11, 0x3d, 0x30, 0xd9, 0x5f, 0x8e, 0xf8, 0x1e, 0xe6, 0xb0, 0xb1, 0xa3, - 0x7b, 0x0a, 0x76, 0xc6, 0xf6, 0xb3, 0x08, 0xbe, 0x8f, 0xee, 0x89, 0xdd, 0x8f, 0xb0, 0x0d, 0xb7, - 0x8c, 0xa3, 0x49, 0x35, 0x4a, 0x7a, 0x12, 0xc0, 0x3a, 0x06, 0xf6, 0x10, 0xd1, 0xa3, 0xf4, 0x84, - 0x1f, 0x00, 0xff, 0xef, 0x38, 0x4c, 0x62, 0xc3, 0xbf, 0xfd, 0xfc, 0x5f, 0xff, 0xcb, 0x84, 0xaf, - 0x60, 0x6d, 0x6c, 0xe3, 0x27, 0x4b, 0x22, 0x67, 0x25, 0x35, 0x76, 0x3f, 0x59, 0x8a, 0x80, 0x77, - 0x15, 0xbc, 0x2b, 0x35, 0xf6, 0x32, 0xff, 0x90, 0xf2, 0x4b, 0x7f, 0xfe, 0x1b, 0x00, 0x00, 0xff, - 0xff, 0x1d, 0x9a, 0x90, 0xb5, 0x55, 0x02, 0x00, 0x00, +func file_depsync_proto_rawDescGZIP() []byte { + file_depsync_proto_rawDescOnce.Do(func() { + file_depsync_proto_rawDescData = protoimpl.X.CompressGZIP(file_depsync_proto_rawDescData) + }) + return file_depsync_proto_rawDescData +} + +var file_depsync_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_depsync_proto_goTypes = []interface{}{ + (*Event)(nil), // 0: depsyncproto.Event + (*Device)(nil), // 1: depsyncproto.Device +} +var file_depsync_proto_depIdxs = []int32{ + 1, // 0: depsyncproto.Event.devices:type_name -> depsyncproto.Device + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_depsync_proto_init() } +func file_depsync_proto_init() { + if File_depsync_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_depsync_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Event); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_depsync_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Device); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_depsync_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_depsync_proto_goTypes, + DependencyIndexes: file_depsync_proto_depIdxs, + MessageInfos: file_depsync_proto_msgTypes, + }.Build() + File_depsync_proto = out.File + file_depsync_proto_rawDesc = nil + file_depsync_proto_goTypes = nil + file_depsync_proto_depIdxs = nil } diff --git a/platform/dep/sync/internal/depsyncproto/depsync.proto b/platform/dep/sync/internal/depsyncproto/depsync.proto index dcb02bcf..8de9adf4 100644 --- a/platform/dep/sync/internal/depsyncproto/depsync.proto +++ b/platform/dep/sync/internal/depsyncproto/depsync.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package depsyncproto; +option go_package = "github.com/micromdm/micromdm/platform/dep/sync/internal/depsyncproto"; + message Event { string id = 1; int64 time = 2; diff --git a/platform/device/device.go b/platform/device/device.go index 717354f6..8e6f3b1f 100644 --- a/platform/device/device.go +++ b/platform/device/device.go @@ -3,8 +3,8 @@ package device import ( "time" - "github.com/gogo/protobuf/proto" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/micromdm/micromdm/platform/device/internal/deviceproto" ) diff --git a/platform/device/internal/deviceproto/device.go b/platform/device/internal/deviceproto/device.go index 19b9639c..4f1d144b 100644 --- a/platform/device/internal/deviceproto/device.go +++ b/platform/device/internal/deviceproto/device.go @@ -1,3 +1,3 @@ package deviceproto -//go:generate protoc --go_out=. device.proto +//go:generate protoc --go_out=. --go_opt=paths=source_relative device.proto diff --git a/platform/device/internal/deviceproto/device.pb.go b/platform/device/internal/deviceproto/device.pb.go index 66685998..f929d1fe 100644 --- a/platform/device/internal/deviceproto/device.pb.go +++ b/platform/device/internal/deviceproto/device.pb.go @@ -1,322 +1,441 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: device.proto -/* -Package deviceproto is a generated protocol buffer package. - -It is generated from these files: - device.proto - -It has these top-level messages: - Device -*/ package deviceproto -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Device struct { - Uuid string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"` - Udid string `protobuf:"bytes,2,opt,name=udid" json:"udid,omitempty"` - SerialNumber string `protobuf:"bytes,3,opt,name=serial_number,json=serialNumber" json:"serial_number,omitempty"` - OsVersion string `protobuf:"bytes,4,opt,name=os_version,json=osVersion" json:"os_version,omitempty"` - BuildVersion string `protobuf:"bytes,5,opt,name=build_version,json=buildVersion" json:"build_version,omitempty"` - ProductName string `protobuf:"bytes,6,opt,name=product_name,json=productName" json:"product_name,omitempty"` - Imei string `protobuf:"bytes,7,opt,name=imei" json:"imei,omitempty"` - Meid string `protobuf:"bytes,8,opt,name=meid" json:"meid,omitempty"` - Token string `protobuf:"bytes,9,opt,name=token" json:"token,omitempty"` - PushMagic string `protobuf:"bytes,10,opt,name=push_magic,json=pushMagic" json:"push_magic,omitempty"` - MdmTopic string `protobuf:"bytes,11,opt,name=mdm_topic,json=mdmTopic" json:"mdm_topic,omitempty"` - UnlockToken string `protobuf:"bytes,12,opt,name=unlock_token,json=unlockToken" json:"unlock_token,omitempty"` - Enrolled bool `protobuf:"varint,13,opt,name=enrolled" json:"enrolled,omitempty"` - AwaitingConfiguration bool `protobuf:"varint,14,opt,name=awaiting_configuration,json=awaitingConfiguration" json:"awaiting_configuration,omitempty"` - DeviceName string `protobuf:"bytes,15,opt,name=device_name,json=deviceName" json:"device_name,omitempty"` - Model string `protobuf:"bytes,16,opt,name=model" json:"model,omitempty"` - ModelName string `protobuf:"bytes,17,opt,name=model_name,json=modelName" json:"model_name,omitempty"` - Description string `protobuf:"bytes,18,opt,name=description" json:"description,omitempty"` - Color string `protobuf:"bytes,19,opt,name=color" json:"color,omitempty"` - AssetTag string `protobuf:"bytes,20,opt,name=asset_tag,json=assetTag" json:"asset_tag,omitempty"` - DepDevice bool `protobuf:"varint,21,opt,name=dep_device,json=depDevice" json:"dep_device,omitempty"` - DepProfileStatus string `protobuf:"bytes,22,opt,name=dep_profile_status,json=depProfileStatus" json:"dep_profile_status,omitempty"` - DepProfileUuid string `protobuf:"bytes,23,opt,name=dep_profile_uuid,json=depProfileUuid" json:"dep_profile_uuid,omitempty"` - DepProfileAssignTime int64 `protobuf:"varint,24,opt,name=dep_profile_assign_time,json=depProfileAssignTime" json:"dep_profile_assign_time,omitempty"` - DepProfilePushTime int64 `protobuf:"varint,25,opt,name=dep_profile_push_time,json=depProfilePushTime" json:"dep_profile_push_time,omitempty"` - DepProfileAssignedDate int64 `protobuf:"varint,26,opt,name=dep_profile_assigned_date,json=depProfileAssignedDate" json:"dep_profile_assigned_date,omitempty"` - DepProfileAssignedBy string `protobuf:"bytes,27,opt,name=dep_profile_assigned_by,json=depProfileAssignedBy" json:"dep_profile_assigned_by,omitempty"` - LastSeen int64 `protobuf:"varint,28,opt,name=last_seen,json=lastSeen" json:"last_seen,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + Udid string `protobuf:"bytes,2,opt,name=udid,proto3" json:"udid,omitempty"` + SerialNumber string `protobuf:"bytes,3,opt,name=serial_number,json=serialNumber,proto3" json:"serial_number,omitempty"` + OsVersion string `protobuf:"bytes,4,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"` + BuildVersion string `protobuf:"bytes,5,opt,name=build_version,json=buildVersion,proto3" json:"build_version,omitempty"` + ProductName string `protobuf:"bytes,6,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` + Imei string `protobuf:"bytes,7,opt,name=imei,proto3" json:"imei,omitempty"` + Meid string `protobuf:"bytes,8,opt,name=meid,proto3" json:"meid,omitempty"` + Token string `protobuf:"bytes,9,opt,name=token,proto3" json:"token,omitempty"` + PushMagic string `protobuf:"bytes,10,opt,name=push_magic,json=pushMagic,proto3" json:"push_magic,omitempty"` + MdmTopic string `protobuf:"bytes,11,opt,name=mdm_topic,json=mdmTopic,proto3" json:"mdm_topic,omitempty"` + UnlockToken string `protobuf:"bytes,12,opt,name=unlock_token,json=unlockToken,proto3" json:"unlock_token,omitempty"` + Enrolled bool `protobuf:"varint,13,opt,name=enrolled,proto3" json:"enrolled,omitempty"` + AwaitingConfiguration bool `protobuf:"varint,14,opt,name=awaiting_configuration,json=awaitingConfiguration,proto3" json:"awaiting_configuration,omitempty"` + DeviceName string `protobuf:"bytes,15,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"` + Model string `protobuf:"bytes,16,opt,name=model,proto3" json:"model,omitempty"` + ModelName string `protobuf:"bytes,17,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"` + Description string `protobuf:"bytes,18,opt,name=description,proto3" json:"description,omitempty"` + Color string `protobuf:"bytes,19,opt,name=color,proto3" json:"color,omitempty"` + AssetTag string `protobuf:"bytes,20,opt,name=asset_tag,json=assetTag,proto3" json:"asset_tag,omitempty"` + DepDevice bool `protobuf:"varint,21,opt,name=dep_device,json=depDevice,proto3" json:"dep_device,omitempty"` + DepProfileStatus string `protobuf:"bytes,22,opt,name=dep_profile_status,json=depProfileStatus,proto3" json:"dep_profile_status,omitempty"` + DepProfileUuid string `protobuf:"bytes,23,opt,name=dep_profile_uuid,json=depProfileUuid,proto3" json:"dep_profile_uuid,omitempty"` + DepProfileAssignTime int64 `protobuf:"varint,24,opt,name=dep_profile_assign_time,json=depProfileAssignTime,proto3" json:"dep_profile_assign_time,omitempty"` + DepProfilePushTime int64 `protobuf:"varint,25,opt,name=dep_profile_push_time,json=depProfilePushTime,proto3" json:"dep_profile_push_time,omitempty"` + DepProfileAssignedDate int64 `protobuf:"varint,26,opt,name=dep_profile_assigned_date,json=depProfileAssignedDate,proto3" json:"dep_profile_assigned_date,omitempty"` + DepProfileAssignedBy string `protobuf:"bytes,27,opt,name=dep_profile_assigned_by,json=depProfileAssignedBy,proto3" json:"dep_profile_assigned_by,omitempty"` + LastSeen int64 `protobuf:"varint,28,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"` LastQueryResponse []byte `protobuf:"bytes,29,opt,name=last_query_response,json=lastQueryResponse,proto3" json:"last_query_response,omitempty"` BootstrapToken []byte `protobuf:"bytes,30,opt,name=bootstrap_token,json=bootstrapToken,proto3" json:"bootstrap_token,omitempty"` } -func (m *Device) Reset() { *m = Device{} } -func (m *Device) String() string { return proto.CompactTextString(m) } -func (*Device) ProtoMessage() {} -func (*Device) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (x *Device) Reset() { + *x = Device{} + if protoimpl.UnsafeEnabled { + mi := &file_device_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *Device) GetUuid() string { - if m != nil { - return m.Uuid +func (x *Device) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Device) ProtoMessage() {} + +func (x *Device) ProtoReflect() protoreflect.Message { + mi := &file_device_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Device.ProtoReflect.Descriptor instead. +func (*Device) Descriptor() ([]byte, []int) { + return file_device_proto_rawDescGZIP(), []int{0} +} + +func (x *Device) GetUuid() string { + if x != nil { + return x.Uuid } return "" } -func (m *Device) GetUdid() string { - if m != nil { - return m.Udid +func (x *Device) GetUdid() string { + if x != nil { + return x.Udid } return "" } -func (m *Device) GetSerialNumber() string { - if m != nil { - return m.SerialNumber +func (x *Device) GetSerialNumber() string { + if x != nil { + return x.SerialNumber } return "" } -func (m *Device) GetOsVersion() string { - if m != nil { - return m.OsVersion +func (x *Device) GetOsVersion() string { + if x != nil { + return x.OsVersion } return "" } -func (m *Device) GetBuildVersion() string { - if m != nil { - return m.BuildVersion +func (x *Device) GetBuildVersion() string { + if x != nil { + return x.BuildVersion } return "" } -func (m *Device) GetProductName() string { - if m != nil { - return m.ProductName +func (x *Device) GetProductName() string { + if x != nil { + return x.ProductName } return "" } -func (m *Device) GetImei() string { - if m != nil { - return m.Imei +func (x *Device) GetImei() string { + if x != nil { + return x.Imei } return "" } -func (m *Device) GetMeid() string { - if m != nil { - return m.Meid +func (x *Device) GetMeid() string { + if x != nil { + return x.Meid } return "" } -func (m *Device) GetToken() string { - if m != nil { - return m.Token +func (x *Device) GetToken() string { + if x != nil { + return x.Token } return "" } -func (m *Device) GetPushMagic() string { - if m != nil { - return m.PushMagic +func (x *Device) GetPushMagic() string { + if x != nil { + return x.PushMagic } return "" } -func (m *Device) GetMdmTopic() string { - if m != nil { - return m.MdmTopic +func (x *Device) GetMdmTopic() string { + if x != nil { + return x.MdmTopic } return "" } -func (m *Device) GetUnlockToken() string { - if m != nil { - return m.UnlockToken +func (x *Device) GetUnlockToken() string { + if x != nil { + return x.UnlockToken } return "" } -func (m *Device) GetEnrolled() bool { - if m != nil { - return m.Enrolled +func (x *Device) GetEnrolled() bool { + if x != nil { + return x.Enrolled } return false } -func (m *Device) GetAwaitingConfiguration() bool { - if m != nil { - return m.AwaitingConfiguration +func (x *Device) GetAwaitingConfiguration() bool { + if x != nil { + return x.AwaitingConfiguration } return false } -func (m *Device) GetDeviceName() string { - if m != nil { - return m.DeviceName +func (x *Device) GetDeviceName() string { + if x != nil { + return x.DeviceName } return "" } -func (m *Device) GetModel() string { - if m != nil { - return m.Model +func (x *Device) GetModel() string { + if x != nil { + return x.Model } return "" } -func (m *Device) GetModelName() string { - if m != nil { - return m.ModelName +func (x *Device) GetModelName() string { + if x != nil { + return x.ModelName } return "" } -func (m *Device) GetDescription() string { - if m != nil { - return m.Description +func (x *Device) GetDescription() string { + if x != nil { + return x.Description } return "" } -func (m *Device) GetColor() string { - if m != nil { - return m.Color +func (x *Device) GetColor() string { + if x != nil { + return x.Color } return "" } -func (m *Device) GetAssetTag() string { - if m != nil { - return m.AssetTag +func (x *Device) GetAssetTag() string { + if x != nil { + return x.AssetTag } return "" } -func (m *Device) GetDepDevice() bool { - if m != nil { - return m.DepDevice +func (x *Device) GetDepDevice() bool { + if x != nil { + return x.DepDevice } return false } -func (m *Device) GetDepProfileStatus() string { - if m != nil { - return m.DepProfileStatus +func (x *Device) GetDepProfileStatus() string { + if x != nil { + return x.DepProfileStatus } return "" } -func (m *Device) GetDepProfileUuid() string { - if m != nil { - return m.DepProfileUuid +func (x *Device) GetDepProfileUuid() string { + if x != nil { + return x.DepProfileUuid } return "" } -func (m *Device) GetDepProfileAssignTime() int64 { - if m != nil { - return m.DepProfileAssignTime +func (x *Device) GetDepProfileAssignTime() int64 { + if x != nil { + return x.DepProfileAssignTime } return 0 } -func (m *Device) GetDepProfilePushTime() int64 { - if m != nil { - return m.DepProfilePushTime +func (x *Device) GetDepProfilePushTime() int64 { + if x != nil { + return x.DepProfilePushTime } return 0 } -func (m *Device) GetDepProfileAssignedDate() int64 { - if m != nil { - return m.DepProfileAssignedDate +func (x *Device) GetDepProfileAssignedDate() int64 { + if x != nil { + return x.DepProfileAssignedDate } return 0 } -func (m *Device) GetDepProfileAssignedBy() string { - if m != nil { - return m.DepProfileAssignedBy +func (x *Device) GetDepProfileAssignedBy() string { + if x != nil { + return x.DepProfileAssignedBy } return "" } -func (m *Device) GetLastSeen() int64 { - if m != nil { - return m.LastSeen +func (x *Device) GetLastSeen() int64 { + if x != nil { + return x.LastSeen } return 0 } -func (m *Device) GetLastQueryResponse() []byte { - if m != nil { - return m.LastQueryResponse +func (x *Device) GetLastQueryResponse() []byte { + if x != nil { + return x.LastQueryResponse } return nil } -func (m *Device) GetBootstrapToken() []byte { - if m != nil { - return m.BootstrapToken +func (x *Device) GetBootstrapToken() []byte { + if x != nil { + return x.BootstrapToken } return nil } -func init() { - proto.RegisterType((*Device)(nil), "deviceproto.Device") +var File_device_proto protoreflect.FileDescriptor + +var file_device_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, + 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa0, 0x08, 0x0a, 0x06, + 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x64, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x64, 0x69, 0x64, 0x12, 0x23, + 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x75, 0x69, 0x6c, 0x64, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x64, 0x75, + 0x63, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, + 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6d, + 0x65, 0x69, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x6d, 0x65, 0x69, 0x12, 0x12, + 0x0a, 0x04, 0x6d, 0x65, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6d, 0x65, + 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x75, 0x73, 0x68, + 0x5f, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, + 0x73, 0x68, 0x4d, 0x61, 0x67, 0x69, 0x63, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x64, 0x6d, 0x5f, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x64, 0x6d, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x6e, 0x6c, 0x6f, + 0x63, 0x6b, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x72, 0x6f, 0x6c, + 0x6c, 0x65, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x65, 0x6e, 0x72, 0x6f, 0x6c, + 0x6c, 0x65, 0x64, 0x12, 0x35, 0x0a, 0x16, 0x61, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x15, 0x61, 0x77, 0x61, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x13, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, + 0x74, 0x5f, 0x74, 0x61, 0x67, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, + 0x65, 0x74, 0x54, 0x61, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x5f, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x64, 0x65, 0x70, 0x44, 0x65, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x64, 0x65, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x66, + 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x10, 0x64, 0x65, 0x70, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x65, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, + 0x65, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65, + 0x70, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x55, 0x75, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x17, + 0x64, 0x65, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x61, 0x73, 0x73, 0x69, + 0x67, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x64, + 0x65, 0x70, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x54, + 0x69, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x15, 0x64, 0x65, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, + 0x6c, 0x65, 0x5f, 0x70, 0x75, 0x73, 0x68, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x19, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x12, 0x64, 0x65, 0x70, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x75, + 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x19, 0x64, 0x65, 0x70, 0x5f, 0x70, 0x72, + 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x64, + 0x61, 0x74, 0x65, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x64, 0x65, 0x70, 0x50, 0x72, + 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x41, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x44, 0x61, 0x74, + 0x65, 0x12, 0x35, 0x0a, 0x17, 0x64, 0x65, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, + 0x5f, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x1b, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x14, 0x64, 0x65, 0x70, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x41, 0x73, + 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x42, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x73, 0x65, 0x65, 0x6e, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6c, 0x61, 0x73, + 0x74, 0x53, 0x65, 0x65, 0x6e, 0x12, 0x2e, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x5f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x1d, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, + 0x61, 0x70, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, + 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x43, + 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, + 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x70, + 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("device.proto", fileDescriptor0) } +var ( + file_device_proto_rawDescOnce sync.Once + file_device_proto_rawDescData = file_device_proto_rawDesc +) -var fileDescriptor0 = []byte{ - // 576 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x94, 0xcf, 0x53, 0x13, 0x31, - 0x14, 0xc7, 0xa7, 0x42, 0xeb, 0x36, 0x2d, 0xa5, 0x84, 0xb6, 0x04, 0x10, 0xad, 0x7a, 0xb0, 0x07, - 0x87, 0x19, 0xc7, 0xe1, 0xe0, 0x51, 0xe5, 0x2a, 0x83, 0xa5, 0x7a, 0xcd, 0xa4, 0x9b, 0xc7, 0x92, - 0x61, 0x93, 0xac, 0x49, 0x16, 0xa7, 0xff, 0x8d, 0x7f, 0xaa, 0x93, 0x97, 0xa5, 0xed, 0x88, 0xb7, - 0xbc, 0xcf, 0xf7, 0xfd, 0xde, 0x37, 0x4b, 0xfa, 0x12, 0x1e, 0x54, 0x0e, 0xe7, 0x95, 0xb3, 0xc1, - 0xd2, 0x5e, 0xb2, 0xd0, 0x78, 0xf3, 0x27, 0x23, 0x9d, 0x4b, 0xb4, 0x29, 0x25, 0xbb, 0x75, 0xad, - 0x24, 0x6b, 0x4d, 0x5b, 0xb3, 0xee, 0x1c, 0xdf, 0xc8, 0xa4, 0x92, 0xec, 0x59, 0xc3, 0xa4, 0x92, - 0xf4, 0x2d, 0xd9, 0xf3, 0xe0, 0x94, 0x28, 0xb9, 0xa9, 0xf5, 0x12, 0x1c, 0xdb, 0x41, 0xb1, 0x9f, - 0xe0, 0x15, 0x32, 0x7a, 0x46, 0x88, 0xf5, 0xfc, 0x01, 0x9c, 0x57, 0xd6, 0xb0, 0x5d, 0xf4, 0xe8, - 0x5a, 0xff, 0x33, 0x81, 0x98, 0x63, 0x59, 0xab, 0x52, 0xae, 0x3d, 0xda, 0x29, 0x07, 0xc2, 0x47, - 0xa7, 0xd7, 0xa4, 0x5f, 0x39, 0x2b, 0xeb, 0x3c, 0x70, 0x23, 0x34, 0xb0, 0x0e, 0xfa, 0xf4, 0x1a, - 0x76, 0x25, 0x34, 0xf6, 0xac, 0x34, 0x28, 0xf6, 0x3c, 0xf5, 0x17, 0xdf, 0x91, 0x69, 0x50, 0x92, - 0x65, 0x89, 0xc5, 0x37, 0x1d, 0x91, 0x76, 0xb0, 0xf7, 0x60, 0x58, 0x17, 0x61, 0x32, 0x62, 0x93, - 0x55, 0xed, 0xef, 0xb8, 0x16, 0x85, 0xca, 0x19, 0x49, 0x4d, 0x46, 0xf2, 0x2d, 0x02, 0x7a, 0x4a, - 0xba, 0x5a, 0x6a, 0x1e, 0x6c, 0xa5, 0x72, 0xd6, 0x43, 0x35, 0xd3, 0x52, 0x2f, 0xa2, 0x1d, 0x9b, - 0xab, 0x4d, 0x69, 0xf3, 0x7b, 0x9e, 0x12, 0xf7, 0x53, 0x73, 0x89, 0x2d, 0x30, 0xfd, 0x09, 0xc9, - 0xc0, 0x38, 0x5b, 0x96, 0x20, 0xd9, 0xde, 0xb4, 0x35, 0xcb, 0xe6, 0x6b, 0x9b, 0x5e, 0x90, 0x89, - 0xf8, 0x2d, 0x54, 0x50, 0xa6, 0xe0, 0xb9, 0x35, 0xb7, 0xaa, 0xa8, 0x9d, 0x08, 0x71, 0x13, 0x03, - 0xf4, 0x1c, 0x3f, 0xaa, 0x5f, 0xb7, 0x45, 0xfa, 0x8a, 0x34, 0x5f, 0x2f, 0x6d, 0x64, 0x1f, 0x8b, - 0x92, 0x84, 0x70, 0x21, 0x23, 0xd2, 0xd6, 0x56, 0x42, 0xc9, 0x86, 0x69, 0x50, 0x34, 0xe2, 0xa0, - 0xf8, 0x48, 0x51, 0x07, 0x69, 0x50, 0x24, 0x18, 0x34, 0x8d, 0x59, 0x7d, 0xee, 0x54, 0x85, 0x1d, - 0xd0, 0x34, 0xca, 0x16, 0x8a, 0x69, 0x73, 0x5b, 0x5a, 0xc7, 0x0e, 0x53, 0x5a, 0x34, 0xe2, 0x82, - 0x84, 0xf7, 0x10, 0x78, 0x10, 0x05, 0x1b, 0xa5, 0x05, 0x21, 0x58, 0x88, 0x22, 0xd6, 0x94, 0x50, - 0xf1, 0xd4, 0x1b, 0x1b, 0xe3, 0x54, 0x5d, 0x09, 0x55, 0x73, 0x6d, 0xef, 0x09, 0x8d, 0x72, 0xe5, - 0xec, 0xad, 0x2a, 0x81, 0xfb, 0x20, 0x42, 0xed, 0xd9, 0x04, 0x93, 0x0c, 0x25, 0x54, 0xd7, 0x49, - 0xb8, 0x41, 0x4e, 0x67, 0x64, 0xb8, 0xed, 0x8d, 0x77, 0x7a, 0x84, 0xbe, 0x83, 0x8d, 0xef, 0x8f, - 0x78, 0xb1, 0x17, 0xe4, 0x68, 0xdb, 0x53, 0x78, 0xaf, 0x0a, 0xc3, 0x83, 0xd2, 0xc0, 0xd8, 0xb4, - 0x35, 0xdb, 0x99, 0x8f, 0x36, 0x01, 0x9f, 0x51, 0x5c, 0x28, 0x0d, 0xf4, 0x03, 0x19, 0x6f, 0x87, - 0xe1, 0x59, 0x60, 0xd0, 0x31, 0x06, 0xd1, 0x4d, 0xd0, 0x75, 0xed, 0xef, 0x30, 0xe4, 0x13, 0x39, - 0x7e, 0x5a, 0x09, 0x24, 0x97, 0x22, 0x00, 0x3b, 0xc1, 0xb0, 0xc9, 0xbf, 0xb5, 0x40, 0x5e, 0x8a, - 0x00, 0xff, 0x6f, 0x12, 0x24, 0x5f, 0xae, 0xd8, 0x29, 0x4e, 0x35, 0x7a, 0x1a, 0xf8, 0x65, 0x15, - 0xf7, 0x5d, 0x0a, 0x1f, 0xb8, 0x07, 0x30, 0xec, 0x05, 0x56, 0xc8, 0x22, 0xb8, 0x01, 0x30, 0xf4, - 0x9c, 0x1c, 0xa2, 0xf8, 0xab, 0x06, 0xb7, 0xe2, 0x0e, 0x7c, 0x65, 0x8d, 0x07, 0x76, 0x36, 0x6d, - 0xcd, 0xfa, 0xf3, 0x83, 0x28, 0x7d, 0x8f, 0xca, 0xbc, 0x11, 0xe8, 0x3b, 0xb2, 0xbf, 0xb4, 0x36, - 0xf8, 0xe0, 0x44, 0xd5, 0xdc, 0xf0, 0x4b, 0xf4, 0x1d, 0xac, 0x31, 0x9e, 0xf1, 0xb2, 0x83, 0x7f, - 0x8a, 0x8f, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x60, 0xfe, 0x2a, 0x00, 0x46, 0x04, 0x00, 0x00, +func file_device_proto_rawDescGZIP() []byte { + file_device_proto_rawDescOnce.Do(func() { + file_device_proto_rawDescData = protoimpl.X.CompressGZIP(file_device_proto_rawDescData) + }) + return file_device_proto_rawDescData +} + +var file_device_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_device_proto_goTypes = []interface{}{ + (*Device)(nil), // 0: deviceproto.Device +} +var file_device_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_device_proto_init() } +func file_device_proto_init() { + if File_device_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_device_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Device); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_device_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_device_proto_goTypes, + DependencyIndexes: file_device_proto_depIdxs, + MessageInfos: file_device_proto_msgTypes, + }.Build() + File_device_proto = out.File + file_device_proto_rawDesc = nil + file_device_proto_goTypes = nil + file_device_proto_depIdxs = nil } diff --git a/platform/device/internal/deviceproto/device.proto b/platform/device/internal/deviceproto/device.proto index 3ba0c6f1..3b51baea 100644 --- a/platform/device/internal/deviceproto/device.proto +++ b/platform/device/internal/deviceproto/device.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package deviceproto; +option go_package = "github.com/micromdm/micromdm/platform/device/internal/deviceproto"; message Device { string uuid = 1; diff --git a/platform/profile/internal/profileproto/profile.go b/platform/profile/internal/profileproto/profile.go index 73977478..b0983048 100644 --- a/platform/profile/internal/profileproto/profile.go +++ b/platform/profile/internal/profileproto/profile.go @@ -1,3 +1,3 @@ package profileproto -//go:generate protoc --go_out=. profile.proto +//go:generate protoc --go_out=. --go_opt=paths=source_relative profile.proto diff --git a/platform/profile/internal/profileproto/profile.pb.go b/platform/profile/internal/profileproto/profile.pb.go index e212ff42..fba16f04 100644 --- a/platform/profile/internal/profileproto/profile.pb.go +++ b/platform/profile/internal/profileproto/profile.pb.go @@ -1,70 +1,155 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: profile.proto -// DO NOT EDIT! -/* -Package profileproto is a generated protocol buffer package. - -It is generated from these files: - profile.proto - -It has these top-level messages: - Profile -*/ package profileproto -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Profile struct { - Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Mobileconfig []byte `protobuf:"bytes,2,opt,name=mobileconfig,proto3" json:"mobileconfig,omitempty"` } -func (m *Profile) Reset() { *m = Profile{} } -func (m *Profile) String() string { return proto.CompactTextString(m) } -func (*Profile) ProtoMessage() {} -func (*Profile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (x *Profile) Reset() { + *x = Profile{} + if protoimpl.UnsafeEnabled { + mi := &file_profile_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *Profile) GetId() string { - if m != nil { - return m.Id +func (x *Profile) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Profile) ProtoMessage() {} + +func (x *Profile) ProtoReflect() protoreflect.Message { + mi := &file_profile_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Profile.ProtoReflect.Descriptor instead. +func (*Profile) Descriptor() ([]byte, []int) { + return file_profile_proto_rawDescGZIP(), []int{0} +} + +func (x *Profile) GetId() string { + if x != nil { + return x.Id } return "" } -func (m *Profile) GetMobileconfig() []byte { - if m != nil { - return m.Mobileconfig +func (x *Profile) GetMobileconfig() []byte { + if x != nil { + return x.Mobileconfig } return nil } -func init() { - proto.RegisterType((*Profile)(nil), "profileproto.Profile") +var File_profile_proto protoreflect.FileDescriptor + +var file_profile_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0c, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3d, 0x0a, + 0x07, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x6d, 0x6f, 0x62, 0x69, + 0x6c, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, + 0x6d, 0x6f, 0x62, 0x69, 0x6c, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x45, 0x5a, 0x43, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, + 0x6d, 0x64, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x70, 0x6c, 0x61, + 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x2f, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("profile.proto", fileDescriptor0) } +var ( + file_profile_proto_rawDescOnce sync.Once + file_profile_proto_rawDescData = file_profile_proto_rawDesc +) -var fileDescriptor0 = []byte{ - // 97 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2d, 0x28, 0xca, 0x4f, - 0xcb, 0xcc, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0x72, 0xc1, 0x3c, 0x25, - 0x5b, 0x2e, 0xf6, 0x00, 0x08, 0x5f, 0x88, 0x8f, 0x8b, 0x29, 0x33, 0x45, 0x82, 0x51, 0x81, 0x51, - 0x83, 0x33, 0x88, 0x29, 0x33, 0x45, 0x48, 0x89, 0x8b, 0x27, 0x37, 0x3f, 0x29, 0x33, 0x27, 0x35, - 0x39, 0x3f, 0x2f, 0x2d, 0x33, 0x5d, 0x82, 0x49, 0x81, 0x51, 0x83, 0x27, 0x08, 0x45, 0x2c, 0x89, - 0x0d, 0x6c, 0x8a, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xea, 0x33, 0x2f, 0xfa, 0x64, 0x00, 0x00, - 0x00, +func file_profile_proto_rawDescGZIP() []byte { + file_profile_proto_rawDescOnce.Do(func() { + file_profile_proto_rawDescData = protoimpl.X.CompressGZIP(file_profile_proto_rawDescData) + }) + return file_profile_proto_rawDescData +} + +var file_profile_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_profile_proto_goTypes = []interface{}{ + (*Profile)(nil), // 0: profileproto.Profile +} +var file_profile_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_profile_proto_init() } +func file_profile_proto_init() { + if File_profile_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_profile_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Profile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_profile_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_profile_proto_goTypes, + DependencyIndexes: file_profile_proto_depIdxs, + MessageInfos: file_profile_proto_msgTypes, + }.Build() + File_profile_proto = out.File + file_profile_proto_rawDesc = nil + file_profile_proto_goTypes = nil + file_profile_proto_depIdxs = nil } diff --git a/platform/profile/internal/profileproto/profile.proto b/platform/profile/internal/profileproto/profile.proto index f34c04df..2f47054e 100644 --- a/platform/profile/internal/profileproto/profile.proto +++ b/platform/profile/internal/profileproto/profile.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package profileproto; +option go_package = "github.com/micromdm/micromdm/platform/profile/internal/profileproto"; + message Profile { string id = 1; bytes mobileconfig = 2; diff --git a/platform/profile/profile.go b/platform/profile/profile.go index 81e37019..9525ba0a 100644 --- a/platform/profile/profile.go +++ b/platform/profile/profile.go @@ -3,10 +3,10 @@ package profile import ( "github.com/micromdm/micromdm/platform/profile/internal/profileproto" - "github.com/gogo/protobuf/proto" "github.com/groob/plist" "github.com/pkg/errors" "go.mozilla.org/pkcs7" + "google.golang.org/protobuf/proto" ) type Mobileconfig []byte diff --git a/platform/queue/command_queued.go b/platform/queue/command_queued.go index 2d8ad98c..9f727be2 100644 --- a/platform/queue/command_queued.go +++ b/platform/queue/command_queued.go @@ -3,7 +3,8 @@ package queue import ( "errors" - "github.com/gogo/protobuf/proto" + "google.golang.org/protobuf/proto" + "github.com/micromdm/micromdm/platform/queue/internal/commandqueuedproto" ) diff --git a/platform/queue/device_command.go b/platform/queue/device_command.go index 7cbefb10..6094bc0c 100644 --- a/platform/queue/device_command.go +++ b/platform/queue/device_command.go @@ -3,8 +3,8 @@ package queue import ( "time" - "github.com/gogo/protobuf/proto" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/micromdm/micromdm/platform/queue/internal/devicecommandproto" ) diff --git a/platform/queue/internal/commandqueuedproto/command_queued.pb.go b/platform/queue/internal/commandqueuedproto/command_queued.pb.go index 99e7c9a7..6be28657 100644 --- a/platform/queue/internal/commandqueuedproto/command_queued.pb.go +++ b/platform/queue/internal/commandqueuedproto/command_queued.pb.go @@ -1,71 +1,157 @@ -// Code generated by protoc-gen-go. +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: command_queued.proto -// DO NOT EDIT! -/* -Package commandqueued is a generated protocol buffer package. - -It is generated from these files: - command_queued.proto - -It has these top-level messages: - CommandQueued -*/ package commandqueued -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type CommandQueued struct { - DeviceUdid string `protobuf:"bytes,1,opt,name=device_udid,json=deviceUdid" json:"device_udid,omitempty"` - CommandUuid string `protobuf:"bytes,2,opt,name=command_uuid,json=commandUuid" json:"command_uuid,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DeviceUdid string `protobuf:"bytes,1,opt,name=device_udid,json=deviceUdid,proto3" json:"device_udid,omitempty"` + CommandUuid string `protobuf:"bytes,2,opt,name=command_uuid,json=commandUuid,proto3" json:"command_uuid,omitempty"` } -func (m *CommandQueued) Reset() { *m = CommandQueued{} } -func (m *CommandQueued) String() string { return proto.CompactTextString(m) } -func (*CommandQueued) ProtoMessage() {} -func (*CommandQueued) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (x *CommandQueued) Reset() { + *x = CommandQueued{} + if protoimpl.UnsafeEnabled { + mi := &file_command_queued_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *CommandQueued) GetDeviceUdid() string { - if m != nil { - return m.DeviceUdid +func (x *CommandQueued) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CommandQueued) ProtoMessage() {} + +func (x *CommandQueued) ProtoReflect() protoreflect.Message { + mi := &file_command_queued_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CommandQueued.ProtoReflect.Descriptor instead. +func (*CommandQueued) Descriptor() ([]byte, []int) { + return file_command_queued_proto_rawDescGZIP(), []int{0} +} + +func (x *CommandQueued) GetDeviceUdid() string { + if x != nil { + return x.DeviceUdid } return "" } -func (m *CommandQueued) GetCommandUuid() string { - if m != nil { - return m.CommandUuid +func (x *CommandQueued) GetCommandUuid() string { + if x != nil { + return x.CommandUuid } return "" } -func init() { - proto.RegisterType((*CommandQueued)(nil), "commandqueued.CommandQueued") +var File_command_queued_proto protoreflect.FileDescriptor + +var file_command_queued_proto_rawDesc = []byte{ + 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x71, + 0x75, 0x65, 0x75, 0x65, 0x64, 0x22, 0x53, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x5f, 0x75, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x55, 0x64, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x61, + 0x6e, 0x64, 0x5f, 0x75, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x55, 0x75, 0x69, 0x64, 0x42, 0x44, 0x5a, 0x42, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, + 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, + 0x6f, 0x72, 0x6d, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x71, 0x75, 0x65, 0x75, 0x65, 0x64, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("command_queued.proto", fileDescriptor0) } +var ( + file_command_queued_proto_rawDescOnce sync.Once + file_command_queued_proto_rawDescData = file_command_queued_proto_rawDesc +) -var fileDescriptor0 = []byte{ - // 117 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0xce, 0xcf, 0xcd, - 0x4d, 0xcc, 0x4b, 0x89, 0x2f, 0x2c, 0x4d, 0x2d, 0x4d, 0x4d, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0xe2, 0x85, 0x8a, 0x42, 0x04, 0x95, 0x82, 0xb9, 0x78, 0x9d, 0x21, 0x02, 0x81, 0x60, 0x01, - 0x21, 0x79, 0x2e, 0xee, 0x94, 0xd4, 0xb2, 0xcc, 0xe4, 0xd4, 0xf8, 0xd2, 0x94, 0xcc, 0x14, 0x09, - 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x2e, 0x88, 0x50, 0x68, 0x4a, 0x66, 0x8a, 0x90, 0x22, 0x17, - 0x0f, 0xcc, 0xe0, 0xd2, 0xd2, 0xcc, 0x14, 0x09, 0x26, 0xb0, 0x0a, 0x6e, 0xa8, 0x58, 0x68, 0x69, - 0x66, 0x4a, 0x12, 0x1b, 0xd8, 0x2a, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x6e, 0x34, 0x2e, - 0x49, 0x82, 0x00, 0x00, 0x00, +func file_command_queued_proto_rawDescGZIP() []byte { + file_command_queued_proto_rawDescOnce.Do(func() { + file_command_queued_proto_rawDescData = protoimpl.X.CompressGZIP(file_command_queued_proto_rawDescData) + }) + return file_command_queued_proto_rawDescData +} + +var file_command_queued_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_command_queued_proto_goTypes = []interface{}{ + (*CommandQueued)(nil), // 0: commandqueued.CommandQueued +} +var file_command_queued_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_command_queued_proto_init() } +func file_command_queued_proto_init() { + if File_command_queued_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_command_queued_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommandQueued); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_command_queued_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_command_queued_proto_goTypes, + DependencyIndexes: file_command_queued_proto_depIdxs, + MessageInfos: file_command_queued_proto_msgTypes, + }.Build() + File_command_queued_proto = out.File + file_command_queued_proto_rawDesc = nil + file_command_queued_proto_goTypes = nil + file_command_queued_proto_depIdxs = nil } diff --git a/platform/queue/internal/commandqueuedproto/command_queued.proto b/platform/queue/internal/commandqueuedproto/command_queued.proto index 50df7745..2ecac92f 100644 --- a/platform/queue/internal/commandqueuedproto/command_queued.proto +++ b/platform/queue/internal/commandqueuedproto/command_queued.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package commandqueued; +option go_package = "github.com/micromdm/micromdm/platform/queue/internal/commandqueued"; + message CommandQueued { string device_udid = 1; string command_uuid = 2; diff --git a/platform/queue/internal/devicecommandproto/device_command.go b/platform/queue/internal/devicecommandproto/device_command.go index 1be80b32..342238ea 100644 --- a/platform/queue/internal/devicecommandproto/device_command.go +++ b/platform/queue/internal/devicecommandproto/device_command.go @@ -1,3 +1,3 @@ package devicecommandproto -//go:generate protoc --go_out=. device_command.proto +//go:generate protoc --go_out=. --go_opt=paths=source_relative device_command.proto diff --git a/platform/queue/internal/devicecommandproto/device_command.pb.go b/platform/queue/internal/devicecommandproto/device_command.pb.go index f42ab509..400f7234 100644 --- a/platform/queue/internal/devicecommandproto/device_command.pb.go +++ b/platform/queue/internal/devicecommandproto/device_command.pb.go @@ -1,181 +1,330 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: device_command.proto -/* -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" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Command struct { - Uuid string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" 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"` + CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + LastSentAt int64 `protobuf:"varint,4,opt,name=last_sent_at,json=lastSentAt,proto3" json:"last_sent_at,omitempty"` + Acknowledged int64 `protobuf:"varint,5,opt,name=acknowledged,proto3" json:"acknowledged,omitempty"` + TimesSent int64 `protobuf:"varint,6,opt,name=times_sent,json=timesSent,proto3" json:"times_sent,omitempty"` + LastStatus string `protobuf:"bytes,7,opt,name=last_status,json=lastStatus,proto3" 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 (x *Command) Reset() { + *x = Command{} + if protoimpl.UnsafeEnabled { + mi := &file_device_command_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *Command) GetUuid() string { - if m != nil { - return m.Uuid +func (x *Command) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Command) ProtoMessage() {} + +func (x *Command) ProtoReflect() protoreflect.Message { + mi := &file_device_command_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Command.ProtoReflect.Descriptor instead. +func (*Command) Descriptor() ([]byte, []int) { + return file_device_command_proto_rawDescGZIP(), []int{0} +} + +func (x *Command) GetUuid() string { + if x != nil { + return x.Uuid } return "" } -func (m *Command) GetPayload() []byte { - if m != nil { - return m.Payload +func (x *Command) GetPayload() []byte { + if x != nil { + return x.Payload } return nil } -func (m *Command) GetCreatedAt() int64 { - if m != nil { - return m.CreatedAt +func (x *Command) GetCreatedAt() int64 { + if x != nil { + return x.CreatedAt } return 0 } -func (m *Command) GetLastSentAt() int64 { - if m != nil { - return m.LastSentAt +func (x *Command) GetLastSentAt() int64 { + if x != nil { + return x.LastSentAt } return 0 } -func (m *Command) GetAcknowledged() int64 { - if m != nil { - return m.Acknowledged +func (x *Command) GetAcknowledged() int64 { + if x != nil { + return x.Acknowledged } return 0 } -func (m *Command) GetTimesSent() int64 { - if m != nil { - return m.TimesSent +func (x *Command) GetTimesSent() int64 { + if x != nil { + return x.TimesSent } return 0 } -func (m *Command) GetLastStatus() string { - if m != nil { - return m.LastStatus +func (x *Command) GetLastStatus() string { + if x != nil { + return x.LastStatus } return "" } -func (m *Command) GetFailureMessage() []byte { - if m != nil { - return m.FailureMessage +func (x *Command) GetFailureMessage() []byte { + if x != nil { + return x.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"` - NotNow []*Command `protobuf:"bytes,5,rep,name=not_now,json=notNow" json:"not_now,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + DeviceUdid string `protobuf:"bytes,1,opt,name=device_udid,json=deviceUdid,proto3" json:"device_udid,omitempty"` + Commands []*Command `protobuf:"bytes,2,rep,name=commands,proto3" json:"commands,omitempty"` + Completed []*Command `protobuf:"bytes,3,rep,name=completed,proto3" json:"completed,omitempty"` + Failed []*Command `protobuf:"bytes,4,rep,name=failed,proto3" json:"failed,omitempty"` + NotNow []*Command `protobuf:"bytes,5,rep,name=not_now,json=notNow,proto3" json:"not_now,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 (x *DeviceCommand) Reset() { + *x = DeviceCommand{} + if protoimpl.UnsafeEnabled { + mi := &file_device_command_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *DeviceCommand) GetDeviceUdid() string { - if m != nil { - return m.DeviceUdid +func (x *DeviceCommand) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeviceCommand) ProtoMessage() {} + +func (x *DeviceCommand) ProtoReflect() protoreflect.Message { + mi := &file_device_command_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeviceCommand.ProtoReflect.Descriptor instead. +func (*DeviceCommand) Descriptor() ([]byte, []int) { + return file_device_command_proto_rawDescGZIP(), []int{1} +} + +func (x *DeviceCommand) GetDeviceUdid() string { + if x != nil { + return x.DeviceUdid } return "" } -func (m *DeviceCommand) GetCommands() []*Command { - if m != nil { - return m.Commands +func (x *DeviceCommand) GetCommands() []*Command { + if x != nil { + return x.Commands } return nil } -func (m *DeviceCommand) GetCompleted() []*Command { - if m != nil { - return m.Completed +func (x *DeviceCommand) GetCompleted() []*Command { + if x != nil { + return x.Completed } return nil } -func (m *DeviceCommand) GetFailed() []*Command { - if m != nil { - return m.Failed +func (x *DeviceCommand) GetFailed() []*Command { + if x != nil { + return x.Failed } return nil } -func (m *DeviceCommand) GetNotNow() []*Command { - if m != nil { - return m.NotNow +func (x *DeviceCommand) GetNotNow() []*Command { + if x != nil { + return x.NotNow } return nil } -func init() { - proto.RegisterType((*Command)(nil), "devicecommandproto.Command") - proto.RegisterType((*DeviceCommand)(nil), "devicecommandproto.DeviceCommand") +var File_device_command_proto protoreflect.FileDescriptor + +var file_device_command_proto_rawDesc = []byte{ + 0x0a, 0x14, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, + 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x02, 0x0a, 0x07, 0x43, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, + 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x64, 0x41, 0x74, 0x12, 0x20, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x6e, 0x74, + 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x53, + 0x65, 0x6e, 0x74, 0x41, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x63, 0x6b, 0x6e, 0x6f, 0x77, 0x6c, + 0x65, 0x64, 0x67, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x61, 0x63, 0x6b, + 0x6e, 0x6f, 0x77, 0x6c, 0x65, 0x64, 0x67, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x5f, 0x73, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x53, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, + 0x61, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x66, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0e, 0x66, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x22, 0x8f, 0x02, 0x0a, 0x0d, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x75, + 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, + 0x65, 0x55, 0x64, 0x69, 0x64, 0x12, 0x37, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, + 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d, + 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x73, 0x12, 0x39, + 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, + 0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x09, + 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x33, 0x0a, 0x06, 0x66, 0x61, 0x69, + 0x6c, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x64, 0x65, 0x76, 0x69, + 0x63, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x06, 0x66, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x34, + 0x0a, 0x07, 0x6e, 0x6f, 0x74, 0x5f, 0x6e, 0x6f, 0x77, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1b, 0x2e, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x52, 0x06, 0x6e, 0x6f, + 0x74, 0x4e, 0x6f, 0x77, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, + 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x71, 0x75, + 0x65, 0x75, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x64, 0x65, 0x76, + 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("device_command.proto", fileDescriptor0) } +var ( + file_device_command_proto_rawDescOnce sync.Once + file_device_command_proto_rawDescData = file_device_command_proto_rawDesc +) -var fileDescriptor0 = []byte{ - // 324 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x41, 0x4b, 0xeb, 0x40, - 0x10, 0xc7, 0x49, 0xd2, 0x36, 0xed, 0xb4, 0xef, 0x3d, 0x18, 0xde, 0x61, 0xe1, 0xf1, 0x68, 0xe8, - 0xc5, 0x9c, 0x7a, 0xb0, 0x82, 0x78, 0x2c, 0x7a, 0xd5, 0x43, 0xc4, 0x73, 0x58, 0xb3, 0x63, 0x09, - 0x26, 0xbb, 0xa5, 0x3b, 0xb1, 0xf8, 0x01, 0x3c, 0xfb, 0x95, 0x25, 0xbb, 0xdb, 0x8a, 0x78, 0xa8, - 0xb7, 0xe4, 0xc7, 0x7f, 0xe6, 0x3f, 0xfb, 0x83, 0xbf, 0x8a, 0x5e, 0xea, 0x8a, 0xca, 0xca, 0xb4, - 0xad, 0xd4, 0x6a, 0xb9, 0xdd, 0x19, 0x36, 0x88, 0x9e, 0x06, 0xe8, 0xd8, 0xe2, 0x2d, 0x86, 0xf4, - 0xda, 0x03, 0x44, 0x18, 0x74, 0x5d, 0xad, 0x44, 0x94, 0x45, 0xf9, 0xa4, 0x70, 0xdf, 0x28, 0x20, - 0xdd, 0xca, 0xd7, 0xc6, 0x48, 0x25, 0xe2, 0x2c, 0xca, 0x67, 0xc5, 0xe1, 0x17, 0xff, 0x03, 0x54, - 0x3b, 0x92, 0x4c, 0xaa, 0x94, 0x2c, 0x92, 0x2c, 0xca, 0x93, 0x62, 0x12, 0xc8, 0x9a, 0x31, 0x83, - 0x59, 0x23, 0x2d, 0x97, 0x96, 0x34, 0xf7, 0x81, 0x81, 0x0b, 0x40, 0xcf, 0xee, 0x49, 0xf3, 0x9a, - 0x71, 0x01, 0x33, 0x59, 0x3d, 0x6b, 0xb3, 0x6f, 0x48, 0x6d, 0x48, 0x89, 0xa1, 0x4b, 0x7c, 0x61, - 0x7d, 0x09, 0xd7, 0x2d, 0x59, 0xb7, 0x46, 0x8c, 0x7c, 0x89, 0x23, 0xfd, 0x12, 0x9c, 0xc3, 0xd4, - 0x97, 0xb0, 0xe4, 0xce, 0x8a, 0xd4, 0x1d, 0xee, 0x3b, 0x1c, 0xc1, 0x33, 0xf8, 0xf3, 0x24, 0xeb, - 0xa6, 0xdb, 0x51, 0xd9, 0x92, 0xb5, 0x72, 0x43, 0x62, 0xec, 0x9e, 0xf1, 0x3b, 0xe0, 0x5b, 0x4f, - 0x17, 0xef, 0x31, 0xfc, 0xba, 0x71, 0x7a, 0x0e, 0x36, 0xe6, 0x30, 0x0d, 0x16, 0x3b, 0x75, 0x94, - 0x02, 0x1e, 0x3d, 0xa8, 0x5a, 0xe1, 0x25, 0x8c, 0x83, 0x4a, 0x2b, 0xe2, 0x2c, 0xc9, 0xa7, 0xe7, - 0xff, 0x96, 0xdf, 0x0d, 0x2f, 0xc3, 0xbe, 0xe2, 0x18, 0xc6, 0x2b, 0x98, 0x54, 0xa6, 0xdd, 0x36, - 0xc4, 0xa4, 0x44, 0x72, 0x7a, 0xf2, 0x33, 0x8d, 0x2b, 0x18, 0xf5, 0x87, 0x93, 0x12, 0x83, 0xd3, - 0x73, 0x21, 0x8a, 0x17, 0x90, 0x6a, 0xc3, 0xa5, 0x36, 0x7b, 0x31, 0xfc, 0xc1, 0x94, 0x36, 0x7c, - 0x67, 0xf6, 0x8f, 0x23, 0x87, 0x57, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x83, 0x8d, 0x73, 0x78, - 0x4c, 0x02, 0x00, 0x00, +func file_device_command_proto_rawDescGZIP() []byte { + file_device_command_proto_rawDescOnce.Do(func() { + file_device_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_device_command_proto_rawDescData) + }) + return file_device_command_proto_rawDescData +} + +var file_device_command_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_device_command_proto_goTypes = []interface{}{ + (*Command)(nil), // 0: devicecommandproto.Command + (*DeviceCommand)(nil), // 1: devicecommandproto.DeviceCommand +} +var file_device_command_proto_depIdxs = []int32{ + 0, // 0: devicecommandproto.DeviceCommand.commands:type_name -> devicecommandproto.Command + 0, // 1: devicecommandproto.DeviceCommand.completed:type_name -> devicecommandproto.Command + 0, // 2: devicecommandproto.DeviceCommand.failed:type_name -> devicecommandproto.Command + 0, // 3: devicecommandproto.DeviceCommand.not_now:type_name -> devicecommandproto.Command + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_device_command_proto_init() } +func file_device_command_proto_init() { + if File_device_command_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_device_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Command); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_device_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeviceCommand); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_device_command_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_device_command_proto_goTypes, + DependencyIndexes: file_device_command_proto_depIdxs, + MessageInfos: file_device_command_proto_msgTypes, + }.Build() + File_device_command_proto = out.File + file_device_command_proto_rawDesc = nil + file_device_command_proto_goTypes = nil + file_device_command_proto_depIdxs = nil } diff --git a/platform/queue/internal/devicecommandproto/device_command.proto b/platform/queue/internal/devicecommandproto/device_command.proto index dd7c2e28..0397d52f 100644 --- a/platform/queue/internal/devicecommandproto/device_command.proto +++ b/platform/queue/internal/devicecommandproto/device_command.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package devicecommandproto; +option go_package = "github.com/micromdm/micromdm/platform/queue/internal/devicecommandproto"; + message Command { string uuid = 1; bytes payload = 2; diff --git a/platform/remove/internal/removeproto/remove.go b/platform/remove/internal/removeproto/remove.go index cf41eb96..e9504e74 100644 --- a/platform/remove/internal/removeproto/remove.go +++ b/platform/remove/internal/removeproto/remove.go @@ -1,3 +1,3 @@ package removeproto -//go:generate protoc --go_out=. remove.proto +//go:generate protoc --go_out=. --go_opt=paths=source_relative remove.proto diff --git a/platform/remove/internal/removeproto/remove.pb.go b/platform/remove/internal/removeproto/remove.pb.go index 832b2ce5..eee4a804 100644 --- a/platform/remove/internal/removeproto/remove.pb.go +++ b/platform/remove/internal/removeproto/remove.pb.go @@ -1,59 +1,145 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: remove.proto -/* -Package removeproto is a generated protocol buffer package. - -It is generated from these files: - remove.proto - -It has these top-level messages: - Device -*/ package removeproto -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type Device struct { - Udid string `protobuf:"bytes,1,opt,name=udid" json:"udid,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Udid string `protobuf:"bytes,1,opt,name=udid,proto3" json:"udid,omitempty"` } -func (m *Device) Reset() { *m = Device{} } -func (m *Device) String() string { return proto.CompactTextString(m) } -func (*Device) ProtoMessage() {} -func (*Device) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (x *Device) Reset() { + *x = Device{} + if protoimpl.UnsafeEnabled { + mi := &file_remove_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *Device) GetUdid() string { - if m != nil { - return m.Udid +func (x *Device) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Device) ProtoMessage() {} + +func (x *Device) ProtoReflect() protoreflect.Message { + mi := &file_remove_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Device.ProtoReflect.Descriptor instead. +func (*Device) Descriptor() ([]byte, []int) { + return file_remove_proto_rawDescGZIP(), []int{0} +} + +func (x *Device) GetUdid() string { + if x != nil { + return x.Udid } return "" } -func init() { - proto.RegisterType((*Device)(nil), "removeproto.Device") +var File_remove_proto protoreflect.FileDescriptor + +var file_remove_proto_rawDesc = []byte{ + 0x0a, 0x0c, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, + 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1c, 0x0a, 0x06, 0x44, + 0x65, 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x64, 0x69, 0x64, 0x42, 0x43, 0x5a, 0x41, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, + 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, + 0x61, 0x6c, 0x2f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -func init() { proto.RegisterFile("remove.proto", fileDescriptor0) } +var ( + file_remove_proto_rawDescOnce sync.Once + file_remove_proto_rawDescData = file_remove_proto_rawDesc +) -var fileDescriptor0 = []byte{ - // 75 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x29, 0x4a, 0xcd, 0xcd, - 0x2f, 0x4b, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x86, 0xf0, 0xc0, 0x1c, 0x25, 0x19, - 0x2e, 0x36, 0x97, 0xd4, 0xb2, 0xcc, 0xe4, 0x54, 0x21, 0x21, 0x2e, 0x96, 0xd2, 0x94, 0xcc, 0x14, - 0x09, 0x46, 0x05, 0x46, 0x0d, 0xce, 0x20, 0x30, 0x3b, 0x89, 0x0d, 0xac, 0xc8, 0x18, 0x10, 0x00, - 0x00, 0xff, 0xff, 0xf6, 0xb9, 0x87, 0xa4, 0x41, 0x00, 0x00, 0x00, +func file_remove_proto_rawDescGZIP() []byte { + file_remove_proto_rawDescOnce.Do(func() { + file_remove_proto_rawDescData = protoimpl.X.CompressGZIP(file_remove_proto_rawDescData) + }) + return file_remove_proto_rawDescData +} + +var file_remove_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_remove_proto_goTypes = []interface{}{ + (*Device)(nil), // 0: removeproto.Device +} +var file_remove_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_remove_proto_init() } +func file_remove_proto_init() { + if File_remove_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_remove_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Device); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_remove_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_remove_proto_goTypes, + DependencyIndexes: file_remove_proto_depIdxs, + MessageInfos: file_remove_proto_msgTypes, + }.Build() + File_remove_proto = out.File + file_remove_proto_rawDesc = nil + file_remove_proto_goTypes = nil + file_remove_proto_depIdxs = nil } diff --git a/platform/remove/internal/removeproto/remove.proto b/platform/remove/internal/removeproto/remove.proto index d12a1f0c..da4c0631 100644 --- a/platform/remove/internal/removeproto/remove.proto +++ b/platform/remove/internal/removeproto/remove.proto @@ -2,6 +2,8 @@ syntax = "proto3"; package removeproto; +option go_package = "github.com/micromdm/micromdm/platform/remove/internal/removeproto"; + message Device { string udid = 1; } diff --git a/platform/remove/remove.go b/platform/remove/remove.go index 9775584a..702e12e6 100644 --- a/platform/remove/remove.go +++ b/platform/remove/remove.go @@ -3,8 +3,8 @@ package remove import ( "context" - "github.com/gogo/protobuf/proto" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/micromdm/micromdm/mdm" "github.com/micromdm/micromdm/platform/remove/internal/removeproto" diff --git a/platform/user/internal/userproto/user.go b/platform/user/internal/userproto/user.go index 13604c02..a45f1784 100644 --- a/platform/user/internal/userproto/user.go +++ b/platform/user/internal/userproto/user.go @@ -1,3 +1,3 @@ package userproto -//go:generate protoc --go_out=. user.proto +//go:generate protoc --go_out=. --go_opt=paths=source_relative user.proto diff --git a/platform/user/internal/userproto/user.pb.go b/platform/user/internal/userproto/user.pb.go index 54c8fbba..27a3eece 100644 --- a/platform/user/internal/userproto/user.pb.go +++ b/platform/user/internal/userproto/user.pb.go @@ -1,123 +1,214 @@ // Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.18.1 // source: user.proto -/* -Package userproto is a generated protocol buffer package. - -It is generated from these files: - user.proto - -It has these top-level messages: - User -*/ package userproto -import proto "github.com/golang/protobuf/proto" -import fmt "fmt" -import math "math" +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) -// 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 +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) type User struct { - Uuid string `protobuf:"bytes,1,opt,name=uuid" json:"uuid,omitempty"` - Udid string `protobuf:"bytes,2,opt,name=udid" json:"udid,omitempty"` - UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId" json:"user_id,omitempty"` - UserShortname string `protobuf:"bytes,4,opt,name=user_shortname,json=userShortname" json:"user_shortname,omitempty"` - UserLongname string `protobuf:"bytes,5,opt,name=user_longname,json=userLongname" json:"user_longname,omitempty"` - AuthToken string `protobuf:"bytes,6,opt,name=auth_token,json=authToken" json:"auth_token,omitempty"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + Udid string `protobuf:"bytes,2,opt,name=udid,proto3" json:"udid,omitempty"` + UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + UserShortname string `protobuf:"bytes,4,opt,name=user_shortname,json=userShortname,proto3" json:"user_shortname,omitempty"` + UserLongname string `protobuf:"bytes,5,opt,name=user_longname,json=userLongname,proto3" json:"user_longname,omitempty"` + AuthToken string `protobuf:"bytes,6,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"` PasswordHash []byte `protobuf:"bytes,7,opt,name=password_hash,json=passwordHash,proto3" json:"password_hash,omitempty"` - Hidden bool `protobuf:"varint,8,opt,name=hidden" json:"hidden,omitempty"` + Hidden bool `protobuf:"varint,8,opt,name=hidden,proto3" json:"hidden,omitempty"` } -func (m *User) Reset() { *m = User{} } -func (m *User) String() string { return proto.CompactTextString(m) } -func (*User) ProtoMessage() {} -func (*User) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } +func (x *User) Reset() { + *x = User{} + if protoimpl.UnsafeEnabled { + mi := &file_user_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} -func (m *User) GetUuid() string { - if m != nil { - return m.Uuid +func (x *User) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*User) ProtoMessage() {} + +func (x *User) ProtoReflect() protoreflect.Message { + mi := &file_user_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use User.ProtoReflect.Descriptor instead. +func (*User) Descriptor() ([]byte, []int) { + return file_user_proto_rawDescGZIP(), []int{0} +} + +func (x *User) GetUuid() string { + if x != nil { + return x.Uuid } return "" } -func (m *User) GetUdid() string { - if m != nil { - return m.Udid +func (x *User) GetUdid() string { + if x != nil { + return x.Udid } return "" } -func (m *User) GetUserId() string { - if m != nil { - return m.UserId +func (x *User) GetUserId() string { + if x != nil { + return x.UserId } return "" } -func (m *User) GetUserShortname() string { - if m != nil { - return m.UserShortname +func (x *User) GetUserShortname() string { + if x != nil { + return x.UserShortname } return "" } -func (m *User) GetUserLongname() string { - if m != nil { - return m.UserLongname +func (x *User) GetUserLongname() string { + if x != nil { + return x.UserLongname } return "" } -func (m *User) GetAuthToken() string { - if m != nil { - return m.AuthToken +func (x *User) GetAuthToken() string { + if x != nil { + return x.AuthToken } return "" } -func (m *User) GetPasswordHash() []byte { - if m != nil { - return m.PasswordHash +func (x *User) GetPasswordHash() []byte { + if x != nil { + return x.PasswordHash } return nil } -func (m *User) GetHidden() bool { - if m != nil { - return m.Hidden +func (x *User) GetHidden() bool { + if x != nil { + return x.Hidden } return false } -func init() { - proto.RegisterType((*User)(nil), "userproto.User") +var File_user_proto protoreflect.FileDescriptor + +var file_user_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x75, 0x73, + 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xef, 0x01, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, + 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x64, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x75, 0x64, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x68, 0x6f, 0x72, 0x74, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x53, + 0x68, 0x6f, 0x72, 0x74, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, + 0x5f, 0x6c, 0x6f, 0x6e, 0x67, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x6e, 0x67, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x09, 0x61, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x23, 0x0a, 0x0d, + 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x48, 0x61, 0x73, + 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x06, 0x68, 0x69, 0x64, 0x64, 0x65, 0x6e, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, + 0x2f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x6d, 0x64, 0x6d, 0x2f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, + 0x72, 0x6d, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, + 0x2f, 0x75, 0x73, 0x65, 0x72, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } -func init() { proto.RegisterFile("user.proto", fileDescriptor0) } +var ( + file_user_proto_rawDescOnce sync.Once + file_user_proto_rawDescData = file_user_proto_rawDesc +) -var fileDescriptor0 = []byte{ - // 206 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x34, 0xcf, 0xbf, 0x4a, 0x04, 0x31, - 0x10, 0x06, 0x70, 0xa2, 0x6b, 0xee, 0x76, 0x58, 0x2d, 0xa6, 0xd0, 0x34, 0xc2, 0xa2, 0x08, 0x5b, - 0xd9, 0xf8, 0x12, 0x0a, 0x56, 0xab, 0xd6, 0x21, 0x32, 0xc1, 0x04, 0x35, 0x39, 0xf2, 0x07, 0x1f, - 0xdb, 0x57, 0x38, 0x66, 0xd8, 0xeb, 0xbe, 0xf9, 0xcd, 0x97, 0xc0, 0x00, 0xf4, 0xea, 0xcb, 0xe3, - 0xa1, 0xe4, 0x96, 0x71, 0xe4, 0x2c, 0xf1, 0xee, 0x5f, 0xc1, 0xf0, 0x51, 0x7d, 0x41, 0x84, 0xa1, - 0xf7, 0x48, 0x46, 0xcd, 0x6a, 0x19, 0x57, 0xc9, 0x62, 0x14, 0xc9, 0x9c, 0x6d, 0x46, 0x91, 0xf0, - 0x06, 0x76, 0xfc, 0xda, 0x46, 0x32, 0xe7, 0xc2, 0x9a, 0xc7, 0x17, 0xc2, 0x07, 0xb8, 0x92, 0x45, - 0x0d, 0xb9, 0xb4, 0xe4, 0x7e, 0xbd, 0x19, 0x64, 0x7f, 0xc9, 0xfa, 0x76, 0x42, 0xbc, 0x07, 0x01, - 0xfb, 0x93, 0xd3, 0x97, 0xb4, 0x2e, 0xa4, 0x35, 0x31, 0xbe, 0x6e, 0x86, 0xb7, 0x00, 0xae, 0xb7, - 0x60, 0x5b, 0xfe, 0xf6, 0xc9, 0x68, 0x69, 0x8c, 0x2c, 0xef, 0x0c, 0xfc, 0xc7, 0xc1, 0xd5, 0xfa, - 0x97, 0x0b, 0xd9, 0xe0, 0x6a, 0x30, 0xbb, 0x59, 0x2d, 0xd3, 0x3a, 0x9d, 0xf0, 0xd9, 0xd5, 0x80, - 0xd7, 0xa0, 0x43, 0x24, 0xf2, 0xc9, 0xec, 0x67, 0xb5, 0xec, 0xd7, 0x6d, 0xfa, 0xd4, 0x72, 0xf8, - 0xd3, 0x31, 0x00, 0x00, 0xff, 0xff, 0x35, 0xa8, 0xcb, 0x32, 0x11, 0x01, 0x00, 0x00, +func file_user_proto_rawDescGZIP() []byte { + file_user_proto_rawDescOnce.Do(func() { + file_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_proto_rawDescData) + }) + return file_user_proto_rawDescData +} + +var file_user_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_user_proto_goTypes = []interface{}{ + (*User)(nil), // 0: userproto.User +} +var file_user_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_user_proto_init() } +func file_user_proto_init() { + if File_user_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*User); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_user_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_user_proto_goTypes, + DependencyIndexes: file_user_proto_depIdxs, + MessageInfos: file_user_proto_msgTypes, + }.Build() + File_user_proto = out.File + file_user_proto_rawDesc = nil + file_user_proto_goTypes = nil + file_user_proto_depIdxs = nil } diff --git a/platform/user/internal/userproto/user.proto b/platform/user/internal/userproto/user.proto index 53807ffc..c822d967 100644 --- a/platform/user/internal/userproto/user.proto +++ b/platform/user/internal/userproto/user.proto @@ -2,6 +2,7 @@ syntax = "proto3"; package userproto; +option go_package = "github.com/micromdm/micromdm/platform/user/internal/userproto"; message User { string uuid = 1; diff --git a/platform/user/user.go b/platform/user/user.go index 8063847e..acac3a5a 100644 --- a/platform/user/user.go +++ b/platform/user/user.go @@ -2,9 +2,9 @@ package user import ( - "github.com/gogo/protobuf/proto" "github.com/google/uuid" "github.com/pkg/errors" + "google.golang.org/protobuf/proto" "github.com/micromdm/micromdm/platform/user/internal/userproto" )