<?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 table and column
 * descriptions. Columns are sorted by default BigQuery table schema order.
 *
 * Generated from protobuf message <code>google.cloud.geminidataanalytics.v1beta.RetrieveBigQueryTableSuggestedDescriptionsRequest</code>
 */
class RetrieveBigQueryTableSuggestedDescriptionsRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Parent value for
     * RetrieveBigQueryTableSuggestedDescriptionsRequest. Pattern:
     * `projects/{project}/locations/{location}` For location, use "global" for
     * now. Regional location value will be supported in the future.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $parent = '';
    /**
     * Optional. A list of direct lookup parameters.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.DirectLookup direct_lookup = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $direct_lookup;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. Parent value for
     *           RetrieveBigQueryTableSuggestedDescriptionsRequest. Pattern:
     *           `projects/{project}/locations/{location}` For location, use "global" for
     *           now. Regional location value will be supported in the future.
     *     @type array<\Google\Cloud\GeminiDataAnalytics\V1beta\DirectLookup>|\Google\Protobuf\Internal\RepeatedField $direct_lookup
     *           Optional. A list of direct lookup parameters.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\ContextRetrievalService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Parent value for
     * RetrieveBigQueryTableSuggestedDescriptionsRequest. Pattern:
     * `projects/{project}/locations/{location}` For location, use "global" for
     * now. Regional location value will be supported in the future.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. Parent value for
     * RetrieveBigQueryTableSuggestedDescriptionsRequest. Pattern:
     * `projects/{project}/locations/{location}` For location, use "global" for
     * now. Regional location value will be supported in the future.
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Optional. A list of direct lookup parameters.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.DirectLookup direct_lookup = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDirectLookup()
    {
        return $this->direct_lookup;
    }

    /**
     * Optional. A list of direct lookup parameters.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.DirectLookup direct_lookup = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<\Google\Cloud\GeminiDataAnalytics\V1beta\DirectLookup>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDirectLookup($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GeminiDataAnalytics\V1beta\DirectLookup::class);
        $this->direct_lookup = $arr;

        return $this;
    }

}

