<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto

namespace Google\Ads\MarketingPlatform\Admin\V1alpha;

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

/**
 * Response message for ListAnalyticsAccountLinks RPC.
 *
 * Generated from protobuf message <code>google.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse</code>
 */
class ListAnalyticsAccountLinksResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Analytics account links in this organization.
     *
     * Generated from protobuf field <code>repeated .google.marketingplatform.admin.v1alpha.AnalyticsAccountLink analytics_account_links = 1;</code>
     */
    private $analytics_account_links;
    /**
     * A token, which can be sent as `page_token` to retrieve the next page.
     * If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    protected $next_page_token = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink[] $analytics_account_links
     *           Analytics account links in this organization.
     *     @type string $next_page_token
     *           A token, which can be sent as `page_token` to retrieve the next page.
     *           If this field is omitted, there are no subsequent pages.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Marketingplatform\Admin\V1Alpha\MarketingplatformAdmin::initOnce();
        parent::__construct($data);
    }

    /**
     * Analytics account links in this organization.
     *
     * Generated from protobuf field <code>repeated .google.marketingplatform.admin.v1alpha.AnalyticsAccountLink analytics_account_links = 1;</code>
     * @return RepeatedField<\Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink>
     */
    public function getAnalyticsAccountLinks()
    {
        return $this->analytics_account_links;
    }

    /**
     * Analytics account links in this organization.
     *
     * Generated from protobuf field <code>repeated .google.marketingplatform.admin.v1alpha.AnalyticsAccountLink analytics_account_links = 1;</code>
     * @param \Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink[] $var
     * @return $this
     */
    public function setAnalyticsAccountLinks($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink::class);
        $this->analytics_account_links = $arr;

        return $this;
    }

    /**
     * A token, which can be sent as `page_token` to retrieve the next page.
     * If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * A token, which can be sent as `page_token` to retrieve the next page.
     * If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_page_token = $var;

        return $this;
    }

}

