blocklistKeywords = $blocklistKeywords; } /** * @return string[] */ public function getBlocklistKeywords() { return $this->blocklistKeywords; } /** * Optional. A list of intent types that will be disabled for this customer. * The intent types must match one of the predefined intent types defined at h * ttps://cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alp * ha#querytype * * @param string[] $disabledIntentTypes */ public function setDisabledIntentTypes($disabledIntentTypes) { $this->disabledIntentTypes = $disabledIntentTypes; } /** * @return string[] */ public function getDisabledIntentTypes() { return $this->disabledIntentTypes; } /** * Optional. A list of examples for intent classification. * * @param GoogleCloudRetailV2IntentClassificationConfigExample[] $example */ public function setExample($example) { $this->example = $example; } /** * @return GoogleCloudRetailV2IntentClassificationConfigExample[] */ public function getExample() { return $this->example; } /** * Optional. Inline source for intent classifications. * * @param GoogleCloudRetailV2IntentClassificationConfigInlineSource $inlineSource */ public function setInlineSource(GoogleCloudRetailV2IntentClassificationConfigInlineSource $inlineSource) { $this->inlineSource = $inlineSource; } /** * @return GoogleCloudRetailV2IntentClassificationConfigInlineSource */ public function getInlineSource() { return $this->inlineSource; } /** * Optional. Customers can use the preamble to specify any requirements for * blocklisting intent classification. This preamble will be added to the * blocklisting intent classification model prompt. * * @param string $modelPreamble */ public function setModelPreamble($modelPreamble) { $this->modelPreamble = $modelPreamble; } /** * @return string */ public function getModelPreamble() { return $this->modelPreamble; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudRetailV2IntentClassificationConfig::class, 'Google_Service_CloudRetail_GoogleCloudRetailV2IntentClassificationConfig');