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

namespace Google\Ads\GoogleAds\V24\Services;

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

/**
 * The reach curve for the planned products.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.services.ReachCurve</code>
 */
class ReachCurve extends \Google\Protobuf\Internal\Message
{
    /**
     * All points on the reach curve.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.services.ReachForecast reach_forecasts = 1;</code>
     */
    private $reach_forecasts;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type \Google\Ads\GoogleAds\V24\Services\ReachForecast[] $reach_forecasts
     *           All points on the reach curve.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Services\ReachPlanService::initOnce();
        parent::__construct($data);
    }

    /**
     * All points on the reach curve.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.services.ReachForecast reach_forecasts = 1;</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Services\ReachForecast>
     */
    public function getReachForecasts()
    {
        return $this->reach_forecasts;
    }

    /**
     * All points on the reach curve.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.services.ReachForecast reach_forecasts = 1;</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Services\ReachForecast[] $var
     * @return $this
     */
    public function setReachForecasts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Services\ReachForecast::class);
        $this->reach_forecasts = $arr;

        return $this;
    }

}

