rv.data.URL
*/
class URL extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.URL.Platform platform = 3;
*/
protected $platform = 0;
protected $Storage;
protected $RelativeFilePath;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $platform
* @type string $absolute_string
* @type string $relative_path
* @type \Rv\Data\URL\LocalRelativePath $local
* @type \Rv\Data\URL\ExternalRelativePath $external
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Url::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.URL.Platform platform = 3;
* @return int
*/
public function getPlatform()
{
return $this->platform;
}
/**
* Generated from protobuf field .rv.data.URL.Platform platform = 3;
* @param int $var
* @return $this
*/
public function setPlatform($var)
{
GPBUtil::checkEnum($var, \Rv\Data\URL\Platform::class);
$this->platform = $var;
return $this;
}
/**
* Generated from protobuf field string absolute_string = 1;
* @return string
*/
public function getAbsoluteString()
{
return $this->readOneof(1);
}
public function hasAbsoluteString()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field string absolute_string = 1;
* @param string $var
* @return $this
*/
public function setAbsoluteString($var)
{
GPBUtil::checkString($var, True);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field string relative_path = 2;
* @return string
*/
public function getRelativePath()
{
return $this->readOneof(2);
}
public function hasRelativePath()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field string relative_path = 2;
* @param string $var
* @return $this
*/
public function setRelativePath($var)
{
GPBUtil::checkString($var, True);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.URL.LocalRelativePath local = 4;
* @return \Rv\Data\URL\LocalRelativePath|null
*/
public function getLocal()
{
return $this->readOneof(4);
}
public function hasLocal()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field .rv.data.URL.LocalRelativePath local = 4;
* @param \Rv\Data\URL\LocalRelativePath $var
* @return $this
*/
public function setLocal($var)
{
GPBUtil::checkMessage($var, \Rv\Data\URL\LocalRelativePath::class);
$this->writeOneof(4, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.URL.ExternalRelativePath external = 5;
* @return \Rv\Data\URL\ExternalRelativePath|null
*/
public function getExternal()
{
return $this->readOneof(5);
}
public function hasExternal()
{
return $this->hasOneof(5);
}
/**
* Generated from protobuf field .rv.data.URL.ExternalRelativePath external = 5;
* @param \Rv\Data\URL\ExternalRelativePath $var
* @return $this
*/
public function setExternal($var)
{
GPBUtil::checkMessage($var, \Rv\Data\URL\ExternalRelativePath::class);
$this->writeOneof(5, $var);
return $this;
}
/**
* @return string
*/
public function getStorage()
{
return $this->whichOneof("Storage");
}
/**
* @return string
*/
public function getRelativeFilePath()
{
return $this->whichOneof("RelativeFilePath");
}
}