public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'name', 'type' => TType::STRING), 2 => array('var' => 'description', 'type' => TType::STRING));
     }
     if (is_array($vals)) {
         if (isset($vals['name'])) {
             $this->name = $vals['name'];
         }
         if (isset($vals['description'])) {
             $this->description = $vals['description'];
         }
     }
 }
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'name', 'type' => TType::STRING), 2 => array('var' => 'description', 'type' => TType::STRING), 3 => array('var' => 'locationUri', 'type' => TType::STRING), 4 => array('var' => 'parameters', 'type' => TType::MAP, 'ktype' => TType::STRING, 'vtype' => TType::STRING, 'key' => array('type' => TType::STRING), 'val' => array('type' => TType::STRING)), 5 => array('var' => 'privileges', 'type' => TType::STRUCT, 'class' => 'metastore_PrincipalPrivilegeSet'));
     }
     if (is_array($vals)) {
         if (isset($vals['name'])) {
             $this->name = $vals['name'];
         }
         if (isset($vals['description'])) {
             $this->description = $vals['description'];
         }
         if (isset($vals['locationUri'])) {
             $this->locationUri = $vals['locationUri'];
         }
         if (isset($vals['parameters'])) {
             $this->parameters = $vals['parameters'];
         }
         if (isset($vals['privileges'])) {
             $this->privileges = $vals['privileges'];
         }
     }
 }