Interface SectionOrBuilder

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

@Generated public interface SectionOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Nesting depth where 0 is top level.
    float
    Relative font size (0.0-1.0) if inferred from styling.
    int
    Heading level (HTML h1=1, Markdown #=1, 0 if unknown).
    Relative link or fragment identifier if applicable.
    com.google.protobuf.ByteString
    Relative link or fragment identifier if applicable.
    Stable identifier if present in source document.
    com.google.protobuf.ByteString
    Stable identifier if present in source document.
    int
    Preorder position index within the document.
    int
    Ending page number if known (PDF/EPUB).
    int
    Starting page number if known (PDF/EPUB).
    Parent section identifier for hierarchical navigation.
    com.google.protobuf.ByteString
    Parent section identifier for hierarchical navigation.
    getTags(int index)
    Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
    com.google.protobuf.ByteString
    getTagsBytes(int index)
    Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
    int
    Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
    Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
    Section title or heading text.
    com.google.protobuf.ByteString
    Section title or heading text.
    boolean
    Relative font size (0.0-1.0) if inferred from styling.
    boolean
    Relative link or fragment identifier if applicable.
    boolean
    Stable identifier if present in source document.
    boolean
    Ending page number if known (PDF/EPUB).
    boolean
    Starting page number if known (PDF/EPUB).
    boolean
    Parent section identifier for hierarchical navigation.
    boolean
    Section title or heading 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

    • hasId

      boolean hasId()
       Stable identifier if present in source document.
       
      optional string id = 1 [json_name = "id"];
      Returns:
      Whether the id field is set.
    • getId

      String getId()
       Stable identifier if present in source document.
       
      optional string id = 1 [json_name = "id"];
      Returns:
      The id.
    • getIdBytes

      com.google.protobuf.ByteString getIdBytes()
       Stable identifier if present in source document.
       
      optional string id = 1 [json_name = "id"];
      Returns:
      The bytes for id.
    • hasTitle

      boolean hasTitle()
       Section title or heading text.
       
      optional string title = 2 [json_name = "title"];
      Returns:
      Whether the title field is set.
    • getTitle

      String getTitle()
       Section title or heading text.
       
      optional string title = 2 [json_name = "title"];
      Returns:
      The title.
    • getTitleBytes

      com.google.protobuf.ByteString getTitleBytes()
       Section title or heading text.
       
      optional string title = 2 [json_name = "title"];
      Returns:
      The bytes for title.
    • getDepth

      int getDepth()
       Nesting depth where 0 is top level.
       
      int32 depth = 3 [json_name = "depth"];
      Returns:
      The depth.
    • getHeadingLevel

      int getHeadingLevel()
       Heading level (HTML h1=1, Markdown #=1, 0 if unknown).
       
      int32 heading_level = 4 [json_name = "headingLevel"];
      Returns:
      The headingLevel.
    • hasHref

      boolean hasHref()
       Relative link or fragment identifier if applicable.
       
      optional string href = 5 [json_name = "href"];
      Returns:
      Whether the href field is set.
    • getHref

      String getHref()
       Relative link or fragment identifier if applicable.
       
      optional string href = 5 [json_name = "href"];
      Returns:
      The href.
    • getHrefBytes

      com.google.protobuf.ByteString getHrefBytes()
       Relative link or fragment identifier if applicable.
       
      optional string href = 5 [json_name = "href"];
      Returns:
      The bytes for href.
    • hasParentId

      boolean hasParentId()
       Parent section identifier for hierarchical navigation.
       
      optional string parent_id = 6 [json_name = "parentId"];
      Returns:
      Whether the parentId field is set.
    • getParentId

      String getParentId()
       Parent section identifier for hierarchical navigation.
       
      optional string parent_id = 6 [json_name = "parentId"];
      Returns:
      The parentId.
    • getParentIdBytes

      com.google.protobuf.ByteString getParentIdBytes()
       Parent section identifier for hierarchical navigation.
       
      optional string parent_id = 6 [json_name = "parentId"];
      Returns:
      The bytes for parentId.
    • getOrderIndex

      int getOrderIndex()
       Preorder position index within the document.
       
      int32 order_index = 7 [json_name = "orderIndex"];
      Returns:
      The orderIndex.
    • getTagsList

      List<String> getTagsList()
       Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
       
      repeated string tags = 8 [json_name = "tags"];
      Returns:
      A list containing the tags.
    • getTagsCount

      int getTagsCount()
       Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
       
      repeated string tags = 8 [json_name = "tags"];
      Returns:
      The count of tags.
    • getTags

      String getTags(int index)
       Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
       
      repeated string tags = 8 [json_name = "tags"];
      Parameters:
      index - The index of the element to return.
      Returns:
      The tags at the given index.
    • getTagsBytes

      com.google.protobuf.ByteString getTagsBytes(int index)
       Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
       
      repeated string tags = 8 [json_name = "tags"];
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the tags at the given index.
    • hasFontSizeRel

      boolean hasFontSizeRel()
       Relative font size (0.0-1.0) if inferred from styling.
       
      optional float font_size_rel = 9 [json_name = "fontSizeRel"];
      Returns:
      Whether the fontSizeRel field is set.
    • getFontSizeRel

      float getFontSizeRel()
       Relative font size (0.0-1.0) if inferred from styling.
       
      optional float font_size_rel = 9 [json_name = "fontSizeRel"];
      Returns:
      The fontSizeRel.
    • hasPageStart

      boolean hasPageStart()
       Starting page number if known (PDF/EPUB).
       
      optional int32 page_start = 10 [json_name = "pageStart"];
      Returns:
      Whether the pageStart field is set.
    • getPageStart

      int getPageStart()
       Starting page number if known (PDF/EPUB).
       
      optional int32 page_start = 10 [json_name = "pageStart"];
      Returns:
      The pageStart.
    • hasPageEnd

      boolean hasPageEnd()
       Ending page number if known (PDF/EPUB).
       
      optional int32 page_end = 11 [json_name = "pageEnd"];
      Returns:
      Whether the pageEnd field is set.
    • getPageEnd

      int getPageEnd()
       Ending page number if known (PDF/EPUB).
       
      optional int32 page_end = 11 [json_name = "pageEnd"];
      Returns:
      The pageEnd.