Interface Document.TextAnchor.TextSegmentOrBuilder

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

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

    Modifier and Type
    Method
    Description
    long
    [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] half open end UTF-8 char index in the [Document.text][google.cloud.documentai.v1.Document.text].
    long
    [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] start UTF-8 char index in 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

    • getStartIndex

      long getStartIndex()
       [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment]
       start UTF-8 char index in the
       [Document.text][google.cloud.documentai.v1.Document.text].
       
      int64 start_index = 1;
      Returns:
      The startIndex.
    • getEndIndex

      long getEndIndex()
       [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment]
       half open end UTF-8 char index in the
       [Document.text][google.cloud.documentai.v1.Document.text].
       
      int64 end_index = 2;
      Returns:
      The endIndex.