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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\ProContent\ViewMediaBin $media_bin
     *     @type \Rv\Analytics\ProContent\Download $download
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsProContent::initOnce();
        parent::__construct($data);
    }

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

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

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

        return $this;
    }

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

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

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

        return $this;
    }

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

}

