<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: keyapis/telemetry_control/v1/keyapis_telemetry_control_dictionary_v1.proto

namespace Keyapis\TelemetryControl\V1;

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

/**
 * Элемент справочника Разрешения Телеметрии
 *
 * Generated from protobuf message <code>keyapis.telemetry_control.v1.DictionaryPermission</code>
 */
class DictionaryPermission extends \Google\Protobuf\Internal\Message
{
    /**
     * Элемент справочника Разрешения Телеметрии
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.DictionaryPermission.PermissionType permission_type = 1;</code>
     */
    protected $permission_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $permission_type
     *           Элемент справочника Разрешения Телеметрии
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Keyapis\TelemetryControl\V1\KeyapisTelemetryControlDictionaryV1::initOnce();
        parent::__construct($data);
    }

    /**
     * Элемент справочника Разрешения Телеметрии
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.DictionaryPermission.PermissionType permission_type = 1;</code>
     * @return int
     */
    public function getPermissionType()
    {
        return $this->permission_type;
    }

    /**
     * Элемент справочника Разрешения Телеметрии
     *
     * Generated from protobuf field <code>.keyapis.telemetry_control.v1.DictionaryPermission.PermissionType permission_type = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setPermissionType($var)
    {
        GPBUtil::checkEnum($var, \Keyapis\TelemetryControl\V1\DictionaryPermission\PermissionType::class);
        $this->permission_type = $var;

        return $this;
    }

}

