Class Document.Page
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1beta2.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.v1beta2.Document].
Protobuf typegoogle.cloud.documentai.v1beta2.Document.Page
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Document.Page.Block
A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.static interface
Document.Page.BlockOrBuilder
static class
Document.Page.Builder
A page in a [Document][google.cloud.documentai.v1beta2.Document].static class
Document.Page.DetectedBarcode
A detected barcode.static interface
Document.Page.DetectedBarcodeOrBuilder
static class
Document.Page.DetectedLanguage
Detected language for a structural component.static interface
Document.Page.DetectedLanguageOrBuilder
static class
Document.Page.Dimension
Dimension for the page.static interface
Document.Page.DimensionOrBuilder
static class
Document.Page.FormField
A form field detected on the page.static interface
Document.Page.FormFieldOrBuilder
static class
Document.Page.Image
Rendered image contents for this page.static interface
Document.Page.ImageOrBuilder
static class
Document.Page.ImageQualityScores
Image quality scores for the page image.static interface
Document.Page.ImageQualityScoresOrBuilder
static class
Document.Page.Layout
Visual element describing a layout unit on a page.static interface
Document.Page.LayoutOrBuilder
static class
Document.Page.Line
A collection of tokens that a human would perceive as a line.static interface
Document.Page.LineOrBuilder
static class
Document.Page.Matrix
Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.static interface
Document.Page.MatrixOrBuilder
static class
Document.Page.Paragraph
A collection of lines that a human would perceive as a paragraph.static interface
Document.Page.ParagraphOrBuilder
static class
Document.Page.Symbol
A detected symbol.static interface
Document.Page.SymbolOrBuilder
static class
Document.Page.Table
A table representation similar to HTML table structure.static interface
Document.Page.TableOrBuilder
static class
Document.Page.Token
A detected token.static interface
Document.Page.TokenOrBuilder
static class
Document.Page.VisualElement
Detected non-text visual elements e.g.static interface
Document.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 int
BLOCKS_FIELD_NUMBER
static int
DETECTED_BARCODES_FIELD_NUMBER
static int
DETECTED_LANGUAGES_FIELD_NUMBER
static int
DIMENSION_FIELD_NUMBER
static int
FORM_FIELDS_FIELD_NUMBER
static int
IMAGE_FIELD_NUMBER
static int
IMAGE_QUALITY_SCORES_FIELD_NUMBER
static int
LAYOUT_FIELD_NUMBER
static int
LINES_FIELD_NUMBER
static int
PAGE_NUMBER_FIELD_NUMBER
static int
PARAGRAPHS_FIELD_NUMBER
static int
PROVENANCE_FIELD_NUMBER
static int
SYMBOLS_FIELD_NUMBER
static int
TABLES_FIELD_NUMBER
static int
TOKENS_FIELD_NUMBER
static int
TRANSFORMS_FIELD_NUMBER
static int
VISUAL_ELEMENTS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
Document.Page.Block
getBlocks(int index)
A list of visually detected text blocks on the page.int
getBlocksCount()
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.BlockOrBuilder
getBlocksOrBuilder(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.Page
getDefaultInstance()
Document.Page
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Document.Page.DetectedBarcode
getDetectedBarcodes(int index)
A list of detected barcodes.int
getDetectedBarcodesCount()
A list of detected barcodes.List<Document.Page.DetectedBarcode>
getDetectedBarcodesList()
A list of detected barcodes.Document.Page.DetectedBarcodeOrBuilder
getDetectedBarcodesOrBuilder(int index)
A list of detected barcodes.List<? extends Document.Page.DetectedBarcodeOrBuilder>
getDetectedBarcodesOrBuilderList()
A list of detected barcodes.Document.Page.DetectedLanguage
getDetectedLanguages(int index)
A list of detected languages together with confidence.int
getDetectedLanguagesCount()
A list of detected languages together with confidence.List<Document.Page.DetectedLanguage>
getDetectedLanguagesList()
A list of detected languages together with confidence.Document.Page.DetectedLanguageOrBuilder
getDetectedLanguagesOrBuilder(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.Dimension
getDimension()
Physical dimension of the page.Document.Page.DimensionOrBuilder
getDimensionOrBuilder()
Physical dimension of the page.Document.Page.FormField
getFormFields(int index)
A list of visually detected form fields on the page.int
getFormFieldsCount()
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.FormFieldOrBuilder
getFormFieldsOrBuilder(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.Image
getImage()
Rendered image for this page.Document.Page.ImageOrBuilder
getImageOrBuilder()
Rendered image for this page.Document.Page.ImageQualityScores
getImageQualityScores()
Image quality scores.Document.Page.ImageQualityScoresOrBuilder
getImageQualityScoresOrBuilder()
Image quality scores.Document.Page.Layout
getLayout()
[Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for the page.Document.Page.LayoutOrBuilder
getLayoutOrBuilder()
[Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for the page.Document.Page.Line
getLines(int index)
A list of visually detected text lines on the page.int
getLinesCount()
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.LineOrBuilder
getLinesOrBuilder(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.int
getPageNumber()
1-based index for current [Page][google.cloud.documentai.v1beta2.Document.Page] in a parent [Document][google.cloud.documentai.v1beta2.Document].Document.Page.Paragraph
getParagraphs(int index)
A list of visually detected text paragraphs on the page.int
getParagraphsCount()
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.ParagraphOrBuilder
getParagraphsOrBuilder(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.Provenance
getProvenance()
Deprecated.google.cloud.documentai.v1beta2.Document.Page.provenance is deprecated.Document.ProvenanceOrBuilder
getProvenanceOrBuilder()
Deprecated.int
getSerializedSize()
Document.Page.Symbol
getSymbols(int index)
A list of visually detected symbols on the page.int
getSymbolsCount()
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.SymbolOrBuilder
getSymbolsOrBuilder(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.Table
getTables(int index)
A list of visually detected tables on the page.int
getTablesCount()
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.TableOrBuilder
getTablesOrBuilder(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.Token
getTokens(int index)
A list of visually detected tokens on the page.int
getTokensCount()
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.TokenOrBuilder
getTokensOrBuilder(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.Matrix
getTransforms(int index)
Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1beta2.Document.Page.image].int
getTransformsCount()
Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1beta2.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.v1beta2.Document.Page.image].Document.Page.MatrixOrBuilder
getTransformsOrBuilder(int index)
Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1beta2.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.v1beta2.Document.Page.image].Document.Page.VisualElement
getVisualElements(int index)
A list of detected non-text visual elements e.g.int
getVisualElementsCount()
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.VisualElementOrBuilder
getVisualElementsOrBuilder(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.boolean
hasDimension()
Physical dimension of the page.int
hashCode()
boolean
hasImage()
Rendered image for this page.boolean
hasImageQualityScores()
Image quality scores.boolean
hasLayout()
[Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for the page.boolean
hasProvenance()
Deprecated.google.cloud.documentai.v1beta2.Document.Page.provenance is deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Document.Page.Builder
newBuilder()
static Document.Page.Builder
newBuilder(Document.Page prototype)
Document.Page.Builder
newBuilderForType()
protected Document.Page.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Document.Page
parseDelimitedFrom(InputStream input)
static Document.Page
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Page
parseFrom(byte[] data)
static Document.Page
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Page
parseFrom(com.google.protobuf.ByteString data)
static Document.Page
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Page
parseFrom(com.google.protobuf.CodedInputStream input)
static Document.Page
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Page
parseFrom(InputStream input)
static Document.Page
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Page
parseFrom(ByteBuffer data)
static Document.Page
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Document.Page>
parser()
Document.Page.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
-
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:
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
-
getPageNumber
public int getPageNumber()
1-based index for current [Page][google.cloud.documentai.v1beta2.Document.Page] in a parent [Document][google.cloud.documentai.v1beta2.Document]. Useful when a page is taken out of a [Document][google.cloud.documentai.v1beta2.Document] for individual processing.
int32 page_number = 1;
- Specified by:
getPageNumber
in 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.v1beta2.Document.Page.Image image = 13;
- Specified by:
hasImage
in 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.v1beta2.Document.Page.Image image = 13;
- Specified by:
getImage
in 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.v1beta2.Document.Page.Image image = 13;
- Specified by:
getImageOrBuilder
in 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.v1beta2.Document.Page.image].
repeated .google.cloud.documentai.v1beta2.Document.Page.Matrix transforms = 14;
- Specified by:
getTransformsList
in 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.v1beta2.Document.Page.image].
repeated .google.cloud.documentai.v1beta2.Document.Page.Matrix transforms = 14;
- Specified by:
getTransformsOrBuilderList
in interfaceDocument.PageOrBuilder
-
getTransformsCount
public int getTransformsCount()
Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1beta2.Document.Page.image].
repeated .google.cloud.documentai.v1beta2.Document.Page.Matrix transforms = 14;
- Specified by:
getTransformsCount
in 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.v1beta2.Document.Page.image].
repeated .google.cloud.documentai.v1beta2.Document.Page.Matrix transforms = 14;
- Specified by:
getTransforms
in 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.v1beta2.Document.Page.image].
repeated .google.cloud.documentai.v1beta2.Document.Page.Matrix transforms = 14;
- Specified by:
getTransformsOrBuilder
in interfaceDocument.PageOrBuilder
-
hasDimension
public boolean hasDimension()
Physical dimension of the page.
.google.cloud.documentai.v1beta2.Document.Page.Dimension dimension = 2;
- Specified by:
hasDimension
in interfaceDocument.PageOrBuilder
- Returns:
- Whether the dimension field is set.
-
getDimension
public Document.Page.Dimension getDimension()
Physical dimension of the page.
.google.cloud.documentai.v1beta2.Document.Page.Dimension dimension = 2;
- Specified by:
getDimension
in interfaceDocument.PageOrBuilder
- Returns:
- The dimension.
-
getDimensionOrBuilder
public Document.Page.DimensionOrBuilder getDimensionOrBuilder()
Physical dimension of the page.
.google.cloud.documentai.v1beta2.Document.Page.Dimension dimension = 2;
- Specified by:
getDimensionOrBuilder
in interfaceDocument.PageOrBuilder
-
hasLayout
public boolean hasLayout()
[Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for the page.
.google.cloud.documentai.v1beta2.Document.Page.Layout layout = 3;
- Specified by:
hasLayout
in interfaceDocument.PageOrBuilder
- Returns:
- Whether the layout field is set.
-
getLayout
public Document.Page.Layout getLayout()
[Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for the page.
.google.cloud.documentai.v1beta2.Document.Page.Layout layout = 3;
- Specified by:
getLayout
in interfaceDocument.PageOrBuilder
- Returns:
- The layout.
-
getLayoutOrBuilder
public Document.Page.LayoutOrBuilder getLayoutOrBuilder()
[Layout][google.cloud.documentai.v1beta2.Document.Page.Layout] for the page.
.google.cloud.documentai.v1beta2.Document.Page.Layout layout = 3;
- Specified by:
getLayoutOrBuilder
in interfaceDocument.PageOrBuilder
-
getDetectedLanguagesList
public List<Document.Page.DetectedLanguage> getDetectedLanguagesList()
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 4;
- Specified by:
getDetectedLanguagesList
in interfaceDocument.PageOrBuilder
-
getDetectedLanguagesOrBuilderList
public List<? extends Document.Page.DetectedLanguageOrBuilder> getDetectedLanguagesOrBuilderList()
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 4;
- Specified by:
getDetectedLanguagesOrBuilderList
in interfaceDocument.PageOrBuilder
-
getDetectedLanguagesCount
public int getDetectedLanguagesCount()
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 4;
- Specified by:
getDetectedLanguagesCount
in interfaceDocument.PageOrBuilder
-
getDetectedLanguages
public Document.Page.DetectedLanguage getDetectedLanguages(int index)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 4;
- Specified by:
getDetectedLanguages
in interfaceDocument.PageOrBuilder
-
getDetectedLanguagesOrBuilder
public Document.Page.DetectedLanguageOrBuilder getDetectedLanguagesOrBuilder(int index)
A list of detected languages together with confidence.
repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedLanguage detected_languages = 4;
- Specified by:
getDetectedLanguagesOrBuilder
in 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.v1beta2.Document.Page.Block blocks = 5;
- Specified by:
getBlocksList
in 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.v1beta2.Document.Page.Block blocks = 5;
- Specified by:
getBlocksOrBuilderList
in 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.v1beta2.Document.Page.Block blocks = 5;
- Specified by:
getBlocksCount
in 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.v1beta2.Document.Page.Block blocks = 5;
- Specified by:
getBlocks
in 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.v1beta2.Document.Page.Block blocks = 5;
- Specified by:
getBlocksOrBuilder
in 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.v1beta2.Document.Page.Paragraph paragraphs = 6;
- Specified by:
getParagraphsList
in 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.v1beta2.Document.Page.Paragraph paragraphs = 6;
- Specified by:
getParagraphsOrBuilderList
in 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.v1beta2.Document.Page.Paragraph paragraphs = 6;
- Specified by:
getParagraphsCount
in 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.v1beta2.Document.Page.Paragraph paragraphs = 6;
- Specified by:
getParagraphs
in 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.v1beta2.Document.Page.Paragraph paragraphs = 6;
- Specified by:
getParagraphsOrBuilder
in 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.v1beta2.Document.Page.Line lines = 7;
- Specified by:
getLinesList
in 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.v1beta2.Document.Page.Line lines = 7;
- Specified by:
getLinesOrBuilderList
in 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.v1beta2.Document.Page.Line lines = 7;
- Specified by:
getLinesCount
in 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.v1beta2.Document.Page.Line lines = 7;
- Specified by:
getLines
in 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.v1beta2.Document.Page.Line lines = 7;
- Specified by:
getLinesOrBuilder
in interfaceDocument.PageOrBuilder
-
getTokensList
public List<Document.Page.Token> getTokensList()
A list of visually detected tokens on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Token tokens = 8;
- Specified by:
getTokensList
in interfaceDocument.PageOrBuilder
-
getTokensOrBuilderList
public List<? extends Document.Page.TokenOrBuilder> getTokensOrBuilderList()
A list of visually detected tokens on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Token tokens = 8;
- Specified by:
getTokensOrBuilderList
in interfaceDocument.PageOrBuilder
-
getTokensCount
public int getTokensCount()
A list of visually detected tokens on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Token tokens = 8;
- Specified by:
getTokensCount
in interfaceDocument.PageOrBuilder
-
getTokens
public Document.Page.Token getTokens(int index)
A list of visually detected tokens on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Token tokens = 8;
- Specified by:
getTokens
in interfaceDocument.PageOrBuilder
-
getTokensOrBuilder
public Document.Page.TokenOrBuilder getTokensOrBuilder(int index)
A list of visually detected tokens on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Token tokens = 8;
- Specified by:
getTokensOrBuilder
in 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.v1beta2.Document.Page.VisualElement visual_elements = 9;
- Specified by:
getVisualElementsList
in 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.v1beta2.Document.Page.VisualElement visual_elements = 9;
- Specified by:
getVisualElementsOrBuilderList
in 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.v1beta2.Document.Page.VisualElement visual_elements = 9;
- Specified by:
getVisualElementsCount
in 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.v1beta2.Document.Page.VisualElement visual_elements = 9;
- Specified by:
getVisualElements
in 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.v1beta2.Document.Page.VisualElement visual_elements = 9;
- Specified by:
getVisualElementsOrBuilder
in interfaceDocument.PageOrBuilder
-
getTablesList
public List<Document.Page.Table> getTablesList()
A list of visually detected tables on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Table tables = 10;
- Specified by:
getTablesList
in interfaceDocument.PageOrBuilder
-
getTablesOrBuilderList
public List<? extends Document.Page.TableOrBuilder> getTablesOrBuilderList()
A list of visually detected tables on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Table tables = 10;
- Specified by:
getTablesOrBuilderList
in interfaceDocument.PageOrBuilder
-
getTablesCount
public int getTablesCount()
A list of visually detected tables on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Table tables = 10;
- Specified by:
getTablesCount
in interfaceDocument.PageOrBuilder
-
getTables
public Document.Page.Table getTables(int index)
A list of visually detected tables on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Table tables = 10;
- Specified by:
getTables
in interfaceDocument.PageOrBuilder
-
getTablesOrBuilder
public Document.Page.TableOrBuilder getTablesOrBuilder(int index)
A list of visually detected tables on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Table tables = 10;
- Specified by:
getTablesOrBuilder
in interfaceDocument.PageOrBuilder
-
getFormFieldsList
public List<Document.Page.FormField> getFormFieldsList()
A list of visually detected form fields on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.FormField form_fields = 11;
- Specified by:
getFormFieldsList
in interfaceDocument.PageOrBuilder
-
getFormFieldsOrBuilderList
public List<? extends Document.Page.FormFieldOrBuilder> getFormFieldsOrBuilderList()
A list of visually detected form fields on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.FormField form_fields = 11;
- Specified by:
getFormFieldsOrBuilderList
in interfaceDocument.PageOrBuilder
-
getFormFieldsCount
public int getFormFieldsCount()
A list of visually detected form fields on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.FormField form_fields = 11;
- Specified by:
getFormFieldsCount
in interfaceDocument.PageOrBuilder
-
getFormFields
public Document.Page.FormField getFormFields(int index)
A list of visually detected form fields on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.FormField form_fields = 11;
- Specified by:
getFormFields
in interfaceDocument.PageOrBuilder
-
getFormFieldsOrBuilder
public Document.Page.FormFieldOrBuilder getFormFieldsOrBuilder(int index)
A list of visually detected form fields on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.FormField form_fields = 11;
- Specified by:
getFormFieldsOrBuilder
in interfaceDocument.PageOrBuilder
-
getSymbolsList
public List<Document.Page.Symbol> getSymbolsList()
A list of visually detected symbols on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Symbol symbols = 12;
- Specified by:
getSymbolsList
in interfaceDocument.PageOrBuilder
-
getSymbolsOrBuilderList
public List<? extends Document.Page.SymbolOrBuilder> getSymbolsOrBuilderList()
A list of visually detected symbols on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Symbol symbols = 12;
- Specified by:
getSymbolsOrBuilderList
in interfaceDocument.PageOrBuilder
-
getSymbolsCount
public int getSymbolsCount()
A list of visually detected symbols on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Symbol symbols = 12;
- Specified by:
getSymbolsCount
in interfaceDocument.PageOrBuilder
-
getSymbols
public Document.Page.Symbol getSymbols(int index)
A list of visually detected symbols on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Symbol symbols = 12;
- Specified by:
getSymbols
in interfaceDocument.PageOrBuilder
-
getSymbolsOrBuilder
public Document.Page.SymbolOrBuilder getSymbolsOrBuilder(int index)
A list of visually detected symbols on the page.
repeated .google.cloud.documentai.v1beta2.Document.Page.Symbol symbols = 12;
- Specified by:
getSymbolsOrBuilder
in interfaceDocument.PageOrBuilder
-
getDetectedBarcodesList
public List<Document.Page.DetectedBarcode> getDetectedBarcodesList()
A list of detected barcodes.
repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedBarcode detected_barcodes = 15;
- Specified by:
getDetectedBarcodesList
in interfaceDocument.PageOrBuilder
-
getDetectedBarcodesOrBuilderList
public List<? extends Document.Page.DetectedBarcodeOrBuilder> getDetectedBarcodesOrBuilderList()
A list of detected barcodes.
repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedBarcode detected_barcodes = 15;
- Specified by:
getDetectedBarcodesOrBuilderList
in interfaceDocument.PageOrBuilder
-
getDetectedBarcodesCount
public int getDetectedBarcodesCount()
A list of detected barcodes.
repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedBarcode detected_barcodes = 15;
- Specified by:
getDetectedBarcodesCount
in interfaceDocument.PageOrBuilder
-
getDetectedBarcodes
public Document.Page.DetectedBarcode getDetectedBarcodes(int index)
A list of detected barcodes.
repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedBarcode detected_barcodes = 15;
- Specified by:
getDetectedBarcodes
in interfaceDocument.PageOrBuilder
-
getDetectedBarcodesOrBuilder
public Document.Page.DetectedBarcodeOrBuilder getDetectedBarcodesOrBuilder(int index)
A list of detected barcodes.
repeated .google.cloud.documentai.v1beta2.Document.Page.DetectedBarcode detected_barcodes = 15;
- Specified by:
getDetectedBarcodesOrBuilder
in interfaceDocument.PageOrBuilder
-
hasImageQualityScores
public boolean hasImageQualityScores()
Image quality scores.
.google.cloud.documentai.v1beta2.Document.Page.ImageQualityScores image_quality_scores = 17;
- Specified by:
hasImageQualityScores
in interfaceDocument.PageOrBuilder
- Returns:
- Whether the imageQualityScores field is set.
-
getImageQualityScores
public Document.Page.ImageQualityScores getImageQualityScores()
Image quality scores.
.google.cloud.documentai.v1beta2.Document.Page.ImageQualityScores image_quality_scores = 17;
- Specified by:
getImageQualityScores
in interfaceDocument.PageOrBuilder
- Returns:
- The imageQualityScores.
-
getImageQualityScoresOrBuilder
public Document.Page.ImageQualityScoresOrBuilder getImageQualityScoresOrBuilder()
Image quality scores.
.google.cloud.documentai.v1beta2.Document.Page.ImageQualityScores image_quality_scores = 17;
- Specified by:
getImageQualityScoresOrBuilder
in interfaceDocument.PageOrBuilder
-
hasProvenance
@Deprecated public boolean hasProvenance()
Deprecated.google.cloud.documentai.v1beta2.Document.Page.provenance is deprecated. See google/cloud/documentai/v1beta2/document.proto;l=577The history of this page.
.google.cloud.documentai.v1beta2.Document.Provenance provenance = 16 [deprecated = true];
- Specified by:
hasProvenance
in interfaceDocument.PageOrBuilder
- Returns:
- Whether the provenance field is set.
-
getProvenance
@Deprecated public Document.Provenance getProvenance()
Deprecated.google.cloud.documentai.v1beta2.Document.Page.provenance is deprecated. See google/cloud/documentai/v1beta2/document.proto;l=577The history of this page.
.google.cloud.documentai.v1beta2.Document.Provenance provenance = 16 [deprecated = true];
- Specified by:
getProvenance
in interfaceDocument.PageOrBuilder
- Returns:
- The provenance.
-
getProvenanceOrBuilder
@Deprecated public Document.ProvenanceOrBuilder getProvenanceOrBuilder()
Deprecated.The history of this page.
.google.cloud.documentai.v1beta2.Document.Provenance provenance = 16 [deprecated = true];
- Specified by:
getProvenanceOrBuilder
in interfaceDocument.PageOrBuilder
-
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 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Page.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Document.Page getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-