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

namespace Rv\Data\Graphics\Text;

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

/**
 * Generated from protobuf message <code>rv.data.Graphics.Text.MediaFill</code>
 */
class MediaFill extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Media media = 1;</code>
     */
    protected $media = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Data\Media $media
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\GraphicsData::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media media = 1;</code>
     * @return \Rv\Data\Media|null
     */
    public function getMedia()
    {
        return $this->media;
    }

    public function hasMedia()
    {
        return isset($this->media);
    }

    public function clearMedia()
    {
        unset($this->media);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Media media = 1;</code>
     * @param \Rv\Data\Media $var
     * @return $this
     */
    public function setMedia($var)
    {
        GPBUtil::checkMessage($var, \Rv\Data\Media::class);
        $this->media = $var;

        return $this;
    }

}

