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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * Response message for
 * [KeywordPlanIdeaService.GenerateKeywordForecastMetrics][google.ads.googleads.v23.services.KeywordPlanIdeaService.GenerateKeywordForecastMetrics].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.GenerateKeywordForecastMetricsResponse</code>
 */
class GenerateKeywordForecastMetricsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Results of the campaign forecast.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.KeywordForecastMetrics campaign_forecast_metrics = 1;</code>
     */
    protected $campaign_forecast_metrics = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V23\Services\KeywordForecastMetrics $campaign_forecast_metrics
     *           Results of the campaign forecast.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\KeywordPlanIdeaService::initOnce();
        parent::__construct($data);
    }

    /**
     * Results of the campaign forecast.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.KeywordForecastMetrics campaign_forecast_metrics = 1;</code>
     * @return \Google\Ads\GoogleAds\V23\Services\KeywordForecastMetrics|null
     */
    public function getCampaignForecastMetrics()
    {
        return $this->campaign_forecast_metrics;
    }

    public function hasCampaignForecastMetrics()
    {
        return isset($this->campaign_forecast_metrics);
    }

    public function clearCampaignForecastMetrics()
    {
        unset($this->campaign_forecast_metrics);
    }

    /**
     * Results of the campaign forecast.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v23.services.KeywordForecastMetrics campaign_forecast_metrics = 1;</code>
     * @param \Google\Ads\GoogleAds\V23\Services\KeywordForecastMetrics $var
     * @return $this
     */
    public function setCampaignForecastMetrics($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Services\KeywordForecastMetrics::class);
        $this->campaign_forecast_metrics = $var;

        return $this;
    }

}

