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 | syntax = "proto3"; |
| 6 | |
| 7 | package monorail; |
| 8 | |
Adrià Vilanova Martínez | de94280 | 2022-07-15 14:06:55 +0200 | [diff] [blame] | 9 | option go_package = "infra/monorailv2/api/api_proto;monorail"; |
| 10 | |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 11 | import "api/api_proto/common.proto"; |
| 12 | import "api/api_proto/features_objects.proto"; |
| 13 | |
| 14 | |
| 15 | service Features { |
| 16 | rpc ListHotlistsByUser (ListHotlistsByUserRequest) returns (ListHotlistsByUserResponse) {} |
| 17 | rpc ListHotlistsByIssue (ListHotlistsByIssueRequest) returns (ListHotlistsByIssueResponse) {} |
| 18 | rpc ListRecentlyVisitedHotlists (ListRecentlyVisitedHotlistsRequest) returns (ListRecentlyVisitedHotlistsResponse) {} |
| 19 | rpc ListStarredHotlists (ListStarredHotlistsRequest) returns (ListStarredHotlistsResponse) {} |
| 20 | rpc GetHotlistStarCount (GetHotlistStarCountRequest) returns (GetHotlistStarCountResponse) {} |
| 21 | rpc StarHotlist (StarHotlistRequest) returns (StarHotlistResponse) {} |
| 22 | rpc GetHotlist (GetHotlistRequest) returns (GetHotlistResponse) {} |
| 23 | rpc ListHotlistItems (ListHotlistItemsRequest) returns (ListHotlistItemsResponse) {} |
| 24 | rpc CreateHotlist (CreateHotlistRequest) returns (CreateHotlistResponse) {} |
| 25 | rpc CheckHotlistName (CheckHotlistNameRequest) returns (CheckHotlistNameResponse) {} |
| 26 | rpc RemoveIssuesFromHotlists (RemoveIssuesFromHotlistsRequest) returns (RemoveIssuesFromHotlistsResponse) {} |
| 27 | rpc AddIssuesToHotlists (AddIssuesToHotlistsRequest) returns (AddIssuesToHotlistsResponse) {} |
| 28 | rpc RerankHotlistIssues (RerankHotlistIssuesRequest) returns (RerankHotlistIssuesResponse) {} |
| 29 | rpc UpdateHotlistIssueNote (UpdateHotlistIssueNoteRequest) returns (UpdateHotlistIssueNoteResponse) {} |
| 30 | rpc DeleteHotlist (DeleteHotlistRequest) returns (DeleteHotlistResponse) {} |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | |
| 34 | // Next available tag: 3 |
| 35 | message ListHotlistsByUserRequest { |
| 36 | UserRef user = 2; |
| 37 | } |
| 38 | |
| 39 | |
| 40 | // Next available tag: 2 |
| 41 | message ListHotlistsByUserResponse { |
| 42 | repeated Hotlist hotlists = 1; |
| 43 | } |
| 44 | |
| 45 | |
| 46 | // Next available tag: 3 |
| 47 | message ListHotlistsByIssueRequest { |
| 48 | IssueRef issue = 2; |
| 49 | } |
| 50 | |
| 51 | |
| 52 | // Next available tag: 2 |
| 53 | message ListHotlistsByIssueResponse { |
| 54 | repeated Hotlist hotlists = 1; |
| 55 | } |
| 56 | |
| 57 | |
| 58 | // Next available tag: 2 |
| 59 | message ListRecentlyVisitedHotlistsRequest { |
| 60 | } |
| 61 | |
| 62 | |
| 63 | // Next available tag: 2 |
| 64 | message ListRecentlyVisitedHotlistsResponse { |
| 65 | repeated Hotlist hotlists = 1; |
| 66 | } |
| 67 | |
| 68 | |
| 69 | // Next available tag: 2 |
| 70 | message ListStarredHotlistsRequest { |
| 71 | } |
| 72 | |
| 73 | |
| 74 | // Next available tag: 2 |
| 75 | message ListStarredHotlistsResponse { |
| 76 | repeated Hotlist hotlists = 1; |
| 77 | } |
| 78 | |
| 79 | |
| 80 | // Next available tag: 3 |
| 81 | message GetHotlistStarCountRequest { |
| 82 | HotlistRef hotlist_ref = 2; |
| 83 | } |
| 84 | |
| 85 | |
| 86 | // Next available tag: 2 |
| 87 | message GetHotlistStarCountResponse { |
| 88 | uint32 star_count = 1; |
| 89 | } |
| 90 | |
| 91 | |
| 92 | // Next available tag: 4 |
| 93 | message StarHotlistRequest { |
| 94 | HotlistRef hotlist_ref = 2; |
| 95 | bool starred = 3; |
| 96 | } |
| 97 | |
| 98 | |
| 99 | // Next available tag: 2 |
| 100 | message StarHotlistResponse { |
| 101 | uint32 star_count = 1; |
| 102 | } |
| 103 | |
| 104 | // Next available tag: 2 |
| 105 | message GetHotlistRequest { |
| 106 | HotlistRef hotlist_ref = 1; |
| 107 | } |
| 108 | |
| 109 | // Next available tag: 2 |
| 110 | message GetHotlistResponse { |
| 111 | Hotlist hotlist = 1; |
| 112 | } |
| 113 | |
| 114 | |
| 115 | // Next available tag: 7 |
| 116 | message ListHotlistItemsRequest { |
| 117 | HotlistRef hotlist_ref = 2; |
| 118 | Pagination pagination = 3; |
| 119 | uint32 can = 4; |
| 120 | string sort_spec = 5; |
| 121 | string group_by_spec = 6; |
| 122 | } |
| 123 | |
| 124 | |
| 125 | // Next available tag: 2 |
| 126 | message ListHotlistItemsResponse { |
| 127 | repeated HotlistItem items = 1; |
| 128 | } |
| 129 | |
| 130 | |
| 131 | // Next available tag: 7 |
| 132 | message CreateHotlistRequest { |
| 133 | string name = 2; |
| 134 | string summary = 3; |
| 135 | string description = 4; |
| 136 | repeated UserRef editor_refs = 5; |
| 137 | repeated IssueRef issue_refs = 6; |
| 138 | bool is_private = 7; |
| 139 | } |
| 140 | |
| 141 | |
| 142 | // Next available tag: 1 |
| 143 | message CreateHotlistResponse { |
| 144 | } |
| 145 | |
| 146 | |
| 147 | // Next available tag: 3 |
| 148 | message CheckHotlistNameRequest { |
| 149 | string name = 2; |
| 150 | } |
| 151 | |
| 152 | |
| 153 | // Next available tag: 1 |
| 154 | message CheckHotlistNameResponse { |
| 155 | string error = 1; |
| 156 | } |
| 157 | |
| 158 | |
| 159 | // Next available tag: 4 |
| 160 | message RemoveIssuesFromHotlistsRequest { |
| 161 | repeated HotlistRef hotlist_refs = 2; |
| 162 | repeated IssueRef issue_refs = 3; |
| 163 | } |
| 164 | |
| 165 | |
| 166 | // Next available tag: 1 |
| 167 | message RemoveIssuesFromHotlistsResponse { |
| 168 | } |
| 169 | |
| 170 | |
| 171 | // Next available tag: 5 |
| 172 | message AddIssuesToHotlistsRequest { |
| 173 | repeated HotlistRef hotlist_refs = 2; |
| 174 | repeated IssueRef issue_refs = 3; |
| 175 | string note = 4; |
| 176 | } |
| 177 | |
| 178 | |
| 179 | // Next available tag: 1 |
| 180 | message AddIssuesToHotlistsResponse { |
| 181 | } |
| 182 | |
| 183 | // Next available tag: 5 |
| 184 | message RerankHotlistIssuesRequest{ |
| 185 | HotlistRef hotlist_ref = 1; |
| 186 | repeated IssueRef moved_refs = 2; |
| 187 | IssueRef target_ref = 3; |
| 188 | bool split_above = 4; |
| 189 | } |
| 190 | |
| 191 | // Next available tag: 1 |
| 192 | message RerankHotlistIssuesResponse{ |
| 193 | } |
| 194 | |
| 195 | // Next available tag: 5 |
| 196 | message UpdateHotlistIssueNoteRequest { |
| 197 | HotlistRef hotlist_ref = 2; |
| 198 | IssueRef issue_ref = 3; |
| 199 | string note = 4; |
| 200 | } |
| 201 | |
| 202 | |
| 203 | // Next available tag: 1 |
| 204 | message UpdateHotlistIssueNoteResponse { |
| 205 | } |
| 206 | |
| 207 | |
| 208 | // Next available tag: 2 |
| 209 | message DeleteHotlistRequest { |
| 210 | HotlistRef hotlist_ref = 1; |
| 211 | } |
| 212 | |
| 213 | |
| 214 | // Next available tag: 1 |
| 215 | message DeleteHotlistResponse { |
| 216 | } |