Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
Class TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder (2.11.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 2.11.0keyboard_arrow_down
public static final class TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder extends GeneratedMessageV3 . Builder<TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder > implements TextExtractionEvaluationMetrics . ConfidenceMetricsEntryOrBuilder
Metrics for a single confidence threshold.
Protobuf type
google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry build ()
Returns
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry buildPartial ()
Returns
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder clear ()
Returns
Overrides
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder clearConfidenceThreshold ()
Output only. The confidence threshold value used to compute the metrics.
Only annotations with score of at least this threshold are considered to
be ones the model would return.
float confidence_threshold = 1;
Returns
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder clearF1Score ()
Output only. The harmonic mean of recall and precision.
float f1_score = 5;
Returns
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder clearPrecision ()
Output only. Precision under the given confidence threshold.
float precision = 4;
Returns
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder clearRecall ()
Output only. Recall under the given confidence threshold.
float recall = 3;
Returns
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder clone ()
Returns
Overrides
public float getConfidenceThreshold ()
Output only. The confidence threshold value used to compute the metrics.
Only annotations with score of at least this threshold are considered to
be ones the model would return.
float confidence_threshold = 1;
Returns
Type
Description
float
The confidenceThreshold.
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry getDefaultInstanceForType ()
Returns
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
public float getF1Score ()
Output only. The harmonic mean of recall and precision.
float f1_score = 5;
Returns
Type
Description
float
The f1Score.
public float getPrecision ()
Output only. Precision under the given confidence threshold.
float precision = 4;
Returns
Type
Description
float
The precision.
Output only. Recall under the given confidence threshold.
float recall = 3;
Returns
Type
Description
float
The recall.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder mergeFrom ( TextExtractionEvaluationMetrics . ConfidenceMetricsEntry other )
Parameter
Returns
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
public final TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder setConfidenceThreshold ( float value )
Output only. The confidence threshold value used to compute the metrics.
Only annotations with score of at least this threshold are considered to
be ones the model would return.
float confidence_threshold = 1;
Parameter
Name
Description
value
float
The confidenceThreshold to set.
Returns
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder setF1Score ( float value )
Output only. The harmonic mean of recall and precision.
float f1_score = 5;
Parameter
Name
Description
value
float
The f1Score to set.
Returns
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder setPrecision ( float value )
Output only. Precision under the given confidence threshold.
float precision = 4;
Parameter
Name
Description
value
float
The precision to set.
Returns
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder setRecall ( float value )
Output only. Recall under the given confidence threshold.
float recall = 3;
Parameter
Name
Description
value
float
The recall to set.
Returns
public TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
public final TextExtractionEvaluationMetrics . ConfidenceMetricsEntry . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-01 UTC."],[],[]]