171 lines
4.4 KiB
PHP
171 lines
4.4 KiB
PHP
<?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.ActivationComplete</code>
|
|
*/
|
|
class ActivationComplete 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.RegistrationInfo registration_info = 2;</code>
|
|
*/
|
|
protected $registration_info = null;
|
|
/**
|
|
* Generated from protobuf field <code>.registration.core.Seats available_seats = 3;</code>
|
|
*/
|
|
protected $available_seats = null;
|
|
/**
|
|
* Generated from protobuf field <code>.registration.core.Seats total_seats = 4;</code>
|
|
*/
|
|
protected $total_seats = null;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $result
|
|
* @type \Registration\Core\RegistrationInfo $registration_info
|
|
* @type \Registration\Core\Seats $available_seats
|
|
* @type \Registration\Core\Seats $total_seats
|
|
* }
|
|
*/
|
|
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.RegistrationInfo registration_info = 2;</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 = 2;</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 = 3;</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 = 3;</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 = 4;</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 = 4;</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;
|
|
}
|
|
|
|
}
|
|
|