<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: registration.proto

namespace Registration\Core;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Generated from protobuf message <code>registration.core.LicenseInfo</code>
 */
class LicenseInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.registration.core.RegistrationInfo registration_info = 1;</code>
     */
    protected $registration_info = null;
    /**
     * Generated from protobuf field <code>.registration.core.Seats available_seats = 2;</code>
     */
    protected $available_seats = null;
    /**
     * Generated from protobuf field <code>.registration.core.Seats total_seats = 3;</code>
     */
    protected $total_seats = null;
    /**
     * Generated from protobuf field <code>bool legacy = 4;</code>
     */
    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 <code>.registration.core.RegistrationInfo registration_info = 1;</code>
     * @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 <code>.registration.core.RegistrationInfo registration_info = 1;</code>
     * @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 <code>.registration.core.Seats available_seats = 2;</code>
     * @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 <code>.registration.core.Seats available_seats = 2;</code>
     * @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 <code>.registration.core.Seats total_seats = 3;</code>
     * @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 <code>.registration.core.Seats total_seats = 3;</code>
     * @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 <code>bool legacy = 4;</code>
     * @return bool
     */
    public function getLegacy()
    {
        return $this->legacy;
    }

    /**
     * Generated from protobuf field <code>bool legacy = 4;</code>
     * @param bool $var
     * @return $this
     */
    public function setLegacy($var)
    {
        GPBUtil::checkBool($var);
        $this->legacy = $var;

        return $this;
    }

}

