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;
44 optional int32 api_version = 1;
45 optional HostStatusParameters parameters = 2;
48 message ConfigureHostParameters {
49 optional bool accepted_eula = 1;
50 optional string lang = 2;
51 optional string timezone = 3;
52 optional bool send_reports = 4;
53 optional string keyboard_layout = 5;
56 message ConfigureHost {
57 optional int32 api_version = 1;
58 optional ConfigureHostParameters parameters = 2;
61 message PairDevicesParameters {
62 optional string controller_access_token = 1;
63 optional string admin_access_token = 2;
67 optional int32 api_version = 1;
68 optional PairDevicesParameters parameters = 2;
71 message CompleteSetupParameters {
72 optional bool add_another = 1;
75 message CompleteSetup {
76 optional int32 api_version = 1;
77 optional CompleteSetupParameters parameters = 2;
80 message ErrorParameters {
81 optional int32 code = 1;
82 optional string description = 2;
86 optional int32 api_version = 1;
87 optional ErrorParameters parameters = 2;