Class EpubContentItem.Builder

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

public static final class EpubContentItem.Builder extends com.google.protobuf.GeneratedMessage.Builder<EpubContentItem.Builder> implements EpubContentItemOrBuilder
 Represents a content item in the EPUB spine (reading order)
 Essential for proper chunking and content organization
 
Protobuf type ai.pipestream.parsed.data.epub.v1.EpubContentItem
  • 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<EpubContentItem.Builder>
    • clear

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

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

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

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

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

      public EpubContentItem.Builder mergeFrom(EpubContentItem other)
    • isInitialized

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

      public EpubContentItem.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<EpubContentItem.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       Unique identifier for this content item (from manifest)
       
      string id = 1 [json_name = "id"];
      Specified by:
      getId in interface EpubContentItemOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Unique identifier for this content item (from manifest)
       
      string id = 1 [json_name = "id"];
      Specified by:
      getIdBytes in interface EpubContentItemOrBuilder
      Returns:
      The bytes for id.
    • setId

      public EpubContentItem.Builder setId(String value)
       Unique identifier for this content item (from manifest)
       
      string id = 1 [json_name = "id"];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public EpubContentItem.Builder clearId()
       Unique identifier for this content item (from manifest)
       
      string id = 1 [json_name = "id"];
      Returns:
      This builder for chaining.
    • setIdBytes

      public EpubContentItem.Builder setIdBytes(com.google.protobuf.ByteString value)
       Unique identifier for this content item (from manifest)
       
      string id = 1 [json_name = "id"];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getHref

      public String getHref()
       File path relative to OPF file location
       
      string href = 2 [json_name = "href"];
      Specified by:
      getHref in interface EpubContentItemOrBuilder
      Returns:
      The href.
    • getHrefBytes

      public com.google.protobuf.ByteString getHrefBytes()
       File path relative to OPF file location
       
      string href = 2 [json_name = "href"];
      Specified by:
      getHrefBytes in interface EpubContentItemOrBuilder
      Returns:
      The bytes for href.
    • setHref

      public EpubContentItem.Builder setHref(String value)
       File path relative to OPF file location
       
      string href = 2 [json_name = "href"];
      Parameters:
      value - The href to set.
      Returns:
      This builder for chaining.
    • clearHref

      public EpubContentItem.Builder clearHref()
       File path relative to OPF file location
       
      string href = 2 [json_name = "href"];
      Returns:
      This builder for chaining.
    • setHrefBytes

      public EpubContentItem.Builder setHrefBytes(com.google.protobuf.ByteString value)
       File path relative to OPF file location
       
      string href = 2 [json_name = "href"];
      Parameters:
      value - The bytes for href to set.
      Returns:
      This builder for chaining.
    • hasMediaType

      public boolean hasMediaType()
       MIME type of the content file
       
      optional string media_type = 3 [json_name = "mediaType"];
      Specified by:
      hasMediaType in interface EpubContentItemOrBuilder
      Returns:
      Whether the mediaType field is set.
    • getMediaType

      public String getMediaType()
       MIME type of the content file
       
      optional string media_type = 3 [json_name = "mediaType"];
      Specified by:
      getMediaType in interface EpubContentItemOrBuilder
      Returns:
      The mediaType.
    • getMediaTypeBytes

      public com.google.protobuf.ByteString getMediaTypeBytes()
       MIME type of the content file
       
      optional string media_type = 3 [json_name = "mediaType"];
      Specified by:
      getMediaTypeBytes in interface EpubContentItemOrBuilder
      Returns:
      The bytes for mediaType.
    • setMediaType

      public EpubContentItem.Builder setMediaType(String value)
       MIME type of the content file
       
      optional string media_type = 3 [json_name = "mediaType"];
      Parameters:
      value - The mediaType to set.
      Returns:
      This builder for chaining.
    • clearMediaType

      public EpubContentItem.Builder clearMediaType()
       MIME type of the content file
       
      optional string media_type = 3 [json_name = "mediaType"];
      Returns:
      This builder for chaining.
    • setMediaTypeBytes

      public EpubContentItem.Builder setMediaTypeBytes(com.google.protobuf.ByteString value)
       MIME type of the content file
       
      optional string media_type = 3 [json_name = "mediaType"];
      Parameters:
      value - The bytes for mediaType to set.
      Returns:
      This builder for chaining.
    • getSpineIndex

      public int getSpineIndex()
       Position in the reading order (0-based)
       
      int32 spine_index = 4 [json_name = "spineIndex"];
      Specified by:
      getSpineIndex in interface EpubContentItemOrBuilder
      Returns:
      The spineIndex.
    • setSpineIndex

      public EpubContentItem.Builder setSpineIndex(int value)
       Position in the reading order (0-based)
       
      int32 spine_index = 4 [json_name = "spineIndex"];
      Parameters:
      value - The spineIndex to set.
      Returns:
      This builder for chaining.
    • clearSpineIndex

      public EpubContentItem.Builder clearSpineIndex()
       Position in the reading order (0-based)
       
      int32 spine_index = 4 [json_name = "spineIndex"];
      Returns:
      This builder for chaining.
    • hasIsLinear

      public boolean hasIsLinear()
       Whether this item is linear (part of main reading flow)
       
      optional bool is_linear = 5 [json_name = "isLinear"];
      Specified by:
      hasIsLinear in interface EpubContentItemOrBuilder
      Returns:
      Whether the isLinear field is set.
    • getIsLinear

      public boolean getIsLinear()
       Whether this item is linear (part of main reading flow)
       
      optional bool is_linear = 5 [json_name = "isLinear"];
      Specified by:
      getIsLinear in interface EpubContentItemOrBuilder
      Returns:
      The isLinear.
    • setIsLinear

      public EpubContentItem.Builder setIsLinear(boolean value)
       Whether this item is linear (part of main reading flow)
       
      optional bool is_linear = 5 [json_name = "isLinear"];
      Parameters:
      value - The isLinear to set.
      Returns:
      This builder for chaining.
    • clearIsLinear

      public EpubContentItem.Builder clearIsLinear()
       Whether this item is linear (part of main reading flow)
       
      optional bool is_linear = 5 [json_name = "isLinear"];
      Returns:
      This builder for chaining.
    • getPropertiesList

      public com.google.protobuf.ProtocolStringList getPropertiesList()
       Properties associated with this spine item
       
      repeated string properties = 6 [json_name = "properties"];
      Specified by:
      getPropertiesList in interface EpubContentItemOrBuilder
      Returns:
      A list containing the properties.
    • getPropertiesCount

      public int getPropertiesCount()
       Properties associated with this spine item
       
      repeated string properties = 6 [json_name = "properties"];
      Specified by:
      getPropertiesCount in interface EpubContentItemOrBuilder
      Returns:
      The count of properties.
    • getProperties

      public String getProperties(int index)
       Properties associated with this spine item
       
      repeated string properties = 6 [json_name = "properties"];
      Specified by:
      getProperties in interface EpubContentItemOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The properties at the given index.
    • getPropertiesBytes

      public com.google.protobuf.ByteString getPropertiesBytes(int index)
       Properties associated with this spine item
       
      repeated string properties = 6 [json_name = "properties"];
      Specified by:
      getPropertiesBytes in interface EpubContentItemOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the properties at the given index.
    • setProperties

      public EpubContentItem.Builder setProperties(int index, String value)
       Properties associated with this spine item
       
      repeated string properties = 6 [json_name = "properties"];
      Parameters:
      index - The index to set the value at.
      value - The properties to set.
      Returns:
      This builder for chaining.
    • addProperties

      public EpubContentItem.Builder addProperties(String value)
       Properties associated with this spine item
       
      repeated string properties = 6 [json_name = "properties"];
      Parameters:
      value - The properties to add.
      Returns:
      This builder for chaining.
    • addAllProperties

      public EpubContentItem.Builder addAllProperties(Iterable<String> values)
       Properties associated with this spine item
       
      repeated string properties = 6 [json_name = "properties"];
      Parameters:
      values - The properties to add.
      Returns:
      This builder for chaining.
    • clearProperties

      public EpubContentItem.Builder clearProperties()
       Properties associated with this spine item
       
      repeated string properties = 6 [json_name = "properties"];
      Returns:
      This builder for chaining.
    • addPropertiesBytes

      public EpubContentItem.Builder addPropertiesBytes(com.google.protobuf.ByteString value)
       Properties associated with this spine item
       
      repeated string properties = 6 [json_name = "properties"];
      Parameters:
      value - The bytes of the properties to add.
      Returns:
      This builder for chaining.
    • hasWordCount

      public boolean hasWordCount()
       Estimated word count for this content file
       
      optional int64 word_count = 7 [json_name = "wordCount"];
      Specified by:
      hasWordCount in interface EpubContentItemOrBuilder
      Returns:
      Whether the wordCount field is set.
    • getWordCount

      public long getWordCount()
       Estimated word count for this content file
       
      optional int64 word_count = 7 [json_name = "wordCount"];
      Specified by:
      getWordCount in interface EpubContentItemOrBuilder
      Returns:
      The wordCount.
    • setWordCount

      public EpubContentItem.Builder setWordCount(long value)
       Estimated word count for this content file
       
      optional int64 word_count = 7 [json_name = "wordCount"];
      Parameters:
      value - The wordCount to set.
      Returns:
      This builder for chaining.
    • clearWordCount

      public EpubContentItem.Builder clearWordCount()
       Estimated word count for this content file
       
      optional int64 word_count = 7 [json_name = "wordCount"];
      Returns:
      This builder for chaining.
    • hasCharacterCount

      public boolean hasCharacterCount()
       Estimated character count for this content file
       
      optional int64 character_count = 8 [json_name = "characterCount"];
      Specified by:
      hasCharacterCount in interface EpubContentItemOrBuilder
      Returns:
      Whether the characterCount field is set.
    • getCharacterCount

      public long getCharacterCount()
       Estimated character count for this content file
       
      optional int64 character_count = 8 [json_name = "characterCount"];
      Specified by:
      getCharacterCount in interface EpubContentItemOrBuilder
      Returns:
      The characterCount.
    • setCharacterCount

      public EpubContentItem.Builder setCharacterCount(long value)
       Estimated character count for this content file
       
      optional int64 character_count = 8 [json_name = "characterCount"];
      Parameters:
      value - The characterCount to set.
      Returns:
      This builder for chaining.
    • clearCharacterCount

      public EpubContentItem.Builder clearCharacterCount()
       Estimated character count for this content file
       
      optional int64 character_count = 8 [json_name = "characterCount"];
      Returns:
      This builder for chaining.
    • hasTitle

      public boolean hasTitle()
       Title or heading extracted from this content file
       
      optional string title = 9 [json_name = "title"];
      Specified by:
      hasTitle in interface EpubContentItemOrBuilder
      Returns:
      Whether the title field is set.
    • getTitle

      public String getTitle()
       Title or heading extracted from this content file
       
      optional string title = 9 [json_name = "title"];
      Specified by:
      getTitle in interface EpubContentItemOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       Title or heading extracted from this content file
       
      optional string title = 9 [json_name = "title"];
      Specified by:
      getTitleBytes in interface EpubContentItemOrBuilder
      Returns:
      The bytes for title.
    • setTitle

      public EpubContentItem.Builder setTitle(String value)
       Title or heading extracted from this content file
       
      optional string title = 9 [json_name = "title"];
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public EpubContentItem.Builder clearTitle()
       Title or heading extracted from this content file
       
      optional string title = 9 [json_name = "title"];
      Returns:
      This builder for chaining.
    • setTitleBytes

      public EpubContentItem.Builder setTitleBytes(com.google.protobuf.ByteString value)
       Title or heading extracted from this content file
       
      optional string title = 9 [json_name = "title"];
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.