3

Autogenerated update for ad8e4ebacf...82ca9f2b0c

This commit is contained in:
2025-06-22 14:19:39 +00:00
parent df5e55f54b
commit 2021d77ac6
2 changed files with 133 additions and 0 deletions

31
strafesnet/dev_pb2.py Normal file

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: dev.proto
# Protobuf Python Version: 5.26.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 symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\tdev.proto\x12\x03\x64\x65v\"H\n\x14\x41PIValidationRequest\x12\x0f\n\x07Service\x18\x01 \x01(\t\x12\x12\n\nPermission\x18\x02 \x01(\t\x12\x0b\n\x03Key\x18\x03 \x01(\t\"\xf6\x01\n\x15\x41PIValidationResponse\x12\r\n\x05Valid\x18\x01 \x01(\x08\x12\x14\n\x0c\x45rrorMessage\x18\x02 \x01(\t\x12\x12\n\nStatusCode\x18\x03 \x01(\x05\x12\x16\n\x0eRemainingBurst\x18\x04 \x01(\x04\x12\x16\n\x0eRemainingDaily\x18\x05 \x01(\x04\x12\x18\n\x10RemainingMonthly\x18\x06 \x01(\x04\x12\x12\n\nBurstLimit\x18\x07 \x01(\x04\x12\x1c\n\x14\x42urstDurationSeconds\x18\x08 \x01(\x04\x12\x12\n\nDailyLimit\x18\t \x01(\x04\x12\x14\n\x0cMonthlyLimit\x18\n \x01(\x04\x32O\n\nDevService\x12\x41\n\x08Validate\x12\x19.dev.APIValidationRequest\x1a\x1a.dev.APIValidationResponseB&Z$git.itzana.me/strafesnet/go-grpc/devb\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'dev_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/dev'
_globals['_APIVALIDATIONREQUEST']._serialized_start=18
_globals['_APIVALIDATIONREQUEST']._serialized_end=90
_globals['_APIVALIDATIONRESPONSE']._serialized_start=93
_globals['_APIVALIDATIONRESPONSE']._serialized_end=339
_globals['_DEVSERVICE']._serialized_start=341
_globals['_DEVSERVICE']._serialized_end=420
# @@protoc_insertion_point(module_scope)

102
strafesnet/dev_pb2_grpc.py Normal file

@ -0,0 +1,102 @@
# 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 dev_pb2 as dev__pb2
GRPC_GENERATED_VERSION = '1.64.1'
GRPC_VERSION = grpc.__version__
EXPECTED_ERROR_RELEASE = '1.65.0'
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
_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:
warnings.warn(
f'The grpc package installed is at version {GRPC_VERSION},'
+ f' but the generated code in dev_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}.'
+ f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
+ f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
RuntimeWarning
)
class DevServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Validate = channel.unary_unary(
'/dev.DevService/Validate',
request_serializer=dev__pb2.APIValidationRequest.SerializeToString,
response_deserializer=dev__pb2.APIValidationResponse.FromString,
_registered_method=True)
class DevServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
def Validate(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_DevServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'Validate': grpc.unary_unary_rpc_method_handler(
servicer.Validate,
request_deserializer=dev__pb2.APIValidationRequest.FromString,
response_serializer=dev__pb2.APIValidationResponse.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'dev.DevService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
server.add_registered_method_handlers('dev.DevService', rpc_method_handlers)
# This class is part of an EXPERIMENTAL API.
class DevService(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def Validate(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,
'/dev.DevService/Validate',
dev__pb2.APIValidationRequest.SerializeToString,
dev__pb2.APIValidationResponse.FromString,
options,
channel_credentials,
insecure,
call_credentials,
compression,
wait_for_ready,
timeout,
metadata,
_registered_method=True)