Class ConfusionMatrix.Builder (0.125.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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
NameDescription
valuesIterable<? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row>
Returns
TypeDescription
ConfusionMatrix.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConfusionMatrix.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConfusionMatrix.Builder
Overrides

addRow(ConfusionMatrix.Row value)

public ConfusionMatrix.Builder addRow(ConfusionMatrix.Row value)

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Parameter
NameDescription
valueConfusionMatrix.Row
Returns
TypeDescription
ConfusionMatrix.Builder

addRow(ConfusionMatrix.Row.Builder builderForValue)

public ConfusionMatrix.Builder addRow(ConfusionMatrix.Row.Builder builderForValue)

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Parameter
NameDescription
builderForValueConfusionMatrix.Row.Builder
Returns
TypeDescription
ConfusionMatrix.Builder

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
NameDescription
indexint
valueConfusionMatrix.Row
Returns
TypeDescription
ConfusionMatrix.Builder

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
NameDescription
indexint
builderForValueConfusionMatrix.Row.Builder
Returns
TypeDescription
ConfusionMatrix.Builder

addRowBuilder()

public ConfusionMatrix.Row.Builder addRowBuilder()

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Returns
TypeDescription
ConfusionMatrix.Row.Builder

addRowBuilder(int index)

public ConfusionMatrix.Row.Builder addRowBuilder(int index)

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ConfusionMatrix.Row.Builder

build()

public ConfusionMatrix build()
Returns
TypeDescription
ConfusionMatrix

buildPartial()

public ConfusionMatrix buildPartial()
Returns
TypeDescription
ConfusionMatrix

clear()

public ConfusionMatrix.Builder clear()
Returns
TypeDescription
ConfusionMatrix.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ConfusionMatrix.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConfusionMatrix.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConfusionMatrix.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConfusionMatrix.Builder
Overrides

clearRow()

public ConfusionMatrix.Builder clearRow()

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Returns
TypeDescription
ConfusionMatrix.Builder

clone()

public ConfusionMatrix.Builder clone()
Returns
TypeDescription
ConfusionMatrix.Builder
Overrides

getDefaultInstanceForType()

public ConfusionMatrix getDefaultInstanceForType()
Returns
TypeDescription
ConfusionMatrix

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRow(int index)

public ConfusionMatrix.Row getRow(int index)

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ConfusionMatrix.Row

getRowBuilder(int index)

public ConfusionMatrix.Row.Builder getRowBuilder(int index)

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ConfusionMatrix.Row.Builder

getRowBuilderList()

public List<ConfusionMatrix.Row.Builder> getRowBuilderList()

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Returns
TypeDescription
List<Builder>

getRowCount()

public int getRowCount()

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Returns
TypeDescription
int

getRowList()

public List<ConfusionMatrix.Row> getRowList()

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Returns
TypeDescription
List<Row>

getRowOrBuilder(int index)

public ConfusionMatrix.RowOrBuilder getRowOrBuilder(int index)

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ConfusionMatrix.RowOrBuilder

getRowOrBuilderList()

public List<? extends ConfusionMatrix.RowOrBuilder> getRowOrBuilderList()

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Returns
TypeDescription
List<? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConfusionMatrix other)

public ConfusionMatrix.Builder mergeFrom(ConfusionMatrix other)
Parameter
NameDescription
otherConfusionMatrix
Returns
TypeDescription
ConfusionMatrix.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConfusionMatrix.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfusionMatrix.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConfusionMatrix.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConfusionMatrix.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConfusionMatrix.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConfusionMatrix.Builder
Overrides

removeRow(int index)

public ConfusionMatrix.Builder removeRow(int index)

repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ConfusionMatrix.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConfusionMatrix.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConfusionMatrix.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ConfusionMatrix.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConfusionMatrix.Builder
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
NameDescription
indexint
valueConfusionMatrix.Row
Returns
TypeDescription
ConfusionMatrix.Builder

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
NameDescription
indexint
builderForValueConfusionMatrix.Row.Builder
Returns
TypeDescription
ConfusionMatrix.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ConfusionMatrix.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConfusionMatrix.Builder
Overrides