<?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 references to BigQuery tables and property graphs.
 * At least one of `table_references` or `property_graph_references` must be
 * populated.
 *
 * Generated from protobuf message <code>google.cloud.geminidataanalytics.v1beta.BigQueryTableReferences</code>
 */
class BigQueryTableReferences extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. References to BigQuery tables.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $table_references;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference>|\Google\Protobuf\Internal\RepeatedField $table_references
     *           Optional. References to BigQuery tables.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\Datasource::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. References to BigQuery tables.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTableReferences()
    {
        return $this->table_references;
    }

    /**
     * Optional. References to BigQuery tables.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.BigQueryTableReference table_references = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<\Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTableReferences($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\BigQueryTableReference::class);
        $this->table_references = $arr;

        return $this;
    }

}

