<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v22/services/automatically_created_asset_removal_service.proto

namespace Google\Ads\GoogleAds\V22\Services;

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

/**
 * A single operation to remove an automatically created asset from a campaign.
 *
 * Generated from protobuf message <code>google.ads.googleads.v22.services.RemoveCampaignAutomaticallyCreatedAssetOperation</code>
 */
class RemoveCampaignAutomaticallyCreatedAssetOperation extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The resource name of the campaign.
     *
     * Generated from protobuf field <code>string campaign = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $campaign = '';
    /**
     * Required. The resource name of the asset to remove.
     *
     * Generated from protobuf field <code>string asset = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $asset = '';
    /**
     * Required. The field type of the asset to remove.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType field_type = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $field_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $campaign
     *           Required. The resource name of the campaign.
     *     @type string $asset
     *           Required. The resource name of the asset to remove.
     *     @type int $field_type
     *           Required. The field type of the asset to remove.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V22\Services\AutomaticallyCreatedAssetRemovalService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The resource name of the campaign.
     *
     * Generated from protobuf field <code>string campaign = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getCampaign()
    {
        return $this->campaign;
    }

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

        return $this;
    }

    /**
     * Required. The resource name of the asset to remove.
     *
     * Generated from protobuf field <code>string asset = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getAsset()
    {
        return $this->asset;
    }

    /**
     * Required. The resource name of the asset to remove.
     *
     * Generated from protobuf field <code>string asset = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setAsset($var)
    {
        GPBUtil::checkString($var, True);
        $this->asset = $var;

        return $this;
    }

    /**
     * Required. The field type of the asset to remove.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType field_type = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getFieldType()
    {
        return $this->field_type;
    }

    /**
     * Required. The field type of the asset to remove.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v22.enums.AssetFieldTypeEnum.AssetFieldType field_type = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setFieldType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V22\Enums\AssetFieldTypeEnum\AssetFieldType::class);
        $this->field_type = $var;

        return $this;
    }

}

