Package com.google.cloud.documentai.v1
Interface ProcessOptionsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ProcessOptions,ProcessOptions.Builder
@Generated
public interface ProcessOptionsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintOnly 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`.Optional.Optional.booleanOnly process certain pages from the end, same as above.booleanOnly process certain pages from the start.booleanWhich pages to process (1-indexed).booleanOptional.booleanOnly applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasIndividualPageSelector
boolean hasIndividualPageSelector()Which pages to process (1-indexed).
.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;- Returns:
- Whether the individualPageSelector field is set.
-
getIndividualPageSelector
ProcessOptions.IndividualPageSelector getIndividualPageSelector()Which pages to process (1-indexed).
.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5;- Returns:
- The individualPageSelector.
-
getIndividualPageSelectorOrBuilder
ProcessOptions.IndividualPageSelectorOrBuilder getIndividualPageSelectorOrBuilder()Which pages to process (1-indexed).
.google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5; -
hasFromStart
boolean hasFromStart()Only process certain pages from the start. Process all if the document has fewer pages.
int32 from_start = 6;- Returns:
- Whether the fromStart field is set.
-
getFromStart
int getFromStart()Only process certain pages from the start. Process all if the document has fewer pages.
int32 from_start = 6;- Returns:
- The fromStart.
-
hasFromEnd
boolean hasFromEnd()Only process certain pages from the end, same as above.
int32 from_end = 7;- Returns:
- Whether the fromEnd field is set.
-
getFromEnd
int getFromEnd()Only process certain pages from the end, same as above.
int32 from_end = 7;- Returns:
- The fromEnd.
-
hasOcrConfig
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;- Returns:
- Whether the ocrConfig field is set.
-
getOcrConfig
OcrConfig 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;- Returns:
- The ocrConfig.
-
getOcrConfigOrBuilder
OcrConfigOrBuilder 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; -
hasLayoutConfig
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];- Returns:
- Whether the layoutConfig field is set.
-
getLayoutConfig
ProcessOptions.LayoutConfig 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];- Returns:
- The layoutConfig.
-
getLayoutConfigOrBuilder
ProcessOptions.LayoutConfigOrBuilder 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]; -
hasSchemaOverride
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];- Returns:
- Whether the schemaOverride field is set.
-
getSchemaOverride
DocumentSchema 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];- Returns:
- The schemaOverride.
-
getSchemaOverrideOrBuilder
DocumentSchemaOrBuilder 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]; -
getPageRangeCase
ProcessOptions.PageRangeCase getPageRangeCase()
-