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

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

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

/**
 * Denoise preprocessing configuration.
 *
 * Generated from protobuf message <code>google.cloud.video.transcoder.v1beta1.PreprocessingConfig.Denoise</code>
 */
class Denoise extends \Google\Protobuf\Internal\Message
{
    /**
     * Set strength of the denoise. Enter a value between 0 and 1. The higher
     * the value, the smoother the image. 0 is no denoising. The default is 0.
     *
     * Generated from protobuf field <code>double strength = 1;</code>
     */
    private $strength = 0.0;
    /**
     * Set the denoiser mode. The default is `"standard"`.
     * Supported denoiser modes:
     * - 'standard'
     * - 'grain'
     *
     * Generated from protobuf field <code>string tune = 2;</code>
     */
    private $tune = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $strength
     *           Set strength of the denoise. Enter a value between 0 and 1. The higher
     *           the value, the smoother the image. 0 is no denoising. The default is 0.
     *     @type string $tune
     *           Set the denoiser mode. The default is `"standard"`.
     *           Supported denoiser modes:
     *           - 'standard'
     *           - 'grain'
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Video\Transcoder\V1Beta1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * Set strength of the denoise. Enter a value between 0 and 1. The higher
     * the value, the smoother the image. 0 is no denoising. The default is 0.
     *
     * Generated from protobuf field <code>double strength = 1;</code>
     * @return float
     */
    public function getStrength()
    {
        return $this->strength;
    }

    /**
     * Set strength of the denoise. Enter a value between 0 and 1. The higher
     * the value, the smoother the image. 0 is no denoising. The default is 0.
     *
     * Generated from protobuf field <code>double strength = 1;</code>
     * @param float $var
     * @return $this
     */
    public function setStrength($var)
    {
        GPBUtil::checkDouble($var);
        $this->strength = $var;

        return $this;
    }

    /**
     * Set the denoiser mode. The default is `"standard"`.
     * Supported denoiser modes:
     * - 'standard'
     * - 'grain'
     *
     * Generated from protobuf field <code>string tune = 2;</code>
     * @return string
     */
    public function getTune()
    {
        return $this->tune;
    }

    /**
     * Set the denoiser mode. The default is `"standard"`.
     * Supported denoiser modes:
     * - 'standard'
     * - 'grain'
     *
     * Generated from protobuf field <code>string tune = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setTune($var)
    {
        GPBUtil::checkString($var, True);
        $this->tune = $var;

        return $this;
    }

}


