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

namespace Google\Cloud\GeminiDataAnalytics\V1beta;

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

/**
 * A query for performing an analysis.
 *
 * Generated from protobuf message <code>google.cloud.geminidataanalytics.v1beta.AnalysisQuery</code>
 */
class AnalysisQuery extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. An analysis question to help answer the user's original question.
     *
     * Generated from protobuf field <code>string question = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $question = '';
    /**
     * Optional. The names of previously retrieved data results to analyze.
     *
     * Generated from protobuf field <code>repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $data_result_names;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $question
     *           Optional. An analysis question to help answer the user's original question.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $data_result_names
     *           Optional. The names of previously retrieved data results to analyze.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Geminidataanalytics\V1Beta\DataChatService::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. An analysis question to help answer the user's original question.
     *
     * Generated from protobuf field <code>string question = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getQuestion()
    {
        return $this->question;
    }

    /**
     * Optional. An analysis question to help answer the user's original question.
     *
     * Generated from protobuf field <code>string question = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setQuestion($var)
    {
        GPBUtil::checkString($var, True);
        $this->question = $var;

        return $this;
    }

    /**
     * Optional. The names of previously retrieved data results to analyze.
     *
     * Generated from protobuf field <code>repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getDataResultNames()
    {
        return $this->data_result_names;
    }

    /**
     * Optional. The names of previously retrieved data results to analyze.
     *
     * Generated from protobuf field <code>repeated string data_result_names = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setDataResultNames($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->data_result_names = $arr;

        return $this;
    }

}

