Cloud AI Platform v1beta1 API - Class PredictionResult (1.0.0-beta12)

public sealed class PredictionResult : IMessage<PredictionResult>, IEquatable<PredictionResult>, IDeepCloneable<PredictionResult>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1beta1 API class PredictionResult.

Represents a line of JSONL in the batch prediction output file.

Inheritance

object > PredictionResult

Namespace

Google.Cloud.AIPlatform.V1Beta1.Schema

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Constructors

PredictionResult()

public PredictionResult()

PredictionResult(PredictionResult)

public PredictionResult(PredictionResult other)
Parameter
Name Description
other PredictionResult

Properties

Error

public PredictionResult.Types.Error Error { get; set; }

The error result. Do not set prediction if this is set.

Property Value
Type Description
PredictionResultTypesError

HasKey

public bool HasKey { get; }

Gets whether the "key" field is set

Property Value
Type Description
bool

InputCase

public PredictionResult.InputOneofCase InputCase { get; }
Property Value
Type Description
PredictionResultInputOneofCase

Instance

public Struct Instance { get; set; }

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.

Property Value
Type Description
Struct

Key

public string Key { get; set; }

Optional user-provided key from the input instance.

Property Value
Type Description
string

Prediction

public Value Prediction { get; set; }

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.

Property Value
Type Description
Value