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 class
ProcessDocumentRequest.Builder
Request 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 int
DOCUMENT_TYPE_FIELD_NUMBER
static int
ENTITY_EXTRACTION_PARAMS_FIELD_NUMBER
static int
FORM_EXTRACTION_PARAMS_FIELD_NUMBER
static int
INPUT_CONFIG_FIELD_NUMBER
static int
OCR_PARAMS_FIELD_NUMBER
static int
OUTPUT_CONFIG_FIELD_NUMBER
static int
TABLE_EXTRACTION_PARAMS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static ProcessDocumentRequest
getDefaultInstance()
ProcessDocumentRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDocumentType()
Specifies a known document type for deeper structure detection.com.google.protobuf.ByteString
getDocumentTypeBytes()
Specifies a known document type for deeper structure detection.EntityExtractionParams
getEntityExtractionParams()
Controls entity extraction behavior.EntityExtractionParamsOrBuilder
getEntityExtractionParamsOrBuilder()
Controls entity extraction behavior.FormExtractionParams
getFormExtractionParams()
Controls form extraction behavior.FormExtractionParamsOrBuilder
getFormExtractionParamsOrBuilder()
Controls form extraction behavior.InputConfig
getInputConfig()
Required.InputConfigOrBuilder
getInputConfigOrBuilder()
Required.OcrParams
getOcrParams()
Controls OCR behavior.OcrParamsOrBuilder
getOcrParamsOrBuilder()
Controls OCR behavior.OutputConfig
getOutputConfig()
Required.OutputConfigOrBuilder
getOutputConfigOrBuilder()
Required.com.google.protobuf.Parser<ProcessDocumentRequest>
getParserForType()
int
getSerializedSize()
TableExtractionParams
getTableExtractionParams()
Controls table extraction behavior.TableExtractionParamsOrBuilder
getTableExtractionParamsOrBuilder()
Controls table extraction behavior.boolean
hasEntityExtractionParams()
Controls entity extraction behavior.boolean
hasFormExtractionParams()
Controls form extraction behavior.int
hashCode()
boolean
hasInputConfig()
Required.boolean
hasOcrParams()
Controls OCR behavior.boolean
hasOutputConfig()
Required.boolean
hasTableExtractionParams()
Controls table extraction behavior.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ProcessDocumentRequest.Builder
newBuilder()
static ProcessDocumentRequest.Builder
newBuilder(ProcessDocumentRequest prototype)
ProcessDocumentRequest.Builder
newBuilderForType()
protected ProcessDocumentRequest.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ProcessDocumentRequest
parseDelimitedFrom(InputStream input)
static ProcessDocumentRequest
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProcessDocumentRequest
parseFrom(byte[] data)
static ProcessDocumentRequest
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProcessDocumentRequest
parseFrom(com.google.protobuf.ByteString data)
static ProcessDocumentRequest
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProcessDocumentRequest
parseFrom(com.google.protobuf.CodedInputStream input)
static ProcessDocumentRequest
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProcessDocumentRequest
parseFrom(InputStream input)
static ProcessDocumentRequest
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProcessDocumentRequest
parseFrom(ByteBuffer data)
static ProcessDocumentRequest
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ProcessDocumentRequest>
parser()
ProcessDocumentRequest.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
hasInputConfig
in 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:
getInputConfig
in 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:
getInputConfigOrBuilder
in 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:
hasOutputConfig
in 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:
getOutputConfig
in 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:
getOutputConfigOrBuilder
in 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:
getDocumentType
in 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:
getDocumentTypeBytes
in 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:
hasTableExtractionParams
in 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:
getTableExtractionParams
in 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:
getTableExtractionParamsOrBuilder
in 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:
hasFormExtractionParams
in 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:
getFormExtractionParams
in 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:
getFormExtractionParamsOrBuilder
in 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:
hasEntityExtractionParams
in 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:
getEntityExtractionParams
in 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:
getEntityExtractionParamsOrBuilder
in 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:
hasOcrParams
in 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:
getOcrParams
in 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:
getOcrParamsOrBuilder
in interfaceProcessDocumentRequestOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProcessDocumentRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ProcessDocumentRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-