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::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::STRUCT) {
                     $this->userConfigurationData = new \Airavata\Model\Workspace\Experiment\UserConfigurationData();
                     $xfer += $this->userConfigurationData->read($input);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 12:
                 if ($ftype == TType::STRING) {
                     $xfer += $input->readString($this->workflowExecutionInstanceId);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 13:
                 if ($ftype == TType::LST) {
                     $this->experimentInputs = array();
                     $_size84 = 0;
                     $_etype87 = 0;
                     $xfer += $input->readListBegin($_etype87, $_size84);
                     for ($_i88 = 0; $_i88 < $_size84; ++$_i88) {
                         $elem89 = null;
                         $elem89 = new \Airavata\Model\AppCatalog\AppInterface\InputDataObjectType();
                         $xfer += $elem89->read($input);
                         $this->experimentInputs[] = $elem89;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 14:
                 if ($ftype == TType::LST) {
                     $this->experimentOutputs = array();
                     $_size90 = 0;
                     $_etype93 = 0;
                     $xfer += $input->readListBegin($_etype93, $_size90);
                     for ($_i94 = 0; $_i94 < $_size90; ++$_i94) {
                         $elem95 = null;
                         $elem95 = new \Airavata\Model\AppCatalog\AppInterface\OutputDataObjectType();
                         $xfer += $elem95->read($input);
                         $this->experimentOutputs[] = $elem95;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 15:
                 if ($ftype == TType::STRUCT) {
                     $this->experimentStatus = new \Airavata\Model\Workspace\Experiment\ExperimentStatus();
                     $xfer += $this->experimentStatus->read($input);
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 16:
                 if ($ftype == TType::LST) {
                     $this->stateChangeList = array();
                     $_size96 = 0;
                     $_etype99 = 0;
                     $xfer += $input->readListBegin($_etype99, $_size96);
                     for ($_i100 = 0; $_i100 < $_size96; ++$_i100) {
                         $elem101 = null;
                         $elem101 = new \Airavata\Model\Workspace\Experiment\WorkflowNodeStatus();
                         $xfer += $elem101->read($input);
                         $this->stateChangeList[] = $elem101;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 17:
                 if ($ftype == TType::LST) {
                     $this->workflowNodeDetailsList = array();
                     $_size102 = 0;
                     $_etype105 = 0;
                     $xfer += $input->readListBegin($_etype105, $_size102);
                     for ($_i106 = 0; $_i106 < $_size102; ++$_i106) {
                         $elem107 = null;
                         $elem107 = new \Airavata\Model\Workspace\Experiment\WorkflowNodeDetails();
                         $xfer += $elem107->read($input);
                         $this->workflowNodeDetailsList[] = $elem107;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             case 18:
                 if ($ftype == TType::LST) {
                     $this->errors = array();
                     $_size108 = 0;
                     $_etype111 = 0;
                     $xfer += $input->readListBegin($_etype111, $_size108);
                     for ($_i112 = 0; $_i112 < $_size108; ++$_i112) {
                         $elem113 = null;
                         $elem113 = new \Airavata\Model\Workspace\Experiment\ErrorDetails();
                         $xfer += $elem113->read($input);
                         $this->errors[] = $elem113;
                     }
                     $xfer += $input->readListEnd();
                 } else {
                     $xfer += $input->skip($ftype);
                 }
                 break;
             default:
                 $xfer += $input->skip($ftype);
                 break;
         }
         $xfer += $input->readFieldEnd();
     }
     $xfer += $input->readStructEnd();
     return $xfer;
 }