Package com.google.cloud.documentai.v1
Class Evaluation.Metrics.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Evaluation.Metrics.Builder>
com.google.cloud.documentai.v1.Evaluation.Metrics.Builder
- All Implemented Interfaces:
Evaluation.MetricsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Evaluation.Metrics
public static final class Evaluation.Metrics.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The calculated f1 score.The amount of false negatives.The amount of false positives.The amount of documents with a ground truth occurrence.The amount of occurrences in ground truth documents.The calculated precision.The amount of documents with a predicted occurrence.The amount of occurrences in predicted documents.The calculated recall.The amount of documents that had an occurrence of this label.The amount of true positives.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatThe calculated f1 score.intThe amount of false negatives.intThe amount of false positives.intThe amount of documents with a ground truth occurrence.intThe amount of occurrences in ground truth documents.floatThe calculated precision.intThe amount of documents with a predicted occurrence.intThe amount of occurrences in predicted documents.floatThe calculated recall.intThe amount of documents that had an occurrence of this label.intThe amount of true positives.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Evaluation.Metrics other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setF1Score(float value) The calculated f1 score.setFalseNegativesCount(int value) The amount of false negatives.setFalsePositivesCount(int value) The amount of false positives.setGroundTruthDocumentCount(int value) The amount of documents with a ground truth occurrence.setGroundTruthOccurrencesCount(int value) The amount of occurrences in ground truth documents.setPrecision(float value) The calculated precision.setPredictedDocumentCount(int value) The amount of documents with a predicted occurrence.setPredictedOccurrencesCount(int value) The amount of occurrences in predicted documents.setRecall(float value) The calculated recall.setTotalDocumentsCount(int value) The amount of documents that had an occurrence of this label.setTruePositivesCount(int value) The amount of true positives.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<Evaluation.Metrics.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<Evaluation.Metrics.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<Evaluation.Metrics.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Evaluation.Metrics.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Evaluation.Metrics.Builder>
-
mergeFrom
public Evaluation.Metrics.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<Evaluation.Metrics.Builder>- Throws:
IOException
-
getPrecision
public float getPrecision()The calculated precision.
float precision = 1;- Specified by:
getPrecisionin interfaceEvaluation.MetricsOrBuilder- Returns:
- The precision.
-
setPrecision
The calculated precision.
float precision = 1;- Parameters:
value- The precision to set.- Returns:
- This builder for chaining.
-
clearPrecision
The calculated precision.
float precision = 1;- Returns:
- This builder for chaining.
-
getRecall
public float getRecall()The calculated recall.
float recall = 2;- Specified by:
getRecallin interfaceEvaluation.MetricsOrBuilder- Returns:
- The recall.
-
setRecall
The calculated recall.
float recall = 2;- Parameters:
value- The recall to set.- Returns:
- This builder for chaining.
-
clearRecall
The calculated recall.
float recall = 2;- Returns:
- This builder for chaining.
-
getF1Score
public float getF1Score()The calculated f1 score.
float f1_score = 3;- Specified by:
getF1Scorein interfaceEvaluation.MetricsOrBuilder- Returns:
- The f1Score.
-
setF1Score
The calculated f1 score.
float f1_score = 3;- Parameters:
value- The f1Score to set.- Returns:
- This builder for chaining.
-
clearF1Score
The calculated f1 score.
float f1_score = 3;- Returns:
- This builder for chaining.
-
getPredictedOccurrencesCount
public int getPredictedOccurrencesCount()The amount of occurrences in predicted documents.
int32 predicted_occurrences_count = 4;- Specified by:
getPredictedOccurrencesCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The predictedOccurrencesCount.
-
setPredictedOccurrencesCount
The amount of occurrences in predicted documents.
int32 predicted_occurrences_count = 4;- Parameters:
value- The predictedOccurrencesCount to set.- Returns:
- This builder for chaining.
-
clearPredictedOccurrencesCount
The amount of occurrences in predicted documents.
int32 predicted_occurrences_count = 4;- Returns:
- This builder for chaining.
-
getGroundTruthOccurrencesCount
public int getGroundTruthOccurrencesCount()The amount of occurrences in ground truth documents.
int32 ground_truth_occurrences_count = 5;- Specified by:
getGroundTruthOccurrencesCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The groundTruthOccurrencesCount.
-
setGroundTruthOccurrencesCount
The amount of occurrences in ground truth documents.
int32 ground_truth_occurrences_count = 5;- Parameters:
value- The groundTruthOccurrencesCount to set.- Returns:
- This builder for chaining.
-
clearGroundTruthOccurrencesCount
The amount of occurrences in ground truth documents.
int32 ground_truth_occurrences_count = 5;- Returns:
- This builder for chaining.
-
getPredictedDocumentCount
public int getPredictedDocumentCount()The amount of documents with a predicted occurrence.
int32 predicted_document_count = 10;- Specified by:
getPredictedDocumentCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The predictedDocumentCount.
-
setPredictedDocumentCount
The amount of documents with a predicted occurrence.
int32 predicted_document_count = 10;- Parameters:
value- The predictedDocumentCount to set.- Returns:
- This builder for chaining.
-
clearPredictedDocumentCount
The amount of documents with a predicted occurrence.
int32 predicted_document_count = 10;- Returns:
- This builder for chaining.
-
getGroundTruthDocumentCount
public int getGroundTruthDocumentCount()The amount of documents with a ground truth occurrence.
int32 ground_truth_document_count = 11;- Specified by:
getGroundTruthDocumentCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The groundTruthDocumentCount.
-
setGroundTruthDocumentCount
The amount of documents with a ground truth occurrence.
int32 ground_truth_document_count = 11;- Parameters:
value- The groundTruthDocumentCount to set.- Returns:
- This builder for chaining.
-
clearGroundTruthDocumentCount
The amount of documents with a ground truth occurrence.
int32 ground_truth_document_count = 11;- Returns:
- This builder for chaining.
-
getTruePositivesCount
public int getTruePositivesCount()The amount of true positives.
int32 true_positives_count = 6;- Specified by:
getTruePositivesCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The truePositivesCount.
-
setTruePositivesCount
The amount of true positives.
int32 true_positives_count = 6;- Parameters:
value- The truePositivesCount to set.- Returns:
- This builder for chaining.
-
clearTruePositivesCount
The amount of true positives.
int32 true_positives_count = 6;- Returns:
- This builder for chaining.
-
getFalsePositivesCount
public int getFalsePositivesCount()The amount of false positives.
int32 false_positives_count = 7;- Specified by:
getFalsePositivesCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The falsePositivesCount.
-
setFalsePositivesCount
The amount of false positives.
int32 false_positives_count = 7;- Parameters:
value- The falsePositivesCount to set.- Returns:
- This builder for chaining.
-
clearFalsePositivesCount
The amount of false positives.
int32 false_positives_count = 7;- Returns:
- This builder for chaining.
-
getFalseNegativesCount
public int getFalseNegativesCount()The amount of false negatives.
int32 false_negatives_count = 8;- Specified by:
getFalseNegativesCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The falseNegativesCount.
-
setFalseNegativesCount
The amount of false negatives.
int32 false_negatives_count = 8;- Parameters:
value- The falseNegativesCount to set.- Returns:
- This builder for chaining.
-
clearFalseNegativesCount
The amount of false negatives.
int32 false_negatives_count = 8;- Returns:
- This builder for chaining.
-
getTotalDocumentsCount
public int getTotalDocumentsCount()The amount of documents that had an occurrence of this label.
int32 total_documents_count = 9;- Specified by:
getTotalDocumentsCountin interfaceEvaluation.MetricsOrBuilder- Returns:
- The totalDocumentsCount.
-
setTotalDocumentsCount
The amount of documents that had an occurrence of this label.
int32 total_documents_count = 9;- Parameters:
value- The totalDocumentsCount to set.- Returns:
- This builder for chaining.
-
clearTotalDocumentsCount
The amount of documents that had an occurrence of this label.
int32 total_documents_count = 9;- Returns:
- This builder for chaining.
-