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

namespace Google\Ads\GoogleAds\V25\Services;

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

/**
 * A campaign to do a keyword campaign forecast.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.CampaignToForecast</code>
 */
class CampaignToForecast extends \Google\Protobuf\Internal\Message
{
    /**
     * The list of resource names of languages to be targeted. The resource name
     * is of the format "languageConstants/{criterion_id}". See
     * https://developers.google.com/google-ads/api/data/codes-formats#languages
     * for the list of language criterion codes.
     *
     * Generated from protobuf field <code>repeated string language_constants = 1;</code>
     */
    private $language_constants;
    /**
     * Locations to be targeted. Locations must be unique.
     * The resource name is of the format "geoTargetConstants/{criterion_id}".
     *
     * Generated from protobuf field <code>repeated string geo_target_constants = 8;</code>
     */
    private $geo_target_constants;
    /**
     * Required. The bidding strategy for the campaign.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $bidding_strategy = null;
    /**
     * The ad groups in the new campaign to forecast.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;</code>
     */
    private $ad_groups;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $language_constants
     *           The list of resource names of languages to be targeted. The resource name
     *           is of the format "languageConstants/{criterion_id}". See
     *           https://developers.google.com/google-ads/api/data/codes-formats#languages
     *           for the list of language criterion codes.
     *     @type string[] $geo_target_constants
     *           Locations to be targeted. Locations must be unique.
     *           The resource name is of the format "geoTargetConstants/{criterion_id}".
     *     @type \Google\Ads\GoogleAds\V25\Services\CampaignToForecast\CampaignBiddingStrategy $bidding_strategy
     *           Required. The bidding strategy for the campaign.
     *     @type \Google\Ads\GoogleAds\V25\Services\ForecastAdGroup[] $ad_groups
     *           The ad groups in the new campaign to forecast.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\KeywordPlanIdeaService::initOnce();
        parent::__construct($data);
    }

    /**
     * The list of resource names of languages to be targeted. The resource name
     * is of the format "languageConstants/{criterion_id}". See
     * https://developers.google.com/google-ads/api/data/codes-formats#languages
     * for the list of language criterion codes.
     *
     * Generated from protobuf field <code>repeated string language_constants = 1;</code>
     * @return RepeatedField<string>
     */
    public function getLanguageConstants()
    {
        return $this->language_constants;
    }

    /**
     * The list of resource names of languages to be targeted. The resource name
     * is of the format "languageConstants/{criterion_id}". See
     * https://developers.google.com/google-ads/api/data/codes-formats#languages
     * for the list of language criterion codes.
     *
     * Generated from protobuf field <code>repeated string language_constants = 1;</code>
     * @param string[] $var
     * @return $this
     */
    public function setLanguageConstants($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->language_constants = $arr;

        return $this;
    }

    /**
     * Locations to be targeted. Locations must be unique.
     * The resource name is of the format "geoTargetConstants/{criterion_id}".
     *
     * Generated from protobuf field <code>repeated string geo_target_constants = 8;</code>
     * @return RepeatedField<string>
     */
    public function getGeoTargetConstants()
    {
        return $this->geo_target_constants;
    }

    /**
     * Locations to be targeted. Locations must be unique.
     * The resource name is of the format "geoTargetConstants/{criterion_id}".
     *
     * Generated from protobuf field <code>repeated string geo_target_constants = 8;</code>
     * @param string[] $var
     * @return $this
     */
    public function setGeoTargetConstants($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->geo_target_constants = $arr;

        return $this;
    }

    /**
     * Required. The bidding strategy for the campaign.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Ads\GoogleAds\V25\Services\CampaignToForecast\CampaignBiddingStrategy|null
     */
    public function getBiddingStrategy()
    {
        return $this->bidding_strategy;
    }

    public function hasBiddingStrategy()
    {
        return isset($this->bidding_strategy);
    }

    public function clearBiddingStrategy()
    {
        unset($this->bidding_strategy);
    }

    /**
     * Required. The bidding strategy for the campaign.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.services.CampaignToForecast.CampaignBiddingStrategy bidding_strategy = 5 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Ads\GoogleAds\V25\Services\CampaignToForecast\CampaignBiddingStrategy $var
     * @return $this
     */
    public function setBiddingStrategy($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V25\Services\CampaignToForecast\CampaignBiddingStrategy::class);
        $this->bidding_strategy = $var;

        return $this;
    }

    /**
     * The ad groups in the new campaign to forecast.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;</code>
     * @return RepeatedField<\Google\Ads\GoogleAds\V25\Services\ForecastAdGroup>
     */
    public function getAdGroups()
    {
        return $this->ad_groups;
    }

    /**
     * The ad groups in the new campaign to forecast.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v25.services.ForecastAdGroup ad_groups = 7;</code>
     * @param \Google\Ads\GoogleAds\V25\Services\ForecastAdGroup[] $var
     * @return $this
     */
    public function setAdGroups($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V25\Services\ForecastAdGroup::class);
        $this->ad_groups = $arr;

        return $this;
    }

}

