Class ConfusionMatrix.ConfusionMatrixEntry.Builder (0.126.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ConfusionMatrix.ConfusionMatrixEntry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ConfusionMatrix.ConfusionMatrixEntry.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

The annotation spec of a predicted label.

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

Returns
TypeDescription
AnnotationSpec

The annotationSpec.

getAnnotationSpecBuilder()

public AnnotationSpec.Builder getAnnotationSpecBuilder()

The annotation spec of a predicted label.

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

Returns
TypeDescription
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

The annotation spec of a predicted label.

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

Returns
TypeDescription
AnnotationSpecOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

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

The itemCount.

hasAnnotationSpec()

public boolean hasAnnotationSpec()

The annotation spec of a predicted label.

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

The annotation spec of a predicted label.

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

Parameter
NameDescription
valueAnnotationSpec
Returns
TypeDescription
ConfusionMatrix.ConfusionMatrixEntry.Builder

mergeFrom(ConfusionMatrix.ConfusionMatrixEntry other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The itemCount to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConfusionMatrix.ConfusionMatrixEntry.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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