From cf18ebce73a100bd5a7e26fef06a7fea08d42c44 Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Mon, 22 Sep 2025 00:03:52 +0000 Subject: [PATCH] Autogenerated update for https://git.itzana.me/StrafesNET/protobufs/compare/8dce6ee1bacb62701cbea1488a1faa6bc5835f40...63ad706dd95dbf1c307e6fbc576b69be7692bb86 --- strafesnet/bot_analyzer_pb2.py | 41 ++++++++++++ strafesnet/bot_analyzer_pb2_grpc.py | 97 +++++++++++++++++++++++++++++ 2 files changed, 138 insertions(+) create mode 100644 strafesnet/bot_analyzer_pb2.py create mode 100644 strafesnet/bot_analyzer_pb2_grpc.py diff --git a/strafesnet/bot_analyzer_pb2.py b/strafesnet/bot_analyzer_pb2.py new file mode 100644 index 0000000..c492279 --- /dev/null +++ b/strafesnet/bot_analyzer_pb2.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE +# source: bot_analyzer.proto +# Protobuf Python Version: 6.31.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, + 6, + 31, + 1, + '', + 'bot_analyzer.proto' +) +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x62ot_analyzer.proto\x12\x0c\x62ot_analyzer\"\x18\n\x06\x46ileID\x12\x0e\n\x06\x46ileID\x18\x01 \x01(\t\"$\n\x10\x41nalysisResponse\x12\x10\n\x08\x41nalysis\x18\x01 \x01(\t2N\n\x0b\x42otAnalyzer\x12?\n\x07\x41nalyze\x12\x14.bot_analyzer.FileID\x1a\x1e.bot_analyzer.AnalysisResponseB/Z-git.itzana.me/strafesnet/go-grpc/bot_analyzerb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'bot_analyzer_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'Z-git.itzana.me/strafesnet/go-grpc/bot_analyzer' + _globals['_FILEID']._serialized_start=36 + _globals['_FILEID']._serialized_end=60 + _globals['_ANALYSISRESPONSE']._serialized_start=62 + _globals['_ANALYSISRESPONSE']._serialized_end=98 + _globals['_BOTANALYZER']._serialized_start=100 + _globals['_BOTANALYZER']._serialized_end=178 +# @@protoc_insertion_point(module_scope) diff --git a/strafesnet/bot_analyzer_pb2_grpc.py b/strafesnet/bot_analyzer_pb2_grpc.py new file mode 100644 index 0000000..9a1fac7 --- /dev/null +++ b/strafesnet/bot_analyzer_pb2_grpc.py @@ -0,0 +1,97 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc +import warnings + +from . import bot_analyzer_pb2 as bot__analyzer__pb2 + +GRPC_GENERATED_VERSION = '1.74.0' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in bot_analyzer_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + + +class BotAnalyzerStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Analyze = channel.unary_unary( + '/bot_analyzer.BotAnalyzer/Analyze', + request_serializer=bot__analyzer__pb2.FileID.SerializeToString, + response_deserializer=bot__analyzer__pb2.AnalysisResponse.FromString, + _registered_method=True) + + +class BotAnalyzerServicer(object): + """Missing associated documentation comment in .proto file.""" + + def Analyze(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_BotAnalyzerServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Analyze': grpc.unary_unary_rpc_method_handler( + servicer.Analyze, + request_deserializer=bot__analyzer__pb2.FileID.FromString, + response_serializer=bot__analyzer__pb2.AnalysisResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'bot_analyzer.BotAnalyzer', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('bot_analyzer.BotAnalyzer', rpc_method_handlers) + + + # This class is part of an EXPERIMENTAL API. +class BotAnalyzer(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def Analyze(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, + '/bot_analyzer.BotAnalyzer/Analyze', + bot__analyzer__pb2.FileID.SerializeToString, + bot__analyzer__pb2.AnalysisResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True)