propresenter7-php-lib/generated/Rv/Data/ProLink/HandlerIn/AddConnectionResult/Failure.php
Thorsten Buss 4d10db4f17 Initial public release
PHP 8.4 library and CLI tools to read, modify, and generate ProPresenter 7
files: songs (.pro), playlists (.proplaylist), bundles (.probundle), themes,
and the global library files (Macros, Labels, Groups, ClearGroups, CCLI,
Messages, Timers, Stage, Workspace, Props, TestPatterns, Calendar,
KeyMappings, CommunicationDevices).

Built on the MIT-licensed ProPresenter7-Proto schema by greyshirtguy
(v7.16.2). Includes 18 CLI parsers, comprehensive API docs in doc/,
binary-format specs, and a synthetic 369-test PHPUnit suite covering
RTF extraction, translation slides, ZIP64 repair, round-trip fidelity,
and end-to-end generation.
2026-05-03 22:21:01 +02:00

294 lines
9.6 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApi.proto
namespace Rv\Data\ProLink\HandlerIn\AddConnectionResult;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>rv.data.ProLink.HandlerIn.AddConnectionResult.Failure</code>
*/
class Failure extends \Google\Protobuf\Internal\Message
{
protected $Reason;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\Unexpected $unexpected
* @type \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\Declined $declined
* @type \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\Timeout $timeout
* @type \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\LinkDisabled $link_disabled
* @type \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\InOtherGroup $in_other_group
* @type \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\InvalidIpAddress $invalid_ip_address
* @type \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\AlreadyInGroup $already_in_group
* @type \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\CouldNotAdd $could_not_add
* @type \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\CouldNotJoin $could_not_join
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\ProApi::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.Unexpected unexpected = 1;</code>
* @return \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\Unexpected|null
*/
public function getUnexpected()
{
return $this->readOneof(1);
}
public function hasUnexpected()
{
return $this->hasOneof(1);
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.Unexpected unexpected = 1;</code>
* @param \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\Unexpected $var
* @return $this
*/
public function setUnexpected($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\Unexpected::class);
$this->writeOneof(1, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.Declined declined = 2;</code>
* @return \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\Declined|null
*/
public function getDeclined()
{
return $this->readOneof(2);
}
public function hasDeclined()
{
return $this->hasOneof(2);
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.Declined declined = 2;</code>
* @param \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\Declined $var
* @return $this
*/
public function setDeclined($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\Declined::class);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.Timeout timeout = 3;</code>
* @return \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\Timeout|null
*/
public function getTimeout()
{
return $this->readOneof(3);
}
public function hasTimeout()
{
return $this->hasOneof(3);
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.Timeout timeout = 3;</code>
* @param \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\Timeout $var
* @return $this
*/
public function setTimeout($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\Timeout::class);
$this->writeOneof(3, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.LinkDisabled link_disabled = 4;</code>
* @return \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\LinkDisabled|null
*/
public function getLinkDisabled()
{
return $this->readOneof(4);
}
public function hasLinkDisabled()
{
return $this->hasOneof(4);
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.LinkDisabled link_disabled = 4;</code>
* @param \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\LinkDisabled $var
* @return $this
*/
public function setLinkDisabled($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\LinkDisabled::class);
$this->writeOneof(4, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.InOtherGroup in_other_group = 5;</code>
* @return \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\InOtherGroup|null
*/
public function getInOtherGroup()
{
return $this->readOneof(5);
}
public function hasInOtherGroup()
{
return $this->hasOneof(5);
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.InOtherGroup in_other_group = 5;</code>
* @param \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\InOtherGroup $var
* @return $this
*/
public function setInOtherGroup($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\InOtherGroup::class);
$this->writeOneof(5, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.InvalidIpAddress invalid_ip_address = 6;</code>
* @return \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\InvalidIpAddress|null
*/
public function getInvalidIpAddress()
{
return $this->readOneof(6);
}
public function hasInvalidIpAddress()
{
return $this->hasOneof(6);
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.InvalidIpAddress invalid_ip_address = 6;</code>
* @param \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\InvalidIpAddress $var
* @return $this
*/
public function setInvalidIpAddress($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\InvalidIpAddress::class);
$this->writeOneof(6, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.AlreadyInGroup already_in_group = 7;</code>
* @return \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\AlreadyInGroup|null
*/
public function getAlreadyInGroup()
{
return $this->readOneof(7);
}
public function hasAlreadyInGroup()
{
return $this->hasOneof(7);
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.AlreadyInGroup already_in_group = 7;</code>
* @param \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\AlreadyInGroup $var
* @return $this
*/
public function setAlreadyInGroup($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\AlreadyInGroup::class);
$this->writeOneof(7, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.CouldNotAdd could_not_add = 8;</code>
* @return \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\CouldNotAdd|null
*/
public function getCouldNotAdd()
{
return $this->readOneof(8);
}
public function hasCouldNotAdd()
{
return $this->hasOneof(8);
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.CouldNotAdd could_not_add = 8;</code>
* @param \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\CouldNotAdd $var
* @return $this
*/
public function setCouldNotAdd($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\CouldNotAdd::class);
$this->writeOneof(8, $var);
return $this;
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.CouldNotJoin could_not_join = 9;</code>
* @return \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\CouldNotJoin|null
*/
public function getCouldNotJoin()
{
return $this->readOneof(9);
}
public function hasCouldNotJoin()
{
return $this->hasOneof(9);
}
/**
* Generated from protobuf field <code>.rv.data.ProLink.HandlerIn.AddConnectionResult.Failure.CouldNotJoin could_not_join = 9;</code>
* @param \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\CouldNotJoin $var
* @return $this
*/
public function setCouldNotJoin($var)
{
GPBUtil::checkMessage($var, \Rv\Data\ProLink\HandlerIn\AddConnectionResult\Failure\CouldNotJoin::class);
$this->writeOneof(9, $var);
return $this;
}
/**
* @return string
*/
public function getReason()
{
return $this->whichOneof("Reason");
}
}