Class PrCurve.Builder (0.156.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry>
Returns
TypeDescription
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
NameDescription
valuePrCurve.ConfidenceMetricsEntry
Returns
TypeDescription
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
NameDescription
builderForValuePrCurve.ConfidenceMetricsEntry.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePrCurve.ConfidenceMetricsEntry
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePrCurve.ConfidenceMetricsEntry.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PrCurve.ConfidenceMetricsEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PrCurve build()
Returns
TypeDescription
PrCurve

buildPartial()

public PrCurve buildPartial()
Returns
TypeDescription
PrCurve

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMeanAveragePrecision()

public PrCurve.Builder clearMeanAveragePrecision()

Mean average prcision of this curve.

float mean_average_precision = 4;

Returns
TypeDescription
PrCurve.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public PrCurve.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder>

getDefaultInstanceForType()

public PrCurve getDefaultInstanceForType()
Returns
TypeDescription
PrCurve

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMeanAveragePrecision()

public float getMeanAveragePrecision()

Mean average prcision of this curve.

float mean_average_precision = 4;

Returns
TypeDescription
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
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 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
NameDescription
valueAnnotationSpec
Returns
TypeDescription
PrCurve.Builder

mergeFrom(PrCurve other)

public PrCurve.Builder mergeFrom(PrCurve other)
Parameter
NameDescription
otherPrCurve
Returns
TypeDescription
PrCurve.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The areaUnderCurve to set.

Returns
TypeDescription
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
NameDescription
indexint
valuePrCurve.ConfidenceMetricsEntry
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePrCurve.ConfidenceMetricsEntry.Builder
Returns
TypeDescription
PrCurve.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PrCurve.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PrCurve.Builder
Overrides

setMeanAveragePrecision(float value)

public PrCurve.Builder setMeanAveragePrecision(float value)

Mean average prcision of this curve.

float mean_average_precision = 4;

Parameter
NameDescription
valuefloat

The meanAveragePrecision to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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