示例#1
0
 def PackRequest(self,
                 request: memory_pb2.ProcessScanRequest) -> memory_pb2.Request:
   return memory_pb2.Request(process_scan_request=request)
示例#2
0
 def PackRequest(
     self, request: memory_pb2.UploadSignatureRequest) -> memory_pb2.Request:
   return memory_pb2.Request(upload_signature_request=request)
示例#3
0
 def Recv(self) -> memory_pb2.Request:
     raw_request, _ = self._connection.Recv()
     request = memory_pb2.Request()
     request.ParseFromString(raw_request)
     return request