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

namespace PhpWA\Protocol\Proto;

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

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

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \PhpWA\Protocol\Proto\EmbeddedMessage $embeddedMessage
     *     @type \PhpWA\Protocol\Proto\EmbeddedMusic $embeddedMusic
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.proto.EmbeddedMessage embeddedMessage = 1;</code>
     * @return \PhpWA\Protocol\Proto\EmbeddedMessage|null
     */
    public function getEmbeddedMessage()
    {
        return $this->readOneof(1);
    }

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

    /**
     * Generated from protobuf field <code>.proto.EmbeddedMessage embeddedMessage = 1;</code>
     * @param \PhpWA\Protocol\Proto\EmbeddedMessage $var
     * @return $this
     */
    public function setEmbeddedMessage($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\EmbeddedMessage::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.proto.EmbeddedMusic embeddedMusic = 2;</code>
     * @return \PhpWA\Protocol\Proto\EmbeddedMusic|null
     */
    public function getEmbeddedMusic()
    {
        return $this->readOneof(2);
    }

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

    /**
     * Generated from protobuf field <code>.proto.EmbeddedMusic embeddedMusic = 2;</code>
     * @param \PhpWA\Protocol\Proto\EmbeddedMusic $var
     * @return $this
     */
    public function setEmbeddedMusic($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\EmbeddedMusic::class);
        $this->writeOneof(2, $var);

        return $this;
    }

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

}

