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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.UpdateIngressRequest</code>
 */
class UpdateIngressRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string ingress_id = 1;</code>
     */
    protected $ingress_id = '';
    /**
     * Generated from protobuf field <code>string name = 2;</code>
     */
    protected $name = '';
    /**
     * Generated from protobuf field <code>string room_name = 3;</code>
     */
    protected $room_name = '';
    /**
     * Generated from protobuf field <code>string participant_identity = 4;</code>
     */
    protected $participant_identity = '';
    /**
     * Generated from protobuf field <code>string participant_name = 5;</code>
     */
    protected $participant_name = '';
    /**
     * Generated from protobuf field <code>string participant_metadata = 9;</code>
     */
    protected $participant_metadata = '';
    /**
     * Generated from protobuf field <code>optional bool bypass_transcoding = 8 [deprecated = true];</code>
     * @deprecated
     */
    protected $bypass_transcoding = null;
    /**
     * Generated from protobuf field <code>optional bool enable_transcoding = 10;</code>
     */
    protected $enable_transcoding = null;
    /**
     * Generated from protobuf field <code>.livekit.IngressAudioOptions audio = 6;</code>
     */
    protected $audio = null;
    /**
     * Generated from protobuf field <code>.livekit.IngressVideoOptions video = 7;</code>
     */
    protected $video = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $ingress_id
     *     @type string $name
     *     @type string $room_name
     *     @type string $participant_identity
     *     @type string $participant_name
     *     @type string $participant_metadata
     *     @type bool $bypass_transcoding
     *     @type bool $enable_transcoding
     *     @type \Livekit\IngressAudioOptions $audio
     *     @type \Livekit\IngressVideoOptions $video
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitIngress::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string room_name = 3;</code>
     * @return string
     */
    public function getRoomName()
    {
        return $this->room_name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string participant_identity = 4;</code>
     * @return string
     */
    public function getParticipantIdentity()
    {
        return $this->participant_identity;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string participant_name = 5;</code>
     * @return string
     */
    public function getParticipantName()
    {
        return $this->participant_name;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string participant_metadata = 9;</code>
     * @return string
     */
    public function getParticipantMetadata()
    {
        return $this->participant_metadata;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool bypass_transcoding = 8 [deprecated = true];</code>
     * @return bool
     * @deprecated
     */
    public function getBypassTranscoding()
    {
        @trigger_error('bypass_transcoding is deprecated.', E_USER_DEPRECATED);
        return isset($this->bypass_transcoding) ? $this->bypass_transcoding : false;
    }

    public function hasBypassTranscoding()
    {
        @trigger_error('bypass_transcoding is deprecated.', E_USER_DEPRECATED);
        return isset($this->bypass_transcoding);
    }

    public function clearBypassTranscoding()
    {
        @trigger_error('bypass_transcoding is deprecated.', E_USER_DEPRECATED);
        unset($this->bypass_transcoding);
    }

    /**
     * Generated from protobuf field <code>optional bool bypass_transcoding = 8 [deprecated = true];</code>
     * @param bool $var
     * @return $this
     * @deprecated
     */
    public function setBypassTranscoding($var)
    {
        @trigger_error('bypass_transcoding is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkBool($var);
        $this->bypass_transcoding = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool enable_transcoding = 10;</code>
     * @return bool
     */
    public function getEnableTranscoding()
    {
        return isset($this->enable_transcoding) ? $this->enable_transcoding : false;
    }

    public function hasEnableTranscoding()
    {
        return isset($this->enable_transcoding);
    }

    public function clearEnableTranscoding()
    {
        unset($this->enable_transcoding);
    }

    /**
     * Generated from protobuf field <code>optional bool enable_transcoding = 10;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableTranscoding($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_transcoding = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.IngressAudioOptions audio = 6;</code>
     * @return \Livekit\IngressAudioOptions|null
     */
    public function getAudio()
    {
        return $this->audio;
    }

    public function hasAudio()
    {
        return isset($this->audio);
    }

    public function clearAudio()
    {
        unset($this->audio);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.IngressVideoOptions video = 7;</code>
     * @return \Livekit\IngressVideoOptions|null
     */
    public function getVideo()
    {
        return $this->video;
    }

    public function hasVideo()
    {
        return isset($this->video);
    }

    public function clearVideo()
    {
        unset($this->video);
    }

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

        return $this;
    }

}

