Class Section.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Section.Builder>
com.google.protobuf.GeneratedMessage.Builder<Section.Builder>
ai.pipestream.data.v1.Section.Builder
All Implemented Interfaces:
SectionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Section

public static final class Section.Builder extends com.google.protobuf.GeneratedMessage.Builder<Section.Builder> implements SectionOrBuilder
 Single section within a document outline.

 Represents a heading, chapter, section, or other structural element.
 
Protobuf type ai.pipestream.data.v1.Section
  • Method Summary

    Modifier and Type
    Method
    Description
    Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
    addTags(String value)
    Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
    addTagsBytes(com.google.protobuf.ByteString value)
    Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
     
     
     
    Nesting depth where 0 is top level.
    Relative font size (0.0-1.0) if inferred from styling.
    Heading level (HTML h1=1, Markdown #=1, 0 if unknown).
    Relative link or fragment identifier if applicable.
    Stable identifier if present in source document.
    Preorder position index within the document.
    Ending page number if known (PDF/EPUB).
    Starting page number if known (PDF/EPUB).
    Parent section identifier for hierarchical navigation.
    Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
    Section title or heading text.
     
    int
    Nesting depth where 0 is top level.
    static final com.google.protobuf.Descriptors.Descriptor
     
    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.
    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.
    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
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setDepth(int value)
    Nesting depth where 0 is top level.
    setFontSizeRel(float value)
    Relative font size (0.0-1.0) if inferred from styling.
    setHeadingLevel(int value)
    Heading level (HTML h1=1, Markdown #=1, 0 if unknown).
    setHref(String value)
    Relative link or fragment identifier if applicable.
    setHrefBytes(com.google.protobuf.ByteString value)
    Relative link or fragment identifier if applicable.
    setId(String value)
    Stable identifier if present in source document.
    setIdBytes(com.google.protobuf.ByteString value)
    Stable identifier if present in source document.
    setOrderIndex(int value)
    Preorder position index within the document.
    setPageEnd(int value)
    Ending page number if known (PDF/EPUB).
    setPageStart(int value)
    Starting page number if known (PDF/EPUB).
    Parent section identifier for hierarchical navigation.
    setParentIdBytes(com.google.protobuf.ByteString value)
    Parent section identifier for hierarchical navigation.
    setTags(int index, String value)
    Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
    Section title or heading text.
    setTitleBytes(com.google.protobuf.ByteString value)
    Section title or heading text.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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.Builder<Section.Builder>
    • clear

      public Section.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Section.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Section.Builder>
    • getDefaultInstanceForType

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

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

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

      public Section.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Section.Builder>
    • mergeFrom

      public Section.Builder mergeFrom(Section other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Section.Builder>
    • mergeFrom

      public Section.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Section.Builder>
      Throws:
      IOException
    • 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.
    • setId

      public Section.Builder setId(String value)
       Stable identifier if present in source document.
       
      optional string id = 1 [json_name = "id"];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Section.Builder clearId()
       Stable identifier if present in source document.
       
      optional string id = 1 [json_name = "id"];
      Returns:
      This builder for chaining.
    • setIdBytes

      public Section.Builder setIdBytes(com.google.protobuf.ByteString value)
       Stable identifier if present in source document.
       
      optional string id = 1 [json_name = "id"];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • 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.
    • setTitle

      public Section.Builder setTitle(String value)
       Section title or heading text.
       
      optional string title = 2 [json_name = "title"];
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public Section.Builder clearTitle()
       Section title or heading text.
       
      optional string title = 2 [json_name = "title"];
      Returns:
      This builder for chaining.
    • setTitleBytes

      public Section.Builder setTitleBytes(com.google.protobuf.ByteString value)
       Section title or heading text.
       
      optional string title = 2 [json_name = "title"];
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • 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.
    • setDepth

      public Section.Builder setDepth(int value)
       Nesting depth where 0 is top level.
       
      int32 depth = 3 [json_name = "depth"];
      Parameters:
      value - The depth to set.
      Returns:
      This builder for chaining.
    • clearDepth

      public Section.Builder clearDepth()
       Nesting depth where 0 is top level.
       
      int32 depth = 3 [json_name = "depth"];
      Returns:
      This builder for chaining.
    • 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.
    • setHeadingLevel

      public Section.Builder setHeadingLevel(int value)
       Heading level (HTML h1=1, Markdown #=1, 0 if unknown).
       
      int32 heading_level = 4 [json_name = "headingLevel"];
      Parameters:
      value - The headingLevel to set.
      Returns:
      This builder for chaining.
    • clearHeadingLevel

      public Section.Builder clearHeadingLevel()
       Heading level (HTML h1=1, Markdown #=1, 0 if unknown).
       
      int32 heading_level = 4 [json_name = "headingLevel"];
      Returns:
      This builder for chaining.
    • 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.
    • setHref

      public Section.Builder setHref(String value)
       Relative link or fragment identifier if applicable.
       
      optional string href = 5 [json_name = "href"];
      Parameters:
      value - The href to set.
      Returns:
      This builder for chaining.
    • clearHref

      public Section.Builder clearHref()
       Relative link or fragment identifier if applicable.
       
      optional string href = 5 [json_name = "href"];
      Returns:
      This builder for chaining.
    • setHrefBytes

      public Section.Builder setHrefBytes(com.google.protobuf.ByteString value)
       Relative link or fragment identifier if applicable.
       
      optional string href = 5 [json_name = "href"];
      Parameters:
      value - The bytes for href to set.
      Returns:
      This builder for chaining.
    • 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.
    • setParentId

      public Section.Builder setParentId(String value)
       Parent section identifier for hierarchical navigation.
       
      optional string parent_id = 6 [json_name = "parentId"];
      Parameters:
      value - The parentId to set.
      Returns:
      This builder for chaining.
    • clearParentId

      public Section.Builder clearParentId()
       Parent section identifier for hierarchical navigation.
       
      optional string parent_id = 6 [json_name = "parentId"];
      Returns:
      This builder for chaining.
    • setParentIdBytes

      public Section.Builder setParentIdBytes(com.google.protobuf.ByteString value)
       Parent section identifier for hierarchical navigation.
       
      optional string parent_id = 6 [json_name = "parentId"];
      Parameters:
      value - The bytes for parentId to set.
      Returns:
      This builder for chaining.
    • 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.
    • setOrderIndex

      public Section.Builder setOrderIndex(int value)
       Preorder position index within the document.
       
      int32 order_index = 7 [json_name = "orderIndex"];
      Parameters:
      value - The orderIndex to set.
      Returns:
      This builder for chaining.
    • clearOrderIndex

      public Section.Builder clearOrderIndex()
       Preorder position index within the document.
       
      int32 order_index = 7 [json_name = "orderIndex"];
      Returns:
      This builder for chaining.
    • 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.
    • setTags

      public Section.Builder setTags(int index, String value)
       Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
       
      repeated string tags = 8 [json_name = "tags"];
      Parameters:
      index - The index to set the value at.
      value - The tags to set.
      Returns:
      This builder for chaining.
    • addTags

      public Section.Builder addTags(String value)
       Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
       
      repeated string tags = 8 [json_name = "tags"];
      Parameters:
      value - The tags to add.
      Returns:
      This builder for chaining.
    • addAllTags

      public Section.Builder addAllTags(Iterable<String> values)
       Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
       
      repeated string tags = 8 [json_name = "tags"];
      Parameters:
      values - The tags to add.
      Returns:
      This builder for chaining.
    • clearTags

      public Section.Builder clearTags()
       Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
       
      repeated string tags = 8 [json_name = "tags"];
      Returns:
      This builder for chaining.
    • addTagsBytes

      public Section.Builder addTagsBytes(com.google.protobuf.ByteString value)
       Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
       
      repeated string tags = 8 [json_name = "tags"];
      Parameters:
      value - The bytes of the tags to add.
      Returns:
      This builder for chaining.
    • 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.
    • setFontSizeRel

      public Section.Builder setFontSizeRel(float value)
       Relative font size (0.0-1.0) if inferred from styling.
       
      optional float font_size_rel = 9 [json_name = "fontSizeRel"];
      Parameters:
      value - The fontSizeRel to set.
      Returns:
      This builder for chaining.
    • clearFontSizeRel

      public Section.Builder clearFontSizeRel()
       Relative font size (0.0-1.0) if inferred from styling.
       
      optional float font_size_rel = 9 [json_name = "fontSizeRel"];
      Returns:
      This builder for chaining.
    • 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.
    • setPageStart

      public Section.Builder setPageStart(int value)
       Starting page number if known (PDF/EPUB).
       
      optional int32 page_start = 10 [json_name = "pageStart"];
      Parameters:
      value - The pageStart to set.
      Returns:
      This builder for chaining.
    • clearPageStart

      public Section.Builder clearPageStart()
       Starting page number if known (PDF/EPUB).
       
      optional int32 page_start = 10 [json_name = "pageStart"];
      Returns:
      This builder for chaining.
    • 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.
    • setPageEnd

      public Section.Builder setPageEnd(int value)
       Ending page number if known (PDF/EPUB).
       
      optional int32 page_end = 11 [json_name = "pageEnd"];
      Parameters:
      value - The pageEnd to set.
      Returns:
      This builder for chaining.
    • clearPageEnd

      public Section.Builder clearPageEnd()
       Ending page number if known (PDF/EPUB).
       
      optional int32 page_end = 11 [json_name = "pageEnd"];
      Returns:
      This builder for chaining.