Interface AssistAnswer.CustomerPolicyEnforcementResultOrBuilder (0.99.0)

public static interface AssistAnswer.CustomerPolicyEnforcementResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

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.v1.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.v1.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.v1.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.v1.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.v1.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.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.v1.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.v1.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1;

Returns
Type Description
int

The enum numeric value on the wire for verdict.

getViolationSource()

public abstract AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource getViolationSource()

Output only. The source of the violation.

.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource violation_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource

The violationSource.

getViolationSourceValue()

public abstract int getViolationSourceValue()

Output only. The source of the violation.

.google.cloud.discoveryengine.v1.AssistAnswer.CustomerPolicyEnforcementResult.ViolationSource violation_source = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for violationSource.