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

namespace Google\Cloud\DeveloperConnect\V1;

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

/**
 * Projects represents the projects to track with the InsightsConfig.
 *
 * Generated from protobuf message <code>google.cloud.developerconnect.v1.Projects</code>
 */
class Projects extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The project IDs.
     * Format: {project}
     *
     * Generated from protobuf field <code>repeated string project_ids = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $project_ids;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string[] $project_ids
     *           Optional. The project IDs.
     *           Format: {project}
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Developerconnect\V1\InsightsConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The project IDs.
     * Format: {project}
     *
     * Generated from protobuf field <code>repeated string project_ids = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return RepeatedField<string>
     */
    public function getProjectIds()
    {
        return $this->project_ids;
    }

    /**
     * Optional. The project IDs.
     * Format: {project}
     *
     * Generated from protobuf field <code>repeated string project_ids = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string[] $var
     * @return $this
     */
    public function setProjectIds($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->project_ids = $arr;

        return $this;
    }

}

