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