Interface MetricResultOrBuilder (3.86.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.

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.