Class TrainProcessorVersionRequest.Builder (2.57.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TrainProcessorVersionRequest build()
Returns
Type Description
TrainProcessorVersionRequest

buildPartial()

public TrainProcessorVersionRequest buildPartial()
Returns
Type Description
TrainProcessorVersionRequest

clear()

public TrainProcessorVersionRequest.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
TrainProcessorVersionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFoundationModelTuningOptions()

public TrainProcessorVersionRequest.Builder clearFoundationModelTuningOptions()

Options to control foundation model tuning of a processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions foundation_model_tuning_options = 12;

Returns
Type Description
TrainProcessorVersionRequest.Builder

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
Type Description
TrainProcessorVersionRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public TrainProcessorVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
TrainProcessorVersionRequest.Builder

This builder for chaining.

clearProcessorFlags()

public TrainProcessorVersionRequest.Builder clearProcessorFlags()
Returns
Type Description
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
Type Description
TrainProcessorVersionRequest.Builder

clone()

public TrainProcessorVersionRequest.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
TrainProcessorVersionRequest.CustomDocumentExtractionOptionsOrBuilder

getDefaultInstanceForType()

public TrainProcessorVersionRequest getDefaultInstanceForType()
Returns
Type Description
TrainProcessorVersionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
DocumentSchemaOrBuilder

getFoundationModelTuningOptions()

public TrainProcessorVersionRequest.FoundationModelTuningOptions getFoundationModelTuningOptions()

Options to control foundation model tuning of a processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions foundation_model_tuning_options = 12;

Returns
Type Description
TrainProcessorVersionRequest.FoundationModelTuningOptions

The foundationModelTuningOptions.

getFoundationModelTuningOptionsBuilder()

public TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder getFoundationModelTuningOptionsBuilder()

Options to control foundation model tuning of a processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions foundation_model_tuning_options = 12;

Returns
Type Description
TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder

getFoundationModelTuningOptionsOrBuilder()

public TrainProcessorVersionRequest.FoundationModelTuningOptionsOrBuilder getFoundationModelTuningOptionsOrBuilder()

Options to control foundation model tuning of a processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions foundation_model_tuning_options = 12;

Returns
Type Description
TrainProcessorVersionRequest.FoundationModelTuningOptionsOrBuilder

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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for parent.

getProcessorFlagsCase()

public TrainProcessorVersionRequest.ProcessorFlagsCase getProcessorFlagsCase()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the documentSchema field is set.

hasFoundationModelTuningOptions()

public boolean hasFoundationModelTuningOptions()

Options to control foundation model tuning of a processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions foundation_model_tuning_options = 12;

Returns
Type Description
boolean

Whether the foundationModelTuningOptions 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
Type Description
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
Type Description
boolean

Whether the processorVersion field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value TrainProcessorVersionRequest.CustomDocumentExtractionOptions
Returns
Type Description
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
Name Description
value DocumentSchema
Returns
Type Description
TrainProcessorVersionRequest.Builder

mergeFoundationModelTuningOptions(TrainProcessorVersionRequest.FoundationModelTuningOptions value)

public TrainProcessorVersionRequest.Builder mergeFoundationModelTuningOptions(TrainProcessorVersionRequest.FoundationModelTuningOptions value)

Options to control foundation model tuning of a processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions foundation_model_tuning_options = 12;

Parameter
Name Description
value TrainProcessorVersionRequest.FoundationModelTuningOptions
Returns
Type Description
TrainProcessorVersionRequest.Builder

mergeFrom(TrainProcessorVersionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TrainProcessorVersionRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value TrainProcessorVersionRequest.InputData
Returns
Type Description
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
Name Description
value ProcessorVersion
Returns
Type Description
TrainProcessorVersionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TrainProcessorVersionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The baseProcessorVersion to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for baseProcessorVersion to set.

Returns
Type Description
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
Name Description
value TrainProcessorVersionRequest.CustomDocumentExtractionOptions
Returns
Type Description
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
Name Description
builderForValue TrainProcessorVersionRequest.CustomDocumentExtractionOptions.Builder
Returns
Type Description
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
Name Description
value DocumentSchema
Returns
Type Description
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
Name Description
builderForValue DocumentSchema.Builder
Returns
Type Description
TrainProcessorVersionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFoundationModelTuningOptions(TrainProcessorVersionRequest.FoundationModelTuningOptions value)

public TrainProcessorVersionRequest.Builder setFoundationModelTuningOptions(TrainProcessorVersionRequest.FoundationModelTuningOptions value)

Options to control foundation model tuning of a processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions foundation_model_tuning_options = 12;

Parameter
Name Description
value TrainProcessorVersionRequest.FoundationModelTuningOptions
Returns
Type Description
TrainProcessorVersionRequest.Builder

setFoundationModelTuningOptions(TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder builderForValue)

public TrainProcessorVersionRequest.Builder setFoundationModelTuningOptions(TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder builderForValue)

Options to control foundation model tuning of a processor.

.google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions foundation_model_tuning_options = 12;

Parameter
Name Description
builderForValue TrainProcessorVersionRequest.FoundationModelTuningOptions.Builder
Returns
Type Description
TrainProcessorVersionRequest.Builder

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
Name Description
value TrainProcessorVersionRequest.InputData
Returns
Type Description
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
Name Description
builderForValue TrainProcessorVersionRequest.InputData.Builder
Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
value ProcessorVersion
Returns
Type Description
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
Name Description
builderForValue ProcessorVersion.Builder
Returns
Type Description
TrainProcessorVersionRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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