Class TextExtractionEvaluationMetrics.ConfidenceMetricsEntry (2.27.0)

public static final class TextExtractionEvaluationMetrics.ConfidenceMetricsEntry extends GeneratedMessageV3 implements TextExtractionEvaluationMetrics.ConfidenceMetricsEntryOrBuilder

Metrics for a single confidence threshold.

Protobuf type google.cloud.automl.v1beta1.TextExtractionEvaluationMetrics.ConfidenceMetricsEntry

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > TextExtractionEvaluationMetrics.ConfidenceMetricsEntry

Static Fields

CONFIDENCE_THRESHOLD_FIELD_NUMBER

public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER
Field Value
TypeDescription
int

F1_SCORE_FIELD_NUMBER

public static final int F1_SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

PRECISION_FIELD_NUMBER

public static final int PRECISION_FIELD_NUMBER
Field Value
TypeDescription
int

RECALL_FIELD_NUMBER

public static final int RECALL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstance()
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder newBuilder()
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder

newBuilder(TextExtractionEvaluationMetrics.ConfidenceMetricsEntry prototype)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder newBuilder(TextExtractionEvaluationMetrics.ConfidenceMetricsEntry prototype)
Parameter
NameDescription
prototypeTextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder

parseDelimitedFrom(InputStream input)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TextExtractionEvaluationMetrics.ConfidenceMetricsEntry parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> parser()
Returns
TypeDescription
Parser<ConfidenceMetricsEntry>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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;

Returns
TypeDescription
float

The confidenceThreshold.

getDefaultInstanceForType()

public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry getDefaultInstanceForType()
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry

getF1Score()

public float getF1Score()

Output only. The harmonic mean of recall and precision.

float f1_score = 5;

Returns
TypeDescription
float

The f1Score.

getParserForType()

public Parser<TextExtractionEvaluationMetrics.ConfidenceMetricsEntry> getParserForType()
Returns
TypeDescription
Parser<ConfidenceMetricsEntry>
Overrides

getPrecision()

public float getPrecision()

Output only. Precision under the given confidence threshold.

float precision = 4;

Returns
TypeDescription
float

The precision.

getRecall()

public float getRecall()

Output only. Recall under the given confidence threshold.

float recall = 3;

Returns
TypeDescription
float

The recall.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder newBuilderForType()
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder toBuilder()
Returns
TypeDescription
TextExtractionEvaluationMetrics.ConfidenceMetricsEntry.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException