- 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
313 lines
7.7 KiB
PHP
313 lines
7.7 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: proCore.proto
|
|
|
|
namespace Rv\Data;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.MediaMetadataRequestInfo</code>
|
|
*/
|
|
class MediaMetadataRequestInfo extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>string file_path = 1;</code>
|
|
*/
|
|
protected $file_path = '';
|
|
/**
|
|
* Generated from protobuf field <code>float time = 2;</code>
|
|
*/
|
|
protected $time = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>uint32 width = 3;</code>
|
|
*/
|
|
protected $width = 0;
|
|
/**
|
|
* Generated from protobuf field <code>uint32 height = 4;</code>
|
|
*/
|
|
protected $height = 0;
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Effect effects = 5;</code>
|
|
*/
|
|
private $effects;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.EdgeInsets crop_insets = 6;</code>
|
|
*/
|
|
protected $crop_insets = null;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.DrawingProperties.NativeRotationType native_rotation = 7;</code>
|
|
*/
|
|
protected $native_rotation = 0;
|
|
/**
|
|
* Generated from protobuf field <code>bool flipped_horizontally = 8;</code>
|
|
*/
|
|
protected $flipped_horizontally = false;
|
|
/**
|
|
* Generated from protobuf field <code>bool flipped_vertically = 9;</code>
|
|
*/
|
|
protected $flipped_vertically = false;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.AlphaType alpha_type = 10;</code>
|
|
*/
|
|
protected $alpha_type = 0;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $file_path
|
|
* @type float $time
|
|
* @type int $width
|
|
* @type int $height
|
|
* @type array<\Rv\Data\Effect>|\Google\Protobuf\Internal\RepeatedField $effects
|
|
* @type \Rv\Data\Graphics\EdgeInsets $crop_insets
|
|
* @type int $native_rotation
|
|
* @type bool $flipped_horizontally
|
|
* @type bool $flipped_vertically
|
|
* @type int $alpha_type
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\ProCore::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string file_path = 1;</code>
|
|
* @return string
|
|
*/
|
|
public function getFilePath()
|
|
{
|
|
return $this->file_path;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string file_path = 1;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setFilePath($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->file_path = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>float time = 2;</code>
|
|
* @return float
|
|
*/
|
|
public function getTime()
|
|
{
|
|
return $this->time;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>float time = 2;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setTime($var)
|
|
{
|
|
GPBUtil::checkFloat($var);
|
|
$this->time = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 width = 3;</code>
|
|
* @return int
|
|
*/
|
|
public function getWidth()
|
|
{
|
|
return $this->width;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 width = 3;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setWidth($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->width = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 height = 4;</code>
|
|
* @return int
|
|
*/
|
|
public function getHeight()
|
|
{
|
|
return $this->height;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>uint32 height = 4;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setHeight($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->height = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Effect effects = 5;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getEffects()
|
|
{
|
|
return $this->effects;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Effect effects = 5;</code>
|
|
* @param array<\Rv\Data\Effect>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setEffects($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Effect::class);
|
|
$this->effects = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.EdgeInsets crop_insets = 6;</code>
|
|
* @return \Rv\Data\Graphics\EdgeInsets|null
|
|
*/
|
|
public function getCropInsets()
|
|
{
|
|
return $this->crop_insets;
|
|
}
|
|
|
|
public function hasCropInsets()
|
|
{
|
|
return isset($this->crop_insets);
|
|
}
|
|
|
|
public function clearCropInsets()
|
|
{
|
|
unset($this->crop_insets);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.EdgeInsets crop_insets = 6;</code>
|
|
* @param \Rv\Data\Graphics\EdgeInsets $var
|
|
* @return $this
|
|
*/
|
|
public function setCropInsets($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Graphics\EdgeInsets::class);
|
|
$this->crop_insets = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.DrawingProperties.NativeRotationType native_rotation = 7;</code>
|
|
* @return int
|
|
*/
|
|
public function getNativeRotation()
|
|
{
|
|
return $this->native_rotation;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Media.DrawingProperties.NativeRotationType native_rotation = 7;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setNativeRotation($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Data\Media\DrawingProperties\NativeRotationType::class);
|
|
$this->native_rotation = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool flipped_horizontally = 8;</code>
|
|
* @return bool
|
|
*/
|
|
public function getFlippedHorizontally()
|
|
{
|
|
return $this->flipped_horizontally;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool flipped_horizontally = 8;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setFlippedHorizontally($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->flipped_horizontally = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool flipped_vertically = 9;</code>
|
|
* @return bool
|
|
*/
|
|
public function getFlippedVertically()
|
|
{
|
|
return $this->flipped_vertically;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool flipped_vertically = 9;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setFlippedVertically($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->flipped_vertically = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.AlphaType alpha_type = 10;</code>
|
|
* @return int
|
|
*/
|
|
public function getAlphaType()
|
|
{
|
|
return $this->alpha_type;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.AlphaType alpha_type = 10;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setAlphaType($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Data\AlphaType::class);
|
|
$this->alpha_type = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|