- 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
236 lines
6 KiB
PHP
236 lines
6 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: effects.proto
|
|
|
|
namespace Rv\Data\Effect;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Effect.EffectVariable</code>
|
|
*/
|
|
class EffectVariable extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>string name = 1;</code>
|
|
*/
|
|
protected $name = '';
|
|
/**
|
|
* Generated from protobuf field <code>string description = 2;</code>
|
|
*/
|
|
protected $description = '';
|
|
protected $Type;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $name
|
|
* @type string $description
|
|
* @type \Rv\Data\Effect\EffectVariable\EffectInt $int
|
|
* @type \Rv\Data\Effect\EffectVariable\EffectFloat $float
|
|
* @type \Rv\Data\Effect\EffectVariable\EffectColor $color
|
|
* @type \Rv\Data\Effect\EffectVariable\EffectDirection $direction
|
|
* @type \Rv\Data\Effect\EffectVariable\EffectDouble $double
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Effects::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string name = 1;</code>
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string name = 1;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string description = 2;</code>
|
|
* @return string
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>string description = 2;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setDescription($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->description = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectInt int = 3;</code>
|
|
* @return \Rv\Data\Effect\EffectVariable\EffectInt|null
|
|
*/
|
|
public function getInt()
|
|
{
|
|
return $this->readOneof(3);
|
|
}
|
|
|
|
public function hasInt()
|
|
{
|
|
return $this->hasOneof(3);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectInt int = 3;</code>
|
|
* @param \Rv\Data\Effect\EffectVariable\EffectInt $var
|
|
* @return $this
|
|
*/
|
|
public function setInt($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Effect\EffectVariable\EffectInt::class);
|
|
$this->writeOneof(3, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectFloat float = 4;</code>
|
|
* @return \Rv\Data\Effect\EffectVariable\EffectFloat|null
|
|
*/
|
|
public function getFloat()
|
|
{
|
|
return $this->readOneof(4);
|
|
}
|
|
|
|
public function hasFloat()
|
|
{
|
|
return $this->hasOneof(4);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectFloat float = 4;</code>
|
|
* @param \Rv\Data\Effect\EffectVariable\EffectFloat $var
|
|
* @return $this
|
|
*/
|
|
public function setFloat($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Effect\EffectVariable\EffectFloat::class);
|
|
$this->writeOneof(4, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectColor color = 5;</code>
|
|
* @return \Rv\Data\Effect\EffectVariable\EffectColor|null
|
|
*/
|
|
public function getColor()
|
|
{
|
|
return $this->readOneof(5);
|
|
}
|
|
|
|
public function hasColor()
|
|
{
|
|
return $this->hasOneof(5);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectColor color = 5;</code>
|
|
* @param \Rv\Data\Effect\EffectVariable\EffectColor $var
|
|
* @return $this
|
|
*/
|
|
public function setColor($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Effect\EffectVariable\EffectColor::class);
|
|
$this->writeOneof(5, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectDirection direction = 6;</code>
|
|
* @return \Rv\Data\Effect\EffectVariable\EffectDirection|null
|
|
*/
|
|
public function getDirection()
|
|
{
|
|
return $this->readOneof(6);
|
|
}
|
|
|
|
public function hasDirection()
|
|
{
|
|
return $this->hasOneof(6);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectDirection direction = 6;</code>
|
|
* @param \Rv\Data\Effect\EffectVariable\EffectDirection $var
|
|
* @return $this
|
|
*/
|
|
public function setDirection($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Effect\EffectVariable\EffectDirection::class);
|
|
$this->writeOneof(6, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectDouble double = 7;</code>
|
|
* @return \Rv\Data\Effect\EffectVariable\EffectDouble|null
|
|
*/
|
|
public function getDouble()
|
|
{
|
|
return $this->readOneof(7);
|
|
}
|
|
|
|
public function hasDouble()
|
|
{
|
|
return $this->hasOneof(7);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectDouble double = 7;</code>
|
|
* @param \Rv\Data\Effect\EffectVariable\EffectDouble $var
|
|
* @return $this
|
|
*/
|
|
public function setDouble($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Rv\Data\Effect\EffectVariable\EffectDouble::class);
|
|
$this->writeOneof(7, $var);
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getType()
|
|
{
|
|
return $this->whichOneof("Type");
|
|
}
|
|
|
|
}
|
|
|