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.
5 // Protocol buffer definitions for Syncable FileSystem.
9 option optimize_for = LITE_RUNTIME;
13 message HostStatusParameters {
15 CONNECTIVITY_UNTESTED = 0;
16 CONNECTIVITY_NONE = 1;
17 CONNECTIVITY_LIMITED = 2;
18 CONNECTIVITY_CONNECTING = 3;
19 CONNECTIVITY_CONNECTED = 4;
23 UPDATE_STATUS_UNKNOWN = 0;
24 UPDATE_STATUS_UPDATING = 1;
25 UPDATE_STATUS_REBOOTING = 2;
26 UPDATE_STATUS_UPDATED = 3;
29 enum EnrollmentStatus {
30 ENROLLMENT_STATUS_UNKNOWN = 0;
31 ENROLLMENT_STATUS_ENROLLING = 1;
32 ENROLLMENT_STATUS_FAILURE = 2;
33 ENROLLMENT_STATUS_SUCCESS = 3;
36 optional string domain = 1;
37 optional Connectivity connectivity = 2;
38 optional UpdateStatus update_status = 3;
39 optional EnrollmentStatus enrollment_status = 4;
40 repeated string paired_controllers = 5;
41 optional string permanent_id = 6;
45 optional int32 api_version = 1;
46 optional HostStatusParameters parameters = 2;
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;
57 message ConfigureHost {
58 optional int32 api_version = 1;
59 optional ConfigureHostParameters parameters = 2;
62 message PairDevicesParameters {
63 optional string controller_access_token = 1;
64 optional string admin_access_token = 2;
68 optional int32 api_version = 1;
69 optional PairDevicesParameters parameters = 2;
72 message CompleteSetupParameters {
73 optional bool add_another = 1;
76 message CompleteSetup {
77 optional int32 api_version = 1;
78 optional CompleteSetupParameters parameters = 2;
81 message ErrorParameters {
82 optional int32 code = 1;
83 optional string description = 2;
87 optional int32 api_version = 1;
88 optional ErrorParameters parameters = 2;
91 message AddNetworkParameters {
92 optional string onc_spec = 1;
96 optional int32 api_version = 1;
97 optional AddNetworkParameters parameters = 2;