def PackRequest(self, request: memory_pb2.ProcessScanRequest) -> memory_pb2.Request: return memory_pb2.Request(process_scan_request=request)
def PackRequest( self, request: memory_pb2.UploadSignatureRequest) -> memory_pb2.Request: return memory_pb2.Request(upload_signature_request=request)
def Recv(self) -> memory_pb2.Request: raw_request, _ = self._connection.Recv() request = memory_pb2.Request() request.ParseFromString(raw_request) return request