bannedPhrases = $bannedPhrases; } /** * @return GoogleCloudDialogflowCxV3SafetySettingsPhrase[] */ public function getBannedPhrases() { return $this->bannedPhrases; } /** * Optional. Default phrase match strategy for banned phrases. * * Accepted values: PHRASE_MATCH_STRATEGY_UNSPECIFIED, PARTIAL_MATCH, * WORD_MATCH * * @param self::DEFAULT_BANNED_PHRASE_MATCH_STRATEGY_* $defaultBannedPhraseMatchStrategy */ public function setDefaultBannedPhraseMatchStrategy($defaultBannedPhraseMatchStrategy) { $this->defaultBannedPhraseMatchStrategy = $defaultBannedPhraseMatchStrategy; } /** * @return self::DEFAULT_BANNED_PHRASE_MATCH_STRATEGY_* */ public function getDefaultBannedPhraseMatchStrategy() { return $this->defaultBannedPhraseMatchStrategy; } /** * Optional. Settings for prompt security checks. * * @param GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings $promptSecuritySettings */ public function setPromptSecuritySettings(GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings $promptSecuritySettings) { $this->promptSecuritySettings = $promptSecuritySettings; } /** * @return GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings */ public function getPromptSecuritySettings() { return $this->promptSecuritySettings; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudDialogflowCxV3SafetySettings::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowCxV3SafetySettings');