blob: e9df1a195244c2d5bb5d048e2dafd427ff95e5a7 [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001// 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.
Copybara854996b2021-09-07 19:36:02 +00004
5syntax = "proto3";
6
7package monorail;
8
Adrià Vilanova Martínezde942802022-07-15 14:06:55 +02009option go_package = "infra/monorailv2/api/api_proto;monorail";
10
Copybara854996b2021-09-07 19:36:02 +000011import "api/api_proto/common.proto";
12import "api/api_proto/features_objects.proto";
13
14
15service 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) {}
Copybara854996b2021-09-07 19:36:02 +000031}
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}