summaryrefslogtreecommitdiff
path: root/codenames/v1/game_pb2.py
blob: 61b93c82811b94e9e7084f38bd17c628586719f9 (plain)
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
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: codenames/v1/game.proto
# Protobuf Python Version: 7.34.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion(
    _runtime_version.Domain.PUBLIC,
    7,
    34,
    1,
    '',
    'codenames/v1/game.proto'
)
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from codenames.v1 import types_pb2 as codenames_dot_v1_dot_types__pb2


DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x63odenames/v1/game.proto\x12\x0c\x63odenames.v1\x1a\x18\x63odenames/v1/types.proto\"\xb9\x01\n\x11\x43reateGameRequest\x12\x14\n\x05words\x18\x01 \x03(\tR\x05words\x12#\n\rred_spymaster\x18\x02 \x01(\tR\x0credSpymaster\x12\x1f\n\x0bred_guesser\x18\x03 \x01(\tR\nredGuesser\x12%\n\x0e\x62lue_spymaster\x18\x04 \x01(\tR\rblueSpymaster\x12!\n\x0c\x62lue_guesser\x18\x05 \x01(\tR\x0b\x62lueGuesser\"-\n\x12\x43reateGameResponse\x12\x17\n\x07game_id\x18\x01 \x01(\tR\x06gameId\")\n\x0eGetGameRequest\x12\x17\n\x07game_id\x18\x01 \x01(\tR\x06gameId\"9\n\x0fGetGameResponse\x12&\n\x04game\x18\x01 \x01(\x0b\x32\x12.codenames.v1.GameR\x04game\"e\n\x10ListGamesRequest\x12\x14\n\x05limit\x18\x01 \x01(\x05R\x05limit\x12\x16\n\x06offset\x18\x02 \x01(\x05R\x06offset\x12#\n\rinclude_board\x18\x03 \x01(\x08R\x0cincludeBoard\"^\n\x11ListGamesResponse\x12(\n\x05games\x18\x01 \x03(\x0b\x32\x12.codenames.v1.GameR\x05games\x12\x1f\n\x0btotal_count\x18\x02 \x01(\x05R\ntotalCount\"=\n\x16ListActiveGamesRequest\x12#\n\rinclude_board\x18\x01 \x01(\x08R\x0cincludeBoard\"C\n\x17ListActiveGamesResponse\x12(\n\x05games\x18\x01 \x03(\x0b\x32\x12.codenames.v1.GameR\x05games\".\n\x13GetGameMovesRequest\x12\x17\n\x07game_id\x18\x01 \x01(\tR\x06gameId\"D\n\x14GetGameMovesResponse\x12,\n\x05moves\x18\x01 \x03(\x0b\x32\x16.codenames.v1.GameMoveR\x05moves\"K\n\x12RegisterBotRequest\x12!\n\x0cidentity_key\x18\x01 \x01(\tR\x0bidentityKey\x12\x12\n\x04port\x18\x02 \x01(\x05R\x04port\":\n\x13RegisterBotResponse\x12#\n\x03\x62ot\x18\x01 \x01(\x0b\x32\x11.codenames.v1.BotR\x03\x62ot\"\x11\n\x0fListBotsRequest\"9\n\x10ListBotsResponse\x12%\n\x04\x62ots\x18\x01 \x03(\x0b\x32\x11.codenames.v1.BotR\x04\x62ots\"-\n\x14UnregisterBotRequest\x12\x15\n\x06\x62ot_id\x18\x01 \x01(\tR\x05\x62otId\"\x17\n\x15UnregisterBotResponse\"+\n\x12GetBotGamesRequest\x12\x15\n\x06\x62ot_id\x18\x01 \x01(\tR\x05\x62otId\"0\n\x13GetBotGamesResponse\x12\x19\n\x08game_ids\x18\x01 \x03(\tR\x07gameIds\"R\n\rGetBotRequest\x12\x15\n\x06\x62ot_id\x18\x01 \x01(\tR\x05\x62otId\x12*\n\x11skip_active_games\x18\x02 \x01(\x08R\x0fskipActiveGames\"5\n\x0eGetBotResponse\x12#\n\x03\x62ot\x18\x01 \x01(\x0b\x32\x11.codenames.v1.BotR\x03\x62ot\"g\n\x15GetLeaderboardRequest\x12\x14\n\x05limit\x18\x01 \x01(\x05R\x05limit\x12\x38\n\x07sort_by\x18\x02 \x01(\x0e\x32\x1f.codenames.v1.LeaderboardSortByR\x06sortBy\"D\n\x16GetLeaderboardResponse\x12*\n\x04\x62ots\x18\x01 \x03(\x0b\x32\x16.codenames.v1.BotStatsR\x04\x62ots\"\xf1\x01\n\x08\x42otStats\x12\x15\n\x06\x62ot_id\x18\x01 \x01(\tR\x05\x62otId\x12!\n\x0cidentity_key\x18\x02 \x01(\tR\x0bidentityKey\x12\x1d\n\nelo_rating\x18\x03 \x01(\x05R\teloRating\x12!\n\x0cgames_played\x18\x04 \x01(\x05R\x0bgamesPlayed\x12\x12\n\x04wins\x18\x05 \x01(\x05R\x04wins\x12\x16\n\x06losses\x18\x06 \x01(\x05R\x06losses\x12$\n\x0ep99_latency_ms\x18\x07 \x01(\x05R\x0cp99LatencyMs\x12\x17\n\x07team_id\x18\x08 \x01(\tR\x06teamId\"\x98\x02\n\x08TeamInfo\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x13\n\x05vm_ip\x18\x03 \x01(\tR\x04vmIp\x12\x1b\n\tbot_count\x18\x04 \x01(\x05R\x08\x62otCount\x12,\n\x12total_games_played\x18\x05 \x01(\x05R\x10totalGamesPlayed\x12 \n\x0ctop_bot_rank\x18\x06 \x01(\x05R\ntopBotRank\x12\x1e\n\x0btop_bot_elo\x18\x07 \x01(\x05R\ttopBotElo\x12(\n\x10top_bot_identity\x18\x08 \x01(\tR\x0etopBotIdentity\x12\x1c\n\ntop_bot_id\x18\t \x01(\tR\x08topBotId\"\x1d\n\x1bGameServiceListTeamsRequest\"L\n\x1cGameServiceListTeamsResponse\x12,\n\x05teams\x18\x01 \x03(\x0b\x32\x16.codenames.v1.TeamInfoR\x05teams\"4\n\x19GameServiceGetTeamRequest\x12\x17\n\x07team_id\x18\x01 \x01(\tR\x06teamId\"H\n\x1aGameServiceGetTeamResponse\x12*\n\x04team\x18\x01 \x01(\x0b\x32\x16.codenames.v1.TeamInfoR\x04team\"0\n\x15ListBotsByTeamRequest\x12\x17\n\x07team_id\x18\x01 \x01(\tR\x06teamId\"?\n\x16ListBotsByTeamResponse\x12%\n\x04\x62ots\x18\x01 \x03(\x0b\x32\x11.codenames.v1.BotR\x04\x62ots\"\xbf\x01\n\x15ListGamesByBotRequest\x12\x15\n\x06\x62ot_id\x18\x01 \x01(\tR\x05\x62otId\x12\x14\n\x05limit\x18\x02 \x01(\x05R\x05limit\x12\x16\n\x06offset\x18\x03 \x01(\x05R\x06offset\x12#\n\rinclude_board\x18\x04 \x01(\x08R\x0cincludeBoard\x12<\n\x0brole_filter\x18\x05 \x01(\x0e\x32\x1b.codenames.v1.BotRoleFilterR\nroleFilter\"c\n\x16ListGamesByBotResponse\x12(\n\x05games\x18\x01 \x03(\x0b\x32\x12.codenames.v1.GameR\x05games\x12\x1f\n\x0btotal_count\x18\x02 \x01(\x05R\ntotalCount*\x81\x01\n\x11LeaderboardSortBy\x12#\n\x1fLEADERBOARD_SORT_BY_UNSPECIFIED\x10\x00\x12\"\n\x1eLEADERBOARD_SORT_BY_ELO_RATING\x10\x01\x12#\n\x1fLEADERBOARD_SORT_BY_P99_LATENCY\x10\x02*l\n\rBotRoleFilter\x12\x1f\n\x1b\x42OT_ROLE_FILTER_UNSPECIFIED\x10\x00\x12\x1d\n\x19\x42OT_ROLE_FILTER_SPYMASTER\x10\x01\x12\x1b\n\x17\x42OT_ROLE_FILTER_GUESSER\x10\x02\x32\x96\n\n\x0bGameService\x12O\n\nCreateGame\x12\x1f.codenames.v1.CreateGameRequest\x1a .codenames.v1.CreateGameResponse\x12\x46\n\x07GetGame\x12\x1c.codenames.v1.GetGameRequest\x1a\x1d.codenames.v1.GetGameResponse\x12L\n\tListGames\x12\x1e.codenames.v1.ListGamesRequest\x1a\x1f.codenames.v1.ListGamesResponse\x12^\n\x0fListActiveGames\x12$.codenames.v1.ListActiveGamesRequest\x1a%.codenames.v1.ListActiveGamesResponse\x12U\n\x0cGetGameMoves\x12!.codenames.v1.GetGameMovesRequest\x1a\".codenames.v1.GetGameMovesResponse\x12R\n\x0bRegisterBot\x12 .codenames.v1.RegisterBotRequest\x1a!.codenames.v1.RegisterBotResponse\x12I\n\x08ListBots\x12\x1d.codenames.v1.ListBotsRequest\x1a\x1e.codenames.v1.ListBotsResponse\x12X\n\rUnregisterBot\x12\".codenames.v1.UnregisterBotRequest\x1a#.codenames.v1.UnregisterBotResponse\x12R\n\x0bGetBotGames\x12 .codenames.v1.GetBotGamesRequest\x1a!.codenames.v1.GetBotGamesResponse\x12\x43\n\x06GetBot\x12\x1b.codenames.v1.GetBotRequest\x1a\x1c.codenames.v1.GetBotResponse\x12[\n\x0eGetLeaderboard\x12#.codenames.v1.GetLeaderboardRequest\x1a$.codenames.v1.GetLeaderboardResponse\x12\x62\n\tListTeams\x12).codenames.v1.GameServiceListTeamsRequest\x1a*.codenames.v1.GameServiceListTeamsResponse\x12\\\n\x07GetTeam\x12\'.codenames.v1.GameServiceGetTeamRequest\x1a(.codenames.v1.GameServiceGetTeamResponse\x12[\n\x0eListBotsByTeam\x12#.codenames.v1.ListBotsByTeamRequest\x1a$.codenames.v1.ListBotsByTeamResponse\x12[\n\x0eListGamesByBot\x12#.codenames.v1.ListGamesByBotRequest\x1a$.codenames.v1.ListGamesByBotResponseB\x96\x01\n\x10\x63om.codenames.v1B\tGameProtoP\x01Z&codenames/gen/codenames/v1;codenamesv1\xa2\x02\x03\x43XX\xaa\x02\x0c\x43odenames.V1\xca\x02\x0c\x43odenames\\V1\xe2\x02\x18\x43odenames\\V1\\GPBMetadata\xea\x02\rCodenames::V1b\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'codenames.v1.game_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  _globals['DESCRIPTOR']._loaded_options = None
  _globals['DESCRIPTOR']._serialized_options = b'\n\020com.codenames.v1B\tGameProtoP\001Z&codenames/gen/codenames/v1;codenamesv1\242\002\003CXX\252\002\014Codenames.V1\312\002\014Codenames\\V1\342\002\030Codenames\\V1\\GPBMetadata\352\002\rCodenames::V1'
  _globals['_LEADERBOARDSORTBY']._serialized_start=2724
  _globals['_LEADERBOARDSORTBY']._serialized_end=2853
  _globals['_BOTROLEFILTER']._serialized_start=2855
  _globals['_BOTROLEFILTER']._serialized_end=2963
  _globals['_CREATEGAMEREQUEST']._serialized_start=68
  _globals['_CREATEGAMEREQUEST']._serialized_end=253
  _globals['_CREATEGAMERESPONSE']._serialized_start=255
  _globals['_CREATEGAMERESPONSE']._serialized_end=300
  _globals['_GETGAMEREQUEST']._serialized_start=302
  _globals['_GETGAMEREQUEST']._serialized_end=343
  _globals['_GETGAMERESPONSE']._serialized_start=345
  _globals['_GETGAMERESPONSE']._serialized_end=402
  _globals['_LISTGAMESREQUEST']._serialized_start=404
  _globals['_LISTGAMESREQUEST']._serialized_end=505
  _globals['_LISTGAMESRESPONSE']._serialized_start=507
  _globals['_LISTGAMESRESPONSE']._serialized_end=601
  _globals['_LISTACTIVEGAMESREQUEST']._serialized_start=603
  _globals['_LISTACTIVEGAMESREQUEST']._serialized_end=664
  _globals['_LISTACTIVEGAMESRESPONSE']._serialized_start=666
  _globals['_LISTACTIVEGAMESRESPONSE']._serialized_end=733
  _globals['_GETGAMEMOVESREQUEST']._serialized_start=735
  _globals['_GETGAMEMOVESREQUEST']._serialized_end=781
  _globals['_GETGAMEMOVESRESPONSE']._serialized_start=783
  _globals['_GETGAMEMOVESRESPONSE']._serialized_end=851
  _globals['_REGISTERBOTREQUEST']._serialized_start=853
  _globals['_REGISTERBOTREQUEST']._serialized_end=928
  _globals['_REGISTERBOTRESPONSE']._serialized_start=930
  _globals['_REGISTERBOTRESPONSE']._serialized_end=988
  _globals['_LISTBOTSREQUEST']._serialized_start=990
  _globals['_LISTBOTSREQUEST']._serialized_end=1007
  _globals['_LISTBOTSRESPONSE']._serialized_start=1009
  _globals['_LISTBOTSRESPONSE']._serialized_end=1066
  _globals['_UNREGISTERBOTREQUEST']._serialized_start=1068
  _globals['_UNREGISTERBOTREQUEST']._serialized_end=1113
  _globals['_UNREGISTERBOTRESPONSE']._serialized_start=1115
  _globals['_UNREGISTERBOTRESPONSE']._serialized_end=1138
  _globals['_GETBOTGAMESREQUEST']._serialized_start=1140
  _globals['_GETBOTGAMESREQUEST']._serialized_end=1183
  _globals['_GETBOTGAMESRESPONSE']._serialized_start=1185
  _globals['_GETBOTGAMESRESPONSE']._serialized_end=1233
  _globals['_GETBOTREQUEST']._serialized_start=1235
  _globals['_GETBOTREQUEST']._serialized_end=1317
  _globals['_GETBOTRESPONSE']._serialized_start=1319
  _globals['_GETBOTRESPONSE']._serialized_end=1372
  _globals['_GETLEADERBOARDREQUEST']._serialized_start=1374
  _globals['_GETLEADERBOARDREQUEST']._serialized_end=1477
  _globals['_GETLEADERBOARDRESPONSE']._serialized_start=1479
  _globals['_GETLEADERBOARDRESPONSE']._serialized_end=1547
  _globals['_BOTSTATS']._serialized_start=1550
  _globals['_BOTSTATS']._serialized_end=1791
  _globals['_TEAMINFO']._serialized_start=1794
  _globals['_TEAMINFO']._serialized_end=2074
  _globals['_GAMESERVICELISTTEAMSREQUEST']._serialized_start=2076
  _globals['_GAMESERVICELISTTEAMSREQUEST']._serialized_end=2105
  _globals['_GAMESERVICELISTTEAMSRESPONSE']._serialized_start=2107
  _globals['_GAMESERVICELISTTEAMSRESPONSE']._serialized_end=2183
  _globals['_GAMESERVICEGETTEAMREQUEST']._serialized_start=2185
  _globals['_GAMESERVICEGETTEAMREQUEST']._serialized_end=2237
  _globals['_GAMESERVICEGETTEAMRESPONSE']._serialized_start=2239
  _globals['_GAMESERVICEGETTEAMRESPONSE']._serialized_end=2311
  _globals['_LISTBOTSBYTEAMREQUEST']._serialized_start=2313
  _globals['_LISTBOTSBYTEAMREQUEST']._serialized_end=2361
  _globals['_LISTBOTSBYTEAMRESPONSE']._serialized_start=2363
  _globals['_LISTBOTSBYTEAMRESPONSE']._serialized_end=2426
  _globals['_LISTGAMESBYBOTREQUEST']._serialized_start=2429
  _globals['_LISTGAMESBYBOTREQUEST']._serialized_end=2620
  _globals['_LISTGAMESBYBOTRESPONSE']._serialized_start=2622
  _globals['_LISTGAMESBYBOTRESPONSE']._serialized_end=2721
  _globals['_GAMESERVICE']._serialized_start=2966
  _globals['_GAMESERVICE']._serialized_end=4268
# @@protoc_insertion_point(module_scope)