<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/shopping/merchant/datasources/v1/datasources.proto

namespace Google\Shopping\Merchant\DataSources\V1;

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

/**
 * Response message for the ListDataSources method.
 *
 * Generated from protobuf message <code>google.shopping.merchant.datasources.v1.ListDataSourcesResponse</code>
 */
class ListDataSourcesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The data sources from the specified account.
     *
     * Generated from protobuf field <code>repeated .google.shopping.merchant.datasources.v1.DataSource data_sources = 1;</code>
     */
    private $data_sources;
    /**
     * 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\Shopping\Merchant\DataSources\V1\DataSource[] $data_sources
     *           The data sources from the specified account.
     *     @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\Shopping\Merchant\Datasources\V1\Datasources::initOnce();
        parent::__construct($data);
    }

    /**
     * The data sources from the specified account.
     *
     * Generated from protobuf field <code>repeated .google.shopping.merchant.datasources.v1.DataSource data_sources = 1;</code>
     * @return RepeatedField<\Google\Shopping\Merchant\DataSources\V1\DataSource>
     */
    public function getDataSources()
    {
        return $this->data_sources;
    }

    /**
     * The data sources from the specified account.
     *
     * Generated from protobuf field <code>repeated .google.shopping.merchant.datasources.v1.DataSource data_sources = 1;</code>
     * @param \Google\Shopping\Merchant\DataSources\V1\DataSource[] $var
     * @return $this
     */
    public function setDataSources($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Shopping\Merchant\DataSources\V1\DataSource::class);
        $this->data_sources = $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;
    }

}

