Exemplo n.º 1
0
 public function read($input)
 {
     $xfer = 0;
     $fname = null;
     $ftype = 0;
     $fid = 0;
     $xfer += $input->readStructBegin($fname);
     while (true) {
         $xfer += $input->readFieldBegin($fname, $ftype, $fid);
         if ($ftype == TType::STOP) {
             break;
         }
         switch ($fid) {
             case 1:
                 if ($ftype == TType::STRING) {
                     $xfer += $input->readString($this->experimentID);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 2:
                 if ($ftype == TType::STRING) {
                     $xfer += $input->readString($this->projectID);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 3:
                 if ($ftype == TType::I64) {
                     $xfer += $input->readI64($this->creationTime);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 4:
                 if ($ftype == TType::STRING) {
                     $xfer += $input->readString($this->userName);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 5:
                 if ($ftype == TType::STRING) {
                     $xfer += $input->readString($this->name);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 6:
                 if ($ftype == TType::STRING) {
                     $xfer += $input->readString($this->description);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 7:
                 if ($ftype == TType::STRING) {
                     $xfer += $input->readString($this->applicationId);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 8:
                 if ($ftype == TType::STRING) {
                     $xfer += $input->readString($this->applicationVersion);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 9:
                 if ($ftype == TType::STRING) {
                     $xfer += $input->readString($this->workflowTemplateId);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 10:
                 if ($ftype == TType::STRING) {
                     $xfer += $input->readString($this->workflowTemplateVersion);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 11:
                 if ($ftype == TType::STRING) {
                     $xfer += $input->readString($this->gatewayExecutionId);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 12:
                 if ($ftype == TType::BOOL) {
                     $xfer += $input->readBool($this->enableEmailNotification);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 13:
                 if ($ftype == TType::LST) {
                     $this->emailAddresses = array();
                     $_size91 = 0;
                     $_etype94 = 0;
                     $xfer += $input->readListBegin($_etype94, $_size91);
                     for ($_i95 = 0; $_i95 < $_size91; ++$_i95) {
                         $elem96 = null;
                         $xfer += $input->readString($elem96);
                         $this->emailAddresses[] = $elem96;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 14:
                 if ($ftype == TType::STRUCT) {
                     $this->userConfigurationData = new \Airavata\Model\Workspace\Experiment\UserConfigurationData();
                     $xfer += $this->userConfigurationData->read($input);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 15:
                 if ($ftype == TType::STRING) {
                     $xfer += $input->readString($this->workflowExecutionInstanceId);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 16:
                 if ($ftype == TType::LST) {
                     $this->experimentInputs = array();
                     $_size97 = 0;
                     $_etype100 = 0;
                     $xfer += $input->readListBegin($_etype100, $_size97);
                     for ($_i101 = 0; $_i101 < $_size97; ++$_i101) {
                         $elem102 = null;
                         $elem102 = new \Airavata\Model\AppCatalog\AppInterface\InputDataObjectType();
                         $xfer += $elem102->read($input);
                         $this->experimentInputs[] = $elem102;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 17:
                 if ($ftype == TType::LST) {
                     $this->experimentOutputs = array();
                     $_size103 = 0;
                     $_etype106 = 0;
                     $xfer += $input->readListBegin($_etype106, $_size103);
                     for ($_i107 = 0; $_i107 < $_size103; ++$_i107) {
                         $elem108 = null;
                         $elem108 = new \Airavata\Model\AppCatalog\AppInterface\OutputDataObjectType();
                         $xfer += $elem108->read($input);
                         $this->experimentOutputs[] = $elem108;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 18:
                 if ($ftype == TType::STRUCT) {
                     $this->experimentStatus = new \Airavata\Model\Workspace\Experiment\ExperimentStatus();
                     $xfer += $this->experimentStatus->read($input);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 19:
                 if ($ftype == TType::LST) {
                     $this->stateChangeList = array();
                     $_size109 = 0;
                     $_etype112 = 0;
                     $xfer += $input->readListBegin($_etype112, $_size109);
                     for ($_i113 = 0; $_i113 < $_size109; ++$_i113) {
                         $elem114 = null;
                         $elem114 = new \Airavata\Model\Workspace\Experiment\WorkflowNodeStatus();
                         $xfer += $elem114->read($input);
                         $this->stateChangeList[] = $elem114;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 20:
                 if ($ftype == TType::LST) {
                     $this->workflowNodeDetailsList = array();
                     $_size115 = 0;
                     $_etype118 = 0;
                     $xfer += $input->readListBegin($_etype118, $_size115);
                     for ($_i119 = 0; $_i119 < $_size115; ++$_i119) {
                         $elem120 = null;
                         $elem120 = new \Airavata\Model\Workspace\Experiment\WorkflowNodeDetails();
                         $xfer += $elem120->read($input);
                         $this->workflowNodeDetailsList[] = $elem120;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 21:
                 if ($ftype == TType::LST) {
                     $this->errors = array();
                     $_size121 = 0;
                     $_etype124 = 0;
                     $xfer += $input->readListBegin($_etype124, $_size121);
                     for ($_i125 = 0; $_i125 < $_size121; ++$_i125) {
                         $elem126 = null;
                         $elem126 = new \Airavata\Model\Workspace\Experiment\ErrorDetails();
                         $xfer += $elem126->read($input);
                         $this->errors[] = $elem126;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             default:
                 $xfer += $input->skip($ftype);
                 break;
         }
         $xfer += $input->readFieldEnd();
     }
     $xfer += $input->readStructEnd();
     return $xfer;
 }
Exemplo n.º 2
0
 public function read($input)
 {
   $xfer = 0;
   $fname = null;
   $ftype = 0;
   $fid = 0;
   $xfer += $input->readStructBegin($fname);
   while (true)
   {
     $xfer += $input->readFieldBegin($fname, $ftype, $fid);
     if ($ftype == TType::STOP) {
       break;
     }
     switch ($fid)
     {
       case 1:
         if ($ftype == TType::STRING) {
           $xfer += $input->readString($this->experimentID);
         } else {
           $xfer += $input->skip($ftype);
         }
         break;
       case 2:
         if ($ftype == TType::STRING) {
           $xfer += $input->readString($this->projectID);
         } else {
           $xfer += $input->skip($ftype);
         }
         break;
       case 3:
         if ($ftype == TType::I64) {
           $xfer += $input->readI64($this->creationTime);
         } else {
           $xfer += $input->skip($ftype);
         }
         break;
       case 4:
         if ($ftype == TType::STRING) {
           $xfer += $input->readString($this->userName);
         } else {
           $xfer += $input->skip($ftype);
         }
         break;
       case 5:
         if ($ftype == TType::STRING) {
           $xfer += $input->readString($this->name);
         } else {
           $xfer += $input->skip($ftype);
         }
         break;
       case 6:
         if ($ftype == TType::STRING) {
           $xfer += $input->readString($this->description);
         } else {
           $xfer += $input->skip($ftype);
         }
         break;
       case 7:
         if ($ftype == TType::STRING) {
           $xfer += $input->readString($this->applicationId);
         } else {
           $xfer += $input->skip($ftype);
         }
         break;
       case 8:
         if ($ftype == TType::STRUCT) {
           $this->experimentStatus = new \Airavata\Model\Workspace\Experiment\ExperimentStatus();
           $xfer += $this->experimentStatus->read($input);
         } else {
           $xfer += $input->skip($ftype);
         }
         break;
       case 9:
         if ($ftype == TType::LST) {
           $this->errors = array();
           $_size133 = 0;
           $_etype136 = 0;
           $xfer += $input->readListBegin($_etype136, $_size133);
           for ($_i137 = 0; $_i137 < $_size133; ++$_i137)
           {
             $elem138 = null;
             $elem138 = new \Airavata\Model\Workspace\Experiment\ErrorDetails();
             $xfer += $elem138->read($input);
             $this->errors []= $elem138;
           }
           $xfer += $input->readListEnd();
         } else {
           $xfer += $input->skip($ftype);
         }
         break;
       default:
         $xfer += $input->skip($ftype);
         break;
     }
     $xfer += $input->readFieldEnd();
   }
   $xfer += $input->readStructEnd();
   return $xfer;
 }