<?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;

/**
 * This is deprecated and has no effect. Do not use.
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.LogConfigCloudAuditOptions</code>
 */
class LogConfigCloudAuditOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * This is deprecated and has no effect. Do not use.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.AuthorizationLoggingOptions authorization_logging_options = 217861624;</code>
     */
    private $authorization_logging_options = null;
    /**
     * This is deprecated and has no effect. Do not use.
     * Check the LogName enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string log_name = 402913958;</code>
     */
    private $log_name = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\AuthorizationLoggingOptions $authorization_logging_options
     *           This is deprecated and has no effect. Do not use.
     *     @type string $log_name
     *           This is deprecated and has no effect. Do not use.
     *           Check the LogName enum for the list of possible values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * This is deprecated and has no effect. Do not use.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.AuthorizationLoggingOptions authorization_logging_options = 217861624;</code>
     * @return \Google\Cloud\Compute\V1\AuthorizationLoggingOptions|null
     */
    public function getAuthorizationLoggingOptions()
    {
        return $this->authorization_logging_options;
    }

    public function hasAuthorizationLoggingOptions()
    {
        return isset($this->authorization_logging_options);
    }

    public function clearAuthorizationLoggingOptions()
    {
        unset($this->authorization_logging_options);
    }

    /**
     * This is deprecated and has no effect. Do not use.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.AuthorizationLoggingOptions authorization_logging_options = 217861624;</code>
     * @param \Google\Cloud\Compute\V1\AuthorizationLoggingOptions $var
     * @return $this
     */
    public function setAuthorizationLoggingOptions($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\AuthorizationLoggingOptions::class);
        $this->authorization_logging_options = $var;

        return $this;
    }

    /**
     * This is deprecated and has no effect. Do not use.
     * Check the LogName enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string log_name = 402913958;</code>
     * @return string
     */
    public function getLogName()
    {
        return isset($this->log_name) ? $this->log_name : '';
    }

    public function hasLogName()
    {
        return isset($this->log_name);
    }

    public function clearLogName()
    {
        unset($this->log_name);
    }

    /**
     * This is deprecated and has no effect. Do not use.
     * Check the LogName enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string log_name = 402913958;</code>
     * @param string $var
     * @return $this
     */
    public function setLogName($var)
    {
        GPBUtil::checkString($var, True);
        $this->log_name = $var;

        return $this;
    }

}

