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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConfusionMatrix.ConfusionMatrixEntry.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ConfusionMatrix.ConfusionMatrixEntry build()
Returns
buildPartial()
public ConfusionMatrix.ConfusionMatrixEntry buildPartial()
Returns
clear()
public ConfusionMatrix.ConfusionMatrixEntry.Builder clear()
Returns
Overrides
clearAnnotationSpec()
public ConfusionMatrix.ConfusionMatrixEntry.Builder clearAnnotationSpec()
The annotation spec of a predicted label.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public ConfusionMatrix.ConfusionMatrixEntry.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ConfusionMatrix.ConfusionMatrixEntry.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ConfusionMatrix.ConfusionMatrixEntry.Builder clone()
Returns
Overrides
getAnnotationSpec()
public AnnotationSpec getAnnotationSpec()
The annotation spec of a predicted label.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
getAnnotationSpecBuilder()
public AnnotationSpec.Builder getAnnotationSpecBuilder()
The annotation spec of a predicted label.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
getAnnotationSpecOrBuilder()
public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()
The annotation spec of a predicted label.
.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
Returns
getDefaultInstanceForType()
public ConfusionMatrix.ConfusionMatrixEntry getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(ConfusionMatrix.ConfusionMatrixEntry other)
public ConfusionMatrix.ConfusionMatrixEntry.Builder mergeFrom(ConfusionMatrix.ConfusionMatrixEntry other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ConfusionMatrix.ConfusionMatrixEntry.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ConfusionMatrix.ConfusionMatrixEntry.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConfusionMatrix.ConfusionMatrixEntry.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ConfusionMatrix.ConfusionMatrixEntry.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConfusionMatrix.ConfusionMatrixEntry.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ConfusionMatrix.ConfusionMatrixEntry.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides