Class ConfusionMatrix.Row.Builder (0.149.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry>
Returns
TypeDescription
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
NameDescription
valueConfusionMatrix.ConfusionMatrixEntry
Returns
TypeDescription
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
NameDescription
builderForValueConfusionMatrix.ConfusionMatrixEntry.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConfusionMatrix.ConfusionMatrixEntry
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConfusionMatrix.ConfusionMatrixEntry.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ConfusionMatrix.ConfusionMatrixEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ConfusionMatrix.Row build()
Returns
TypeDescription
ConfusionMatrix.Row

buildPartial()

public ConfusionMatrix.Row buildPartial()
Returns
TypeDescription
ConfusionMatrix.Row

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ConfusionMatrix.Row.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AnnotationSpecOrBuilder

getDefaultInstanceForType()

public ConfusionMatrix.Row getDefaultInstanceForType()
Returns
TypeDescription
ConfusionMatrix.Row

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the annotationSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAnnotationSpec
Returns
TypeDescription
ConfusionMatrix.Row.Builder

mergeFrom(ConfusionMatrix.Row other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConfusionMatrix.Row.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueAnnotationSpec
Returns
TypeDescription
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
NameDescription
builderForValueAnnotationSpec.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConfusionMatrix.ConfusionMatrixEntry
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConfusionMatrix.ConfusionMatrixEntry.Builder
Returns
TypeDescription
ConfusionMatrix.Row.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

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