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

namespace Mynaparrot\PlugnmeetProto;

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

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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Mynaparrot\PlugnmeetProto\MergeRecordingsByRoomSession $by_session
     *           Merge recordings based on a single room session.
     *     @type \Mynaparrot\PlugnmeetProto\MergeRecordingsByIds $by_ids
     *           Merge a specific list of recordings from the same room.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\PlugnmeetAuthRecording::initOnce();
        parent::__construct($data);
    }

    /**
     * Merge recordings based on a single room session.
     *
     * Generated from protobuf field <code>.plugnmeet.MergeRecordingsByRoomSession by_session = 1;</code>
     * @return \Mynaparrot\PlugnmeetProto\MergeRecordingsByRoomSession|null
     */
    public function getBySession()
    {
        return $this->readOneof(1);
    }

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

    /**
     * Merge recordings based on a single room session.
     *
     * Generated from protobuf field <code>.plugnmeet.MergeRecordingsByRoomSession by_session = 1;</code>
     * @param \Mynaparrot\PlugnmeetProto\MergeRecordingsByRoomSession $var
     * @return $this
     */
    public function setBySession($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\MergeRecordingsByRoomSession::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Merge a specific list of recordings from the same room.
     *
     * Generated from protobuf field <code>.plugnmeet.MergeRecordingsByIds by_ids = 2;</code>
     * @return \Mynaparrot\PlugnmeetProto\MergeRecordingsByIds|null
     */
    public function getByIds()
    {
        return $this->readOneof(2);
    }

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

    /**
     * Merge a specific list of recordings from the same room.
     *
     * Generated from protobuf field <code>.plugnmeet.MergeRecordingsByIds by_ids = 2;</code>
     * @param \Mynaparrot\PlugnmeetProto\MergeRecordingsByIds $var
     * @return $this
     */
    public function setByIds($var)
    {
        GPBUtil::checkMessage($var, \Mynaparrot\PlugnmeetProto\MergeRecordingsByIds::class);
        $this->writeOneof(2, $var);

        return $this;
    }

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

}

