public function write($output)
{
$xfer = 0;
$xfer += $output->writeStructBegin('NamespaceListing');
if ($this->name !== null) {
$xfer += $output->writeFieldBegin('name', TType::STRING, 1);
$xfer += $output->writeString($this->name);
$xfer += $output->writeFieldEnd();
}
if ($this->is_namespace !== null) {
$xfer += $output->writeFieldBegin('is_namespace', TType::BOOL, 2);
$xfer += $output->writeBool($this->is_namespace);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}