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

namespace Google\Cloud\GeminiDataAnalytics\V1beta;

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

/**
 * Response for retrieving BigQuery table contextual data via direct lookup.
 *
 * Generated from protobuf message <code>google.cloud.geminidataanalytics.v1beta.RetrieveBigQueryTableContextsResponse</code>
 */
class RetrieveBigQueryTableContextsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of retrieved candidates with their bundled metadata.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.TableCandidate table_candidates = 1;</code>
     */
    private $table_candidates;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\GeminiDataAnalytics\V1beta\TableCandidate>|\Google\Protobuf\Internal\RepeatedField $table_candidates
     *           List of retrieved candidates with their bundled metadata.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\ContextRetrievalService::initOnce();
        parent::__construct($data);
    }

    /**
     * List of retrieved candidates with their bundled metadata.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.TableCandidate table_candidates = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTableCandidates()
    {
        return $this->table_candidates;
    }

    /**
     * List of retrieved candidates with their bundled metadata.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.TableCandidate table_candidates = 1;</code>
     * @param array<\Google\Cloud\GeminiDataAnalytics\V1beta\TableCandidate>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTableCandidates($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\TableCandidate::class);
        $this->table_candidates = $arr;

        return $this;
    }

}

