public static interface AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResultOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getError()
public abstract Status getError()The error returned by Model Armor if the policy enforcement failed for some reason.
.google.rpc.Status error = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.Status |
The error. |
getErrorOrBuilder()
public abstract StatusOrBuilder getErrorOrBuilder()The error returned by Model Armor if the policy enforcement failed for some reason.
.google.rpc.Status error = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.rpc.StatusOrBuilder |
|
getModelArmorViolation()
public abstract String getModelArmorViolation()The Model Armor violation that was found.
string model_armor_violation = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The modelArmorViolation. |
getModelArmorViolationBytes()
public abstract ByteString getModelArmorViolationBytes()The Model Armor violation that was found.
string model_armor_violation = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for modelArmorViolation. |
getResultCase()
public abstract AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.ResultCase getResultCase()| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.ResultCase |
|
hasError()
public abstract boolean hasError()The error returned by Model Armor if the policy enforcement failed for some reason.
.google.rpc.Status error = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the error field is set. |
hasModelArmorViolation()
public abstract boolean hasModelArmorViolation()The Model Armor violation that was found.
string model_armor_violation = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the modelArmorViolation field is set. |