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

namespace Rv\Data\Action;

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

/**
 * Generated from protobuf message <code>rv.data.Action.OldType</code>
 */
class OldType extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.rv.data.Action.OldType.Category category = 1;</code>
     */
    protected $category = 0;
    /**
     * Generated from protobuf field <code>int32 application_type = 2;</code>
     */
    protected $application_type = 0;

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

    /**
     * Generated from protobuf field <code>.rv.data.Action.OldType.Category category = 1;</code>
     * @return int
     */
    public function getCategory()
    {
        return $this->category;
    }

    /**
     * Generated from protobuf field <code>.rv.data.Action.OldType.Category category = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCategory($var)
    {
        GPBUtil::checkEnum($var, \Rv\Data\Action\OldType\Category::class);
        $this->category = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 application_type = 2;</code>
     * @return int
     */
    public function getApplicationType()
    {
        return $this->application_type;
    }

    /**
     * Generated from protobuf field <code>int32 application_type = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setApplicationType($var)
    {
        GPBUtil::checkInt32($var);
        $this->application_type = $var;

        return $this;
    }

}

