<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 *
 * Generated from protobuf message <code>google.cloud.compute.v1.SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams</code>
 */
class SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams extends \Google\Protobuf\Internal\Message
{
    /**
     * The match operator for the field.
     * Check the Op enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string op = 3553;</code>
     */
    protected $op = null;
    /**
     * The value of the field.
     *
     * Generated from protobuf field <code>optional string val = 116513;</code>
     */
    protected $val = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $op
     *           The match operator for the field.
     *           Check the Op enum for the list of possible values.
     *     @type string $val
     *           The value of the field.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * The match operator for the field.
     * Check the Op enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string op = 3553;</code>
     * @return string
     */
    public function getOp()
    {
        return isset($this->op) ? $this->op : '';
    }

    public function hasOp()
    {
        return isset($this->op);
    }

    public function clearOp()
    {
        unset($this->op);
    }

    /**
     * The match operator for the field.
     * Check the Op enum for the list of possible values.
     *
     * Generated from protobuf field <code>optional string op = 3553;</code>
     * @param string $var
     * @return $this
     */
    public function setOp($var)
    {
        GPBUtil::checkString($var, True);
        $this->op = $var;

        return $this;
    }

    /**
     * The value of the field.
     *
     * Generated from protobuf field <code>optional string val = 116513;</code>
     * @return string
     */
    public function getVal()
    {
        return isset($this->val) ? $this->val : '';
    }

    public function hasVal()
    {
        return isset($this->val);
    }

    public function clearVal()
    {
        unset($this->val);
    }

    /**
     * The value of the field.
     *
     * Generated from protobuf field <code>optional string val = 116513;</code>
     * @param string $var
     * @return $this
     */
    public function setVal($var)
    {
        GPBUtil::checkString($var, True);
        $this->val = $var;

        return $this;
    }

}

