blob: da416ccc32e420e1b7ea45091090de8da19924fa [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
syntax = "proto2";
option optimize_for = LITE_RUNTIME;
package chromeos.account_manager;
enum AccountType {
ACCOUNT_TYPE_UNSPECIFIED = 0; // Proto best practice for enums.
ACCOUNT_TYPE_GAIA = 1;
ACCOUNT_TYPE_ACTIVE_DIRECTORY = 2;
}
message Account {
// The tuple <id, account_type> uniquely identifies an Account.
// For |ACCOUNT_TYPE_GAIA|, |id| is the obfuscated GAIA id.
// For |ACCOUNT_TYPE_ACTIVE_DIRECTORY|, |id| is the Object GUID.
optional string id = 1;
optional AccountType account_type = 2;
optional string token = 3;
}
message Accounts {
repeated Account accounts = 1;
}