<?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.Register</code>
 */
class Register extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string user_name = 1;</code>
     */
    protected $user_name = '';
    /**
     * Generated from protobuf field <code>string registration_key = 2;</code>
     */
    protected $registration_key = '';
    /**
     * Generated from protobuf field <code>string display_name = 3;</code>
     */
    protected $display_name = '';
    /**
     * Generated from protobuf field <code>.registration.core.SeatType seat_type = 4;</code>
     */
    protected $seat_type = 0;
    /**
     * Generated from protobuf field <code>.registration.core.UpdateChannel channel = 5;</code>
     */
    protected $channel = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $user_name
     *     @type string $registration_key
     *     @type string $display_name
     *     @type int $seat_type
     *     @type int $channel
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Registration::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string user_name = 1;</code>
     * @return string
     */
    public function getUserName()
    {
        return $this->user_name;
    }

    /**
     * Generated from protobuf field <code>string user_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setUserName($var)
    {
        GPBUtil::checkString($var, True);
        $this->user_name = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string registration_key = 2;</code>
     * @return string
     */
    public function getRegistrationKey()
    {
        return $this->registration_key;
    }

    /**
     * Generated from protobuf field <code>string registration_key = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setRegistrationKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->registration_key = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string display_name = 3;</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Generated from protobuf field <code>string display_name = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $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;
    }

    /**
     * Generated from protobuf field <code>.registration.core.UpdateChannel channel = 5;</code>
     * @return int
     */
    public function getChannel()
    {
        return $this->channel;
    }

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

        return $this;
    }

}

