Class ProcessDocumentRequest (2.46.0)

public final class ProcessDocumentRequest extends GeneratedMessageV3 implements ProcessDocumentRequestOrBuilder

Request to process one document.

Protobuf type google.cloud.documentai.v1beta2.ProcessDocumentRequest

Static Fields

AUTOML_PARAMS_FIELD_NUMBER

public static final int AUTOML_PARAMS_FIELD_NUMBER
Field Value
Type Description
int

DOCUMENT_TYPE_FIELD_NUMBER

public static final int DOCUMENT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

ENTITY_EXTRACTION_PARAMS_FIELD_NUMBER

public static final int ENTITY_EXTRACTION_PARAMS_FIELD_NUMBER
Field Value
Type Description
int

FORM_EXTRACTION_PARAMS_FIELD_NUMBER

public static final int FORM_EXTRACTION_PARAMS_FIELD_NUMBER
Field Value
Type Description
int

INPUT_CONFIG_FIELD_NUMBER

public static final int INPUT_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

OCR_PARAMS_FIELD_NUMBER

public static final int OCR_PARAMS_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_CONFIG_FIELD_NUMBER

public static final int OUTPUT_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

TABLE_EXTRACTION_PARAMS_FIELD_NUMBER

public static final int TABLE_EXTRACTION_PARAMS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ProcessDocumentRequest getDefaultInstance()
Returns
Type Description
ProcessDocumentRequest

getDescriptor()

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

newBuilder()

public static ProcessDocumentRequest.Builder newBuilder()
Returns
Type Description
ProcessDocumentRequest.Builder

newBuilder(ProcessDocumentRequest prototype)

public static ProcessDocumentRequest.Builder newBuilder(ProcessDocumentRequest prototype)
Parameter
Name Description
prototype ProcessDocumentRequest
Returns
Type Description
ProcessDocumentRequest.Builder

parseDelimitedFrom(InputStream input)

public static ProcessDocumentRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProcessDocumentRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProcessDocumentRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProcessDocumentRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ProcessDocumentRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ProcessDocumentRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProcessDocumentRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProcessDocumentRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProcessDocumentRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ProcessDocumentRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProcessDocumentRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProcessDocumentRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProcessDocumentRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ProcessDocumentRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProcessDocumentRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProcessDocumentRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ProcessDocumentRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ProcessDocumentRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProcessDocumentRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProcessDocumentRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ProcessDocumentRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ProcessDocumentRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProcessDocumentRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ProcessDocumentRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ProcessDocumentRequest> parser()
Returns
Type Description
Parser<ProcessDocumentRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAutomlParams()

public AutoMlParams getAutomlParams()

Controls AutoML model prediction behavior. AutoMlParams cannot be used together with other Params.

.google.cloud.documentai.v1beta2.AutoMlParams automl_params = 8;

Returns
Type Description
AutoMlParams

The automlParams.

getAutomlParamsOrBuilder()

public AutoMlParamsOrBuilder getAutomlParamsOrBuilder()

Controls AutoML model prediction behavior. AutoMlParams cannot be used together with other Params.

.google.cloud.documentai.v1beta2.AutoMlParams automl_params = 8;

Returns
Type Description
AutoMlParamsOrBuilder

getDefaultInstanceForType()

public ProcessDocumentRequest getDefaultInstanceForType()
Returns
Type Description
ProcessDocumentRequest

getDocumentType()

public String getDocumentType()

Specifies a known document type for deeper structure detection. Valid values are currently "general" and "invoice". If not provided, "general"\ is used as default. If any other value is given, the request is rejected.

string document_type = 3;

Returns
Type Description
String

The documentType.

getDocumentTypeBytes()

public ByteString getDocumentTypeBytes()

Specifies a known document type for deeper structure detection. Valid values are currently "general" and "invoice". If not provided, "general"\ is used as default. If any other value is given, the request is rejected.

string document_type = 3;

Returns
Type Description
ByteString

The bytes for documentType.

getEntityExtractionParams()

public EntityExtractionParams getEntityExtractionParams()

Controls entity extraction behavior. If not specified, the system will decide reasonable defaults.

.google.cloud.documentai.v1beta2.EntityExtractionParams entity_extraction_params = 6;

Returns
Type Description
EntityExtractionParams

The entityExtractionParams.

getEntityExtractionParamsOrBuilder()

public EntityExtractionParamsOrBuilder getEntityExtractionParamsOrBuilder()

Controls entity extraction behavior. If not specified, the system will decide reasonable defaults.

.google.cloud.documentai.v1beta2.EntityExtractionParams entity_extraction_params = 6;

Returns
Type Description
EntityExtractionParamsOrBuilder

getFormExtractionParams()

public FormExtractionParams getFormExtractionParams()

Controls form extraction behavior. If not specified, the system will decide reasonable defaults.

.google.cloud.documentai.v1beta2.FormExtractionParams form_extraction_params = 5;

Returns
Type Description
FormExtractionParams

The formExtractionParams.

getFormExtractionParamsOrBuilder()

