rv.data.NetworkAPI.Action.API_Macro
*/
class API_Macro extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.NetworkAPI.IndexOrNameIdentifier identifier = 1;
*/
protected $identifier = null;
/**
* Generated from protobuf field repeated .rv.data.NetworkAPI.IndexOrNameIdentifier index_path_components = 2;
*/
private $index_path_components;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\NetworkAPI\IndexOrNameIdentifier $identifier
* @type array<\Rv\Data\NetworkAPI\IndexOrNameIdentifier>|\Google\Protobuf\Internal\RepeatedField $index_path_components
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApi::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.NetworkAPI.IndexOrNameIdentifier identifier = 1;
* @return \Rv\Data\NetworkAPI\IndexOrNameIdentifier|null
*/
public function getIdentifier()
{
return $this->identifier;
}
public function hasIdentifier()
{
return isset($this->identifier);
}
public function clearIdentifier()
{
unset($this->identifier);
}
/**
* Generated from protobuf field .rv.data.NetworkAPI.IndexOrNameIdentifier identifier = 1;
* @param \Rv\Data\NetworkAPI\IndexOrNameIdentifier $var
* @return $this
*/
public function setIdentifier($var)
{
GPBUtil::checkMessage($var, \Rv\Data\NetworkAPI\IndexOrNameIdentifier::class);
$this->identifier = $var;
return $this;
}
/**
* Generated from protobuf field repeated .rv.data.NetworkAPI.IndexOrNameIdentifier index_path_components = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getIndexPathComponents()
{
return $this->index_path_components;
}
/**
* Generated from protobuf field repeated .rv.data.NetworkAPI.IndexOrNameIdentifier index_path_components = 2;
* @param array<\Rv\Data\NetworkAPI\IndexOrNameIdentifier>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setIndexPathComponents($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\NetworkAPI\IndexOrNameIdentifier::class);
$this->index_path_components = $arr;
return $this;
}
}