registration.core.RegistrationData
*/
class RegistrationData extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field bytes data = 1;
*/
protected $data = '';
/**
* Generated from protobuf field .registration.core.UpdateChannel channel = 2;
*/
protected $channel = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $data
* @type int $channel
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Registration::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field bytes data = 1;
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* Generated from protobuf field bytes data = 1;
* @param string $var
* @return $this
*/
public function setData($var)
{
GPBUtil::checkString($var, False);
$this->data = $var;
return $this;
}
/**
* Generated from protobuf field .registration.core.UpdateChannel channel = 2;
* @return int
*/
public function getChannel()
{
return $this->channel;
}
/**
* Generated from protobuf field .registration.core.UpdateChannel channel = 2;
* @param int $var
* @return $this
*/
public function setChannel($var)
{
GPBUtil::checkEnum($var, \Registration\Core\UpdateChannel::class);
$this->channel = $var;
return $this;
}
}