rv.data.NetworkAPI.IndexOrNameIdentifier
*/
class IndexOrNameIdentifier extends \Google\Protobuf\Internal\Message
{
protected $Component;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $index
* @type string $name
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApi::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field int32 index = 1;
* @return int
*/
public function getIndex()
{
return $this->readOneof(1);
}
public function hasIndex()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field int32 index = 1;
* @param int $var
* @return $this
*/
public function setIndex($var)
{
GPBUtil::checkInt32($var);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field string name = 2;
* @return string
*/
public function getName()
{
return $this->readOneof(2);
}
public function hasName()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field string name = 2;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->writeOneof(2, $var);
return $this;
}
/**
* @return string
*/
public function getComponent()
{
return $this->whichOneof("Component");
}
}