<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/compute/v1/compute.proto

namespace Google\Cloud\Compute\V1;

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

/**
 * Authorization-related information used by Cloud Audit Logging.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.AuthorizationLoggingOptions</code>
 */
class AuthorizationLoggingOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * The type of the permission that was checked.
     *
     * Generated from protobuf field <code>.google.cloud.compute.v1.AuthorizationLoggingOptions.PermissionType permission_type = 257543082;</code>
     */
    private $permission_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $permission_type
     *           The type of the permission that was checked.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The type of the permission that was checked.
     *
     * Generated from protobuf field <code>.google.cloud.compute.v1.AuthorizationLoggingOptions.PermissionType permission_type = 257543082;</code>
     * @return int
     */
    public function getPermissionType()
    {
        return $this->permission_type;
    }

    /**
     * The type of the permission that was checked.
     *
     * Generated from protobuf field <code>.google.cloud.compute.v1.AuthorizationLoggingOptions.PermissionType permission_type = 257543082;</code>
     * @param int $var
     * @return $this
     */
    public function setPermissionType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Compute\V1\AuthorizationLoggingOptions\PermissionType::class);
        $this->permission_type = $var;

        return $this;
    }

}

