<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v23/services/reach_plan_service.proto

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * A response with all available products.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.ListPlannableProductsResponse</code>
 */
class ListPlannableProductsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of products available for planning and related targeting metadata.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.ProductMetadata product_metadata = 1;</code>
     */
    private $product_metadata;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\GoogleAds\V23\Services\ProductMetadata>|\Google\Protobuf\Internal\RepeatedField $product_metadata
     *           The list of products available for planning and related targeting metadata.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\ReachPlanService::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of products available for planning and related targeting metadata.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.ProductMetadata product_metadata = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getProductMetadata()
    {
        return $this->product_metadata;
    }

    /**
     * The list of products available for planning and related targeting metadata.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v23.services.ProductMetadata product_metadata = 1;</code>
     * @param array<\Google\Ads\GoogleAds\V23\Services\ProductMetadata>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setProductMetadata($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V23\Services\ProductMetadata::class);
        $this->product_metadata = $arr;

        return $this;
    }

}

