Reference documentation and code samples for the Google Cloud Model Armor V1 Client class PiAndJailbreakFilterSettings.
Prompt injection and Jailbreak Filter settings.
Generated from protobuf message google.cloud.modelarmor.v1.PiAndJailbreakFilterSettings
Namespace
Google \ Cloud \ ModelArmor \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ filter_enforcement
int
Optional. Tells whether Prompt injection and Jailbreak filter is enabled or disabled.
↳ confidence_level
int
Optional. Confidence level for this filter. Confidence level is used to determine the threshold for the filter. If detection confidence is equal to or greater than the specified level, a positive match is reported. Confidence level will only be used if the filter is enabled.
getFilterEnforcement
Optional. Tells whether Prompt injection and Jailbreak filter is enabled or
disabled.
Returns
Type
Description
int
setFilterEnforcement
Optional. Tells whether Prompt injection and Jailbreak filter is enabled or
disabled.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getConfidenceLevel
Optional. Confidence level for this filter.
Confidence level is used to determine the threshold for the filter. If
detection confidence is equal to or greater than the specified level, a
positive match is reported. Confidence level will only be used if the
filter is enabled.
Returns
Type
Description
int
setConfidenceLevel
Optional. Confidence level for this filter.
Confidence level is used to determine the threshold for the filter. If
detection confidence is equal to or greater than the specified level, a
positive match is reported. Confidence level will only be used if the
filter is enabled.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Model Armor V1 Client - Class PiAndJailbreakFilterSettings (0.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.0 (latest)](/php/docs/reference/cloud-modelarmor/latest/V1.PiAndJailbreakFilterSettings)\n- [0.3.1](/php/docs/reference/cloud-modelarmor/0.3.1/V1.PiAndJailbreakFilterSettings)\n- [0.2.0](/php/docs/reference/cloud-modelarmor/0.2.0/V1.PiAndJailbreakFilterSettings)\n- [0.1.0](/php/docs/reference/cloud-modelarmor/0.1.0/V1.PiAndJailbreakFilterSettings) \nReference documentation and code samples for the Google Cloud Model Armor V1 Client class PiAndJailbreakFilterSettings.\n\nPrompt injection and Jailbreak Filter settings.\n\nGenerated from protobuf message `google.cloud.modelarmor.v1.PiAndJailbreakFilterSettings`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ModelArmor \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getFilterEnforcement\n\nOptional. Tells whether Prompt injection and Jailbreak filter is enabled or\ndisabled.\n\n### setFilterEnforcement\n\nOptional. Tells whether Prompt injection and Jailbreak filter is enabled or\ndisabled.\n\n### getConfidenceLevel\n\nOptional. Confidence level for this filter.\n\nConfidence level is used to determine the threshold for the filter. If\ndetection confidence is equal to or greater than the specified level, a\npositive match is reported. Confidence level will only be used if the\nfilter is enabled.\n\n### setConfidenceLevel\n\nOptional. Confidence level for this filter.\n\nConfidence level is used to determine the threshold for the filter. If\ndetection confidence is equal to or greater than the specified level, a\npositive match is reported. Confidence level will only be used if the\nfilter is enabled."]]