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

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

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

/**
 * Details of an asset modification for the experiment ad, such as adding or
 * removing the asset.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.ExperimentArm.AssetDetail</code>
 */
class AssetDetail extends \Google\Protobuf\Internal\Message
{
    /**
     * The asset that is being modified for the experiment.
     *
     * Generated from protobuf field <code>string asset = 1 [(.google.api.resource_reference) = {</code>
     */
    protected $asset = '';
    /**
     * Field type for the asset.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.AssetFieldTypeEnum.AssetFieldType field_type = 2;</code>
     */
    protected $field_type = 0;
    /**
     * Enum to specify whether the asset is removed or added from the base
     * ad.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.ExperimentAssetDetailOperationEnum.ExperimentAssetDetailOperation asset_detail_operation = 3;</code>
     */
    protected $asset_detail_operation = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $asset
     *           The asset that is being modified for the experiment.
     * @type int $field_type
     *           Field type for the asset.
     * @type int $asset_detail_operation
     *           Enum to specify whether the asset is removed or added from the base
     *           ad.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\ExperimentArm::initOnce();
        parent::__construct($data);
    }

    /**
     * The asset that is being modified for the experiment.
     *
     * Generated from protobuf field <code>string asset = 1 [(.google.api.resource_reference) = {</code>
     *
     * @return string
     */
    public function getAsset()
    {
        return $this->asset;
    }

    /**
     * The asset that is being modified for the experiment.
     *
     * Generated from protobuf field <code>string asset = 1 [(.google.api.resource_reference) = {</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setAsset($var)
    {
        GPBUtil::checkString($var, true);
        $this->asset = $var;

        return $this;
    }

    /**
     * Field type for the asset.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.AssetFieldTypeEnum.AssetFieldType field_type = 2;</code>
     *
     * @return int
     */
    public function getFieldType()
    {
        return $this->field_type;
    }

    /**
     * Field type for the asset.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.AssetFieldTypeEnum.AssetFieldType field_type = 2;</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setFieldType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V24\Enums\AssetFieldTypeEnum\AssetFieldType::class);
        $this->field_type = $var;

        return $this;
    }

    /**
     * Enum to specify whether the asset is removed or added from the base
     * ad.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.ExperimentAssetDetailOperationEnum.ExperimentAssetDetailOperation asset_detail_operation = 3;</code>
     *
     * @return int
     */
    public function getAssetDetailOperation()
    {
        return $this->asset_detail_operation;
    }

    /**
     * Enum to specify whether the asset is removed or added from the base
     * ad.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.ExperimentAssetDetailOperationEnum.ExperimentAssetDetailOperation asset_detail_operation = 3;</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setAssetDetailOperation($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V24\Enums\ExperimentAssetDetailOperationEnum\ExperimentAssetDetailOperation::class);
        $this->asset_detail_operation = $var;

        return $this;
    }

}

