<?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\Deinterlace;

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

/**
 * Bob Weaver Deinterlacing Filter Configuration.
 *
 * Generated from protobuf message <code>google.cloud.video.transcoder.v1.PreprocessingConfig.Deinterlace.BwdifConfig</code>
 */
class BwdifConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Specifies the deinterlacing mode to adopt.
     * The default is `send_frame`.
     * Supported values:
     * - `send_frame`: Output one frame for each frame
     * - `send_field`: Output one frame for each field
     *
     * Generated from protobuf field <code>string mode = 1;</code>
     */
    private $mode = '';
    /**
     * The picture field parity assumed for the input interlaced video.
     * The default is `auto`.
     * Supported values:
     * - `tff`: Assume the top field is first
     * - `bff`: Assume the bottom field is first
     * - `auto`: Enable automatic detection of field parity
     *
     * Generated from protobuf field <code>string parity = 2;</code>
     */
    private $parity = '';
    /**
     * Deinterlace all frames rather than just the frames identified as
     * interlaced. The default is `false`.
     *
     * Generated from protobuf field <code>bool deinterlace_all_frames = 3;</code>
     */
    private $deinterlace_all_frames = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $mode
     *           Specifies the deinterlacing mode to adopt.
     *           The default is `send_frame`.
     *           Supported values:
     *           - `send_frame`: Output one frame for each frame
     *           - `send_field`: Output one frame for each field
     *     @type string $parity
     *           The picture field parity assumed for the input interlaced video.
     *           The default is `auto`.
     *           Supported values:
     *           - `tff`: Assume the top field is first
     *           - `bff`: Assume the bottom field is first
     *           - `auto`: Enable automatic detection of field parity
     *     @type bool $deinterlace_all_frames
     *           Deinterlace all frames rather than just the frames identified as
     *           interlaced. The default is `false`.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Video\Transcoder\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * Specifies the deinterlacing mode to adopt.
     * The default is `send_frame`.
     * Supported values:
     * - `send_frame`: Output one frame for each frame
     * - `send_field`: Output one frame for each field
     *
     * Generated from protobuf field <code>string mode = 1;</code>
     * @return string
     */
    public function getMode()
    {
        return $this->mode;
    }

    /**
     * Specifies the deinterlacing mode to adopt.
     * The default is `send_frame`.
     * Supported values:
     * - `send_frame`: Output one frame for each frame
     * - `send_field`: Output one frame for each field
     *
     * Generated from protobuf field <code>string mode = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setMode($var)
    {
        GPBUtil::checkString($var, True);
        $this->mode = $var;

        return $this;
    }

    /**
     * The picture field parity assumed for the input interlaced video.
     * The default is `auto`.
     * Supported values:
     * - `tff`: Assume the top field is first
     * - `bff`: Assume the bottom field is first
     * - `auto`: Enable automatic detection of field parity
     *
     * Generated from protobuf field <code>string parity = 2;</code>
     * @return string
     */
    public function getParity()
    {
        return $this->parity;
    }

    /**
     * The picture field parity assumed for the input interlaced video.
     * The default is `auto`.
     * Supported values:
     * - `tff`: Assume the top field is first
     * - `bff`: Assume the bottom field is first
     * - `auto`: Enable automatic detection of field parity
     *
     * Generated from protobuf field <code>string parity = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setParity($var)
    {
        GPBUtil::checkString($var, True);
        $this->parity = $var;

        return $this;
    }

    /**
     * Deinterlace all frames rather than just the frames identified as
     * interlaced. The default is `false`.
     *
     * Generated from protobuf field <code>bool deinterlace_all_frames = 3;</code>
     * @return bool
     */
    public function getDeinterlaceAllFrames()
    {
        return $this->deinterlace_all_frames;
    }

    /**
     * Deinterlace all frames rather than just the frames identified as
     * interlaced. The default is `false`.
     *
     * Generated from protobuf field <code>bool deinterlace_all_frames = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setDeinterlaceAllFrames($var)
    {
        GPBUtil::checkBool($var);
        $this->deinterlace_all_frames = $var;

        return $this;
    }

}


