Class TrainProcessorVersionMetadata.DatasetValidation.Builder (2.28.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.v1beta3.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.rpc.Status>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.rpc.Status>
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TrainProcessorVersionMetadata.DatasetValidation build()
Returns
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation

buildPartial()

public TrainProcessorVersionMetadata.DatasetValidation buildPartial()
Returns
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation

clear()

public TrainProcessorVersionMetadata.DatasetValidation.Builder clear()
Returns
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides

clearDatasetErrorCount()

public TrainProcessorVersionMetadata.DatasetValidation.Builder clearDatasetErrorCount()

The total number of dataset errors.

int32 dataset_error_count = 4;

Returns
TypeDescription
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
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation.Builder

clearDocumentErrorCount()

public TrainProcessorVersionMetadata.DatasetValidation.Builder clearDocumentErrorCount()

The total number of document errors.

int32 document_error_count = 3;

Returns
TypeDescription
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
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation.Builder

clearField(Descriptors.FieldDescriptor field)

public TrainProcessorVersionMetadata.DatasetValidation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TrainProcessorVersionMetadata.DatasetValidation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides

clone()

public TrainProcessorVersionMetadata.DatasetValidation.Builder clone()
Returns
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides

getDatasetErrorCount()

public int getDatasetErrorCount()

The total number of dataset errors.

int32 dataset_error_count = 4;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.rpc.StatusOrBuilder>

getDefaultInstanceForType()

public TrainProcessorVersionMetadata.DatasetValidation getDefaultInstanceForType()
Returns
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocumentErrorCount()

public int getDocumentErrorCount()

The total number of document errors.

int32 document_error_count = 3;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.rpc.StatusOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TrainProcessorVersionMetadata.DatasetValidation other)

public TrainProcessorVersionMetadata.DatasetValidation.Builder mergeFrom(TrainProcessorVersionMetadata.DatasetValidation other)
Parameter
NameDescription
otherTrainProcessorVersionMetadata.DatasetValidation
Returns
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TrainProcessorVersionMetadata.DatasetValidation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The datasetErrorCount to set.

Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
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
NameDescription
valueint

The documentErrorCount to set.

Returns
TypeDescription
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
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TrainProcessorVersionMetadata.DatasetValidation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TrainProcessorVersionMetadata.DatasetValidation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TrainProcessorVersionMetadata.DatasetValidation.Builder
Overrides