Class EpubTocItem.Builder

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

public static final class EpubTocItem.Builder extends com.google.protobuf.GeneratedMessage.Builder<EpubTocItem.Builder> implements EpubTocItemOrBuilder
 Represents a Table of Contents entry
 Hierarchical structure for navigation and chunking boundaries
 
Protobuf type ai.pipestream.parsed.data.epub.v1.EpubTocItem
  • 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<EpubTocItem.Builder>
    • clear

      public EpubTocItem.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<EpubTocItem.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<EpubTocItem.Builder>
    • getDefaultInstanceForType

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

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

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

      public EpubTocItem.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<EpubTocItem.Builder>
    • mergeFrom

      public EpubTocItem.Builder mergeFrom(EpubTocItem other)
    • isInitialized

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

      public EpubTocItem.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<EpubTocItem.Builder>
      Throws:
      IOException
    • getLabel

      public String getLabel()
       Display text for this TOC entry
       
      string label = 1 [json_name = "label"];
      Specified by:
      getLabel in interface EpubTocItemOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
       Display text for this TOC entry
       
      string label = 1 [json_name = "label"];
      Specified by:
      getLabelBytes in interface EpubTocItemOrBuilder
      Returns:
      The bytes for label.
    • setLabel

      public EpubTocItem.Builder setLabel(String value)
       Display text for this TOC entry
       
      string label = 1 [json_name = "label"];
      Parameters:
      value - The label to set.
      Returns:
      This builder for chaining.
    • clearLabel

      public EpubTocItem.Builder clearLabel()
       Display text for this TOC entry
       
      string label = 1 [json_name = "label"];
      Returns:
      This builder for chaining.
    • setLabelBytes

      public EpubTocItem.Builder setLabelBytes(com.google.protobuf.ByteString value)
       Display text for this TOC entry
       
      string label = 1 [json_name = "label"];
      Parameters:
      value - The bytes for label to set.
      Returns:
      This builder for chaining.
    • hasHref

      public boolean hasHref()
       Link target (content file and optional fragment)
       
      optional string href = 2 [json_name = "href"];
      Specified by:
      hasHref in interface EpubTocItemOrBuilder
      Returns:
      Whether the href field is set.
    • getHref

      public String getHref()
       Link target (content file and optional fragment)
       
      optional string href = 2 [json_name = "href"];
      Specified by:
      getHref in interface EpubTocItemOrBuilder
      Returns:
      The href.
    • getHrefBytes

      public com.google.protobuf.ByteString getHrefBytes()
       Link target (content file and optional fragment)
       
      optional string href = 2 [json_name = "href"];
      Specified by:
      getHrefBytes in interface EpubTocItemOrBuilder
      Returns:
      The bytes for href.
    • setHref

      public EpubTocItem.Builder setHref(String value)
       Link target (content file and optional fragment)
       
      optional string href = 2 [json_name = "href"];
      Parameters:
      value - The href to set.
      Returns:
      This builder for chaining.
    • clearHref

      public EpubTocItem.Builder clearHref()
       Link target (content file and optional fragment)
       
      optional string href = 2 [json_name = "href"];
      Returns:
      This builder for chaining.
    • setHrefBytes

      public EpubTocItem.Builder setHrefBytes(com.google.protobuf.ByteString value)
       Link target (content file and optional fragment)
       
      optional string href = 2 [json_name = "href"];
      Parameters:
      value - The bytes for href to set.
      Returns:
      This builder for chaining.
    • getLevel

      public int getLevel()
       Hierarchical level (0 = top level, 1 = first sublevel, etc.)
       
      int32 level = 3 [json_name = "level"];
      Specified by:
      getLevel in interface EpubTocItemOrBuilder
      Returns:
      The level.
    • setLevel

      public EpubTocItem.Builder setLevel(int value)
       Hierarchical level (0 = top level, 1 = first sublevel, etc.)
       
      int32 level = 3 [json_name = "level"];
      Parameters:
      value - The level to set.
      Returns:
      This builder for chaining.
    • clearLevel

      public EpubTocItem.Builder clearLevel()
       Hierarchical level (0 = top level, 1 = first sublevel, etc.)
       
      int32 level = 3 [json_name = "level"];
      Returns:
      This builder for chaining.
    • getPlayOrder

      public int getPlayOrder()
       Position in the TOC order
       
      int32 play_order = 4 [json_name = "playOrder"];
      Specified by:
      getPlayOrder in interface EpubTocItemOrBuilder
      Returns:
      The playOrder.
    • setPlayOrder

      public EpubTocItem.Builder setPlayOrder(int value)
       Position in the TOC order
       
      int32 play_order = 4 [json_name = "playOrder"];
      Parameters:
      value - The playOrder to set.
      Returns:
      This builder for chaining.
    • clearPlayOrder

      public EpubTocItem.Builder clearPlayOrder()
       Position in the TOC order
       
      int32 play_order = 4 [json_name = "playOrder"];
      Returns:
      This builder for chaining.
    • getChildrenList

      public List<EpubTocItem> getChildrenList()
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
      Specified by:
      getChildrenList in interface EpubTocItemOrBuilder
    • getChildrenCount

      public int getChildrenCount()
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
      Specified by:
      getChildrenCount in interface EpubTocItemOrBuilder
    • getChildren

      public EpubTocItem getChildren(int index)
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
      Specified by:
      getChildren in interface EpubTocItemOrBuilder
    • setChildren

      public EpubTocItem.Builder setChildren(int index, EpubTocItem value)
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • setChildren

      public EpubTocItem.Builder setChildren(int index, EpubTocItem.Builder builderForValue)
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • addChildren

      public EpubTocItem.Builder addChildren(EpubTocItem value)
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • addChildren

      public EpubTocItem.Builder addChildren(int index, EpubTocItem value)
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • addChildren

      public EpubTocItem.Builder addChildren(EpubTocItem.Builder builderForValue)
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • addChildren

      public EpubTocItem.Builder addChildren(int index, EpubTocItem.Builder builderForValue)
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • addAllChildren

      public EpubTocItem.Builder addAllChildren(Iterable<? extends EpubTocItem> values)
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • clearChildren

      public EpubTocItem.Builder clearChildren()
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • removeChildren

      public EpubTocItem.Builder removeChildren(int index)
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • getChildrenBuilder

      public EpubTocItem.Builder getChildrenBuilder(int index)
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • getChildrenOrBuilder

      public EpubTocItemOrBuilder getChildrenOrBuilder(int index)
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
      Specified by:
      getChildrenOrBuilder in interface EpubTocItemOrBuilder
    • getChildrenOrBuilderList

      public List<? extends EpubTocItemOrBuilder> getChildrenOrBuilderList()
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
      Specified by:
      getChildrenOrBuilderList in interface EpubTocItemOrBuilder
    • addChildrenBuilder

      public EpubTocItem.Builder addChildrenBuilder()
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • addChildrenBuilder

      public EpubTocItem.Builder addChildrenBuilder(int index)
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • getChildrenBuilderList

      public List<EpubTocItem.Builder> getChildrenBuilderList()
       Child TOC entries (for hierarchical structure)
       
      repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];
    • hasContentSrc

      public boolean hasContentSrc()
       Content item ID this TOC entry points to
       
      optional string content_src = 6 [json_name = "contentSrc"];
      Specified by:
      hasContentSrc in interface EpubTocItemOrBuilder
      Returns:
      Whether the contentSrc field is set.
    • getContentSrc

      public String getContentSrc()
       Content item ID this TOC entry points to
       
      optional string content_src = 6 [json_name = "contentSrc"];
      Specified by:
      getContentSrc in interface EpubTocItemOrBuilder
      Returns:
      The contentSrc.
    • getContentSrcBytes

      public com.google.protobuf.ByteString getContentSrcBytes()
       Content item ID this TOC entry points to
       
      optional string content_src = 6 [json_name = "contentSrc"];
      Specified by:
      getContentSrcBytes in interface EpubTocItemOrBuilder
      Returns:
      The bytes for contentSrc.
    • setContentSrc

      public EpubTocItem.Builder setContentSrc(String value)
       Content item ID this TOC entry points to
       
      optional string content_src = 6 [json_name = "contentSrc"];
      Parameters:
      value - The contentSrc to set.
      Returns:
      This builder for chaining.
    • clearContentSrc

      public EpubTocItem.Builder clearContentSrc()
       Content item ID this TOC entry points to
       
      optional string content_src = 6 [json_name = "contentSrc"];
      Returns:
      This builder for chaining.
    • setContentSrcBytes

      public EpubTocItem.Builder setContentSrcBytes(com.google.protobuf.ByteString value)
       Content item ID this TOC entry points to
       
      optional string content_src = 6 [json_name = "contentSrc"];
      Parameters:
      value - The bytes for contentSrc to set.
      Returns:
      This builder for chaining.