blob: 7d7f2fc9f77b0aa238bf008b59f2b39c5b020f43 [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
10import "api/api_proto/common.proto";
11import "api/api_proto/features_objects.proto";
12
13
14service Features {
15 rpc ListHotlistsByUser (ListHotlistsByUserRequest) returns (ListHotlistsByUserResponse) {}
16 rpc ListHotlistsByIssue (ListHotlistsByIssueRequest) returns (ListHotlistsByIssueResponse) {}
17 rpc ListRecentlyVisitedHotlists (ListRecentlyVisitedHotlistsRequest) returns (ListRecentlyVisitedHotlistsResponse) {}
18 rpc ListStarredHotlists (ListStarredHotlistsRequest) returns (ListStarredHotlistsResponse) {}
19 rpc GetHotlistStarCount (GetHotlistStarCountRequest) returns (GetHotlistStarCountResponse) {}
20 rpc StarHotlist (StarHotlistRequest) returns (StarHotlistResponse) {}
21 rpc GetHotlist (GetHotlistRequest) returns (GetHotlistResponse) {}
22 rpc ListHotlistItems (ListHotlistItemsRequest) returns (ListHotlistItemsResponse) {}
23 rpc CreateHotlist (CreateHotlistRequest) returns (CreateHotlistResponse) {}
24 rpc CheckHotlistName (CheckHotlistNameRequest) returns (CheckHotlistNameResponse) {}
25 rpc RemoveIssuesFromHotlists (RemoveIssuesFromHotlistsRequest) returns (RemoveIssuesFromHotlistsResponse) {}
26 rpc AddIssuesToHotlists (AddIssuesToHotlistsRequest) returns (AddIssuesToHotlistsResponse) {}
27 rpc RerankHotlistIssues (RerankHotlistIssuesRequest) returns (RerankHotlistIssuesResponse) {}
28 rpc UpdateHotlistIssueNote (UpdateHotlistIssueNoteRequest) returns (UpdateHotlistIssueNoteResponse) {}
29 rpc DeleteHotlist (DeleteHotlistRequest) returns (DeleteHotlistResponse) {}
30 rpc PredictComponent (PredictComponentRequest) returns (PredictComponentResponse) {}
31}
32
33
34// Next available tag: 3
35message ListHotlistsByUserRequest {
36 UserRef user = 2;
37}
38
39
40// Next available tag: 2
41message ListHotlistsByUserResponse {
42 repeated Hotlist hotlists = 1;
43}
44
45
46// Next available tag: 3
47message ListHotlistsByIssueRequest {
48 IssueRef issue = 2;
49}
50
51
52// Next available tag: 2
53message ListHotlistsByIssueResponse {
54 repeated Hotlist hotlists = 1;
55}
56
57
58// Next available tag: 2
59message ListRecentlyVisitedHotlistsRequest {
60}
61
62
63// Next available tag: 2
64message ListRecentlyVisitedHotlistsResponse {
65 repeated Hotlist hotlists = 1;
66}
67
68
69// Next available tag: 2
70message ListStarredHotlistsRequest {
71}
72
73
74// Next available tag: 2
75message ListStarredHotlistsResponse {
76 repeated Hotlist hotlists = 1;
77}
78
79
80// Next available tag: 3
81message GetHotlistStarCountRequest {
82 HotlistRef hotlist_ref = 2;
83}
84
85
86// Next available tag: 2
87message GetHotlistStarCountResponse {
88 uint32 star_count = 1;
89}
90
91
92// Next available tag: 4
93message StarHotlistRequest {
94 HotlistRef hotlist_ref = 2;
95 bool starred = 3;
96}
97
98
99// Next available tag: 2
100message StarHotlistResponse {
101 uint32 star_count = 1;
102}
103
104// Next available tag: 2
105message GetHotlistRequest {
106 HotlistRef hotlist_ref = 1;
107}
108
109// Next available tag: 2
110message GetHotlistResponse {
111 Hotlist hotlist = 1;
112}
113
114
115// Next available tag: 7
116message 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
126message ListHotlistItemsResponse {
127 repeated HotlistItem items = 1;
128}
129
130
131// Next available tag: 7
132message 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
143message CreateHotlistResponse {
144}
145
146
147// Next available tag: 3
148message CheckHotlistNameRequest {
149 string name = 2;
150}
151
152
153// Next available tag: 1
154message CheckHotlistNameResponse {
155 string error = 1;
156}
157
158
159// Next available tag: 4
160message RemoveIssuesFromHotlistsRequest {
161 repeated HotlistRef hotlist_refs = 2;
162 repeated IssueRef issue_refs = 3;
163}
164
165
166// Next available tag: 1
167message RemoveIssuesFromHotlistsResponse {
168}
169
170
171// Next available tag: 5
172message 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
180message AddIssuesToHotlistsResponse {
181}
182
183// Next available tag: 5
184message 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
192message RerankHotlistIssuesResponse{
193}
194
195// Next available tag: 5
196message UpdateHotlistIssueNoteRequest {
197 HotlistRef hotlist_ref = 2;
198 IssueRef issue_ref = 3;
199 string note = 4;
200}
201
202
203// Next available tag: 1
204message UpdateHotlistIssueNoteResponse {
205}
206
207
208// Next available tag: 2
209message DeleteHotlistRequest {
210 HotlistRef hotlist_ref = 1;
211}
212
213
214// Next available tag: 1
215message DeleteHotlistResponse {
216}
217
218
219// Next available tag: 4
220message PredictComponentRequest {
221 string text = 2;
222 string project_name = 3;
223}
224
225
226// Next available tag: 2
227message PredictComponentResponse {
228 ComponentRef component_ref = 1;
229}