|
@@ -0,0 +1,132 @@
|
|
|
+# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
|
+"""Client and server classes corresponding to protobuf-defined services."""
|
|
|
+import grpc
|
|
|
+
|
|
|
+import llnwLDS_pb2 as llnwLDS__pb2
|
|
|
+
|
|
|
+
|
|
|
+class LogDeliveryServiceStub(object):
|
|
|
+ """Missing associated documentation comment in .proto file."""
|
|
|
+
|
|
|
+ def __init__(self, channel):
|
|
|
+ """Constructor.
|
|
|
+
|
|
|
+ Args:
|
|
|
+ channel: A grpc.Channel.
|
|
|
+ """
|
|
|
+ self.CreateLDS = channel.unary_unary(
|
|
|
+ '/llnwApi.Delivery.LDS.LogDeliveryService/CreateLDS',
|
|
|
+ request_serializer=llnwLDS__pb2.CreateLDSRequest.SerializeToString,
|
|
|
+ response_deserializer=llnwLDS__pb2.CreateLDSResponse.FromString,
|
|
|
+ )
|
|
|
+ self.DeleteLDS = channel.unary_unary(
|
|
|
+ '/llnwApi.Delivery.LDS.LogDeliveryService/DeleteLDS',
|
|
|
+ request_serializer=llnwLDS__pb2.DeleteLDSRequest.SerializeToString,
|
|
|
+ response_deserializer=llnwLDS__pb2.DeleteLDSResponse.FromString,
|
|
|
+ )
|
|
|
+ self.ListLDS = channel.unary_unary(
|
|
|
+ '/llnwApi.Delivery.LDS.LogDeliveryService/ListLDS',
|
|
|
+ request_serializer=llnwLDS__pb2.ListLDSRequest.SerializeToString,
|
|
|
+ response_deserializer=llnwLDS__pb2.ListLDSResponse.FromString,
|
|
|
+ )
|
|
|
+
|
|
|
+
|
|
|
+class LogDeliveryServiceServicer(object):
|
|
|
+ """Missing associated documentation comment in .proto file."""
|
|
|
+
|
|
|
+ def CreateLDS(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!')
|
|
|
+
|
|
|
+ def DeleteLDS(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!')
|
|
|
+
|
|
|
+ def ListLDS(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!')
|
|
|
+
|
|
|
+
|
|
|
+def add_LogDeliveryServiceServicer_to_server(servicer, server):
|
|
|
+ rpc_method_handlers = {
|
|
|
+ 'CreateLDS': grpc.unary_unary_rpc_method_handler(
|
|
|
+ servicer.CreateLDS,
|
|
|
+ request_deserializer=llnwLDS__pb2.CreateLDSRequest.FromString,
|
|
|
+ response_serializer=llnwLDS__pb2.CreateLDSResponse.SerializeToString,
|
|
|
+ ),
|
|
|
+ 'DeleteLDS': grpc.unary_unary_rpc_method_handler(
|
|
|
+ servicer.DeleteLDS,
|
|
|
+ request_deserializer=llnwLDS__pb2.DeleteLDSRequest.FromString,
|
|
|
+ response_serializer=llnwLDS__pb2.DeleteLDSResponse.SerializeToString,
|
|
|
+ ),
|
|
|
+ 'ListLDS': grpc.unary_unary_rpc_method_handler(
|
|
|
+ servicer.ListLDS,
|
|
|
+ request_deserializer=llnwLDS__pb2.ListLDSRequest.FromString,
|
|
|
+ response_serializer=llnwLDS__pb2.ListLDSResponse.SerializeToString,
|
|
|
+ ),
|
|
|
+ }
|
|
|
+ generic_handler = grpc.method_handlers_generic_handler(
|
|
|
+ 'llnwApi.Delivery.LDS.LogDeliveryService', rpc_method_handlers)
|
|
|
+ server.add_generic_rpc_handlers((generic_handler,))
|
|
|
+
|
|
|
+
|
|
|
+ # This class is part of an EXPERIMENTAL API.
|
|
|
+class LogDeliveryService(object):
|
|
|
+ """Missing associated documentation comment in .proto file."""
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def CreateLDS(request,
|
|
|
+ target,
|
|
|
+ options=(),
|
|
|
+ channel_credentials=None,
|
|
|
+ call_credentials=None,
|
|
|
+ insecure=False,
|
|
|
+ compression=None,
|
|
|
+ wait_for_ready=None,
|
|
|
+ timeout=None,
|
|
|
+ metadata=None):
|
|
|
+ return grpc.experimental.unary_unary(request, target, '/llnwApi.Delivery.LDS.LogDeliveryService/CreateLDS',
|
|
|
+ llnwLDS__pb2.CreateLDSRequest.SerializeToString,
|
|
|
+ llnwLDS__pb2.CreateLDSResponse.FromString,
|
|
|
+ options, channel_credentials,
|
|
|
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def DeleteLDS(request,
|
|
|
+ target,
|
|
|
+ options=(),
|
|
|
+ channel_credentials=None,
|
|
|
+ call_credentials=None,
|
|
|
+ insecure=False,
|
|
|
+ compression=None,
|
|
|
+ wait_for_ready=None,
|
|
|
+ timeout=None,
|
|
|
+ metadata=None):
|
|
|
+ return grpc.experimental.unary_unary(request, target, '/llnwApi.Delivery.LDS.LogDeliveryService/DeleteLDS',
|
|
|
+ llnwLDS__pb2.DeleteLDSRequest.SerializeToString,
|
|
|
+ llnwLDS__pb2.DeleteLDSResponse.FromString,
|
|
|
+ options, channel_credentials,
|
|
|
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def ListLDS(request,
|
|
|
+ target,
|
|
|
+ options=(),
|
|
|
+ channel_credentials=None,
|
|
|
+ call_credentials=None,
|
|
|
+ insecure=False,
|
|
|
+ compression=None,
|
|
|
+ wait_for_ready=None,
|
|
|
+ timeout=None,
|
|
|
+ metadata=None):
|
|
|
+ return grpc.experimental.unary_unary(request, target, '/llnwApi.Delivery.LDS.LogDeliveryService/ListLDS',
|
|
|
+ llnwLDS__pb2.ListLDSRequest.SerializeToString,
|
|
|
+ llnwLDS__pb2.ListLDSResponse.FromString,
|
|
|
+ options, channel_credentials,
|
|
|
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|