Class TrainProcessorVersionRequest.Builder (2.40.0)

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

Request message for the TrainProcessorVersion method.

Protobuf type google.cloud.documentai.v1.TrainProcessorVersionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TrainProcessorVersionRequest build()
Returns
TypeDescription
TrainProcessorVersionRequest

buildPartial()

public TrainProcessorVersionRequest buildPartial()
Returns
TypeDescription
TrainProcessorVersionRequest

clear()

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

clearBaseProcessorVersion()

public TrainProcessorVersionRequest.Builder clearBaseProcessorVersion()

Optional. The processor version to use as a base for training. This processor version must be a child of parent. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}.

string base_processor_version = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TrainProcessorVersionRequest.Builder

This builder for chaining.

clearCustomDocumentExtractionOptions()

public TrainProcessorVersionRequest.Builder clearCustomDocumentExtractionOptions()

Options to control Custom Document Extraction (CDE) Processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5;

Returns
TypeDescription
TrainProcessorVersionRequest.Builder

clearDocumentSchema()

public TrainProcessorVersionRequest.Builder clearDocumentSchema()

Optional. The schema the processor version will be trained with.

.google.cloud.documentai.v1.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TrainProcessorVersionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearInputData()

public TrainProcessorVersionRequest.Builder clearInputData()

Optional. The input data used to train the ProcessorVersion.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TrainProcessorVersionRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public TrainProcessorVersionRequest.Builder clearParent()

Required. The parent (project, location and processor) to create the new version for. Format: projects/{project}/locations/{location}/processors/{processor}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
TrainProcessorVersionRequest.Builder

This builder for chaining.

clearProcessorFlags()

public TrainProcessorVersionRequest.Builder clearProcessorFlags()
Returns
TypeDescription
TrainProcessorVersionRequest.Builder

clearProcessorVersion()

public TrainProcessorVersionRequest.Builder clearProcessorVersion()

Required. The processor version to be created.

.google.cloud.documentai.v1.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TrainProcessorVersionRequest.Builder

clone()

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

getBaseProcessorVersion()

public String getBaseProcessorVersion()

Optional. The processor version to use as a base for training. This processor version must be a child of parent. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}.

string base_processor_version = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The baseProcessorVersion.

getBaseProcessorVersionBytes()

public ByteString getBaseProcessorVersionBytes()

Optional. The processor version to use as a base for training. This processor version must be a child of parent. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}.

string base_processor_version = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for baseProcessorVersion.

getCustomDocumentExtractionOptions()

public TrainProcessorVersionRequest.CustomDocumentExtractionOptions getCustomDocumentExtractionOptions()

Options to control Custom Document Extraction (CDE) Processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5;

Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions

The customDocumentExtractionOptions.

getCustomDocumentExtractionOptionsBuilder()

public TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder getCustomDocumentExtractionOptionsBuilder()

Options to control Custom Document Extraction (CDE) Processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5;

Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder

getCustomDocumentExtractionOptionsOrBuilder()

public TrainProcessorVersionRequest.CustomDocumentExtractionOptionsOrBuilder getCustomDocumentExtractionOptionsOrBuilder()

Options to control Custom Document Extraction (CDE) Processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5;

Returns
TypeDescription
TrainProcessorVersionRequest.CustomDocumentExtractionOptionsOrBuilder

getDefaultInstanceForType()

public TrainProcessorVersionRequest getDefaultInstanceForType()
Returns
TypeDescription
TrainProcessorVersionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocumentSchema()

public DocumentSchema getDocumentSchema()

Optional. The schema the processor version will be trained with.

.google.cloud.documentai.v1.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DocumentSchema

The documentSchema.

getDocumentSchemaBuilder()

public DocumentSchema.Builder getDocumentSchemaBuilder()

Optional. The schema the processor version will be trained with.

.google.cloud.documentai.v1.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DocumentSchema.Builder

getDocumentSchemaOrBuilder()

public DocumentSchemaOrBuilder getDocumentSchemaOrBuilder()

Optional. The schema the processor version will be trained with.

.google.cloud.documentai.v1.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DocumentSchemaOrBuilder

