Interface Document.TextAnchor.TextSegmentOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long getEndIndex()
      [TextSegment][google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment] half open end UTF-8 char index in the [Document.text][google.cloud.documentai.v1beta2.Document.text].
      long getStartIndex()
      [TextSegment][google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment] start UTF-8 char index in the [Document.text][google.cloud.documentai.v1beta2.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 Detail

      • getStartIndex

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

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