- Move src/, tests/, bin/, generated/, proto/, composer.json, composer.lock, phpunit.xml from php/ to repo root - Move ref/ to doc/reference_samples/ for better organization - Remove vendor/ from git tracking (now properly gitignored) - Update all test file paths (dirname adjustments and ref/ -> doc/reference_samples/) - Update all documentation paths (AGENTS.md, doc/*.md) - Remove php.bak/ directory - All 252 tests pass
350 lines
8.9 KiB
PHP
350 lines
8.9 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: planningCenter.proto
|
|
|
|
namespace Rv\Data\PlanningCenterPlan;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.PlanningCenterPlan.PlanItem</code>
|
|
*/
|
|
class PlanItem extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlanningCenterPlan.PlanItem.PlanItemType item_type = 1;</code>
|
|
*/
|
|
protected $item_type = 0;
|
|
/**
|
|
* Generated from protobuf field <code>uint32 pco_id_num = 2;</code>
|
|
*/
|
|
protected $pco_id_num = 0;
|
|
/**
|
|
* Generated from protobuf field <code>uint32 service_id_num = 3;</code>
|
|
*/
|
|
protected $service_id_num = 0;
|
|
/**
|
|
* Generated from protobuf field <code>uint32 parent_id_num = 4;</code>
|
|
*/
|
|
protected $parent_id_num = 0;
|
|
/**
|
|
* Generated from protobuf field <code>string name = 5;</code>
|
|
*/
|
|
protected $name = '';
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.PlanningCenterPlan.PlanItem.Attachment attachments = 6;</code>
|
|
*/
|
|
private $attachments;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Timestamp update_date = 7;</code>
|
|
*/
|
|
protected $update_date = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlanningCenterPlan.PlanItem.SongItem linked_song = 8;</code>
|
|
*/
|
|
protected $linked_song = null;
|
|
/**
|
|
* Generated from protobuf field <code>string pco_id_str = 9;</code>
|
|
*/
|
|
protected $pco_id_str = '';
|
|
/**
|
|
* Generated from protobuf field <code>string service_id_str = 10;</code>
|
|
*/
|
|
protected $service_id_str = '';
|
|
/**
|
|
* Generated from protobuf field <code>string parent_id_str = 11;</code>
|
|
*/
|
|
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 <code>.rv.data.PlanningCenterPlan.PlanItem.PlanItemType item_type = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getItemType()
|
|
{
|
|
return $this->item_type;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.PlanningCenterPlan.PlanItem.PlanItemType item_type = 1;</code>
|
|
* @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 <code>uint32 pco_id_num = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getPcoIdNum()
|
|
{
|
|
return $this->pco_id_num;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 pco_id_num = 2;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setPcoIdNum($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->pco_id_num = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 service_id_num = 3;</code>
|
|
* @return int
|
|
*/
|
|
public function getServiceIdNum()
|
|
{
|
|
return $this->service_id_num;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 service_id_num = 3;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setServiceIdNum($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->service_id_num = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 parent_id_num = 4;</code>
|
|
* @return int
|
|
*/
|
|
public function getParentIdNum()
|
|
{
|
|
return $this->parent_id_num;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 parent_id_num = 4;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setParentIdNum($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->parent_id_num = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string name = 5;</code>
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string name = 5;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.PlanningCenterPlan.PlanItem.Attachment attachments = 6;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getAttachments()
|
|
{
|
|
return $this->attachments;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.PlanningCenterPlan.PlanItem.Attachment attachments = 6;</code>
|
|
* @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 <code>.rv.data.Timestamp update_date = 7;</code>
|
|
* @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 <code>.rv.data.Timestamp update_date = 7;</code>
|
|
* @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 <code>.rv.data.PlanningCenterPlan.PlanItem.SongItem linked_song = 8;</code>
|
|
* @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 <code>.rv.data.PlanningCenterPlan.PlanItem.SongItem linked_song = 8;</code>
|
|
* @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 <code>string pco_id_str = 9;</code>
|
|
* @return string
|
|
*/
|
|
public function getPcoIdStr()
|
|
{
|
|
return $this->pco_id_str;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string pco_id_str = 9;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setPcoIdStr($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->pco_id_str = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string service_id_str = 10;</code>
|
|
* @return string
|
|
*/
|
|
public function getServiceIdStr()
|
|
{
|
|
return $this->service_id_str;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string service_id_str = 10;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setServiceIdStr($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->service_id_str = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string parent_id_str = 11;</code>
|
|
* @return string
|
|
*/
|
|
public function getParentIdStr()
|
|
{
|
|
return $this->parent_id_str;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string parent_id_str = 11;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setParentIdStr($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->parent_id_str = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|