@@ -88,6 +88,10 @@ message ReleaseTicketsRequest{
8888
8989message ReleaseTicketsResponse {}
9090
91+ message ReleaseAllTicketsRequest {}
92+
93+ message ReleaseAllTicketsResponse {}
94+
9195// AssignmentGroup contains an Assignment and the Tickets to which it should be applied.
9296message AssignmentGroup {
9397 // TicketIds is a list of strings representing Open Match generated Ids which apply to an Assignment.
@@ -120,9 +124,11 @@ message AssignTicketsResponse {
120124
121125// The BackendService implements APIs to generate matches and handle ticket assignments.
122126service BackendService {
123- // FetchMatches triggers a MatchFunction with the specified MatchProfile and returns a set of match proposals that
124- // match the description of that MatchProfile.
125- // FetchMatches immediately returns an error if it encounters any execution failures.
127+ // FetchMatches triggers a MatchFunction with the specified MatchProfile and
128+ // returns a set of matches generated by the Match Making Function, and
129+ // accepted by the evaluator.
130+ // Tickets in matches returned by FetchMatches are moved from active to
131+ // pending, and will not be returned by query.
126132 rpc FetchMatches (FetchMatchesRequest ) returns (stream FetchMatchesResponse ) {
127133 option (google.api.http ) = {
128134 post : "/v1/backendservice/matches:fetch"
@@ -138,9 +144,8 @@ service BackendService {
138144 };
139145 }
140146
141- // ReleaseTickets removes the submitted tickets from the list that prevents tickets
142- // that are awaiting assignment from appearing in MMF queries, effectively putting them back into
143- // the matchmaking pool
147+ // ReleaseTickets moves tickets from the pending state, to the active state.
148+ // This enables them to be returned by query, and find different matches.
144149 //
145150 // BETA FEATURE WARNING: This call and the associated Request and Response
146151 // messages are not finalized and still subject to possible change or removal.
@@ -150,4 +155,17 @@ service BackendService {
150155 body : "*"
151156 };
152157 }
158+
159+ // ReleaseAllTickets moves all tickets from the pending state, to the active
160+ // state. This enables them to be returned by query, and find different
161+ // matches.
162+ //
163+ // BETA FEATURE WARNING: This call and the associated Request and Response
164+ // messages are not finalized and still subject to possible change or removal.
165+ rpc ReleaseAllTickets (ReleaseAllTicketsRequest ) returns (ReleaseAllTicketsResponse ) {
166+ option (google.api.http ) = {
167+ post : "/v1/backendservice/tickets:releaseall"
168+ body : "*"
169+ };
170+ }
153171}
0 commit comments