Represents a line of JSONL in the batch prediction output file.
The prediction result. value is used here instead of Any so that JsonFormat does not append an extra "@type" field when we convert the proto to JSON and so we can represent array of objects. Do not set error if this is set.
The error result. Do not set prediction if this is set.
inputUnion type
Some identifier from the input so that the prediction can be mapped back to the input instance. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
user's input instance. Struct is used here instead of Any so that JsonFormat does not append an extra "@type" field when we convert the proto to JSON.
keystring
Optional user-provided key from the input instance.
End of mutually exclusive fields.
| JSON representation |
|---|
{
"prediction": value,
"error": {
object ( |