blob: 98eab7add38c3d3b70f008b90c547e4623a351d3 [file] [log] [blame]
[email protected]035610c2014-08-06 17:30:031// 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
7syntax = "proto2";
8
9option optimize_for = LITE_RUNTIME;
10
11package pairing_api;
12
13message 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
29 optional string domain = 1;
30 optional Connectivity connectivity = 2;
31 optional UpdateStatus update_status = 3;
32 repeated string paired_controllers = 4;
33}
34
35message HostStatus {
36 optional int32 api_version = 1;
37 optional HostStatusParameters parameters = 2;
38}
39
40message ConfigureHostParameters {
41 optional bool accepted_eula = 1;
42 optional string lang = 2;
43 optional string timezone = 3;
44 optional bool send_reports = 4;
45 optional string keyboard_layout = 5;
46}
47
48message ConfigureHost {
49 optional int32 api_version = 1;
50 optional ConfigureHostParameters parameters = 2;
51}
52
53message PairDevicesParameters {
54 optional string controller_access_token = 1;
55 optional string admin_access_token = 2;
56}
57
58message PairDevices {
59 optional int32 api_version = 1;
60 optional PairDevicesParameters parameters = 2;
61}
62
63message CompleteSetupParameters {
64 optional bool add_another = 1;
65}
66
67message CompleteSetup {
68 optional int32 api_version = 1;
69 optional CompleteSetupParameters parameters = 2;
70}
71
72message ErrorParameters {
73 optional int32 code = 1;
74 optional string description = 2;
75}
76
77message Error {
78 optional int32 api_version = 1;
79 optional ErrorParameters parameters = 2;
80}