blob: 4b79df9da615bbe60fc808034a6c39ef1f6b944d [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001// 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
6syntax = "proto3";
7
8package monorail;
9
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +020010option go_package = "infra/monorailv2/api/api_proto;monorail";
11
Copybara854996b2021-09-07 19:36:02 +000012import "api/api_proto/common.proto";
13import "api/api_proto/features_objects.proto";
14
15
16service 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) {}
Copybara854996b2021-09-07 19:36:02 +000032}
33
34
35// Next available tag: 3
36message ListHotlistsByUserRequest {
37 UserRef user = 2;
38}
39
40
41// Next available tag: 2
42message ListHotlistsByUserResponse {
43 repeated Hotlist hotlists = 1;
44}
45
46
47// Next available tag: 3
48message ListHotlistsByIssueRequest {
49 IssueRef issue = 2;
50}
51
52
53// Next available tag: 2
54message ListHotlistsByIssueResponse {
55 repeated Hotlist hotlists = 1;
56}
57
58
59// Next available tag: 2
60message ListRecentlyVisitedHotlistsRequest {
61}
62
63
64// Next available tag: 2
65message ListRecentlyVisitedHotlistsResponse {
66 repeated Hotlist hotlists = 1;
67}
68
69
70// Next available tag: 2
71message ListStarredHotlistsRequest {
72}
73
74
75// Next available tag: 2
76message ListStarredHotlistsResponse {
77 repeated Hotlist hotlists = 1;
78}
79
80
81// Next available tag: 3
82message GetHotlistStarCountRequest {
83 HotlistRef hotlist_ref = 2;
84}
85
86
87// Next available tag: 2
88message GetHotlistStarCountResponse {
89 uint32 star_count = 1;
90}
91
92
93// Next available tag: 4
94message StarHotlistRequest {
95 HotlistRef hotlist_ref = 2;
96 bool starred = 3;
97}
98
99
100// Next available tag: 2
101message StarHotlistResponse {
102 uint32 star_count = 1;
103}
104
105// Next available tag: 2
106message GetHotlistRequest {
107 HotlistRef hotlist_ref = 1;
108}
109
110// Next available tag: 2
111message GetHotlistResponse {
112 Hotlist hotlist = 1;
113}
114
115
116// Next available tag: 7
117message 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
127message ListHotlistItemsResponse {
128 repeated HotlistItem items = 1;
129}
130
131
132// Next available tag: 7
133message 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
144message CreateHotlistResponse {
145}
146
147
148// Next available tag: 3
149message CheckHotlistNameRequest {
150 string name = 2;
151}
152
153
154// Next available tag: 1
155message CheckHotlistNameResponse {
156 string error = 1;
157}
158
159
160// Next available tag: 4
161message RemoveIssuesFromHotlistsRequest {
162 repeated HotlistRef hotlist_refs = 2;
163 repeated IssueRef issue_refs = 3;
164}
165
166
167// Next available tag: 1
168message RemoveIssuesFromHotlistsResponse {
169}
170
171
172// Next available tag: 5
173message 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
181message AddIssuesToHotlistsResponse {
182}
183
184// Next available tag: 5
185message 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
193message RerankHotlistIssuesResponse{
194}
195
196// Next available tag: 5
197message UpdateHotlistIssueNoteRequest {
198 HotlistRef hotlist_ref = 2;
199 IssueRef issue_ref = 3;
200 string note = 4;
201}
202
203
204// Next available tag: 1
205message UpdateHotlistIssueNoteResponse {
206}
207
208
209// Next available tag: 2
210message DeleteHotlistRequest {
211 HotlistRef hotlist_ref = 1;
212}
213
214
215// Next available tag: 1
216message DeleteHotlistResponse {
217}