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

/**
 * Write a Data Access (Gin) log
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.LogConfigDataAccessOptions</code>
 */
class LogConfigDataAccessOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>.google.cloud.compute.v1.LogConfigDataAccessOptions.LogMode log_mode = 134461886;</code>
     */
    private $log_mode = 0;

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

    /**
     * Generated from protobuf field <code>.google.cloud.compute.v1.LogConfigDataAccessOptions.LogMode log_mode = 134461886;</code>
     * @return int
     */
    public function getLogMode()
    {
        return $this->log_mode;
    }

    /**
     * Generated from protobuf field <code>.google.cloud.compute.v1.LogConfigDataAccessOptions.LogMode log_mode = 134461886;</code>
     * @param int $var
     * @return $this
     */
    public function setLogMode($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Compute\V1\LogConfigDataAccessOptions\LogMode::class);
        $this->log_mode = $var;

        return $this;
    }

}

