<?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 contextual data via direct lookup.
 *
 * Generated from protobuf message <code>google.cloud.geminidataanalytics.v1beta.RetrieveBigQueryTableContextRequest</code>
 */
class RetrieveBigQueryTableContextRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required.
     *
     * Generated from protobuf field <code>string project = 5 [deprecated = true, (.google.api.field_behavior) = REQUIRED];</code>
     * @deprecated
     */
    protected $project = '';
    /**
     * Required. Parent value for RetrieveBigQueryTableContextRequest.
     * 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 = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $parent = '';
    /**
     * Optional. User query in natural language.
     *
     * Generated from protobuf field <code>string query = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $query = '';
    /**
     * Optional. A list of direct lookup parameters.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.DirectLookup direct_lookup = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $direct_lookup;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $project
     *           Required.
     *     @type string $parent
     *           Required. Parent value for RetrieveBigQueryTableContextRequest.
     *           Pattern: `projects/{project}/locations/{location}`
     *           For location, use "global" for now. Regional location value will be
     *           supported in the future.
     *     @type string $query
     *           Optional. User query in natural language.
     *     @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.
     *
     * Generated from protobuf field <code>string project = 5 [deprecated = true, (.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     * @deprecated
     */
    public function getProject()
    {
        if ($this->project !== '') {
            @trigger_error('project is deprecated.', E_USER_DEPRECATED);
        }
        return $this->project;
    }

    /**
     * Required.
     *
     * Generated from protobuf field <code>string project = 5 [deprecated = true, (.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     * @deprecated
     */
    public function setProject($var)
    {
        @trigger_error('project is deprecated.', E_USER_DEPRECATED);
        GPBUtil::checkString($var, True);
        $this->project = $var;

        return $this;
    }

    /**
     * Required. Parent value for RetrieveBigQueryTableContextRequest.
     * 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 = 6 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. Parent value for RetrieveBigQueryTableContextRequest.
     * 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 = 6 [(.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. User query in natural language.
     *
     * Generated from protobuf field <code>string query = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getQuery()
    {
        return $this->query;
    }

    /**
     * Optional. User query in natural language.
     *
     * Generated from protobuf field <code>string query = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setQuery($var)
    {
        GPBUtil::checkString($var, True);
        $this->query = $var;

        return $this;
    }

    /**
     * Optional. A list of direct lookup parameters.
     *
     * Generated from protobuf field <code>repeated .google.cloud.geminidataanalytics.v1beta.DirectLookup direct_lookup = 3 [(.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 = 3 [(.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;
    }

}

