<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/video/stitcher/v1/sessions.proto

namespace Google\Cloud\Video\Stitcher\V1;

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

/**
 * Filters for a video or muxed redition.
 *
 * Generated from protobuf message <code>google.cloud.video.stitcher.v1.RenditionFilter</code>
 */
class RenditionFilter extends \Google\Protobuf\Internal\Message
{
    /**
     * Bitrate in bits per second for the rendition. If set, only renditions with
     * the exact bitrate will match.
     *
     * Generated from protobuf field <code>int32 bitrate_bps = 1;</code>
     */
    private $bitrate_bps = 0;
    /**
     * Codecs for the rendition. If set, only renditions with the exact value
     * will match.
     *
     * Generated from protobuf field <code>string codecs = 2;</code>
     */
    private $codecs = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $bitrate_bps
     *           Bitrate in bits per second for the rendition. If set, only renditions with
     *           the exact bitrate will match.
     *     @type string $codecs
     *           Codecs for the rendition. If set, only renditions with the exact value
     *           will match.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Video\Stitcher\V1\Sessions::initOnce();
        parent::__construct($data);
    }

    /**
     * Bitrate in bits per second for the rendition. If set, only renditions with
     * the exact bitrate will match.
     *
     * Generated from protobuf field <code>int32 bitrate_bps = 1;</code>
     * @return int
     */
    public function getBitrateBps()
    {
        return $this->bitrate_bps;
    }

    /**
     * Bitrate in bits per second for the rendition. If set, only renditions with
     * the exact bitrate will match.
     *
     * Generated from protobuf field <code>int32 bitrate_bps = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setBitrateBps($var)
    {
        GPBUtil::checkInt32($var);
        $this->bitrate_bps = $var;

        return $this;
    }

    /**
     * Codecs for the rendition. If set, only renditions with the exact value
     * will match.
     *
     * Generated from protobuf field <code>string codecs = 2;</code>
     * @return string
     */
    public function getCodecs()
    {
        return $this->codecs;
    }

    /**
     * Codecs for the rendition. If set, only renditions with the exact value
     * will match.
     *
     * Generated from protobuf field <code>string codecs = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setCodecs($var)
    {
        GPBUtil::checkString($var, True);
        $this->codecs = $var;

        return $this;
    }

}

