Interface QuestionAnsweringHelpfulnessInstanceOrBuilder (3.44.0)

public interface QuestionAnsweringHelpfulnessInstanceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContext()

public abstract String getContext()

Optional. Text provided as context to answer the question.

optional string context = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The context.

getContextBytes()

public abstract ByteString getContextBytes()

Optional. Text provided as context to answer the question.

optional string context = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for context.

getInstruction()

public abstract String getInstruction()

Required. The question asked and other instruction in the inference prompt.

optional string instruction = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The instruction.

getInstructionBytes()

public abstract ByteString getInstructionBytes()

Required. The question asked and other instruction in the inference prompt.

optional string instruction = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for instruction.

getPrediction()

public abstract String getPrediction()

Required. Output of the evaluated model.

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

Returns
Type Description
String

The prediction.

getPredictionBytes()

public abstract ByteString getPredictionBytes()

Required. Output of the evaluated model.

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

Returns
Type Description
ByteString

The bytes for prediction.

getReference()

public abstract String getReference()

Optional. Ground truth used to compare against the prediction.

optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The reference.

getReferenceBytes()

public abstract ByteString getReferenceBytes()

Optional. Ground truth used to compare against the prediction.

optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for reference.

hasContext()

public abstract boolean hasContext()

Optional. Text provided as context to answer the question.

optional string context = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the context field is set.

hasInstruction()

public abstract boolean hasInstruction()

Required. The question asked and other instruction in the inference prompt.

optional string instruction = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the instruction field is set.

hasPrediction()

public abstract boolean hasPrediction()

Required. Output of the evaluated model.

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

Returns
Type Description
boolean

Whether the prediction field is set.

hasReference()

public abstract boolean hasReference()

Optional. Ground truth used to compare against the prediction.

optional string reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the reference field is set.