Class TextExtractionEvaluationMetrics.Builder (2.42.0)

public static final class TextExtractionEvaluationMetrics.Builder extends GeneratedMessageV3.Builder<TextExtractionEvaluationMetrics.Builder> implements TextExtractionEvaluationMetricsOrBuilder

Model evaluation metrics for text extraction problems.

Protobuf type google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics

Static Methods

getDescriptor()

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

Methods

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

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

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

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

addConfidenceMetricsEntries(TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value)

public TextExtractionEvaluationMetrics.Builder addConfidenceMetricsEntries(TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value)

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

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

addConfidenceMetricsEntries(TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder builderForValue)

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

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

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

addConfidenceMetricsEntries(int index, TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value)

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

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

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

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

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

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

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

addConfidenceMetricsEntriesBuilder()

public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder()

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Returns
Type Description
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder

addConfidenceMetricsEntriesBuilder(int index)

public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder(int index)

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TextExtractionEvaluationMetrics build()
Returns
Type Description
TextExtractionEvaluationMetrics

buildPartial()

public TextExtractionEvaluationMetrics buildPartial()
Returns
Type Description
TextExtractionEvaluationMetrics

clear()

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

clearAuPrc()

public TextExtractionEvaluationMetrics.Builder clearAuPrc()

Output only. The Area under precision recall curve metric.

float au_prc = 1;

Returns
Type Description
TextExtractionEvaluationMetrics.Builder

This builder for chaining.

clearConfidenceMetricsEntries()

public TextExtractionEvaluationMetrics.Builder clearConfidenceMetricsEntries()

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Returns
Type Description
TextExtractionEvaluationMetrics.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAuPrc()

public float getAuPrc()

Output only. The Area under precision recall curve metric.

float au_prc = 1;

Returns
Type Description
float

The auPrc.

getConfidenceMetricsEntries(int index)

public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index)

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameter
Name Description
index int
Returns
Type Description
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry

getConfidenceMetricsEntriesBuilder(int index)

public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntriesBuilder(int index)

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

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

getConfidenceMetricsEntriesBuilderList()

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

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Returns
Type Description
List<Builder>

getConfidenceMetricsEntriesCount()

public int getConfidenceMetricsEntriesCount()

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Returns
Type Description
int

getConfidenceMetricsEntriesList()

public List<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> getConfidenceMetricsEntriesList()

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Returns
Type Description
List<ConfidenceMetricsEntry>

getConfidenceMetricsEntriesOrBuilder(int index)

public TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder(int index)

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameter
Name Description
index int
Returns
Type Description
TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder

getConfidenceMetricsEntriesOrBuilderList()

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

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Returns
Type Description
List<? extends com.google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder>

getDefaultInstanceForType()

public TextExtractionEvaluationMetrics getDefaultInstanceForType()
Returns
Type Description
TextExtractionEvaluationMetrics

getDescriptorForType()

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TextExtractionEvaluationMetrics other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeConfidenceMetricsEntries(int index)

public TextExtractionEvaluationMetrics.Builder removeConfidenceMetricsEntries(int index)

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameter
Name Description
index int
Returns
Type Description
TextExtractionEvaluationMetrics.Builder

setAuPrc(float value)

public TextExtractionEvaluationMetrics.Builder setAuPrc(float value)

Output only. The Area under precision recall curve metric.

float au_prc = 1;

Parameter
Name Description
value float

The auPrc to set.

Returns
Type Description
TextExtractionEvaluationMetrics.Builder

This builder for chaining.

setConfidenceMetricsEntries(int index, TextExtractionEvaluationMetrics.ConfidenceMetricsEntry value)

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

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

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

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

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

Output only. Metrics that have confidence thresholds. Precision-recall curve can be derived from it.

repeated .google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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