answerGenerationSpec = $answerGenerationSpec; } /** * @return GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpec */ public function getAnswerGenerationSpec() { return $this->answerGenerationSpec; } /** * @param bool */ public function setAsynchronousMode($asynchronousMode) { $this->asynchronousMode = $asynchronousMode; } /** * @return bool */ public function getAsynchronousMode() { return $this->asynchronousMode; } /** * @param GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec */ public function setGroundingSpec(GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec $groundingSpec) { $this->groundingSpec = $groundingSpec; } /** * @return GoogleCloudDiscoveryengineV1AnswerQueryRequestGroundingSpec */ public function getGroundingSpec() { return $this->groundingSpec; } /** * @param GoogleCloudDiscoveryengineV1Query */ public function setQuery(GoogleCloudDiscoveryengineV1Query $query) { $this->query = $query; } /** * @return GoogleCloudDiscoveryengineV1Query */ public function getQuery() { return $this->query; } /** * @param GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpec */ public function setQueryUnderstandingSpec(GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpec $queryUnderstandingSpec) { $this->queryUnderstandingSpec = $queryUnderstandingSpec; } /** * @return GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpec */ public function getQueryUnderstandingSpec() { return $this->queryUnderstandingSpec; } /** * @param GoogleCloudDiscoveryengineV1AnswerQueryRequestRelatedQuestionsSpec */ public function setRelatedQuestionsSpec(GoogleCloudDiscoveryengineV1AnswerQueryRequestRelatedQuestionsSpec $relatedQuestionsSpec) { $this->relatedQuestionsSpec = $relatedQuestionsSpec; } /** * @return GoogleCloudDiscoveryengineV1AnswerQueryRequestRelatedQuestionsSpec */ public function getRelatedQuestionsSpec() { return $this->relatedQuestionsSpec; } /** * @param GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec */ public function setSafetySpec(GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec $safetySpec) { $this->safetySpec = $safetySpec; } /** * @return GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec */ public function getSafetySpec() { return $this->safetySpec; } /** * @param GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpec */ public function setSearchSpec(GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpec $searchSpec) { $this->searchSpec = $searchSpec; } /** * @return GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpec */ public function getSearchSpec() { return $this->searchSpec; } /** * @param string */ public function setSession($session) { $this->session = $session; } /** * @return string */ public function getSession() { return $this->session; } /** * @param string[] */ public function setUserLabels($userLabels) { $this->userLabels = $userLabels; } /** * @return string[] */ public function getUserLabels() { return $this->userLabels; } /** * @param string */ public function setUserPseudoId($userPseudoId) { $this->userPseudoId = $userPseudoId; } /** * @return string */ public function getUserPseudoId() { return $this->userPseudoId; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudDiscoveryengineV1AnswerQueryRequest::class, 'Google_Service_DiscoveryEngine_GoogleCloudDiscoveryengineV1AnswerQueryRequest');