123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
- """Client and server classes corresponding to protobuf-defined services."""
- import grpc
- from easyfl.pb import tracking_service_pb2 as easyfl_dot_pb_dot_tracking__service__pb2
- class TrackingServiceStub(object):
- """Missing associated documentation comment in .proto file."""
- def __init__(self, channel):
- """Constructor.
- Args:
- channel: A grpc.Channel.
- """
- self.TrackTaskMetric = channel.unary_unary(
- '/easyfl.pb.TrackingService/TrackTaskMetric',
- request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackTaskMetricRequest.SerializeToString,
- response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackTaskMetricResponse.FromString,
- )
- self.TrackRoundMetric = channel.unary_unary(
- '/easyfl.pb.TrackingService/TrackRoundMetric',
- request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackRoundMetricRequest.SerializeToString,
- response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackRoundMetricResponse.FromString,
- )
- self.TrackClientMetric = channel.unary_unary(
- '/easyfl.pb.TrackingService/TrackClientMetric',
- request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientMetricRequest.SerializeToString,
- response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientMetricResponse.FromString,
- )
- self.TrackClientTrainMetric = channel.unary_unary(
- '/easyfl.pb.TrackingService/TrackClientTrainMetric',
- request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTrainMetricRequest.SerializeToString,
- response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTrainMetricResponse.FromString,
- )
- self.TrackClientTestMetric = channel.unary_unary(
- '/easyfl.pb.TrackingService/TrackClientTestMetric',
- request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTestMetricRequest.SerializeToString,
- response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTestMetricResponse.FromString,
- )
- self.GetRoundMetrics = channel.unary_unary(
- '/easyfl.pb.TrackingService/GetRoundMetrics',
- request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundMetricsRequest.SerializeToString,
- response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundMetricsResponse.FromString,
- )
- self.GetClientMetrics = channel.unary_unary(
- '/easyfl.pb.TrackingService/GetClientMetrics',
- request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.GetClientMetricsRequest.SerializeToString,
- response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.GetClientMetricsResponse.FromString,
- )
- self.GetRoundTrainTestTime = channel.unary_unary(
- '/easyfl.pb.TrackingService/GetRoundTrainTestTime',
- request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundTrainTestTimeRequest.SerializeToString,
- response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundTrainTestTimeResponse.FromString,
- )
- class TrackingServiceServicer(object):
- """Missing associated documentation comment in .proto file."""
- def TrackTaskMetric(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 TrackRoundMetric(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 TrackClientMetric(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 TrackClientTrainMetric(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 TrackClientTestMetric(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 GetRoundMetrics(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 GetClientMetrics(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 GetRoundTrainTestTime(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_TrackingServiceServicer_to_server(servicer, server):
- rpc_method_handlers = {
- 'TrackTaskMetric': grpc.unary_unary_rpc_method_handler(
- servicer.TrackTaskMetric,
- request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackTaskMetricRequest.FromString,
- response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackTaskMetricResponse.SerializeToString,
- ),
- 'TrackRoundMetric': grpc.unary_unary_rpc_method_handler(
- servicer.TrackRoundMetric,
- request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackRoundMetricRequest.FromString,
- response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackRoundMetricResponse.SerializeToString,
- ),
- 'TrackClientMetric': grpc.unary_unary_rpc_method_handler(
- servicer.TrackClientMetric,
- request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientMetricRequest.FromString,
- response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientMetricResponse.SerializeToString,
- ),
- 'TrackClientTrainMetric': grpc.unary_unary_rpc_method_handler(
- servicer.TrackClientTrainMetric,
- request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTrainMetricRequest.FromString,
- response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTrainMetricResponse.SerializeToString,
- ),
- 'TrackClientTestMetric': grpc.unary_unary_rpc_method_handler(
- servicer.TrackClientTestMetric,
- request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTestMetricRequest.FromString,
- response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTestMetricResponse.SerializeToString,
- ),
- 'GetRoundMetrics': grpc.unary_unary_rpc_method_handler(
- servicer.GetRoundMetrics,
- request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundMetricsRequest.FromString,
- response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundMetricsResponse.SerializeToString,
- ),
- 'GetClientMetrics': grpc.unary_unary_rpc_method_handler(
- servicer.GetClientMetrics,
- request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.GetClientMetricsRequest.FromString,
- response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.GetClientMetricsResponse.SerializeToString,
- ),
- 'GetRoundTrainTestTime': grpc.unary_unary_rpc_method_handler(
- servicer.GetRoundTrainTestTime,
- request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundTrainTestTimeRequest.FromString,
- response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundTrainTestTimeResponse.SerializeToString,
- ),
- }
- generic_handler = grpc.method_handlers_generic_handler(
- 'easyfl.pb.TrackingService', rpc_method_handlers)
- server.add_generic_rpc_handlers((generic_handler,))
- # This class is part of an EXPERIMENTAL API.
- class TrackingService(object):
- """Missing associated documentation comment in .proto file."""
- @staticmethod
- def TrackTaskMetric(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, '/easyfl.pb.TrackingService/TrackTaskMetric',
- easyfl_dot_pb_dot_tracking__service__pb2.TrackTaskMetricRequest.SerializeToString,
- easyfl_dot_pb_dot_tracking__service__pb2.TrackTaskMetricResponse.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def TrackRoundMetric(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, '/easyfl.pb.TrackingService/TrackRoundMetric',
- easyfl_dot_pb_dot_tracking__service__pb2.TrackRoundMetricRequest.SerializeToString,
- easyfl_dot_pb_dot_tracking__service__pb2.TrackRoundMetricResponse.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def TrackClientMetric(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, '/easyfl.pb.TrackingService/TrackClientMetric',
- easyfl_dot_pb_dot_tracking__service__pb2.TrackClientMetricRequest.SerializeToString,
- easyfl_dot_pb_dot_tracking__service__pb2.TrackClientMetricResponse.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def TrackClientTrainMetric(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, '/easyfl.pb.TrackingService/TrackClientTrainMetric',
- easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTrainMetricRequest.SerializeToString,
- easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTrainMetricResponse.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def TrackClientTestMetric(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, '/easyfl.pb.TrackingService/TrackClientTestMetric',
- easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTestMetricRequest.SerializeToString,
- easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTestMetricResponse.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def GetRoundMetrics(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, '/easyfl.pb.TrackingService/GetRoundMetrics',
- easyfl_dot_pb_dot_tracking__service__pb2.GetRoundMetricsRequest.SerializeToString,
- easyfl_dot_pb_dot_tracking__service__pb2.GetRoundMetricsResponse.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def GetClientMetrics(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, '/easyfl.pb.TrackingService/GetClientMetrics',
- easyfl_dot_pb_dot_tracking__service__pb2.GetClientMetricsRequest.SerializeToString,
- easyfl_dot_pb_dot_tracking__service__pb2.GetClientMetricsResponse.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
- @staticmethod
- def GetRoundTrainTestTime(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, '/easyfl.pb.TrackingService/GetRoundTrainTestTime',
- easyfl_dot_pb_dot_tracking__service__pb2.GetRoundTrainTestTimeRequest.SerializeToString,
- easyfl_dot_pb_dot_tracking__service__pb2.GetRoundTrainTestTimeResponse.FromString,
- options, channel_credentials,
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|