Package com.google.cloud.documentai.v1
Class Document.Page
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1.Document.Page
-
- All Implemented Interfaces:
Document.PageOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Document
public static final class Document.Page extends com.google.protobuf.GeneratedMessageV3 implements Document.PageOrBuilder
A page in a [Document][google.cloud.documentai.v1.Document].
Protobuf typegoogle.cloud.documentai.v1.Document.Page- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocument.Page.BlockA block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.static interfaceDocument.Page.BlockOrBuilderstatic classDocument.Page.BuilderA page in a [Document][google.cloud.documentai.v1.Document].static classDocument.Page.DetectedBarcodeA detected barcode.static interfaceDocument.Page.DetectedBarcodeOrBuilderstatic classDocument.Page.DetectedLanguageDetected language for a structural component.static interfaceDocument.Page.DetectedLanguageOrBuilderstatic classDocument.Page.DimensionDimension for the page.static interfaceDocument.Page.DimensionOrBuilderstatic classDocument.Page.FormFieldA form field detected on the page.static interfaceDocument.Page.FormFieldOrBuilderstatic classDocument.Page.ImageRendered image contents for this page.static interfaceDocument.Page.ImageOrBuilderstatic classDocument.Page.ImageQualityScoresImage quality scores for the page image.static interfaceDocument.Page.ImageQualityScoresOrBuilderstatic classDocument.Page.LayoutVisual element describing a layout unit on a page.static interfaceDocument.Page.LayoutOrBuilderstatic classDocument.Page.LineA collection of tokens that a human would perceive as a line.static interfaceDocument.Page.LineOrBuilderstatic classDocument.Page.MatrixRepresentation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.static interfaceDocument.Page.MatrixOrBuilderstatic classDocument.Page.ParagraphA collection of lines that a human would perceive as a paragraph.static interfaceDocument.Page.ParagraphOrBuilderstatic classDocument.Page.SymbolA detected symbol.static interfaceDocument.Page.SymbolOrBuilderstatic classDocument.Page.TableA table representation similar to HTML table structure.static interfaceDocument.Page.TableOrBuilderstatic classDocument.Page.TokenA detected token.static interfaceDocument.Page.TokenOrBuilderstatic classDocument.Page.VisualElementDetected non-text visual elements e.g.static interfaceDocument.Page.VisualElementOrBuilder-
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 intBLOCKS_FIELD_NUMBERstatic intDETECTED_BARCODES_FIELD_NUMBERstatic intDETECTED_LANGUAGES_FIELD_NUMBERstatic intDIMENSION_FIELD_NUMBERstatic intFORM_FIELDS_FIELD_NUMBERstatic intIMAGE_FIELD_NUMBERstatic intIMAGE_QUALITY_SCORES_FIELD_NUMBERstatic intLAYOUT_FIELD_NUMBERstatic intLINES_FIELD_NUMBERstatic intPAGE_NUMBER_FIELD_NUMBERstatic intPARAGRAPHS_FIELD_NUMBERstatic intPROVENANCE_FIELD_NUMBERstatic intSYMBOLS_FIELD_NUMBERstatic intTABLES_FIELD_NUMBERstatic intTOKENS_FIELD_NUMBERstatic intTRANSFORMS_FIELD_NUMBERstatic intVISUAL_ELEMENTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)Document.Page.BlockgetBlocks(int index)A list of visually detected text blocks on the page.intgetBlocksCount()A list of visually detected text blocks on the page.List<Document.Page.Block>getBlocksList()A list of visually detected text blocks on the page.Document.Page.BlockOrBuildergetBlocksOrBuilder(int index)A list of visually detected text blocks on the page.List<? extends Document.Page.BlockOrBuilder>getBlocksOrBuilderList()A list of visually detected text blocks on the page.static Document.PagegetDefaultInstance()Document.PagegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Document.Page.DetectedBarcodegetDetectedBarcodes(int index)A list of detected barcodes.intgetDetectedBarcodesCount()A list of detected barcodes.List<Document.Page.DetectedBarcode>getDetectedBarcodesList()A list of detected barcodes.Document.Page.DetectedBarcodeOrBuildergetDetectedBarcodesOrBuilder(int index)A list of detected barcodes.List<? extends Document.Page.DetectedBarcodeOrBuilder>getDetectedBarcodesOrBuilderList()A list of detected barcodes.Document.Page.DetectedLanguagegetDetectedLanguages(int index)A list of detected languages together with confidence.intgetDetectedLanguagesCount()A list of detected languages together with confidence.List<Document.Page.DetectedLanguage>getDetectedLanguagesList()A list of detected languages together with confidence.Document.Page.DetectedLanguageOrBuildergetDetectedLanguagesOrBuilder(int index)A list of detected languages together with confidence.List<? extends Document.Page.DetectedLanguageOrBuilder>getDetectedLanguagesOrBuilderList()A list of detected languages together with confidence.Document.Page.DimensiongetDimension()Physical dimension of the page.Document.Page.DimensionOrBuildergetDimensionOrBuilder()Physical dimension of the page.Document.Page.FormFieldgetFormFields(int index)A list of visually detected form fields on the page.intgetFormFieldsCount()A list of visually detected form fields on the page.List<Document.Page.FormField>getFormFieldsList()A list of visually detected form fields on the page.Document.Page.FormFieldOrBuildergetFormFieldsOrBuilder(int index)A list of visually detected form fields on the page.List<? extends Document.Page.FormFieldOrBuilder>getFormFieldsOrBuilderList()A list of visually detected form fields on the page.Document.Page.ImagegetImage()Rendered image for this page.Document.Page.ImageOrBuildergetImageOrBuilder()Rendered image for this page.Document.Page.ImageQualityScoresgetImageQualityScores()Image quality scores.Document.Page.ImageQualityScoresOrBuildergetImageQualityScoresOrBuilder()Image quality scores.Document.Page.LayoutgetLayout()[Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page.Document.Page.LayoutOrBuildergetLayoutOrBuilder()[Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page.Document.Page.LinegetLines(int index)A list of visually detected text lines on the page.intgetLinesCount()A list of visually detected text lines on the page.List<Document.Page.Line>getLinesList()A list of visually detected text lines on the page.Document.Page.LineOrBuildergetLinesOrBuilder(int index)A list of visually detected text lines on the page.List<? extends Document.Page.LineOrBuilder>getLinesOrBuilderList()A list of visually detected text lines on the page.intgetPageNumber()1-based index for current [Page][google.cloud.documentai.v1.Document.Page] in a parent [Document][google.cloud.documentai.v1.Document].Document.Page.ParagraphgetParagraphs(int index)A list of visually detected text paragraphs on the page.intgetParagraphsCount()A list of visually detected text paragraphs on the page.List<Document.Page.Paragraph>getParagraphsList()A list of visually detected text paragraphs on the page.Document.Page.ParagraphOrBuildergetParagraphsOrBuilder(int index)A list of visually detected text paragraphs on the page.List<? extends Document.Page.ParagraphOrBuilder>getParagraphsOrBuilderList()A list of visually detected text paragraphs on the page.com.google.protobuf.Parser<Document.Page>getParserForType()Document.ProvenancegetProvenance()Deprecated.google.cloud.documentai.v1.Document.Page.provenance is deprecated.Document.ProvenanceOrBuildergetProvenanceOrBuilder()Deprecated.intgetSerializedSize()Document.Page.SymbolgetSymbols(int index)A list of visually detected symbols on the page.intgetSymbolsCount()A list of visually detected symbols on the page.List<Document.Page.Symbol>getSymbolsList()A list of visually detected symbols on the page.Document.Page.SymbolOrBuildergetSymbolsOrBuilder(int index)A list of visually detected symbols on the page.List<? extends Document.Page.SymbolOrBuilder>getSymbolsOrBuilderList()A list of visually detected symbols on the page.Document.Page.TablegetTables(int index)A list of visually detected tables on the page.intgetTablesCount()A list of visually detected tables on the page.List<Document.Page.Table>getTablesList()A list of visually detected tables on the page.Document.Page.TableOrBuildergetTablesOrBuilder(int index)A list of visually detected tables on the page.List<? extends Document.Page.TableOrBuilder>getTablesOrBuilderList()A list of visually detected tables on the page.Document.Page.TokengetTokens(int index)A list of visually detected tokens on the page.intgetTokensCount()A list of visually detected tokens on the page.List<Document.Page.Token>getTokensList()A list of visually detected tokens on the page.Document.Page.TokenOrBuildergetTokensOrBuilder(int index)A list of visually detected tokens on the page.List<? extends Document.Page.TokenOrBuilder>getTokensOrBuilderList()A list of visually detected tokens on the page.Document.Page.MatrixgetTransforms(int index)Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1.Document.Page.image].intgetTransformsCount()Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1.Document.Page.image].List<Document.Page.Matrix>getTransformsList()Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1.Document.Page.image].Document.Page.MatrixOrBuildergetTransformsOrBuilder(int index)Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1.Document.Page.image].List<? extends Document.Page.MatrixOrBuilder>getTransformsOrBuilderList()Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1.Document.Page.image].Document.Page.VisualElementgetVisualElements(int index)A list of detected non-text visual elements e.g.intgetVisualElementsCount()A list of detected non-text visual elements e.g.List<Document.Page.VisualElement>getVisualElementsList()A list of detected non-text visual elements e.g.Document.Page.VisualElementOrBuildergetVisualElementsOrBuilder(int index)A list of detected non-text visual elements e.g.List<? extends Document.Page.VisualElementOrBuilder>getVisualElementsOrBuilderList()A list of detected non-text visual elements e.g.booleanhasDimension()Physical dimension of the page.inthashCode()booleanhasImage()Rendered image for this page.booleanhasImageQualityScores()Image quality scores.booleanhasLayout()[Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page.booleanhasProvenance()Deprecated.google.cloud.documentai.v1.Document.Page.provenance is deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Document.Page.BuildernewBuilder()static Document.Page.BuildernewBuilder(Document.Page prototype)Document.Page.BuildernewBuilderForType()protected Document.Page.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Document.PageparseDelimitedFrom(InputStream input)static Document.PageparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.PageparseFrom(byte[] data)static Document.PageparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.PageparseFrom(com.google.protobuf.ByteString data)static Document.PageparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.PageparseFrom(com.google.protobuf.CodedInputStream input)static Document.PageparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.PageparseFrom(InputStream input)static Document.PageparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Document.PageparseFrom(ByteBuffer data)static Document.PageparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Document.Page>parser()Document.Page.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
-
PAGE_NUMBER_FIELD_NUMBER
public static final int PAGE_NUMBER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMAGE_FIELD_NUMBER
public static final int IMAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRANSFORMS_FIELD_NUMBER
public static final int TRANSFORMS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DIMENSION_FIELD_NUMBER
public static final int DIMENSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAYOUT_FIELD_NUMBER
public static final int LAYOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DETECTED_LANGUAGES_FIELD_NUMBER
public static final int DETECTED_LANGUAGES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BLOCKS_FIELD_NUMBER
public static final int BLOCKS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARAGRAPHS_FIELD_NUMBER
public static final int PARAGRAPHS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LINES_FIELD_NUMBER
public static final int LINES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOKENS_FIELD_NUMBER
public static final int TOKENS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VISUAL_ELEMENTS_FIELD_NUMBER
public static final int VISUAL_ELEMENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TABLES_FIELD_NUMBER
public static final int TABLES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FORM_FIELDS_FIELD_NUMBER
public static final int FORM_FIELDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYMBOLS_FIELD_NUMBER
public static final int SYMBOLS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DETECTED_BARCODES_FIELD_NUMBER
public static final int DETECTED_BARCODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMAGE_QUALITY_SCORES_FIELD_NUMBER
public static final int IMAGE_QUALITY_SCORES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROVENANCE_FIELD_NUMBER
public static final int PROVENANCE_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
-
getPageNumber
public int getPageNumber()
1-based index for current [Page][google.cloud.documentai.v1.Document.Page] in a parent [Document][google.cloud.documentai.v1.Document]. Useful when a page is taken out of a [Document][google.cloud.documentai.v1.Document] for individual processing.
int32 page_number = 1;- Specified by:
getPageNumberin interfaceDocument.PageOrBuilder- Returns:
- The pageNumber.
-
hasImage
public boolean hasImage()
Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned.
.google.cloud.documentai.v1.Document.Page.Image image = 13;- Specified by:
hasImagein interfaceDocument.PageOrBuilder- Returns:
- Whether the image field is set.
-
getImage
public Document.Page.Image getImage()
Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned.
.google.cloud.documentai.v1.Document.Page.Image image = 13;- Specified by:
getImagein interfaceDocument.PageOrBuilder- Returns:
- The image.
-
getImageOrBuilder
public Document.Page.ImageOrBuilder getImageOrBuilder()
Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned.
.google.cloud.documentai.v1.Document.Page.Image image = 13;- Specified by:
getImageOrBuilderin interfaceDocument.PageOrBuilder
-
getTransformsList
public List<Document.Page.Matrix> getTransformsList()
Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1.Document.Page.image].
repeated .google.cloud.documentai.v1.Document.Page.Matrix transforms = 14;- Specified by:
getTransformsListin interfaceDocument.PageOrBuilder
-
getTransformsOrBuilderList
public List<? extends Document.Page.MatrixOrBuilder> getTransformsOrBuilderList()
Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1.Document.Page.image].
repeated .google.cloud.documentai.v1.Document.Page.Matrix transforms = 14;- Specified by:
getTransformsOrBuilderListin interfaceDocument.PageOrBuilder
-
getTransformsCount
public int getTransformsCount()
Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1.Document.Page.image].
repeated .google.cloud.documentai.v1.Document.Page.Matrix transforms = 14;- Specified by:
getTransformsCountin interfaceDocument.PageOrBuilder
-
getTransforms
public Document.Page.Matrix getTransforms(int index)
Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1.Document.Page.image].
repeated .google.cloud.documentai.v1.Document.Page.Matrix transforms = 14;- Specified by:
getTransformsin interfaceDocument.PageOrBuilder
-
getTransformsOrBuilder
public Document.Page.MatrixOrBuilder getTransformsOrBuilder(int index)
Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1.Document.Page.image].
repeated .google.cloud.documentai.v1.Document.Page.Matrix transforms = 14;- Specified by:
getTransformsOrBuilderin interfaceDocument.PageOrBuilder
-
hasDimension
public boolean hasDimension()
Physical dimension of the page.
.google.cloud.documentai.v1.Document.Page.Dimension dimension = 2;- Specified by:
hasDimensionin interfaceDocument.PageOrBuilder- Returns:
- Whether the dimension field is set.
-
getDimension
public Document.Page.Dimension getDimension()
Physical dimension of the page.
.google.cloud.documentai.v1.Document.Page.Dimension dimension = 2;- Specified by:
getDimensionin interfaceDocument.PageOrBuilder- Returns:
- The dimension.
-
getDimensionOrBuilder
public Document.Page.DimensionOrBuilder getDimensionOrBuilder()
Physical dimension of the page.
.google.cloud.documentai.v1.Document.Page.Dimension dimension = 2;- Specified by:
getDimensionOrBuilderin interfaceDocument.PageOrBuilder
-
hasLayout
public boolean hasLayout()
[Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page.
.google.cloud.documentai.v1.Document.Page.Layout layout = 3;- Specified by:
hasLayoutin interfaceDocument.PageOrBuilder- Returns:
- Whether the layout field is set.
-
getLayout
public Document.Page.Layout getLayout()
[Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page.
.google.cloud.documentai.v1.Document.Page.Layout layout = 3;- Specified by:
getLayoutin interfaceDocument.PageOrBuilder- Returns:
- The layout.
-
getLayoutOrBuilder
public Document.Page.LayoutOrBuilder getLayoutOrBuilder()
[Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page.
.google.cloud.documentai.v1.Document.Page.Layout layout = 3;- Specified by:
getLayoutOrBuilderin interfaceDocument.PageOrBuilder
-
getDetectedLanguagesList
public List<Document.Page.DetectedLanguage> getDetectedLanguagesList()
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4;- Specified by:
getDetectedLanguagesListin interfaceDocument.PageOrBuilder
-
getDetectedLanguagesOrBuilderList
public List<? extends Document.Page.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList()
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4;- Specified by:
getDetectedLanguagesOrBuilderListin interfaceDocument.PageOrBuilder
-
getDetectedLanguagesCount
public int getDetectedLanguagesCount()
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4;- Specified by:
getDetectedLanguagesCountin interfaceDocument.PageOrBuilder
-
getDetectedLanguages
public Document.Page.DetectedLanguage getDetectedLanguages(int index)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4;- Specified by:
getDetectedLanguagesin interfaceDocument.PageOrBuilder
-
getDetectedLanguagesOrBuilder
public Document.Page.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder(int index)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4;- Specified by:
getDetectedLanguagesOrBuilderin interfaceDocument.PageOrBuilder
-
getBlocksList
public List<Document.Page.Block> getBlocksList()
A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.
repeated .google.cloud.documentai.v1.Document.Page.Block blocks = 5;- Specified by:
getBlocksListin interfaceDocument.PageOrBuilder
-
getBlocksOrBuilderList
public List<? extends Document.Page.BlockOrBuilder> getBlocksOrBuilderList()
A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.
repeated .google.cloud.documentai.v1.Document.Page.Block blocks = 5;- Specified by:
getBlocksOrBuilderListin interfaceDocument.PageOrBuilder
-
getBlocksCount
public int getBlocksCount()
A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.
repeated .google.cloud.documentai.v1.Document.Page.Block blocks = 5;- Specified by:
getBlocksCountin interfaceDocument.PageOrBuilder
-
getBlocks
public Document.Page.Block getBlocks(int index)
A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.
repeated .google.cloud.documentai.v1.Document.Page.Block blocks = 5;- Specified by:
getBlocksin interfaceDocument.PageOrBuilder
-
getBlocksOrBuilder
public Document.Page.BlockOrBuilder getBlocksOrBuilder(int index)
A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.
repeated .google.cloud.documentai.v1.Document.Page.Block blocks = 5;- Specified by:
getBlocksOrBuilderin interfaceDocument.PageOrBuilder
-
getParagraphsList
public List<Document.Page.Paragraph> getParagraphsList()
A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph.
repeated .google.cloud.documentai.v1.Document.Page.Paragraph paragraphs = 6;- Specified by:
getParagraphsListin interfaceDocument.PageOrBuilder
-
getParagraphsOrBuilderList
public List<? extends Document.Page.ParagraphOrBuilder> getParagraphsOrBuilderList()
A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph.
repeated .google.cloud.documentai.v1.Document.Page.Paragraph paragraphs = 6;- Specified by:
getParagraphsOrBuilderListin interfaceDocument.PageOrBuilder
-
getParagraphsCount
public int getParagraphsCount()
A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph.
repeated .google.cloud.documentai.v1.Document.Page.Paragraph paragraphs = 6;- Specified by:
getParagraphsCountin interfaceDocument.PageOrBuilder
-
getParagraphs
public Document.Page.Paragraph getParagraphs(int index)
A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph.
repeated .google.cloud.documentai.v1.Document.Page.Paragraph paragraphs = 6;- Specified by:
getParagraphsin interfaceDocument.PageOrBuilder
-
getParagraphsOrBuilder
public Document.Page.ParagraphOrBuilder getParagraphsOrBuilder(int index)
A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph.
repeated .google.cloud.documentai.v1.Document.Page.Paragraph paragraphs = 6;- Specified by:
getParagraphsOrBuilderin interfaceDocument.PageOrBuilder
-
getLinesList
public List<Document.Page.Line> getLinesList()
A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line.
repeated .google.cloud.documentai.v1.Document.Page.Line lines = 7;- Specified by:
getLinesListin interfaceDocument.PageOrBuilder
-
getLinesOrBuilderList
public List<? extends Document.Page.LineOrBuilder> getLinesOrBuilderList()
A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line.
repeated .google.cloud.documentai.v1.Document.Page.Line lines = 7;- Specified by:
getLinesOrBuilderListin interfaceDocument.PageOrBuilder
-
getLinesCount
public int getLinesCount()
A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line.
repeated .google.cloud.documentai.v1.Document.Page.Line lines = 7;- Specified by:
getLinesCountin interfaceDocument.PageOrBuilder
-
getLines
public Document.Page.Line getLines(int index)
A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line.
repeated .google.cloud.documentai.v1.Document.Page.Line lines = 7;- Specified by:
getLinesin interfaceDocument.PageOrBuilder
-
getLinesOrBuilder
public Document.Page.LineOrBuilder getLinesOrBuilder(int index)
A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line.
repeated .google.cloud.documentai.v1.Document.Page.Line lines = 7;- Specified by:
getLinesOrBuilderin interfaceDocument.PageOrBuilder
-
getTokensList
public List<Document.Page.Token> getTokensList()
A list of visually detected tokens on the page.
repeated .google.cloud.documentai.v1.Document.Page.Token tokens = 8;- Specified by:
getTokensListin interfaceDocument.PageOrBuilder
-
getTokensOrBuilderList
public List<? extends Document.Page.TokenOrBuilder> getTokensOrBuilderList()
A list of visually detected tokens on the page.
repeated .google.cloud.documentai.v1.Document.Page.Token tokens = 8;- Specified by:
getTokensOrBuilderListin interfaceDocument.PageOrBuilder
-
getTokensCount
public int getTokensCount()
A list of visually detected tokens on the page.
repeated .google.cloud.documentai.v1.Document.Page.Token tokens = 8;- Specified by:
getTokensCountin interfaceDocument.PageOrBuilder
-
getTokens
public Document.Page.Token getTokens(int index)
A list of visually detected tokens on the page.
repeated .google.cloud.documentai.v1.Document.Page.Token tokens = 8;- Specified by:
getTokensin interfaceDocument.PageOrBuilder
-
getTokensOrBuilder
public Document.Page.TokenOrBuilder getTokensOrBuilder(int index)
A list of visually detected tokens on the page.
repeated .google.cloud.documentai.v1.Document.Page.Token tokens = 8;- Specified by:
getTokensOrBuilderin interfaceDocument.PageOrBuilder
-
getVisualElementsList
public List<Document.Page.VisualElement> getVisualElementsList()
A list of detected non-text visual elements e.g. checkbox, signature etc. on the page.
repeated .google.cloud.documentai.v1.Document.Page.VisualElement visual_elements = 9;- Specified by:
getVisualElementsListin interfaceDocument.PageOrBuilder
-
getVisualElementsOrBuilderList
public List<? extends Document.Page.VisualElementOrBuilder> getVisualElementsOrBuilderList()
A list of detected non-text visual elements e.g. checkbox, signature etc. on the page.
repeated .google.cloud.documentai.v1.Document.Page.VisualElement visual_elements = 9;- Specified by:
getVisualElementsOrBuilderListin interfaceDocument.PageOrBuilder
-
getVisualElementsCount
public int getVisualElementsCount()
A list of detected non-text visual elements e.g. checkbox, signature etc. on the page.
repeated .google.cloud.documentai.v1.Document.Page.VisualElement visual_elements = 9;- Specified by:
getVisualElementsCountin interfaceDocument.PageOrBuilder
-
getVisualElements
public Document.Page.VisualElement getVisualElements(int index)
A list of detected non-text visual elements e.g. checkbox, signature etc. on the page.
repeated .google.cloud.documentai.v1.Document.Page.VisualElement visual_elements = 9;- Specified by:
getVisualElementsin interfaceDocument.PageOrBuilder
-
getVisualElementsOrBuilder
public Document.Page.VisualElementOrBuilder getVisualElementsOrBuilder(int index)
A list of detected non-text visual elements e.g. checkbox, signature etc. on the page.
repeated .google.cloud.documentai.v1.Document.Page.VisualElement visual_elements = 9;- Specified by:
getVisualElementsOrBuilderin interfaceDocument.PageOrBuilder
-
getTablesList
public List<Document.Page.Table> getTablesList()
A list of visually detected tables on the page.
repeated .google.cloud.documentai.v1.Document.Page.Table tables = 10;- Specified by:
getTablesListin interfaceDocument.PageOrBuilder
-
getTablesOrBuilderList
public List<? extends Document.Page.TableOrBuilder> getTablesOrBuilderList()
A list of visually detected tables on the page.
repeated .google.cloud.documentai.v1.Document.Page.Table tables = 10;- Specified by:
getTablesOrBuilderListin interfaceDocument.PageOrBuilder
-
getTablesCount
public int getTablesCount()
A list of visually detected tables on the page.
repeated .google.cloud.documentai.v1.Document.Page.Table tables = 10;- Specified by:
getTablesCountin interfaceDocument.PageOrBuilder
-
getTables
public Document.Page.Table getTables(int index)
A list of visually detected tables on the page.
repeated .google.cloud.documentai.v1.Document.Page.Table tables = 10;- Specified by:
getTablesin interfaceDocument.PageOrBuilder
-
getTablesOrBuilder
public Document.Page.TableOrBuilder getTablesOrBuilder(int index)
A list of visually detected tables on the page.
repeated .google.cloud.documentai.v1.Document.Page.Table tables = 10;- Specified by:
getTablesOrBuilderin interfaceDocument.PageOrBuilder
-
getFormFieldsList
public List<Document.Page.FormField> getFormFieldsList()
A list of visually detected form fields on the page.
repeated .google.cloud.documentai.v1.Document.Page.FormField form_fields = 11;- Specified by:
getFormFieldsListin interfaceDocument.PageOrBuilder
-
getFormFieldsOrBuilderList
public List<? extends Document.Page.FormFieldOrBuilder> getFormFieldsOrBuilderList()
A list of visually detected form fields on the page.
repeated .google.cloud.documentai.v1.Document.Page.FormField form_fields = 11;- Specified by:
getFormFieldsOrBuilderListin interfaceDocument.PageOrBuilder
-
getFormFieldsCount
public int getFormFieldsCount()
A list of visually detected form fields on the page.
repeated .google.cloud.documentai.v1.Document.Page.FormField form_fields = 11;- Specified by:
getFormFieldsCountin interfaceDocument.PageOrBuilder
-
getFormFields
public Document.Page.FormField getFormFields(int index)
A list of visually detected form fields on the page.
repeated .google.cloud.documentai.v1.Document.Page.FormField form_fields = 11;- Specified by:
getFormFieldsin interfaceDocument.PageOrBuilder
-
getFormFieldsOrBuilder
public Document.Page.FormFieldOrBuilder getFormFieldsOrBuilder(int index)
A list of visually detected form fields on the page.
repeated .google.cloud.documentai.v1.Document.Page.FormField form_fields = 11;- Specified by:
getFormFieldsOrBuilderin interfaceDocument.PageOrBuilder
-
getSymbolsList
public List<Document.Page.Symbol> getSymbolsList()
A list of visually detected symbols on the page.
repeated .google.cloud.documentai.v1.Document.Page.Symbol symbols = 12;- Specified by:
getSymbolsListin interfaceDocument.PageOrBuilder
-
getSymbolsOrBuilderList
public List<? extends Document.Page.SymbolOrBuilder> getSymbolsOrBuilderList()
A list of visually detected symbols on the page.
repeated .google.cloud.documentai.v1.Document.Page.Symbol symbols = 12;- Specified by:
getSymbolsOrBuilderListin interfaceDocument.PageOrBuilder
-
getSymbolsCount
public int getSymbolsCount()
A list of visually detected symbols on the page.
repeated .google.cloud.documentai.v1.Document.Page.Symbol symbols = 12;- Specified by:
getSymbolsCountin interfaceDocument.PageOrBuilder
-
getSymbols
public Document.Page.Symbol getSymbols(int index)
A list of visually detected symbols on the page.
repeated .google.cloud.documentai.v1.Document.Page.Symbol symbols = 12;- Specified by:
getSymbolsin interfaceDocument.PageOrBuilder
-
getSymbolsOrBuilder
public Document.Page.SymbolOrBuilder getSymbolsOrBuilder(int index)
A list of visually detected symbols on the page.
repeated .google.cloud.documentai.v1.Document.Page.Symbol symbols = 12;- Specified by:
getSymbolsOrBuilderin interfaceDocument.PageOrBuilder
-
getDetectedBarcodesList
public List<Document.Page.DetectedBarcode> getDetectedBarcodesList()
A list of detected barcodes.
repeated .google.cloud.documentai.v1.Document.Page.DetectedBarcode detected_barcodes = 15;- Specified by:
getDetectedBarcodesListin interfaceDocument.PageOrBuilder
-
getDetectedBarcodesOrBuilderList
public List<? extends Document.Page.DetectedBarcodeOrBuilder> getDetectedBarcodesOrBuilderList()
A list of detected barcodes.
repeated .google.cloud.documentai.v1.Document.Page.DetectedBarcode detected_barcodes = 15;- Specified by:
getDetectedBarcodesOrBuilderListin interfaceDocument.PageOrBuilder
-
getDetectedBarcodesCount
public int getDetectedBarcodesCount()
A list of detected barcodes.
repeated .google.cloud.documentai.v1.Document.Page.DetectedBarcode detected_barcodes = 15;- Specified by:
getDetectedBarcodesCountin interfaceDocument.PageOrBuilder
-
getDetectedBarcodes
public Document.Page.DetectedBarcode getDetectedBarcodes(int index)
A list of detected barcodes.
repeated .google.cloud.documentai.v1.Document.Page.DetectedBarcode detected_barcodes = 15;- Specified by:
getDetectedBarcodesin interfaceDocument.PageOrBuilder
-
getDetectedBarcodesOrBuilder
public Document.Page.DetectedBarcodeOrBuilder getDetectedBarcodesOrBuilder(int index)
A list of detected barcodes.
repeated .google.cloud.documentai.v1.Document.Page.DetectedBarcode detected_barcodes = 15;- Specified by:
getDetectedBarcodesOrBuilderin interfaceDocument.PageOrBuilder
-
hasImageQualityScores
public boolean hasImageQualityScores()
Image quality scores.
.google.cloud.documentai.v1.Document.Page.ImageQualityScores image_quality_scores = 17;- Specified by:
hasImageQualityScoresin interfaceDocument.PageOrBuilder- Returns:
- Whether the imageQualityScores field is set.
-
getImageQualityScores
public Document.Page.ImageQualityScores getImageQualityScores()
Image quality scores.
.google.cloud.documentai.v1.Document.Page.ImageQualityScores image_quality_scores = 17;- Specified by:
getImageQualityScoresin interfaceDocument.PageOrBuilder- Returns:
- The imageQualityScores.
-
getImageQualityScoresOrBuilder
public Document.Page.ImageQualityScoresOrBuilder getImageQualityScoresOrBuilder()
Image quality scores.
.google.cloud.documentai.v1.Document.Page.ImageQualityScores image_quality_scores = 17;- Specified by:
getImageQualityScoresOrBuilderin interfaceDocument.PageOrBuilder
-
hasProvenance
@Deprecated public boolean hasProvenance()
Deprecated.google.cloud.documentai.v1.Document.Page.provenance is deprecated. See google/cloud/documentai/v1/document.proto;l=548The history of this page.
.google.cloud.documentai.v1.Document.Provenance provenance = 16 [deprecated = true];- Specified by:
hasProvenancein interfaceDocument.PageOrBuilder- Returns:
- Whether the provenance field is set.
-
getProvenance
@Deprecated public Document.Provenance getProvenance()
Deprecated.google.cloud.documentai.v1.Document.Page.provenance is deprecated. See google/cloud/documentai/v1/document.proto;l=548The history of this page.
.google.cloud.documentai.v1.Document.Provenance provenance = 16 [deprecated = true];- Specified by:
getProvenancein interfaceDocument.PageOrBuilder- Returns:
- The provenance.
-
getProvenanceOrBuilder
@Deprecated public Document.ProvenanceOrBuilder getProvenanceOrBuilder()
Deprecated.The history of this page.
.google.cloud.documentai.v1.Document.Provenance provenance = 16 [deprecated = true];- Specified by:
getProvenanceOrBuilderin interfaceDocument.PageOrBuilder
-
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 Document.Page parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Page parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Page parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Page parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Page parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Page parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Document.Page parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Document.Page parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Document.Page parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Document.Page parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Document.Page parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Document.Page parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Document.Page.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Document.Page.Builder newBuilder()
-
newBuilder
public static Document.Page.Builder newBuilder(Document.Page prototype)
-
toBuilder
public Document.Page.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Page.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Document.Page getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Document.Page> parser()
-
getParserForType
public com.google.protobuf.Parser<Document.Page> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Document.Page getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-