<?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
{
    /**
     * 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 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);
    }

    /**
     * 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 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;
    }

}

