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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EvaluateProcessorVersionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public EvaluateProcessorVersionRequest build()
Returns
buildPartial()
public EvaluateProcessorVersionRequest buildPartial()
Returns
clear()
public EvaluateProcessorVersionRequest.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public EvaluateProcessorVersionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public EvaluateProcessorVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public EvaluateProcessorVersionRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public EvaluateProcessorVersionRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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.v1beta3.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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
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
Returns
mergeFrom(EvaluateProcessorVersionRequest other)
public EvaluateProcessorVersionRequest.Builder mergeFrom(EvaluateProcessorVersionRequest other)
Parameter
Returns
public EvaluateProcessorVersionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public EvaluateProcessorVersionRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EvaluateProcessorVersionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public EvaluateProcessorVersionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EvaluateProcessorVersionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final EvaluateProcessorVersionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides