Interface MetricResultOrBuilder (3.100.0)

public interface MetricResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getError()

public abstract Status getError()

Output only. The error status for the metric result.

optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The error.

getErrorOrBuilder()

public abstract StatusOrBuilder getErrorOrBuilder()

Output only. The error status for the metric result.

optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getExplanation()

public abstract String getExplanation()

Output only. The explanation for the metric result.

optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The explanation.

getExplanationBytes()

public abstract ByteString getExplanationBytes()

Output only. The explanation for the metric result.

optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for explanation.

getRubricVerdicts(int index)

public abstract RubricVerdict getRubricVerdicts(int index)

Output only. For rubric-based metrics, the verdicts for each rubric.

repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
RubricVerdict

getRubricVerdictsCount()

public abstract int getRubricVerdictsCount()

Output only. For rubric-based metrics, the verdicts for each rubric.

repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getRubricVerdictsList()

public abstract List<RubricVerdict> getRubricVerdictsList()

Output only. For rubric-based metrics, the verdicts for each rubric.

repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<RubricVerdict>

getRubricVerdictsOrBuilder(int index)

public abstract RubricVerdictOrBuilder getRubricVerdictsOrBuilder(int index)

Output only. For rubric-based metrics, the verdicts for each rubric.

repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
RubricVerdictOrBuilder

getRubricVerdictsOrBuilderList()

public abstract List<? extends RubricVerdictOrBuilder> getRubricVerdictsOrBuilderList()

Output only. For rubric-based metrics, the verdicts for each rubric.

repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder>

getScore()

public abstract float getScore()

Output only. The score for the metric. Please refer to each metric's documentation for the meaning of the score.

optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
float

The score.

hasError()

public abstract boolean hasError()

Output only. The error status for the metric result.

optional .google.rpc.Status error = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the error field is set.

hasExplanation()

public abstract boolean hasExplanation()

Output only. The explanation for the metric result.

optional string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the explanation field is set.

hasScore()

public abstract boolean hasScore()

Output only. The score for the metric. Please refer to each metric's documentation for the meaning of the score.

optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the score field is set.