Interface CoherenceResultOrBuilder (3.45.0)

public interface CoherenceResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConfidence()

public abstract float getConfidence()

Output only. Confidence for coherence score.

optional float confidence = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
float

The confidence.

getExplanation()

public abstract String getExplanation()

Output only. Explanation for coherence score.

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

Returns
Type Description
String

The explanation.

getExplanationBytes()

public abstract ByteString getExplanationBytes()

Output only. Explanation for coherence score.

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

Returns
Type Description
ByteString

The bytes for explanation.

getScore()

public abstract float getScore()

Output only. Coherence score.

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

Returns
Type Description
float

The score.

hasConfidence()

public abstract boolean hasConfidence()

Output only. Confidence for coherence score.

optional float confidence = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the confidence field is set.

hasScore()

public abstract boolean hasScore()

Output only. Coherence score.

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

Returns
Type Description
boolean

Whether the score field is set.