From a583f0d7abdaa3d69e2e684ecc780c6bc2bc95c0 Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Thu, 24 Jul 2025 03:00:19 +0000 Subject: [PATCH] Autogenerated update for https://git.itzana.me/StrafesNET/protobufs/compare/a9bdcbb1d7f22e595b1ecb55384175e24d2b93d7...889662bc99f0f67fc7a211605cc57549aa567b48 --- strafesnet/maps_extended_pb2.py | 4 +-- strafesnet/maps_extended_pb2_grpc.py | 43 ++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/strafesnet/maps_extended_pb2.py b/strafesnet/maps_extended_pb2.py index bc77326..fe49895 100644 --- a/strafesnet/maps_extended_pb2.py +++ b/strafesnet/maps_extended_pb2.py @@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13maps_extended.proto\x12\rmaps_extended\"\x17\n\tMapIdList\x12\n\n\x02ID\x18\x01 \x03(\x03\"\x13\n\x05MapId\x12\n\n\x02ID\x18\x01 \x01(\x03\"\xe1\x01\n\x0bMapResponse\x12\n\n\x02ID\x18\x01 \x01(\x03\x12\x13\n\x0b\x44isplayName\x18\x02 \x01(\t\x12\x0f\n\x07\x43reator\x18\x03 \x01(\t\x12\x0e\n\x06GameID\x18\x04 \x01(\r\x12\x0c\n\x04\x44\x61te\x18\x05 \x01(\x03\x12\x11\n\tCreatedAt\x18\x06 \x01(\x03\x12\x11\n\tUpdatedAt\x18\x07 \x01(\x03\x12\x11\n\tSubmitter\x18\x08 \x01(\x04\x12\x11\n\tThumbnail\x18\t \x01(\x04\x12\x14\n\x0c\x41ssetVersion\x18\n \x01(\x04\x12\x11\n\tLoadCount\x18\x0b \x01(\r\x12\r\n\x05Modes\x18\x0c \x01(\r\"\xa6\x01\n\tMapCreate\x12\n\n\x02ID\x18\x01 \x01(\x03\x12\x13\n\x0b\x44isplayName\x18\x02 \x01(\t\x12\x0f\n\x07\x43reator\x18\x03 \x01(\t\x12\x0e\n\x06GameID\x18\x04 \x01(\r\x12\x0c\n\x04\x44\x61te\x18\x05 \x01(\x03\x12\x11\n\tSubmitter\x18\x06 \x01(\x04\x12\x11\n\tThumbnail\x18\x07 \x01(\x04\x12\x14\n\x0c\x41ssetVersion\x18\x08 \x01(\x04\x12\r\n\x05Modes\x18\t \x01(\r\"\xb5\x02\n\tMapUpdate\x12\n\n\x02ID\x18\x01 \x01(\x03\x12\x18\n\x0b\x44isplayName\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x43reator\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06GameID\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x11\n\x04\x44\x61te\x18\x05 \x01(\x03H\x03\x88\x01\x01\x12\x16\n\tSubmitter\x18\x06 \x01(\x04H\x04\x88\x01\x01\x12\x16\n\tThumbnail\x18\x07 \x01(\x04H\x05\x88\x01\x01\x12\x19\n\x0c\x41ssetVersion\x18\x08 \x01(\x04H\x06\x88\x01\x01\x12\x12\n\x05Modes\x18\t \x01(\rH\x07\x88\x01\x01\x42\x0e\n\x0c_DisplayNameB\n\n\x08_CreatorB\t\n\x07_GameIDB\x07\n\x05_DateB\x0c\n\n_SubmitterB\x0c\n\n_ThumbnailB\x0f\n\r_AssetVersionB\x08\n\x06_Modes\"\x9d\x01\n\tMapFilter\x12\x18\n\x0b\x44isplayName\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x43reator\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06GameID\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x16\n\tSubmitter\x18\x05 \x01(\x04H\x03\x88\x01\x01\x42\x0e\n\x0c_DisplayNameB\n\n\x08_CreatorB\t\n\x07_GameIDB\x0c\n\n_Submitter\"3\n\x07MapList\x12(\n\x04Maps\x18\x01 \x03(\x0b\x32\x1a.maps_extended.MapResponse\"`\n\x0bListRequest\x12(\n\x06\x46ilter\x18\x01 \x01(\x0b\x32\x18.maps_extended.MapFilter\x12\'\n\x04Page\x18\x02 \x01(\x0b\x32\x19.maps_extended.Pagination\"*\n\nPagination\x12\x0c\n\x04Size\x18\x01 \x01(\r\x12\x0e\n\x06Number\x18\x02 \x01(\r\"\x0e\n\x0cNullResponse2\xf7\x02\n\x0bMapsService\x12\x37\n\x03Get\x12\x14.maps_extended.MapId\x1a\x1a.maps_extended.MapResponse\x12;\n\x07GetList\x12\x18.maps_extended.MapIdList\x1a\x16.maps_extended.MapList\x12?\n\x06Update\x12\x18.maps_extended.MapUpdate\x1a\x1b.maps_extended.NullResponse\x12\x38\n\x06\x43reate\x12\x18.maps_extended.MapCreate\x1a\x14.maps_extended.MapId\x12;\n\x06\x44\x65lete\x12\x14.maps_extended.MapId\x1a\x1b.maps_extended.NullResponse\x12:\n\x04List\x12\x1a.maps_extended.ListRequest\x1a\x16.maps_extended.MapListB0Z.git.itzana.me/strafesnet/go-grpc/maps_extendedb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13maps_extended.proto\x12\rmaps_extended\"\x17\n\tMapIdList\x12\n\n\x02ID\x18\x01 \x03(\x03\"\x13\n\x05MapId\x12\n\n\x02ID\x18\x01 \x01(\x03\"\xe1\x01\n\x0bMapResponse\x12\n\n\x02ID\x18\x01 \x01(\x03\x12\x13\n\x0b\x44isplayName\x18\x02 \x01(\t\x12\x0f\n\x07\x43reator\x18\x03 \x01(\t\x12\x0e\n\x06GameID\x18\x04 \x01(\r\x12\x0c\n\x04\x44\x61te\x18\x05 \x01(\x03\x12\x11\n\tCreatedAt\x18\x06 \x01(\x03\x12\x11\n\tUpdatedAt\x18\x07 \x01(\x03\x12\x11\n\tSubmitter\x18\x08 \x01(\x04\x12\x11\n\tThumbnail\x18\t \x01(\x04\x12\x14\n\x0c\x41ssetVersion\x18\n \x01(\x04\x12\x11\n\tLoadCount\x18\x0b \x01(\r\x12\r\n\x05Modes\x18\x0c \x01(\r\"\xa6\x01\n\tMapCreate\x12\n\n\x02ID\x18\x01 \x01(\x03\x12\x13\n\x0b\x44isplayName\x18\x02 \x01(\t\x12\x0f\n\x07\x43reator\x18\x03 \x01(\t\x12\x0e\n\x06GameID\x18\x04 \x01(\r\x12\x0c\n\x04\x44\x61te\x18\x05 \x01(\x03\x12\x11\n\tSubmitter\x18\x06 \x01(\x04\x12\x11\n\tThumbnail\x18\x07 \x01(\x04\x12\x14\n\x0c\x41ssetVersion\x18\x08 \x01(\x04\x12\r\n\x05Modes\x18\t \x01(\r\"\xb5\x02\n\tMapUpdate\x12\n\n\x02ID\x18\x01 \x01(\x03\x12\x18\n\x0b\x44isplayName\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x43reator\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06GameID\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x11\n\x04\x44\x61te\x18\x05 \x01(\x03H\x03\x88\x01\x01\x12\x16\n\tSubmitter\x18\x06 \x01(\x04H\x04\x88\x01\x01\x12\x16\n\tThumbnail\x18\x07 \x01(\x04H\x05\x88\x01\x01\x12\x19\n\x0c\x41ssetVersion\x18\x08 \x01(\x04H\x06\x88\x01\x01\x12\x12\n\x05Modes\x18\t \x01(\rH\x07\x88\x01\x01\x42\x0e\n\x0c_DisplayNameB\n\n\x08_CreatorB\t\n\x07_GameIDB\x07\n\x05_DateB\x0c\n\n_SubmitterB\x0c\n\n_ThumbnailB\x0f\n\r_AssetVersionB\x08\n\x06_Modes\"\x9d\x01\n\tMapFilter\x12\x18\n\x0b\x44isplayName\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x14\n\x07\x43reator\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06GameID\x18\x04 \x01(\rH\x02\x88\x01\x01\x12\x16\n\tSubmitter\x18\x05 \x01(\x04H\x03\x88\x01\x01\x42\x0e\n\x0c_DisplayNameB\n\n\x08_CreatorB\t\n\x07_GameIDB\x0c\n\n_Submitter\"3\n\x07MapList\x12(\n\x04Maps\x18\x01 \x03(\x0b\x32\x1a.maps_extended.MapResponse\"`\n\x0bListRequest\x12(\n\x06\x46ilter\x18\x01 \x01(\x0b\x32\x18.maps_extended.MapFilter\x12\'\n\x04Page\x18\x02 \x01(\x0b\x32\x19.maps_extended.Pagination\"*\n\nPagination\x12\x0c\n\x04Size\x18\x01 \x01(\r\x12\x0e\n\x06Number\x18\x02 \x01(\r\"\x0e\n\x0cNullResponse2\xc0\x03\n\x0bMapsService\x12\x37\n\x03Get\x12\x14.maps_extended.MapId\x1a\x1a.maps_extended.MapResponse\x12;\n\x07GetList\x12\x18.maps_extended.MapIdList\x1a\x16.maps_extended.MapList\x12?\n\x06Update\x12\x18.maps_extended.MapUpdate\x1a\x1b.maps_extended.NullResponse\x12\x38\n\x06\x43reate\x12\x18.maps_extended.MapCreate\x1a\x14.maps_extended.MapId\x12;\n\x06\x44\x65lete\x12\x14.maps_extended.MapId\x1a\x1b.maps_extended.NullResponse\x12:\n\x04List\x12\x1a.maps_extended.ListRequest\x1a\x16.maps_extended.MapList\x12G\n\x12IncrementLoadCount\x12\x14.maps_extended.MapId\x1a\x1b.maps_extended.NullResponseB0Z.git.itzana.me/strafesnet/go-grpc/maps_extendedb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -53,5 +53,5 @@ if not _descriptor._USE_C_DESCRIPTORS: _globals['_NULLRESPONSE']._serialized_start=1148 _globals['_NULLRESPONSE']._serialized_end=1162 _globals['_MAPSSERVICE']._serialized_start=1165 - _globals['_MAPSSERVICE']._serialized_end=1540 + _globals['_MAPSSERVICE']._serialized_end=1613 # @@protoc_insertion_point(module_scope) diff --git a/strafesnet/maps_extended_pb2_grpc.py b/strafesnet/maps_extended_pb2_grpc.py index 7d90a4e..0460b7c 100644 --- a/strafesnet/maps_extended_pb2_grpc.py +++ b/strafesnet/maps_extended_pb2_grpc.py @@ -64,6 +64,11 @@ class MapsServiceStub(object): request_serializer=maps__extended__pb2.ListRequest.SerializeToString, response_deserializer=maps__extended__pb2.MapList.FromString, _registered_method=True) + self.IncrementLoadCount = channel.unary_unary( + '/maps_extended.MapsService/IncrementLoadCount', + request_serializer=maps__extended__pb2.MapId.SerializeToString, + response_deserializer=maps__extended__pb2.NullResponse.FromString, + _registered_method=True) class MapsServiceServicer(object): @@ -105,6 +110,12 @@ class MapsServiceServicer(object): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def IncrementLoadCount(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_MapsServiceServicer_to_server(servicer, server): rpc_method_handlers = { @@ -138,6 +149,11 @@ def add_MapsServiceServicer_to_server(servicer, server): request_deserializer=maps__extended__pb2.ListRequest.FromString, response_serializer=maps__extended__pb2.MapList.SerializeToString, ), + 'IncrementLoadCount': grpc.unary_unary_rpc_method_handler( + servicer.IncrementLoadCount, + request_deserializer=maps__extended__pb2.MapId.FromString, + response_serializer=maps__extended__pb2.NullResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'maps_extended.MapsService', rpc_method_handlers) @@ -310,3 +326,30 @@ class MapsService(object): timeout, metadata, _registered_method=True) + + @staticmethod + def IncrementLoadCount(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/maps_extended.MapsService/IncrementLoadCount', + maps__extended__pb2.MapId.SerializeToString, + maps__extended__pb2.NullResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True)