<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: livekit_models.proto

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.WebhookConfig</code>
 */
class WebhookConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string url = 1;</code>
     */
    protected $url = '';
    /**
     * Generated from protobuf field <code>string signing_key = 2;</code>
     */
    protected $signing_key = '';
    /**
     * Generated from protobuf field <code>.livekit.FilterParams filter_params = 3;</code>
     */
    protected $filter_params = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $url
     *     @type string $signing_key
     *     @type \Livekit\FilterParams $filter_params
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitModels::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string signing_key = 2;</code>
     * @return string
     */
    public function getSigningKey()
    {
        return $this->signing_key;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.FilterParams filter_params = 3;</code>
     * @return \Livekit\FilterParams|null
     */
    public function getFilterParams()
    {
        return $this->filter_params;
    }

    public function hasFilterParams()
    {
        return isset($this->filter_params);
    }

    public function clearFilterParams()
    {
        unset($this->filter_params);
    }

    /**
     * Generated from protobuf field <code>.livekit.FilterParams filter_params = 3;</code>
     * @param \Livekit\FilterParams $var
     * @return $this
     */
    public function setFilterParams($var)
    {
        GPBUtil::checkMessage($var, \Livekit\FilterParams::class);
        $this->filter_params = $var;

        return $this;
    }

}

