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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
|
from codenames.v1 import types_pb2 as _types_pb2
from google.protobuf.internal import containers as _containers
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
DESCRIPTOR: _descriptor.FileDescriptor
class LeaderboardSortBy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
LEADERBOARD_SORT_BY_UNSPECIFIED: _ClassVar[LeaderboardSortBy]
LEADERBOARD_SORT_BY_ELO_RATING: _ClassVar[LeaderboardSortBy]
LEADERBOARD_SORT_BY_P99_LATENCY: _ClassVar[LeaderboardSortBy]
class BotRoleFilter(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
__slots__ = ()
BOT_ROLE_FILTER_UNSPECIFIED: _ClassVar[BotRoleFilter]
BOT_ROLE_FILTER_SPYMASTER: _ClassVar[BotRoleFilter]
BOT_ROLE_FILTER_GUESSER: _ClassVar[BotRoleFilter]
LEADERBOARD_SORT_BY_UNSPECIFIED: LeaderboardSortBy
LEADERBOARD_SORT_BY_ELO_RATING: LeaderboardSortBy
LEADERBOARD_SORT_BY_P99_LATENCY: LeaderboardSortBy
BOT_ROLE_FILTER_UNSPECIFIED: BotRoleFilter
BOT_ROLE_FILTER_SPYMASTER: BotRoleFilter
BOT_ROLE_FILTER_GUESSER: BotRoleFilter
class CreateGameRequest(_message.Message):
__slots__ = ("words", "red_spymaster", "red_guesser", "blue_spymaster", "blue_guesser")
WORDS_FIELD_NUMBER: _ClassVar[int]
RED_SPYMASTER_FIELD_NUMBER: _ClassVar[int]
RED_GUESSER_FIELD_NUMBER: _ClassVar[int]
BLUE_SPYMASTER_FIELD_NUMBER: _ClassVar[int]
BLUE_GUESSER_FIELD_NUMBER: _ClassVar[int]
words: _containers.RepeatedScalarFieldContainer[str]
red_spymaster: str
red_guesser: str
blue_spymaster: str
blue_guesser: str
def __init__(self, words: _Optional[_Iterable[str]] = ..., red_spymaster: _Optional[str] = ..., red_guesser: _Optional[str] = ..., blue_spymaster: _Optional[str] = ..., blue_guesser: _Optional[str] = ...) -> None: ...
class CreateGameResponse(_message.Message):
__slots__ = ("game_id",)
GAME_ID_FIELD_NUMBER: _ClassVar[int]
game_id: str
def __init__(self, game_id: _Optional[str] = ...) -> None: ...
class GetGameRequest(_message.Message):
__slots__ = ("game_id",)
GAME_ID_FIELD_NUMBER: _ClassVar[int]
game_id: str
def __init__(self, game_id: _Optional[str] = ...) -> None: ...
class GetGameResponse(_message.Message):
__slots__ = ("game",)
GAME_FIELD_NUMBER: _ClassVar[int]
game: _types_pb2.Game
def __init__(self, game: _Optional[_Union[_types_pb2.Game, _Mapping]] = ...) -> None: ...
class ListGamesRequest(_message.Message):
__slots__ = ("limit", "offset", "include_board")
LIMIT_FIELD_NUMBER: _ClassVar[int]
OFFSET_FIELD_NUMBER: _ClassVar[int]
INCLUDE_BOARD_FIELD_NUMBER: _ClassVar[int]
limit: int
offset: int
include_board: bool
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., include_board: _Optional[bool] = ...) -> None: ...
class ListGamesResponse(_message.Message):
__slots__ = ("games", "total_count")
GAMES_FIELD_NUMBER: _ClassVar[int]
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
games: _containers.RepeatedCompositeFieldContainer[_types_pb2.Game]
total_count: int
def __init__(self, games: _Optional[_Iterable[_Union[_types_pb2.Game, _Mapping]]] = ..., total_count: _Optional[int] = ...) -> None: ...
class ListActiveGamesRequest(_message.Message):
__slots__ = ("include_board",)
INCLUDE_BOARD_FIELD_NUMBER: _ClassVar[int]
include_board: bool
def __init__(self, include_board: _Optional[bool] = ...) -> None: ...
class ListActiveGamesResponse(_message.Message):
__slots__ = ("games",)
GAMES_FIELD_NUMBER: _ClassVar[int]
games: _containers.RepeatedCompositeFieldContainer[_types_pb2.Game]
def __init__(self, games: _Optional[_Iterable[_Union[_types_pb2.Game, _Mapping]]] = ...) -> None: ...
class GetGameMovesRequest(_message.Message):
__slots__ = ("game_id",)
GAME_ID_FIELD_NUMBER: _ClassVar[int]
game_id: str
def __init__(self, game_id: _Optional[str] = ...) -> None: ...
class GetGameMovesResponse(_message.Message):
__slots__ = ("moves",)
MOVES_FIELD_NUMBER: _ClassVar[int]
moves: _containers.RepeatedCompositeFieldContainer[_types_pb2.GameMove]
def __init__(self, moves: _Optional[_Iterable[_Union[_types_pb2.GameMove, _Mapping]]] = ...) -> None: ...
class RegisterBotRequest(_message.Message):
__slots__ = ("identity_key", "port")
IDENTITY_KEY_FIELD_NUMBER: _ClassVar[int]
PORT_FIELD_NUMBER: _ClassVar[int]
identity_key: str
port: int
def __init__(self, identity_key: _Optional[str] = ..., port: _Optional[int] = ...) -> None: ...
class RegisterBotResponse(_message.Message):
__slots__ = ("bot",)
BOT_FIELD_NUMBER: _ClassVar[int]
bot: _types_pb2.Bot
def __init__(self, bot: _Optional[_Union[_types_pb2.Bot, _Mapping]] = ...) -> None: ...
class ListBotsRequest(_message.Message):
__slots__ = ()
def __init__(self) -> None: ...
class ListBotsResponse(_message.Message):
__slots__ = ("bots",)
BOTS_FIELD_NUMBER: _ClassVar[int]
bots: _containers.RepeatedCompositeFieldContainer[_types_pb2.Bot]
def __init__(self, bots: _Optional[_Iterable[_Union[_types_pb2.Bot, _Mapping]]] = ...) -> None: ...
class UnregisterBotRequest(_message.Message):
__slots__ = ("bot_id",)
BOT_ID_FIELD_NUMBER: _ClassVar[int]
bot_id: str
def __init__(self, bot_id: _Optional[str] = ...) -> None: ...
class UnregisterBotResponse(_message.Message):
__slots__ = ()
def __init__(self) -> None: ...
class GetBotGamesRequest(_message.Message):
__slots__ = ("bot_id",)
BOT_ID_FIELD_NUMBER: _ClassVar[int]
bot_id: str
def __init__(self, bot_id: _Optional[str] = ...) -> None: ...
class GetBotGamesResponse(_message.Message):
__slots__ = ("game_ids",)
GAME_IDS_FIELD_NUMBER: _ClassVar[int]
game_ids: _containers.RepeatedScalarFieldContainer[str]
def __init__(self, game_ids: _Optional[_Iterable[str]] = ...) -> None: ...
class GetBotRequest(_message.Message):
__slots__ = ("bot_id", "skip_active_games")
BOT_ID_FIELD_NUMBER: _ClassVar[int]
SKIP_ACTIVE_GAMES_FIELD_NUMBER: _ClassVar[int]
bot_id: str
skip_active_games: bool
def __init__(self, bot_id: _Optional[str] = ..., skip_active_games: _Optional[bool] = ...) -> None: ...
class GetBotResponse(_message.Message):
__slots__ = ("bot",)
BOT_FIELD_NUMBER: _ClassVar[int]
bot: _types_pb2.Bot
def __init__(self, bot: _Optional[_Union[_types_pb2.Bot, _Mapping]] = ...) -> None: ...
class GetLeaderboardRequest(_message.Message):
__slots__ = ("limit", "sort_by")
LIMIT_FIELD_NUMBER: _ClassVar[int]
SORT_BY_FIELD_NUMBER: _ClassVar[int]
limit: int
sort_by: LeaderboardSortBy
def __init__(self, limit: _Optional[int] = ..., sort_by: _Optional[_Union[LeaderboardSortBy, str]] = ...) -> None: ...
class GetLeaderboardResponse(_message.Message):
__slots__ = ("bots",)
BOTS_FIELD_NUMBER: _ClassVar[int]
bots: _containers.RepeatedCompositeFieldContainer[BotStats]
def __init__(self, bots: _Optional[_Iterable[_Union[BotStats, _Mapping]]] = ...) -> None: ...
class BotStats(_message.Message):
__slots__ = ("bot_id", "identity_key", "elo_rating", "games_played", "wins", "losses", "p99_latency_ms", "team_id")
BOT_ID_FIELD_NUMBER: _ClassVar[int]
IDENTITY_KEY_FIELD_NUMBER: _ClassVar[int]
ELO_RATING_FIELD_NUMBER: _ClassVar[int]
GAMES_PLAYED_FIELD_NUMBER: _ClassVar[int]
WINS_FIELD_NUMBER: _ClassVar[int]
LOSSES_FIELD_NUMBER: _ClassVar[int]
P99_LATENCY_MS_FIELD_NUMBER: _ClassVar[int]
TEAM_ID_FIELD_NUMBER: _ClassVar[int]
bot_id: str
identity_key: str
elo_rating: int
games_played: int
wins: int
losses: int
p99_latency_ms: int
team_id: str
def __init__(self, bot_id: _Optional[str] = ..., identity_key: _Optional[str] = ..., elo_rating: _Optional[int] = ..., games_played: _Optional[int] = ..., wins: _Optional[int] = ..., losses: _Optional[int] = ..., p99_latency_ms: _Optional[int] = ..., team_id: _Optional[str] = ...) -> None: ...
class TeamInfo(_message.Message):
__slots__ = ("id", "name", "vm_ip", "bot_count", "total_games_played", "top_bot_rank", "top_bot_elo", "top_bot_identity", "top_bot_id")
ID_FIELD_NUMBER: _ClassVar[int]
NAME_FIELD_NUMBER: _ClassVar[int]
VM_IP_FIELD_NUMBER: _ClassVar[int]
BOT_COUNT_FIELD_NUMBER: _ClassVar[int]
TOTAL_GAMES_PLAYED_FIELD_NUMBER: _ClassVar[int]
TOP_BOT_RANK_FIELD_NUMBER: _ClassVar[int]
TOP_BOT_ELO_FIELD_NUMBER: _ClassVar[int]
TOP_BOT_IDENTITY_FIELD_NUMBER: _ClassVar[int]
TOP_BOT_ID_FIELD_NUMBER: _ClassVar[int]
id: str
name: str
vm_ip: str
bot_count: int
total_games_played: int
top_bot_rank: int
top_bot_elo: int
top_bot_identity: str
top_bot_id: str
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., vm_ip: _Optional[str] = ..., bot_count: _Optional[int] = ..., total_games_played: _Optional[int] = ..., top_bot_rank: _Optional[int] = ..., top_bot_elo: _Optional[int] = ..., top_bot_identity: _Optional[str] = ..., top_bot_id: _Optional[str] = ...) -> None: ...
class GameServiceListTeamsRequest(_message.Message):
__slots__ = ()
def __init__(self) -> None: ...
class GameServiceListTeamsResponse(_message.Message):
__slots__ = ("teams",)
TEAMS_FIELD_NUMBER: _ClassVar[int]
teams: _containers.RepeatedCompositeFieldContainer[TeamInfo]
def __init__(self, teams: _Optional[_Iterable[_Union[TeamInfo, _Mapping]]] = ...) -> None: ...
class GameServiceGetTeamRequest(_message.Message):
__slots__ = ("team_id",)
TEAM_ID_FIELD_NUMBER: _ClassVar[int]
team_id: str
def __init__(self, team_id: _Optional[str] = ...) -> None: ...
class GameServiceGetTeamResponse(_message.Message):
__slots__ = ("team",)
TEAM_FIELD_NUMBER: _ClassVar[int]
team: TeamInfo
def __init__(self, team: _Optional[_Union[TeamInfo, _Mapping]] = ...) -> None: ...
class ListBotsByTeamRequest(_message.Message):
__slots__ = ("team_id",)
TEAM_ID_FIELD_NUMBER: _ClassVar[int]
team_id: str
def __init__(self, team_id: _Optional[str] = ...) -> None: ...
class ListBotsByTeamResponse(_message.Message):
__slots__ = ("bots",)
BOTS_FIELD_NUMBER: _ClassVar[int]
bots: _containers.RepeatedCompositeFieldContainer[_types_pb2.Bot]
def __init__(self, bots: _Optional[_Iterable[_Union[_types_pb2.Bot, _Mapping]]] = ...) -> None: ...
class ListGamesByBotRequest(_message.Message):
__slots__ = ("bot_id", "limit", "offset", "include_board", "role_filter")
BOT_ID_FIELD_NUMBER: _ClassVar[int]
LIMIT_FIELD_NUMBER: _ClassVar[int]
OFFSET_FIELD_NUMBER: _ClassVar[int]
INCLUDE_BOARD_FIELD_NUMBER: _ClassVar[int]
ROLE_FILTER_FIELD_NUMBER: _ClassVar[int]
bot_id: str
limit: int
offset: int
include_board: bool
role_filter: BotRoleFilter
def __init__(self, bot_id: _Optional[str] = ..., limit: _Optional[int] = ..., offset: _Optional[int] = ..., include_board: _Optional[bool] = ..., role_filter: _Optional[_Union[BotRoleFilter, str]] = ...) -> None: ...
class ListGamesByBotResponse(_message.Message):
__slots__ = ("games", "total_count")
GAMES_FIELD_NUMBER: _ClassVar[int]
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
games: _containers.RepeatedCompositeFieldContainer[_types_pb2.Game]
total_count: int
def __init__(self, games: _Optional[_Iterable[_Union[_types_pb2.Game, _Mapping]]] = ..., total_count: _Optional[int] = ...) -> None: ...
|