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

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

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

/**
 * Settings related to this conversion action's attribution model.
 *
 * Generated from protobuf message <code>google.ads.googleads.v16.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.v16.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.v16.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\V16\Resources\ConversionAction::initOnce();
        parent::__construct($data);
    }

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

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttributionModelSettings::class, \Google\Ads\GoogleAds\V16\Resources\ConversionAction_AttributionModelSettings::class);

