<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto

namespace Google\Cloud\RecaptchaEnterprise\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Settings specific to keys that can be used by iOS apps.
 *
 * Generated from protobuf message <code>google.cloud.recaptchaenterprise.v1.IOSKeySettings</code>
 */
class IOSKeySettings extends \Google\Protobuf\Internal\Message
{
    /**
     * If set to true, allowed_bundle_ids are not enforced.
     *
     * Generated from protobuf field <code>bool allow_all_bundle_ids = 2;</code>
     */
    private $allow_all_bundle_ids = false;
    /**
     * iOS bundle ids of apps allowed to use the key.
     * Example: 'com.companyname.productname.appname'
     *
     * Generated from protobuf field <code>repeated string allowed_bundle_ids = 1;</code>
     */
    private $allowed_bundle_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $allow_all_bundle_ids
     *           If set to true, allowed_bundle_ids are not enforced.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowed_bundle_ids
     *           iOS bundle ids of apps allowed to use the key.
     *           Example: 'com.companyname.productname.appname'
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Recaptchaenterprise\V1\Recaptchaenterprise::initOnce();
        parent::__construct($data);
    }

    /**
     * If set to true, allowed_bundle_ids are not enforced.
     *
     * Generated from protobuf field <code>bool allow_all_bundle_ids = 2;</code>
     * @return bool
     */
    public function getAllowAllBundleIds()
    {
        return $this->allow_all_bundle_ids;
    }

    /**
     * If set to true, allowed_bundle_ids are not enforced.
     *
     * Generated from protobuf field <code>bool allow_all_bundle_ids = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setAllowAllBundleIds($var)
    {
        GPBUtil::checkBool($var);
        $this->allow_all_bundle_ids = $var;

        return $this;
    }

    /**
     * iOS bundle ids of apps allowed to use the key.
     * Example: 'com.companyname.productname.appname'
     *
     * Generated from protobuf field <code>repeated string allowed_bundle_ids = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAllowedBundleIds()
    {
        return $this->allowed_bundle_ids;
    }

    /**
     * iOS bundle ids of apps allowed to use the key.
     * Example: 'com.companyname.productname.appname'
     *
     * Generated from protobuf field <code>repeated string allowed_bundle_ids = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAllowedBundleIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->allowed_bundle_ids = $arr;

        return $this;
    }

}

