Class EvaluatedAnnotation (3.42.0)

public final class EvaluatedAnnotation extends GeneratedMessageV3 implements EvaluatedAnnotationOrBuilder

True positive, false positive, or false negative.

EvaluatedAnnotation is only available under ModelEvaluationSlice with slice of annotationSpec dimension.

Protobuf type google.cloud.aiplatform.v1.EvaluatedAnnotation

Static Fields

DATA_ITEM_PAYLOAD_FIELD_NUMBER

public static final int DATA_ITEM_PAYLOAD_FIELD_NUMBER
Field Value
Type Description
int

ERROR_ANALYSIS_ANNOTATIONS_FIELD_NUMBER

public static final int ERROR_ANALYSIS_ANNOTATIONS_FIELD_NUMBER
Field Value
Type Description
int

EVALUATED_DATA_ITEM_VIEW_ID_FIELD_NUMBER

public static final int EVALUATED_DATA_ITEM_VIEW_ID_FIELD_NUMBER
Field Value
Type Description
int

EXPLANATIONS_FIELD_NUMBER

public static final int EXPLANATIONS_FIELD_NUMBER
Field Value
Type Description
int

GROUND_TRUTHS_FIELD_NUMBER

public static final int GROUND_TRUTHS_FIELD_NUMBER
Field Value
Type Description
int

PREDICTIONS_FIELD_NUMBER

public static final int PREDICTIONS_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EvaluatedAnnotation getDefaultInstance()
Returns
Type Description
EvaluatedAnnotation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static EvaluatedAnnotation.Builder newBuilder()
Returns
Type Description
EvaluatedAnnotation.Builder

newBuilder(EvaluatedAnnotation prototype)

public static EvaluatedAnnotation.Builder newBuilder(EvaluatedAnnotation prototype)
Parameter
Name Description
prototype EvaluatedAnnotation
Returns
Type Description
EvaluatedAnnotation.Builder

parseDelimitedFrom(InputStream input)

public static EvaluatedAnnotation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EvaluatedAnnotation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EvaluatedAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluatedAnnotation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EvaluatedAnnotation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EvaluatedAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EvaluatedAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluatedAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EvaluatedAnnotation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EvaluatedAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EvaluatedAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluatedAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EvaluatedAnnotation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EvaluatedAnnotation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EvaluatedAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluatedAnnotation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EvaluatedAnnotation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EvaluatedAnnotation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EvaluatedAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluatedAnnotation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EvaluatedAnnotation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EvaluatedAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EvaluatedAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluatedAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EvaluatedAnnotation> parser()
Returns
Type Description
Parser<EvaluatedAnnotation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDataItemPayload()

public Value getDataItemPayload()

Output only. The data item payload that the Model predicted this EvaluatedAnnotation on.

.google.protobuf.Value data_item_payload = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Value

The dataItemPayload.

getDataItemPayloadOrBuilder()

public ValueOrBuilder getDataItemPayloadOrBuilder()

Output only. The data item payload that the Model predicted this EvaluatedAnnotation on.

.google.protobuf.Value data_item_payload = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ValueOrBuilder

getDefaultInstanceForType()

public EvaluatedAnnotation getDefaultInstanceForType()
Returns
Type Description
EvaluatedAnnotation

getErrorAnalysisAnnotations(int index)

public ErrorAnalysisAnnotation getErrorAnalysisAnnotations(int index)

Annotations of model error analysis results.

repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation error_analysis_annotations = 9;

Parameter
Name Description
index int
Returns
Type Description
ErrorAnalysisAnnotation

getErrorAnalysisAnnotationsCount()

public int getErrorAnalysisAnnotationsCount()

Annotations of model error analysis results.

repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation error_analysis_annotations = 9;

Returns
Type Description
int

getErrorAnalysisAnnotationsList()

public List<ErrorAnalysisAnnotation> getErrorAnalysisAnnotationsList()

Annotations of model error analysis results.

repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation error_analysis_annotations = 9;

Returns
Type Description
List<ErrorAnalysisAnnotation>

getErrorAnalysisAnnotationsOrBuilder(int index)

public ErrorAnalysisAnnotationOrBuilder getErrorAnalysisAnnotationsOrBuilder(int index)

Annotations of model error analysis results.

repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation error_analysis_annotations = 9;

Parameter
Name Description
index int
Returns
Type Description
ErrorAnalysisAnnotationOrBuilder

getErrorAnalysisAnnotationsOrBuilderList()

public List<? extends ErrorAnalysisAnnotationOrBuilder> getErrorAnalysisAnnotationsOrBuilderList()

Annotations of model error analysis results.

repeated .google.cloud.aiplatform.v1.ErrorAnalysisAnnotation error_analysis_annotations = 9;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1.ErrorAnalysisAnnotationOrBuilder>

getEvaluatedDataItemViewId()

public String getEvaluatedDataItemViewId()

Output only. ID of the EvaluatedDataItemView under the same ancestor ModelEvaluation. The EvaluatedDataItemView consists of all ground truths and predictions on data_item_payload.

string evaluated_data_item_view_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The evaluatedDataItemViewId.

getEvaluatedDataItemViewIdBytes()

public ByteString getEvaluatedDataItemViewIdBytes()

Output only. ID of the EvaluatedDataItemView under the same ancestor ModelEvaluation. The EvaluatedDataItemView consists of all ground truths and predictions on data_item_payload.

string evaluated_data_item_view_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for evaluatedDataItemViewId.

getExplanations(int index)

public EvaluatedAnnotationExplanation getExplanations(int index)

Explanations of predictions. Each element of the explanations indicates the explanation for one explanation Method.

The attributions list in the EvaluatedAnnotationExplanation.explanation object corresponds to the predictions list. For example, the second element in the attributions list explains the second element in the predictions list.

repeated .google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation explanations = 8;

Parameter
Name Description
index int
Returns
Type Description
EvaluatedAnnotationExplanation

getExplanationsCount()

public int getExplanationsCount()

Explanations of predictions. Each element of the explanations indicates the explanation for one explanation Method.

The attributions list in the EvaluatedAnnotationExplanation.explanation object corresponds to the predictions list. For example, the second element in the attributions list explains the second element in the predictions list.

repeated .google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation explanations = 8;

Returns
Type Description
int

getExplanationsList()

public List<EvaluatedAnnotationExplanation> getExplanationsList()

Explanations of predictions. Each element of the explanations indicates the explanation for one explanation Method.

The attributions list in the EvaluatedAnnotationExplanation.explanation object corresponds to the predictions list. For example, the second element in the attributions list explains the second element in the predictions list.

repeated .google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation explanations = 8;

Returns
Type Description
List<EvaluatedAnnotationExplanation>

getExplanationsOrBuilder(int index)

public EvaluatedAnnotationExplanationOrBuilder getExplanationsOrBuilder(int index)

Explanations of predictions. Each element of the explanations indicates the explanation for one explanation Method.

The attributions list in the EvaluatedAnnotationExplanation.explanation object corresponds to the predictions list. For example, the second element in the attributions list explains the second element in the predictions list.

repeated .google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation explanations = 8;

Parameter
Name Description
index int
Returns
Type Description
EvaluatedAnnotationExplanationOrBuilder

getExplanationsOrBuilderList()

public List<? extends EvaluatedAnnotationExplanationOrBuilder> getExplanationsOrBuilderList()

Explanations of predictions. Each element of the explanations indicates the explanation for one explanation Method.

The attributions list in the EvaluatedAnnotationExplanation.explanation object corresponds to the predictions list. For example, the second element in the attributions list explains the second element in the predictions list.

repeated .google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation explanations = 8;

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanationOrBuilder>

getGroundTruths(int index)

public Value getGroundTruths(int index)

Output only. The ground truth Annotations, i.e. the Annotations that exist in the test data the Model is evaluated on.

For true positive, there is one and only one ground truth annotation, which matches the only prediction in predictions.

For false positive, there are zero or more ground truth annotations that are similar to the only prediction in predictions, but not enough for a match.

For false negative, there is one and only one ground truth annotation, which doesn't match any predictions created by the model.

The schema of the ground truth is stored in ModelEvaluation.annotation_schema_uri

repeated .google.protobuf.Value ground_truths = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Value

getGroundTruthsCount()

public int getGroundTruthsCount()

Output only. The ground truth Annotations, i.e. the Annotations that exist in the test data the Model is evaluated on.

For true positive, there is one and only one ground truth annotation, which matches the only prediction in predictions.

For false positive, there are zero or more ground truth annotations that are similar to the only prediction in predictions, but not enough for a match.

For false negative, there is one and only one ground truth annotation, which doesn't match any predictions created by the model.

The schema of the ground truth is stored in ModelEvaluation.annotation_schema_uri

repeated .google.protobuf.Value ground_truths = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getGroundTruthsList()

public List<Value> getGroundTruthsList()

Output only. The ground truth Annotations, i.e. the Annotations that exist in the test data the Model is evaluated on.

For true positive, there is one and only one ground truth annotation, which matches the only prediction in predictions.

For false positive, there are zero or more ground truth annotations that are similar to the only prediction in predictions, but not enough for a match.

For false negative, there is one and only one ground truth annotation, which doesn't match any predictions created by the model.

The schema of the ground truth is stored in ModelEvaluation.annotation_schema_uri

repeated .google.protobuf.Value ground_truths = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Value>

getGroundTruthsOrBuilder(int index)

public ValueOrBuilder getGroundTruthsOrBuilder(int index)

Output only. The ground truth Annotations, i.e. the Annotations that exist in the test data the Model is evaluated on.

For true positive, there is one and only one ground truth annotation, which matches the only prediction in predictions.

For false positive, there are zero or more ground truth annotations that are similar to the only prediction in predictions, but not enough for a match.

For false negative, there is one and only one ground truth annotation, which doesn't match any predictions created by the model.

The schema of the ground truth is stored in ModelEvaluation.annotation_schema_uri

repeated .google.protobuf.Value ground_truths = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ValueOrBuilder

getGroundTruthsOrBuilderList()

public List<? extends ValueOrBuilder> getGroundTruthsOrBuilderList()

Output only. The ground truth Annotations, i.e. the Annotations that exist in the test data the Model is evaluated on.

For true positive, there is one and only one ground truth annotation, which matches the only prediction in predictions.

For false positive, there are zero or more ground truth annotations that are similar to the only prediction in predictions, but not enough for a match.

For false negative, there is one and only one ground truth annotation, which doesn't match any predictions created by the model.

The schema of the ground truth is stored in ModelEvaluation.annotation_schema_uri

repeated .google.protobuf.Value ground_truths = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.protobuf.ValueOrBuilder>

getParserForType()

public Parser<EvaluatedAnnotation> getParserForType()
Returns
Type Description
Parser<EvaluatedAnnotation>
Overrides

getPredictions(int index)

public Value getPredictions(int index)

Output only. The model predicted annotations.

For true positive, there is one and only one prediction, which matches the only one ground truth annotation in ground_truths.

For false positive, there is one and only one prediction, which doesn't match any ground truth annotation of the corresponding data_item_view_id.

For false negative, there are zero or more predictions which are similar to the only ground truth annotation in ground_truths but not enough for a match.

The schema of the prediction is stored in ModelEvaluation.annotation_schema_uri

repeated .google.protobuf.Value predictions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Value

getPredictionsCount()

public int getPredictionsCount()

Output only. The model predicted annotations.

For true positive, there is one and only one prediction, which matches the only one ground truth annotation in ground_truths.

For false positive, there is one and only one prediction, which doesn't match any ground truth annotation of the corresponding data_item_view_id.

For false negative, there are zero or more predictions which are similar to the only ground truth annotation in ground_truths but not enough for a match.

The schema of the prediction is stored in ModelEvaluation.annotation_schema_uri

repeated .google.protobuf.Value predictions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getPredictionsList()

public List<Value> getPredictionsList()

Output only. The model predicted annotations.

For true positive, there is one and only one prediction, which matches the only one ground truth annotation in ground_truths.

For false positive, there is one and only one prediction, which doesn't match any ground truth annotation of the corresponding data_item_view_id.

For false negative, there are zero or more predictions which are similar to the only ground truth annotation in ground_truths but not enough for a match.

The schema of the prediction is stored in ModelEvaluation.annotation_schema_uri

repeated .google.protobuf.Value predictions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Value>

getPredictionsOrBuilder(int index)

public ValueOrBuilder getPredictionsOrBuilder(int index)

Output only. The model predicted annotations.

For true positive, there is one and only one prediction, which matches the only one ground truth annotation in ground_truths.

For false positive, there is one and only one prediction, which doesn't match any ground truth annotation of the corresponding data_item_view_id.

For false negative, there are zero or more predictions which are similar to the only ground truth annotation in ground_truths but not enough for a match.

The schema of the prediction is stored in ModelEvaluation.annotation_schema_uri

repeated .google.protobuf.Value predictions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ValueOrBuilder

getPredictionsOrBuilderList()

public List<? extends ValueOrBuilder> getPredictionsOrBuilderList()

Output only. The model predicted annotations.

For true positive, there is one and only one prediction, which matches the only one ground truth annotation in ground_truths.

For false positive, there is one and only one prediction, which doesn't match any ground truth annotation of the corresponding data_item_view_id.

For false negative, there are zero or more predictions which are similar to the only ground truth annotation in ground_truths but not enough for a match.

The schema of the prediction is stored in ModelEvaluation.annotation_schema_uri

repeated .google.protobuf.Value predictions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.protobuf.ValueOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getType()

public EvaluatedAnnotation.EvaluatedAnnotationType getType()

Output only. Type of the EvaluatedAnnotation.

.google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluatedAnnotation.EvaluatedAnnotationType

The type.

getTypeValue()

public int getTypeValue()

Output only. Type of the EvaluatedAnnotation.

.google.cloud.aiplatform.v1.EvaluatedAnnotation.EvaluatedAnnotationType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for type.

hasDataItemPayload()

public boolean hasDataItemPayload()

Output only. The data item payload that the Model predicted this EvaluatedAnnotation on.

.google.protobuf.Value data_item_payload = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the dataItemPayload field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public EvaluatedAnnotation.Builder newBuilderForType()
Returns
Type Description
EvaluatedAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EvaluatedAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EvaluatedAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public EvaluatedAnnotation.Builder toBuilder()
Returns
Type Description
EvaluatedAnnotation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException