<?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.Token</code>
 */
class Token extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.registration.core.TokenMetadata token_metadata = 1;</code>
     */
    protected $token_metadata = null;

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

    /**
     * Generated from protobuf field <code>.registration.core.TokenMetadata token_metadata = 1;</code>
     * @return \Registration\Core\TokenMetadata|null
     */
    public function getTokenMetadata()
    {
        return $this->token_metadata;
    }

    public function hasTokenMetadata()
    {
        return isset($this->token_metadata);
    }

    public function clearTokenMetadata()
    {
        unset($this->token_metadata);
    }

    /**
     * Generated from protobuf field <code>.registration.core.TokenMetadata token_metadata = 1;</code>
     * @param \Registration\Core\TokenMetadata $var
     * @return $this
     */
    public function setTokenMetadata($var)
    {
        GPBUtil::checkMessage($var, \Registration\Core\TokenMetadata::class);
        $this->token_metadata = $var;

        return $this;
    }

}

