<?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.ChangeSeatTypeComplete</code>
 */
class ChangeSeatTypeComplete extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.registration.core.Status result = 1;</code>
     */
    protected $result = 0;
    /**
     * 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>.registration.core.SeatType seat_type = 4;</code>
     */
    protected $seat_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $result
     *     @type \Registration\Core\Seats $available_seats
     *     @type \Registration\Core\Seats $total_seats
     *     @type int $seat_type
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Registration::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.registration.core.Status result = 1;</code>
     * @return int
     */
    public function getResult()
    {
        return $this->result;
    }

    /**
     * Generated from protobuf field <code>.registration.core.Status result = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setResult($var)
    {
        GPBUtil::checkEnum($var, \Registration\Core\Status::class);
        $this->result = $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>.registration.core.SeatType seat_type = 4;</code>
     * @return int
     */
    public function getSeatType()
    {
        return $this->seat_type;
    }

    /**
     * Generated from protobuf field <code>.registration.core.SeatType seat_type = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setSeatType($var)
    {
        GPBUtil::checkEnum($var, \Registration\Core\SeatType::class);
        $this->seat_type = $var;

        return $this;
    }

}

