propresenter-php/php/generated/Rv/Data/Media/TransportProperties/RetriggerSetting.php
2026-03-01 16:12:17 +01:00

60 lines
1.8 KiB
PHP

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: graphicsData.proto
namespace Rv\Data\Media\TransportProperties;
use UnexpectedValueException;
/**
* Protobuf type <code>rv.data.Media.TransportProperties.RetriggerSetting</code>
*/
class RetriggerSetting
{
/**
* Generated from protobuf enum <code>RETRIGGER_SETTING_UNSET = 0;</code>
*/
const RETRIGGER_SETTING_UNSET = 0;
/**
* Generated from protobuf enum <code>RETRIGGER_SETTING_ALWAYS = 1;</code>
*/
const RETRIGGER_SETTING_ALWAYS = 1;
/**
* Generated from protobuf enum <code>RETRIGGER_SETTING_NEVER = 2;</code>
*/
const RETRIGGER_SETTING_NEVER = 2;
/**
* Generated from protobuf enum <code>RETRIGGER_SETTING_AUTOMATIC = 3;</code>
*/
const RETRIGGER_SETTING_AUTOMATIC = 3;
private static $valueToName = [
self::RETRIGGER_SETTING_UNSET => 'RETRIGGER_SETTING_UNSET',
self::RETRIGGER_SETTING_ALWAYS => 'RETRIGGER_SETTING_ALWAYS',
self::RETRIGGER_SETTING_NEVER => 'RETRIGGER_SETTING_NEVER',
self::RETRIGGER_SETTING_AUTOMATIC => 'RETRIGGER_SETTING_AUTOMATIC',
];
public static function name($value)
{
if (!isset(self::$valueToName[$value])) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no name defined for value %s', __CLASS__, $value));
}
return self::$valueToName[$value];
}
public static function value($name)
{
$const = __CLASS__ . '::' . strtoupper($name);
if (!defined($const)) {
throw new UnexpectedValueException(sprintf(
'Enum %s has no value defined for name %s', __CLASS__, $name));
}
return constant($const);
}
}