@@ -19,10 +19,10 @@ option csharp_namespace = "OpenMatch";
1919
2020import "api/messages.proto" ;
2121import "google/api/annotations.proto" ;
22- import "protoc-gen-swagger /options/annotations.proto" ;
22+ import "protoc-gen-openapiv2 /options/annotations.proto" ;
2323import "google/protobuf/empty.proto" ;
2424
25- option (grpc.gateway.protoc_gen_swagger .options.openapiv2_swagger ) = {
25+ option (grpc.gateway.protoc_gen_openapiv2 .options.openapiv2_swagger ) = {
2626 info : {
2727 title : "Frontend"
2828 version : "1.0"
@@ -53,7 +53,7 @@ option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
5353 }
5454 // TODO Add annotations for security_defintiions.
5555 // See
56- // https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/proto/examplepb/a_bit_of_everything.proto
56+ // https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/internal/ proto/examplepb/a_bit_of_everything.proto
5757};
5858
5959message CreateTicketRequest {
@@ -81,6 +81,47 @@ message WatchAssignmentsResponse {
8181 Assignment assignment = 1 ;
8282}
8383
84+ // BETA FEATURE WARNING: This Request message is not finalized and still subject
85+ // to possible change or removal.
86+ message AcknowledgeBackfillRequest {
87+ // An existing ID of Backfill to acknowledge.
88+ string backfill_id = 1 ;
89+
90+ // An updated Assignment of the requested Backfill.
91+ Assignment assignment = 2 ;
92+ }
93+
94+ // BETA FEATURE WARNING: This Request message is not finalized and still subject
95+ // to possible change or removal.
96+ message CreateBackfillRequest {
97+ // An empty Backfill object.
98+ Backfill backfill = 1 ;
99+ }
100+
101+ // BETA FEATURE WARNING: This Request message is not finalized and still subject
102+ // to possible change or removal.
103+ message DeleteBackfillRequest {
104+ // An existing ID of Backfill to delete.
105+ string backfill_id = 1 ;
106+ }
107+
108+ // BETA FEATURE WARNING: This Request message is not finalized and still subject
109+ // to possible change or removal.
110+ message GetBackfillRequest {
111+ // An existing ID of Backfill to retrieve.
112+ string backfill_id = 1 ;
113+ }
114+
115+ // UpdateBackfillRequest - update searchFields, extensions and set assignment.
116+ //
117+ // BETA FEATURE WARNING: This Request message is not finalized and still subject
118+ // to possible change or removal.
119+ message UpdateBackfillRequest {
120+ // A Backfill object with ID set and fields to update.
121+ Backfill backfill = 1 ;
122+ }
123+
124+
84125// The FrontendService implements APIs to manage and query status of a Tickets.
85126service FrontendService {
86127 // CreateTicket assigns an unique TicketId to the input Ticket and record it in state storage.
@@ -117,4 +158,55 @@ service FrontendService {
117158 get : "/v1/frontendservice/tickets/{ticket_id}/assignments"
118159 };
119160 }
161+
162+ // AcknowledgeBackfill is used to notify OpenMatch about GameServer connection info
163+ // This triggers an assignment process.
164+ // BETA FEATURE WARNING: This call and the associated Request and Response
165+ // messages are not finalized and still subject to possible change or removal.
166+ rpc AcknowledgeBackfill (AcknowledgeBackfillRequest ) returns (Backfill ) {
167+ option (google.api.http ) = {
168+ post : "/v1/frontendservice/backfills/{backfill_id}/acknowledge"
169+ body : "*"
170+ };
171+ }
172+
173+ // CreateBackfill creates a new Backfill object.
174+ // BETA FEATURE WARNING: This call and the associated Request and Response
175+ // messages are not finalized and still subject to possible change or removal.
176+ rpc CreateBackfill (CreateBackfillRequest ) returns (Backfill ) {
177+ option (google.api.http ) = {
178+ post : "/v1/frontendservice/backfills"
179+ body : "*"
180+ };
181+ }
182+
183+ // DeleteBackfill receives a backfill ID and deletes its resource.
184+ // Any tickets waiting for this backfill will be returned to the active pool, no longer pending.
185+ // BETA FEATURE WARNING: This call and the associated Request and Response
186+ // messages are not finalized and still subject to possible change or removal.
187+ rpc DeleteBackfill (DeleteBackfillRequest ) returns (google.protobuf.Empty ) {
188+ option (google.api.http ) = {
189+ delete : "/v1/frontendservice/backfills/{backfill_id}"
190+ };
191+ }
192+
193+ // GetBackfill returns a backfill object by its ID.
194+ // BETA FEATURE WARNING: This call and the associated Request and Response
195+ // messages are not finalized and still subject to possible change or removal.
196+ rpc GetBackfill (GetBackfillRequest ) returns (Backfill ) {
197+ option (google.api.http ) = {
198+ get : "/v1/frontendservice/backfills/{backfill_id}"
199+ };
200+ }
201+
202+ // UpdateBackfill updates search_fields and extensions for the backfill with the provided id.
203+ // Any tickets waiting for this backfill will be returned to the active pool, no longer pending.
204+ // BETA FEATURE WARNING: This call and the associated Request and Response
205+ // messages are not finalized and still subject to possible change or removal.
206+ rpc UpdateBackfill (UpdateBackfillRequest ) returns (Backfill ) {
207+ option (google.api.http ) = {
208+ patch : "/v1/frontendservice/backfills"
209+ body : "*"
210+ };
211+ }
120212}
0 commit comments