Class EvaluateProcessorVersionRequest.Builder (2.33.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.v1beta3.EvaluateProcessorVersionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EvaluateProcessorVersionRequest build()
Returns
TypeDescription
EvaluateProcessorVersionRequest

buildPartial()

public EvaluateProcessorVersionRequest buildPartial()
Returns
TypeDescription
EvaluateProcessorVersionRequest

clear()

public EvaluateProcessorVersionRequest.Builder clear()
Returns
TypeDescription
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.v1beta3.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
EvaluateProcessorVersionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public EvaluateProcessorVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
EvaluateProcessorVersionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public EvaluateProcessorVersionRequest getDefaultInstanceForType()
Returns
TypeDescription
EvaluateProcessorVersionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1beta3.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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.v1beta3.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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.v1beta3.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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.v1beta3.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the evaluationDocuments field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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.v1beta3.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueBatchDocumentsInputConfig
Returns
TypeDescription
EvaluateProcessorVersionRequest.Builder

mergeFrom(EvaluateProcessorVersionRequest other)

public EvaluateProcessorVersionRequest.Builder mergeFrom(EvaluateProcessorVersionRequest other)
Parameter
NameDescription
otherEvaluateProcessorVersionRequest
Returns
TypeDescription
EvaluateProcessorVersionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EvaluateProcessorVersionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta3.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueBatchDocumentsInputConfig
Returns
TypeDescription
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.v1beta3.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBatchDocumentsInputConfig.Builder
Returns
TypeDescription
EvaluateProcessorVersionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public EvaluateProcessorVersionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The processorVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for processorVersion to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EvaluateProcessorVersionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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