<?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;

/**
 * Request for retrieving BigQuery table schema with suggested NL-SQL examples.
 *
 * Generated from protobuf message <code>google.cloud.geminidataanalytics.v1beta.RetrieveBigQueryTableSuggestedExamplesResponse</code>
 */
class RetrieveBigQueryTableSuggestedExamplesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of suggested examples.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.RetrieveBigQueryTableSuggestedExamplesResponse.ExampleSuggestion example_suggestions = 2;</code>
     */
    private $example_suggestions;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\GeminiDataAnalytics\V1beta\RetrieveBigQueryTableSuggestedExamplesResponse\ExampleSuggestion>|\Google\Protobuf\Internal\RepeatedField $example_suggestions
     *           List of suggested examples.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\ContextRetrievalService::initOnce();
        parent::__construct($data);
    }

    /**
     * List of suggested examples.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.RetrieveBigQueryTableSuggestedExamplesResponse.ExampleSuggestion example_suggestions = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getExampleSuggestions()
    {
        return $this->example_suggestions;
    }

    /**
     * List of suggested examples.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.RetrieveBigQueryTableSuggestedExamplesResponse.ExampleSuggestion example_suggestions = 2;</code>
     * @param array<\Google\Cloud\GeminiDataAnalytics\V1beta\RetrieveBigQueryTableSuggestedExamplesResponse\ExampleSuggestion>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setExampleSuggestions($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\RetrieveBigQueryTableSuggestedExamplesResponse\ExampleSuggestion::class);
        $this->example_suggestions = $arr;

        return $this;
    }

}

