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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * Result message for
 * [RecommendationSubscriptionService.MutateRecommendationSubscription][google.ads.googleads.v23.services.RecommendationSubscriptionService.MutateRecommendationSubscription]
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.MutateRecommendationSubscriptionResult</code>
 */
class MutateRecommendationSubscriptionResult extends \Google\Protobuf\Internal\Message
{
    /**
     * Resource name of the subscription that was modified.
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.resource_reference) = {</code>
     */
    protected $resource_name = '';
    /**
     * The mutated recommendation subscription with only mutable fields after
     * mutate. The field will only be returned when response_content_type is set
     * to "MUTABLE_RESOURCE".
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.RecommendationSubscription recommendation_subscription = 2;</code>
     */
    protected $recommendation_subscription = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $resource_name
     *           Resource name of the subscription that was modified.
     * @type \Google\Ads\GoogleAds\V23\Resources\RecommendationSubscription $recommendation_subscription
     *           The mutated recommendation subscription with only mutable fields after
     *           mutate. The field will only be returned when response_content_type is set
     *           to "MUTABLE_RESOURCE".
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\RecommendationSubscriptionService::initOnce();
        parent::__construct($data);
    }

    /**
     * Resource name of the subscription that was modified.
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.resource_reference) = {</code>
     *
     * @return string
     */
    public function getResourceName()
    {
        return $this->resource_name;
    }

    /**
     * Resource name of the subscription that was modified.
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.resource_reference) = {</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setResourceName($var)
    {
        GPBUtil::checkString($var, true);
        $this->resource_name = $var;

        return $this;
    }

    /**
     * The mutated recommendation subscription with only mutable fields after
     * mutate. The field will only be returned when response_content_type is set
     * to "MUTABLE_RESOURCE".
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.RecommendationSubscription recommendation_subscription = 2;</code>
     *
     * @return \Google\Ads\GoogleAds\V23\Resources\RecommendationSubscription|null
     */
    public function getRecommendationSubscription()
    {
        return $this->recommendation_subscription;
    }

    public function hasRecommendationSubscription()
    {
        return isset($this->recommendation_subscription);
    }

    public function clearRecommendationSubscription()
    {
        unset($this->recommendation_subscription);
    }

    /**
     * The mutated recommendation subscription with only mutable fields after
     * mutate. The field will only be returned when response_content_type is set
     * to "MUTABLE_RESOURCE".
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.resources.RecommendationSubscription recommendation_subscription = 2;</code>
     *
     * @param  \Google\Ads\GoogleAds\V23\Resources\RecommendationSubscription $var
     * @return $this
     */
    public function setRecommendationSubscription($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V23\Resources\RecommendationSubscription::class);
        $this->recommendation_subscription = $var;

        return $this;
    }

}

