Class Evaluation.Metrics.Builder (2.47.0)

public static final class Evaluation.Metrics.Builder extends GeneratedMessageV3.Builder<Evaluation.Metrics.Builder> implements Evaluation.MetricsOrBuilder

Evaluation metrics, either in aggregate or about a specific entity.

Protobuf type google.cloud.documentai.v1.Evaluation.Metrics

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Evaluation.Metrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Evaluation.Metrics.Builder
Overrides

build()

public Evaluation.Metrics build()
Returns
Type Description
Evaluation.Metrics

buildPartial()

public Evaluation.Metrics buildPartial()
Returns
Type Description
Evaluation.Metrics

clear()

public Evaluation.Metrics.Builder clear()
Returns
Type Description
Evaluation.Metrics.Builder
Overrides

clearF1Score()

public Evaluation.Metrics.Builder clearF1Score()

The calculated f1 score.

float f1_score = 3;

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

clearFalseNegativesCount()

public Evaluation.Metrics.Builder clearFalseNegativesCount()

The amount of false negatives.

int32 false_negatives_count = 8;

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

clearFalsePositivesCount()

public Evaluation.Metrics.Builder clearFalsePositivesCount()

The amount of false positives.

int32 false_positives_count = 7;

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Evaluation.Metrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Evaluation.Metrics.Builder
Overrides

clearGroundTruthDocumentCount()

public Evaluation.Metrics.Builder clearGroundTruthDocumentCount()

The amount of documents with a ground truth occurrence.

int32 ground_truth_document_count = 11;

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

clearGroundTruthOccurrencesCount()

public Evaluation.Metrics.Builder clearGroundTruthOccurrencesCount()

The amount of occurrences in ground truth documents.

int32 ground_truth_occurrences_count = 5;

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Evaluation.Metrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Evaluation.Metrics.Builder
Overrides

clearPrecision()

public Evaluation.Metrics.Builder clearPrecision()

The calculated precision.

float precision = 1;

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

clearPredictedDocumentCount()

public Evaluation.Metrics.Builder clearPredictedDocumentCount()

The amount of documents with a predicted occurrence.

int32 predicted_document_count = 10;

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

clearPredictedOccurrencesCount()

public Evaluation.Metrics.Builder clearPredictedOccurrencesCount()

The amount of occurrences in predicted documents.

int32 predicted_occurrences_count = 4;

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

clearRecall()

public Evaluation.Metrics.Builder clearRecall()

The calculated recall.

float recall = 2;

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

clearTotalDocumentsCount()

public Evaluation.Metrics.Builder clearTotalDocumentsCount()

The amount of documents that had an occurrence of this label.

int32 total_documents_count = 9;

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

clearTruePositivesCount()

public Evaluation.Metrics.Builder clearTruePositivesCount()

The amount of true positives.

int32 true_positives_count = 6;

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

clone()

public Evaluation.Metrics.Builder clone()
Returns
Type Description
Evaluation.Metrics.Builder
Overrides

getDefaultInstanceForType()

public Evaluation.Metrics getDefaultInstanceForType()
Returns
Type Description
Evaluation.Metrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getF1Score()

public float getF1Score()

The calculated f1 score.

float f1_score = 3;

Returns
Type Description
float

The f1Score.

getFalseNegativesCount()

public int getFalseNegativesCount()

The amount of false negatives.

int32 false_negatives_count = 8;

Returns
Type Description
int

The falseNegativesCount.

getFalsePositivesCount()

public int getFalsePositivesCount()

The amount of false positives.

int32 false_positives_count = 7;

Returns
Type Description
int

The falsePositivesCount.

getGroundTruthDocumentCount()

public int getGroundTruthDocumentCount()

The amount of documents with a ground truth occurrence.

int32 ground_truth_document_count = 11;

Returns
Type Description
int

The groundTruthDocumentCount.

getGroundTruthOccurrencesCount()

public int getGroundTruthOccurrencesCount()

The amount of occurrences in ground truth documents.

int32 ground_truth_occurrences_count = 5;

Returns
Type Description
int

The groundTruthOccurrencesCount.

getPrecision()

public float getPrecision()

The calculated precision.

float precision = 1;

Returns
Type Description
float

The precision.

getPredictedDocumentCount()

public int getPredictedDocumentCount()

