Class Evaluation.Counters.Builder (2.17.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.v1beta3.Evaluation.Counters

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Evaluation.Counters.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Evaluation.Counters.Builder
Overrides

build()

public Evaluation.Counters build()
Returns
TypeDescription
Evaluation.Counters

buildPartial()

public Evaluation.Counters buildPartial()
Returns
TypeDescription
Evaluation.Counters

clear()

public Evaluation.Counters.Builder clear()
Returns
TypeDescription
Evaluation.Counters.Builder
Overrides

clearEvaluatedDocumentsCount()

public Evaluation.Counters.Builder clearEvaluatedDocumentsCount()

How many documents were used in the evaluation.

int32 evaluated_documents_count = 4;

Returns
TypeDescription
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
TypeDescription
Evaluation.Counters.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Evaluation.Counters.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Evaluation.Counters.Builder
Overrides

clearInputDocumentsCount()

public Evaluation.Counters.Builder clearInputDocumentsCount()

How many documents were sent for evaluation.

int32 input_documents_count = 1;

Returns
TypeDescription
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
TypeDescription
Evaluation.Counters.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Evaluation.Counters.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Evaluation.Counters.Builder
Overrides

clone()

public Evaluation.Counters.Builder clone()
Returns
TypeDescription
Evaluation.Counters.Builder
Overrides

getDefaultInstanceForType()

public Evaluation.Counters getDefaultInstanceForType()
Returns
TypeDescription
Evaluation.Counters

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEvaluatedDocumentsCount()

public int getEvaluatedDocumentsCount()

How many documents were used in the evaluation.

int32 evaluated_documents_count = 4;

Returns
TypeDescription
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
TypeDescription
int

The failedDocumentsCount.

getInputDocumentsCount()

public int getInputDocumentsCount()

How many documents were sent for evaluation.

int32 input_documents_count = 1;

Returns
TypeDescription
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
TypeDescription
int

The invalidDocumentsCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Evaluation.Counters other)

public Evaluation.Counters.Builder mergeFrom(Evaluation.Counters other)
Parameter
NameDescription
otherEvaluation.Counters
Returns
TypeDescription
Evaluation.Counters.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Evaluation.Counters.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Evaluation.Counters.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Evaluation.Counters.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Evaluation.Counters.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Evaluation.Counters.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The evaluatedDocumentsCount to set.

Returns
TypeDescription
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
NameDescription
valueint

The failedDocumentsCount to set.

Returns
TypeDescription
Evaluation.Counters.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Evaluation.Counters.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The inputDocumentsCount to set.

Returns
TypeDescription
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
NameDescription
valueint

The invalidDocumentsCount to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Evaluation.Counters.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Evaluation.Counters.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Evaluation.Counters.Builder
Overrides