Skip to content

learner_pb2_grpc

Client and server classes corresponding to protobuf-defined services.

LearnerStub(channel)

Bases: object

Missing associated documentation comment in .proto file.

Constructor.

Parameters:

Name Type Description Default
channel Union[Channel, Channel]

A grpc.Channel.

required
Source code in src/flowcean/learners/grpc/_generated/learner_pb2_grpc.py
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
def __init__(self, channel):
    """Constructor.

    Args:
        channel: A grpc.Channel.
    """
    self.Train = channel.unary_stream(
            '/Learner/Train',
            request_serializer=learner__pb2.DataPackage.SerializeToString,
            response_deserializer=learner__pb2.StatusMessage.FromString,
            )
    self.Predict = channel.unary_unary(
            '/Learner/Predict',
            request_serializer=learner__pb2.DataPackage.SerializeToString,
            response_deserializer=learner__pb2.Prediction.FromString,
            )
    self.Export = channel.unary_unary(
            '/Learner/Export',
            request_serializer=learner__pb2.Empty.SerializeToString,
            response_deserializer=learner__pb2.Empty.FromString,
            )

LearnerServicer

Bases: object

Missing associated documentation comment in .proto file.

Train(request, context)

Missing associated documentation comment in .proto file.

Source code in src/flowcean/learners/grpc/_generated/learner_pb2_grpc.py
37
38
39
40
41
def Train(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!')

Predict(request, context)

Missing associated documentation comment in .proto file.

Source code in src/flowcean/learners/grpc/_generated/learner_pb2_grpc.py
43
44
45
46
47
def Predict(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!')

Export(request, context)

Missing associated documentation comment in .proto file.

Source code in src/flowcean/learners/grpc/_generated/learner_pb2_grpc.py
49
50
51
52
53
def Export(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!')

Learner

Bases: object

Missing associated documentation comment in .proto file.