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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.TrickleRequest</code>
 */
class TrickleRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string candidateInit = 1;</code>
     */
    protected $candidateInit = '';
    /**
     * Generated from protobuf field <code>.livekit.SignalTarget target = 2;</code>
     */
    protected $target = 0;
    /**
     * Generated from protobuf field <code>bool final = 3;</code>
     */
    protected $final = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $candidateInit
     *     @type int $target
     *     @type bool $final
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitRtc::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string candidateInit = 1;</code>
     * @return string
     */
    public function getCandidateInit()
    {
        return $this->candidateInit;
    }

    /**
     * Generated from protobuf field <code>string candidateInit = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCandidateInit($var)
    {
        GPBUtil::checkString($var, True);
        $this->candidateInit = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.SignalTarget target = 2;</code>
     * @return int
     */
    public function getTarget()
    {
        return $this->target;
    }

    /**
     * Generated from protobuf field <code>.livekit.SignalTarget target = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setTarget($var)
    {
        GPBUtil::checkEnum($var, \Livekit\SignalTarget::class);
        $this->target = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool final = 3;</code>
     * @return bool
     */
    public function getFinal()
    {
        return $this->final;
    }

    /**
     * Generated from protobuf field <code>bool final = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setFinal($var)
    {
        GPBUtil::checkBool($var);
        $this->final = $var;

        return $this;
    }

}

