NAME
Google::Cloud::Dialogflow::Cx::V3beta1::SafetySettings - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3beta1/safety_settings.proto
SYNOPSIS
use Google::Cloud::Dialogflow::Cx::V3beta1::SafetySettings;
my $msg = Google::Cloud::Dialogflow::Cx::V3beta1::SafetySettings::SafetySettings->new({
default_banned_phrase_match_strategy => $default_banned_phrase_match_strategy,
banned_phrases => $banned_phrases,
rai_settings => $rai_settings,
default_rai_settings => $default_rai_settings,
});
# Read or update a field
my $val = $msg->default_banned_phrase_match_strategy();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::Cx::V3beta1::SafetySettings::SafetySettings->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3beta1/safety_settings.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Dialogflow::Cx::V3beta1::SafetySettings::SafetySettings
Settings for Generative Safety.
Inherits from Protobuf::Message.
Accessors
$msg->default_banned_phrase_match_strategy()/$msg->default_banned_phrase_match_strategy($value)Type:
Enum(Google::Cloud::Dialogflow::Cx::V3beta1::SafetySettings::PhraseMatchStrategy)Optional. Default phrase match strategy for banned phrases.
$msg->banned_phrases()/$msg->banned_phrases($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::SafetySettings::SafetySettings::Phrase)Banned phrases for generated text.
$msg->rai_settings()/$msg->rai_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::SafetySettings::SafetySettings::RaiSettings)Optional. Settings for Responsible AI checks.
$msg->default_rai_settings()/$msg->default_rai_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::SafetySettings::SafetySettings::RaiSettings)Optional. Immutable. Default RAI settings to be annotated on the agent, so that users will be able to restore their RAI configurations to the default settings. Read-only field for the API proto only.
$msg->prompt_security_settings()/$msg->prompt_security_settings($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::SafetySettings::SafetySettings::PromptSecuritySettings)Optional. Settings for prompt security checks.
Enum: SafetySettings::PhraseMatchStrategy
PHRASE_MATCH_STRATEGY_UNSPECIFIED=>0PARTIAL_MATCH=>1WORD_MATCH=>2
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3beta1::SafetySettings::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.