mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Several improvement and adjustments to the Python documentation - applied autopep8 - add summary example - use references to reference other classes and methods
64 lines
2.5 KiB
Python
64 lines
2.5 KiB
Python
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
import grpc
|
|
|
|
import SimulationWell_pb2 as SimulationWell__pb2
|
|
|
|
|
|
class SimulationWellStub(object):
|
|
# missing associated documentation comment in .proto file
|
|
pass
|
|
|
|
def __init__(self, channel):
|
|
"""Constructor.
|
|
|
|
Args:
|
|
channel: A grpc.Channel.
|
|
"""
|
|
self.GetSimulationWellStatus = channel.unary_unary(
|
|
'/rips.SimulationWell/GetSimulationWellStatus',
|
|
request_serializer=SimulationWell__pb2.SimulationWellRequest.SerializeToString,
|
|
response_deserializer=SimulationWell__pb2.SimulationWellStatus.FromString,
|
|
)
|
|
self.GetSimulationWellCells = channel.unary_unary(
|
|
'/rips.SimulationWell/GetSimulationWellCells',
|
|
request_serializer=SimulationWell__pb2.SimulationWellRequest.SerializeToString,
|
|
response_deserializer=SimulationWell__pb2.SimulationWellCellInfoArray.FromString,
|
|
)
|
|
|
|
|
|
class SimulationWellServicer(object):
|
|
# missing associated documentation comment in .proto file
|
|
pass
|
|
|
|
def GetSimulationWellStatus(self, request, context):
|
|
# missing associated documentation comment in .proto file
|
|
pass
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def GetSimulationWellCells(self, request, context):
|
|
# missing associated documentation comment in .proto file
|
|
pass
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
|
|
def add_SimulationWellServicer_to_server(servicer, server):
|
|
rpc_method_handlers = {
|
|
'GetSimulationWellStatus': grpc.unary_unary_rpc_method_handler(
|
|
servicer.GetSimulationWellStatus,
|
|
request_deserializer=SimulationWell__pb2.SimulationWellRequest.FromString,
|
|
response_serializer=SimulationWell__pb2.SimulationWellStatus.SerializeToString,
|
|
),
|
|
'GetSimulationWellCells': grpc.unary_unary_rpc_method_handler(
|
|
servicer.GetSimulationWellCells,
|
|
request_deserializer=SimulationWell__pb2.SimulationWellRequest.FromString,
|
|
response_serializer=SimulationWell__pb2.SimulationWellCellInfoArray.SerializeToString,
|
|
),
|
|
}
|
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
'rips.SimulationWell', rpc_method_handlers)
|
|
server.add_generic_rpc_handlers((generic_handler,))
|