public static final class ConfusionMatrix.Builder extends GeneratedMessageV3.Builder<ConfusionMatrix.Builder> implements ConfusionMatrixOrBuilder
Confusion matrix of the model running the classification. Only applicable
when the metrics entry aggregates multiple labels. Not applicable when the
entry is for a single label.
Protobuf type google.cloud.datalabeling.v1beta1.ConfusionMatrix
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
addAllRow(Iterable<? extends ConfusionMatrix.Row> values)
public ConfusionMatrix.Builder addAllRow(Iterable<? extends ConfusionMatrix.Row> values)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConfusionMatrix.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addRow(ConfusionMatrix.Row value)
public ConfusionMatrix.Builder addRow(ConfusionMatrix.Row value)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
addRow(ConfusionMatrix.Row.Builder builderForValue)
public ConfusionMatrix.Builder addRow(ConfusionMatrix.Row.Builder builderForValue)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
addRow(int index, ConfusionMatrix.Row value)
public ConfusionMatrix.Builder addRow(int index, ConfusionMatrix.Row value)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
addRow(int index, ConfusionMatrix.Row.Builder builderForValue)
public ConfusionMatrix.Builder addRow(int index, ConfusionMatrix.Row.Builder builderForValue)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
addRowBuilder()
public ConfusionMatrix.Row.Builder addRowBuilder()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
addRowBuilder(int index)
public ConfusionMatrix.Row.Builder addRowBuilder(int index)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter |
Name |
Description |
index |
int
|
build()
public ConfusionMatrix build()
buildPartial()
public ConfusionMatrix buildPartial()
clear()
public ConfusionMatrix.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ConfusionMatrix.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ConfusionMatrix.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRow()
public ConfusionMatrix.Builder clearRow()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
clone()
public ConfusionMatrix.Builder clone()
Overrides
getDefaultInstanceForType()
public ConfusionMatrix getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getRow(int index)
public ConfusionMatrix.Row getRow(int index)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter |
Name |
Description |
index |
int
|
getRowBuilder(int index)
public ConfusionMatrix.Row.Builder getRowBuilder(int index)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter |
Name |
Description |
index |
int
|
getRowBuilderList()
public List<ConfusionMatrix.Row.Builder> getRowBuilderList()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
getRowCount()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Returns |
Type |
Description |
int |
|
getRowList()
public List<ConfusionMatrix.Row> getRowList()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
getRowOrBuilder(int index)
public ConfusionMatrix.RowOrBuilder getRowOrBuilder(int index)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter |
Name |
Description |
index |
int
|
getRowOrBuilderList()
public List<? extends ConfusionMatrix.RowOrBuilder> getRowOrBuilderList()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ConfusionMatrix other)
public ConfusionMatrix.Builder mergeFrom(ConfusionMatrix other)
public ConfusionMatrix.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ConfusionMatrix.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConfusionMatrix.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeRow(int index)
public ConfusionMatrix.Builder removeRow(int index)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ConfusionMatrix.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConfusionMatrix.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRow(int index, ConfusionMatrix.Row value)
public ConfusionMatrix.Builder setRow(int index, ConfusionMatrix.Row value)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
setRow(int index, ConfusionMatrix.Row.Builder builderForValue)
public ConfusionMatrix.Builder setRow(int index, ConfusionMatrix.Row.Builder builderForValue)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
setUnknownFields(UnknownFieldSet unknownFields)
public final ConfusionMatrix.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides