* The name of the uninterpreted option. Each string represents a segment in * a dot-separated name. is_extension is true iff a segment represents an * extension (denoted with parentheses in options specs in .proto files). * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents * "foo.(bar.baz).qux". * * * Protobuf type google.protobuf.UninterpretedOption.NamePart */ class UninterpretedOption_NamePart extends \Google\Protobuf\Internal\Message { /** * required string name_part = 1; */ private $name_part = ''; private $has_name_part = false; /** * required bool is_extension = 2; */ private $is_extension = false; private $has_is_extension = false; public function __construct() { \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); parent::__construct(); } /** * required string name_part = 1; */ public function getNamePart() { return $this->name_part; } /** * required string name_part = 1; */ public function setNamePart($var) { GPBUtil::checkString($var, True); $this->name_part = $var; $this->has_name_part = true; } public function hasNamePart() { return $this->has_name_part; } /** * required bool is_extension = 2; */ public function getIsExtension() { return $this->is_extension; } /** * required bool is_extension = 2; */ public function setIsExtension($var) { GPBUtil::checkBool($var); $this->is_extension = $var; $this->has_is_extension = true; } public function hasIsExtension() { return $this->has_is_extension; } }