Exemple #1
0
def _empty_unary(stub):
  with stub:
    response = stub.EmptyCall(empty_pb2.Empty(), _TIMEOUT)
    if not isinstance(response, empty_pb2.Empty):
      raise TypeError(
          'response is of type "%s", not empty_pb2.Empty!', type(response))
Exemple #2
0
def _empty_call(request, unused_context):
  return empty_pb2.Empty()
Exemple #3
0
 def EmptyCall(self, request, context):
     return empty_pb2.Empty()