rv.data.Preferences.Sync */ class Sync extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string repository = 1; */ protected $repository = ''; /** * Generated from protobuf field bool include_libraries = 2; */ protected $include_libraries = false; /** * Generated from protobuf field bool include_media = 3; */ protected $include_media = false; /** * Generated from protobuf field bool include_playlists = 4; */ protected $include_playlists = false; /** * Generated from protobuf field bool include_themes = 5; */ protected $include_themes = false; /** * Generated from protobuf field bool include_support_files = 6; */ protected $include_support_files = false; /** * Generated from protobuf field .rv.data.Preferences.Sync.SyncDirection direction = 7; */ protected $direction = 0; /** * Generated from protobuf field bool replace_destination_files = 8; */ protected $replace_destination_files = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $repository * @type bool $include_libraries * @type bool $include_media * @type bool $include_playlists * @type bool $include_themes * @type bool $include_support_files * @type int $direction * @type bool $replace_destination_files * } */ public function __construct($data = NULL) { \GPBMetadata\Preferences::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string repository = 1; * @return string */ public function getRepository() { return $this->repository; } /** * Generated from protobuf field string repository = 1; * @param string $var * @return $this */ public function setRepository($var) { GPBUtil::checkString($var, True); $this->repository = $var; return $this; } /** * Generated from protobuf field bool include_libraries = 2; * @return bool */ public function getIncludeLibraries() { return $this->include_libraries; } /** * Generated from protobuf field bool include_libraries = 2; * @param bool $var * @return $this */ public function setIncludeLibraries($var) { GPBUtil::checkBool($var); $this->include_libraries = $var; return $this; } /** * Generated from protobuf field bool include_media = 3; * @return bool */ public function getIncludeMedia() { return $this->include_media; } /** * Generated from protobuf field bool include_media = 3; * @param bool $var * @return $this */ public function setIncludeMedia($var) { GPBUtil::checkBool($var); $this->include_media = $var; return $this; } /** * Generated from protobuf field bool include_playlists = 4; * @return bool */ public function getIncludePlaylists() { return $this->include_playlists; } /** * Generated from protobuf field bool include_playlists = 4; * @param bool $var * @return $this */ public function setIncludePlaylists($var) { GPBUtil::checkBool($var); $this->include_playlists = $var; return $this; } /** * Generated from protobuf field bool include_themes = 5; * @return bool */ public function getIncludeThemes() { return $this->include_themes; } /** * Generated from protobuf field bool include_themes = 5; * @param bool $var * @return $this */ public function setIncludeThemes($var) { GPBUtil::checkBool($var); $this->include_themes = $var; return $this; } /** * Generated from protobuf field bool include_support_files = 6; * @return bool */ public function getIncludeSupportFiles() { return $this->include_support_files; } /** * Generated from protobuf field bool include_support_files = 6; * @param bool $var * @return $this */ public function setIncludeSupportFiles($var) { GPBUtil::checkBool($var); $this->include_support_files = $var; return $this; } /** * Generated from protobuf field .rv.data.Preferences.Sync.SyncDirection direction = 7; * @return int */ public function getDirection() { return $this->direction; } /** * Generated from protobuf field .rv.data.Preferences.Sync.SyncDirection direction = 7; * @param int $var * @return $this */ public function setDirection($var) { GPBUtil::checkEnum($var, \Rv\Data\Preferences\Sync\SyncDirection::class); $this->direction = $var; return $this; } /** * Generated from protobuf field bool replace_destination_files = 8; * @return bool */ public function getReplaceDestinationFiles() { return $this->replace_destination_files; } /** * Generated from protobuf field bool replace_destination_files = 8; * @param bool $var * @return $this */ public function setReplaceDestinationFiles($var) { GPBUtil::checkBool($var); $this->replace_destination_files = $var; return $this; } }