<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proCore.proto

namespace Rv\Data;

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

/**
 * Generated from protobuf message <code>rv.data.ValidateEncoderRequest</code>
 */
class ValidateEncoderRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Recording.Stream.Encoder encoder = 1;</code>
     */
    protected $encoder = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Recording\Stream\Encoder $encoder
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProCore::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Recording.Stream.Encoder encoder = 1;</code>
     * @return \Rv\Data\Recording\Stream\Encoder|null
     */
    public function getEncoder()
    {
        return $this->encoder;
    }

    public function hasEncoder()
    {
        return isset($this->encoder);
    }

    public function clearEncoder()
    {
        unset($this->encoder);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Recording.Stream.Encoder encoder = 1;</code>
     * @param \Rv\Data\Recording\Stream\Encoder $var
     * @return $this
     */
    public function setEncoder($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Recording\Stream\Encoder::class);
        $this->encoder = $var;

        return $this;
    }

}

