Package com.google.cloud.documentai.v1
Class Evaluation.Counters.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Evaluation.Counters.Builder>
com.google.cloud.documentai.v1.Evaluation.Counters.Builder
- All Implemented Interfaces:
Evaluation.CountersOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Evaluation.Counters
public static final class Evaluation.Counters.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Evaluation.Counters.Builder>
implements Evaluation.CountersOrBuilder
Evaluation counters for the documents that were used.Protobuf type
google.cloud.documentai.v1.Evaluation.Counters-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()How many documents were used in the evaluation.How many documents were not included in the evaluation as Document AI failed to process them.How many documents were sent for evaluation.How many documents were not included in the evaluation as they didn't pass validation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintHow many documents were used in the evaluation.intHow many documents were not included in the evaluation as Document AI failed to process them.intHow many documents were sent for evaluation.intHow many documents were not included in the evaluation as they didn't pass validation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Evaluation.Counters other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEvaluatedDocumentsCount(int value) How many documents were used in the evaluation.setFailedDocumentsCount(int value) How many documents were not included in the evaluation as Document AI failed to process them.setInputDocumentsCount(int value) How many documents were sent for evaluation.setInvalidDocumentsCount(int value) How many documents were not included in the evaluation as they didn't pass validation.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.Counters.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.Counters.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.Counters.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.Counters.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Evaluation.Counters.Builder>
-
mergeFrom
public Evaluation.Counters.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.Counters.Builder>- Throws:
IOException
-
getInputDocumentsCount
public int getInputDocumentsCount()How many documents were sent for evaluation.
int32 input_documents_count = 1;- Specified by:
getInputDocumentsCountin interfaceEvaluation.CountersOrBuilder- Returns:
- The inputDocumentsCount.
-
setInputDocumentsCount
How many documents were sent for evaluation.
int32 input_documents_count = 1;- Parameters:
value- The inputDocumentsCount to set.- Returns:
- This builder for chaining.
-
clearInputDocumentsCount
How many documents were sent for evaluation.
int32 input_documents_count = 1;- Returns:
- This builder for chaining.
-
getInvalidDocumentsCount
public int getInvalidDocumentsCount()How many documents were not included in the evaluation as they didn't pass validation.
int32 invalid_documents_count = 2;- Specified by:
getInvalidDocumentsCountin interfaceEvaluation.CountersOrBuilder- Returns:
- The invalidDocumentsCount.
-
setInvalidDocumentsCount
How many documents were not included in the evaluation as they didn't pass validation.
int32 invalid_documents_count = 2;- Parameters:
value- The invalidDocumentsCount to set.- Returns:
- This builder for chaining.
-
clearInvalidDocumentsCount
How many documents were not included in the evaluation as they didn't pass validation.
int32 invalid_documents_count = 2;- Returns:
- This builder for chaining.
-
getFailedDocumentsCount
public int getFailedDocumentsCount()How many documents were not included in the evaluation as Document AI failed to process them.
int32 failed_documents_count = 3;- Specified by:
getFailedDocumentsCountin interfaceEvaluation.CountersOrBuilder- Returns:
- The failedDocumentsCount.
-
setFailedDocumentsCount
How many documents were not included in the evaluation as Document AI failed to process them.
int32 failed_documents_count = 3;- Parameters:
value- The failedDocumentsCount to set.- Returns:
- This builder for chaining.
-
clearFailedDocumentsCount
How many documents were not included in the evaluation as Document AI failed to process them.
int32 failed_documents_count = 3;- Returns:
- This builder for chaining.
-
getEvaluatedDocumentsCount
public int getEvaluatedDocumentsCount()How many documents were used in the evaluation.
int32 evaluated_documents_count = 4;- Specified by:
getEvaluatedDocumentsCountin interfaceEvaluation.CountersOrBuilder- Returns:
- The evaluatedDocumentsCount.
-
setEvaluatedDocumentsCount
How many documents were used in the evaluation.
int32 evaluated_documents_count = 4;- Parameters:
value- The evaluatedDocumentsCount to set.- Returns:
- This builder for chaining.
-
clearEvaluatedDocumentsCount
How many documents were used in the evaluation.
int32 evaluated_documents_count = 4;- Returns:
- This builder for chaining.
-