rv.analytics.trigger.media.VisualMedia.ScaleMode
*/
class ScaleMode
{
/**
* Generated from protobuf enum FIT = 0;
*/
const FIT = 0;
/**
* Generated from protobuf enum FILL = 1;
*/
const FILL = 1;
/**
* Generated from protobuf enum STRETCH = 2;
*/
const STRETCH = 2;
/**
* Generated from protobuf enum BLUR = 3;
*/
const BLUR = 3;
private static $valueToName = [
self::FIT => 'FIT',
self::FILL => 'FILL',
self::STRETCH => 'STRETCH',
self::BLUR => 'BLUR',
];
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);
}
}