propresenter7-php-lib/generated/Rv/Data/Graphics/Text/Attributes/CustomAttribute.php
Thorsten Bus 8e80a8af88 Upgrade proto schema to ProPresenter Proto 19beta
Sync the bundled .proto definitions with greyshirtguy/ProPresenter7-Proto
"Proto 19beta" (dumped from ProPresenter v19 beta build 318767123,
2025-06-05). This pulls in the schema for ProPresenter 19 features
including new advertisement groups, custom options, media metadata,
prop API v1, transport API, feature flags, PSB workspace, and zone
definitions, plus refactored analytics tracked events.

Strategy: merge rather than wholesale replace. All Proto 19beta files
overwrite our existing copies so we pick up the field/message updates
upstream made between 7.16.2 and 19beta. Eleven new .proto files are
added: advertisementGroup, analyticsEdit, analyticsMediaManagement,
analyticsPowerPoint, analyticsTrackedEvents, analyticsTriggerCue,
customOptions, mediaMetadata, proCoreFeatureFlags, psbWorkspace, zone.
Three google/protobuf well-known types (any, source_context, type) are
added for completeness; only descriptor.proto is actually imported.

Five proto files are kept that are not part of Proto 19beta upstream:
calendar.proto and keyMappings.proto were extracted from PP binaries
to support our parse-calendar and parse-key-mappings tools, while
analyticsCapture/Update/WHMStore.proto are retained from the prior
7.16.2 set so existing generated descriptors keep loading.

generated/ is regenerated from scratch with `protoc --php_out=generated
--proto_path=proto *.proto` (protoc 29.3, google/protobuf PHP 4.33.5).
The full PHPUnit suite (369 tests, 1298 assertions) still passes
without any source changes - the new schema is wire-compatible with our
reference files and high-level wrappers.

Documentation references to "v7.16.2" are updated to "Proto 19beta" in
LICENSE, doc/formats/pp_song_spec.md, pp_playlist_spec.md,
pp_bundle_spec.md, and doc/internal/decisions.md.
2026-05-04 07:19:24 +02:00

