Interface ProcessDocumentRequestOrBuilder (2.31.0)

public interface ProcessDocumentRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAutomlParams()

public abstract AutoMlParams getAutomlParams()

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

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

Returns
TypeDescription
AutoMlParams

The automlParams.

getAutomlParamsOrBuilder()

public abstract AutoMlParamsOrBuilder getAutomlParamsOrBuilder()

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

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

Returns
TypeDescription
AutoMlParamsOrBuilder

getDocumentType()

public abstract 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
TypeDescription
String

The documentType.

getDocumentTypeBytes()

public abstract 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
TypeDescription
ByteString

The bytes for documentType.

getEntityExtractionParams()

public abstract 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
TypeDescription
EntityExtractionParams

The entityExtractionParams.

getEntityExtractionParamsOrBuilder()

public abstract 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
TypeDescription
EntityExtractionParamsOrBuilder

getFormExtractionParams()

public abstract 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
TypeDescription
FormExtractionParams

The formExtractionParams.

getFormExtractionParamsOrBuilder()

public abstract 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
TypeDescription
FormExtractionParamsOrBuilder

getInputConfig()

public abstract InputConfig getInputConfig()

Required. Information about the input file.

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

Returns
TypeDescription
InputConfig

The inputConfig.

getInputConfigOrBuilder()

public abstract InputConfigOrBuilder getInputConfigOrBuilder()

Required. Information about the input file.

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

Returns
TypeDescription
InputConfigOrBuilder

getOcrParams()

public abstract OcrParams getOcrParams()

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

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

Returns
TypeDescription
OcrParams

The ocrParams.

getOcrParamsOrBuilder()

public abstract OcrParamsOrBuilder getOcrParamsOrBuilder()

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

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

Returns
TypeDescription
OcrParamsOrBuilder

getOutputConfig()

public abstract OutputConfig getOutputConfig()

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

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

Returns
TypeDescription
OutputConfig

The outputConfig.

getOutputConfigOrBuilder()

public abstract OutputConfigOrBuilder getOutputConfigOrBuilder()

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

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

Returns
TypeDescription
OutputConfigOrBuilder

getParent()

public abstract 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
TypeDescription
String

The parent.

getParentBytes()

public abstract 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
TypeDescription
ByteString

The bytes for parent.

getTableExtractionParams()

public abstract 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
TypeDescription
TableExtractionParams

The tableExtractionParams.

getTableExtractionParamsOrBuilder()

public abstract 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
TypeDescription
TableExtractionParamsOrBuilder

hasAutomlParams()

public abstract boolean hasAutomlParams()

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

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

Returns
TypeDescription
boolean

Whether the automlParams field is set.

hasEntityExtractionParams()

public abstract 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
TypeDescription
boolean

Whether the entityExtractionParams field is set.

hasFormExtractionParams()

public abstract 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
TypeDescription
boolean

Whether the formExtractionParams field is set.

hasInputConfig()

public abstract boolean hasInputConfig()

Required. Information about the input file.

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

Returns
TypeDescription
boolean

Whether the inputConfig field is set.

hasOcrParams()

public abstract boolean hasOcrParams()

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

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

Returns
TypeDescription
boolean

Whether the ocrParams field is set.

hasOutputConfig()

public abstract boolean hasOutputConfig()

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

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

Returns
TypeDescription
boolean

Whether the outputConfig field is set.

hasTableExtractionParams()

public abstract 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
TypeDescription
boolean

Whether the tableExtractionParams field is set.