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

namespace Google\Cloud\Video\Transcoder\V1\PreprocessingConfig;

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

/**
 * Color preprocessing configuration.
 * **Note:** This configuration is not supported.
 *
 * Generated from protobuf message <code>google.cloud.video.transcoder.v1.PreprocessingConfig.Color</code>
 */
class Color extends \Google\Protobuf\Internal\Message
{
    /**
     * Control color saturation of the video. Enter a value between -1 and 1,
     * where -1 is fully desaturated and 1 is maximum saturation. 0 is no
     * change. The default is 0.
     *
     * Generated from protobuf field <code>double saturation = 1;</code>
     */
    private $saturation = 0.0;
    /**
     * Control black and white contrast of the video. Enter a value between -1
     * and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no
     * change. The default is 0.
     *
     * Generated from protobuf field <code>double contrast = 2;</code>
     */
    private $contrast = 0.0;
    /**
     * Control brightness of the video. Enter a value between -1 and 1, where -1
     * is minimum brightness and 1 is maximum brightness. 0 is no change. The
     * default is 0.
     *
     * Generated from protobuf field <code>double brightness = 3;</code>
     */
    private $brightness = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $saturation
     *           Control color saturation of the video. Enter a value between -1 and 1,
     *           where -1 is fully desaturated and 1 is maximum saturation. 0 is no
     *           change. The default is 0.
     *     @type float $contrast
     *           Control black and white contrast of the video. Enter a value between -1
     *           and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no
     *           change. The default is 0.
     *     @type float $brightness
     *           Control brightness of the video. Enter a value between -1 and 1, where -1
     *           is minimum brightness and 1 is maximum brightness. 0 is no change. The
     *           default is 0.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Video\Transcoder\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * Control color saturation of the video. Enter a value between -1 and 1,
     * where -1 is fully desaturated and 1 is maximum saturation. 0 is no
     * change. The default is 0.
     *
     * Generated from protobuf field <code>double saturation = 1;</code>
     * @return float
     */
    public function getSaturation()
    {
        return $this->saturation;
    }

    /**
     * Control color saturation of the video. Enter a value between -1 and 1,
     * where -1 is fully desaturated and 1 is maximum saturation. 0 is no
     * change. The default is 0.
     *
     * Generated from protobuf field <code>double saturation = 1;</code>
     * @param float $var
     * @return $this
     */
    public function setSaturation($var)
    {
        GPBUtil::checkDouble($var);
        $this->saturation = $var;

        return $this;
    }

    /**
     * Control black and white contrast of the video. Enter a value between -1
     * and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no
     * change. The default is 0.
     *
     * Generated from protobuf field <code>double contrast = 2;</code>
     * @return float
     */
    public function getContrast()
    {
        return $this->contrast;
    }

    /**
     * Control black and white contrast of the video. Enter a value between -1
     * and 1, where -1 is minimum contrast and 1 is maximum contrast. 0 is no
     * change. The default is 0.
     *
     * Generated from protobuf field <code>double contrast = 2;</code>
     * @param float $var
     * @return $this
     */
    public function setContrast($var)
    {
        GPBUtil::checkDouble($var);
        $this->contrast = $var;

        return $this;
    }

    /**
     * Control brightness of the video. Enter a value between -1 and 1, where -1
     * is minimum brightness and 1 is maximum brightness. 0 is no change. The
     * default is 0.
     *
     * Generated from protobuf field <code>double brightness = 3;</code>
     * @return float
     */
    public function getBrightness()
    {
        return $this->brightness;
    }

    /**
     * Control brightness of the video. Enter a value between -1 and 1, where -1
     * is minimum brightness and 1 is maximum brightness. 0 is no change. The
     * default is 0.
     *
     * Generated from protobuf field <code>double brightness = 3;</code>
     * @param float $var
     * @return $this
     */
    public function setBrightness($var)
    {
        GPBUtil::checkDouble($var);
        $this->brightness = $var;

        return $this;
    }

}


