<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto\Message;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Generated from protobuf message <code>proto.Message.VideoMessage</code>
 */
class VideoMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string url = 1;</code>
     */
    protected $url = null;
    /**
     * Generated from protobuf field <code>optional string mimetype = 2;</code>
     */
    protected $mimetype = null;
    /**
     * Generated from protobuf field <code>optional bytes fileSha256 = 3;</code>
     */
    protected $fileSha256 = null;
    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 4;</code>
     */
    protected $fileLength = null;
    /**
     * Generated from protobuf field <code>optional uint32 seconds = 5;</code>
     */
    protected $seconds = null;
    /**
     * Generated from protobuf field <code>optional bytes mediaKey = 6;</code>
     */
    protected $mediaKey = null;
    /**
     * Generated from protobuf field <code>optional string caption = 7;</code>
     */
    protected $caption = null;
    /**
     * Generated from protobuf field <code>optional bool gifPlayback = 8;</code>
     */
    protected $gifPlayback = null;
    /**
     * Generated from protobuf field <code>optional uint32 height = 9;</code>
     */
    protected $height = null;
    /**
     * Generated from protobuf field <code>optional uint32 width = 10;</code>
     */
    protected $width = null;
    /**
     * Generated from protobuf field <code>optional bytes fileEncSha256 = 11;</code>
     */
    protected $fileEncSha256 = null;
    /**
     * Generated from protobuf field <code>repeated .proto.InteractiveAnnotation interactiveAnnotations = 12;</code>
     */
    private $interactiveAnnotations;
    /**
     * Generated from protobuf field <code>optional string directPath = 13;</code>
     */
    protected $directPath = null;
    /**
     * Generated from protobuf field <code>optional int64 mediaKeyTimestamp = 14;</code>
     */
    protected $mediaKeyTimestamp = null;
    /**
     * Generated from protobuf field <code>optional bytes jpegThumbnail = 16;</code>
     */
    protected $jpegThumbnail = null;
    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     */
    protected $contextInfo = null;
    /**
     * Generated from protobuf field <code>optional bytes streamingSidecar = 18;</code>
     */
    protected $streamingSidecar = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.VideoMessage.Attribution gifAttribution = 19;</code>
     */
    protected $gifAttribution = null;
    /**
     * Generated from protobuf field <code>optional bool viewOnce = 20;</code>
     */
    protected $viewOnce = null;
    /**
     * Generated from protobuf field <code>optional string thumbnailDirectPath = 21;</code>
     */
    protected $thumbnailDirectPath = null;
    /**
     * Generated from protobuf field <code>optional bytes thumbnailSha256 = 22;</code>
     */
    protected $thumbnailSha256 = null;
    /**
     * Generated from protobuf field <code>optional bytes thumbnailEncSha256 = 23;</code>
     */
    protected $thumbnailEncSha256 = null;
    /**
     * Generated from protobuf field <code>optional string staticUrl = 24;</code>
     */
    protected $staticUrl = null;
    /**
     * Generated from protobuf field <code>repeated .proto.InteractiveAnnotation annotations = 25;</code>
     */
    private $annotations;
    /**
     * Generated from protobuf field <code>optional string accessibilityLabel = 26;</code>
     */
    protected $accessibilityLabel = null;
    /**
     * Generated from protobuf field <code>repeated .proto.ProcessedVideo processedVideos = 27;</code>
     */
    private $processedVideos;
    /**
     * Generated from protobuf field <code>optional uint32 externalShareFullVideoDurationInSeconds = 28;</code>
     */
    protected $externalShareFullVideoDurationInSeconds = null;
    /**
     * Generated from protobuf field <code>optional uint64 motionPhotoPresentationOffsetMs = 29;</code>
     */
    protected $motionPhotoPresentationOffsetMs = null;
    /**
     * Generated from protobuf field <code>optional string metadataUrl = 30;</code>
     */
    protected $metadataUrl = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.VideoMessage.VideoSourceType videoSourceType = 31;</code>
     */
    protected $videoSourceType = null;
    /**
     * Generated from protobuf field <code>optional .proto.Message.MediaKeyDomain mediaKeyDomain = 32;</code>
     */
    protected $mediaKeyDomain = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $url
     *     @type string $mimetype
     *     @type string $fileSha256
     *     @type int|string $fileLength
     *     @type int $seconds
     *     @type string $mediaKey
     *     @type string $caption
     *     @type bool $gifPlayback
     *     @type int $height
     *     @type int $width
     *     @type string $fileEncSha256
     *     @type \PhpWA\Protocol\Proto\InteractiveAnnotation[] $interactiveAnnotations
     *     @type string $directPath
     *     @type int|string $mediaKeyTimestamp
     *     @type string $jpegThumbnail
     *     @type \PhpWA\Protocol\Proto\ContextInfo $contextInfo
     *     @type string $streamingSidecar
     *     @type int $gifAttribution
     *     @type bool $viewOnce
     *     @type string $thumbnailDirectPath
     *     @type string $thumbnailSha256
     *     @type string $thumbnailEncSha256
     *     @type string $staticUrl
     *     @type \PhpWA\Protocol\Proto\InteractiveAnnotation[] $annotations
     *     @type string $accessibilityLabel
     *     @type \PhpWA\Protocol\Proto\ProcessedVideo[] $processedVideos
     *     @type int $externalShareFullVideoDurationInSeconds
     *     @type int|string $motionPhotoPresentationOffsetMs
     *     @type string $metadataUrl
     *     @type int $videoSourceType
     *     @type int $mediaKeyDomain
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string url = 1;</code>
     * @return string
     */
    public function getUrl()
    {
        return isset($this->url) ? $this->url : '';
    }

    public function hasUrl()
    {
        return isset($this->url);
    }

    public function clearUrl()
    {
        unset($this->url);
    }

    /**
     * Generated from protobuf field <code>optional string url = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->url = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string mimetype = 2;</code>
     * @return string
     */
    public function getMimetype()
    {
        return isset($this->mimetype) ? $this->mimetype : '';
    }

    public function hasMimetype()
    {
        return isset($this->mimetype);
    }

    public function clearMimetype()
    {
        unset($this->mimetype);
    }

    /**
     * Generated from protobuf field <code>optional string mimetype = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setMimetype($var)
    {
        GPBUtil::checkString($var, True);
        $this->mimetype = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes fileSha256 = 3;</code>
     * @return string
     */
    public function getFileSha256()
    {
        return isset($this->fileSha256) ? $this->fileSha256 : '';
    }

    public function hasFileSha256()
    {
        return isset($this->fileSha256);
    }

    public function clearFileSha256()
    {
        unset($this->fileSha256);
    }

    /**
     * Generated from protobuf field <code>optional bytes fileSha256 = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setFileSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->fileSha256 = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 4;</code>
     * @return int|string
     */
    public function getFileLength()
    {
        return isset($this->fileLength) ? $this->fileLength : 0;
    }

    public function hasFileLength()
    {
        return isset($this->fileLength);
    }

    public function clearFileLength()
    {
        unset($this->fileLength);
    }

    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setFileLength($var)
    {
        GPBUtil::checkUint64($var);
        $this->fileLength = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 seconds = 5;</code>
     * @return int
     */
    public function getSeconds()
    {
        return isset($this->seconds) ? $this->seconds : 0;
    }

    public function hasSeconds()
    {
        return isset($this->seconds);
    }

    public function clearSeconds()
    {
        unset($this->seconds);
    }

    /**
     * Generated from protobuf field <code>optional uint32 seconds = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setSeconds($var)
    {
        GPBUtil::checkUint32($var);
        $this->seconds = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes mediaKey = 6;</code>
     * @return string
     */
    public function getMediaKey()
    {
        return isset($this->mediaKey) ? $this->mediaKey : '';
    }

    public function hasMediaKey()
    {
        return isset($this->mediaKey);
    }

    public function clearMediaKey()
    {
        unset($this->mediaKey);
    }

    /**
     * Generated from protobuf field <code>optional bytes mediaKey = 6;</code>
     * @param string $var
     * @return $this
     */
    public function setMediaKey($var)
    {
        GPBUtil::checkString($var, False);
        $this->mediaKey = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string caption = 7;</code>
     * @return string
     */
    public function getCaption()
    {
        return isset($this->caption) ? $this->caption : '';
    }

    public function hasCaption()
    {
        return isset($this->caption);
    }

    public function clearCaption()
    {
        unset($this->caption);
    }

    /**
     * Generated from protobuf field <code>optional string caption = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setCaption($var)
    {
        GPBUtil::checkString($var, True);
        $this->caption = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool gifPlayback = 8;</code>
     * @return bool
     */
    public function getGifPlayback()
    {
        return isset($this->gifPlayback) ? $this->gifPlayback : false;
    }

    public function hasGifPlayback()
    {
        return isset($this->gifPlayback);
    }

    public function clearGifPlayback()
    {
        unset($this->gifPlayback);
    }

    /**
     * Generated from protobuf field <code>optional bool gifPlayback = 8;</code>
     * @param bool $var
     * @return $this
     */
    public function setGifPlayback($var)
    {
        GPBUtil::checkBool($var);
        $this->gifPlayback = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 height = 9;</code>
     * @return int
     */
    public function getHeight()
    {
        return isset($this->height) ? $this->height : 0;
    }

    public function hasHeight()
    {
        return isset($this->height);
    }

    public function clearHeight()
    {
        unset($this->height);
    }

    /**
     * Generated from protobuf field <code>optional uint32 height = 9;</code>
     * @param int $var
     * @return $this
     */
    public function setHeight($var)
    {
        GPBUtil::checkUint32($var);
        $this->height = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 width = 10;</code>
     * @return int
     */
    public function getWidth()
    {
        return isset($this->width) ? $this->width : 0;
    }

    public function hasWidth()
    {
        return isset($this->width);
    }

    public function clearWidth()
    {
        unset($this->width);
    }

    /**
     * Generated from protobuf field <code>optional uint32 width = 10;</code>
     * @param int $var
     * @return $this
     */
    public function setWidth($var)
    {
        GPBUtil::checkUint32($var);
        $this->width = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes fileEncSha256 = 11;</code>
     * @return string
     */
    public function getFileEncSha256()
    {
        return isset($this->fileEncSha256) ? $this->fileEncSha256 : '';
    }

    public function hasFileEncSha256()
    {
        return isset($this->fileEncSha256);
    }

    public function clearFileEncSha256()
    {
        unset($this->fileEncSha256);
    }

    /**
     * Generated from protobuf field <code>optional bytes fileEncSha256 = 11;</code>
     * @param string $var
     * @return $this
     */
    public function setFileEncSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->fileEncSha256 = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.InteractiveAnnotation interactiveAnnotations = 12;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\InteractiveAnnotation>
     */
    public function getInteractiveAnnotations()
    {
        return $this->interactiveAnnotations;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.InteractiveAnnotation interactiveAnnotations = 12;</code>
     * @param \PhpWA\Protocol\Proto\InteractiveAnnotation[] $var
     * @return $this
     */
    public function setInteractiveAnnotations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\InteractiveAnnotation::class);
        $this->interactiveAnnotations = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string directPath = 13;</code>
     * @return string
     */
    public function getDirectPath()
    {
        return isset($this->directPath) ? $this->directPath : '';
    }

    public function hasDirectPath()
    {
        return isset($this->directPath);
    }

    public function clearDirectPath()
    {
        unset($this->directPath);
    }

    /**
     * Generated from protobuf field <code>optional string directPath = 13;</code>
     * @param string $var
     * @return $this
     */
    public function setDirectPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->directPath = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional int64 mediaKeyTimestamp = 14;</code>
     * @return int|string
     */
    public function getMediaKeyTimestamp()
    {
        return isset($this->mediaKeyTimestamp) ? $this->mediaKeyTimestamp : 0;
    }

    public function hasMediaKeyTimestamp()
    {
        return isset($this->mediaKeyTimestamp);
    }

    public function clearMediaKeyTimestamp()
    {
        unset($this->mediaKeyTimestamp);
    }

    /**
     * Generated from protobuf field <code>optional int64 mediaKeyTimestamp = 14;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMediaKeyTimestamp($var)
    {
        GPBUtil::checkInt64($var);
        $this->mediaKeyTimestamp = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes jpegThumbnail = 16;</code>
     * @return string
     */
    public function getJpegThumbnail()
    {
        return isset($this->jpegThumbnail) ? $this->jpegThumbnail : '';
    }

    public function hasJpegThumbnail()
    {
        return isset($this->jpegThumbnail);
    }

    public function clearJpegThumbnail()
    {
        unset($this->jpegThumbnail);
    }

    /**
     * Generated from protobuf field <code>optional bytes jpegThumbnail = 16;</code>
     * @param string $var
     * @return $this
     */
    public function setJpegThumbnail($var)
    {
        GPBUtil::checkString($var, False);
        $this->jpegThumbnail = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     * @return \PhpWA\Protocol\Proto\ContextInfo|null
     */
    public function getContextInfo()
    {
        return $this->contextInfo;
    }

    public function hasContextInfo()
    {
        return isset($this->contextInfo);
    }

    public function clearContextInfo()
    {
        unset($this->contextInfo);
    }

    /**
     * Generated from protobuf field <code>optional .proto.ContextInfo contextInfo = 17;</code>
     * @param \PhpWA\Protocol\Proto\ContextInfo $var
     * @return $this
     */
    public function setContextInfo($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\ContextInfo::class);
        $this->contextInfo = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes streamingSidecar = 18;</code>
     * @return string
     */
    public function getStreamingSidecar()
    {
        return isset($this->streamingSidecar) ? $this->streamingSidecar : '';
    }

    public function hasStreamingSidecar()
    {
        return isset($this->streamingSidecar);
    }

    public function clearStreamingSidecar()
    {
        unset($this->streamingSidecar);
    }

    /**
     * Generated from protobuf field <code>optional bytes streamingSidecar = 18;</code>
     * @param string $var
     * @return $this
     */
    public function setStreamingSidecar($var)
    {
        GPBUtil::checkString($var, False);
        $this->streamingSidecar = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.VideoMessage.Attribution gifAttribution = 19;</code>
     * @return int
     */
    public function getGifAttribution()
    {
        return isset($this->gifAttribution) ? $this->gifAttribution : 0;
    }

    public function hasGifAttribution()
    {
        return isset($this->gifAttribution);
    }

    public function clearGifAttribution()
    {
        unset($this->gifAttribution);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.VideoMessage.Attribution gifAttribution = 19;</code>
     * @param int $var
     * @return $this
     */
    public function setGifAttribution($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\VideoMessage\Attribution::class);
        $this->gifAttribution = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool viewOnce = 20;</code>
     * @return bool
     */
    public function getViewOnce()
    {
        return isset($this->viewOnce) ? $this->viewOnce : false;
    }

    public function hasViewOnce()
    {
        return isset($this->viewOnce);
    }

    public function clearViewOnce()
    {
        unset($this->viewOnce);
    }

    /**
     * Generated from protobuf field <code>optional bool viewOnce = 20;</code>
     * @param bool $var
     * @return $this
     */
    public function setViewOnce($var)
    {
        GPBUtil::checkBool($var);
        $this->viewOnce = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string thumbnailDirectPath = 21;</code>
     * @return string
     */
    public function getThumbnailDirectPath()
    {
        return isset($this->thumbnailDirectPath) ? $this->thumbnailDirectPath : '';
    }

    public function hasThumbnailDirectPath()
    {
        return isset($this->thumbnailDirectPath);
    }

    public function clearThumbnailDirectPath()
    {
        unset($this->thumbnailDirectPath);
    }

    /**
     * Generated from protobuf field <code>optional string thumbnailDirectPath = 21;</code>
     * @param string $var
     * @return $this
     */
    public function setThumbnailDirectPath($var)
    {
        GPBUtil::checkString($var, True);
        $this->thumbnailDirectPath = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes thumbnailSha256 = 22;</code>
     * @return string
     */
    public function getThumbnailSha256()
    {
        return isset($this->thumbnailSha256) ? $this->thumbnailSha256 : '';
    }

    public function hasThumbnailSha256()
    {
        return isset($this->thumbnailSha256);
    }

    public function clearThumbnailSha256()
    {
        unset($this->thumbnailSha256);
    }

    /**
     * Generated from protobuf field <code>optional bytes thumbnailSha256 = 22;</code>
     * @param string $var
     * @return $this
     */
    public function setThumbnailSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->thumbnailSha256 = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes thumbnailEncSha256 = 23;</code>
     * @return string
     */
    public function getThumbnailEncSha256()
    {
        return isset($this->thumbnailEncSha256) ? $this->thumbnailEncSha256 : '';
    }

    public function hasThumbnailEncSha256()
    {
        return isset($this->thumbnailEncSha256);
    }

    public function clearThumbnailEncSha256()
    {
        unset($this->thumbnailEncSha256);
    }

    /**
     * Generated from protobuf field <code>optional bytes thumbnailEncSha256 = 23;</code>
     * @param string $var
     * @return $this
     */
    public function setThumbnailEncSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->thumbnailEncSha256 = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string staticUrl = 24;</code>
     * @return string
     */
    public function getStaticUrl()
    {
        return isset($this->staticUrl) ? $this->staticUrl : '';
    }

    public function hasStaticUrl()
    {
        return isset($this->staticUrl);
    }

    public function clearStaticUrl()
    {
        unset($this->staticUrl);
    }

    /**
     * Generated from protobuf field <code>optional string staticUrl = 24;</code>
     * @param string $var
     * @return $this
     */
    public function setStaticUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->staticUrl = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.InteractiveAnnotation annotations = 25;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\InteractiveAnnotation>
     */
    public function getAnnotations()
    {
        return $this->annotations;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.InteractiveAnnotation annotations = 25;</code>
     * @param \PhpWA\Protocol\Proto\InteractiveAnnotation[] $var
     * @return $this
     */
    public function setAnnotations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\InteractiveAnnotation::class);
        $this->annotations = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string accessibilityLabel = 26;</code>
     * @return string
     */
    public function getAccessibilityLabel()
    {
        return isset($this->accessibilityLabel) ? $this->accessibilityLabel : '';
    }

    public function hasAccessibilityLabel()
    {
        return isset($this->accessibilityLabel);
    }

    public function clearAccessibilityLabel()
    {
        unset($this->accessibilityLabel);
    }

    /**
     * Generated from protobuf field <code>optional string accessibilityLabel = 26;</code>
     * @param string $var
     * @return $this
     */
    public function setAccessibilityLabel($var)
    {
        GPBUtil::checkString($var, True);
        $this->accessibilityLabel = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.ProcessedVideo processedVideos = 27;</code>
     * @return RepeatedField<\PhpWA\Protocol\Proto\ProcessedVideo>
     */
    public function getProcessedVideos()
    {
        return $this->processedVideos;
    }

    /**
     * Generated from protobuf field <code>repeated .proto.ProcessedVideo processedVideos = 27;</code>
     * @param \PhpWA\Protocol\Proto\ProcessedVideo[] $var
     * @return $this
     */
    public function setProcessedVideos($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \PhpWA\Protocol\Proto\ProcessedVideo::class);
        $this->processedVideos = $arr;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint32 externalShareFullVideoDurationInSeconds = 28;</code>
     * @return int
     */
    public function getExternalShareFullVideoDurationInSeconds()
    {
        return isset($this->externalShareFullVideoDurationInSeconds) ? $this->externalShareFullVideoDurationInSeconds : 0;
    }

    public function hasExternalShareFullVideoDurationInSeconds()
    {
        return isset($this->externalShareFullVideoDurationInSeconds);
    }

    public function clearExternalShareFullVideoDurationInSeconds()
    {
        unset($this->externalShareFullVideoDurationInSeconds);
    }

    /**
     * Generated from protobuf field <code>optional uint32 externalShareFullVideoDurationInSeconds = 28;</code>
     * @param int $var
     * @return $this
     */
    public function setExternalShareFullVideoDurationInSeconds($var)
    {
        GPBUtil::checkUint32($var);
        $this->externalShareFullVideoDurationInSeconds = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 motionPhotoPresentationOffsetMs = 29;</code>
     * @return int|string
     */
    public function getMotionPhotoPresentationOffsetMs()
    {
        return isset($this->motionPhotoPresentationOffsetMs) ? $this->motionPhotoPresentationOffsetMs : 0;
    }

    public function hasMotionPhotoPresentationOffsetMs()
    {
        return isset($this->motionPhotoPresentationOffsetMs);
    }

    public function clearMotionPhotoPresentationOffsetMs()
    {
        unset($this->motionPhotoPresentationOffsetMs);
    }

    /**
     * Generated from protobuf field <code>optional uint64 motionPhotoPresentationOffsetMs = 29;</code>
     * @param int|string $var
     * @return $this
     */
    public function setMotionPhotoPresentationOffsetMs($var)
    {
        GPBUtil::checkUint64($var);
        $this->motionPhotoPresentationOffsetMs = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string metadataUrl = 30;</code>
     * @return string
     */
    public function getMetadataUrl()
    {
        return isset($this->metadataUrl) ? $this->metadataUrl : '';
    }

    public function hasMetadataUrl()
    {
        return isset($this->metadataUrl);
    }

    public function clearMetadataUrl()
    {
        unset($this->metadataUrl);
    }

    /**
     * Generated from protobuf field <code>optional string metadataUrl = 30;</code>
     * @param string $var
     * @return $this
     */
    public function setMetadataUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->metadataUrl = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.VideoMessage.VideoSourceType videoSourceType = 31;</code>
     * @return int
     */
    public function getVideoSourceType()
    {
        return isset($this->videoSourceType) ? $this->videoSourceType : 0;
    }

    public function hasVideoSourceType()
    {
        return isset($this->videoSourceType);
    }

    public function clearVideoSourceType()
    {
        unset($this->videoSourceType);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.VideoMessage.VideoSourceType videoSourceType = 31;</code>
     * @param int $var
     * @return $this
     */
    public function setVideoSourceType($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\VideoMessage\VideoSourceType::class);
        $this->videoSourceType = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.MediaKeyDomain mediaKeyDomain = 32;</code>
     * @return int
     */
    public function getMediaKeyDomain()
    {
        return isset($this->mediaKeyDomain) ? $this->mediaKeyDomain : 0;
    }

    public function hasMediaKeyDomain()
    {
        return isset($this->mediaKeyDomain);
    }

    public function clearMediaKeyDomain()
    {
        unset($this->mediaKeyDomain);
    }

    /**
     * Generated from protobuf field <code>optional .proto.Message.MediaKeyDomain mediaKeyDomain = 32;</code>
     * @param int $var
     * @return $this
     */
    public function setMediaKeyDomain($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\Message\MediaKeyDomain::class);
        $this->mediaKeyDomain = $var;

        return $this;
    }

}

