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

namespace Google\Ads\AdManager\V1;

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

/**
 * Request object for `BatchAllowAdReviewCenterAds` method.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.BatchAllowAdReviewCenterAdsRequest</code>
 */
class BatchAllowAdReviewCenterAdsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The parent, which owns this collection of AdReviewCenterAds.
     * Format: networks/{network_code}/webProperties/{web_property_code}
     * Since a network can only have a single web property of each
     * `ExchangeSyndicationProduct`, you can use the
     * `ExchangeSyndicationProduct` as an alias for the web property code:
     * `networks/{network_code}/webProperties/display`
     * `networks/{network_code}/webProperties/videoAndAudio`
     * `networks/{network_code}/webProperties/mobileApp`
     * `networks/{network_code}/webProperties/games`
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $parent = '';
    /**
     * Required. The resource names of the `AdReviewCenterAd`s to allow.
     * Format:
     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
     *
     * Generated from protobuf field <code>repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $names;

    /**
     * @param string $parent Required. The parent, which owns this collection of AdReviewCenterAds.
     *                       Format: networks/{network_code}/webProperties/{web_property_code}
     *
     *                       Since a network can only have a single web property of each
     *                       `ExchangeSyndicationProduct`, you can use the
     *                       `ExchangeSyndicationProduct` as an alias for the web property code:
     *
     *                       `networks/{network_code}/webProperties/display`
     *
     *                       `networks/{network_code}/webProperties/videoAndAudio`
     *
     *                       `networks/{network_code}/webProperties/mobileApp`
     *
     *                       `networks/{network_code}/webProperties/games`
     *                       Please see {@see AdReviewCenterAdServiceClient::webPropertyName()} for help formatting this field.
     *
     * @return \Google\Ads\AdManager\V1\BatchAllowAdReviewCenterAdsRequest
     *
     * @experimental
     */
    public static function build(string $parent): self
    {
        return (new self())
            ->setParent($parent);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. The parent, which owns this collection of AdReviewCenterAds.
     *           Format: networks/{network_code}/webProperties/{web_property_code}
     *           Since a network can only have a single web property of each
     *           `ExchangeSyndicationProduct`, you can use the
     *           `ExchangeSyndicationProduct` as an alias for the web property code:
     *           `networks/{network_code}/webProperties/display`
     *           `networks/{network_code}/webProperties/videoAndAudio`
     *           `networks/{network_code}/webProperties/mobileApp`
     *           `networks/{network_code}/webProperties/games`
     *     @type string[] $names
     *           Required. The resource names of the `AdReviewCenterAd`s to allow.
     *           Format:
     *           `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\AdReviewCenterAdService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The parent, which owns this collection of AdReviewCenterAds.
     * Format: networks/{network_code}/webProperties/{web_property_code}
     * Since a network can only have a single web property of each
     * `ExchangeSyndicationProduct`, you can use the
     * `ExchangeSyndicationProduct` as an alias for the web property code:
     * `networks/{network_code}/webProperties/display`
     * `networks/{network_code}/webProperties/videoAndAudio`
     * `networks/{network_code}/webProperties/mobileApp`
     * `networks/{network_code}/webProperties/games`
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. The parent, which owns this collection of AdReviewCenterAds.
     * Format: networks/{network_code}/webProperties/{web_property_code}
     * Since a network can only have a single web property of each
     * `ExchangeSyndicationProduct`, you can use the
     * `ExchangeSyndicationProduct` as an alias for the web property code:
     * `networks/{network_code}/webProperties/display`
     * `networks/{network_code}/webProperties/videoAndAudio`
     * `networks/{network_code}/webProperties/mobileApp`
     * `networks/{network_code}/webProperties/games`
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Required. The resource names of the `AdReviewCenterAd`s to allow.
     * Format:
     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
     *
     * Generated from protobuf field <code>repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return RepeatedField<string>
     */
    public function getNames()
    {
        return $this->names;
    }

    /**
     * Required. The resource names of the `AdReviewCenterAd`s to allow.
     * Format:
     * `networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad_id}`
     *
     * Generated from protobuf field <code>repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string[] $var
     * @return $this
     */
    public function setNames($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->names = $arr;

        return $this;
    }

}

