<?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.SecurityPolicyRecaptchaOptionsConfig</code>
 */
class SecurityPolicyRecaptchaOptionsConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
     *
     * Generated from protobuf field <code>optional string redirect_site_key = 447677034;</code>
     */
    private $redirect_site_key = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $redirect_site_key
     *           An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Compute\V1\Compute::initOnce();
        parent::__construct($data);
    }

    /**
     * An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
     *
     * Generated from protobuf field <code>optional string redirect_site_key = 447677034;</code>
     * @return string
     */
    public function getRedirectSiteKey()
    {
        return isset($this->redirect_site_key) ? $this->redirect_site_key : '';
    }

    public function hasRedirectSiteKey()
    {
        return isset($this->redirect_site_key);
    }

    public function clearRedirectSiteKey()
    {
        unset($this->redirect_site_key);
    }

    /**
     * An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
     *
     * Generated from protobuf field <code>optional string redirect_site_key = 447677034;</code>
     * @param string $var
     * @return $this
     */
    public function setRedirectSiteKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->redirect_site_key = $var;

        return $this;
    }

}

