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

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig</code>
 */
class SecurityPolicyAdvancedOptionsConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;</code>
     */
    private $json_custom_config = null;
    /**
     * 
     * Check the JsonParsing enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string json_parsing = 282493529;</code>
     */
    private $json_parsing = null;
    /**
     * 
     * Check the LogLevel enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string log_level = 140582601;</code>
     */
    private $log_level = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Compute\V1\SecurityPolicyAdvancedOptionsConfigJsonCustomConfig $json_custom_config
     *           Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
     *     @type string $json_parsing
     *           
     *           Check the JsonParsing enum for the list of possible values.
     *     @type string $log_level
     *           
     *           Check the LogLevel enum for the list of possible values.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;</code>
     * @return \Google\Cloud\Compute\V1\SecurityPolicyAdvancedOptionsConfigJsonCustomConfig|null
     */
    public function getJsonCustomConfig()
    {
        return $this->json_custom_config;
    }

    public function hasJsonCustomConfig()
    {
        return isset($this->json_custom_config);
    }

    public function clearJsonCustomConfig()
    {
        unset($this->json_custom_config);
    }

    /**
     * Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
     *
     * Generated from protobuf field <code>optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;</code>
     * @param \Google\Cloud\Compute\V1\SecurityPolicyAdvancedOptionsConfigJsonCustomConfig $var
     * @return $this
     */
    public function setJsonCustomConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Compute\V1\SecurityPolicyAdvancedOptionsConfigJsonCustomConfig::class);
        $this->json_custom_config = $var;

        return $this;
    }

    /**
     * 
     * Check the JsonParsing enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string json_parsing = 282493529;</code>
     * @return string
     */
    public function getJsonParsing()
    {
        return isset($this->json_parsing) ? $this->json_parsing : '';
    }

    public function hasJsonParsing()
    {
        return isset($this->json_parsing);
    }

    public function clearJsonParsing()
    {
        unset($this->json_parsing);
    }

    /**
     * 
     * Check the JsonParsing enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string json_parsing = 282493529;</code>
     * @param string $var
     * @return $this
     */
    public function setJsonParsing($var)
    {
        GPBUtil::checkString($var, True);
        $this->json_parsing = $var;

        return $this;
    }

    /**
     * 
     * Check the LogLevel enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string log_level = 140582601;</code>
     * @return string
     */
    public function getLogLevel()
    {
        return isset($this->log_level) ? $this->log_level : '';
    }

    public function hasLogLevel()
    {
        return isset($this->log_level);
    }

    public function clearLogLevel()
    {
        unset($this->log_level);
    }

    /**
     * 
     * Check the LogLevel enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string log_level = 140582601;</code>
     * @param string $var
     * @return $this
     */
    public function setLogLevel($var)
    {
        GPBUtil::checkString($var, True);
        $this->log_level = $var;

        return $this;
    }

}

