- Move src/, tests/, bin/, generated/, proto/, composer.json, composer.lock, phpunit.xml from php/ to repo root - Move ref/ to doc/reference_samples/ for better organization - Remove vendor/ from git tracking (now properly gitignored) - Update all test file paths (dirname adjustments and ref/ -> doc/reference_samples/) - Update all documentation paths (AGENTS.md, doc/*.md) - Remove php.bak/ directory - All 252 tests pass
249 lines
6.1 KiB
PHP
249 lines
6.1 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: preferences.proto
|
|
|
|
namespace Rv\Data\Preferences;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Preferences.Sync</code>
|
|
*/
|
|
class Sync extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>string repository = 1;</code>
|
|
*/
|
|
protected $repository = '';
|
|
/**
|
|
* Generated from protobuf field <code>bool include_libraries = 2;</code>
|
|
*/
|
|
protected $include_libraries = false;
|
|
/**
|
|
* Generated from protobuf field <code>bool include_media = 3;</code>
|
|
*/
|
|
protected $include_media = false;
|
|
/**
|
|
* Generated from protobuf field <code>bool include_playlists = 4;</code>
|
|
*/
|
|
protected $include_playlists = false;
|
|
/**
|
|
* Generated from protobuf field <code>bool include_themes = 5;</code>
|
|
*/
|
|
protected $include_themes = false;
|
|
/**
|
|
* Generated from protobuf field <code>bool include_support_files = 6;</code>
|
|
*/
|
|
protected $include_support_files = false;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Preferences.Sync.SyncDirection direction = 7;</code>
|
|
*/
|
|
protected $direction = 0;
|
|
/**
|
|
* Generated from protobuf field <code>bool replace_destination_files = 8;</code>
|
|
*/
|
|
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 <code>string repository = 1;</code>
|
|
* @return string
|
|
*/
|
|
public function getRepository()
|
|
{
|
|
return $this->repository;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string repository = 1;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setRepository($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->repository = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool include_libraries = 2;</code>
|
|
* @return bool
|
|
*/
|
|
public function getIncludeLibraries()
|
|
{
|
|
return $this->include_libraries;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool include_libraries = 2;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setIncludeLibraries($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->include_libraries = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool include_media = 3;</code>
|
|
* @return bool
|
|
*/
|
|
public function getIncludeMedia()
|
|
{
|
|
return $this->include_media;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool include_media = 3;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setIncludeMedia($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->include_media = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool include_playlists = 4;</code>
|
|
* @return bool
|
|
*/
|
|
public function getIncludePlaylists()
|
|
{
|
|
return $this->include_playlists;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool include_playlists = 4;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setIncludePlaylists($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->include_playlists = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool include_themes = 5;</code>
|
|
* @return bool
|
|
*/
|
|
public function getIncludeThemes()
|
|
{
|
|
return $this->include_themes;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool include_themes = 5;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setIncludeThemes($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->include_themes = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool include_support_files = 6;</code>
|
|
* @return bool
|
|
*/
|
|
public function getIncludeSupportFiles()
|
|
{
|
|
return $this->include_support_files;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool include_support_files = 6;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setIncludeSupportFiles($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->include_support_files = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Preferences.Sync.SyncDirection direction = 7;</code>
|
|
* @return int
|
|
*/
|
|
public function getDirection()
|
|
{
|
|
return $this->direction;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Preferences.Sync.SyncDirection direction = 7;</code>
|
|
* @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 <code>bool replace_destination_files = 8;</code>
|
|
* @return bool
|
|
*/
|
|
public function getReplaceDestinationFiles()
|
|
{
|
|
return $this->replace_destination_files;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool replace_destination_files = 8;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setReplaceDestinationFiles($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->replace_destination_files = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|