| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Protocol buffer definitions for Syncable FileSystem. | 5 // Protocol buffer definitions for Syncable FileSystem. |
| 6 | 6 |
| 7 syntax = "proto2"; | 7 syntax = "proto2"; |
| 8 | 8 |
| 9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
| 10 | 10 |
| 11 package pairing_api; | 11 package pairing_api; |
| 12 | 12 |
| 13 message HostStatusParameters { | 13 message HostStatusParameters { |
| 14 enum Connectivity { | 14 enum Connectivity { |
| 15 CONNECTIVITY_UNTESTED = 0; | 15 CONNECTIVITY_UNTESTED = 0; |
| 16 CONNECTIVITY_NONE = 1; | 16 CONNECTIVITY_NONE = 1; |
| 17 CONNECTIVITY_LIMITED = 2; | 17 CONNECTIVITY_LIMITED = 2; |
| 18 CONNECTIVITY_CONNECTING = 3; | 18 CONNECTIVITY_CONNECTING = 3; |
| 19 CONNECTIVITY_CONNECTED = 4; | 19 CONNECTIVITY_CONNECTED = 4; |
| 20 } | 20 } |
| 21 | 21 |
| 22 enum UpdateStatus { | 22 enum UpdateStatus { |
| 23 UPDATE_STATUS_UNKNOWN = 0; | 23 UPDATE_STATUS_UNKNOWN = 0; |
| 24 UPDATE_STATUS_UPDATING = 1; | 24 UPDATE_STATUS_UPDATING = 1; |
| 25 UPDATE_STATUS_REBOOTING = 2; | 25 UPDATE_STATUS_REBOOTING = 2; |
| 26 UPDATE_STATUS_UPDATED = 3; | 26 UPDATE_STATUS_UPDATED = 3; |
| 27 } | 27 } |
| 28 | 28 |
| 29 enum EnrollmentStatus { |
| 30 ENROLLMENT_STATUS_UNKNOWN = 0; |
| 31 ENROLLMENT_STATUS_ENROLLING = 1; |
| 32 ENROLLMENT_STATUS_FAILURE = 2; |
| 33 ENROLLMENT_STATUS_SUCCESS = 3; |
| 34 } |
| 35 |
| 29 optional string domain = 1; | 36 optional string domain = 1; |
| 30 optional Connectivity connectivity = 2; | 37 optional Connectivity connectivity = 2; |
| 31 optional UpdateStatus update_status = 3; | 38 optional UpdateStatus update_status = 3; |
| 32 repeated string paired_controllers = 4; | 39 optional EnrollmentStatus enrollment_status = 4; |
| 40 repeated string paired_controllers = 5; |
| 33 } | 41 } |
| 34 | 42 |
| 35 message HostStatus { | 43 message HostStatus { |
| 36 optional int32 api_version = 1; | 44 optional int32 api_version = 1; |
| 37 optional HostStatusParameters parameters = 2; | 45 optional HostStatusParameters parameters = 2; |
| 38 } | 46 } |
| 39 | 47 |
| 40 message ConfigureHostParameters { | 48 message ConfigureHostParameters { |
| 41 optional bool accepted_eula = 1; | 49 optional bool accepted_eula = 1; |
| 42 optional string lang = 2; | 50 optional string lang = 2; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 71 | 79 |
| 72 message ErrorParameters { | 80 message ErrorParameters { |
| 73 optional int32 code = 1; | 81 optional int32 code = 1; |
| 74 optional string description = 2; | 82 optional string description = 2; |
| 75 } | 83 } |
| 76 | 84 |
| 77 message Error { | 85 message Error { |
| 78 optional int32 api_version = 1; | 86 optional int32 api_version = 1; |
| 79 optional ErrorParameters parameters = 2; | 87 optional ErrorParameters parameters = 2; |
| 80 } | 88 } |
| OLD | NEW |