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