code: public void setResponse(Envelope response) {
      if (response.hasControl() && response.getControl().hasError()) {
        setException(new Exception(response.getControl().getError()));
        return;
      }
      try {
        set(clientMethod.outputParser().parseFrom(response.getPayload()));
        clientLogger.logSuccess(clientMethod);
      } catch (InvalidProtocolBufferException ipbe) {
        setException(ipbe);
      }
    }
docs: Sets the response envelope of this promise.
  
  @param response the envelope of the response.