Class PrCurve.Builder (0.162.0)

public static final class PrCurve.Builder extends GeneratedMessageV3.Builder<PrCurve.Builder> implements PrCurveOrBuilder

Protobuf type google.cloud.datalabeling.v1beta1.PrCurve

Implements

PrCurveOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllConfidenceMetricsEntries(Iterable<? extends PrCurve.ConfidenceMetricsEntry> values)

public PrCurve.Builder addAllConfidenceMetricsEntries(Iterable<? extends PrCurve.ConfidenceMetricsEntry> values)

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry>
Returns
Type Description
PrCurve.Builder

addConfidenceMetricsEntries(PrCurve.ConfidenceMetricsEntry value)

public PrCurve.Builder addConfidenceMetricsEntries(PrCurve.ConfidenceMetricsEntry value)

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Parameter
Name Description
value PrCurve.ConfidenceMetricsEntry
Returns
Type Description
PrCurve.Builder

addConfidenceMetricsEntries(PrCurve.ConfidenceMetricsEntry.Builder builderForValue)

public PrCurve.Builder addConfidenceMetricsEntries(PrCurve.ConfidenceMetricsEntry.Builder builderForValue)

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Parameter
Name Description
builderForValue PrCurve.ConfidenceMetricsEntry.Builder
Returns
Type Description
PrCurve.Builder

addConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry value)

public PrCurve.Builder addConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry value)

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Parameters
Name Description
index int
value PrCurve.ConfidenceMetricsEntry
Returns
Type Description
PrCurve.Builder

addConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry.Builder builderForValue)

public PrCurve.Builder addConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry.Builder builderForValue)

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Parameters
Name Description
index int
builderForValue PrCurve.ConfidenceMetricsEntry.Builder
Returns
Type Description
PrCurve.Builder

addConfidenceMetricsEntriesBuilder()

public PrCurve.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder()

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Returns
Type Description
PrCurve.ConfidenceMetricsEntry.Builder

addConfidenceMetricsEntriesBuilder(int index)

public PrCurve.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder(int index)

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
PrCurve.ConfidenceMetricsEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrCurve build()
Returns
Type Description
PrCurve

buildPartial()

public PrCurve buildPartial()
Returns
Type Description
PrCurve

clear()

public PrCurve.Builder clear()
Returns
Type Description
PrCurve.Builder
Overrides

clearAnnotationSpec()

public PrCurve.Builder clearAnnotationSpec()

The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.

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

Returns
Type Description
PrCurve.Builder

clearAreaUnderCurve()

public PrCurve.Builder clearAreaUnderCurve()

Area under the precision-recall curve. Not to be confused with area under a receiver operating characteristic (ROC) curve.

float area_under_curve = 2;

Returns
Type Description
PrCurve.Builder

This builder for chaining.

clearConfidenceMetricsEntries()

public PrCurve.Builder clearConfidenceMetricsEntries()

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Returns
Type Description
PrCurve.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMeanAveragePrecision()

public PrCurve.Builder clearMeanAveragePrecision()

Mean average prcision of this curve.

float mean_average_precision = 4;

Returns
Type Description
PrCurve.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public PrCurve.Builder clone()
Returns
Type Description
PrCurve.Builder
Overrides

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.

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

Returns
Type Description
AnnotationSpec

The annotationSpec.

getAnnotationSpecBuilder()

public AnnotationSpec.Builder getAnnotationSpecBuilder()

The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.

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

Returns
Type Description
AnnotationSpec.Builder

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.

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

Returns
Type Description
AnnotationSpecOrBuilder

getAreaUnderCurve()

public float getAreaUnderCurve()

Area under the precision-recall curve. Not to be confused with area under a receiver operating characteristic (ROC) curve.

float area_under_curve = 2;

Returns
Type Description
float

The areaUnderCurve.

getConfidenceMetricsEntries(int index)

