<?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.UnpublishDataTrackRequest</code>
 */
class UnpublishDataTrackRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Publisher handle of the track to unpublish.
     *
     * Generated from protobuf field <code>uint32 pub_handle = 1;</code>
     */
    protected $pub_handle = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $pub_handle
     *           Publisher handle of the track to unpublish.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitRtc::initOnce();
        parent::__construct($data);
    }

    /**
     * Publisher handle of the track to unpublish.
     *
     * Generated from protobuf field <code>uint32 pub_handle = 1;</code>
     * @return int
     */
    public function getPubHandle()
    {
        return $this->pub_handle;
    }

    /**
     * Publisher handle of the track to unpublish.
     *
     * Generated from protobuf field <code>uint32 pub_handle = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setPubHandle($var)
    {
        GPBUtil::checkUint32($var);
        $this->pub_handle = $var;

        return $this;
    }

}

