Interface Document.TextAnchorOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Document.TextAnchor, Document.TextAnchor.Builder
Enclosing class:
Document

public static interface Document.TextAnchorOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Contains the content of the text span so that users do not have to look it up in the text_segments.
    com.google.protobuf.ByteString
    Contains the content of the text span so that users do not have to look it up in the text_segments.
    getTextSegments(int index)
    The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
    int
    The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
    The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
    The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].
    The text segments from the [Document.text][google.cloud.documentai.v1.Document.text].

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getTextSegmentsList

      List<Document.TextAnchor.TextSegment> getTextSegmentsList()
       The text segments from the
       [Document.text][google.cloud.documentai.v1.Document.text].
       
      repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1;
    • getTextSegments

      Document.TextAnchor.TextSegment getTextSegments(int index)
       The text segments from the
       [Document.text][google.cloud.documentai.v1.Document.text].
       
      repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1;
    • getTextSegmentsCount

      int getTextSegmentsCount()
       The text segments from the
       [Document.text][google.cloud.documentai.v1.Document.text].
       
      repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1;
    • getTextSegmentsOrBuilderList

      List<? extends Document.TextAnchor.TextSegmentOrBuilder> getTextSegmentsOrBuilderList()
       The text segments from the
       [Document.text][google.cloud.documentai.v1.Document.text].
       
      repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1;
    • getTextSegmentsOrBuilder

      Document.TextAnchor.TextSegmentOrBuilder getTextSegmentsOrBuilder(int index)
       The text segments from the
       [Document.text][google.cloud.documentai.v1.Document.text].
       
      repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1;
    • getContent

      String getContent()
       Contains the content of the text span so that users do
       not have to look it up in the text_segments.  It is always
       populated for formFields.
       
      string content = 2;
      Returns:
      The content.
    • getContentBytes

      com.google.protobuf.ByteString getContentBytes()
       Contains the content of the text span so that users do
       not have to look it up in the text_segments.  It is always
       populated for formFields.
       
      string content = 2;
      Returns:
      The bytes for content.