Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::AssistAnswer::CustomerPolicyEnforcementResult::PolicyEnforcementResult.
Customer policy enforcement result for a single policy type.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#banned_phrase_enforcement_result
def banned_phrase_enforcement_result() -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult-
(::Google::Cloud::DiscoveryEngine::V1beta::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult) — The policy enforcement result for the banned phrase policy.
Note: The following fields are mutually exclusive:
banned_phrase_enforcement_result,model_armor_enforcement_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
#banned_phrase_enforcement_result=
def banned_phrase_enforcement_result=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult-
value (::Google::Cloud::DiscoveryEngine::V1beta::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult) — The policy enforcement result for the banned phrase policy.
Note: The following fields are mutually exclusive:
banned_phrase_enforcement_result,model_armor_enforcement_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::DiscoveryEngine::V1beta::AssistAnswer::CustomerPolicyEnforcementResult::BannedPhraseEnforcementResult) — The policy enforcement result for the banned phrase policy.
Note: The following fields are mutually exclusive:
banned_phrase_enforcement_result,model_armor_enforcement_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
#model_armor_enforcement_result
def model_armor_enforcement_result() -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult-
(::Google::Cloud::DiscoveryEngine::V1beta::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult) — The policy enforcement result for the Model Armor policy.
Note: The following fields are mutually exclusive:
model_armor_enforcement_result,banned_phrase_enforcement_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
#model_armor_enforcement_result=
def model_armor_enforcement_result=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult-
value (::Google::Cloud::DiscoveryEngine::V1beta::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult) — The policy enforcement result for the Model Armor policy.
Note: The following fields are mutually exclusive:
model_armor_enforcement_result,banned_phrase_enforcement_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::DiscoveryEngine::V1beta::AssistAnswer::CustomerPolicyEnforcementResult::ModelArmorEnforcementResult) — The policy enforcement result for the Model Armor policy.
Note: The following fields are mutually exclusive:
model_armor_enforcement_result,banned_phrase_enforcement_result. If a field in that set is populated, all other fields in the set will automatically be cleared.