registration.core.LicensingInfo
*/
class LicensingInfo extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field int32 available_copies = 1;
*/
protected $available_copies = 0;
/**
* Generated from protobuf field int32 total_copies = 2;
*/
protected $total_copies = 0;
/**
* Generated from protobuf field bool is_active_locally = 3;
*/
protected $is_active_locally = false;
/**
* Generated from protobuf field repeated .registration.core.ActiveCopy other_active_copies = 4;
*/
private $other_active_copies;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $available_copies
* @type int $total_copies
* @type bool $is_active_locally
* @type array<\Registration\Core\ActiveCopy>|\Google\Protobuf\Internal\RepeatedField $other_active_copies
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Registration::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field int32 available_copies = 1;
* @return int
*/
public function getAvailableCopies()
{
return $this->available_copies;
}
/**
* Generated from protobuf field int32 available_copies = 1;
* @param int $var
* @return $this
*/
public function setAvailableCopies($var)
{
GPBUtil::checkInt32($var);
$this->available_copies = $var;
return $this;
}
/**
* Generated from protobuf field int32 total_copies = 2;
* @return int
*/
public function getTotalCopies()
{
return $this->total_copies;
}
/**
* Generated from protobuf field int32 total_copies = 2;
* @param int $var
* @return $this
*/
public function setTotalCopies($var)
{
GPBUtil::checkInt32($var);
$this->total_copies = $var;
return $this;
}
/**
* Generated from protobuf field bool is_active_locally = 3;
* @return bool
*/
public function getIsActiveLocally()
{
return $this->is_active_locally;
}
/**
* Generated from protobuf field bool is_active_locally = 3;
* @param bool $var
* @return $this
*/
public function setIsActiveLocally($var)
{
GPBUtil::checkBool($var);
$this->is_active_locally = $var;
return $this;
}
/**
* Generated from protobuf field repeated .registration.core.ActiveCopy other_active_copies = 4;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getOtherActiveCopies()
{
return $this->other_active_copies;
}
/**
* Generated from protobuf field repeated .registration.core.ActiveCopy other_active_copies = 4;
* @param array<\Registration\Core\ActiveCopy>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setOtherActiveCopies($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Registration\Core\ActiveCopy::class);
$this->other_active_copies = $arr;
return $this;
}
}