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

namespace Google\Ads\GoogleAds\V14\Services;

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

/**
 * Request message for
 * [SmartCampaignSuggestService.SuggestSmartCampaignAd][google.ads.googleads.v14.services.SmartCampaignSuggestService.SuggestSmartCampaignAd].
 *
 * Generated from protobuf message <code>google.ads.googleads.v14.services.SuggestSmartCampaignAdRequest</code>
 */
class SuggestSmartCampaignAdRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The ID of the customer.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $customer_id = '';
    /**
     * Required. Inputs used to suggest a Smart campaign ad.
     * Required fields: final_url, language_code, keyword_themes.
     * Optional but recommended fields to improve the quality of the suggestion:
     * business_setting and geo_target.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v14.services.SmartCampaignSuggestionInfo suggestion_info = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $suggestion_info = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $customer_id
     *           Required. The ID of the customer.
     *     @type \Google\Ads\GoogleAds\V14\Services\SmartCampaignSuggestionInfo $suggestion_info
     *           Required. Inputs used to suggest a Smart campaign ad.
     *           Required fields: final_url, language_code, keyword_themes.
     *           Optional but recommended fields to improve the quality of the suggestion:
     *           business_setting and geo_target.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V14\Services\SmartCampaignSuggestService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The ID of the customer.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCustomerId()
    {
        return $this->customer_id;
    }

    /**
     * Required. The ID of the customer.
     *
     * Generated from protobuf field <code>string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setCustomerId($var)
    {
        GPBUtil::checkString($var, True);
        $this->customer_id = $var;

        return $this;
    }

    /**
     * Required. Inputs used to suggest a Smart campaign ad.
     * Required fields: final_url, language_code, keyword_themes.
     * Optional but recommended fields to improve the quality of the suggestion:
     * business_setting and geo_target.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v14.services.SmartCampaignSuggestionInfo suggestion_info = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Ads\GoogleAds\V14\Services\SmartCampaignSuggestionInfo|null
     */
    public function getSuggestionInfo()
    {
        return $this->suggestion_info;
    }

    public function hasSuggestionInfo()
    {
        return isset($this->suggestion_info);
    }

    public function clearSuggestionInfo()
    {
        unset($this->suggestion_info);
    }

    /**
     * Required. Inputs used to suggest a Smart campaign ad.
     * Required fields: final_url, language_code, keyword_themes.
     * Optional but recommended fields to improve the quality of the suggestion:
     * business_setting and geo_target.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v14.services.SmartCampaignSuggestionInfo suggestion_info = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Ads\GoogleAds\V14\Services\SmartCampaignSuggestionInfo $var
     * @return $this
     */
    public function setSuggestionInfo($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V14\Services\SmartCampaignSuggestionInfo::class);
        $this->suggestion_info = $var;

        return $this;
    }

}

