<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v23/services/smart_campaign_suggest_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
 * [SmartCampaignSuggestService.SuggestSmartCampaignAd][google.ads.googleads.v23.services.SmartCampaignSuggestService.SuggestSmartCampaignAd].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.SuggestSmartCampaignAdResponse</code>
 */
class SuggestSmartCampaignAdResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. Ad info includes 3 creative headlines and 2 creative
     * descriptions.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.SmartCampaignAdInfo ad_info = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $ad_info = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\GoogleAds\V23\Common\SmartCampaignAdInfo $ad_info
     *           Optional. Ad info includes 3 creative headlines and 2 creative
     *           descriptions.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\SmartCampaignSuggestService::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. Ad info includes 3 creative headlines and 2 creative
     * descriptions.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.SmartCampaignAdInfo ad_info = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Ads\GoogleAds\V23\Common\SmartCampaignAdInfo|null
     */
    public function getAdInfo()
    {
        return $this->ad_info;
    }

    public function hasAdInfo()
    {
        return isset($this->ad_info);
    }

    public function clearAdInfo()
    {
        unset($this->ad_info);
    }

    /**
     * Optional. Ad info includes 3 creative headlines and 2 creative
     * descriptions.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.common.SmartCampaignAdInfo ad_info = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Ads\GoogleAds\V23\Common\SmartCampaignAdInfo $var
     * @return $this
     */
    public function setAdInfo($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Common\SmartCampaignAdInfo::class);
        $this->ad_info = $var;

        return $this;
    }

}

