<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/geminidataanalytics/v1beta/datasource.proto

namespace Google\Cloud\GeminiDataAnalytics\V1beta;

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

/**
 * Message representing a reference to a single Looker Studio datasource.
 *
 * Generated from protobuf message <code>google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference</code>
 */
class StudioDatasourceReference extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The id of the datasource.
     *
     * Generated from protobuf field <code>string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $datasource_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $datasource_id
     *           Required. The id of the datasource.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The id of the datasource.
     *
     * Generated from protobuf field <code>string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getDatasourceId()
    {
        return $this->datasource_id;
    }

    /**
     * Required. The id of the datasource.
     *
     * Generated from protobuf field <code>string datasource_id = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setDatasourceId($var)
    {
        GPBUtil::checkString($var, True);
        $this->datasource_id = $var;

        return $this;
    }

}

