propresenter-php/php/generated/Rv/Data/URL.php
2026-03-01 16:12:17 +01:00

190 lines
4.3 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: url.proto
namespace Rv\Data;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>rv.data.URL</code>
*/
class URL extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.rv.data.URL.Platform platform = 3;</code>
*/
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 <code>.rv.data.URL.Platform platform = 3;</code>
* @return int
*/
public function getPlatform()
{
return $this->platform;
}
/**
* Generated from protobuf field <code>.rv.data.URL.Platform platform = 3;</code>
* @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 <code>string absolute_string = 1;</code>
* @return string
*/
public function getAbsoluteString()
{
return $this->readOneof(1);
}
public function hasAbsoluteString()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field <code>string absolute_string = 1;</code>
* @param string $var
* @return $this
*/
public function setAbsoluteString($var)
{
GPBUtil::checkString($var, True);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field <code>string relative_path = 2;</code>
* @return string
*/
public function getRelativePath()
{
return $this->readOneof(2);
}
public function hasRelativePath()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field <code>string relative_path = 2;</code>
* @param string $var
* @return $this
*/
public function setRelativePath($var)
{
GPBUtil::checkString($var, True);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.URL.LocalRelativePath local = 4;</code>
* @return \Rv\Data\URL\LocalRelativePath|null
*/
public function getLocal()
{
return $this->readOneof(4);
}
public function hasLocal()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field <code>.rv.data.URL.LocalRelativePath local = 4;</code>
* @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 <code>.rv.data.URL.ExternalRelativePath external = 5;</code>
* @return \Rv\Data\URL\ExternalRelativePath|null
*/
public function getExternal()
{
return $this->readOneof(5);
}
public function hasExternal()
{
return $this->hasOneof(5);
}
/**
* Generated from protobuf field <code>.rv.data.URL.ExternalRelativePath external = 5;</code>
* @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");
}
}