<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/aiplatform/v1/io.proto

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * The SharePointSources to pass to ImportRagFiles.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.SharePointSources</code>
 */
class SharePointSources extends \Google\Protobuf\Internal\Message
{
    /**
     * The SharePoint sources.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1;</code>
     */
    private $share_point_sources;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\AIPlatform\V1\SharePointSources\SharePointSource>|\Google\Protobuf\Internal\RepeatedField $share_point_sources
     *           The SharePoint sources.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\Io::initOnce();
        parent::__construct($data);
    }

    /**
     * The SharePoint sources.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSharePointSources()
    {
        return $this->share_point_sources;
    }

    /**
     * The SharePoint sources.
     *
     * Generated from protobuf field <code>repeated .google.cloud.aiplatform.v1.SharePointSources.SharePointSource share_point_sources = 1;</code>
     * @param array<\Google\Cloud\AIPlatform\V1\SharePointSources\SharePointSource>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSharePointSources($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\AIPlatform\V1\SharePointSources\SharePointSource::class);
        $this->share_point_sources = $arr;

        return $this;
    }

}

