propresenter-php/generated/Rv/Data/TestPatternDefinition/Property.php
Thorsten Bus 22ba4aff7d refactor: make repo Composer-compatible by moving php/ to root and ref/ to doc/reference_samples
- 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
2026-03-30 13:26:29 +02:00

265 lines
7.6 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: testPattern.proto
namespace Rv\Data\TestPatternDefinition;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>rv.data.TestPatternDefinition.Property</code>
*/
class Property extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>string name_localization_key = 1;</code>
*/
protected $name_localization_key = '';
protected $PropertyType;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name_localization_key
* @type \Rv\Data\TestPatternDefinition\ColorProperty $color_property
* @type \Rv\Data\TestPatternDefinition\DoubleProperty $double_property
* @type \Rv\Data\TestPatternDefinition\IntProperty $int_property
* @type \Rv\Data\TestPatternDefinition\BoolProperty $bool_property
* @type \Rv\Data\TestPatternDefinition\StringProperty $string_property
* @type \Rv\Data\TestPatternDefinition\FontProperty $font_property
* @type \Rv\Data\TestPatternDefinition\SelectorProperty $selector_property
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\TestPattern::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>string name_localization_key = 1;</code>
* @return string
*/
public function getNameLocalizationKey()
{
return $this->name_localization_key;
}
/**
* Generated from protobuf field <code>string name_localization_key = 1;</code>
* @param string $var
* @return $this
*/
public function setNameLocalizationKey($var)
{
GPBUtil::checkString($var, True);
$this->name_localization_key = $var;
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.ColorProperty color_property = 3;</code>
* @return \Rv\Data\TestPatternDefinition\ColorProperty|null
*/
public function getColorProperty()
{
return $this->readOneof(3);
}
public function hasColorProperty()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.ColorProperty color_property = 3;</code>
* @param \Rv\Data\TestPatternDefinition\ColorProperty $var
* @return $this
*/
public function setColorProperty($var)
{
GPBUtil::checkMessage($var, \Rv\Data\TestPatternDefinition\ColorProperty::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.DoubleProperty double_property = 4;</code>
* @return \Rv\Data\TestPatternDefinition\DoubleProperty|null
*/
public function getDoubleProperty()
{
return $this->readOneof(4);
}
public function hasDoubleProperty()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.DoubleProperty double_property = 4;</code>
* @param \Rv\Data\TestPatternDefinition\DoubleProperty $var
* @return $this
*/
public function setDoubleProperty($var)
{
GPBUtil::checkMessage($var, \Rv\Data\TestPatternDefinition\DoubleProperty::class);
$this->writeOneof(4, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.IntProperty int_property = 5;</code>
* @return \Rv\Data\TestPatternDefinition\IntProperty|null
*/
public function getIntProperty()
{
return $this->readOneof(5);
}
public function hasIntProperty()
{
return $this->hasOneof(5);
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.IntProperty int_property = 5;</code>
* @param \Rv\Data\TestPatternDefinition\IntProperty $var
* @return $this
*/
public function setIntProperty($var)
{
GPBUtil::checkMessage($var, \Rv\Data\TestPatternDefinition\IntProperty::class);
$this->writeOneof(5, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.BoolProperty bool_property = 6;</code>
* @return \Rv\Data\TestPatternDefinition\BoolProperty|null
*/
public function getBoolProperty()
{
return $this->readOneof(6);
}
public function hasBoolProperty()
{
return $this->hasOneof(6);
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.BoolProperty bool_property = 6;</code>
* @param \Rv\Data\TestPatternDefinition\BoolProperty $var
* @return $this
*/
public function setBoolProperty($var)
{
GPBUtil::checkMessage($var, \Rv\Data\TestPatternDefinition\BoolProperty::class);
$this->writeOneof(6, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.StringProperty string_property = 7;</code>
* @return \Rv\Data\TestPatternDefinition\StringProperty|null
*/
public function getStringProperty()
{
return $this->readOneof(7);
}
public function hasStringProperty()
{
return $this->hasOneof(7);
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.StringProperty string_property = 7;</code>
* @param \Rv\Data\TestPatternDefinition\StringProperty $var
* @return $this
*/
public function setStringProperty($var)
{
GPBUtil::checkMessage($var, \Rv\Data\TestPatternDefinition\StringProperty::class);
$this->writeOneof(7, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.FontProperty font_property = 8;</code>
* @return \Rv\Data\TestPatternDefinition\FontProperty|null
*/
public function getFontProperty()
{
return $this->readOneof(8);
}
public function hasFontProperty()
{
return $this->hasOneof(8);
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.FontProperty font_property = 8;</code>
* @param \Rv\Data\TestPatternDefinition\FontProperty $var
* @return $this
*/
public function setFontProperty($var)
{
GPBUtil::checkMessage($var, \Rv\Data\TestPatternDefinition\FontProperty::class);
$this->writeOneof(8, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.SelectorProperty selector_property = 9;</code>
* @return \Rv\Data\TestPatternDefinition\SelectorProperty|null
*/
public function getSelectorProperty()
{
return $this->readOneof(9);
}
public function hasSelectorProperty()
{
return $this->hasOneof(9);
}
/**
* Generated from protobuf field <code>.rv.data.TestPatternDefinition.SelectorProperty selector_property = 9;</code>
* @param \Rv\Data\TestPatternDefinition\SelectorProperty $var
* @return $this
*/
public function setSelectorProperty($var)
{
GPBUtil::checkMessage($var, \Rv\Data\TestPatternDefinition\SelectorProperty::class);
$this->writeOneof(9, $var);
return $this;
}
/**
* @return string
*/
public function getPropertyType()
{
return $this->whichOneof("PropertyType");
}
}