rv.data.LeaveBreadcrumb
*/
class LeaveBreadcrumb extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.LeaveBreadcrumb.Type type = 1;
*/
protected $type = 0;
/**
* Generated from protobuf field string description = 2;
*/
protected $description = '';
/**
* Generated from protobuf field repeated .rv.data.LeaveBreadcrumb.MetadataEntry metadata = 3;
*/
private $metadata;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $type
* @type string $description
* @type array<\Rv\Data\LeaveBreadcrumb\MetadataEntry>|\Google\Protobuf\Internal\RepeatedField $metadata
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProCore::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.LeaveBreadcrumb.Type type = 1;
* @return int
*/
public function getType()
{
return $this->type;
}
/**
* Generated from protobuf field .rv.data.LeaveBreadcrumb.Type type = 1;
* @param int $var
* @return $this
*/
public function setType($var)
{
GPBUtil::checkEnum($var, \Rv\Data\LeaveBreadcrumb\Type::class);
$this->type = $var;
return $this;
}
/**
* Generated from protobuf field string description = 2;
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Generated from protobuf field string description = 2;
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
/**
* Generated from protobuf field repeated .rv.data.LeaveBreadcrumb.MetadataEntry metadata = 3;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Generated from protobuf field repeated .rv.data.LeaveBreadcrumb.MetadataEntry metadata = 3;
* @param array<\Rv\Data\LeaveBreadcrumb\MetadataEntry>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setMetadata($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\LeaveBreadcrumb\MetadataEntry::class);
$this->metadata = $arr;
return $this;
}
}