Class ConfusionMatrix.Builder (0.171.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row>
Returns
Type Description
ConfusionMatrix.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConfusionMatrix.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConfusionMatrix.Builder
Overrides

addRow(ConfusionMatrix.Row value)

public ConfusionMatrix.Builder addRow(ConfusionMatrix.Row value)

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

Parameter
Name Description
value ConfusionMatrix.Row
Returns
Type Description
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
Name Description
builderForValue ConfusionMatrix.Row.Builder
Returns
Type Description
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
Name Description
index int
value ConfusionMatrix.Row
Returns
Type Description
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
Name Description
index int
builderForValue ConfusionMatrix.Row.Builder
Returns
Type Description
ConfusionMatrix.Builder

addRowBuilder()

public ConfusionMatrix.Row.Builder addRowBuilder()

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

Returns
Type Description
ConfusionMatrix.Row.Builder

addRowBuilder(int index)

public ConfusionMatrix.Row.Builder addRowBuilder(int index)

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

Parameter
Name Description
index int
Returns
Type Description
ConfusionMatrix.Row.Builder

build()

public ConfusionMatrix build()
Returns
Type Description
ConfusionMatrix

buildPartial()

public ConfusionMatrix buildPartial()
Returns
Type Description
ConfusionMatrix

clear()

public ConfusionMatrix.Builder clear()
Returns
Type Description
ConfusionMatrix.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ConfusionMatrix.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ConfusionMatrix.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ConfusionMatrix.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ConfusionMatrix.Builder
Overrides

clearRow()

public ConfusionMatrix.Builder clearRow()

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

Returns
Type Description
ConfusionMatrix.Builder

clone()

public ConfusionMatrix.Builder clone()
Returns
Type Description
ConfusionMatrix.Builder
Overrides

getDefaultInstanceForType()

public ConfusionMatrix getDefaultInstanceForType()
Returns
Type Description
ConfusionMatrix

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRow(int index)

public ConfusionMatrix.Row getRow(int index)

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

Parameter
Name Description
index int
Returns
Type Description
ConfusionMatrix.Row

getRowBuilder(int index)

public ConfusionMatrix.Row.Builder getRowBuilder(int index)

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

Parameter
Name Description
index int
Returns
Type Description
ConfusionMatrix.Row.Builder

getRowBuilderList()

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

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

Returns
Type Description
List<Builder>

getRowCount()

public int 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;

Returns
Type Description
List<Row>

getRowOrBuilder(int index)

public ConfusionMatrix.RowOrBuilder getRowOrBuilder(int index)

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

Parameter
Name Description
index int
Returns
Type Description
ConfusionMatrix.RowOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ConfusionMatrix other)

public ConfusionMatrix.Builder mergeFrom(ConfusionMatrix other)
Parameter
Name Description
other ConfusionMatrix
Returns
Type Description
ConfusionMatrix.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConfusionMatrix.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConfusionMatrix.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ConfusionMatrix.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ConfusionMatrix.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConfusionMatrix.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConfusionMatrix.Builder
Overrides

removeRow(int index)

public ConfusionMatrix.Builder removeRow(int index)

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

Parameter
Name Description
index int
Returns
Type Description
ConfusionMatrix.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ConfusionMatrix.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ConfusionMatrix.Builder
Overrides

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

public ConfusionMatrix.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int
value ConfusionMatrix.Row
Returns
Type Description
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
Name Description
index int
builderForValue ConfusionMatrix.Row.Builder
Returns
Type Description
ConfusionMatrix.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ConfusionMatrix.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConfusionMatrix.Builder
Overrides