359 lines
8.9 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: graphicsData.proto
namespace Rv\Data\Graphics\Text\Attributes;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>rv.data.Graphics.Text.Attributes.CustomAttribute</code>
*/
class CustomAttribute extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>.rv.data.IntRange range = 1;</code>
*/
protected $range = null;
protected $Attribute;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\IntRange $range
* @type int $capitalization
* @type float $original_font_size
* @type float $font_scale_factor
* @type \Rv\Data\Graphics\Text\GradientFill $text_gradient_fill
* @type bool $should_preserve_foreground_color
* @type string $chord
* @type \Rv\Data\Graphics\Text\CutOutFill $cut_out_fill
* @type \Rv\Data\Graphics\Text\MediaFill $media_fill
* @type \Rv\Data\Graphics\BackgroundEffect $background_effect
* @type int $character_size_mode
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\GraphicsData::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.rv.data.IntRange range = 1;</code>
* @return \Rv\Data\IntRange|null
*/
public function getRange()
{
return $this->range;
}
public function hasRange()
{
return isset($this->range);
}
public function clearRange()
{
unset($this->range);
}
/**
* Generated from protobuf field <code>.rv.data.IntRange range = 1;</code>
* @param \Rv\Data\IntRange $var
* @return $this
*/
public function setRange($var)
{
GPBUtil::checkMessage($var, \Rv\Data\IntRange::class);
$this->range = $var;
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Capitalization capitalization = 2;</code>
* @return int
*/
public function getCapitalization()
{
return $this->readOneof(2);
}
public function hasCapitalization()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.Capitalization capitalization = 2;</code>
* @param int $var
* @return $this
*/
public function setCapitalization($var)
{
GPBUtil::checkEnum($var, \Rv\Data\Graphics\Text\Attributes\Capitalization::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field <code>double original_font_size = 3;</code>
* @return float
*/
public function getOriginalFontSize()
{
return $this->readOneof(3);
}
public function hasOriginalFontSize()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field <code>double original_font_size = 3;</code>
* @param float $var
* @return $this
*/
public function setOriginalFontSize($var)
{
GPBUtil::checkDouble($var);
$this->writeOneof(3, $var);
return $this;
}
/**
* Generated from protobuf field <code>double font_scale_factor = 4;</code>
* @return float
*/
public function getFontScaleFactor()
{
return $this->readOneof(4);
}
public function hasFontScaleFactor()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field <code>double font_scale_factor = 4;</code>
* @param float $var
* @return $this
*/
public function setFontScaleFactor($var)
{
GPBUtil::checkDouble($var);
$this->writeOneof(4, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Text.GradientFill text_gradient_fill = 5;</code>
* @return \Rv\Data\Graphics\Text\GradientFill|null
*/
public function getTextGradientFill()
{
return $this->readOneof(5);
}
public function hasTextGradientFill()
{
return $this->hasOneof(5);
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Text.GradientFill text_gradient_fill = 5;</code>
* @param \Rv\Data\Graphics\Text\GradientFill $var
* @return $this
*/
public function setTextGradientFill($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\GradientFill::class);
$this->writeOneof(5, $var);
return $this;
}
/**
* Generated from protobuf field <code>bool should_preserve_foreground_color = 6;</code>
* @return bool
*/
public function getShouldPreserveForegroundColor()
{
return $this->readOneof(6);
}
public function hasShouldPreserveForegroundColor()
{
return $this->hasOneof(6);
}
/**
* Generated from protobuf field <code>bool should_preserve_foreground_color = 6;</code>
* @param bool $var
* @return $this
*/
public function setShouldPreserveForegroundColor($var)
{
GPBUtil::checkBool($var);
$this->writeOneof(6, $var);
return $this;
}
/**
* Generated from protobuf field <code>string chord = 7;</code>
* @return string
*/
public function getChord()
{
return $this->readOneof(7);
}
public function hasChord()
{
return $this->hasOneof(7);
}
/**
* Generated from protobuf field <code>string chord = 7;</code>
* @param string $var
* @return $this
*/
public function setChord($var)
{
GPBUtil::checkString($var, True);
$this->writeOneof(7, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Text.CutOutFill cut_out_fill = 8;</code>
* @return \Rv\Data\Graphics\Text\CutOutFill|null
*/
public function getCutOutFill()
{
return $this->readOneof(8);
}
public function hasCutOutFill()
{
return $this->hasOneof(8);
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Text.CutOutFill cut_out_fill = 8;</code>
* @param \Rv\Data\Graphics\Text\CutOutFill $var
* @return $this
*/
public function setCutOutFill($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\CutOutFill::class);
$this->writeOneof(8, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Text.MediaFill media_fill = 9;</code>
* @return \Rv\Data\Graphics\Text\MediaFill|null
*/
public function getMediaFill()
{
return $this->readOneof(9);
}
public function hasMediaFill()
{
return $this->hasOneof(9);
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Text.MediaFill media_fill = 9;</code>
* @param \Rv\Data\Graphics\Text\MediaFill $var
* @return $this
*/
public function setMediaFill($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\Text\MediaFill::class);
$this->writeOneof(9, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.BackgroundEffect background_effect = 10;</code>
* @return \Rv\Data\Graphics\BackgroundEffect|null
*/
public function getBackgroundEffect()
{
return $this->readOneof(10);
}
public function hasBackgroundEffect()
{
return $this->hasOneof(10);
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.BackgroundEffect background_effect = 10;</code>
* @param \Rv\Data\Graphics\BackgroundEffect $var
* @return $this
*/
public function setBackgroundEffect($var)
{
GPBUtil::checkMessage($var, \Rv\Data\Graphics\BackgroundEffect::class);
$this->writeOneof(10, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.CharacterSizeMode character_size_mode = 11;</code>
* @return int
*/
public function getCharacterSizeMode()
{
return $this->readOneof(11);
}
public function hasCharacterSizeMode()
{
return $this->hasOneof(11);
}
/**
* Generated from protobuf field <code>.rv.data.Graphics.Text.Attributes.CharacterSizeMode character_size_mode = 11;</code>
* @param int $var
* @return $this
*/
public function setCharacterSizeMode($var)
{
GPBUtil::checkEnum($var, \Rv\Data\Graphics\Text\Attributes\CharacterSizeMode::class);
$this->writeOneof(11, $var);
return $this;
}
/**
* @return string
*/
public function getAttribute()
{
return $this->whichOneof("Attribute");
}
}