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.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()
Returns
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>
|
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
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;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConfusionMatrix.Row.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ConfusionMatrix.Row build()
Returns
buildPartial()
public ConfusionMatrix.Row buildPartial()
Returns
clear()
public ConfusionMatrix.Row.Builder clear()
Returns
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;
Returns
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public ConfusionMatrix.Row.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ConfusionMatrix.Row.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ConfusionMatrix.Row.Builder clone()
Returns
Overrides
getAnnotationSpec()
public AnnotationSpec getAnnotationSpec()
The annotation spec of the ground truth label for this row.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
getAnnotationSpecBuilder()
public AnnotationSpec.Builder getAnnotationSpecBuilder()
The annotation spec of the ground truth label for this row.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
getAnnotationSpecOrBuilder()
public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()
The annotation spec of the ground truth label for this row.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
getDefaultInstanceForType()
public ConfusionMatrix.Row getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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;
Returns
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
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;
Returns
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
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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;
Parameter
Returns
mergeFrom(ConfusionMatrix.Row other)
public ConfusionMatrix.Row.Builder mergeFrom(ConfusionMatrix.Row other)
Parameter
Returns
public ConfusionMatrix.Row.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ConfusionMatrix.Row.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConfusionMatrix.Row.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ConfusionMatrix.Row.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConfusionMatrix.Row.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ConfusionMatrix.Row.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides