Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file or at |
| 4 | // https://developers.google.com/open-source/licenses/bsd |
| 5 | |
| 6 | // This file defines protobufs for issues and related business |
| 7 | // objects, e.g., field values, comments, and attachments. |
| 8 | |
| 9 | syntax = "proto3"; |
| 10 | |
| 11 | import "api/api_proto/common.proto"; |
| 12 | |
| 13 | package monorail; |
| 14 | |
Adrià Vilanova MartÃnez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame] | 15 | option go_package = "infra/monorailv2/api/api_proto;monorail"; |
| 16 | |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 17 | // TODO(jojwang): monorail:1701, fill User with all info necessary for |
| 18 | // creating a user profile page. |
| 19 | // Next available tag: 7 |
| 20 | message User { |
| 21 | string display_name = 1; |
| 22 | int64 user_id = 2; |
| 23 | bool is_site_admin = 3; |
| 24 | string availability = 4; |
| 25 | UserRef linked_parent_ref = 5; |
| 26 | repeated UserRef linked_child_refs = 6; |
| 27 | } |
| 28 | |
| 29 | |
| 30 | // Next available tag: 3 |
| 31 | message UserPrefValue { |
| 32 | string name = 1; |
| 33 | string value = 2; |
| 34 | } |
| 35 | |
| 36 | |
| 37 | // Next available tag: 6 |
| 38 | message UserProjects { |
| 39 | UserRef user_ref = 1; |
| 40 | repeated string owner_of = 2; |
| 41 | repeated string member_of = 3; |
| 42 | repeated string contributor_to = 4; |
| 43 | repeated string starred_projects = 5; |
| 44 | } |