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

namespace Google\Ads\GoogleAds\V25\Services;

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

/**
 * Response message for
 * [SmartCampaignSettingService.GeneratePMaxDraftCampaign][google.ads.googleads.v25.services.SmartCampaignSettingService.GeneratePMaxDraftCampaign].
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.GeneratePMaxDraftCampaignResponse</code>
 */
class GeneratePMaxDraftCampaignResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The Campaign resource name of the generated draft PMax campaign.
     *
     * Generated from protobuf field <code>string pmax_campaign = 1;</code>
     */
    protected $pmax_campaign = '';
    /**
     * The CampaignBudget resource name linking with the PMax campaign.
     *
     * Generated from protobuf field <code>string campaign_budget = 2;</code>
     */
    protected $campaign_budget = '';
    /**
     * The AssetGroup resource name linking with the PMax campaign.
     *
     * Generated from protobuf field <code>string asset_group = 3;</code>
     */
    protected $asset_group = '';
    /**
     * The resource names of all assets linking with the PMax campaign.
     *
     * Generated from protobuf field <code>repeated string assets = 4;</code>
     */
    private $assets;
    /**
     * Validation info or possible convert issues returned when validate_only is
     * true.
     *
     * Generated from protobuf field <code>string validated_info = 5;</code>
     */
    protected $validated_info = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $pmax_campaign
     *           The Campaign resource name of the generated draft PMax campaign.
     *     @type string $campaign_budget
     *           The CampaignBudget resource name linking with the PMax campaign.
     *     @type string $asset_group
     *           The AssetGroup resource name linking with the PMax campaign.
     *     @type string[] $assets
     *           The resource names of all assets linking with the PMax campaign.
     *     @type string $validated_info
     *           Validation info or possible convert issues returned when validate_only is
     *           true.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\SmartCampaignSettingService::initOnce();
        parent::__construct($data);
    }

    /**
     * The Campaign resource name of the generated draft PMax campaign.
     *
     * Generated from protobuf field <code>string pmax_campaign = 1;</code>
     * @return string
     */
    public function getPmaxCampaign()
    {
        return $this->pmax_campaign;
    }

    /**
     * The Campaign resource name of the generated draft PMax campaign.
     *
     * Generated from protobuf field <code>string pmax_campaign = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPmaxCampaign($var)
    {
        GPBUtil::checkString($var, True);
        $this->pmax_campaign = $var;

        return $this;
    }

    /**
     * The CampaignBudget resource name linking with the PMax campaign.
     *
     * Generated from protobuf field <code>string campaign_budget = 2;</code>
     * @return string
     */
    public function getCampaignBudget()
    {
        return $this->campaign_budget;
    }

    /**
     * The CampaignBudget resource name linking with the PMax campaign.
     *
     * Generated from protobuf field <code>string campaign_budget = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setCampaignBudget($var)
    {
        GPBUtil::checkString($var, True);
        $this->campaign_budget = $var;

        return $this;
    }

    /**
     * The AssetGroup resource name linking with the PMax campaign.
     *
     * Generated from protobuf field <code>string asset_group = 3;</code>
     * @return string
     */
    public function getAssetGroup()
    {
        return $this->asset_group;
    }

    /**
     * The AssetGroup resource name linking with the PMax campaign.
     *
     * Generated from protobuf field <code>string asset_group = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setAssetGroup($var)
    {
        GPBUtil::checkString($var, True);
        $this->asset_group = $var;

        return $this;
    }

    /**
     * The resource names of all assets linking with the PMax campaign.
     *
     * Generated from protobuf field <code>repeated string assets = 4;</code>
     * @return RepeatedField<string>
     */
    public function getAssets()
    {
        return $this->assets;
    }

    /**
     * The resource names of all assets linking with the PMax campaign.
     *
     * Generated from protobuf field <code>repeated string assets = 4;</code>
     * @param string[] $var
     * @return $this
     */
    public function setAssets($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->assets = $arr;

        return $this;
    }

    /**
     * Validation info or possible convert issues returned when validate_only is
     * true.
     *
     * Generated from protobuf field <code>string validated_info = 5;</code>
     * @return string
     */
    public function getValidatedInfo()
    {
        return $this->validated_info;
    }

    /**
     * Validation info or possible convert issues returned when validate_only is
     * true.
     *
     * Generated from protobuf field <code>string validated_info = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setValidatedInfo($var)
    {
        GPBUtil::checkString($var, True);
        $this->validated_info = $var;

        return $this;
    }

}

