blob: 22843be31a679d363373477a87d5c260f4c72bf3 [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
achuithebd853b32014-10-14 03:48:3429 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]035610c2014-08-06 17:30:0336 optional string domain = 1;
37 optional Connectivity connectivity = 2;
38 optional UpdateStatus update_status = 3;
achuithebd853b32014-10-14 03:48:3439 optional EnrollmentStatus enrollment_status = 4;
40 repeated string paired_controllers = 5;
zork01205e62015-05-01 03:20:1341 optional string permanent_id = 6;
[email protected]035610c2014-08-06 17:30:0342}
43
44message HostStatus {
45 optional int32 api_version = 1;
46 optional HostStatusParameters parameters = 2;
47}
48
49message 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
57message ConfigureHost {
58 optional int32 api_version = 1;
59 optional ConfigureHostParameters parameters = 2;
60}
61
62message PairDevicesParameters {
63 optional string controller_access_token = 1;
64 optional string admin_access_token = 2;
xdaie2081c02015-12-11 02:53:2565 optional string enrolling_domain = 3;
[email protected]035610c2014-08-06 17:30:0366}
67
68message PairDevices {
69 optional int32 api_version = 1;
70 optional PairDevicesParameters parameters = 2;
71}
72
73message CompleteSetupParameters {
74 optional bool add_another = 1;
75}
76
77message CompleteSetup {
78 optional int32 api_version = 1;
79 optional CompleteSetupParameters parameters = 2;
80}
81
82message ErrorParameters {
83 optional int32 code = 1;
84 optional string description = 2;
85}
86
87message Error {
88 optional int32 api_version = 1;
89 optional ErrorParameters parameters = 2;
90}
zorkb7c25e12015-04-22 01:13:5291
92message AddNetworkParameters {
93 optional string onc_spec = 1;
94}
95
96message AddNetwork {
97 optional int32 api_version = 1;
98 optional AddNetworkParameters parameters = 2;
99}