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

namespace Google\Ads\GoogleAds\V25\Resources;

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

/**
 * Details for CustomerUserAccess.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.resources.CustomerUserAccessReview</code>
 */
class CustomerUserAccessReview extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The resource name of the CustomerUserAccess being changed.
     *
     * Generated from protobuf field <code>string old_customer_user_access = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     */
    protected $old_customer_user_access = '';
    /**
     * Output only. The new CustomerUserAccess details. Only fields that need to
     * be reviewed are populated.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.resources.CustomerUserAccess new_customer_user_access = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $new_customer_user_access = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $old_customer_user_access
     *           Output only. The resource name of the CustomerUserAccess being changed.
     *     @type \Google\Ads\GoogleAds\V25\Resources\CustomerUserAccess $new_customer_user_access
     *           Output only. The new CustomerUserAccess details. Only fields that need to
     *           be reviewed are populated.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Resources\MultiPartyAuthReview::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The resource name of the CustomerUserAccess being changed.
     *
     * Generated from protobuf field <code>string old_customer_user_access = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getOldCustomerUserAccess()
    {
        return $this->old_customer_user_access;
    }

    /**
     * Output only. The resource name of the CustomerUserAccess being changed.
     *
     * Generated from protobuf field <code>string old_customer_user_access = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setOldCustomerUserAccess($var)
    {
        GPBUtil::checkString($var, True);
        $this->old_customer_user_access = $var;

        return $this;
    }

    /**
     * Output only. The new CustomerUserAccess details. Only fields that need to
     * be reviewed are populated.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.resources.CustomerUserAccess new_customer_user_access = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Ads\GoogleAds\V25\Resources\CustomerUserAccess|null
     */
    public function getNewCustomerUserAccess()
    {
        return $this->new_customer_user_access;
    }

    public function hasNewCustomerUserAccess()
    {
        return isset($this->new_customer_user_access);
    }

    public function clearNewCustomerUserAccess()
    {
        unset($this->new_customer_user_access);
    }

    /**
     * Output only. The new CustomerUserAccess details. Only fields that need to
     * be reviewed are populated.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.resources.CustomerUserAccess new_customer_user_access = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Ads\GoogleAds\V25\Resources\CustomerUserAccess $var
     * @return $this
     */
    public function setNewCustomerUserAccess($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V25\Resources\CustomerUserAccess::class);
        $this->new_customer_user_access = $var;

        return $this;
    }

}

