# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from server import process_pb2 as process__pb2 class StatisticsStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel): """Constructor. Args: channel: A grpc.Channel. """ self.RunTeamStatistics = channel.unary_unary( '/process.v1.Statistics/RunTeamStatistics', request_serializer=process__pb2.MatchMessage.SerializeToString, response_deserializer=process__pb2.TeamStatisticalResult.FromString, ) self.RunPlayerStatistics = channel.unary_unary( '/process.v1.Statistics/RunPlayerStatistics', request_serializer=process__pb2.MatchMessage.SerializeToString, response_deserializer=process__pb2.PlayerStatisticalResult.FromString, ) self.RunPassingMatrix = channel.unary_unary( '/process.v1.Statistics/RunPassingMatrix', request_serializer=process__pb2.MatchMessage.SerializeToString, response_deserializer=process__pb2.PassingMatrixResult.FromString, ) self.RunPassGraph = channel.unary_unary( '/process.v1.Statistics/RunPassGraph', request_serializer=process__pb2.MatchMessage.SerializeToString, response_deserializer=process__pb2.PassGraphResult.FromString, ) self.RunCreateXml = channel.unary_unary( '/process.v1.Statistics/RunCreateXml', request_serializer=process__pb2.XmlMessage.SerializeToString, response_deserializer=process__pb2.XmlResult.FromString, ) class StatisticsServicer(object): """Missing associated documentation comment in .proto file.""" def RunTeamStatistics(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 RunPlayerStatistics(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 RunPassingMatrix(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 RunPassGraph(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 RunCreateXml(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_StatisticsServicer_to_server(servicer, server): rpc_method_handlers = { 'RunTeamStatistics': grpc.unary_unary_rpc_method_handler( servicer.RunTeamStatistics, request_deserializer=process__pb2.MatchMessage.FromString, response_serializer=process__pb2.TeamStatisticalResult.SerializeToString, ), 'RunPlayerStatistics': grpc.unary_unary_rpc_method_handler( servicer.RunPlayerStatistics, request_deserializer=process__pb2.MatchMessage.FromString, response_serializer=process__pb2.PlayerStatisticalResult.SerializeToString, ), 'RunPassingMatrix': grpc.unary_unary_rpc_method_handler( servicer.RunPassingMatrix, request_deserializer=process__pb2.MatchMessage.FromString, response_serializer=process__pb2.PassingMatrixResult.SerializeToString, ), 'RunPassGraph': grpc.unary_unary_rpc_method_handler( servicer.RunPassGraph, request_deserializer=process__pb2.MatchMessage.FromString, response_serializer=process__pb2.PassGraphResult.SerializeToString, ), 'RunCreateXml': grpc.unary_unary_rpc_method_handler( servicer.RunCreateXml, request_deserializer=process__pb2.XmlMessage.FromString, response_serializer=process__pb2.XmlResult.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( 'process.v1.Statistics', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) # This class is part of an EXPERIMENTAL API. class Statistics(object): """Missing associated documentation comment in .proto file.""" @staticmethod def RunTeamStatistics(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, '/process.v1.Statistics/RunTeamStatistics', process__pb2.MatchMessage.SerializeToString, process__pb2.TeamStatisticalResult.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def RunPlayerStatistics(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, '/process.v1.Statistics/RunPlayerStatistics', process__pb2.MatchMessage.SerializeToString, process__pb2.PlayerStatisticalResult.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def RunPassingMatrix(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, '/process.v1.Statistics/RunPassingMatrix', process__pb2.MatchMessage.SerializeToString, process__pb2.PassingMatrixResult.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def RunPassGraph(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, '/process.v1.Statistics/RunPassGraph', process__pb2.MatchMessage.SerializeToString, process__pb2.PassGraphResult.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @staticmethod def RunCreateXml(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, '/process.v1.Statistics/RunCreateXml', process__pb2.XmlMessage.SerializeToString, process__pb2.XmlResult.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata)