Class Evaluation.Counters.Builder (2.50.0)

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.v1.Evaluation.Counters

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearEvaluatedDocumentsCount()

public Evaluation.Counters.Builder clearEvaluatedDocumentsCount()

How many documents were used in the evaluation.

int32 evaluated_documents_count = 4;

Returns
Type Description
Evaluation.Counters.Builder

This builder for chaining.

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
Type Description
Evaluation.Counters.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInputDocumentsCount()

public Evaluation.Counters.Builder clearInputDocumentsCount()

How many documents were sent for evaluation.

int32 input_documents_count = 1;

Returns
Type Description
Evaluation.Counters.Builder

This builder for chaining.

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
Type Description
Evaluation.Counters.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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.

getInputDocumentsCount()

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Evaluation.Counters other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Evaluation.Counters.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Evaluation.Counters.Builder
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
Type Description
Evaluation.Counters.Builder

This builder for chaining.

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
Type Description
Evaluation.Counters.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInputDocumentsCount(int value)

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
Type Description
Evaluation.Counters.Builder

This builder for chaining.

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
Type Description
Evaluation.Counters.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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