registration.core.LicenseInfo */ class LicenseInfo extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .registration.core.RegistrationInfo registration_info = 1; */ protected $registration_info = null; /** * Generated from protobuf field .registration.core.Seats available_seats = 2; */ protected $available_seats = null; /** * Generated from protobuf field .registration.core.Seats total_seats = 3; */ protected $total_seats = null; /** * Generated from protobuf field bool legacy = 4; */ protected $legacy = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Registration\Core\RegistrationInfo $registration_info * @type \Registration\Core\Seats $available_seats * @type \Registration\Core\Seats $total_seats * @type bool $legacy * } */ public function __construct($data = NULL) { \GPBMetadata\Registration::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .registration.core.RegistrationInfo registration_info = 1; * @return \Registration\Core\RegistrationInfo|null */ public function getRegistrationInfo() { return $this->registration_info; } public function hasRegistrationInfo() { return isset($this->registration_info); } public function clearRegistrationInfo() { unset($this->registration_info); } /** * Generated from protobuf field .registration.core.RegistrationInfo registration_info = 1; * @param \Registration\Core\RegistrationInfo $var * @return $this */ public function setRegistrationInfo($var) { GPBUtil::checkMessage($var, \Registration\Core\RegistrationInfo::class); $this->registration_info = $var; return $this; } /** * Generated from protobuf field .registration.core.Seats available_seats = 2; * @return \Registration\Core\Seats|null */ public function getAvailableSeats() { return $this->available_seats; } public function hasAvailableSeats() { return isset($this->available_seats); } public function clearAvailableSeats() { unset($this->available_seats); } /** * Generated from protobuf field .registration.core.Seats available_seats = 2; * @param \Registration\Core\Seats $var * @return $this */ public function setAvailableSeats($var) { GPBUtil::checkMessage($var, \Registration\Core\Seats::class); $this->available_seats = $var; return $this; } /** * Generated from protobuf field .registration.core.Seats total_seats = 3; * @return \Registration\Core\Seats|null */ public function getTotalSeats() { return $this->total_seats; } public function hasTotalSeats() { return isset($this->total_seats); } public function clearTotalSeats() { unset($this->total_seats); } /** * Generated from protobuf field .registration.core.Seats total_seats = 3; * @param \Registration\Core\Seats $var * @return $this */ public function setTotalSeats($var) { GPBUtil::checkMessage($var, \Registration\Core\Seats::class); $this->total_seats = $var; return $this; } /** * Generated from protobuf field bool legacy = 4; * @return bool */ public function getLegacy() { return $this->legacy; } /** * Generated from protobuf field bool legacy = 4; * @param bool $var * @return $this */ public function setLegacy($var) { GPBUtil::checkBool($var); $this->legacy = $var; return $this; } }