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

namespace Google\Ads\GoogleAds\V24\Resources\Campaign;

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

/**
 * Selective optimization setting for this campaign, which includes a set of
 * conversion actions to optimize this campaign towards.
 * This feature only applies to app campaigns that use MULTI_CHANNEL as
 * AdvertisingChannelType and APP_CAMPAIGN or APP_CAMPAIGN_FOR_ENGAGEMENT as
 * AdvertisingChannelSubType.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.Campaign.SelectiveOptimization</code>
 */
class SelectiveOptimization extends \Google\Protobuf\Internal\Message
{
    /**
     * The selected set of resource names for conversion actions for optimizing
     * this campaign.
     *
     * Generated from protobuf field <code>repeated string conversion_actions = 2 [(.google.api.resource_reference) = {</code>
     */
    private $conversion_actions;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string[] $conversion_actions
     *           The selected set of resource names for conversion actions for optimizing
     *           this campaign.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * The selected set of resource names for conversion actions for optimizing
     * this campaign.
     *
     * Generated from protobuf field <code>repeated string conversion_actions = 2 [(.google.api.resource_reference) = {</code>
     *
     * @return RepeatedField<string>
     */
    public function getConversionActions()
    {
        return $this->conversion_actions;
    }

    /**
     * The selected set of resource names for conversion actions for optimizing
     * this campaign.
     *
     * Generated from protobuf field <code>repeated string conversion_actions = 2 [(.google.api.resource_reference) = {</code>
     *
     * @param  string[] $var
     * @return $this
     */
    public function setConversionActions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->conversion_actions = $arr;

        return $this;
    }

}

