Reference documentation and code samples for the Google Cloud Ces V1 Client class ContentFilter.
Guardrail that bans certain content from being used in the conversation.
Generated from protobuf message google.cloud.ces.v1.Guardrail.ContentFilter
Namespace
Google \ Cloud \ Ces \ V1 \ GuardrailMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ banned_contents
array
Optional. List of banned phrases. Applies to both user inputs and agent responses.
↳ banned_contents_in_user_input
array
Optional. List of banned phrases. Applies only to user inputs.
↳ banned_contents_in_agent_response
array
Optional. List of banned phrases. Applies only to agent responses.
↳ match_type
int
Required. Match type for the content filter.
↳ disregard_diacritics
bool
Optional. If true, diacritics are ignored during matching.
getBannedContents
Optional. List of banned phrases. Applies to both user inputs and agent responses.
setBannedContents
Optional. List of banned phrases. Applies to both user inputs and agent responses.
var
string[]
$this
getBannedContentsInUserInput
Optional. List of banned phrases. Applies only to user inputs.
setBannedContentsInUserInput
Optional. List of banned phrases. Applies only to user inputs.
var
string[]
$this
getBannedContentsInAgentResponse
Optional. List of banned phrases. Applies only to agent responses.
setBannedContentsInAgentResponse
Optional. List of banned phrases. Applies only to agent responses.
var
string[]
$this
getMatchType
Required. Match type for the content filter.
setMatchType
Required. Match type for the content filter.
$this
getDisregardDiacritics
Optional. If true, diacritics are ignored during matching.
bool
setDisregardDiacritics
Optional. If true, diacritics are ignored during matching.
var
bool
$this

