public static final class Evaluation.Counters.Builder extends GeneratedMessageV3.Builder<Evaluation.Counters.Builder> implements Evaluation.CountersOrBuilder
Evaluation counters for the documents that were used.
Protobuf type google.cloud.documentai.v1beta3.Evaluation.Counters
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Evaluation.Counters.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Evaluation.Counters build()
Returns
buildPartial()
public Evaluation.Counters buildPartial()
Returns
clear()
public Evaluation.Counters.Builder clear()
Returns
Overrides
clearEvaluatedDocumentsCount()
public Evaluation.Counters.Builder clearEvaluatedDocumentsCount()
How many documents were used in the evaluation.
int32 evaluated_documents_count = 4;
Returns
clearFailedDocumentsCount()
public Evaluation.Counters.Builder clearFailedDocumentsCount()
How many documents were not included in the evaluation as Document AI
failed to process them.
int32 failed_documents_count = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public Evaluation.Counters.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Evaluation.Counters.Builder clearInputDocumentsCount()
How many documents were sent for evaluation.
int32 input_documents_count = 1;
Returns
clearInvalidDocumentsCount()
public Evaluation.Counters.Builder clearInvalidDocumentsCount()
How many documents were not included in the evaluation as they didn't
pass validation.
int32 invalid_documents_count = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Evaluation.Counters.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Evaluation.Counters.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Evaluation.Counters getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEvaluatedDocumentsCount()
public int getEvaluatedDocumentsCount()
How many documents were used in the evaluation.
int32 evaluated_documents_count = 4;
Returns
Type | Description |
int | The evaluatedDocumentsCount.
|
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;
Returns
Type | Description |
int | The failedDocumentsCount.
|
public int getInputDocumentsCount()
How many documents were sent for evaluation.
int32 input_documents_count = 1;
Returns
Type | Description |
int | The inputDocumentsCount.
|
getInvalidDocumentsCount()
public int getInvalidDocumentsCount()
How many documents were not included in the evaluation as they didn't
pass validation.
int32 invalid_documents_count = 2;
Returns
Type | Description |
int | The invalidDocumentsCount.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Evaluation.Counters other)
public Evaluation.Counters.Builder mergeFrom(Evaluation.Counters other)
Parameter
Returns
public Evaluation.Counters.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Evaluation.Counters.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Evaluation.Counters.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setEvaluatedDocumentsCount(int value)
public Evaluation.Counters.Builder setEvaluatedDocumentsCount(int value)
How many documents were used in the evaluation.
int32 evaluated_documents_count = 4;
Parameter
Name | Description |
value | int
The evaluatedDocumentsCount to set.
|
Returns
setFailedDocumentsCount(int value)
public Evaluation.Counters.Builder setFailedDocumentsCount(int value)
How many documents were not included in the evaluation as Document AI
failed to process them.
int32 failed_documents_count = 3;
Parameter
Name | Description |
value | int
The failedDocumentsCount to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Evaluation.Counters.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Evaluation.Counters.Builder setInputDocumentsCount(int value)
How many documents were sent for evaluation.
int32 input_documents_count = 1;
Parameter
Name | Description |
value | int
The inputDocumentsCount to set.
|
Returns
setInvalidDocumentsCount(int value)
public Evaluation.Counters.Builder setInvalidDocumentsCount(int value)
How many documents were not included in the evaluation as they didn't
pass validation.
int32 invalid_documents_count = 2;
Parameter
Name | Description |
value | int
The invalidDocumentsCount to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Evaluation.Counters.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Evaluation.Counters.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides