rv.data.API_v1_Library_Response.Library
*/
class Library extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.API_v1_Library_Response.Library.UpdateType update_type = 1;
*/
protected $update_type = 0;
/**
* Generated from protobuf field repeated .rv.data.API_v1_Identifier items = 2;
*/
private $items;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $update_type
* @type array<\Rv\Data\API_v1_Identifier>|\Google\Protobuf\Internal\RepeatedField $items
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApiV1Library::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.API_v1_Library_Response.Library.UpdateType update_type = 1;
* @return int
*/
public function getUpdateType()
{
return $this->update_type;
}
/**
* Generated from protobuf field .rv.data.API_v1_Library_Response.Library.UpdateType update_type = 1;
* @param int $var
* @return $this
*/
public function setUpdateType($var)
{
GPBUtil::checkEnum($var, \Rv\Data\API_v1_Library_Response\Library\UpdateType::class);
$this->update_type = $var;
return $this;
}
/**
* Generated from protobuf field repeated .rv.data.API_v1_Identifier items = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getItems()
{
return $this->items;
}
/**
* Generated from protobuf field repeated .rv.data.API_v1_Identifier items = 2;
* @param array<\Rv\Data\API_v1_Identifier>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setItems($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\API_v1_Identifier::class);
$this->items = $arr;
return $this;
}
}