<?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.VisualMedia</code>
 */
class VisualMedia extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia.Behavior behavior = 1;</code>
     */
    protected $behavior = 0;
    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia.ScaleMode scale_mode = 2;</code>
     */
    protected $scale_mode = 0;
    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia.FlipMode flip_mode = 3;</code>
     */
    protected $flip_mode = 0;
    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia.NativeRotation native_rotation = 4;</code>
     */
    protected $native_rotation = 0;
    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia.Size resolution = 5;</code>
     */
    protected $resolution = null;
    /**
     * Generated from protobuf field <code>uint32 enabled_effects_count = 6;</code>
     */
    protected $enabled_effects_count = 0;
    /**
     * Generated from protobuf field <code>bool has_effect_preset = 7;</code>
     */
    protected $has_effect_preset = false;
    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.Transition transition = 8;</code>
     */
    protected $transition = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $behavior
     *     @type int $scale_mode
     *     @type int $flip_mode
     *     @type int $native_rotation
     *     @type \Rv\Analytics\TriggerMediaInformation\VisualMedia\Size $resolution
     *     @type int $enabled_effects_count
     *     @type bool $has_effect_preset
     *     @type \Rv\Analytics\TriggerMediaInformation\Transition $transition
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\AnalyticsTriggerMedia::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia.Behavior behavior = 1;</code>
     * @return int
     */
    public function getBehavior()
    {
        return $this->behavior;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia.ScaleMode scale_mode = 2;</code>
     * @return int
     */
    public function getScaleMode()
    {
        return $this->scale_mode;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.VisualMedia.NativeRotation native_rotation = 4;</code>
     * @return int
     */
    public function getNativeRotation()
    {
        return $this->native_rotation;
    }

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

        return $this;
    }

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

    public function hasResolution()
    {
        return isset($this->resolution);
    }

    public function clearResolution()
    {
        unset($this->resolution);
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 enabled_effects_count = 6;</code>
     * @return int
     */
    public function getEnabledEffectsCount()
    {
        return $this->enabled_effects_count;
    }

    /**
     * Generated from protobuf field <code>uint32 enabled_effects_count = 6;</code>
     * @param int $var
     * @return $this
     */
    public function setEnabledEffectsCount($var)
    {
        GPBUtil::checkUint32($var);
        $this->enabled_effects_count = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool has_effect_preset = 7;</code>
     * @return bool
     */
    public function getHasEffectPreset()
    {
        return $this->has_effect_preset;
    }

    /**
     * Generated from protobuf field <code>bool has_effect_preset = 7;</code>
     * @param bool $var
     * @return $this
     */
    public function setHasEffectPreset($var)
    {
        GPBUtil::checkBool($var);
        $this->has_effect_preset = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.analytics.TriggerMediaInformation.Transition transition = 8;</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 = 8;</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;
    }

}

