Skip to content

Base pb2 grpc

Client and server classes corresponding to protobuf-defined services.

Base

Bases: object

Missing associated documentation comment in .proto file.

BaseServicer

Bases: object

Missing associated documentation comment in .proto file.

callback(request, context)

Use this function to wait for server information.

Source code in iflearner/communication/base/base_pb2_grpc.py
def callback(self, request, context):
    """Use this function to wait for server information.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

post(request, context)

Use this function to transport information asynchronously.

Source code in iflearner/communication/base/base_pb2_grpc.py
def post(self, request, context):
    """Use this function to transport information asynchronously.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

send(request, context)

Use this function to transport information synchronously.

Source code in iflearner/communication/base/base_pb2_grpc.py
def send(self, request, context):
    """Use this function to transport information synchronously.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

BaseStub(channel)

Bases: object

Missing associated documentation comment in .proto file.

Parameters:

Name Type Description Default
channel

A grpc.Channel.

required
Source code in iflearner/communication/base/base_pb2_grpc.py
def __init__(self, channel):
    """Constructor.

    Args:
        channel: A grpc.Channel.
    """
    self.send = channel.unary_unary(
            '/Base/send',
            request_serializer=base__pb2.BaseRequest.SerializeToString,
            response_deserializer=base__pb2.BaseResponse.FromString,
            )
    self.post = channel.unary_unary(
            '/Base/post',
            request_serializer=base__pb2.BaseRequest.SerializeToString,
            response_deserializer=base__pb2.BaseResponse.FromString,
            )
    self.callback = channel.unary_unary(
            '/Base/callback',
            request_serializer=base__pb2.BaseRequest.SerializeToString,
            response_deserializer=base__pb2.BaseResponse.FromString,
            )