public final class ProcessOptions extends com.google.protobuf.GeneratedMessageV3 implements ProcessOptionsOrBuilder
Options for Process APIProtobuf type
google.cloud.documentai.v1beta3.ProcessOptions| Modifier and Type | Class and Description |
|---|---|
static class |
ProcessOptions.Builder
Options for Process API
Protobuf type
google.cloud.documentai.v1beta3.ProcessOptions |
static class |
ProcessOptions.IndividualPageSelector
A list of individual page numbers.
|
static interface |
ProcessOptions.IndividualPageSelectorOrBuilder |
static class |
ProcessOptions.LayoutConfig
Serving config for layout parser processor.
|
static interface |
ProcessOptions.LayoutConfigOrBuilder |
static class |
ProcessOptions.PageRangeCase |
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| Modifier and Type | Field and Description |
|---|---|
static int |
FROM_END_FIELD_NUMBER |
static int |
FROM_START_FIELD_NUMBER |
static int |
INDIVIDUAL_PAGE_SELECTOR_FIELD_NUMBER |
static int |
LAYOUT_CONFIG_FIELD_NUMBER |
static int |
OCR_CONFIG_FIELD_NUMBER |
static int |
SCHEMA_OVERRIDE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static ProcessOptions |
getDefaultInstance() |
ProcessOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getFromEnd()
Only process certain pages from the end, same as above.
|
int |
getFromStart()
Only process certain pages from the start.
|
ProcessOptions.IndividualPageSelector |
getIndividualPageSelector()
Which pages to process (1-indexed).
|
ProcessOptions.IndividualPageSelectorOrBuilder |
getIndividualPageSelectorOrBuilder()
Which pages to process (1-indexed).
|
ProcessOptions.LayoutConfig |
getLayoutConfig()
Optional.
|
ProcessOptions.LayoutConfigOrBuilder |
getLayoutConfigOrBuilder()
Optional.
|
OcrConfig |
getOcrConfig()
Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.
|
OcrConfigOrBuilder |
getOcrConfigOrBuilder()
Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.
|
ProcessOptions.PageRangeCase |
getPageRangeCase() |
com.google.protobuf.Parser<ProcessOptions> |
getParserForType() |
DocumentSchema |
getSchemaOverride()
Optional.
|
DocumentSchemaOrBuilder |
getSchemaOverrideOrBuilder()
Optional.
|
int |
getSerializedSize() |
boolean |
hasFromEnd()
Only process certain pages from the end, same as above.
|
boolean |
hasFromStart()
Only process certain pages from the start.
|
int |
hashCode() |
boolean |
hasIndividualPageSelector()
Which pages to process (1-indexed).
|
boolean |
hasLayoutConfig()
Optional.
|
boolean |
hasOcrConfig()
Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.
|
boolean |
hasSchemaOverride()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ProcessOptions.Builder |
newBuilder() |
static ProcessOptions.Builder |
newBuilder(ProcessOptions prototype) |
ProcessOptions.Builder |
newBuilderForType() |
protected ProcessOptions.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ProcessOptions |
parseDelimitedFrom(InputStream input) |
static ProcessOptions |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProcessOptions |
parseFrom(byte[] data) |
static ProcessOptions |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProcessOptions |
parseFrom(ByteBuffer data) |
static ProcessOptions |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProcessOptions |
parseFrom(com.google.protobuf.ByteString data) |
static ProcessOptions |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProcessOptions |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ProcessOptions |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ProcessOptions |
parseFrom(InputStream input) |
static ProcessOptions |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ProcessOptions> |
parser() |
ProcessOptions.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int INDIVIDUAL_PAGE_SELECTOR_FIELD_NUMBER
public static final int FROM_START_FIELD_NUMBER
public static final int FROM_END_FIELD_NUMBER
public static final int OCR_CONFIG_FIELD_NUMBER
public static final int LAYOUT_CONFIG_FIELD_NUMBER
public static final int SCHEMA_OVERRIDE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ProcessOptions.PageRangeCase getPageRangeCase()
getPageRangeCase in interface ProcessOptionsOrBuilderpublic boolean hasIndividualPageSelector()
Which pages to process (1-indexed).
.google.cloud.documentai.v1beta3.ProcessOptions.IndividualPageSelector individual_page_selector = 5;
hasIndividualPageSelector in interface ProcessOptionsOrBuilderpublic ProcessOptions.IndividualPageSelector getIndividualPageSelector()
Which pages to process (1-indexed).
.google.cloud.documentai.v1beta3.ProcessOptions.IndividualPageSelector individual_page_selector = 5;
getIndividualPageSelector in interface ProcessOptionsOrBuilderpublic ProcessOptions.IndividualPageSelectorOrBuilder getIndividualPageSelectorOrBuilder()
Which pages to process (1-indexed).
.google.cloud.documentai.v1beta3.ProcessOptions.IndividualPageSelector individual_page_selector = 5;
getIndividualPageSelectorOrBuilder in interface ProcessOptionsOrBuilderpublic boolean hasFromStart()
Only process certain pages from the start. Process all if the document has fewer pages.
int32 from_start = 6;hasFromStart in interface ProcessOptionsOrBuilderpublic int getFromStart()
Only process certain pages from the start. Process all if the document has fewer pages.
int32 from_start = 6;getFromStart in interface ProcessOptionsOrBuilderpublic boolean hasFromEnd()
Only process certain pages from the end, same as above.
int32 from_end = 7;hasFromEnd in interface ProcessOptionsOrBuilderpublic int getFromEnd()
Only process certain pages from the end, same as above.
int32 from_end = 7;getFromEnd in interface ProcessOptionsOrBuilderpublic boolean hasOcrConfig()
Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types.
.google.cloud.documentai.v1beta3.OcrConfig ocr_config = 1;hasOcrConfig in interface ProcessOptionsOrBuilderpublic OcrConfig getOcrConfig()
Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types.
.google.cloud.documentai.v1beta3.OcrConfig ocr_config = 1;getOcrConfig in interface ProcessOptionsOrBuilderpublic OcrConfigOrBuilder getOcrConfigOrBuilder()
Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. Returns error if set on other processor types.
.google.cloud.documentai.v1beta3.OcrConfig ocr_config = 1;getOcrConfigOrBuilder in interface ProcessOptionsOrBuilderpublic boolean hasLayoutConfig()
Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types.
.google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig layout_config = 9 [(.google.api.field_behavior) = OPTIONAL];
hasLayoutConfig in interface ProcessOptionsOrBuilderpublic ProcessOptions.LayoutConfig getLayoutConfig()
Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types.
.google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig layout_config = 9 [(.google.api.field_behavior) = OPTIONAL];
getLayoutConfig in interface ProcessOptionsOrBuilderpublic ProcessOptions.LayoutConfigOrBuilder getLayoutConfigOrBuilder()
Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. Returns error if set on other processor types.
.google.cloud.documentai.v1beta3.ProcessOptions.LayoutConfig layout_config = 9 [(.google.api.field_behavior) = OPTIONAL];
getLayoutConfigOrBuilder in interface ProcessOptionsOrBuilderpublic boolean hasSchemaOverride()
Optional. Override the schema of the [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]. Will return an Invalid Argument error if this field is set when the underlying [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion] doesn't support schema override.
.google.cloud.documentai.v1beta3.DocumentSchema schema_override = 8 [(.google.api.field_behavior) = OPTIONAL];
hasSchemaOverride in interface ProcessOptionsOrBuilderpublic DocumentSchema getSchemaOverride()
Optional. Override the schema of the [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]. Will return an Invalid Argument error if this field is set when the underlying [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion] doesn't support schema override.
.google.cloud.documentai.v1beta3.DocumentSchema schema_override = 8 [(.google.api.field_behavior) = OPTIONAL];
getSchemaOverride in interface ProcessOptionsOrBuilderpublic DocumentSchemaOrBuilder getSchemaOverrideOrBuilder()
Optional. Override the schema of the [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]. Will return an Invalid Argument error if this field is set when the underlying [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion] doesn't support schema override.
.google.cloud.documentai.v1beta3.DocumentSchema schema_override = 8 [(.google.api.field_behavior) = OPTIONAL];
getSchemaOverrideOrBuilder in interface ProcessOptionsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ProcessOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProcessOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProcessOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProcessOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProcessOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProcessOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ProcessOptions parseFrom(InputStream input) throws IOException
IOExceptionpublic static ProcessOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ProcessOptions parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ProcessOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ProcessOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ProcessOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ProcessOptions.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ProcessOptions.Builder newBuilder()
public static ProcessOptions.Builder newBuilder(ProcessOptions prototype)
public ProcessOptions.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ProcessOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ProcessOptions getDefaultInstance()
public static com.google.protobuf.Parser<ProcessOptions> parser()
public com.google.protobuf.Parser<ProcessOptions> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ProcessOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.