[email protected] | 035610c | 2014-08-06 17:30:03 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | // |
| 5 | // Protocol buffer definitions for Syncable FileSystem. |
| 6 | |
| 7 | syntax = "proto2"; |
| 8 | |
| 9 | option optimize_for = LITE_RUNTIME; |
| 10 | |
| 11 | package pairing_api; |
| 12 | |
| 13 | message HostStatusParameters { |
| 14 | enum Connectivity { |
| 15 | CONNECTIVITY_UNTESTED = 0; |
| 16 | CONNECTIVITY_NONE = 1; |
| 17 | CONNECTIVITY_LIMITED = 2; |
| 18 | CONNECTIVITY_CONNECTING = 3; |
| 19 | CONNECTIVITY_CONNECTED = 4; |
| 20 | } |
| 21 | |
| 22 | enum UpdateStatus { |
| 23 | UPDATE_STATUS_UNKNOWN = 0; |
| 24 | UPDATE_STATUS_UPDATING = 1; |
| 25 | UPDATE_STATUS_REBOOTING = 2; |
| 26 | UPDATE_STATUS_UPDATED = 3; |
| 27 | } |
| 28 | |
achuith | ebd853b3 | 2014-10-14 03:48:34 | [diff] [blame] | 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 | |
[email protected] | 035610c | 2014-08-06 17:30:03 | [diff] [blame] | 36 | optional string domain = 1; |
| 37 | optional Connectivity connectivity = 2; |
| 38 | optional UpdateStatus update_status = 3; |
achuith | ebd853b3 | 2014-10-14 03:48:34 | [diff] [blame] | 39 | optional EnrollmentStatus enrollment_status = 4; |
| 40 | repeated string paired_controllers = 5; |
zork | 01205e6 | 2015-05-01 03:20:13 | [diff] [blame] | 41 | optional string permanent_id = 6; |
[email protected] | 035610c | 2014-08-06 17:30:03 | [diff] [blame] | 42 | } |
| 43 | |
| 44 | message HostStatus { |
| 45 | optional int32 api_version = 1; |
| 46 | optional HostStatusParameters parameters = 2; |
| 47 | } |
| 48 | |
| 49 | message ConfigureHostParameters { |
| 50 | optional bool accepted_eula = 1; |
| 51 | optional string lang = 2; |
| 52 | optional string timezone = 3; |
| 53 | optional bool send_reports = 4; |
| 54 | optional string keyboard_layout = 5; |
| 55 | } |
| 56 | |
| 57 | message ConfigureHost { |
| 58 | optional int32 api_version = 1; |
| 59 | optional ConfigureHostParameters parameters = 2; |
| 60 | } |
| 61 | |
| 62 | message PairDevicesParameters { |
| 63 | optional string controller_access_token = 1; |
| 64 | optional string admin_access_token = 2; |
xdai | e2081c0 | 2015-12-11 02:53:25 | [diff] [blame] | 65 | optional string enrolling_domain = 3; |
[email protected] | 035610c | 2014-08-06 17:30:03 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | message PairDevices { |
| 69 | optional int32 api_version = 1; |
| 70 | optional PairDevicesParameters parameters = 2; |
| 71 | } |
| 72 | |
| 73 | message CompleteSetupParameters { |
| 74 | optional bool add_another = 1; |
| 75 | } |
| 76 | |
| 77 | message CompleteSetup { |
| 78 | optional int32 api_version = 1; |
| 79 | optional CompleteSetupParameters parameters = 2; |
| 80 | } |
| 81 | |
| 82 | message ErrorParameters { |
| 83 | optional int32 code = 1; |
| 84 | optional string description = 2; |
| 85 | } |
| 86 | |
| 87 | message Error { |
| 88 | optional int32 api_version = 1; |
| 89 | optional ErrorParameters parameters = 2; |
| 90 | } |
zork | b7c25e1 | 2015-04-22 01:13:52 | [diff] [blame] | 91 | |
| 92 | message AddNetworkParameters { |
| 93 | optional string onc_spec = 1; |
| 94 | } |
| 95 | |
| 96 | message AddNetwork { |
| 97 | optional int32 api_version = 1; |
| 98 | optional AddNetworkParameters parameters = 2; |
| 99 | } |