<?php
 
 
 

namespace Google\Protobuf\Internal\UninterpretedOption;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBWire;
use Google\Protobuf\Internal\InputStream;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;










class NamePart extends \Google\Protobuf\Internal\Message
{
    


    protected $name_part = null;
    


    protected $is_extension = null;

    









    public function __construct($data = NULL) {
        \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
        parent::__construct($data);
    }

    



    public function getNamePart()
    {
        return isset($this->name_part) ? $this->name_part : '';
    }

    public function hasNamePart()
    {
        return isset($this->name_part);
    }

    public function clearNamePart()
    {
        unset($this->name_part);
    }

    




    public function setNamePart($var)
    {
        GPBUtil::checkString($var, True);
        $this->name_part = $var;

        return $this;
    }

    



    public function getIsExtension()
    {
        return isset($this->is_extension) ? $this->is_extension : false;
    }

    public function hasIsExtension()
    {
        return isset($this->is_extension);
    }

    public function clearIsExtension()
    {
        unset($this->is_extension);
    }

    




    public function setIsExtension($var)
    {
        GPBUtil::checkBool($var);
        $this->is_extension = $var;

        return $this;
    }

}

