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.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
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>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConfusionMatrix.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addRow(ConfusionMatrix.Row value)
public ConfusionMatrix.Builder addRow(ConfusionMatrix.Row value)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter
Returns
addRow(ConfusionMatrix.Row.Builder builderForValue)
public ConfusionMatrix.Builder addRow(ConfusionMatrix.Row.Builder builderForValue)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter
Returns
addRow(int index, ConfusionMatrix.Row value)
public ConfusionMatrix.Builder addRow(int index, ConfusionMatrix.Row value)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameters
Returns
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;
Parameters
Returns
addRowBuilder()
public ConfusionMatrix.Row.Builder addRowBuilder()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Returns
addRowBuilder(int index)
public ConfusionMatrix.Row.Builder addRowBuilder(int index)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter
Returns
build()
public ConfusionMatrix build()
Returns
buildPartial()
public ConfusionMatrix buildPartial()
Returns
clear()
public ConfusionMatrix.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ConfusionMatrix.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ConfusionMatrix.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRow()
public ConfusionMatrix.Builder clearRow()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Returns
clone()
public ConfusionMatrix.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ConfusionMatrix getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getRow(int index)
public ConfusionMatrix.Row getRow(int index)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter
Returns
getRowBuilder(int index)
public ConfusionMatrix.Row.Builder getRowBuilder(int index)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter
Returns
getRowBuilderList()
public List<ConfusionMatrix.Row.Builder> getRowBuilderList()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Returns
getRowCount()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Returns
getRowList()
public List<ConfusionMatrix.Row> getRowList()
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Returns
getRowOrBuilder(int index)
public ConfusionMatrix.RowOrBuilder getRowOrBuilder(int index)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ConfusionMatrix other)
public ConfusionMatrix.Builder mergeFrom(ConfusionMatrix other)
Parameter
Returns
public ConfusionMatrix.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ConfusionMatrix.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConfusionMatrix.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeRow(int index)
public ConfusionMatrix.Builder removeRow(int index)
repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ConfusionMatrix.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConfusionMatrix.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ConfusionMatrix.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides