Interface TextSegmentOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    TextSegment, TextSegment.Builder

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getContent()
      Output only.
      com.google.protobuf.ByteString getContentBytes()
      Output only.
      long getEndOffset()
      Required.
      long getStartOffset()
      Required.
      • 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

      • getContent

        String getContent()
         Output only. The content of the TextSegment.
         
        string content = 3;
        Returns:
        The content.
      • getContentBytes

        com.google.protobuf.ByteString getContentBytes()
         Output only. The content of the TextSegment.
         
        string content = 3;
        Returns:
        The bytes for content.
      • getStartOffset

        long getStartOffset()
         Required. Zero-based character index of the first character of the text
         segment (counting characters from the beginning of the text).
         
        int64 start_offset = 1;
        Returns:
        The startOffset.
      • getEndOffset

        long getEndOffset()
         Required. Zero-based character index of the first character past the end of
         the text segment (counting character from the beginning of the text).
         The character at the end_offset is NOT included in the text segment.
         
        int64 end_offset = 2;
        Returns:
        The endOffset.