Interface GroundednessInstanceOrBuilder (3.42.0)

public interface GroundednessInstanceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContext()

public abstract String getContext()

Required. Background information provided in context used to compare against the prediction.

optional string context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The context.

getContextBytes()

public abstract ByteString getContextBytes()

Required. Background information provided in context used to compare against the prediction.

optional string context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for context.

getPrediction()

public abstract String getPrediction()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The prediction.

getPredictionBytes()

public abstract ByteString getPredictionBytes()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for prediction.

hasContext()

public abstract boolean hasContext()

Required. Background information provided in context used to compare against the prediction.

optional string context = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the context field is set.

hasPrediction()

public abstract boolean hasPrediction()

Required. Output of the evaluated model.

optional string prediction = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the prediction field is set.