getInputData()

public TrainProcessorVersionRequest.InputData getInputData()

Optional. The input data used to train the ProcessorVersion.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TrainProcessorVersionRequest.InputData

The inputData.

getInputDataBuilder()

public TrainProcessorVersionRequest.InputData.Builder getInputDataBuilder()

Optional. The input data used to train the ProcessorVersion.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TrainProcessorVersionRequest.InputData.Builder

getInputDataOrBuilder()

public TrainProcessorVersionRequest.InputDataOrBuilder getInputDataOrBuilder()

Optional. The input data used to train the ProcessorVersion.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
TrainProcessorVersionRequest.InputDataOrBuilder

getParent()

public String getParent()

Required. The parent (project, location and processor) to create the new version for. Format: projects/{project}/locations/{location}/processors/{processor}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent (project, location and processor) to create the new version for. Format: projects/{project}/locations/{location}/processors/{processor}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getProcessorFlagsCase()

public TrainProcessorVersionRequest.ProcessorFlagsCase getProcessorFlagsCase()
Returns
TypeDescription
TrainProcessorVersionRequest.ProcessorFlagsCase

getProcessorVersion()

public ProcessorVersion getProcessorVersion()

Required. The processor version to be created.

.google.cloud.documentai.v1.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProcessorVersion

The processorVersion.

getProcessorVersionBuilder()

public ProcessorVersion.Builder getProcessorVersionBuilder()

Required. The processor version to be created.

.google.cloud.documentai.v1.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProcessorVersion.Builder

getProcessorVersionOrBuilder()

public ProcessorVersionOrBuilder getProcessorVersionOrBuilder()

Required. The processor version to be created.

.google.cloud.documentai.v1.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProcessorVersionOrBuilder

hasCustomDocumentExtractionOptions()

public boolean hasCustomDocumentExtractionOptions()

Options to control Custom Document Extraction (CDE) Processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5;

Returns
TypeDescription
boolean

Whether the customDocumentExtractionOptions field is set.

hasDocumentSchema()

public boolean hasDocumentSchema()

Optional. The schema the processor version will be trained with.

.google.cloud.documentai.v1.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the documentSchema field is set.

hasInputData()

public boolean hasInputData()

Optional. The input data used to train the ProcessorVersion.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the inputData field is set.

hasProcessorVersion()

public boolean hasProcessorVersion()

Required. The processor version to be created.

.google.cloud.documentai.v1.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the processorVersion field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCustomDocumentExtractionOptions(TrainProcessorVersionRequest.CustomDocumentExtractionOptions value)

public TrainProcessorVersionRequest.Builder mergeCustomDocumentExtractionOptions(TrainProcessorVersionRequest.CustomDocumentExtractionOptions value)

Options to control Custom Document Extraction (CDE) Processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5;

Parameter
NameDescription
valueTrainProcessorVersionRequest.CustomDocumentExtractionOptions
Returns
TypeDescription
TrainProcessorVersionRequest.Builder

mergeDocumentSchema(DocumentSchema value)

public TrainProcessorVersionRequest.Builder mergeDocumentSchema(DocumentSchema value)

Optional. The schema the processor version will be trained with.

.google.cloud.documentai.v1.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDocumentSchema
Returns
TypeDescription
TrainProcessorVersionRequest.Builder

mergeFrom(TrainProcessorVersionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInputData(TrainProcessorVersionRequest.InputData value)

public TrainProcessorVersionRequest.Builder mergeInputData(TrainProcessorVersionRequest.InputData value)

Optional. The input data used to train the ProcessorVersion.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueTrainProcessorVersionRequest.InputData
Returns
TypeDescription
TrainProcessorVersionRequest.Builder

mergeProcessorVersion(ProcessorVersion value)

public TrainProcessorVersionRequest.Builder mergeProcessorVersion(ProcessorVersion value)

Required. The processor version to be created.

.google.cloud.documentai.v1.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueProcessorVersion
Returns
TypeDescription
TrainProcessorVersionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBaseProcessorVersion(String value)

public TrainProcessorVersionRequest.Builder setBaseProcessorVersion(String value)

Optional. The processor version to use as a base for training. This processor version must be a child of parent. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}.

string base_processor_version = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The baseProcessorVersion to set.

Returns
TypeDescription
TrainProcessorVersionRequest.Builder

This builder for chaining.

setBaseProcessorVersionBytes(ByteString value)

public TrainProcessorVersionRequest.Builder setBaseProcessorVersionBytes(ByteString value)

Optional. The processor version to use as a base for training. This processor version must be a child of parent. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}.

string base_processor_version = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for baseProcessorVersion to set.

Returns
TypeDescription
TrainProcessorVersionRequest.Builder

This builder for chaining.

setCustomDocumentExtractionOptions(TrainProcessorVersionRequest.CustomDocumentExtractionOptions value)

public TrainProcessorVersionRequest.Builder setCustomDocumentExtractionOptions(TrainProcessorVersionRequest.CustomDocumentExtractionOptions value)

Options to control Custom Document Extraction (CDE) Processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5;

Parameter
NameDescription
valueTrainProcessorVersionRequest.CustomDocumentExtractionOptions
Returns
TypeDescription
TrainProcessorVersionRequest.Builder

setCustomDocumentExtractionOptions(TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder builderForValue)

public TrainProcessorVersionRequest.Builder setCustomDocumentExtractionOptions(TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder builderForValue)

Options to control Custom Document Extraction (CDE) Processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5;

Parameter
NameDescription
builderForValueTrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder
Returns
TypeDescription
TrainProcessorVersionRequest.Builder

setDocumentSchema(DocumentSchema value)

public TrainProcessorVersionRequest.Builder setDocumentSchema(DocumentSchema value)

Optional. The schema the processor version will be trained with.

.google.cloud.documentai.v1.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueDocumentSchema
Returns
TypeDescription
TrainProcessorVersionRequest.Builder

setDocumentSchema(DocumentSchema.Builder builderForValue)

public TrainProcessorVersionRequest.Builder setDocumentSchema(DocumentSchema.Builder builderForValue)

Optional. The schema the processor version will be trained with.

.google.cloud.documentai.v1.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueDocumentSchema.Builder
Returns
TypeDescription
TrainProcessorVersionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInputData(TrainProcessorVersionRequest.InputData value)

public TrainProcessorVersionRequest.Builder setInputData(TrainProcessorVersionRequest.InputData value)

Optional. The input data used to train the ProcessorVersion.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueTrainProcessorVersionRequest.InputData
Returns
TypeDescription
TrainProcessorVersionRequest.Builder

setInputData(TrainProcessorVersionRequest.InputData.Builder builderForValue)

public TrainProcessorVersionRequest.Builder setInputData(TrainProcessorVersionRequest.InputData.Builder builderForValue)

Optional. The input data used to train the ProcessorVersion.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL];

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

setParent(String value)

public TrainProcessorVersionRequest.Builder setParent(String value)

Required. The parent (project, location and processor) to create the new version for. Format: projects/{project}/locations/{location}/processors/{processor}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
TrainProcessorVersionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public TrainProcessorVersionRequest.Builder setParentBytes(ByteString value)

Required. The parent (project, location and processor) to create the new version for. Format: projects/{project}/locations/{location}/processors/{processor}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
TrainProcessorVersionRequest.Builder

This builder for chaining.

setProcessorVersion(ProcessorVersion value)

public TrainProcessorVersionRequest.Builder setProcessorVersion(ProcessorVersion value)

Required. The processor version to be created.

.google.cloud.documentai.v1.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueProcessorVersion
Returns
TypeDescription
TrainProcessorVersionRequest.Builder

setProcessorVersion(ProcessorVersion.Builder builderForValue)

public TrainProcessorVersionRequest.Builder setProcessorVersion(ProcessorVersion.Builder builderForValue)

Required. The processor version to be created.

.google.cloud.documentai.v1.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueProcessorVersion.Builder
Returns
TypeDescription
TrainProcessorVersionRequest.Builder

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

public TrainProcessorVersionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TrainProcessorVersionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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