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

namespace Rv\Analytics;

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

/**
 * Generated from protobuf message <code>rv.analytics.Import</code>
 */
class Import extends \Google\Protobuf\Internal\Message
{
    protected $Component;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\Import\SongSelect $song_select
     *     @type \Rv\Analytics\MultiTracks\Import $multitracks
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsImport::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Import.SongSelect song_select = 1;</code>
     * @return \Rv\Analytics\Import\SongSelect|null
     */
    public function getSongSelect()
    {
        return $this->readOneof(1);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.Import.SongSelect song_select = 1;</code>
     * @param \Rv\Analytics\Import\SongSelect $var
     * @return $this
     */
    public function setSongSelect($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Import\SongSelect::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.MultiTracks.Import multitracks = 2;</code>
     * @return \Rv\Analytics\MultiTracks\Import|null
     */
    public function getMultitracks()
    {
        return $this->readOneof(2);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.MultiTracks.Import multitracks = 2;</code>
     * @param \Rv\Analytics\MultiTracks\Import $var
     * @return $this
     */
    public function setMultitracks($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\MultiTracks\Import::class);
        $this->writeOneof(2, $var);

        return $this;
    }

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

}

