rv.data.LayerIdentificationOverlay.Layer */ class Layer { /** * Generated from protobuf enum LAYER_VIDEO_INPUT = 0; */ const LAYER_VIDEO_INPUT = 0; /** * Generated from protobuf enum LAYER_MEDIA = 1; */ const LAYER_MEDIA = 1; /** * Generated from protobuf enum LAYER_PRESENTATION = 2; */ const LAYER_PRESENTATION = 2; /** * Generated from protobuf enum LAYER_ANNOUNCEMENTS = 3; */ const LAYER_ANNOUNCEMENTS = 3; /** * Generated from protobuf enum LAYER_PROPS = 4; */ const LAYER_PROPS = 4; /** * Generated from protobuf enum LAYER_MESSAGES = 5; */ const LAYER_MESSAGES = 5; private static $valueToName = [ self::LAYER_VIDEO_INPUT => 'LAYER_VIDEO_INPUT', self::LAYER_MEDIA => 'LAYER_MEDIA', self::LAYER_PRESENTATION => 'LAYER_PRESENTATION', self::LAYER_ANNOUNCEMENTS => 'LAYER_ANNOUNCEMENTS', self::LAYER_PROPS => 'LAYER_PROPS', self::LAYER_MESSAGES => 'LAYER_MESSAGES', ]; 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); } }