rv.data.TestPattern
*/
class TestPattern extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .rv.data.TestPattern.Type type = 1;
*/
protected $type = 0;
protected $PatternProperties;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $type
* @type \Rv\Data\TestPattern\BlendGrid $blend_grid
* @type \Rv\Data\TestPattern\CustomColor $custom_color
* @type \Rv\Data\TestPattern\IntensityColor $intensity
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\TestPattern::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .rv.data.TestPattern.Type type = 1;
* @return int
*/
public function getType()
{
return $this->type;
}
/**
* Generated from protobuf field .rv.data.TestPattern.Type type = 1;
* @param int $var
* @return $this
*/
public function setType($var)
{
GPBUtil::checkEnum($var, \Rv\Data\TestPattern\Type::class);
$this->type = $var;
return $this;
}
/**
* Generated from protobuf field .rv.data.TestPattern.BlendGrid blend_grid = 2;
* @return \Rv\Data\TestPattern\BlendGrid|null
*/
public function getBlendGrid()
{
return $this->readOneof(2);
}
public function hasBlendGrid()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field .rv.data.TestPattern.BlendGrid blend_grid = 2;
* @param \Rv\Data\TestPattern\BlendGrid $var
* @return $this
*/
public function setBlendGrid($var)
{
GPBUtil::checkMessage($var, \Rv\Data\TestPattern\BlendGrid::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.TestPattern.CustomColor custom_color = 3;
* @return \Rv\Data\TestPattern\CustomColor|null
*/
public function getCustomColor()
{
return $this->readOneof(3);
}
public function hasCustomColor()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field .rv.data.TestPattern.CustomColor custom_color = 3;
* @param \Rv\Data\TestPattern\CustomColor $var
* @return $this
*/
public function setCustomColor($var)
{
GPBUtil::checkMessage($var, \Rv\Data\TestPattern\CustomColor::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* Generated from protobuf field .rv.data.TestPattern.IntensityColor intensity = 4;
* @return \Rv\Data\TestPattern\IntensityColor|null
*/
public function getIntensity()
{
return $this->readOneof(4);
}
public function hasIntensity()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field .rv.data.TestPattern.IntensityColor intensity = 4;
* @param \Rv\Data\TestPattern\IntensityColor $var
* @return $this
*/
public function setIntensity($var)
{
GPBUtil::checkMessage($var, \Rv\Data\TestPattern\IntensityColor::class);
$this->writeOneof(4, $var);
return $this;
}
/**
* @return string
*/
public function getPatternProperties()
{
return $this->whichOneof("PatternProperties");
}
}