rv.data.Preferences
*/
class Preferences extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.Preferences.General general = 1;
*/
protected $general = null;
/**
* Generated from protobuf field .rv.data.Preferences.Screens screens = 2;
*/
protected $screens = null;
/**
* Generated from protobuf field .rv.data.Preferences.Import import = 3;
*/
protected $import = null;
/**
* Generated from protobuf field .rv.data.Preferences.Groups groups = 4;
*/
protected $groups = null;
/**
* Generated from protobuf field .rv.data.Preferences.Network network = 5;
*/
protected $network = null;
/**
* Generated from protobuf field .rv.data.Preferences.Sync sync = 6;
*/
protected $sync = null;
/**
* Generated from protobuf field .rv.data.Preferences.Advanced advanced = 7;
*/
protected $advanced = null;
/**
* Generated from protobuf field .rv.data.Preferences.Updates updates = 8;
*/
protected $updates = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\Preferences\General $general
* @type \Rv\Data\Preferences\Screens $screens
* @type \Rv\Data\Preferences\Import $import
* @type \Rv\Data\Preferences\Groups $groups
* @type \Rv\Data\Preferences\Network $network
* @type \Rv\Data\Preferences\Sync $sync
* @type \Rv\Data\Preferences\Advanced $advanced
* @type \Rv\Data\Preferences\Updates $updates
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Preferences::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.Preferences.General general = 1;
* @return \Rv\Data\Preferences\General|null
*/
public function getGeneral()
{
return $this->general;
}
public function hasGeneral()
{
return isset($this->general);
}
public function clearGeneral()
{
unset($this->general);
}
/**
* Generated from protobuf field .rv.data.Preferences.General general = 1;
* @param \Rv\Data\Preferences\General $var
* @return $this
*/
public function setGeneral($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Preferences\General::class);
$this->general = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Preferences.Screens screens = 2;
* @return \Rv\Data\Preferences\Screens|null
*/
public function getScreens()
{
return $this->screens;
}
public function hasScreens()
{
return isset($this->screens);
}
public function clearScreens()
{
unset($this->screens);
}
/**
* Generated from protobuf field .rv.data.Preferences.Screens screens = 2;
* @param \Rv\Data\Preferences\Screens $var
* @return $this
*/
public function setScreens($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Preferences\Screens::class);
$this->screens = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Preferences.Import import = 3;
* @return \Rv\Data\Preferences\Import|null
*/
public function getImport()
{
return $this->import;
}
public function hasImport()
{
return isset($this->import);
}
public function clearImport()
{
unset($this->import);
}
/**
* Generated from protobuf field .rv.data.Preferences.Import import = 3;
* @param \Rv\Data\Preferences\Import $var
* @return $this
*/
public function setImport($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Preferences\Import::class);
$this->import = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Preferences.Groups groups = 4;
* @return \Rv\Data\Preferences\Groups|null
*/
public function getGroups()
{
return $this->groups;
}
public function hasGroups()
{
return isset($this->groups);
}
public function clearGroups()
{
unset($this->groups);
}
/**
* Generated from protobuf field .rv.data.Preferences.Groups groups = 4;
* @param \Rv\Data\Preferences\Groups $var
* @return $this
*/
public function setGroups($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Preferences\Groups::class);
$this->groups = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Preferences.Network network = 5;
* @return \Rv\Data\Preferences\Network|null
*/
public function getNetwork()
{
return $this->network;
}
public function hasNetwork()
{
return isset($this->network);
}
public function clearNetwork()
{
unset($this->network);
}
/**
* Generated from protobuf field .rv.data.Preferences.Network network = 5;
* @param \Rv\Data\Preferences\Network $var
* @return $this
*/
public function setNetwork($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Preferences\Network::class);
$this->network = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Preferences.Sync sync = 6;
* @return \Rv\Data\Preferences\Sync|null
*/
public function getSync()
{
return $this->sync;
}
public function hasSync()
{
return isset($this->sync);
}
public function clearSync()
{
unset($this->sync);
}
/**
* Generated from protobuf field .rv.data.Preferences.Sync sync = 6;
* @param \Rv\Data\Preferences\Sync $var
* @return $this
*/
public function setSync($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Preferences\Sync::class);
$this->sync = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Preferences.Advanced advanced = 7;
* @return \Rv\Data\Preferences\Advanced|null
*/
public function getAdvanced()
{
return $this->advanced;
}
public function hasAdvanced()
{
return isset($this->advanced);
}
public function clearAdvanced()
{
unset($this->advanced);
}
/**
* Generated from protobuf field .rv.data.Preferences.Advanced advanced = 7;
* @param \Rv\Data\Preferences\Advanced $var
* @return $this
*/
public function setAdvanced($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Preferences\Advanced::class);
$this->advanced = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.Preferences.Updates updates = 8;
* @return \Rv\Data\Preferences\Updates|null
*/
public function getUpdates()
{
return $this->updates;
}
public function hasUpdates()
{
return isset($this->updates);
}
public function clearUpdates()
{
unset($this->updates);
}
/**
* Generated from protobuf field .rv.data.Preferences.Updates updates = 8;
* @param \Rv\Data\Preferences\Updates $var
* @return $this
*/
public function setUpdates($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Preferences\Updates::class);
$this->updates = $var;
return $this;
}
}