public PrCurve.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index)

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
PrCurve.ConfidenceMetricsEntry

getConfidenceMetricsEntriesBuilder(int index)

public PrCurve.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntriesBuilder(int index)

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
PrCurve.ConfidenceMetricsEntry.Builder

getConfidenceMetricsEntriesBuilderList()

public List<PrCurve.ConfidenceMetricsEntry.Builder> getConfidenceMetricsEntriesBuilderList()

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Returns
Type Description
List<Builder>

getConfidenceMetricsEntriesCount()

public int getConfidenceMetricsEntriesCount()

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Returns
Type Description
int

getConfidenceMetricsEntriesList()

public List<PrCurve.ConfidenceMetricsEntry> getConfidenceMetricsEntriesList()

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Returns
Type Description
List<ConfidenceMetricsEntry>

getConfidenceMetricsEntriesOrBuilder(int index)

public PrCurve.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder(int index)

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
PrCurve.ConfidenceMetricsEntryOrBuilder

getConfidenceMetricsEntriesOrBuilderList()

public List<? extends PrCurve.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesOrBuilderList()

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Returns
Type Description
List<? extends com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder>

getDefaultInstanceForType()

public PrCurve getDefaultInstanceForType()
Returns
Type Description
PrCurve

getDescriptorForType()

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

getMeanAveragePrecision()

public float getMeanAveragePrecision()

Mean average prcision of this curve.

float mean_average_precision = 4;

Returns
Type Description
float

The meanAveragePrecision.

hasAnnotationSpec()

public boolean hasAnnotationSpec()

The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.

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

The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.

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

Parameter
Name Description
value AnnotationSpec
Returns
Type Description
PrCurve.Builder

mergeFrom(PrCurve other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeConfidenceMetricsEntries(int index)

public PrCurve.Builder removeConfidenceMetricsEntries(int index)

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Parameter
Name Description
index int
Returns
Type Description
PrCurve.Builder

setAnnotationSpec(AnnotationSpec value)

public PrCurve.Builder setAnnotationSpec(AnnotationSpec value)

The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.

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

Parameter
Name Description
value AnnotationSpec
Returns
Type Description
PrCurve.Builder

setAnnotationSpec(AnnotationSpec.Builder builderForValue)

public PrCurve.Builder setAnnotationSpec(AnnotationSpec.Builder builderForValue)

The annotation spec of the label for which the precision-recall curve calculated. If this field is empty, that means the precision-recall curve is an aggregate curve for all labels.

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

Parameter
Name Description
builderForValue AnnotationSpec.Builder
Returns
Type Description
PrCurve.Builder

setAreaUnderCurve(float value)

public PrCurve.Builder setAreaUnderCurve(float value)

Area under the precision-recall curve. Not to be confused with area under a receiver operating characteristic (ROC) curve.

float area_under_curve = 2;

Parameter
Name Description
value float

The areaUnderCurve to set.

Returns
Type Description
PrCurve.Builder

This builder for chaining.

setConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry value)

public PrCurve.Builder setConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry value)

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Parameters
Name Description
index int
value PrCurve.ConfidenceMetricsEntry
Returns
Type Description
PrCurve.Builder

setConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry.Builder builderForValue)

public PrCurve.Builder setConfidenceMetricsEntries(int index, PrCurve.ConfidenceMetricsEntry.Builder builderForValue)

Entries that make up the precision-recall graph. Each entry is a "point" on the graph drawn for a different confidence_threshold.

repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3;

Parameters
Name Description
index int
builderForValue PrCurve.ConfidenceMetricsEntry.Builder
Returns
Type Description
PrCurve.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMeanAveragePrecision(float value)

public PrCurve.Builder setMeanAveragePrecision(float value)

Mean average prcision of this curve.

float mean_average_precision = 4;

Parameter
Name Description
value float

The meanAveragePrecision to set.

Returns
Type Description
PrCurve.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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