Interface QuestionAnsweringCorrectnessResultOrBuilder (3.41.0)

public interface QuestionAnsweringCorrectnessResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConfidence()

public abstract float getConfidence()

Output only. Confidence for question answering correctness score.

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

Returns
TypeDescription
float

The confidence.

getExplanation()

public abstract String getExplanation()

Output only. Explanation for question answering correctness score.

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

Returns
TypeDescription
String

The explanation.

getExplanationBytes()

public abstract ByteString getExplanationBytes()

Output only. Explanation for question answering correctness score.

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

Returns
TypeDescription
ByteString

The bytes for explanation.

getScore()

public abstract float getScore()

Output only. Question Answering Correctness score.

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

Returns
TypeDescription
float

The score.

hasConfidence()

public abstract boolean hasConfidence()

Output only. Confidence for question answering correctness score.

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

Returns
TypeDescription
boolean

Whether the confidence field is set.

hasScore()

public abstract boolean hasScore()

Output only. Question Answering Correctness score.

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

Returns
TypeDescription
boolean

Whether the score field is set.