Class ConfusionMatrix.Row.Builder (0.162.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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
Type Description
ConfusionMatrix.Row.Builder

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
Name Description
value ConfusionMatrix.ConfusionMatrixEntry
Returns
Type Description
ConfusionMatrix.Row.Builder

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
Name Description
builderForValue ConfusionMatrix.ConfusionMatrixEntry.Builder
Returns
Type Description
ConfusionMatrix.Row.Builder

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

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

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
Type Description
ConfusionMatrix.ConfusionMatrixEntry.Builder

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
Name Description
index int
Returns
Type Description
ConfusionMatrix.ConfusionMatrixEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConfusionMatrix.Row build()
Returns
Type Description
ConfusionMatrix.Row

buildPartial()

public ConfusionMatrix.Row buildPartial()
Returns
Type Description
ConfusionMatrix.Row

clear()

public ConfusionMatrix.Row.Builder clear()
Returns
Type Description
ConfusionMatrix.Row.Builder
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
Type Description
ConfusionMatrix.Row.Builder

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
Type Description
ConfusionMatrix.Row.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ConfusionMatrix.Row.Builder clone()
Returns
Type Description
ConfusionMatrix.Row.Builder
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
Type Description
AnnotationSpec

The annotationSpec.

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
Type Description
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

The annotation spec of the ground truth label for this row.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
Type Description
AnnotationSpecOrBuilder

getDefaultInstanceForType()

public ConfusionMatrix.Row getDefaultInstanceForType()
Returns
Type Description
ConfusionMatrix.Row

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Name Description
index int
Returns
Type Description
ConfusionMatrix.ConfusionMatrixEntry

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
Name Description
index int
Returns
Type Description
ConfusionMatrix.ConfusionMatrixEntry.Builder

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
Type Description
List<Builder>

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
Type Description
int

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
Type Description
List<ConfusionMatrixEntry>

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
Name Description
index int
Returns
Type Description
ConfusionMatrix.ConfusionMatrixEntryOrBuilder

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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
Name Description
value AnnotationSpec
Returns
Type Description
ConfusionMatrix.Row.Builder

mergeFrom(ConfusionMatrix.Row other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConfusionMatrix.Row.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ConfusionMatrix.Row.Builder
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
Name Description
index int
Returns
Type Description
ConfusionMatrix.Row.Builder

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
Name Description
value AnnotationSpec
Returns
Type Description
ConfusionMatrix.Row.Builder

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
Name Description
builderForValue AnnotationSpec.Builder
Returns
Type Description
ConfusionMatrix.Row.Builder

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ConfusionMatrix.Row.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ConfusionMatrix.Row.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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