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
133 lines
5.9 KiB
Python
133 lines
5.9 KiB
Python
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
import grpc
|
|
|
|
import Definitions_pb2 as Definitions__pb2
|
|
import Properties_pb2 as Properties__pb2
|
|
|
|
|
|
class PropertiesStub(object):
|
|
# missing associated documentation comment in .proto file
|
|
pass
|
|
|
|
def __init__(self, channel):
|
|
"""Constructor.
|
|
|
|
Args:
|
|
channel: A grpc.Channel.
|
|
"""
|
|
self.GetAvailableProperties = channel.unary_unary(
|
|
'/rips.Properties/GetAvailableProperties',
|
|
request_serializer=Properties__pb2.AvailablePropertiesRequest.SerializeToString,
|
|
response_deserializer=Properties__pb2.AvailableProperties.FromString,
|
|
)
|
|
self.GetActiveCellProperty = channel.unary_stream(
|
|
'/rips.Properties/GetActiveCellProperty',
|
|
request_serializer=Properties__pb2.PropertyRequest.SerializeToString,
|
|
response_deserializer=Properties__pb2.PropertyChunk.FromString,
|
|
)
|
|
self.GetSelectedCellProperty = channel.unary_stream(
|
|
'/rips.Properties/GetSelectedCellProperty',
|
|
request_serializer=Properties__pb2.PropertyRequest.SerializeToString,
|
|
response_deserializer=Properties__pb2.PropertyChunk.FromString,
|
|
)
|
|
self.GetGridProperty = channel.unary_stream(
|
|
'/rips.Properties/GetGridProperty',
|
|
request_serializer=Properties__pb2.PropertyRequest.SerializeToString,
|
|
response_deserializer=Properties__pb2.PropertyChunk.FromString,
|
|
)
|
|
self.SetActiveCellProperty = channel.stream_unary(
|
|
'/rips.Properties/SetActiveCellProperty',
|
|
request_serializer=Properties__pb2.PropertyInputChunk.SerializeToString,
|
|
response_deserializer=Definitions__pb2.ClientToServerStreamReply.FromString,
|
|
)
|
|
self.SetGridProperty = channel.stream_unary(
|
|
'/rips.Properties/SetGridProperty',
|
|
request_serializer=Properties__pb2.PropertyInputChunk.SerializeToString,
|
|
response_deserializer=Definitions__pb2.ClientToServerStreamReply.FromString,
|
|
)
|
|
|
|
|
|
class PropertiesServicer(object):
|
|
# missing associated documentation comment in .proto file
|
|
pass
|
|
|
|
def GetAvailableProperties(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 GetActiveCellProperty(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 GetSelectedCellProperty(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 GetGridProperty(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 SetActiveCellProperty(self, request_iterator, 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 SetGridProperty(self, request_iterator, 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_PropertiesServicer_to_server(servicer, server):
|
|
rpc_method_handlers = {
|
|
'GetAvailableProperties': grpc.unary_unary_rpc_method_handler(
|
|
servicer.GetAvailableProperties,
|
|
request_deserializer=Properties__pb2.AvailablePropertiesRequest.FromString,
|
|
response_serializer=Properties__pb2.AvailableProperties.SerializeToString,
|
|
),
|
|
'GetActiveCellProperty': grpc.unary_stream_rpc_method_handler(
|
|
servicer.GetActiveCellProperty,
|
|
request_deserializer=Properties__pb2.PropertyRequest.FromString,
|
|
response_serializer=Properties__pb2.PropertyChunk.SerializeToString,
|
|
),
|
|
'GetSelectedCellProperty': grpc.unary_stream_rpc_method_handler(
|
|
servicer.GetSelectedCellProperty,
|
|
request_deserializer=Properties__pb2.PropertyRequest.FromString,
|
|
response_serializer=Properties__pb2.PropertyChunk.SerializeToString,
|
|
),
|
|
'GetGridProperty': grpc.unary_stream_rpc_method_handler(
|
|
servicer.GetGridProperty,
|
|
request_deserializer=Properties__pb2.PropertyRequest.FromString,
|
|
response_serializer=Properties__pb2.PropertyChunk.SerializeToString,
|
|
),
|
|
'SetActiveCellProperty': grpc.stream_unary_rpc_method_handler(
|
|
servicer.SetActiveCellProperty,
|
|
request_deserializer=Properties__pb2.PropertyInputChunk.FromString,
|
|
response_serializer=Definitions__pb2.ClientToServerStreamReply.SerializeToString,
|
|
),
|
|
'SetGridProperty': grpc.stream_unary_rpc_method_handler(
|
|
servicer.SetGridProperty,
|
|
request_deserializer=Properties__pb2.PropertyInputChunk.FromString,
|
|
response_serializer=Definitions__pb2.ClientToServerStreamReply.SerializeToString,
|
|
),
|
|
}
|
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
'rips.Properties', rpc_method_handlers)
|
|
server.add_generic_rpc_handlers((generic_handler,))
|