Example #1
0
 public function recv_Log()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'scribe_Log_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new scribe_Log_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     throw new Exception("Log failed: unknown result");
 }
Example #2
0
 public function recv_getStr()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\TestService_getStr_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \TestService_getStr_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     throw new \Exception("getStr failed: unknown result");
 }
Example #3
0
File: rpyd.php Project: hammer/rpyd
 public function recv_lm()
 {
     $rseqid = 0;
     $fname = null;
     $mtype = 0;
     $this->input_->readMessageBegin($fname, $mtype, $rseqid);
     if ($mtype == TMessageType::EXCEPTION) {
         $x = new TApplicationException();
         $x->read($this->input_);
         $this->input_->readMessageEnd();
         throw $x;
     }
     $result = new rpyd_lm_result();
     $result->read($this->input_);
     $this->input_->readMessageEnd();
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->ouch !== null) {
         throw $result->ouch;
     }
     throw new Exception("lm failed: unknown result");
 }
Example #4
0
 public function recv_getNoteStoreUrl()
 {
     $bin_accel = $this->input_ instanceof \TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\EDAM\\UserStore\\UserStore_getNoteStoreUrl_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == \TMessageType::EXCEPTION) {
             $x = new \TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \EDAM\UserStore\UserStore_getNoteStoreUrl_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->userException !== null) {
         throw $result->userException;
     }
     if ($result->systemException !== null) {
         throw $result->systemException;
     }
     throw new \Exception("getNoteStoreUrl failed: unknown result");
 }
Example #5
0
 public function recv_drop_table()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'Hypertable_ThriftGen_ClientService_drop_table_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new Hypertable_ThriftGen_ClientService_drop_table_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->e !== null) {
         throw $result->e;
     }
     return;
 }
Example #6
0
 public function recv_cancel_delegation_token()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_cancel_delegation_token_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new ThriftHiveMetastore_cancel_delegation_token_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->o1 !== null) {
         throw $result->o1;
     }
     return;
 }
 public function recv_batch_run()
 {
     $rseqid = 0;
     $fname = null;
     $mtype = 0;
     $this->input_->readMessageBegin($fname, $mtype, $rseqid);
     if ($mtype == TMessageType::EXCEPTION) {
         $x = new TApplicationException();
         $x->read($this->input_);
         $this->input_->readMessageEnd();
         throw $x;
     }
     $result = new api10_FacebookApi10_batch_run_result();
     $result->read($this->input_);
     $this->input_->readMessageEnd();
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->error_response !== null) {
         throw $result->error_response;
     }
     throw new Exception("batch_run failed: unknown result");
 }
 public function recv_set_cql_version()
 {
     $bin_accel = $this->input_ instanceof \TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\cassandra\\Cassandra_set_cql_version_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == \TMessageType::EXCEPTION) {
             $x = new \TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \cassandra\Cassandra_set_cql_version_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->ire !== null) {
         throw $result->ire;
     }
     return;
 }
 public function recv_li_RemoveAll()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'wthugelistint_THugeListInt_DataService_li_RemoveAll_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new wthugelistint_THugeListInt_DataService_li_RemoveAll_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->ex1 !== null) {
         throw $result->ex1;
     }
     if ($result->ex2 !== null) {
         throw $result->ex2;
     }
     throw new Exception("li_RemoveAll failed: unknown result");
 }
Example #10
0
 public function recv_removeIdFromWhitelist()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'vng_zingme_payment_thrift_TAppServer_removeIdFromWhitelist_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new vng_zingme_payment_thrift_TAppServer_removeIdFromWhitelist_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     return;
 }
  public function recv_partition_name_to_spec()
  {
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_partition_name_to_spec_result', $this->input_->isStrictRead());
    else
    {
      $rseqid = 0;
      $fname = null;
      $mtype = 0;

      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
      if ($mtype == TMessageType::EXCEPTION) {
        $x = new TApplicationException();
        $x->read($this->input_);
        $this->input_->readMessageEnd();
        throw $x;
      }
      $result = new metastore_ThriftHiveMetastore_partition_name_to_spec_result();
      $result->read($this->input_);
      $this->input_->readMessageEnd();
    }
    if ($result->success !== null) {
      return $result->success;
    }
    if ($result->o1 !== null) {
      throw $result->o1;
    }
    throw new Exception("partition_name_to_spec failed: unknown result");
  }
Example #12
0
 public function recv_ping()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'OpenZWave_RemoteManager_ping_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new OpenZWave_RemoteManager_ping_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     return;
 }