public static interface AssistAnswer.CustomerPolicyEnforcementResultOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getPolicyResults(int index)
public abstract AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult getPolicyResults(int index)Customer policy enforcement results. Populated only if the assist call was skipped due to a policy violation. It contains results from those filters that blocked the processing of the query.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult |
|
getPolicyResultsCount()
public abstract int getPolicyResultsCount()Customer policy enforcement results. Populated only if the assist call was skipped due to a policy violation. It contains results from those filters that blocked the processing of the query.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getPolicyResultsList()
public abstract List<AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult> getPolicyResultsList()Customer policy enforcement results. Populated only if the assist call was skipped due to a policy violation. It contains results from those filters that blocked the processing of the query.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3;
| Returns | |
|---|---|
| Type | Description |
List<PolicyEnforcementResult> |
|
getPolicyResultsOrBuilder(int index)
public abstract AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResultOrBuilder getPolicyResultsOrBuilder(int index)Customer policy enforcement results. Populated only if the assist call was skipped due to a policy violation. It contains results from those filters that blocked the processing of the query.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResultOrBuilder |
|
getPolicyResultsOrBuilderList()
public abstract List<? extends AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResultOrBuilder> getPolicyResultsOrBuilderList()Customer policy enforcement results. Populated only if the assist call was skipped due to a policy violation. It contains results from those filters that blocked the processing of the query.
repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResultOrBuilder> |
|
getVerdict()
public abstract AssistAnswer.CustomerPolicyEnforcementResult.Verdict getVerdict()Final verdict of the customer policy enforcement. If only one policy blocked the processing, the verdict is BLOCK.
.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1;
| Returns | |
|---|---|
| Type | Description |
AssistAnswer.CustomerPolicyEnforcementResult.Verdict |
The verdict. |
getVerdictValue()
public abstract int getVerdictValue()Final verdict of the customer policy enforcement. If only one policy blocked the processing, the verdict is BLOCK.
.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for verdict. |