The amount of documents with a predicted occurrence.

int32 predicted_document_count = 10;

Returns
Type Description
int

The predictedDocumentCount.

getPredictedOccurrencesCount()

public int getPredictedOccurrencesCount()

The amount of occurrences in predicted documents.

int32 predicted_occurrences_count = 4;

Returns
Type Description
int

The predictedOccurrencesCount.

getRecall()

public float getRecall()

The calculated recall.

float recall = 2;

Returns
Type Description
float

The recall.

getTotalDocumentsCount()

public int getTotalDocumentsCount()

The amount of documents that had an occurrence of this label.

int32 total_documents_count = 9;

Returns
Type Description
int

The totalDocumentsCount.

getTruePositivesCount()

public int getTruePositivesCount()

The amount of true positives.

int32 true_positives_count = 6;

Returns
Type Description
int

The truePositivesCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Evaluation.Metrics other)

public Evaluation.Metrics.Builder mergeFrom(Evaluation.Metrics other)
Parameter
Name Description
other Evaluation.Metrics
Returns
Type Description
Evaluation.Metrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Evaluation.Metrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Evaluation.Metrics.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Evaluation.Metrics.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Evaluation.Metrics.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Evaluation.Metrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Evaluation.Metrics.Builder
Overrides

setF1Score(float value)

public Evaluation.Metrics.Builder setF1Score(float value)

The calculated f1 score.

float f1_score = 3;

Parameter
Name Description
value float

The f1Score to set.

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

setFalseNegativesCount(int value)

public Evaluation.Metrics.Builder setFalseNegativesCount(int value)

The amount of false negatives.

int32 false_negatives_count = 8;

Parameter
Name Description
value int

The falseNegativesCount to set.

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

setFalsePositivesCount(int value)

public Evaluation.Metrics.Builder setFalsePositivesCount(int value)

The amount of false positives.

int32 false_positives_count = 7;

Parameter
Name Description
value int

The falsePositivesCount to set.

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Evaluation.Metrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Evaluation.Metrics.Builder
Overrides

setGroundTruthDocumentCount(int value)

public Evaluation.Metrics.Builder setGroundTruthDocumentCount(int value)

The amount of documents with a ground truth occurrence.

int32 ground_truth_document_count = 11;

Parameter
Name Description
value int

The groundTruthDocumentCount to set.

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

setGroundTruthOccurrencesCount(int value)

public Evaluation.Metrics.Builder setGroundTruthOccurrencesCount(int value)

The amount of occurrences in ground truth documents.

int32 ground_truth_occurrences_count = 5;

Parameter
Name Description
value int

The groundTruthOccurrencesCount to set.

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

setPrecision(float value)

public Evaluation.Metrics.Builder setPrecision(float value)

The calculated precision.

float precision = 1;

Parameter
Name Description
value float

The precision to set.

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

setPredictedDocumentCount(int value)

public Evaluation.Metrics.Builder setPredictedDocumentCount(int value)

The amount of documents with a predicted occurrence.

int32 predicted_document_count = 10;

Parameter
Name Description
value int

The predictedDocumentCount to set.

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

setPredictedOccurrencesCount(int value)

public Evaluation.Metrics.Builder setPredictedOccurrencesCount(int value)

The amount of occurrences in predicted documents.

int32 predicted_occurrences_count = 4;

Parameter
Name Description
value int

The predictedOccurrencesCount to set.

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

setRecall(float value)

public Evaluation.Metrics.Builder setRecall(float value)

The calculated recall.

float recall = 2;

Parameter
Name Description
value float

The recall to set.

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

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

public Evaluation.Metrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Evaluation.Metrics.Builder
Overrides

setTotalDocumentsCount(int value)

public Evaluation.Metrics.Builder setTotalDocumentsCount(int value)

The amount of documents that had an occurrence of this label.

int32 total_documents_count = 9;

Parameter
Name Description
value int

The totalDocumentsCount to set.

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

setTruePositivesCount(int value)

public Evaluation.Metrics.Builder setTruePositivesCount(int value)

The amount of true positives.

int32 true_positives_count = 6;

Parameter
Name Description
value int

The truePositivesCount to set.

Returns
Type Description
Evaluation.Metrics.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Evaluation.Metrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Evaluation.Metrics.Builder
Overrides