<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: livekit_egress.proto

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.ImageOutput</code>
 */
class ImageOutput extends \Google\Protobuf\Internal\Message
{
    /**
     * in seconds (required)
     *
     * Generated from protobuf field <code>uint32 capture_interval = 1;</code>
     */
    protected $capture_interval = 0;
    /**
     * (optional, defaults to track width)
     *
     * Generated from protobuf field <code>int32 width = 2;</code>
     */
    protected $width = 0;
    /**
     * (optional, defaults to track height)
     *
     * Generated from protobuf field <code>int32 height = 3;</code>
     */
    protected $height = 0;
    /**
     * (optional)
     *
     * Generated from protobuf field <code>string filename_prefix = 4;</code>
     */
    protected $filename_prefix = '';
    /**
     * (optional, default INDEX)
     *
     * Generated from protobuf field <code>.livekit.ImageFileSuffix filename_suffix = 5;</code>
     */
    protected $filename_suffix = 0;
    /**
     * (optional)
     *
     * Generated from protobuf field <code>.livekit.ImageCodec image_codec = 6;</code>
     */
    protected $image_codec = 0;
    /**
     * disable upload of manifest file (default false)
     *
     * Generated from protobuf field <code>bool disable_manifest = 7;</code>
     */
    protected $disable_manifest = false;
    protected $output;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $capture_interval
     *           in seconds (required)
     *     @type int $width
     *           (optional, defaults to track width)
     *     @type int $height
     *           (optional, defaults to track height)
     *     @type string $filename_prefix
     *           (optional)
     *     @type int $filename_suffix
     *           (optional, default INDEX)
     *     @type int $image_codec
     *           (optional)
     *     @type bool $disable_manifest
     *           disable upload of manifest file (default false)
     *     @type \Livekit\S3Upload $s3
     *     @type \Livekit\GCPUpload $gcp
     *     @type \Livekit\AzureBlobUpload $azure
     *     @type \Livekit\AliOSSUpload $aliOSS
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitEgress::initOnce();
        parent::__construct($data);
    }

    /**
     * in seconds (required)
     *
     * Generated from protobuf field <code>uint32 capture_interval = 1;</code>
     * @return int
     */
    public function getCaptureInterval()
    {
        return $this->capture_interval;
    }

    /**
     * in seconds (required)
     *
     * Generated from protobuf field <code>uint32 capture_interval = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCaptureInterval($var)
    {
        GPBUtil::checkUint32($var);
        $this->capture_interval = $var;

        return $this;
    }

    /**
     * (optional, defaults to track width)
     *
     * Generated from protobuf field <code>int32 width = 2;</code>
     * @return int
     */
    public function getWidth()
    {
        return $this->width;
    }

    /**
     * (optional, defaults to track width)
     *
     * Generated from protobuf field <code>int32 width = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setWidth($var)
    {
        GPBUtil::checkInt32($var);
        $this->width = $var;

        return $this;
    }

    /**
     * (optional, defaults to track height)
     *
     * Generated from protobuf field <code>int32 height = 3;</code>
     * @return int
     */
    public function getHeight()
    {
        return $this->height;
    }

    /**
     * (optional, defaults to track height)
     *
     * Generated from protobuf field <code>int32 height = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setHeight($var)
    {
        GPBUtil::checkInt32($var);
        $this->height = $var;

        return $this;
    }

    /**
     * (optional)
     *
     * Generated from protobuf field <code>string filename_prefix = 4;</code>
     * @return string
     */
    public function getFilenamePrefix()
    {
        return $this->filename_prefix;
    }

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

        return $this;
    }

    /**
     * (optional, default INDEX)
     *
     * Generated from protobuf field <code>.livekit.ImageFileSuffix filename_suffix = 5;</code>
     * @return int
     */
    public function getFilenameSuffix()
    {
        return $this->filename_suffix;
    }

    /**
     * (optional, default INDEX)
     *
     * Generated from protobuf field <code>.livekit.ImageFileSuffix filename_suffix = 5;</code>
     * @param int $var
     * @return $this
     */
    public function setFilenameSuffix($var)
    {
        GPBUtil::checkEnum($var, \Livekit\ImageFileSuffix::class);
        $this->filename_suffix = $var;

        return $this;
    }

    /**
     * (optional)
     *
     * Generated from protobuf field <code>.livekit.ImageCodec image_codec = 6;</code>
     * @return int
     */
    public function getImageCodec()
    {
        return $this->image_codec;
    }

    /**
     * (optional)
     *
     * Generated from protobuf field <code>.livekit.ImageCodec image_codec = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setImageCodec($var)
    {
        GPBUtil::checkEnum($var, \Livekit\ImageCodec::class);
        $this->image_codec = $var;

        return $this;
    }

    /**
     * disable upload of manifest file (default false)
     *
     * Generated from protobuf field <code>bool disable_manifest = 7;</code>
     * @return bool
     */
    public function getDisableManifest()
    {
        return $this->disable_manifest;
    }

    /**
     * disable upload of manifest file (default false)
     *
     * Generated from protobuf field <code>bool disable_manifest = 7;</code>
     * @param bool $var
     * @return $this
     */
    public function setDisableManifest($var)
    {
        GPBUtil::checkBool($var);
        $this->disable_manifest = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.S3Upload s3 = 8;</code>
     * @return \Livekit\S3Upload|null
     */
    public function getS3()
    {
        return $this->readOneof(8);
    }

    public function hasS3()
    {
        return $this->hasOneof(8);
    }

    /**
     * Generated from protobuf field <code>.livekit.S3Upload s3 = 8;</code>
     * @param \Livekit\S3Upload $var
     * @return $this
     */
    public function setS3($var)
    {
        GPBUtil::checkMessage($var, \Livekit\S3Upload::class);
        $this->writeOneof(8, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.GCPUpload gcp = 9;</code>
     * @return \Livekit\GCPUpload|null
     */
    public function getGcp()
    {
        return $this->readOneof(9);
    }

    public function hasGcp()
    {
        return $this->hasOneof(9);
    }

    /**
     * Generated from protobuf field <code>.livekit.GCPUpload gcp = 9;</code>
     * @param \Livekit\GCPUpload $var
     * @return $this
     */
    public function setGcp($var)
    {
        GPBUtil::checkMessage($var, \Livekit\GCPUpload::class);
        $this->writeOneof(9, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.AzureBlobUpload azure = 10;</code>
     * @return \Livekit\AzureBlobUpload|null
     */
    public function getAzure()
    {
        return $this->readOneof(10);
    }

    public function hasAzure()
    {
        return $this->hasOneof(10);
    }

    /**
     * Generated from protobuf field <code>.livekit.AzureBlobUpload azure = 10;</code>
     * @param \Livekit\AzureBlobUpload $var
     * @return $this
     */
    public function setAzure($var)
    {
        GPBUtil::checkMessage($var, \Livekit\AzureBlobUpload::class);
        $this->writeOneof(10, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.AliOSSUpload aliOSS = 11;</code>
     * @return \Livekit\AliOSSUpload|null
     */
    public function getAliOSS()
    {
        return $this->readOneof(11);
    }

    public function hasAliOSS()
    {
        return $this->hasOneof(11);
    }

    /**
     * Generated from protobuf field <code>.livekit.AliOSSUpload aliOSS = 11;</code>
     * @param \Livekit\AliOSSUpload $var
     * @return $this
     */
    public function setAliOSS($var)
    {
        GPBUtil::checkMessage($var, \Livekit\AliOSSUpload::class);
        $this->writeOneof(11, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getOutput()
    {
        return $this->whichOneof("output");
    }

}

