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.
85 lines
2.3 KiB
PHP
85 lines
2.3 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: analyticsTriggerMedia.proto
|
|
|
|
namespace Rv\Analytics\Trigger\Media\Transport;
|
|
|
|
use UnexpectedValueException;
|
|
|
|
/**
|
|
* Protobuf type <code>rv.analytics.trigger.media.Transport.DurationRange</code>
|
|
*/
|
|
class DurationRange
|
|
{
|
|
/**
|
|
* Generated from protobuf enum <code>UNDER_10S = 0;</code>
|
|
*/
|
|
const UNDER_10S = 0;
|
|
/**
|
|
* Generated from protobuf enum <code>_10S_TO_30S = 1;</code>
|
|
*/
|
|
const _10S_TO_30S = 1;
|
|
/**
|
|
* Generated from protobuf enum <code>_30S_TO_60S = 2;</code>
|
|
*/
|
|
const _30S_TO_60S = 2;
|
|
/**
|
|
* Generated from protobuf enum <code>_1M_TO_5M = 3;</code>
|
|
*/
|
|
const _1M_TO_5M = 3;
|
|
/**
|
|
* Generated from protobuf enum <code>_5M_TO_10M = 4;</code>
|
|
*/
|
|
const _5M_TO_10M = 4;
|
|
/**
|
|
* Generated from protobuf enum <code>_10M_TO_30M = 5;</code>
|
|
*/
|
|
const _10M_TO_30M = 5;
|
|
/**
|
|
* Generated from protobuf enum <code>_30M_TO_60M = 6;</code>
|
|
*/
|
|
const _30M_TO_60M = 6;
|
|
/**
|
|
* Generated from protobuf enum <code>_1H_TO_2H = 7;</code>
|
|
*/
|
|
const _1H_TO_2H = 7;
|
|
/**
|
|
* Generated from protobuf enum <code>OVER_2H = 8;</code>
|
|
*/
|
|
const OVER_2H = 8;
|
|
|
|
private static $valueToName = [
|
|
self::UNDER_10S => 'UNDER_10S',
|
|
self::_10S_TO_30S => '_10S_TO_30S',
|
|
self::_30S_TO_60S => '_30S_TO_60S',
|
|
self::_1M_TO_5M => '_1M_TO_5M',
|
|
self::_5M_TO_10M => '_5M_TO_10M',
|
|
self::_10M_TO_30M => '_10M_TO_30M',
|
|
self::_30M_TO_60M => '_30M_TO_60M',
|
|
self::_1H_TO_2H => '_1H_TO_2H',
|
|
self::OVER_2H => 'OVER_2H',
|
|
];
|
|
|
|
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);
|
|
}
|
|
}
|
|
|