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 | |
9 package enterprise_management; | 7 package enterprise_management; |
10 | 8 |
11 import "device_management_backend.proto"; | 9 import "device_management_backend.proto"; |
12 | 10 |
13 // Wrapper around CloudPolicyResponse/DevicePolicyResponse for caching on disk. | 11 // Wrapper around CloudPolicyResponse/DevicePolicyResponse for caching on disk. |
14 message CachedCloudPolicyResponse { | 12 message CachedCloudPolicyResponse { |
15 // The DevicePolicyResponse wrapped by this message. | 13 // The DevicePolicyResponse wrapped by this message. |
16 optional DevicePolicyResponse device_policy = 1; | 14 optional DevicePolicyResponse device_policy = 1; |
17 // Timestamp noting when the |unmanaged| flag was set. The meaning is | 15 // Timestamp noting when the |unmanaged| flag was set. The meaning is |
18 // milliseconds since 1970. When caching (deprecated) DevicePolicyResponses, | 16 // milliseconds since 1970. When caching (deprecated) DevicePolicyResponses, |
19 // this timestamp also notes when the response was cached. | 17 // this timestamp also notes when the response was cached. |
20 optional uint64 timestamp = 2; | 18 optional uint64 timestamp = 2; |
21 // Flag that is set to true if this device is not managed. | 19 // Flag that is set to true if this device is not managed. |
22 optional bool unmanaged = 3; | 20 optional bool unmanaged = 3; |
23 // The PolicyFetchResponse wrapped by this message. | 21 // The PolicyFetchResponse wrapped by this message. |
24 optional PolicyFetchResponse cloud_policy = 4; | 22 optional PolicyFetchResponse cloud_policy = 4; |
25 } | 23 } |
26 | 24 |
27 // Encapsulates a device ID and the associated device token. | 25 // Encapsulates a device ID and the associated device token. |
28 message DeviceCredentials { | 26 message DeviceCredentials { |
29 optional string device_id = 1; | 27 optional string device_id = 1; |
30 optional string device_token = 2; | 28 optional string device_token = 2; |
31 } | 29 } |
OLD | NEW |