public static final class ConfusionMatrix.Row.Builder extends GeneratedMessageV3.Builder<ConfusionMatrix.Row.Builder> implements ConfusionMatrix.RowOrBuilder
A row in the confusion matrix. Each entry in this row has the same
ground truth label.
Protobuf type google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllEntries(Iterable<? extends ConfusionMatrix.ConfusionMatrixEntry> values)
public ConfusionMatrix.Row.Builder addAllEntries(Iterable<? extends ConfusionMatrix.ConfusionMatrixEntry> values)
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry>
|
addEntries(ConfusionMatrix.ConfusionMatrixEntry value)
public ConfusionMatrix.Row.Builder addEntries(ConfusionMatrix.ConfusionMatrixEntry value)
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
addEntries(ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue)
public ConfusionMatrix.Row.Builder addEntries(ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue)
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
addEntries(int index, ConfusionMatrix.ConfusionMatrixEntry value)
public ConfusionMatrix.Row.Builder addEntries(int index, ConfusionMatrix.ConfusionMatrixEntry value)
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
addEntries(int index, ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue)
public ConfusionMatrix.Row.Builder addEntries(int index, ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue)
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
addEntriesBuilder()
public ConfusionMatrix.ConfusionMatrixEntry.Builder addEntriesBuilder()
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
addEntriesBuilder(int index)
public ConfusionMatrix.ConfusionMatrixEntry.Builder addEntriesBuilder(int index)
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConfusionMatrix.Row.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ConfusionMatrix.Row build()
buildPartial()
public ConfusionMatrix.Row buildPartial()
clear()
public ConfusionMatrix.Row.Builder clear()
Overrides
clearAnnotationSpec()
public ConfusionMatrix.Row.Builder clearAnnotationSpec()
The annotation spec of the ground truth label for this row.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
clearEntries()
public ConfusionMatrix.Row.Builder clearEntries()
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
clearField(Descriptors.FieldDescriptor field)
public ConfusionMatrix.Row.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ConfusionMatrix.Row.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ConfusionMatrix.Row.Builder clone()
Overrides
getAnnotationSpec()
public AnnotationSpec getAnnotationSpec()
The annotation spec of the ground truth label for this row.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
getAnnotationSpecBuilder()
public AnnotationSpec.Builder getAnnotationSpecBuilder()
The annotation spec of the ground truth label for this row.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
getAnnotationSpecOrBuilder()
public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()
The annotation spec of the ground truth label for this row.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
getDefaultInstanceForType()
public ConfusionMatrix.Row getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEntries(int index)
public ConfusionMatrix.ConfusionMatrixEntry getEntries(int index)
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
Parameter |
Name |
Description |
index |
int
|
getEntriesBuilder(int index)
public ConfusionMatrix.ConfusionMatrixEntry.Builder getEntriesBuilder(int index)
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
Parameter |
Name |
Description |
index |
int
|
getEntriesBuilderList()
public List<ConfusionMatrix.ConfusionMatrixEntry.Builder> getEntriesBuilderList()
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
getEntriesCount()
public int getEntriesCount()
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
Returns |
Type |
Description |
int |
|
getEntriesList()
public List<ConfusionMatrix.ConfusionMatrixEntry> getEntriesList()
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
getEntriesOrBuilder(int index)
public ConfusionMatrix.ConfusionMatrixEntryOrBuilder getEntriesOrBuilder(int index)
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
Parameter |
Name |
Description |
index |
int
|
getEntriesOrBuilderList()
public List<? extends ConfusionMatrix.ConfusionMatrixEntryOrBuilder> getEntriesOrBuilderList()
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
Returns |
Type |
Description |
List<? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> |
|
hasAnnotationSpec()
public boolean hasAnnotationSpec()
The annotation spec of the ground truth label for this row.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns |
Type |
Description |
boolean |
Whether the annotationSpec field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeAnnotationSpec(AnnotationSpec value)
public ConfusionMatrix.Row.Builder mergeAnnotationSpec(AnnotationSpec value)
The annotation spec of the ground truth label for this row.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
mergeFrom(ConfusionMatrix.Row other)
public ConfusionMatrix.Row.Builder mergeFrom(ConfusionMatrix.Row other)
public ConfusionMatrix.Row.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ConfusionMatrix.Row.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConfusionMatrix.Row.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeEntries(int index)
public ConfusionMatrix.Row.Builder removeEntries(int index)
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
Parameter |
Name |
Description |
index |
int
|
setAnnotationSpec(AnnotationSpec value)
public ConfusionMatrix.Row.Builder setAnnotationSpec(AnnotationSpec value)
The annotation spec of the ground truth label for this row.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
setAnnotationSpec(AnnotationSpec.Builder builderForValue)
public ConfusionMatrix.Row.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)
The annotation spec of the ground truth label for this row.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
setEntries(int index, ConfusionMatrix.ConfusionMatrixEntry value)
public ConfusionMatrix.Row.Builder setEntries(int index, ConfusionMatrix.ConfusionMatrixEntry value)
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
setEntries(int index, ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue)
public ConfusionMatrix.Row.Builder setEntries(int index, ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue)
A list of the confusion matrix entries. One entry for each possible
predicted label.
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public ConfusionMatrix.Row.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConfusionMatrix.Row.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ConfusionMatrix.Row.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides