-
Notifications
You must be signed in to change notification settings - Fork 3
/
matchmaker.proto
42 lines (33 loc) · 1.21 KB
/
matchmaker.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
syntax = "proto3";
package nn.npln.matchmaking.v1;
import "google/api/annotations.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/protobuf/empty.proto";
import "proto/common/resources.proto";
import "proto/matchmaking/v1/resources.proto";
option go_package = "npln.nintendo.net/npln-practice/proto/matchmaking/v1;matchmaking";
option cc_enable_arenas = true;
message CreateMatchmakingTicketRequest {
string parent = 1;
MatchmakingTicket matchmaking_ticket = 2;
repeated string user_delegation_tokens = 3;
}
message TrackMatchmakingTicketRequest {
string name = 1;
repeated string include_id_token_users = 2;
repeated string user_delegation_tokens = 3;
}
message CancelMatchmakingTicketRequest {
string name = 1;
}
message CreateAcceptanceRequest {
string parent = 1;
Acceptance acceptance = 2;
}
service Matchmaker {
rpc CreateMatchmakingTicket(CreateMatchmakingTicketRequest) returns (MatchmakingTicket);
rpc TrackMatchmakingTicket(TrackMatchmakingTicketRequest) returns (stream MatchmakingTicket);
rpc CancelMatchmakingTicket(CancelMatchmakingTicketRequest) returns (google.protobuf.Empty);
rpc CreateAcceptance(CreateAcceptanceRequest) returns (Acceptance);
}