public FormExtractionParamsOrBuilder getFormExtractionParamsOrBuilder()

Controls form extraction behavior. If not specified, the system will decide reasonable defaults.

.google.cloud.documentai.v1beta2.FormExtractionParams form_extraction_params = 5;

Returns
Type Description
FormExtractionParamsOrBuilder

getInputConfig()

public InputConfig getInputConfig()

Required. Information about the input file.

.google.cloud.documentai.v1beta2.InputConfig input_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InputConfig

The inputConfig.

getInputConfigOrBuilder()

public InputConfigOrBuilder getInputConfigOrBuilder()

Required. Information about the input file.

.google.cloud.documentai.v1beta2.InputConfig input_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InputConfigOrBuilder

getOcrParams()

public OcrParams getOcrParams()

Controls OCR behavior. If not specified, the system will decide reasonable defaults.

.google.cloud.documentai.v1beta2.OcrParams ocr_params = 7;

Returns
Type Description
OcrParams

The ocrParams.

getOcrParamsOrBuilder()

public OcrParamsOrBuilder getOcrParamsOrBuilder()

Controls OCR behavior. If not specified, the system will decide reasonable defaults.

.google.cloud.documentai.v1beta2.OcrParams ocr_params = 7;

Returns
Type Description
OcrParamsOrBuilder

getOutputConfig()

public OutputConfig getOutputConfig()

The desired output location. This field is only needed in BatchProcessDocumentsRequest.

.google.cloud.documentai.v1beta2.OutputConfig output_config = 2;

Returns
Type Description
OutputConfig

The outputConfig.

getOutputConfigOrBuilder()

public OutputConfigOrBuilder getOutputConfigOrBuilder()

The desired output location. This field is only needed in BatchProcessDocumentsRequest.

.google.cloud.documentai.v1beta2.OutputConfig output_config = 2;

Returns
Type Description
OutputConfigOrBuilder

getParent()

public String getParent()

Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically. This field is only populated when used in ProcessDocument method.

string parent = 9;

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically. This field is only populated when used in ProcessDocument method.

string parent = 9;

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

public Parser<ProcessDocumentRequest> getParserForType()
Returns
Type Description
Parser<ProcessDocumentRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTableExtractionParams()

public TableExtractionParams getTableExtractionParams()

Controls table extraction behavior. If not specified, the system will decide reasonable defaults.

.google.cloud.documentai.v1beta2.TableExtractionParams table_extraction_params = 4;

Returns
Type Description
TableExtractionParams

The tableExtractionParams.

getTableExtractionParamsOrBuilder()

public TableExtractionParamsOrBuilder getTableExtractionParamsOrBuilder()

Controls table extraction behavior. If not specified, the system will decide reasonable defaults.

.google.cloud.documentai.v1beta2.TableExtractionParams table_extraction_params = 4;

Returns
Type Description
TableExtractionParamsOrBuilder

hasAutomlParams()

public boolean hasAutomlParams()

Controls AutoML model prediction behavior. AutoMlParams cannot be used together with other Params.

.google.cloud.documentai.v1beta2.AutoMlParams automl_params = 8;

Returns
Type Description
boolean

Whether the automlParams field is set.

hasEntityExtractionParams()

public boolean hasEntityExtractionParams()

Controls entity extraction behavior. If not specified, the system will decide reasonable defaults.

.google.cloud.documentai.v1beta2.EntityExtractionParams entity_extraction_params = 6;

Returns
Type Description
boolean

Whether the entityExtractionParams field is set.

hasFormExtractionParams()

public boolean hasFormExtractionParams()

Controls form extraction behavior. If not specified, the system will decide reasonable defaults.

.google.cloud.documentai.v1beta2.FormExtractionParams form_extraction_params = 5;

Returns
Type Description
boolean

Whether the formExtractionParams field is set.

hasInputConfig()

public boolean hasInputConfig()

Required. Information about the input file.

.google.cloud.documentai.v1beta2.InputConfig input_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the inputConfig field is set.

hasOcrParams()

public boolean hasOcrParams()

Controls OCR behavior. If not specified, the system will decide reasonable defaults.

.google.cloud.documentai.v1beta2.OcrParams ocr_params = 7;

Returns
Type Description
boolean

Whether the ocrParams field is set.

hasOutputConfig()

public boolean hasOutputConfig()

The desired output location. This field is only needed in BatchProcessDocumentsRequest.

.google.cloud.documentai.v1beta2.OutputConfig output_config = 2;

Returns
Type Description
boolean

Whether the outputConfig field is set.

hasTableExtractionParams()

public boolean hasTableExtractionParams()

Controls table extraction behavior. If not specified, the system will decide reasonable defaults.

.google.cloud.documentai.v1beta2.TableExtractionParams table_extraction_params = 4;

Returns
Type Description
boolean

Whether the tableExtractionParams field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ProcessDocumentRequest.Builder newBuilderForType()
Returns
Type Description
ProcessDocumentRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProcessDocumentRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ProcessDocumentRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ProcessDocumentRequest.Builder toBuilder()
Returns
Type Description
ProcessDocumentRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException