public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'hosts', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)), 2 => array('var' => 'names', 'type' => TType::LST, 'etype' => TType::STRING, 'elem' => array('type' => TType::STRING)), 3 => array('var' => 'offset', 'type' => TType::I64), 4 => array('var' => 'length', 'type' => TType::I64));
     }
     if (is_array($vals)) {
         if (isset($vals['hosts'])) {
             $this->hosts = $vals['hosts'];
         }
         if (isset($vals['names'])) {
             $this->names = $vals['names'];
         }
         if (isset($vals['offset'])) {
             $this->offset = $vals['offset'];
         }
         if (isset($vals['length'])) {
             $this->length = $vals['length'];
         }
     }
 }