ResInsight/docs/rips/generated/PdmObject_pb2_grpc.py

167 lines
7.7 KiB
Python
Raw Normal View History

2020-03-20 13:01:04 -05:00
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import Definitions_pb2 as Definitions__pb2
import PdmObject_pb2 as PdmObject__pb2
class PdmObjectServiceStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetDescendantPdmObjects = channel.unary_unary(
'/rips.PdmObjectService/GetDescendantPdmObjects',
request_serializer=PdmObject__pb2.PdmDescendantObjectRequest.SerializeToString,
response_deserializer=PdmObject__pb2.PdmObjectArray.FromString,
2020-03-20 13:01:04 -05:00
)
self.GetChildPdmObjects = channel.unary_unary(
'/rips.PdmObjectService/GetChildPdmObjects',
request_serializer=PdmObject__pb2.PdmChildObjectRequest.SerializeToString,
response_deserializer=PdmObject__pb2.PdmObjectArray.FromString,
2020-03-20 13:01:04 -05:00
)
self.GetAncestorPdmObject = channel.unary_unary(
'/rips.PdmObjectService/GetAncestorPdmObject',
request_serializer=PdmObject__pb2.PdmParentObjectRequest.SerializeToString,
response_deserializer=PdmObject__pb2.PdmObject.FromString,
2020-03-20 13:01:04 -05:00
)
self.CreateChildPdmObject = channel.unary_unary(
'/rips.PdmObjectService/CreateChildPdmObject',
request_serializer=PdmObject__pb2.CreatePdmChildObjectRequest.SerializeToString,
response_deserializer=PdmObject__pb2.PdmObject.FromString,
2020-03-20 13:01:04 -05:00
)
self.UpdateExistingPdmObject = channel.unary_unary(
'/rips.PdmObjectService/UpdateExistingPdmObject',
request_serializer=PdmObject__pb2.PdmObject.SerializeToString,
response_deserializer=Definitions__pb2.Empty.FromString,
2020-03-20 13:01:04 -05:00
)
self.CallPdmObjectGetter = channel.unary_stream(
'/rips.PdmObjectService/CallPdmObjectGetter',
request_serializer=PdmObject__pb2.PdmObjectGetterRequest.SerializeToString,
response_deserializer=PdmObject__pb2.PdmObjectGetterReply.FromString,
2020-03-20 13:01:04 -05:00
)
self.CallPdmObjectSetter = channel.stream_unary(
'/rips.PdmObjectService/CallPdmObjectSetter',
request_serializer=PdmObject__pb2.PdmObjectSetterChunk.SerializeToString,
response_deserializer=Definitions__pb2.ClientToServerStreamReply.FromString,
2020-03-20 13:01:04 -05:00
)
self.CallPdmObjectMethod = channel.unary_unary(
'/rips.PdmObjectService/CallPdmObjectMethod',
request_serializer=PdmObject__pb2.PdmObjectMethodRequest.SerializeToString,
response_deserializer=PdmObject__pb2.PdmObject.FromString,
2020-03-20 13:01:04 -05:00
)
class PdmObjectServiceServicer(object):
# missing associated documentation comment in .proto file
pass
def GetDescendantPdmObjects(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 GetChildPdmObjects(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 GetAncestorPdmObject(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 CreateChildPdmObject(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 UpdateExistingPdmObject(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 CallPdmObjectGetter(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 CallPdmObjectSetter(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 CallPdmObjectMethod(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!')
2020-03-20 13:01:04 -05:00
def add_PdmObjectServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetDescendantPdmObjects': grpc.unary_unary_rpc_method_handler(
servicer.GetDescendantPdmObjects,
request_deserializer=PdmObject__pb2.PdmDescendantObjectRequest.FromString,
response_serializer=PdmObject__pb2.PdmObjectArray.SerializeToString,
),
'GetChildPdmObjects': grpc.unary_unary_rpc_method_handler(
servicer.GetChildPdmObjects,
request_deserializer=PdmObject__pb2.PdmChildObjectRequest.FromString,
response_serializer=PdmObject__pb2.PdmObjectArray.SerializeToString,
),
'GetAncestorPdmObject': grpc.unary_unary_rpc_method_handler(
servicer.GetAncestorPdmObject,
request_deserializer=PdmObject__pb2.PdmParentObjectRequest.FromString,
response_serializer=PdmObject__pb2.PdmObject.SerializeToString,
),
'CreateChildPdmObject': grpc.unary_unary_rpc_method_handler(
servicer.CreateChildPdmObject,
request_deserializer=PdmObject__pb2.CreatePdmChildObjectRequest.FromString,
response_serializer=PdmObject__pb2.PdmObject.SerializeToString,
),
'UpdateExistingPdmObject': grpc.unary_unary_rpc_method_handler(
servicer.UpdateExistingPdmObject,
request_deserializer=PdmObject__pb2.PdmObject.FromString,
response_serializer=Definitions__pb2.Empty.SerializeToString,
),
'CallPdmObjectGetter': grpc.unary_stream_rpc_method_handler(
servicer.CallPdmObjectGetter,
request_deserializer=PdmObject__pb2.PdmObjectGetterRequest.FromString,
response_serializer=PdmObject__pb2.PdmObjectGetterReply.SerializeToString,
),
'CallPdmObjectSetter': grpc.stream_unary_rpc_method_handler(
servicer.CallPdmObjectSetter,
request_deserializer=PdmObject__pb2.PdmObjectSetterChunk.FromString,
response_serializer=Definitions__pb2.ClientToServerStreamReply.SerializeToString,
),
'CallPdmObjectMethod': grpc.unary_unary_rpc_method_handler(
servicer.CallPdmObjectMethod,
request_deserializer=PdmObject__pb2.PdmObjectMethodRequest.FromString,
response_serializer=PdmObject__pb2.PdmObject.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'rips.PdmObjectService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))