Class TrainProcessorVersionMetadata.DatasetValidation.Builder (2.59.0)

public static final class TrainProcessorVersionMetadata.DatasetValidation.Builder extends GeneratedMessageV3.Builder<TrainProcessorVersionMetadata.DatasetValidation.Builder> implements TrainProcessorVersionMetadata.DatasetValidationOrBuilder

The dataset validation information. This includes any and all errors with documents and the dataset.

Protobuf type google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TrainProcessorVersionMetadata.DatasetValidation.Builder

Static Methods

getDescriptor()

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

Methods

addAllDatasetErrors(Iterable<? extends Status> values)

public TrainProcessorVersionMetadata.DatasetValidation.Builder addAllDatasetErrors(Iterable<? extends Status> values)

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Parameter
Name Description
values Iterable<? extends com.google.rpc.Status>
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

addAllDocumentErrors(Iterable<? extends Status> values)

public TrainProcessorVersionMetadata.DatasetValidation.Builder addAllDocumentErrors(Iterable<? extends Status> values)

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Parameter
Name Description
values Iterable<? extends com.google.rpc.Status>
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

addDatasetErrors(Status value)

public TrainProcessorVersionMetadata.DatasetValidation.Builder addDatasetErrors(Status value)

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

addDatasetErrors(Status.Builder builderForValue)

public TrainProcessorVersionMetadata.DatasetValidation.Builder addDatasetErrors(Status.Builder builderForValue)

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

addDatasetErrors(int index, Status value)

public TrainProcessorVersionMetadata.DatasetValidation.Builder addDatasetErrors(int index, Status value)

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

addDatasetErrors(int index, Status.Builder builderForValue)

public TrainProcessorVersionMetadata.DatasetValidation.Builder addDatasetErrors(int index, Status.Builder builderForValue)

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

addDatasetErrorsBuilder()

public Status.Builder addDatasetErrorsBuilder()

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Returns
Type Description
com.google.rpc.Status.Builder

addDatasetErrorsBuilder(int index)

public Status.Builder addDatasetErrorsBuilder(int index)

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status.Builder

addDocumentErrors(Status value)

public TrainProcessorVersionMetadata.DatasetValidation.Builder addDocumentErrors(Status value)

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

addDocumentErrors(Status.Builder builderForValue)

public TrainProcessorVersionMetadata.DatasetValidation.Builder addDocumentErrors(Status.Builder builderForValue)

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

addDocumentErrors(int index, Status value)

public TrainProcessorVersionMetadata.DatasetValidation.Builder addDocumentErrors(int index, Status value)

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

addDocumentErrors(int index, Status.Builder builderForValue)

public TrainProcessorVersionMetadata.DatasetValidation.Builder addDocumentErrors(int index, Status.Builder builderForValue)

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

addDocumentErrorsBuilder()

public Status.Builder addDocumentErrorsBuilder()

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Returns
Type Description
com.google.rpc.Status.Builder

addDocumentErrorsBuilder(int index)

public Status.Builder addDocumentErrorsBuilder(int index)

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TrainProcessorVersionMetadata.DatasetValidation build()
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation

buildPartial()

public TrainProcessorVersionMetadata.DatasetValidation buildPartial()
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation

clear()

public TrainProcessorVersionMetadata.DatasetValidation.Builder clear()
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides

clearDatasetErrorCount()

public TrainProcessorVersionMetadata.DatasetValidation.Builder clearDatasetErrorCount()

The total number of dataset errors.

int32 dataset_error_count = 4;

Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

This builder for chaining.

clearDatasetErrors()

public TrainProcessorVersionMetadata.DatasetValidation.Builder clearDatasetErrors()

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

clearDocumentErrorCount()

public TrainProcessorVersionMetadata.DatasetValidation.Builder clearDocumentErrorCount()

The total number of document errors.

int32 document_error_count = 3;

Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

This builder for chaining.

clearDocumentErrors()

public TrainProcessorVersionMetadata.DatasetValidation.Builder clearDocumentErrors()

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

clearField(Descriptors.FieldDescriptor field)

public TrainProcessorVersionMetadata.DatasetValidation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TrainProcessorVersionMetadata.DatasetValidation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides

clone()

public TrainProcessorVersionMetadata.DatasetValidation.Builder clone()
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides

getDatasetErrorCount()

public int getDatasetErrorCount()

The total number of dataset errors.

int32 dataset_error_count = 4;

Returns
Type Description
int

The datasetErrorCount.

getDatasetErrors(int index)

public Status getDatasetErrors(int index)

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status

getDatasetErrorsBuilder(int index)

public Status.Builder getDatasetErrorsBuilder(int index)

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status.Builder

getDatasetErrorsBuilderList()

public List<Status.Builder> getDatasetErrorsBuilderList()

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Returns
Type Description
List<com.google.rpc.Status.Builder>

getDatasetErrorsCount()

public int getDatasetErrorsCount()

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Returns
Type Description
int

getDatasetErrorsList()

public List<Status> getDatasetErrorsList()

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Returns
Type Description
List<com.google.rpc.Status>

getDatasetErrorsOrBuilder(int index)

public StatusOrBuilder getDatasetErrorsOrBuilder(int index)

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.StatusOrBuilder

getDatasetErrorsOrBuilderList()

public List<? extends StatusOrBuilder> getDatasetErrorsOrBuilderList()

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Returns
Type Description
List<? extends com.google.rpc.StatusOrBuilder>

getDefaultInstanceForType()

public TrainProcessorVersionMetadata.DatasetValidation getDefaultInstanceForType()
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDocumentErrorCount()

public int getDocumentErrorCount()

The total number of document errors.

int32 document_error_count = 3;

Returns
Type Description
int

The documentErrorCount.

getDocumentErrors(int index)

public Status getDocumentErrors(int index)

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status

getDocumentErrorsBuilder(int index)

public Status.Builder getDocumentErrorsBuilder(int index)

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status.Builder

getDocumentErrorsBuilderList()

public List<Status.Builder> getDocumentErrorsBuilderList()

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Returns
Type Description
List<com.google.rpc.Status.Builder>

getDocumentErrorsCount()

public int getDocumentErrorsCount()

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Returns
Type Description
int

getDocumentErrorsList()

public List<Status> getDocumentErrorsList()

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Returns
Type Description
List<com.google.rpc.Status>

getDocumentErrorsOrBuilder(int index)

public StatusOrBuilder getDocumentErrorsOrBuilder(int index)

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.StatusOrBuilder

getDocumentErrorsOrBuilderList()

public List<? extends StatusOrBuilder> getDocumentErrorsOrBuilderList()

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Returns
Type Description
List<? extends com.google.rpc.StatusOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TrainProcessorVersionMetadata.DatasetValidation other)

public TrainProcessorVersionMetadata.DatasetValidation.Builder mergeFrom(TrainProcessorVersionMetadata.DatasetValidation other)
Parameter
Name Description
other TrainProcessorVersionMetadata.DatasetValidation
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TrainProcessorVersionMetadata.DatasetValidation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TrainProcessorVersionMetadata.DatasetValidation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides

removeDatasetErrors(int index)

public TrainProcessorVersionMetadata.DatasetValidation.Builder removeDatasetErrors(int index)

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Parameter
Name Description
index int
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

removeDocumentErrors(int index)

public TrainProcessorVersionMetadata.DatasetValidation.Builder removeDocumentErrors(int index)

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Parameter
Name Description
index int
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

setDatasetErrorCount(int value)

public TrainProcessorVersionMetadata.DatasetValidation.Builder setDatasetErrorCount(int value)

The total number of dataset errors.

int32 dataset_error_count = 4;

Parameter
Name Description
value int

The datasetErrorCount to set.

Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

This builder for chaining.

setDatasetErrors(int index, Status value)

public TrainProcessorVersionMetadata.DatasetValidation.Builder setDatasetErrors(int index, Status value)

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

setDatasetErrors(int index, Status.Builder builderForValue)

public TrainProcessorVersionMetadata.DatasetValidation.Builder setDatasetErrors(int index, Status.Builder builderForValue)

Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.

repeated .google.rpc.Status dataset_errors = 2;

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

setDocumentErrorCount(int value)

public TrainProcessorVersionMetadata.DatasetValidation.Builder setDocumentErrorCount(int value)

The total number of document errors.

int32 document_error_count = 3;

Parameter
Name Description
value int

The documentErrorCount to set.

Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

This builder for chaining.

setDocumentErrors(int index, Status value)

public TrainProcessorVersionMetadata.DatasetValidation.Builder setDocumentErrors(int index, Status value)

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

setDocumentErrors(int index, Status.Builder builderForValue)

public TrainProcessorVersionMetadata.DatasetValidation.Builder setDocumentErrors(int index, Status.Builder builderForValue)

Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.

repeated .google.rpc.Status document_errors = 1;

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final TrainProcessorVersionMetadata.DatasetValidation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides