Class EvaluateProcessorVersionRequest.Builder (2.51.0)

public static final class EvaluateProcessorVersionRequest.Builder extends GeneratedMessageV3.Builder<EvaluateProcessorVersionRequest.Builder> implements EvaluateProcessorVersionRequestOrBuilder

Evaluates the given ProcessorVersion against the supplied documents.

Protobuf type google.cloud.documentai.v1.EvaluateProcessorVersionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EvaluateProcessorVersionRequest build()
Returns
Type Description
EvaluateProcessorVersionRequest

buildPartial()

public EvaluateProcessorVersionRequest buildPartial()
Returns
Type Description
EvaluateProcessorVersionRequest

clear()

public EvaluateProcessorVersionRequest.Builder clear()
Returns
Type Description
EvaluateProcessorVersionRequest.Builder
Overrides

clearEvaluationDocuments()

public EvaluateProcessorVersionRequest.Builder clearEvaluationDocuments()

Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input.

.google.cloud.documentai.v1.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluateProcessorVersionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProcessorVersion()

public EvaluateProcessorVersionRequest.Builder clearProcessorVersion()

Required. The resource name of the ProcessorVersion to evaluate. projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

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

Returns
Type Description
EvaluateProcessorVersionRequest.Builder

This builder for chaining.

clone()

public EvaluateProcessorVersionRequest.Builder clone()
Returns
Type Description
EvaluateProcessorVersionRequest.Builder
Overrides

getDefaultInstanceForType()

public EvaluateProcessorVersionRequest getDefaultInstanceForType()
Returns
Type Description
EvaluateProcessorVersionRequest

getDescriptorForType()

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

getEvaluationDocuments()

public BatchDocumentsInputConfig getEvaluationDocuments()

Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input.

.google.cloud.documentai.v1.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BatchDocumentsInputConfig

The evaluationDocuments.

getEvaluationDocumentsBuilder()

public BatchDocumentsInputConfig.Builder getEvaluationDocumentsBuilder()

Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input.

.google.cloud.documentai.v1.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BatchDocumentsInputConfig.Builder

getEvaluationDocumentsOrBuilder()

public BatchDocumentsInputConfigOrBuilder getEvaluationDocumentsOrBuilder()

Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input.

.google.cloud.documentai.v1.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BatchDocumentsInputConfigOrBuilder

getProcessorVersion()

public String getProcessorVersion()

Required. The resource name of the ProcessorVersion to evaluate. projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

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

Returns
Type Description
String

The processorVersion.

getProcessorVersionBytes()

public ByteString getProcessorVersionBytes()

Required. The resource name of the ProcessorVersion to evaluate. projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

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

Returns
Type Description
ByteString

The bytes for processorVersion.

hasEvaluationDocuments()

public boolean hasEvaluationDocuments()

Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input.

.google.cloud.documentai.v1.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the evaluationDocuments field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEvaluationDocuments(BatchDocumentsInputConfig value)

public EvaluateProcessorVersionRequest.Builder mergeEvaluationDocuments(BatchDocumentsInputConfig value)

Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input.

.google.cloud.documentai.v1.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BatchDocumentsInputConfig
Returns
Type Description
EvaluateProcessorVersionRequest.Builder

mergeFrom(EvaluateProcessorVersionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEvaluationDocuments(BatchDocumentsInputConfig value)

public EvaluateProcessorVersionRequest.Builder setEvaluationDocuments(BatchDocumentsInputConfig value)

Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input.

.google.cloud.documentai.v1.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value BatchDocumentsInputConfig
Returns
Type Description
EvaluateProcessorVersionRequest.Builder

setEvaluationDocuments(BatchDocumentsInputConfig.Builder builderForValue)

public EvaluateProcessorVersionRequest.Builder setEvaluationDocuments(BatchDocumentsInputConfig.Builder builderForValue)

Optional. The documents used in the evaluation. If unspecified, use the processor's dataset as evaluation input.

.google.cloud.documentai.v1.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue BatchDocumentsInputConfig.Builder
Returns
Type Description
EvaluateProcessorVersionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProcessorVersion(String value)

public EvaluateProcessorVersionRequest.Builder setProcessorVersion(String value)

Required. The resource name of the ProcessorVersion to evaluate. projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

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

Parameter
Name Description
value String

The processorVersion to set.

Returns
Type Description
EvaluateProcessorVersionRequest.Builder

This builder for chaining.

setProcessorVersionBytes(ByteString value)

public EvaluateProcessorVersionRequest.Builder setProcessorVersionBytes(ByteString value)

Required. The resource name of the ProcessorVersion to evaluate. projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

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

Parameter
Name Description
value ByteString

The bytes for processorVersion to set.

Returns
Type Description
EvaluateProcessorVersionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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