<?php
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v24/resources/conversion_action.proto

namespace Google\Ads\GoogleAds\V24\Resources\ConversionAction;

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

/**
 * Settings related to this conversion action's attribution model.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.ConversionAction.AttributionModelSettings</code>
 */
class AttributionModelSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * The attribution model type of this conversion action.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.AttributionModelEnum.AttributionModel attribution_model = 1;</code>
     */
    protected $attribution_model = 0;
    /**
     * Output only. The status of the data-driven attribution model for the
     * conversion action.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $data_driven_model_status = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type int $attribution_model
     *           The attribution model type of this conversion action.
     * @type int $data_driven_model_status
     *           Output only. The status of the data-driven attribution model for the
     *           conversion action.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\ConversionAction::initOnce();
        parent::__construct($data);
    }

    /**
     * The attribution model type of this conversion action.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.AttributionModelEnum.AttributionModel attribution_model = 1;</code>
     *
     * @return int
     */
    public function getAttributionModel()
    {
        return $this->attribution_model;
    }

    /**
     * The attribution model type of this conversion action.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.AttributionModelEnum.AttributionModel attribution_model = 1;</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setAttributionModel($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V24\Enums\AttributionModelEnum\AttributionModel::class);
        $this->attribution_model = $var;

        return $this;
    }

    /**
     * Output only. The status of the data-driven attribution model for the
     * conversion action.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return int
     */
    public function getDataDrivenModelStatus()
    {
        return $this->data_driven_model_status;
    }

    /**
     * Output only. The status of the data-driven attribution model for the
     * conversion action.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus data_driven_model_status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setDataDrivenModelStatus($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V24\Enums\DataDrivenModelStatusEnum\DataDrivenModelStatus::class);
        $this->data_driven_model_status = $var;

        return $this;
    }

}

