public final class ProcessDocumentRequest extends GeneratedMessageV3 implements ProcessDocumentRequestOrBuilder
Request to process one document.
Protobuf type google.cloud.documentai.v1beta1.ProcessDocumentRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
Static Fields
DOCUMENT_TYPE_FIELD_NUMBER
public static final int DOCUMENT_TYPE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int ENTITY_EXTRACTION_PARAMS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int FORM_EXTRACTION_PARAMS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
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 | |
public static final int TABLE_EXTRACTION_PARAMS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static ProcessDocumentRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ProcessDocumentRequest.Builder newBuilder()
newBuilder(ProcessDocumentRequest prototype)
public static ProcessDocumentRequest.Builder newBuilder(ProcessDocumentRequest prototype)
public static ProcessDocumentRequest parseDelimitedFrom(InputStream input)
public static ProcessDocumentRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ProcessDocumentRequest parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProcessDocumentRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ProcessDocumentRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProcessDocumentRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProcessDocumentRequest parseFrom(CodedInputStream input)
public static ProcessDocumentRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ProcessDocumentRequest parseFrom(InputStream input)
public static ProcessDocumentRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ProcessDocumentRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProcessDocumentRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ProcessDocumentRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public ProcessDocumentRequest getDefaultInstanceForType()
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.
|
public EntityExtractionParams getEntityExtractionParams()
Controls entity extraction behavior. If not specified, the system will
decide reasonable defaults.
.google.cloud.documentai.v1beta1.EntityExtractionParams entity_extraction_params = 6;
public EntityExtractionParamsOrBuilder getEntityExtractionParamsOrBuilder()
Controls entity extraction behavior. If not specified, the system will
decide reasonable defaults.
.google.cloud.documentai.v1beta1.EntityExtractionParams entity_extraction_params = 6;
public FormExtractionParams getFormExtractionParams()
Controls form extraction behavior. If not specified, the system will
decide reasonable defaults.
.google.cloud.documentai.v1beta1.FormExtractionParams form_extraction_params = 5;
public FormExtractionParamsOrBuilder getFormExtractionParamsOrBuilder()
Controls form extraction behavior. If not specified, the system will
decide reasonable defaults.
.google.cloud.documentai.v1beta1.FormExtractionParams form_extraction_params = 5;
public InputConfig getInputConfig()
Required. Information about the input file.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1 [(.google.api.field_behavior) = REQUIRED];
public InputConfigOrBuilder getInputConfigOrBuilder()
Required. Information about the input file.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1 [(.google.api.field_behavior) = REQUIRED];
getOcrParams()
public OcrParams getOcrParams()
Controls OCR behavior. If not specified, the system will decide reasonable
defaults.
.google.cloud.documentai.v1beta1.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.v1beta1.OcrParams ocr_params = 7;
getOutputConfig()
public OutputConfig getOutputConfig()
Required. The desired output location.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
getOutputConfigOrBuilder()
public OutputConfigOrBuilder getOutputConfigOrBuilder()
Required. The desired output location.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
getParserForType()
public Parser<ProcessDocumentRequest> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
public TableExtractionParams getTableExtractionParams()
Controls table extraction behavior. If not specified, the system will
decide reasonable defaults.
.google.cloud.documentai.v1beta1.TableExtractionParams table_extraction_params = 4;
public TableExtractionParamsOrBuilder getTableExtractionParamsOrBuilder()
Controls table extraction behavior. If not specified, the system will
decide reasonable defaults.
.google.cloud.documentai.v1beta1.TableExtractionParams table_extraction_params = 4;
public boolean hasEntityExtractionParams()
Controls entity extraction behavior. If not specified, the system will
decide reasonable defaults.
.google.cloud.documentai.v1beta1.EntityExtractionParams entity_extraction_params = 6;
Returns |
---|
Type | Description |
boolean | Whether the entityExtractionParams field is set.
|
public boolean hasFormExtractionParams()
Controls form extraction behavior. If not specified, the system will
decide reasonable defaults.
.google.cloud.documentai.v1beta1.FormExtractionParams form_extraction_params = 5;
Returns |
---|
Type | Description |
boolean | Whether the formExtractionParams field is set.
|
public boolean hasInputConfig()
Required. Information about the input file.
.google.cloud.documentai.v1beta1.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.v1beta1.OcrParams ocr_params = 7;
Returns |
---|
Type | Description |
boolean | Whether the ocrParams field is set.
|
hasOutputConfig()
public boolean hasOutputConfig()
Required. The desired output location.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the outputConfig field is set.
|
public boolean hasTableExtractionParams()
Controls table extraction behavior. If not specified, the system will
decide reasonable defaults.
.google.cloud.documentai.v1beta1.TableExtractionParams table_extraction_params = 4;
Returns |
---|
Type | Description |
boolean | Whether the tableExtractionParams field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ProcessDocumentRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ProcessDocumentRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ProcessDocumentRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides