Class ConfusionMatrix.ConfusionMatrixEntry.Builder (0.203.0)
Version 0.203.0keyboard_arrow_down
public static final class ConfusionMatrix . ConfusionMatrixEntry . Builder extends GeneratedMessage . Builder<ConfusionMatrix . ConfusionMatrixEntry . Builder > implements ConfusionMatrix . ConfusionMatrixEntryOrBuilder
Protobuf type google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
build()
public ConfusionMatrix . ConfusionMatrixEntry build ()
buildPartial()
public ConfusionMatrix . ConfusionMatrixEntry buildPartial ()
clear()
public ConfusionMatrix . ConfusionMatrixEntry . Builder clear ()
Overrides
clearAnnotationSpec()
public ConfusionMatrix . ConfusionMatrixEntry . Builder clearAnnotationSpec ()
The annotation spec of a predicted label.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
clearItemCount()
public ConfusionMatrix . ConfusionMatrixEntry . Builder clearItemCount ()
Number of items predicted to have this label. (The ground truth label for
these items is the Row.annotationSpec of this entry's parent.)
int32 item_count = 2;
getAnnotationSpec()
public AnnotationSpec getAnnotationSpec ()
The annotation spec of a predicted label.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
getAnnotationSpecBuilder()
public AnnotationSpec . Builder getAnnotationSpecBuilder ()
The annotation spec of a predicted label.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
getAnnotationSpecOrBuilder()
public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder ()
The annotation spec of a predicted label.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
getDefaultInstanceForType()
public ConfusionMatrix . ConfusionMatrixEntry getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getItemCount()
public int getItemCount ()
Number of items predicted to have this label. (The ground truth label for
these items is the Row.annotationSpec of this entry's parent.)
int32 item_count = 2;
Returns
Type
Description
int
The itemCount.
hasAnnotationSpec()
public boolean hasAnnotationSpec ()
The annotation spec of a predicted label.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
Type
Description
boolean
Whether the annotationSpec field is set.
internalGetFieldAccessorTable()
protected GeneratedMessage . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeAnnotationSpec(AnnotationSpec value)
public ConfusionMatrix . ConfusionMatrixEntry . Builder mergeAnnotationSpec ( AnnotationSpec value )
The annotation spec of a predicted label.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
mergeFrom(ConfusionMatrix.ConfusionMatrixEntry other)
public ConfusionMatrix . ConfusionMatrixEntry . Builder mergeFrom ( ConfusionMatrix . ConfusionMatrixEntry other )
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ConfusionMatrix . ConfusionMatrixEntry . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ConfusionMatrix . ConfusionMatrixEntry . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
setAnnotationSpec(AnnotationSpec value)
public ConfusionMatrix . ConfusionMatrixEntry . Builder setAnnotationSpec ( AnnotationSpec value )
The annotation spec of a predicted label.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
setAnnotationSpec(AnnotationSpec.Builder builderForValue)
public ConfusionMatrix . ConfusionMatrixEntry . Builder setAnnotationSpec ( AnnotationSpec . Builder builderForValue )
The annotation spec of a predicted label.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
setItemCount(int value)
public ConfusionMatrix . ConfusionMatrixEntry . Builder setItemCount ( int value )
Number of items predicted to have this label. (The ground truth label for
these items is the Row.annotationSpec of this entry's parent.)
int32 item_count = 2;
Parameter
Name
Description
value
int The itemCount to set.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-02-27 UTC."],[],[]]