rv.data.PlanningCenterPlan.PlanItem
*/
class PlanItem extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.PlanningCenterPlan.PlanItem.PlanItemType item_type = 1;
*/
protected $item_type = 0;
/**
* Generated from protobuf field uint32 pco_id_num = 2;
*/
protected $pco_id_num = 0;
/**
* Generated from protobuf field uint32 service_id_num = 3;
*/
protected $service_id_num = 0;
/**
* Generated from protobuf field uint32 parent_id_num = 4;
*/
protected $parent_id_num = 0;
/**
* Generated from protobuf field string name = 5;
*/
protected $name = '';
/**
* Generated from protobuf field repeated .rv.data.PlanningCenterPlan.PlanItem.Attachment attachments = 6;
*/
private $attachments;
/**
* Generated from protobuf field .rv.data.Timestamp update_date = 7;
*/
protected $update_date = null;
/**
* Generated from protobuf field .rv.data.PlanningCenterPlan.PlanItem.SongItem linked_song = 8;
*/
protected $linked_song = null;
/**
* Generated from protobuf field string pco_id_str = 9;
*/
protected $pco_id_str = '';
/**
* Generated from protobuf field string service_id_str = 10;
*/
protected $service_id_str = '';
/**
* Generated from protobuf field string parent_id_str = 11;
*/
protected $parent_id_str = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $item_type
* @type int $pco_id_num
* @type int $service_id_num
* @type int $parent_id_num
* @type string $name
* @type array<\Rv\Data\PlanningCenterPlan\PlanItem\Attachment>|\Google\Protobuf\Internal\RepeatedField $attachments
* @type \Rv\Data\Timestamp $update_date
* @type \Rv\Data\PlanningCenterPlan\PlanItem\SongItem $linked_song
* @type string $pco_id_str
* @type string $service_id_str
* @type string $parent_id_str
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\PlanningCenter::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.PlanningCenterPlan.PlanItem.PlanItemType item_type = 1;
* @return int
*/
public function getItemType()
{
return $this->item_type;
}
/**
* Generated from protobuf field .rv.data.PlanningCenterPlan.PlanItem.PlanItemType item_type = 1;
* @param int $var
* @return $this
*/
public function setItemType($var)
{
GPBUtil::checkEnum($var, \Rv\Data\PlanningCenterPlan\PlanItem\PlanItemType::class);
$this->item_type = $var;
return $this;
}
/**
* Generated from protobuf field uint32 pco_id_num = 2;
* @return int
*/
public function getPcoIdNum()
{
return $this->pco_id_num;
}
/**
* Generated from protobuf field uint32 pco_id_num = 2;
* @param int $var
* @return $this
*/
public function setPcoIdNum($var)
{
GPBUtil::checkUint32($var);
$this->pco_id_num = $var;
return $this;
}
/**
* Generated from protobuf field uint32 service_id_num = 3;
* @return int
*/
public function getServiceIdNum()
{
return $this->service_id_num;
}
/**
* Generated from protobuf field uint32 service_id_num = 3;
* @param int $var
* @return $this
*/
public function setServiceIdNum($var)
{
GPBUtil::checkUint32($var);
$this->service_id_num = $var;
return $this;
}
/**
* Generated from protobuf field uint32 parent_id_num = 4;
* @return int
*/
public function getParentIdNum()
{
return $this->parent_id_num;
}
/**
* Generated from protobuf field uint32 parent_id_num = 4;
* @param int $var
* @return $this
*/
public function setParentIdNum($var)
{
GPBUtil::checkUint32($var);
$this->parent_id_num = $var;
return $this;
}
/**
* Generated from protobuf field string name = 5;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field string name = 5;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Generated from protobuf field repeated .rv.data.PlanningCenterPlan.PlanItem.Attachment attachments = 6;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getAttachments()
{
return $this->attachments;
}
/**
* Generated from protobuf field repeated .rv.data.PlanningCenterPlan.PlanItem.Attachment attachments = 6;
* @param array<\Rv\Data\PlanningCenterPlan\PlanItem\Attachment>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setAttachments($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\PlanningCenterPlan\PlanItem\Attachment::class);
$this->attachments = $arr;
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 .rv.data.PlanningCenterPlan.PlanItem.SongItem linked_song = 8;
* @return \Rv\Data\PlanningCenterPlan\PlanItem\SongItem|null
*/
public function getLinkedSong()
{
return $this->linked_song;
}
public function hasLinkedSong()
{
return isset($this->linked_song);
}
public function clearLinkedSong()
{
unset($this->linked_song);
}
/**
* Generated from protobuf field .rv.data.PlanningCenterPlan.PlanItem.SongItem linked_song = 8;
* @param \Rv\Data\PlanningCenterPlan\PlanItem\SongItem $var
* @return $this
*/
public function setLinkedSong($var)
{
GPBUtil::checkMessage($var, \Rv\Data\PlanningCenterPlan\PlanItem\SongItem::class);
$this->linked_song = $var;
return $this;
}
/**
* Generated from protobuf field string pco_id_str = 9;
* @return string
*/
public function getPcoIdStr()
{
return $this->pco_id_str;
}
/**
* Generated from protobuf field string pco_id_str = 9;
* @param string $var
* @return $this
*/
public function setPcoIdStr($var)
{
GPBUtil::checkString($var, True);
$this->pco_id_str = $var;
return $this;
}
/**
* Generated from protobuf field string service_id_str = 10;
* @return string
*/
public function getServiceIdStr()
{
return $this->service_id_str;
}
/**
* Generated from protobuf field string service_id_str = 10;
* @param string $var
* @return $this
*/
public function setServiceIdStr($var)
{
GPBUtil::checkString($var, True);
$this->service_id_str = $var;
return $this;
}
/**
* Generated from protobuf field string parent_id_str = 11;
* @return string
*/
public function getParentIdStr()
{
return $this->parent_id_str;
}
/**
* Generated from protobuf field string parent_id_str = 11;
* @param string $var
* @return $this
*/
public function setParentIdStr($var)
{
GPBUtil::checkString($var, True);
$this->parent_id_str = $var;
return $this;
}
}