Class EpubManifestItem.Builder

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

public static final class EpubManifestItem.Builder extends com.google.protobuf.GeneratedMessage.Builder<EpubManifestItem.Builder> implements EpubManifestItemOrBuilder
 Represents an item in the EPUB manifest
 Complete inventory of all resources in the EPUB
 
Protobuf type ai.pipestream.parsed.data.epub.v1.EpubManifestItem
  • 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<EpubManifestItem.Builder>
    • clear

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

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

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

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

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

      public EpubManifestItem.Builder mergeFrom(EpubManifestItem other)
    • isInitialized

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

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

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

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

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

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

      public EpubManifestItem.Builder setIdBytes(com.google.protobuf.ByteString value)
       Unique identifier for this manifest item
       
      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 EpubManifestItemOrBuilder
      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 EpubManifestItemOrBuilder
      Returns:
      The bytes for href.
    • setHref

      public EpubManifestItem.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 EpubManifestItem.Builder clearHref()
       File path relative to OPF file location
       
      string href = 2 [json_name = "href"];
      Returns:
      This builder for chaining.
    • setHrefBytes

      public EpubManifestItem.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.
    • getMediaType

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

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

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

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

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

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

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

      public String getProperties(int index)
       Properties associated with this manifest item
       
      repeated string properties = 4 [json_name = "properties"];
      Specified by:
      getProperties in interface EpubManifestItemOrBuilder
      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 manifest item
       
      repeated string properties = 4 [json_name = "properties"];
      Specified by:
      getPropertiesBytes in interface EpubManifestItemOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the properties at the given index.
    • setProperties

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

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

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

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

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

      public boolean hasFallback()
       Fallback item ID (if this item cannot be processed)
       
      optional string fallback = 5 [json_name = "fallback"];
      Specified by:
      hasFallback in interface EpubManifestItemOrBuilder
      Returns:
      Whether the fallback field is set.
    • getFallback

      public String getFallback()
       Fallback item ID (if this item cannot be processed)
       
      optional string fallback = 5 [json_name = "fallback"];
      Specified by:
      getFallback in interface EpubManifestItemOrBuilder
      Returns:
      The fallback.
    • getFallbackBytes

      public com.google.protobuf.ByteString getFallbackBytes()
       Fallback item ID (if this item cannot be processed)
       
      optional string fallback = 5 [json_name = "fallback"];
      Specified by:
      getFallbackBytes in interface EpubManifestItemOrBuilder
      Returns:
      The bytes for fallback.
    • setFallback

      public EpubManifestItem.Builder setFallback(String value)
       Fallback item ID (if this item cannot be processed)
       
      optional string fallback = 5 [json_name = "fallback"];
      Parameters:
      value - The fallback to set.
      Returns:
      This builder for chaining.
    • clearFallback

      public EpubManifestItem.Builder clearFallback()
       Fallback item ID (if this item cannot be processed)
       
      optional string fallback = 5 [json_name = "fallback"];
      Returns:
      This builder for chaining.
    • setFallbackBytes

      public EpubManifestItem.Builder setFallbackBytes(com.google.protobuf.ByteString value)
       Fallback item ID (if this item cannot be processed)
       
      optional string fallback = 5 [json_name = "fallback"];
      Parameters:
      value - The bytes for fallback to set.
      Returns:
      This builder for chaining.
    • hasMediaOverlay

      public boolean hasMediaOverlay()
       Media overlay ID (for synchronized media)
       
      optional string media_overlay = 6 [json_name = "mediaOverlay"];
      Specified by:
      hasMediaOverlay in interface EpubManifestItemOrBuilder
      Returns:
      Whether the mediaOverlay field is set.
    • getMediaOverlay

      public String getMediaOverlay()
       Media overlay ID (for synchronized media)
       
      optional string media_overlay = 6 [json_name = "mediaOverlay"];
      Specified by:
      getMediaOverlay in interface EpubManifestItemOrBuilder
      Returns:
      The mediaOverlay.
    • getMediaOverlayBytes

      public com.google.protobuf.ByteString getMediaOverlayBytes()
       Media overlay ID (for synchronized media)
       
      optional string media_overlay = 6 [json_name = "mediaOverlay"];
      Specified by:
      getMediaOverlayBytes in interface EpubManifestItemOrBuilder
      Returns:
      The bytes for mediaOverlay.
    • setMediaOverlay

      public EpubManifestItem.Builder setMediaOverlay(String value)
       Media overlay ID (for synchronized media)
       
      optional string media_overlay = 6 [json_name = "mediaOverlay"];
      Parameters:
      value - The mediaOverlay to set.
      Returns:
      This builder for chaining.
    • clearMediaOverlay

      public EpubManifestItem.Builder clearMediaOverlay()
       Media overlay ID (for synchronized media)
       
      optional string media_overlay = 6 [json_name = "mediaOverlay"];
      Returns:
      This builder for chaining.
    • setMediaOverlayBytes

      public EpubManifestItem.Builder setMediaOverlayBytes(com.google.protobuf.ByteString value)
       Media overlay ID (for synchronized media)
       
      optional string media_overlay = 6 [json_name = "mediaOverlay"];
      Parameters:
      value - The bytes for mediaOverlay to set.
      Returns:
      This builder for chaining.
    • hasFileSize

      public boolean hasFileSize()
       File size in bytes (if available)
       
      optional int64 file_size = 7 [json_name = "fileSize"];
      Specified by:
      hasFileSize in interface EpubManifestItemOrBuilder
      Returns:
      Whether the fileSize field is set.
    • getFileSize

      public long getFileSize()
       File size in bytes (if available)
       
      optional int64 file_size = 7 [json_name = "fileSize"];
      Specified by:
      getFileSize in interface EpubManifestItemOrBuilder
      Returns:
      The fileSize.
    • setFileSize

      public EpubManifestItem.Builder setFileSize(long value)
       File size in bytes (if available)
       
      optional int64 file_size = 7 [json_name = "fileSize"];
      Parameters:
      value - The fileSize to set.
      Returns:
      This builder for chaining.
    • clearFileSize

      public EpubManifestItem.Builder clearFileSize()
       File size in bytes (if available)
       
      optional int64 file_size = 7 [json_name = "fileSize"];
      Returns:
      This builder for chaining.