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

namespace Registration\Core\ActivateCodeComplete;

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

/**
 * Generated from protobuf message <code>registration.core.ActivateCodeComplete.Success</code>
 */
class Success extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string activation_code = 2;</code>
     */
    protected $activation_code = '';
    /**
     * Generated from protobuf field <code>int64 expiration = 3;</code>
     */
    protected $expiration = 0;

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 expiration = 3;</code>
     * @return int|string
     */
    public function getExpiration()
    {
        return $this->expiration;
    }

    /**
     * Generated from protobuf field <code>int64 expiration = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExpiration($var)
    {
        GPBUtil::checkInt64($var);
        $this->expiration = $var;

        return $this;
    }

}

