Class TextExtractionEvaluationMetrics (2.41.0)

public final class TextExtractionEvaluationMetrics extends GeneratedMessageV3 implements TextExtractionEvaluationMetricsOrBuilder

Model evaluation metrics for text extraction problems.

Protobuf type google.cloud.automl.v1.TextExtractionEvaluationMetrics

Inheritance

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

Static Fields

AU_PRC_FIELD_NUMBER

public static final int AU_PRC_FIELD_NUMBER
Field Value
TypeDescription
int

CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER

public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TextExtractionEvaluationMetrics getDefaultInstance()
Returns
TypeDescription
TextExtractionEvaluationMetrics

getDescriptor()

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

newBuilder()

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

newBuilder(TextExtractionEvaluationMetrics prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

getParserForType()

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

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.Builder newBuilderForType()
Returns
TypeDescription
TextExtractionEvaluationMetrics.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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