Class TrainProcessorVersionRequest.InputData.Builder (2.51.0)

public static final class TrainProcessorVersionRequest.InputData.Builder extends GeneratedMessageV3.Builder<TrainProcessorVersionRequest.InputData.Builder> implements TrainProcessorVersionRequest.InputDataOrBuilder

The input data used to train a new ProcessorVersion.

Protobuf type google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TrainProcessorVersionRequest.InputData build()
Returns
Type Description
TrainProcessorVersionRequest.InputData

buildPartial()

public TrainProcessorVersionRequest.InputData buildPartial()
Returns
Type Description
TrainProcessorVersionRequest.InputData

clear()

public TrainProcessorVersionRequest.InputData.Builder clear()
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TrainProcessorVersionRequest.InputData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TrainProcessorVersionRequest.InputData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder
Overrides

clearTestDocuments()

public TrainProcessorVersionRequest.InputData.Builder clearTestDocuments()

The documents used for testing the trained version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4;

Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder

clearTrainingDocuments()

public TrainProcessorVersionRequest.InputData.Builder clearTrainingDocuments()

The documents used for training the new version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3;

Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder

clone()

public TrainProcessorVersionRequest.InputData.Builder clone()
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder
Overrides

getDefaultInstanceForType()

public TrainProcessorVersionRequest.InputData getDefaultInstanceForType()
Returns
Type Description
TrainProcessorVersionRequest.InputData

getDescriptorForType()

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

getTestDocuments()

public BatchDocumentsInputConfig getTestDocuments()

The documents used for testing the trained version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4;

Returns
Type Description
BatchDocumentsInputConfig

The testDocuments.

getTestDocumentsBuilder()

public BatchDocumentsInputConfig.Builder getTestDocumentsBuilder()

The documents used for testing the trained version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4;

Returns
Type Description
BatchDocumentsInputConfig.Builder

getTestDocumentsOrBuilder()

public BatchDocumentsInputConfigOrBuilder getTestDocumentsOrBuilder()

The documents used for testing the trained version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4;

Returns
Type Description
BatchDocumentsInputConfigOrBuilder

getTrainingDocuments()

public BatchDocumentsInputConfig getTrainingDocuments()

The documents used for training the new version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3;

Returns
Type Description
BatchDocumentsInputConfig

The trainingDocuments.

getTrainingDocumentsBuilder()

public BatchDocumentsInputConfig.Builder getTrainingDocumentsBuilder()

The documents used for training the new version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3;

Returns
Type Description
BatchDocumentsInputConfig.Builder

getTrainingDocumentsOrBuilder()

public BatchDocumentsInputConfigOrBuilder getTrainingDocumentsOrBuilder()

The documents used for training the new version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3;

Returns
Type Description
BatchDocumentsInputConfigOrBuilder

hasTestDocuments()

public boolean hasTestDocuments()

The documents used for testing the trained version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4;

Returns
Type Description
boolean

Whether the testDocuments field is set.

hasTrainingDocuments()

public boolean hasTrainingDocuments()

The documents used for training the new version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3;

Returns
Type Description
boolean

Whether the trainingDocuments field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TrainProcessorVersionRequest.InputData other)

public TrainProcessorVersionRequest.InputData.Builder mergeFrom(TrainProcessorVersionRequest.InputData other)
Parameter
Name Description
other TrainProcessorVersionRequest.InputData
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TrainProcessorVersionRequest.InputData.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder
Overrides

mergeTestDocuments(BatchDocumentsInputConfig value)

public TrainProcessorVersionRequest.InputData.Builder mergeTestDocuments(BatchDocumentsInputConfig value)

The documents used for testing the trained version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4;

Parameter
Name Description
value BatchDocumentsInputConfig
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder

mergeTrainingDocuments(BatchDocumentsInputConfig value)

public TrainProcessorVersionRequest.InputData.Builder mergeTrainingDocuments(BatchDocumentsInputConfig value)

The documents used for training the new version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3;

Parameter
Name Description
value BatchDocumentsInputConfig
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TrainProcessorVersionRequest.InputData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTestDocuments(BatchDocumentsInputConfig value)

public TrainProcessorVersionRequest.InputData.Builder setTestDocuments(BatchDocumentsInputConfig value)

The documents used for testing the trained version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4;

Parameter
Name Description
value BatchDocumentsInputConfig
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder

setTestDocuments(BatchDocumentsInputConfig.Builder builderForValue)

public TrainProcessorVersionRequest.InputData.Builder setTestDocuments(BatchDocumentsInputConfig.Builder builderForValue)

The documents used for testing the trained version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4;

Parameter
Name Description
builderForValue BatchDocumentsInputConfig.Builder
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder

setTrainingDocuments(BatchDocumentsInputConfig value)

public TrainProcessorVersionRequest.InputData.Builder setTrainingDocuments(BatchDocumentsInputConfig value)

The documents used for training the new version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3;

Parameter
Name Description
value BatchDocumentsInputConfig
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder

setTrainingDocuments(BatchDocumentsInputConfig.Builder builderForValue)

public TrainProcessorVersionRequest.InputData.Builder setTrainingDocuments(BatchDocumentsInputConfig.Builder builderForValue)

The documents used for training the new version.

.google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3;

Parameter
Name Description
builderForValue BatchDocumentsInputConfig.Builder
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final TrainProcessorVersionRequest.InputData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TrainProcessorVersionRequest.InputData.Builder
Overrides