<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: analyticsCreate.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.Create</code>
 */
class Create extends \Google\Protobuf\Internal\Message
{
    protected $Component;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\Create\Library $library
     *     @type \Rv\Analytics\Create\Playlist $playlist
     *     @type \Rv\Analytics\Create\Presentation $presentation
     *     @type \Rv\Analytics\Create\TemplatePlaylist $template_playlist
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsCreate::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Create.Presentation presentation = 3;</code>
     * @return \Rv\Analytics\Create\Presentation|null
     */
    public function getPresentation()
    {
        return $this->readOneof(3);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.Create.Presentation presentation = 3;</code>
     * @param \Rv\Analytics\Create\Presentation $var
     * @return $this
     */
    public function setPresentation($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Create\Presentation::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.Create.TemplatePlaylist template_playlist = 4;</code>
     * @return \Rv\Analytics\Create\TemplatePlaylist|null
     */
    public function getTemplatePlaylist()
    {
        return $this->readOneof(4);
    }

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

    /**
     * Generated from protobuf field <code>.rv.analytics.Create.TemplatePlaylist template_playlist = 4;</code>
     * @param \Rv\Analytics\Create\TemplatePlaylist $var
     * @return $this
     */
    public function setTemplatePlaylist($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\Create\TemplatePlaylist::class);
        $this->writeOneof(4, $var);

        return $this;
    }

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

}

