| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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; | 7 option optimize_for = LITE_RUNTIME; |
| 8 | 8 |
| 9 package enterprise_management; | 9 package enterprise_management; |
| 10 | 10 |
| 11 // Generic value container. | 11 // Generic value container. |
| 12 message GenericValue { | 12 message GenericValue { |
| 13 enum ValueType { | 13 enum ValueType { |
| 14 VALUE_TYPE_BOOL = 1; | 14 VALUE_TYPE_BOOL = 1; |
| 15 VALUE_TYPE_INT64 = 2; | 15 VALUE_TYPE_INT64 = 2; |
| 16 VALUE_TYPE_STRING = 3; | 16 VALUE_TYPE_STRING = 3; |
| 17 VALUE_TYPE_DOUBLE = 4; | 17 VALUE_TYPE_DOUBLE = 4; |
| 18 VALUE_TYPE_BYTES = 5; | 18 VALUE_TYPE_BYTES = 5; |
| 19 VALUE_TYPE_BOOL_ARRAY = 6; | 19 VALUE_TYPE_BOOL_ARRAY = 6; |
| 20 VALUE_TYPE_INT64_ARRAY_ = 7; | 20 VALUE_TYPE_INT64_ARRAY = 7; |
| 21 VALUE_TYPE_STRING_ARRAY = 8; | 21 VALUE_TYPE_STRING_ARRAY = 8; |
| 22 VALUE_TYPE_DOUBLE_ARRAY = 9; | 22 VALUE_TYPE_DOUBLE_ARRAY = 9; |
| 23 } | 23 } |
| 24 | 24 |
| 25 optional ValueType value_type = 1 [default = VALUE_TYPE_STRING]; | 25 optional ValueType value_type = 1 [default = VALUE_TYPE_STRING]; |
| 26 | 26 |
| 27 // basic value types | 27 // basic value types |
| 28 optional bool bool_value = 2; | 28 optional bool bool_value = 2; |
| 29 optional int64 int64_value = 3; | 29 optional int64 int64_value = 3; |
| 30 optional string string_value = 4; | 30 optional string string_value = 4; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // Returned for register request when device management is not supported | 139 // Returned for register request when device management is not supported |
| 140 // for the domain. | 140 // for the domain. |
| 141 DEVICE_MANAGEMENT_NOT_SUPPORTED = 1; | 141 DEVICE_MANAGEMENT_NOT_SUPPORTED = 1; |
| 142 // Returned when the device is not found. | 142 // Returned when the device is not found. |
| 143 DEVICE_NOT_FOUND = 2; | 143 DEVICE_NOT_FOUND = 2; |
| 144 // Returned when passed in device management token doesn't match the token | 144 // Returned when passed in device management token doesn't match the token |
| 145 // on server side. | 145 // on server side. |
| 146 DEVICE_MANAGEMENT_TOKEN_INVALID = 3; | 146 DEVICE_MANAGEMENT_TOKEN_INVALID = 3; |
| 147 // Returned when device registration is pending approval (if required). | 147 // Returned when device registration is pending approval (if required). |
| 148 ACTIVATION_PENDING = 4; | 148 ACTIVATION_PENDING = 4; |
| 149 // Returned when the policy is not found. |
| 150 POLICY_NOT_FOUND = 5; |
| 149 } | 151 } |
| 150 | 152 |
| 151 // Error code for this request. | 153 // Error code for this request. |
| 152 required ErrorCode error = 1; | 154 required ErrorCode error = 1; |
| 153 | 155 |
| 154 // Error message. | 156 // Error message. |
| 155 optional string error_message = 2; | 157 optional string error_message = 2; |
| 156 | 158 |
| 157 // Register response | 159 // Register response |
| 158 optional DeviceRegisterResponse register_response = 3; | 160 optional DeviceRegisterResponse register_response = 3; |
| 159 | 161 |
| 160 // Unregister response | 162 // Unregister response |
| 161 optional DeviceUnregisterResponse unregister_response = 4; | 163 optional DeviceUnregisterResponse unregister_response = 4; |
| 162 | 164 |
| 163 // Policy response. | 165 // Policy response. |
| 164 optional DevicePolicyResponse policy_response = 5; | 166 optional DevicePolicyResponse policy_response = 5; |
| 165 } | 167 } |
| OLD | NEW |