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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.APICallRequest</code>
 */
class APICallRequest extends \Google\Protobuf\Internal\Message
{
    protected $message;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Livekit\CreateRoomRequest $create_room_request
     *     @type \Livekit\ListRoomsRequest $list_rooms_request
     *     @type \Livekit\DeleteRoomRequest $delete_room_request
     *     @type \Livekit\ListParticipantsRequest $list_participants_request
     *     @type \Livekit\RoomParticipantIdentity $room_participant_identity
     *     @type \Livekit\MuteRoomTrackRequest $mute_room_track_request
     *     @type \Livekit\UpdateParticipantRequest $update_participant_request
     *     @type \Livekit\UpdateSubscriptionsRequest $update_subscriptions_request
     *     @type \Livekit\SendDataRequest $send_data_request
     *     @type \Livekit\UpdateRoomMetadataRequest $update_room_metadata_request
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitAnalytics::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.livekit.CreateRoomRequest create_room_request = 1;</code>
     * @return \Livekit\CreateRoomRequest|null
     */
    public function getCreateRoomRequest()
    {
        return $this->readOneof(1);
    }

    public function hasCreateRoomRequest()
    {
        return $this->hasOneof(1);
    }

    /**
     * Generated from protobuf field <code>.livekit.CreateRoomRequest create_room_request = 1;</code>
     * @param \Livekit\CreateRoomRequest $var
     * @return $this
     */
    public function setCreateRoomRequest($var)
    {
        GPBUtil::checkMessage($var, \Livekit\CreateRoomRequest::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.ListRoomsRequest list_rooms_request = 2;</code>
     * @return \Livekit\ListRoomsRequest|null
     */
    public function getListRoomsRequest()
    {
        return $this->readOneof(2);
    }

    public function hasListRoomsRequest()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.livekit.ListRoomsRequest list_rooms_request = 2;</code>
     * @param \Livekit\ListRoomsRequest $var
     * @return $this
     */
    public function setListRoomsRequest($var)
    {
        GPBUtil::checkMessage($var, \Livekit\ListRoomsRequest::class);
        $this->writeOneof(2, $var);

        return $this;
    }

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

    public function hasDeleteRoomRequest()
    {
        return $this->hasOneof(3);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.ListParticipantsRequest list_participants_request = 4;</code>
     * @return \Livekit\ListParticipantsRequest|null
     */
    public function getListParticipantsRequest()
    {
        return $this->readOneof(4);
    }

    public function hasListParticipantsRequest()
    {
        return $this->hasOneof(4);
    }

    /**
     * Generated from protobuf field <code>.livekit.ListParticipantsRequest list_participants_request = 4;</code>
     * @param \Livekit\ListParticipantsRequest $var
     * @return $this
     */
    public function setListParticipantsRequest($var)
    {
        GPBUtil::checkMessage($var, \Livekit\ListParticipantsRequest::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.RoomParticipantIdentity room_participant_identity = 5;</code>
     * @return \Livekit\RoomParticipantIdentity|null
     */
    public function getRoomParticipantIdentity()
    {
        return $this->readOneof(5);
    }

    public function hasRoomParticipantIdentity()
    {
        return $this->hasOneof(5);
    }

    /**
     * Generated from protobuf field <code>.livekit.RoomParticipantIdentity room_participant_identity = 5;</code>
     * @param \Livekit\RoomParticipantIdentity $var
     * @return $this
     */
    public function setRoomParticipantIdentity($var)
    {
        GPBUtil::checkMessage($var, \Livekit\RoomParticipantIdentity::class);
        $this->writeOneof(5, $var);

        return $this;
    }

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

    public function hasMuteRoomTrackRequest()
    {
        return $this->hasOneof(6);
    }

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

        return $this;
    }

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

    public function hasUpdateParticipantRequest()
    {
        return $this->hasOneof(7);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.UpdateSubscriptionsRequest update_subscriptions_request = 8;</code>
     * @return \Livekit\UpdateSubscriptionsRequest|null
     */
    public function getUpdateSubscriptionsRequest()
    {
        return $this->readOneof(8);
    }

    public function hasUpdateSubscriptionsRequest()
    {
        return $this->hasOneof(8);
    }

    /**
     * Generated from protobuf field <code>.livekit.UpdateSubscriptionsRequest update_subscriptions_request = 8;</code>
     * @param \Livekit\UpdateSubscriptionsRequest $var
     * @return $this
     */
    public function setUpdateSubscriptionsRequest($var)
    {
        GPBUtil::checkMessage($var, \Livekit\UpdateSubscriptionsRequest::class);
        $this->writeOneof(8, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.SendDataRequest send_data_request = 9;</code>
     * @return \Livekit\SendDataRequest|null
     */
    public function getSendDataRequest()
    {
        return $this->readOneof(9);
    }

    public function hasSendDataRequest()
    {
        return $this->hasOneof(9);
    }

    /**
     * Generated from protobuf field <code>.livekit.SendDataRequest send_data_request = 9;</code>
     * @param \Livekit\SendDataRequest $var
     * @return $this
     */
    public function setSendDataRequest($var)
    {
        GPBUtil::checkMessage($var, \Livekit\SendDataRequest::class);
        $this->writeOneof(9, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.UpdateRoomMetadataRequest update_room_metadata_request = 10;</code>
     * @return \Livekit\UpdateRoomMetadataRequest|null
     */
    public function getUpdateRoomMetadataRequest()
    {
        return $this->readOneof(10);
    }

    public function hasUpdateRoomMetadataRequest()
    {
        return $this->hasOneof(10);
    }

    /**
     * Generated from protobuf field <code>.livekit.UpdateRoomMetadataRequest update_room_metadata_request = 10;</code>
     * @param \Livekit\UpdateRoomMetadataRequest $var
     * @return $this
     */
    public function setUpdateRoomMetadataRequest($var)
    {
        GPBUtil::checkMessage($var, \Livekit\UpdateRoomMetadataRequest::class);
        $this->writeOneof(10, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getMessage()
    {
        return $this->whichOneof("message");
    }

}

