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

/**
 * Asset automation setting contains pair of AssetAutomationType and the
 * asset automation opt-in/out status
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.Campaign.AssetAutomationSetting</code>
 */
class AssetAutomationSetting extends \Google\Protobuf\Internal\Message
{
    /**
     * The asset automation type advertiser would like to opt-in/out.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v24.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1;</code>
     */
    protected $asset_automation_type = null;
    /**
     * The opt-in/out status of asset automation type.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v24.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2;</code>
     */
    protected $asset_automation_status = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type int $asset_automation_type
     *           The asset automation type advertiser would like to opt-in/out.
     * @type int $asset_automation_status
     *           The opt-in/out status of asset automation type.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\Campaign::initOnce();
        parent::__construct($data);
    }

    /**
     * The asset automation type advertiser would like to opt-in/out.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v24.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1;</code>
     *
     * @return int
     */
    public function getAssetAutomationType()
    {
        return isset($this->asset_automation_type) ? $this->asset_automation_type : 0;
    }

    public function hasAssetAutomationType()
    {
        return isset($this->asset_automation_type);
    }

    public function clearAssetAutomationType()
    {
        unset($this->asset_automation_type);
    }

    /**
     * The asset automation type advertiser would like to opt-in/out.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v24.enums.AssetAutomationTypeEnum.AssetAutomationType asset_automation_type = 1;</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setAssetAutomationType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V24\Enums\AssetAutomationTypeEnum\AssetAutomationType::class);
        $this->asset_automation_type = $var;

        return $this;
    }

    /**
     * The opt-in/out status of asset automation type.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v24.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2;</code>
     *
     * @return int
     */
    public function getAssetAutomationStatus()
    {
        return isset($this->asset_automation_status) ? $this->asset_automation_status : 0;
    }

    public function hasAssetAutomationStatus()
    {
        return isset($this->asset_automation_status);
    }

    public function clearAssetAutomationStatus()
    {
        unset($this->asset_automation_status);
    }

    /**
     * The opt-in/out status of asset automation type.
     *
     * Generated from protobuf field <code>optional .google.ads.googleads.v24.enums.AssetAutomationStatusEnum.AssetAutomationStatus asset_automation_status = 2;</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setAssetAutomationStatus($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V24\Enums\AssetAutomationStatusEnum\AssetAutomationStatus::class);
        $this->asset_automation_status = $var;

        return $this;
    }

}

