conversationId = $conversationId; } /** * @return string */ public function getConversationId() { return $this->conversationId; } /** * This field specifies all related information that is needed on client side * for UI rendering of conversational filtering search. * * @param GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult $conversationalFilteringResult */ public function setConversationalFilteringResult(GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult $conversationalFilteringResult) { $this->conversationalFilteringResult = $conversationalFilteringResult; } /** * @return GoogleCloudRetailV2ConversationalSearchResponseConversationalFilteringResult */ public function getConversationalFilteringResult() { return $this->conversationalFilteringResult; } /** * The conversational answer-based text response generated by the Server. * * @param string $conversationalTextResponse */ public function setConversationalTextResponse($conversationalTextResponse) { $this->conversationalTextResponse = $conversationalTextResponse; } /** * @return string */ public function getConversationalTextResponse() { return $this->conversationalTextResponse; } /** * The conversational followup question generated for Intent refinement. * * @param GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion $followupQuestion */ public function setFollowupQuestion(GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion $followupQuestion) { $this->followupQuestion = $followupQuestion; } /** * @return GoogleCloudRetailV2ConversationalSearchResponseFollowupQuestion */ public function getFollowupQuestion() { return $this->followupQuestion; } /** * The proposed refined search queries. They can be used to fetch the relevant * search results. When using CONVERSATIONAL_FILTER_ONLY mode, the * refined_query from search response will be populated here. * * @param GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch[] $refinedSearch */ public function setRefinedSearch($refinedSearch) { $this->refinedSearch = $refinedSearch; } /** * @return GoogleCloudRetailV2ConversationalSearchResponseRefinedSearch[] */ public function getRefinedSearch() { return $this->refinedSearch; } /** * Output only. The state of the response generation. * * Accepted values: STATE_UNSPECIFIED, STREAMING, SUCCEEDED * * @param self::STATE_* $state */ public function setState($state) { $this->state = $state; } /** * @return self::STATE_* */ public function getState() { return $this->state; } /** * The types Retail classifies the search query as. Supported values are: - * "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - * "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - * "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - * "DISABLED" * * @param string[] $userQueryTypes */ public function setUserQueryTypes($userQueryTypes) { $this->userQueryTypes = $userQueryTypes; } /** * @return string[] */ public function getUserQueryTypes() { return $this->userQueryTypes; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudRetailV2ConversationalSearchResponse::class, 'Google_Service_CloudRetail_GoogleCloudRetailV2ConversationalSearchResponse');