<?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;

/**
 * Request message for
 * [SmartCampaignSettingService.GeneratePMaxDraftCampaign][google.ads.googleads.v25.services.SmartCampaignSettingService.GeneratePMaxDraftCampaign].
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.services.GeneratePMaxDraftCampaignRequest</code>
 */
class GeneratePMaxDraftCampaignRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The resource name of the Smart campaign setting to regenerate.
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $resource_name = '';
    /**
     * Optional. If true, the request will be validated but not executed. Only
     * validation errors/warnings will be returned.
     *
     * Generated from protobuf field <code>bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $validate_only = false;
    /**
     * Optional. Whether to enable to convert GBP (Google Business Profile)
     * location linked with the PMax campaign.
     *
     * Generated from protobuf field <code>bool gbp_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $gbp_enabled = false;
    /**
     * Optional. Whether to generate PMax campaign required images, like
     * Horizontal, Square, logo types.
     *
     * Generated from protobuf field <code>bool image_enabled = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $image_enabled = false;

    /**
     * @param string $resourceName Required. The resource name of the Smart campaign setting to regenerate.
     *
     * @return \Google\Ads\GoogleAds\V25\Services\GeneratePMaxDraftCampaignRequest
     *
     * @experimental
     */
    public static function build(string $resourceName): self
    {
        return (new self())
            ->setResourceName($resourceName);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $resource_name
     *           Required. The resource name of the Smart campaign setting to regenerate.
     *     @type bool $validate_only
     *           Optional. If true, the request will be validated but not executed. Only
     *           validation errors/warnings will be returned.
     *     @type bool $gbp_enabled
     *           Optional. Whether to enable to convert GBP (Google Business Profile)
     *           location linked with the PMax campaign.
     *     @type bool $image_enabled
     *           Optional. Whether to generate PMax campaign required images, like
     *           Horizontal, Square, logo types.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Services\SmartCampaignSettingService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The resource name of the Smart campaign setting to regenerate.
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getResourceName()
    {
        return $this->resource_name;
    }

    /**
     * Required. The resource name of the Smart campaign setting to regenerate.
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setResourceName($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_name = $var;

        return $this;
    }

    /**
     * Optional. If true, the request will be validated but not executed. Only
     * validation errors/warnings will be returned.
     *
     * Generated from protobuf field <code>bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getValidateOnly()
    {
        return $this->validate_only;
    }

    /**
     * Optional. If true, the request will be validated but not executed. Only
     * validation errors/warnings will be returned.
     *
     * Generated from protobuf field <code>bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setValidateOnly($var)
    {
        GPBUtil::checkBool($var);
        $this->validate_only = $var;

        return $this;
    }

    /**
     * Optional. Whether to enable to convert GBP (Google Business Profile)
     * location linked with the PMax campaign.
     *
     * Generated from protobuf field <code>bool gbp_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getGbpEnabled()
    {
        return $this->gbp_enabled;
    }

    /**
     * Optional. Whether to enable to convert GBP (Google Business Profile)
     * location linked with the PMax campaign.
     *
     * Generated from protobuf field <code>bool gbp_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setGbpEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->gbp_enabled = $var;

        return $this;
    }

    /**
     * Optional. Whether to generate PMax campaign required images, like
     * Horizontal, Square, logo types.
     *
     * Generated from protobuf field <code>bool image_enabled = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getImageEnabled()
    {
        return $this->image_enabled;
    }

    /**
     * Optional. Whether to generate PMax campaign required images, like
     * Horizontal, Square, logo types.
     *
     * Generated from protobuf field <code>bool image_enabled = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setImageEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->image_enabled = $var;

        return $this;
    }

}

