Package com.google.cloud.automl.v1
Class TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder>
com.google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder
- All Implemented Interfaces:
TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
public static final class TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder>
implements TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder
Metrics for a single confidence threshold.Protobuf type
google.cloud.automl.v1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.floatOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatOutput only.floatOutput only.floatOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setConfidenceThreshold(float value) Output only.setF1Score(float value) Output only.setPrecision(float value) Output only.setRecall(float value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder>
-
mergeFrom
public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder>- Throws:
IOException
-
getConfidenceThreshold
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;- Specified by:
getConfidenceThresholdin interfaceTextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The confidenceThreshold.
-
setConfidenceThreshold
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;- Parameters:
value- The confidenceThreshold to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getRecall
public float getRecall()Output only. Recall under the given confidence threshold.
float recall = 3;- Specified by:
getRecallin interfaceTextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The recall.
-
setRecall
Output only. Recall under the given confidence threshold.
float recall = 3;- Parameters:
value- The recall to set.- Returns:
- This builder for chaining.
-
clearRecall
Output only. Recall under the given confidence threshold.
float recall = 3;- Returns:
- This builder for chaining.
-
getPrecision
public float getPrecision()Output only. Precision under the given confidence threshold.
float precision = 4;- Specified by:
getPrecisionin interfaceTextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The precision.
-
setPrecision
Output only. Precision under the given confidence threshold.
float precision = 4;- Parameters:
value- The precision to set.- Returns:
- This builder for chaining.
-
clearPrecision
Output only. Precision under the given confidence threshold.
float precision = 4;- Returns:
- This builder for chaining.
-
getF1Score
public float getF1Score()Output only. The harmonic mean of recall and precision.
float f1_score = 5;- Specified by:
getF1Scorein interfaceTextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder- Returns:
- The f1Score.
-
setF1Score
Output only. The harmonic mean of recall and precision.
float f1_score = 5;- Parameters:
value- The f1Score to set.- Returns:
- This builder for chaining.
-
clearF1Score
Output only. The harmonic mean of recall and precision.
float f1_score = 5;- Returns:
- This builder for chaining.
-