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

namespace Rv\Data\Effect\EffectVariable;

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

/**
 * Generated from protobuf message <code>rv.data.Effect.EffectVariable.EffectDirection</code>
 */
class EffectDirection extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectDirection.EffectDirection direction = 1;</code>
     */
    protected $direction = 0;
    /**
     * Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectDirection.EffectDirection default_direction = 2;</code>
     */
    protected $default_direction = 0;
    /**
     * Generated from protobuf field <code>uint32 available_directions = 3;</code>
     */
    protected $available_directions = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $direction
     *     @type int $default_direction
     *     @type int $available_directions
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Effects::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectDirection.EffectDirection direction = 1;</code>
     * @return int
     */
    public function getDirection()
    {
        return $this->direction;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectDirection.EffectDirection direction = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setDirection($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Effect\EffectVariable\EffectDirection\EffectDirection::class);
        $this->direction = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectDirection.EffectDirection default_direction = 2;</code>
     * @return int
     */
    public function getDefaultDirection()
    {
        return $this->default_direction;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Effect.EffectVariable.EffectDirection.EffectDirection default_direction = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setDefaultDirection($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Effect\EffectVariable\EffectDirection\EffectDirection::class);
        $this->default_direction = $var;

        return $this;
    }

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

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

        return $this;
    }

}

