Class ProcessDocumentRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1beta1.ProcessDocumentRequest
-
- All Implemented Interfaces:
ProcessDocumentRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ProcessDocumentRequest extends com.google.protobuf.GeneratedMessageV3 implements ProcessDocumentRequestOrBuilder
Request to process one document.
Protobuf typegoogle.cloud.documentai.v1beta1.ProcessDocumentRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProcessDocumentRequest.BuilderRequest to process one document.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDOCUMENT_TYPE_FIELD_NUMBERstatic intENTITY_EXTRACTION_PARAMS_FIELD_NUMBERstatic intFORM_EXTRACTION_PARAMS_FIELD_NUMBERstatic intINPUT_CONFIG_FIELD_NUMBERstatic intOCR_PARAMS_FIELD_NUMBERstatic intOUTPUT_CONFIG_FIELD_NUMBERstatic intTABLE_EXTRACTION_PARAMS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ProcessDocumentRequestgetDefaultInstance()ProcessDocumentRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDocumentType()Specifies a known document type for deeper structure detection.com.google.protobuf.ByteStringgetDocumentTypeBytes()Specifies a known document type for deeper structure detection.EntityExtractionParamsgetEntityExtractionParams()Controls entity extraction behavior.EntityExtractionParamsOrBuildergetEntityExtractionParamsOrBuilder()Controls entity extraction behavior.FormExtractionParamsgetFormExtractionParams()Controls form extraction behavior.FormExtractionParamsOrBuildergetFormExtractionParamsOrBuilder()Controls form extraction behavior.InputConfiggetInputConfig()Required.InputConfigOrBuildergetInputConfigOrBuilder()Required.OcrParamsgetOcrParams()Controls OCR behavior.OcrParamsOrBuildergetOcrParamsOrBuilder()Controls OCR behavior.OutputConfiggetOutputConfig()Required.OutputConfigOrBuildergetOutputConfigOrBuilder()Required.com.google.protobuf.Parser<ProcessDocumentRequest>getParserForType()intgetSerializedSize()TableExtractionParamsgetTableExtractionParams()Controls table extraction behavior.TableExtractionParamsOrBuildergetTableExtractionParamsOrBuilder()Controls table extraction behavior.booleanhasEntityExtractionParams()Controls entity extraction behavior.booleanhasFormExtractionParams()Controls form extraction behavior.inthashCode()booleanhasInputConfig()Required.booleanhasOcrParams()Controls OCR behavior.booleanhasOutputConfig()Required.booleanhasTableExtractionParams()Controls table extraction behavior.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ProcessDocumentRequest.BuildernewBuilder()static ProcessDocumentRequest.BuildernewBuilder(ProcessDocumentRequest prototype)ProcessDocumentRequest.BuildernewBuilderForType()protected ProcessDocumentRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ProcessDocumentRequestparseDelimitedFrom(InputStream input)static ProcessDocumentRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessDocumentRequestparseFrom(byte[] data)static ProcessDocumentRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessDocumentRequestparseFrom(com.google.protobuf.ByteString data)static ProcessDocumentRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessDocumentRequestparseFrom(com.google.protobuf.CodedInputStream input)static ProcessDocumentRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessDocumentRequestparseFrom(InputStream input)static ProcessDocumentRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProcessDocumentRequestparseFrom(ByteBuffer data)static ProcessDocumentRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ProcessDocumentRequest>parser()ProcessDocumentRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
INPUT_CONFIG_FIELD_NUMBER
public static final int INPUT_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OUTPUT_CONFIG_FIELD_NUMBER
public static final int OUTPUT_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOCUMENT_TYPE_FIELD_NUMBER
public static final int DOCUMENT_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TABLE_EXTRACTION_PARAMS_FIELD_NUMBER
public static final int TABLE_EXTRACTION_PARAMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FORM_EXTRACTION_PARAMS_FIELD_NUMBER
public static final int FORM_EXTRACTION_PARAMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENTITY_EXTRACTION_PARAMS_FIELD_NUMBER
public static final int ENTITY_EXTRACTION_PARAMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OCR_PARAMS_FIELD_NUMBER
public static final int OCR_PARAMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasInputConfig
public boolean hasInputConfig()
Required. Information about the input file.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasInputConfigin interfaceProcessDocumentRequestOrBuilder- Returns:
- Whether the inputConfig field is set.
-
getInputConfig
public InputConfig getInputConfig()
Required. Information about the input file.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputConfigin interfaceProcessDocumentRequestOrBuilder- Returns:
- The inputConfig.
-
getInputConfigOrBuilder
public InputConfigOrBuilder getInputConfigOrBuilder()
Required. Information about the input file.
.google.cloud.documentai.v1beta1.InputConfig input_config = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInputConfigOrBuilderin interfaceProcessDocumentRequestOrBuilder
-
hasOutputConfig
public boolean hasOutputConfig()
Required. The desired output location.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasOutputConfigin interfaceProcessDocumentRequestOrBuilder- Returns:
- Whether the outputConfig field is set.
-
getOutputConfig
public OutputConfig getOutputConfig()
Required. The desired output location.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOutputConfigin interfaceProcessDocumentRequestOrBuilder- Returns:
- The outputConfig.
-
getOutputConfigOrBuilder
public OutputConfigOrBuilder getOutputConfigOrBuilder()
Required. The desired output location.
.google.cloud.documentai.v1beta1.OutputConfig output_config = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOutputConfigOrBuilderin interfaceProcessDocumentRequestOrBuilder
-
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;- Specified by:
getDocumentTypein interfaceProcessDocumentRequestOrBuilder- Returns:
- The documentType.
-
getDocumentTypeBytes
public com.google.protobuf.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;- Specified by:
getDocumentTypeBytesin interfaceProcessDocumentRequestOrBuilder- Returns:
- The bytes for documentType.
-
hasTableExtractionParams
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;- Specified by:
hasTableExtractionParamsin interfaceProcessDocumentRequestOrBuilder- Returns:
- Whether the tableExtractionParams field is set.
-
getTableExtractionParams
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;- Specified by:
getTableExtractionParamsin interfaceProcessDocumentRequestOrBuilder- Returns:
- The tableExtractionParams.
-
getTableExtractionParamsOrBuilder
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;- Specified by:
getTableExtractionParamsOrBuilderin interfaceProcessDocumentRequestOrBuilder
-
hasFormExtractionParams
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;- Specified by:
hasFormExtractionParamsin interfaceProcessDocumentRequestOrBuilder- Returns:
- Whether the formExtractionParams field is set.
-
getFormExtractionParams
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;- Specified by:
getFormExtractionParamsin interfaceProcessDocumentRequestOrBuilder- Returns:
- The formExtractionParams.
-
getFormExtractionParamsOrBuilder
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;- Specified by:
getFormExtractionParamsOrBuilderin interfaceProcessDocumentRequestOrBuilder
-
hasEntityExtractionParams
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;- Specified by:
hasEntityExtractionParamsin interfaceProcessDocumentRequestOrBuilder- Returns:
- Whether the entityExtractionParams field is set.
-
getEntityExtractionParams
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;- Specified by:
getEntityExtractionParamsin interfaceProcessDocumentRequestOrBuilder- Returns:
- The entityExtractionParams.
-
getEntityExtractionParamsOrBuilder
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;- Specified by:
getEntityExtractionParamsOrBuilderin interfaceProcessDocumentRequestOrBuilder
-
hasOcrParams
public boolean hasOcrParams()
Controls OCR behavior. If not specified, the system will decide reasonable defaults.
.google.cloud.documentai.v1beta1.OcrParams ocr_params = 7;- Specified by:
hasOcrParamsin interfaceProcessDocumentRequestOrBuilder- Returns:
- Whether the ocrParams field is set.
-
getOcrParams
public OcrParams getOcrParams()
Controls OCR behavior. If not specified, the system will decide reasonable defaults.
.google.cloud.documentai.v1beta1.OcrParams ocr_params = 7;- Specified by:
getOcrParamsin interfaceProcessDocumentRequestOrBuilder- Returns:
- 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;- Specified by:
getOcrParamsOrBuilderin interfaceProcessDocumentRequestOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ProcessDocumentRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessDocumentRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessDocumentRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessDocumentRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessDocumentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessDocumentRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessDocumentRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ProcessDocumentRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ProcessDocumentRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ProcessDocumentRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ProcessDocumentRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ProcessDocumentRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ProcessDocumentRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ProcessDocumentRequest.Builder newBuilder()
-
newBuilder
public static ProcessDocumentRequest.Builder newBuilder(ProcessDocumentRequest prototype)
-
toBuilder
public ProcessDocumentRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProcessDocumentRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ProcessDocumentRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ProcessDocumentRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<ProcessDocumentRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ProcessDocumentRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-