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

namespace Rv\Analytics\TriggerMediaInformation;

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

/**
 * Generated from protobuf message <code>rv.analytics.TriggerMediaInformation.Image</code>
 */
class Image extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia visual_media = 1;</code>
     */
    protected $visual_media = null;
    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.Transition transition = 2;</code>
     */
    protected $transition = null;
    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.CompletionTarget completion_target = 3;</code>
     */
    protected $completion_target = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Rv\Analytics\TriggerMediaInformation\VisualMedia $visual_media
     *     @type \Rv\Analytics\TriggerMediaInformation\Transition $transition
     *     @type int $completion_target
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsTriggerMedia::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia visual_media = 1;</code>
     * @return \Rv\Analytics\TriggerMediaInformation\VisualMedia|null
     */
    public function getVisualMedia()
    {
        return $this->visual_media;
    }

    public function hasVisualMedia()
    {
        return isset($this->visual_media);
    }

    public function clearVisualMedia()
    {
        unset($this->visual_media);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia visual_media = 1;</code>
     * @param \Rv\Analytics\TriggerMediaInformation\VisualMedia $var
     * @return $this
     */
    public function setVisualMedia($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\TriggerMediaInformation\VisualMedia::class);
        $this->visual_media = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.Transition transition = 2;</code>
     * @return \Rv\Analytics\TriggerMediaInformation\Transition|null
     */
    public function getTransition()
    {
        return $this->transition;
    }

    public function hasTransition()
    {
        return isset($this->transition);
    }

    public function clearTransition()
    {
        unset($this->transition);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.Transition transition = 2;</code>
     * @param \Rv\Analytics\TriggerMediaInformation\Transition $var
     * @return $this
     */
    public function setTransition($var)
    {
        GPBUtil::checkMessage($var, \Rv\Analytics\TriggerMediaInformation\Transition::class);
        $this->transition = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.CompletionTarget completion_target = 3;</code>
     * @return int
     */
    public function getCompletionTarget()
    {
        return $this->completion_target;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.CompletionTarget completion_target = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setCompletionTarget($var)
    {
        GPBUtil::checkEnum($var, \Rv\Analytics\TriggerMediaInformation\CompletionTarget::class);
        $this->completion_target = $var;

        return $this;
    }

}

