OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
| 7 option optimize_for = LITE_RUNTIME; |
| 8 |
7 package enterprise_management; | 9 package enterprise_management; |
8 | 10 |
9 import "device_management_backend.proto"; | 11 import "device_management_backend.proto"; |
10 | 12 |
11 // Wrapper around CloudPolicyResponse/DevicePolicyResponse for caching on disk. | 13 // Wrapper around CloudPolicyResponse/DevicePolicyResponse for caching on disk. |
12 message CachedCloudPolicyResponse { | 14 message CachedCloudPolicyResponse { |
13 // The DevicePolicyResponse wrapped by this message. | 15 // The DevicePolicyResponse wrapped by this message. |
14 optional DevicePolicyResponse device_policy = 1; | 16 optional DevicePolicyResponse device_policy = 1; |
15 // Timestamp noting when the |unmanaged| flag was set. The meaning is | 17 // Timestamp noting when the |unmanaged| flag was set. The meaning is |
16 // milliseconds since 1970. When caching (deprecated) DevicePolicyResponses, | 18 // milliseconds since 1970. When caching (deprecated) DevicePolicyResponses, |
17 // this timestamp also notes when the response was cached. | 19 // this timestamp also notes when the response was cached. |
18 optional uint64 timestamp = 2; | 20 optional uint64 timestamp = 2; |
19 // Flag that is set to true if this device is not managed. | 21 // Flag that is set to true if this device is not managed. |
20 optional bool unmanaged = 3; | 22 optional bool unmanaged = 3; |
21 // The PolicyFetchResponse wrapped by this message. | 23 // The PolicyFetchResponse wrapped by this message. |
22 optional PolicyFetchResponse cloud_policy = 4; | 24 optional PolicyFetchResponse cloud_policy = 4; |
23 } | 25 } |
24 | 26 |
25 // Encapsulates a device ID and the associated device token. | 27 // Encapsulates a device ID and the associated device token. |
26 message DeviceCredentials { | 28 message DeviceCredentials { |
27 optional string device_id = 1; | 29 optional string device_id = 1; |
28 optional string device_token = 2; | 30 optional string device_token = 2; |
29 } | 31 } |
OLD | NEW |