Autogenerated update for 8dce6ee1ba...63ad706dd9

This commit is contained in:
2025-09-22 00:03:52 +00:00
parent a3fd0b335c
commit cf18ebce73
2 changed files with 138 additions and 0 deletions

View File

@@ -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)

View File

@@ -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)