Package com.google.cloud.documentai.v1
Class ProcessOptions
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.ProcessOptions
- All Implemented Interfaces:
ProcessOptionsOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ProcessOptions
extends com.google.protobuf.GeneratedMessage
implements ProcessOptionsOrBuilder
Options for Process APIProtobuf type
google.cloud.documentai.v1.ProcessOptions- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOptions for Process APIstatic final classA list of individual page numbers.static interfacestatic final classServing config for layout parser processor.static interfacestatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ProcessOptionsstatic final com.google.protobuf.Descriptors.DescriptorintOnly process certain pages from the end, same as above.intOnly process certain pages from the start.Which pages to process (1-indexed).Which pages to process (1-indexed).Optional.Optional.Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.com.google.protobuf.Parser<ProcessOptions>Optional.Optional.intbooleanOnly process certain pages from the end, same as above.booleanOnly process certain pages from the start.inthashCode()booleanWhich pages to process (1-indexed).booleanOptional.booleanOnly applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ProcessOptions.Builderstatic ProcessOptions.BuildernewBuilder(ProcessOptions prototype) protected ProcessOptions.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ProcessOptionsparseDelimitedFrom(InputStream input) static ProcessOptionsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessOptionsparseFrom(byte[] data) static ProcessOptionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessOptionsparseFrom(com.google.protobuf.ByteString data) static ProcessOptionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessOptionsparseFrom(com.google.protobuf.CodedInputStream input) static ProcessOptionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessOptionsparseFrom(InputStream input) static ProcessOptionsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessOptionsparseFrom(ByteBuffer data) static ProcessOptionsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ProcessOptions>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
INDIVIDUAL_PAGE_SELECTOR_FIELD_NUMBER
public static final int INDIVIDUAL_PAGE_SELECTOR_FIELD_NUMBER- See Also:
-
FROM_START_FIELD_NUMBER
public static final int FROM_START_FIELD_NUMBER- See Also:
-
FROM_END_FIELD_NUMBER
public static final int FROM_END_FIELD_NUMBER- See Also:
-
OCR_CONFIG_FIELD_NUMBER
public static final int OCR_CONFIG_FIELD_NUMBER- See Also:
-
LAYOUT_CONFIG_FIELD_NUMBER
public static final int LAYOUT_CONFIG_FIELD_NUMBER- See Also:
-
SCHEMA_OVERRIDE_FIELD_NUMBER
public static final int SCHEMA_OVERRIDE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getPageRangeCase
- Specified by:
getPageRangeCasein interfaceProcessOptionsOrBuilder
-
hasIndividualPageSelector
public boolean hasIndividualPageSelector()Which pages to process (1-indexed).
.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;- Specified by:
hasIndividualPageSelectorin interfaceProcessOptionsOrBuilder- Returns:
- Whether the individualPageSelector field is set.
-
getIndividualPageSelector
Which pages to process (1-indexed).
.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;- Specified by:
getIndividualPageSelectorin interfaceProcessOptionsOrBuilder- Returns:
- The individualPageSelector.
-
getIndividualPageSelectorOrBuilder
Which pages to process (1-indexed).
.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;- Specified by:
getIndividualPageSelectorOrBuilderin interfaceProcessOptionsOrBuilder
-
hasFromStart
public boolean hasFromStart()Only process certain pages from the start. Process all if the document has fewer pages.
int32 from_start = 6;- Specified by:
hasFromStartin interfaceProcessOptionsOrBuilder- Returns:
- Whether the fromStart field is set.
-
getFromStart
public int getFromStart()Only process certain pages from the start. Process all if the document has fewer pages.
int32 from_start = 6;- Specified by:
getFromStartin interfaceProcessOptionsOrBuilder- Returns:
- The fromStart.
-
hasFromEnd
public boolean hasFromEnd()Only process certain pages from the end, same as above.
int32 from_end = 7;- Specified by:
hasFromEndin interfaceProcessOptionsOrBuilder- Returns:
- Whether the fromEnd field is set.
-
getFromEnd
public int getFromEnd()Only process certain pages from the end, same as above.
int32 from_end = 7;- Specified by:
getFromEndin interfaceProcessOptionsOrBuilder- Returns:
- The fromEnd.
-
hasOcrConfig
public boolean hasOcrConfig()Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types.
.google.cloud.documentai.v1.OcrConfig ocr_config = 1;- Specified by:
hasOcrConfigin interfaceProcessOptionsOrBuilder- Returns:
- Whether the ocrConfig field is set.
-
getOcrConfig
Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types.
.google.cloud.documentai.v1.OcrConfig ocr_config = 1;- Specified by:
getOcrConfigin interfaceProcessOptionsOrBuilder- Returns:
- The ocrConfig.
-
getOcrConfigOrBuilder
Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types.
.google.cloud.documentai.v1.OcrConfig ocr_config = 1;- Specified by:
getOcrConfigOrBuilderin interfaceProcessOptionsOrBuilder
-
hasLayoutConfig
public boolean hasLayoutConfig()Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types.
.google.cloud.documentai.v1.ProcessOptions.LayoutConfig layout_config = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasLayoutConfigin interfaceProcessOptionsOrBuilder- Returns:
- Whether the layoutConfig field is set.
-
getLayoutConfig
Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types.
.google.cloud.documentai.v1.ProcessOptions.LayoutConfig layout_config = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLayoutConfigin interfaceProcessOptionsOrBuilder- Returns:
- The layoutConfig.
-
getLayoutConfigOrBuilder
Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types.
.google.cloud.documentai.v1.ProcessOptions.LayoutConfig layout_config = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLayoutConfigOrBuilderin interfaceProcessOptionsOrBuilder
-
hasSchemaOverride
public boolean hasSchemaOverride()Optional. Override the schema of the [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Will return an Invalid Argument error if this field is set when the underlying [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] doesn't support schema override.
.google.cloud.documentai.v1.DocumentSchema schema_override = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSchemaOverridein interfaceProcessOptionsOrBuilder- Returns:
- Whether the schemaOverride field is set.
-
getSchemaOverride
Optional. Override the schema of the [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Will return an Invalid Argument error if this field is set when the underlying [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] doesn't support schema override.
.google.cloud.documentai.v1.DocumentSchema schema_override = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSchemaOverridein interfaceProcessOptionsOrBuilder- Returns:
- The schemaOverride.
-
getSchemaOverrideOrBuilder
Optional. Override the schema of the [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Will return an Invalid Argument error if this field is set when the underlying [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] doesn't support schema override.
.google.cloud.documentai.v1.DocumentSchema schema_override = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSchemaOverrideOrBuilderin interfaceProcessOptionsOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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 ProcessOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ProcessOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ProcessOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ProcessOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ProcessOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProcessOptions.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-