* A message representing a option the parser does not recognize. This only
* appears in options protos created by the compiler::Parser class.
* DescriptorPool resolves these when building Descriptor objects. Therefore,
* options protos in descriptor objects (e.g. returned by Descriptor::options(),
* or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
* in them.
*
*
* Protobuf type google.protobuf.UninterpretedOption
*/
class UninterpretedOption extends \Google\Protobuf\Internal\Message
{
/**
* repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
*/
private $name;
private $has_name = false;
/**
*
* The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. ** *
optional string identifier_value = 3;
*/
private $identifier_value = '';
private $has_identifier_value = false;
/**
* optional uint64 positive_int_value = 4;
*/
private $positive_int_value = 0;
private $has_positive_int_value = false;
/**
* optional int64 negative_int_value = 5;
*/
private $negative_int_value = 0;
private $has_negative_int_value = false;
/**
* optional double double_value = 6;
*/
private $double_value = 0.0;
private $has_double_value = false;
/**
* optional bytes string_value = 7;
*/
private $string_value = '';
private $has_string_value = false;
/**
* optional string aggregate_value = 8;
*/
private $aggregate_value = '';
private $has_aggregate_value = false;
public function __construct() {
\GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
parent::__construct();
}
/**
* repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
*/
public function getName()
{
return $this->name;
}
/**
* repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
*/
public function setName(&$var)
{
GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption_NamePart::class);
$this->name = $var;
$this->has_name = true;
}
public function hasName()
{
return $this->has_name;
}
/**
* * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. ** *
optional string identifier_value = 3;
*/
public function getIdentifierValue()
{
return $this->identifier_value;
}
/**
* * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. ** *
optional string identifier_value = 3;
*/
public function setIdentifierValue($var)
{
GPBUtil::checkString($var, True);
$this->identifier_value = $var;
$this->has_identifier_value = true;
}
public function hasIdentifierValue()
{
return $this->has_identifier_value;
}
/**
* optional uint64 positive_int_value = 4;
*/
public function getPositiveIntValue()
{
return $this->positive_int_value;
}
/**
* optional uint64 positive_int_value = 4;
*/
public function setPositiveIntValue($var)
{
GPBUtil::checkUint64($var);
$this->positive_int_value = $var;
$this->has_positive_int_value = true;
}
public function hasPositiveIntValue()
{
return $this->has_positive_int_value;
}
/**
* optional int64 negative_int_value = 5;
*/
public function getNegativeIntValue()
{
return $this->negative_int_value;
}
/**
* optional int64 negative_int_value = 5;
*/
public function setNegativeIntValue($var)
{
GPBUtil::checkInt64($var);
$this->negative_int_value = $var;
$this->has_negative_int_value = true;
}
public function hasNegativeIntValue()
{
return $this->has_negative_int_value;
}
/**
* optional double double_value = 6;
*/
public function getDoubleValue()
{
return $this->double_value;
}
/**
* optional double double_value = 6;
*/
public function setDoubleValue($var)
{
GPBUtil::checkDouble($var);
$this->double_value = $var;
$this->has_double_value = true;
}
public function hasDoubleValue()
{
return $this->has_double_value;
}
/**
* optional bytes string_value = 7;
*/
public function getStringValue()
{
return $this->string_value;
}
/**
* optional bytes string_value = 7;
*/
public function setStringValue($var)
{
GPBUtil::checkString($var, False);
$this->string_value = $var;
$this->has_string_value = true;
}
public function hasStringValue()
{
return $this->has_string_value;
}
/**
* optional string aggregate_value = 8;
*/
public function getAggregateValue()
{
return $this->aggregate_value;
}
/**
* optional string aggregate_value = 8;
*/
public function setAggregateValue($var)
{
GPBUtil::checkString($var, True);
$this->aggregate_value = $var;
$this->has_aggregate_value = true;
}
public function hasAggregateValue()
{
return $this->has_aggregate_value;
}
}