Class TrainProcessorVersionRequest.InputData.Builder (2.15.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.v1beta3.TrainProcessorVersionRequest.InputData

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TrainProcessorVersionRequest.InputData build()
Returns
TypeDescription
TrainProcessorVersionRequest.InputData

buildPartial()

public TrainProcessorVersionRequest.InputData buildPartial()
Returns
TypeDescription
TrainProcessorVersionRequest.InputData

clear()

public TrainProcessorVersionRequest.InputData.Builder clear()
Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TrainProcessorVersionRequest.InputData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TrainProcessorVersionRequest.InputData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder
Overrides

clearTestDocuments()

public TrainProcessorVersionRequest.InputData.Builder clearTestDocuments()

The documents used for testing the trained version.

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

Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder

clearTrainingDocuments()

public TrainProcessorVersionRequest.InputData.Builder clearTrainingDocuments()

The documents used for training the new version.

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

Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder

clone()

public TrainProcessorVersionRequest.InputData.Builder clone()
Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder
Overrides

getDefaultInstanceForType()

public TrainProcessorVersionRequest.InputData getDefaultInstanceForType()
Returns
TypeDescription
TrainProcessorVersionRequest.InputData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTestDocuments()

public BatchDocumentsInputConfig getTestDocuments()

The documents used for testing the trained version.

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

Returns
TypeDescription
BatchDocumentsInputConfig

The testDocuments.

getTestDocumentsBuilder()

public BatchDocumentsInputConfig.Builder getTestDocumentsBuilder()

The documents used for testing the trained version.

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

Returns
TypeDescription
BatchDocumentsInputConfig.Builder

getTestDocumentsOrBuilder()

public BatchDocumentsInputConfigOrBuilder getTestDocumentsOrBuilder()

The documents used for testing the trained version.

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

Returns
TypeDescription
BatchDocumentsInputConfigOrBuilder

getTrainingDocuments()

public BatchDocumentsInputConfig getTrainingDocuments()

The documents used for training the new version.

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

Returns
TypeDescription
BatchDocumentsInputConfig

The trainingDocuments.

getTrainingDocumentsBuilder()

public BatchDocumentsInputConfig.Builder getTrainingDocumentsBuilder()

The documents used for training the new version.

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

Returns
TypeDescription
BatchDocumentsInputConfig.Builder

getTrainingDocumentsOrBuilder()

public BatchDocumentsInputConfigOrBuilder getTrainingDocumentsOrBuilder()

The documents used for training the new version.

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

Returns
TypeDescription
BatchDocumentsInputConfigOrBuilder

hasTestDocuments()

public boolean hasTestDocuments()

The documents used for testing the trained version.

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

Returns
TypeDescription
boolean

Whether the testDocuments field is set.

hasTrainingDocuments()

public boolean hasTrainingDocuments()

The documents used for training the new version.

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

Returns
TypeDescription
boolean

Whether the trainingDocuments field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TrainProcessorVersionRequest.InputData other)

public TrainProcessorVersionRequest.InputData.Builder mergeFrom(TrainProcessorVersionRequest.InputData other)
Parameter
NameDescription
otherTrainProcessorVersionRequest.InputData
Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TrainProcessorVersionRequest.InputData.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1beta3.BatchDocumentsInputConfig test_documents = 4;

Parameter
NameDescription
valueBatchDocumentsInputConfig
Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder

mergeTrainingDocuments(BatchDocumentsInputConfig value)

public TrainProcessorVersionRequest.InputData.Builder mergeTrainingDocuments(BatchDocumentsInputConfig value)

The documents used for training the new version.

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

Parameter
NameDescription
valueBatchDocumentsInputConfig
Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TrainProcessorVersionRequest.InputData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TrainProcessorVersionRequest.InputData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1beta3.BatchDocumentsInputConfig test_documents = 4;

Parameter
NameDescription
valueBatchDocumentsInputConfig
Returns
TypeDescription
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.v1beta3.BatchDocumentsInputConfig test_documents = 4;

Parameter
NameDescription
builderForValueBatchDocumentsInputConfig.Builder
Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder

setTrainingDocuments(BatchDocumentsInputConfig value)

public TrainProcessorVersionRequest.InputData.Builder setTrainingDocuments(BatchDocumentsInputConfig value)

The documents used for training the new version.

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

Parameter
NameDescription
valueBatchDocumentsInputConfig
Returns
TypeDescription
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.v1beta3.BatchDocumentsInputConfig training_documents = 3;

Parameter
NameDescription
builderForValueBatchDocumentsInputConfig.Builder
Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final TrainProcessorVersionRequest.InputData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder
Overrides