registration.core.Callback
*/
class Callback extends \Google\Protobuf\Internal\Message
{
protected $callback;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Registration\Core\SetWatermark $set_watermark
* @type \Registration\Core\BibleDownloadProgress $bible_download_progress
* @type \Registration\Core\HardExit $hard_exit
* @type \Registration\Core\ReadRegistrationData $read_registration_data
* @type \Registration\Core\WriteRegistrationData $write_registration_data
* @type \Registration\Core\GetProductInformation $get_product_information
* @type \Registration\Core\Log $log
* @type \Registration\Core\UpgradesAvailable $upgrades_available
* @type \Registration\Core\DowngradeAvailable $downgrade_available
* @type \Registration\Core\DownloadProgress $download_progress
* @type \Registration\Core\Alerts $alerts
* @type \Registration\Core\ShowExpirationDialog $show_expiration_dialog
* @type \Registration\Core\ReadOldToken $read_old_token
* @type \Registration\Core\VerificationComplete $verification_complete
* @type \Registration\Core\SetClientInfo $set_client_info
* @type \Registration\Core\ActivateCodeComplete $get_activate_code_complete
* @type \Registration\Core\ReadNotificationData $read_notification_data
* @type \Registration\Core\WriteNotificationData $write_notification_data
* @type \Registration\Core\NotificationCallback $notification_callback
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Registration::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .registration.core.SetWatermark set_watermark = 1;
* @return \Registration\Core\SetWatermark|null
*/
public function getSetWatermark()
{
return $this->readOneof(1);
}
public function hasSetWatermark()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field .registration.core.SetWatermark set_watermark = 1;
* @param \Registration\Core\SetWatermark $var
* @return $this
*/
public function setSetWatermark($var)
{
GPBUtil::checkMessage($var, \Registration\Core\SetWatermark::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.BibleDownloadProgress bible_download_progress = 2;
* @return \Registration\Core\BibleDownloadProgress|null
*/
public function getBibleDownloadProgress()
{
return $this->readOneof(2);
}
public function hasBibleDownloadProgress()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field .registration.core.BibleDownloadProgress bible_download_progress = 2;
* @param \Registration\Core\BibleDownloadProgress $var
* @return $this
*/
public function setBibleDownloadProgress($var)
{
GPBUtil::checkMessage($var, \Registration\Core\BibleDownloadProgress::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.HardExit hard_exit = 3;
* @return \Registration\Core\HardExit|null
*/
public function getHardExit()
{
return $this->readOneof(3);
}
public function hasHardExit()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field .registration.core.HardExit hard_exit = 3;
* @param \Registration\Core\HardExit $var
* @return $this
*/
public function setHardExit($var)
{
GPBUtil::checkMessage($var, \Registration\Core\HardExit::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.ReadRegistrationData read_registration_data = 4;
* @return \Registration\Core\ReadRegistrationData|null
*/
public function getReadRegistrationData()
{
return $this->readOneof(4);
}
public function hasReadRegistrationData()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field .registration.core.ReadRegistrationData read_registration_data = 4;
* @param \Registration\Core\ReadRegistrationData $var
* @return $this
*/
public function setReadRegistrationData($var)
{
GPBUtil::checkMessage($var, \Registration\Core\ReadRegistrationData::class);
$this->writeOneof(4, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.WriteRegistrationData write_registration_data = 5;
* @return \Registration\Core\WriteRegistrationData|null
*/
public function getWriteRegistrationData()
{
return $this->readOneof(5);
}
public function hasWriteRegistrationData()
{
return $this->hasOneof(5);
}
/**
* Generated from protobuf field .registration.core.WriteRegistrationData write_registration_data = 5;
* @param \Registration\Core\WriteRegistrationData $var
* @return $this
*/
public function setWriteRegistrationData($var)
{
GPBUtil::checkMessage($var, \Registration\Core\WriteRegistrationData::class);
$this->writeOneof(5, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.GetProductInformation get_product_information = 6;
* @return \Registration\Core\GetProductInformation|null
*/
public function getGetProductInformation()
{
return $this->readOneof(6);
}
public function hasGetProductInformation()
{
return $this->hasOneof(6);
}
/**
* Generated from protobuf field .registration.core.GetProductInformation get_product_information = 6;
* @param \Registration\Core\GetProductInformation $var
* @return $this
*/
public function setGetProductInformation($var)
{
GPBUtil::checkMessage($var, \Registration\Core\GetProductInformation::class);
$this->writeOneof(6, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.Log log = 7;
* @return \Registration\Core\Log|null
*/
public function getLog()
{
return $this->readOneof(7);
}
public function hasLog()
{
return $this->hasOneof(7);
}
/**
* Generated from protobuf field .registration.core.Log log = 7;
* @param \Registration\Core\Log $var
* @return $this
*/
public function setLog($var)
{
GPBUtil::checkMessage($var, \Registration\Core\Log::class);
$this->writeOneof(7, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.UpgradesAvailable upgrades_available = 8;
* @return \Registration\Core\UpgradesAvailable|null
*/
public function getUpgradesAvailable()
{
return $this->readOneof(8);
}
public function hasUpgradesAvailable()
{
return $this->hasOneof(8);
}
/**
* Generated from protobuf field .registration.core.UpgradesAvailable upgrades_available = 8;
* @param \Registration\Core\UpgradesAvailable $var
* @return $this
*/
public function setUpgradesAvailable($var)
{
GPBUtil::checkMessage($var, \Registration\Core\UpgradesAvailable::class);
$this->writeOneof(8, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.DowngradeAvailable downgrade_available = 9;
* @return \Registration\Core\DowngradeAvailable|null
*/
public function getDowngradeAvailable()
{
return $this->readOneof(9);
}
public function hasDowngradeAvailable()
{
return $this->hasOneof(9);
}
/**
* Generated from protobuf field .registration.core.DowngradeAvailable downgrade_available = 9;
* @param \Registration\Core\DowngradeAvailable $var
* @return $this
*/
public function setDowngradeAvailable($var)
{
GPBUtil::checkMessage($var, \Registration\Core\DowngradeAvailable::class);
$this->writeOneof(9, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.DownloadProgress download_progress = 10;
* @return \Registration\Core\DownloadProgress|null
*/
public function getDownloadProgress()
{
return $this->readOneof(10);
}
public function hasDownloadProgress()
{
return $this->hasOneof(10);
}
/**
* Generated from protobuf field .registration.core.DownloadProgress download_progress = 10;
* @param \Registration\Core\DownloadProgress $var
* @return $this
*/
public function setDownloadProgress($var)
{
GPBUtil::checkMessage($var, \Registration\Core\DownloadProgress::class);
$this->writeOneof(10, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.Alerts alerts = 11;
* @return \Registration\Core\Alerts|null
*/
public function getAlerts()
{
return $this->readOneof(11);
}
public function hasAlerts()
{
return $this->hasOneof(11);
}
/**
* Generated from protobuf field .registration.core.Alerts alerts = 11;
* @param \Registration\Core\Alerts $var
* @return $this
*/
public function setAlerts($var)
{
GPBUtil::checkMessage($var, \Registration\Core\Alerts::class);
$this->writeOneof(11, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.ShowExpirationDialog show_expiration_dialog = 12;
* @return \Registration\Core\ShowExpirationDialog|null
*/
public function getShowExpirationDialog()
{
return $this->readOneof(12);
}
public function hasShowExpirationDialog()
{
return $this->hasOneof(12);
}
/**
* Generated from protobuf field .registration.core.ShowExpirationDialog show_expiration_dialog = 12;
* @param \Registration\Core\ShowExpirationDialog $var
* @return $this
*/
public function setShowExpirationDialog($var)
{
GPBUtil::checkMessage($var, \Registration\Core\ShowExpirationDialog::class);
$this->writeOneof(12, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.ReadOldToken read_old_token = 13;
* @return \Registration\Core\ReadOldToken|null
*/
public function getReadOldToken()
{
return $this->readOneof(13);
}
public function hasReadOldToken()
{
return $this->hasOneof(13);
}
/**
* Generated from protobuf field .registration.core.ReadOldToken read_old_token = 13;
* @param \Registration\Core\ReadOldToken $var
* @return $this
*/
public function setReadOldToken($var)
{
GPBUtil::checkMessage($var, \Registration\Core\ReadOldToken::class);
$this->writeOneof(13, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.VerificationComplete verification_complete = 14;
* @return \Registration\Core\VerificationComplete|null
*/
public function getVerificationComplete()
{
return $this->readOneof(14);
}
public function hasVerificationComplete()
{
return $this->hasOneof(14);
}
/**
* Generated from protobuf field .registration.core.VerificationComplete verification_complete = 14;
* @param \Registration\Core\VerificationComplete $var
* @return $this
*/
public function setVerificationComplete($var)
{
GPBUtil::checkMessage($var, \Registration\Core\VerificationComplete::class);
$this->writeOneof(14, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.SetClientInfo set_client_info = 15;
* @return \Registration\Core\SetClientInfo|null
*/
public function getSetClientInfo()
{
return $this->readOneof(15);
}
public function hasSetClientInfo()
{
return $this->hasOneof(15);
}
/**
* Generated from protobuf field .registration.core.SetClientInfo set_client_info = 15;
* @param \Registration\Core\SetClientInfo $var
* @return $this
*/
public function setSetClientInfo($var)
{
GPBUtil::checkMessage($var, \Registration\Core\SetClientInfo::class);
$this->writeOneof(15, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.ActivateCodeComplete get_activate_code_complete = 16;
* @return \Registration\Core\ActivateCodeComplete|null
*/
public function getGetActivateCodeComplete()
{
return $this->readOneof(16);
}
public function hasGetActivateCodeComplete()
{
return $this->hasOneof(16);
}
/**
* Generated from protobuf field .registration.core.ActivateCodeComplete get_activate_code_complete = 16;
* @param \Registration\Core\ActivateCodeComplete $var
* @return $this
*/
public function setGetActivateCodeComplete($var)
{
GPBUtil::checkMessage($var, \Registration\Core\ActivateCodeComplete::class);
$this->writeOneof(16, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.ReadNotificationData read_notification_data = 17;
* @return \Registration\Core\ReadNotificationData|null
*/
public function getReadNotificationData()
{
return $this->readOneof(17);
}
public function hasReadNotificationData()
{
return $this->hasOneof(17);
}
/**
* Generated from protobuf field .registration.core.ReadNotificationData read_notification_data = 17;
* @param \Registration\Core\ReadNotificationData $var
* @return $this
*/
public function setReadNotificationData($var)
{
GPBUtil::checkMessage($var, \Registration\Core\ReadNotificationData::class);
$this->writeOneof(17, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.WriteNotificationData write_notification_data = 18;
* @return \Registration\Core\WriteNotificationData|null
*/
public function getWriteNotificationData()
{
return $this->readOneof(18);
}
public function hasWriteNotificationData()
{
return $this->hasOneof(18);
}
/**
* Generated from protobuf field .registration.core.WriteNotificationData write_notification_data = 18;
* @param \Registration\Core\WriteNotificationData $var
* @return $this
*/
public function setWriteNotificationData($var)
{
GPBUtil::checkMessage($var, \Registration\Core\WriteNotificationData::class);
$this->writeOneof(18, $var);
return $this;
}
/**
* Generated from protobuf field .registration.core.NotificationCallback notification_callback = 19;
* @return \Registration\Core\NotificationCallback|null
*/
public function getNotificationCallback()
{
return $this->readOneof(19);
}
public function hasNotificationCallback()
{
return $this->hasOneof(19);
}
/**
* Generated from protobuf field .registration.core.NotificationCallback notification_callback = 19;
* @param \Registration\Core\NotificationCallback $var
* @return $this
*/
public function setNotificationCallback($var)
{
GPBUtil::checkMessage($var, \Registration\Core\NotificationCallback::class);
$this->writeOneof(19, $var);
return $this;
}
/**
* @return string
*/
public function getCallback()
{
return $this->whichOneof("callback");
}
}