Class ConfusionMatrix.ConfusionMatrixEntry.Builder (0.173.0)

public static final class ConfusionMatrix.ConfusionMatrixEntry.Builder extends GeneratedMessageV3.Builder<ConfusionMatrix.ConfusionMatrixEntry.Builder> implements ConfusionMatrix.ConfusionMatrixEntryOrBuilder

Protobuf type google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAnnotationSpec()

public ConfusionMatrix.ConfusionMatrixEntry.Builder clearAnnotationSpec()

The annotation spec of a predicted label.

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

Returns
Type Description
ConfusionMatrix.ConfusionMatrixEntry.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearItemCount()

public ConfusionMatrix.ConfusionMatrixEntry.Builder clearItemCount()

Number of items predicted to have this label. (The ground truth label for these items is the Row.annotationSpec of this entry's parent.)

int32 item_count = 2;

Returns
Type Description
ConfusionMatrix.ConfusionMatrixEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

The annotation spec of a predicted label.

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

Returns
Type Description
AnnotationSpec

The annotationSpec.

getAnnotationSpecBuilder()

public AnnotationSpec.Builder getAnnotationSpecBuilder()

The annotation spec of a predicted label.

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

Returns
Type Description
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

The annotation spec of a predicted label.

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

Returns
Type Description
AnnotationSpecOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

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

getItemCount()

public int getItemCount()

Number of items predicted to have this label. (The ground truth label for these items is the Row.annotationSpec of this entry's parent.)

int32 item_count = 2;

Returns
Type Description
int

The itemCount.

hasAnnotationSpec()

public boolean hasAnnotationSpec()

The annotation spec of a predicted label.

.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.ConfusionMatrixEntry.Builder mergeAnnotationSpec(AnnotationSpec value)

The annotation spec of a predicted label.

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

Parameter
Name Description
value AnnotationSpec
Returns
Type Description
ConfusionMatrix.ConfusionMatrixEntry.Builder

mergeFrom(ConfusionMatrix.ConfusionMatrixEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAnnotationSpec(AnnotationSpec value)

public ConfusionMatrix.ConfusionMatrixEntry.Builder setAnnotationSpec(AnnotationSpec value)

The annotation spec of a predicted label.

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

Parameter
Name Description
value AnnotationSpec
Returns
Type Description
ConfusionMatrix.ConfusionMatrixEntry.Builder

setAnnotationSpec(AnnotationSpec.Builder builderForValue)

public ConfusionMatrix.ConfusionMatrixEntry.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)

The annotation spec of a predicted label.

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

Parameter
Name Description
builderForValue AnnotationSpec.Builder
Returns
Type Description
ConfusionMatrix.ConfusionMatrixEntry.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setItemCount(int value)

public ConfusionMatrix.ConfusionMatrixEntry.Builder setItemCount(int value)

Number of items predicted to have this label. (The ground truth label for these items is the Row.annotationSpec of this entry's parent.)

int32 item_count = 2;

Parameter
Name Description
value int

The itemCount to set.

Returns
Type Description
ConfusionMatrix.ConfusionMatrixEntry.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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