Class Section

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.data.v1.Section
All Implemented Interfaces:
SectionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Section extends com.google.protobuf.GeneratedMessage implements SectionOrBuilder
 Single section within a document outline.

 Represents a heading, chapter, section, or other structural element.
 
Protobuf type ai.pipestream.data.v1.Section
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Single section within a document outline.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static Section
     
     
    int
    Nesting depth where 0 is top level.
    static final com.google.protobuf.Descriptors.Descriptor
     
    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.
    com.google.protobuf.Parser<Section>
     
    int
     
    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").
    com.google.protobuf.ProtocolStringList
    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.
    int
     
    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.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Section prototype)
     
     
    protected Section.Builder
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static Section
     
    static Section
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Section
    parseFrom(byte[] data)
     
    static Section
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Section
    parseFrom(com.google.protobuf.ByteString data)
     
    static Section
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Section
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Section
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Section
     
    static Section
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Section
     
    static Section
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Section>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasId

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public com.google.protobuf.ProtocolStringList getTagsList()
       Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
       
      repeated string tags = 8 [json_name = "tags"];
      Specified by:
      getTagsList in interface SectionOrBuilder
      Returns:
      A list containing the tags.
    • getTagsCount

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

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

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

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

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

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

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

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

      public int getPageEnd()
       Ending page number if known (PDF/EPUB).
       
      optional int32 page_end = 11 [json_name = "pageEnd"];
      Specified by:
      getPageEnd in interface SectionOrBuilder
      Returns:
      The pageEnd.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Section parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Section parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Section parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Section parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Section parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Section parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Section parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Section parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Section parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Section parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Section parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Section parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Section.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Section.Builder newBuilder()
    • newBuilder

      public static Section.Builder newBuilder(Section prototype)
    • toBuilder

      public Section.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Section.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Section getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Section> parser()
    • getParserForType

      public com.google.protobuf.Parser<Section> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Section getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder