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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * Response message for
 * [AutomaticallyCreatedAssetRemovalService.RemoveCampaignAutomaticallyCreatedAsset][google.ads.googleads.v23.services.AutomaticallyCreatedAssetRemovalService.RemoveCampaignAutomaticallyCreatedAsset].
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.RemoveCampaignAutomaticallyCreatedAssetResponse</code>
 */
class RemoveCampaignAutomaticallyCreatedAssetResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Errors that pertain to AutomaticallyCreatedAssetRemoval failures in the
     * partial failure mode. Returned when all errors occur inside the operations.
     * If any errors occur outside the operations (for example, auth errors), RPC
     * level error will be returned. See
     * https://developers.google.com/google-ads/api/docs/best-practices/partial-failures
     * for more information about partial failure.
     *
     * Generated from protobuf field <code>.google.rpc.Status partial_failure_error = 1;</code>
     */
    protected $partial_failure_error = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Rpc\Status $partial_failure_error
     *           Errors that pertain to AutomaticallyCreatedAssetRemoval failures in the
     *           partial failure mode. Returned when all errors occur inside the operations.
     *           If any errors occur outside the operations (for example, auth errors), RPC
     *           level error will be returned. See
     *           https://developers.google.com/google-ads/api/docs/best-practices/partial-failures
     *           for more information about partial failure.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\AutomaticallyCreatedAssetRemovalService::initOnce();
        parent::__construct($data);
    }

    /**
     * Errors that pertain to AutomaticallyCreatedAssetRemoval failures in the
     * partial failure mode. Returned when all errors occur inside the operations.
     * If any errors occur outside the operations (for example, auth errors), RPC
     * level error will be returned. See
     * https://developers.google.com/google-ads/api/docs/best-practices/partial-failures
     * for more information about partial failure.
     *
     * Generated from protobuf field <code>.google.rpc.Status partial_failure_error = 1;</code>
     * @return \Google\Rpc\Status|null
     */
    public function getPartialFailureError()
    {
        return $this->partial_failure_error;
    }

    public function hasPartialFailureError()
    {
        return isset($this->partial_failure_error);
    }

    public function clearPartialFailureError()
    {
        unset($this->partial_failure_error);
    }

    /**
     * Errors that pertain to AutomaticallyCreatedAssetRemoval failures in the
     * partial failure mode. Returned when all errors occur inside the operations.
     * If any errors occur outside the operations (for example, auth errors), RPC
     * level error will be returned. See
     * https://developers.google.com/google-ads/api/docs/best-practices/partial-failures
     * for more information about partial failure.
     *
     * Generated from protobuf field <code>.google.rpc.Status partial_failure_error = 1;</code>
     * @param \Google\Rpc\Status $var
     * @return $this
     */
    public function setPartialFailureError($var)
    {
        GPBUtil::checkMessage($var, \Google\Rpc\Status::class);
        $this->partial_failure_error = $var;

        return $this;
    }

}

