Autogenerated update for cc0845f68e...fab429fc74

This commit is contained in:
itzaname 2024-11-29 04:10:00 +00:00
parent 694b132da9
commit ff494ec58b
2 changed files with 19 additions and 19 deletions

View File

@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nauth.proto\x12\x04\x61uth\"\x1e\n\tIdMessage\x12\x11\n\tSessionID\x18\x01 \x01(\t\"h\n\x0fSessionResponse\x12\x11\n\tSessionID\x18\x01 \x01(\t\x12\x0e\n\x06UserID\x18\x02 \x01(\x04\x12\x10\n\x08Username\x18\x03 \x01(\t\x12\x0f\n\x07\x43reated\x18\x04 \x01(\x04\x12\x0f\n\x07\x45xpires\x18\x05 \x01(\x04\"\x1b\n\x0bRoleReponse\x12\x0c\n\x04Role\x18\x01 \x01(\r\"!\n\x10ValidateResponse\x12\r\n\x05Valid\x18\x01 \x01(\x08\x32\xb3\x01\n\x0b\x41uthService\x12\x34\n\nGetSession\x12\x0f.auth.IdMessage\x1a\x15.auth.SessionResponse\x12\x32\n\x0cGetGroupRole\x12\x0f.auth.IdMessage\x1a\x11.auth.RoleReponse\x12:\n\x0fValidateSession\x12\x0f.auth.IdMessage\x1a\x16.auth.ValidateResponseB\'Z%git.itzana.me/strafesnet/go-grpc/authb\x06proto3') DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nauth.proto\x12\x04\x61uth\"\x1e\n\tIdMessage\x12\x11\n\tSessionID\x18\x01 \x01(\t\"J\n\x13SessionUserResponse\x12\x0e\n\x06UserID\x18\x01 \x01(\x04\x12\x10\n\x08Username\x18\x02 \x01(\t\x12\x11\n\tAvatarURL\x18\x03 \x01(\t\"\x1b\n\x0bRoleReponse\x12\x0c\n\x04Role\x18\x01 \x01(\r\"!\n\x10ValidateResponse\x12\r\n\x05Valid\x18\x01 \x01(\x08\x32\xbb\x01\n\x0b\x41uthService\x12<\n\x0eGetSessionUser\x12\x0f.auth.IdMessage\x1a\x19.auth.SessionUserResponse\x12\x32\n\x0cGetGroupRole\x12\x0f.auth.IdMessage\x1a\x11.auth.RoleReponse\x12:\n\x0fValidateSession\x12\x0f.auth.IdMessage\x1a\x16.auth.ValidateResponseB\'Z%git.itzana.me/strafesnet/go-grpc/authb\x06proto3')
_globals = globals() _globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@ -24,12 +24,12 @@ if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._serialized_options = b'Z%git.itzana.me/strafesnet/go-grpc/auth' _globals['DESCRIPTOR']._serialized_options = b'Z%git.itzana.me/strafesnet/go-grpc/auth'
_globals['_IDMESSAGE']._serialized_start=20 _globals['_IDMESSAGE']._serialized_start=20
_globals['_IDMESSAGE']._serialized_end=50 _globals['_IDMESSAGE']._serialized_end=50
_globals['_SESSIONRESPONSE']._serialized_start=52 _globals['_SESSIONUSERRESPONSE']._serialized_start=52
_globals['_SESSIONRESPONSE']._serialized_end=156 _globals['_SESSIONUSERRESPONSE']._serialized_end=126
_globals['_ROLEREPONSE']._serialized_start=158 _globals['_ROLEREPONSE']._serialized_start=128
_globals['_ROLEREPONSE']._serialized_end=185 _globals['_ROLEREPONSE']._serialized_end=155
_globals['_VALIDATERESPONSE']._serialized_start=187 _globals['_VALIDATERESPONSE']._serialized_start=157
_globals['_VALIDATERESPONSE']._serialized_end=220 _globals['_VALIDATERESPONSE']._serialized_end=190
_globals['_AUTHSERVICE']._serialized_start=223 _globals['_AUTHSERVICE']._serialized_start=193
_globals['_AUTHSERVICE']._serialized_end=402 _globals['_AUTHSERVICE']._serialized_end=380
# @@protoc_insertion_point(module_scope) # @@protoc_insertion_point(module_scope)

View File

@ -39,10 +39,10 @@ class AuthServiceStub(object):
Args: Args:
channel: A grpc.Channel. channel: A grpc.Channel.
""" """
self.GetSession = channel.unary_unary( self.GetSessionUser = channel.unary_unary(
'/auth.AuthService/GetSession', '/auth.AuthService/GetSessionUser',
request_serializer=auth__pb2.IdMessage.SerializeToString, request_serializer=auth__pb2.IdMessage.SerializeToString,
response_deserializer=auth__pb2.SessionResponse.FromString, response_deserializer=auth__pb2.SessionUserResponse.FromString,
_registered_method=True) _registered_method=True)
self.GetGroupRole = channel.unary_unary( self.GetGroupRole = channel.unary_unary(
'/auth.AuthService/GetGroupRole', '/auth.AuthService/GetGroupRole',
@ -59,7 +59,7 @@ class AuthServiceStub(object):
class AuthServiceServicer(object): class AuthServiceServicer(object):
"""Missing associated documentation comment in .proto file.""" """Missing associated documentation comment in .proto file."""
def GetSession(self, request, context): def GetSessionUser(self, request, context):
"""Missing associated documentation comment in .proto file.""" """Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!') context.set_details('Method not implemented!')
@ -80,10 +80,10 @@ class AuthServiceServicer(object):
def add_AuthServiceServicer_to_server(servicer, server): def add_AuthServiceServicer_to_server(servicer, server):
rpc_method_handlers = { rpc_method_handlers = {
'GetSession': grpc.unary_unary_rpc_method_handler( 'GetSessionUser': grpc.unary_unary_rpc_method_handler(
servicer.GetSession, servicer.GetSessionUser,
request_deserializer=auth__pb2.IdMessage.FromString, request_deserializer=auth__pb2.IdMessage.FromString,
response_serializer=auth__pb2.SessionResponse.SerializeToString, response_serializer=auth__pb2.SessionUserResponse.SerializeToString,
), ),
'GetGroupRole': grpc.unary_unary_rpc_method_handler( 'GetGroupRole': grpc.unary_unary_rpc_method_handler(
servicer.GetGroupRole, servicer.GetGroupRole,
@ -107,7 +107,7 @@ class AuthService(object):
"""Missing associated documentation comment in .proto file.""" """Missing associated documentation comment in .proto file."""
@staticmethod @staticmethod
def GetSession(request, def GetSessionUser(request,
target, target,
options=(), options=(),
channel_credentials=None, channel_credentials=None,
@ -120,9 +120,9 @@ class AuthService(object):
return grpc.experimental.unary_unary( return grpc.experimental.unary_unary(
request, request,
target, target,
'/auth.AuthService/GetSession', '/auth.AuthService/GetSessionUser',
auth__pb2.IdMessage.SerializeToString, auth__pb2.IdMessage.SerializeToString,
auth__pb2.SessionResponse.FromString, auth__pb2.SessionUserResponse.FromString,
options, options,
channel_credentials, channel_credentials,
insecure, insecure,