rv.data.PlanningCenterPlan.PlanItem.Attachment
*/
class Attachment extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string name = 1;
*/
protected $name = '';
/**
* Generated from protobuf field .rv.data.URL url = 2;
*/
protected $url = null;
/**
* Generated from protobuf field .rv.data.Timestamp created_date = 3;
*/
protected $created_date = null;
/**
* Generated from protobuf field .rv.data.URL linked_path = 4;
*/
protected $linked_path = null;
/**
* Generated from protobuf field uint32 pco_id_num = 5;
*/
protected $pco_id_num = 0;
/**
* Generated from protobuf field bool needs_update = 6;
*/
protected $needs_update = false;
/**
* Generated from protobuf field .rv.data.Timestamp update_date = 7;
*/
protected $update_date = null;
/**
* Generated from protobuf field string pco_id_str = 8;
*/
protected $pco_id_str = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name
* @type \Rv\Data\URL $url
* @type \Rv\Data\Timestamp $created_date
* @type \Rv\Data\URL $linked_path
* @type int $pco_id_num
* @type bool $needs_update
* @type \Rv\Data\Timestamp $update_date
* @type string $pco_id_str
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\PlanningCenter::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string name = 1;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field string name = 1;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.URL url = 2;
* @return \Rv\Data\URL|null
*/
public function getUrl()
{
return $this->url;
}
public function hasUrl()
{
return isset($this->url);
}
public function clearUrl()
{
unset($this->url);
}
/**
* Generated from protobuf field .rv.data.URL url = 2;
* @param \Rv\Data\URL $var
* @return $this
*/
public function setUrl($var)
{
GPBUtil::checkMessage($var, \Rv\Data\URL::class);
$this->url = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Timestamp created_date = 3;
* @return \Rv\Data\Timestamp|null
*/
public function getCreatedDate()
{
return $this->created_date;
}
public function hasCreatedDate()
{
return isset($this->created_date);
}
public function clearCreatedDate()
{
unset($this->created_date);
}
/**
* Generated from protobuf field .rv.data.Timestamp created_date = 3;
* @param \Rv\Data\Timestamp $var
* @return $this
*/
public function setCreatedDate($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Timestamp::class);
$this->created_date = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.URL linked_path = 4;
* @return \Rv\Data\URL|null
*/
public function getLinkedPath()
{
return $this->linked_path;
}
public function hasLinkedPath()
{
return isset($this->linked_path);
}
public function clearLinkedPath()
{
unset($this->linked_path);
}
/**
* Generated from protobuf field .rv.data.URL linked_path = 4;
* @param \Rv\Data\URL $var
* @return $this
*/
public function setLinkedPath($var)
{
GPBUtil::checkMessage($var, \Rv\Data\URL::class);
$this->linked_path = $var;
return $this;
}
/**
* Generated from protobuf field uint32 pco_id_num = 5;
* @return int
*/
public function getPcoIdNum()
{
return $this->pco_id_num;
}
/**
* Generated from protobuf field uint32 pco_id_num = 5;
* @param int $var
* @return $this
*/
public function setPcoIdNum($var)
{
GPBUtil::checkUint32($var);
$this->pco_id_num = $var;
return $this;
}
/**
* Generated from protobuf field bool needs_update = 6;
* @return bool
*/
public function getNeedsUpdate()
{
return $this->needs_update;
}
/**
* Generated from protobuf field bool needs_update = 6;
* @param bool $var
* @return $this
*/
public function setNeedsUpdate($var)
{
GPBUtil::checkBool($var);
$this->needs_update = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Timestamp update_date = 7;
* @return \Rv\Data\Timestamp|null
*/
public function getUpdateDate()
{
return $this->update_date;
}
public function hasUpdateDate()
{
return isset($this->update_date);
}
public function clearUpdateDate()
{
unset($this->update_date);
}
/**
* Generated from protobuf field .rv.data.Timestamp update_date = 7;
* @param \Rv\Data\Timestamp $var
* @return $this
*/
public function setUpdateDate($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Timestamp::class);
$this->update_date = $var;
return $this;
}
/**
* Generated from protobuf field string pco_id_str = 8;
* @return string
*/
public function getPcoIdStr()
{
return $this->pco_id_str;
}
/**
* Generated from protobuf field string pco_id_str = 8;
* @param string $var
* @return $this
*/
public function setPcoIdStr($var)
{
GPBUtil::checkString($var, True);
$this->pco_id_str = $var;
return $this;
}
}