📄 Source: GoogleCloudDialogflowCxV3SafetySettings.php
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Dialogflow;
class GoogleCloudDialogflowCxV3SafetySettings extends \Google\Collection
{
public const DEFAULT_BANNED_PHRASE_MATCH_STRATEGY_PHRASE_MATCH_STRATEGY_UNSPECIFIED = 'PHRASE_MATCH_STRATEGY_UNSPECIFIED';
public const DEFAULT_BANNED_PHRASE_MATCH_STRATEGY_PARTIAL_MATCH = 'PARTIAL_MATCH';
public const DEFAULT_BANNED_PHRASE_MATCH_STRATEGY_WORD_MATCH = 'WORD_MATCH';
protected $collection_key = 'bannedPhrases';
protected $bannedPhrasesType = GoogleCloudDialogflowCxV3SafetySettingsPhrase::class;
protected $bannedPhrasesDataType = 'array';
/**
* @var string
*/
public $defaultBannedPhraseMatchStrategy;
protected $defaultRaiSettingsType = GoogleCloudDialogflowCxV3SafetySettingsRaiSettings::class;
protected $defaultRaiSettingsDataType = '';
protected $promptSecuritySettingsType = GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings::class;
protected $promptSecuritySettingsDataType = '';
protected $raiSettingsType = GoogleCloudDialogflowCxV3SafetySettingsRaiSettings::class;
protected $raiSettingsDataType = '';
/**
* @param GoogleCloudDialogflowCxV3SafetySettingsPhrase[] $bannedPhrases
*/
public function setBannedPhrases($bannedPhrases)
{
$this->bannedPhrases = $bannedPhrases;
}
/**
* @return GoogleCloudDialogflowCxV3SafetySettingsPhrase[]
*/
public function getBannedPhrases()
{
return $this->bannedPhrases;
}
/**
* @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;
}
/**
* @param GoogleCloudDialogflowCxV3SafetySettingsRaiSettings $defaultRaiSettings
*/
public function setDefaultRaiSettings(GoogleCloudDialogflowCxV3SafetySettingsRaiSettings $defaultRaiSettings)
{
$this->defaultRaiSettings = $defaultRaiSettings;
}
/**
* @return GoogleCloudDialogflowCxV3SafetySettingsRaiSettings
*/
public function getDefaultRaiSettings()
{
return $this->defaultRaiSettings;
}
/**
* @param GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings $promptSecuritySettings
*/
public function setPromptSecuritySettings(GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings $promptSecuritySettings)
{
$this->promptSecuritySettings = $promptSecuritySettings;
}
/**
* @return GoogleCloudDialogflowCxV3SafetySettingsPromptSecuritySettings
*/
public function getPromptSecuritySettings()
{
return $this->promptSecuritySettings;
}
/**
* @param GoogleCloudDialogflowCxV3SafetySettingsRaiSettings $raiSettings
*/
public function setRaiSettings(GoogleCloudDialogflowCxV3SafetySettingsRaiSettings $raiSettings)
{
$this->raiSettings = $raiSettings;
}
/**
* @return GoogleCloudDialogflowCxV3SafetySettingsRaiSettings
*/
public function getRaiSettings()
{
return $this->raiSettings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudDialogflowCxV3SafetySettings::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowCxV3SafetySettings');
← Back