registration.core.ActivateCodeComplete.Success
*/
class Success extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string activation_code = 2;
*/
protected $activation_code = '';
/**
* Generated from protobuf field int64 expiration = 3;
*/
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 string activation_code = 2;
* @return string
*/
public function getActivationCode()
{
return $this->activation_code;
}
/**
* Generated from protobuf field string activation_code = 2;
* @param string $var
* @return $this
*/
public function setActivationCode($var)
{
GPBUtil::checkString($var, True);
$this->activation_code = $var;
return $this;
}
/**
* Generated from protobuf field int64 expiration = 3;
* @return int|string
*/
public function getExpiration()
{
return $this->expiration;
}
/**
* Generated from protobuf field int64 expiration = 3;
* @param int|string $var
* @return $this
*/
public function setExpiration($var)
{
GPBUtil::checkInt64($var);
$this->expiration = $var;
return $this;
}
}