diff options
Diffstat (limited to 'codenames/v1/game_pb2.pyi')
| -rw-r--r-- | codenames/v1/game_pb2.pyi | 273 |
1 files changed, 273 insertions, 0 deletions
diff --git a/codenames/v1/game_pb2.pyi b/codenames/v1/game_pb2.pyi new file mode 100644 index 0000000..c5c59c8 --- /dev/null +++ b/codenames/v1/game_pb2.pyi @@ -0,0 +1,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: ... |