Class TextExtractionEvaluationMetrics.Builder (2.35.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.v1.TextExtractionEvaluationMetrics

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry>
Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameter
NameDescription
valueTextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameter
NameDescription
builderForValueTextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder
Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameters
NameDescription
indexint
valueTextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameters
NameDescription
indexint
builderForValueTextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder
Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TextExtractionEvaluationMetrics build()
Returns
TypeDescription
TextExtractionEvaluationMetrics

buildPartial()

public TextExtractionEvaluationMetrics buildPartial()
Returns
TypeDescription
TextExtractionEvaluationMetrics

clear()

public TextExtractionEvaluationMetrics.Builder clear()
Returns
TypeDescription
TextExtractionEvaluationMetrics.Builder
Overrides

clearAuPrc()

public TextExtractionEvaluationMetrics.Builder clearAuPrc()

Output only. The Area under precision recall curve metric.

float au_prc = 1;

Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Returns
TypeDescription
TextExtractionEvaluationMetrics.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public TextExtractionEvaluationMetrics.Builder clone()
Returns
TypeDescription
TextExtractionEvaluationMetrics.Builder
Overrides

getAuPrc()

public float getAuPrc()

Output only. The Area under precision recall curve metric.

float au_prc = 1;

Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Returns
TypeDescription
List<? extends com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder>

getDefaultInstanceForType()

public TextExtractionEvaluationMetrics getDefaultInstanceForType()
Returns
TypeDescription
TextExtractionEvaluationMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextExtractionEvaluationMetrics other)

public TextExtractionEvaluationMetrics.Builder mergeFrom(TextExtractionEvaluationMetrics other)
Parameter
NameDescription
otherTextExtractionEvaluationMetrics
Returns
TypeDescription
TextExtractionEvaluationMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TextExtractionEvaluationMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuefloat

The auPrc to set.

Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameters
NameDescription
indexint
valueTextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Returns
TypeDescription
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.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry confidence_metrics_entries = 2;

Parameters
NameDescription
indexint
builderForValueTextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder
Returns
TypeDescription
TextExtractionEvaluationMetrics.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public TextExtractionEvaluationMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TextExtractionEvaluationMetrics.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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