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 EPUBProtobuf type
ai.pipestream.parsed.data.epub.v1.EpubManifestItem-
Method Summary
Modifier and TypeMethodDescriptionaddAllProperties(Iterable<String> values) Properties associated with this manifest itemaddProperties(String value) Properties associated with this manifest itemaddPropertiesBytes(com.google.protobuf.ByteString value) Properties associated with this manifest itembuild()clear()Fallback item ID (if this item cannot be processed)File size in bytes (if available)File path relative to OPF file locationclearId()Unique identifier for this manifest itemMedia overlay ID (for synchronized media)MIME type of the resourceProperties associated with this manifest itemstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorFallback item ID (if this item cannot be processed)com.google.protobuf.ByteStringFallback item ID (if this item cannot be processed)longFile size in bytes (if available)getHref()File path relative to OPF file locationcom.google.protobuf.ByteStringFile path relative to OPF file locationgetId()Unique identifier for this manifest itemcom.google.protobuf.ByteStringUnique identifier for this manifest itemMedia overlay ID (for synchronized media)com.google.protobuf.ByteStringMedia overlay ID (for synchronized media)MIME type of the resourcecom.google.protobuf.ByteStringMIME type of the resourcegetProperties(int index) Properties associated with this manifest itemcom.google.protobuf.ByteStringgetPropertiesBytes(int index) Properties associated with this manifest itemintProperties associated with this manifest itemcom.google.protobuf.ProtocolStringListProperties associated with this manifest itembooleanFallback item ID (if this item cannot be processed)booleanFile size in bytes (if available)booleanMedia overlay ID (for synchronized media)protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(EpubManifestItem other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setFallback(String value) Fallback item ID (if this item cannot be processed)setFallbackBytes(com.google.protobuf.ByteString value) Fallback item ID (if this item cannot be processed)setFileSize(long value) File size in bytes (if available)File path relative to OPF file locationsetHrefBytes(com.google.protobuf.ByteString value) File path relative to OPF file locationUnique identifier for this manifest itemsetIdBytes(com.google.protobuf.ByteString value) Unique identifier for this manifest itemsetMediaOverlay(String value) Media overlay ID (for synchronized media)setMediaOverlayBytes(com.google.protobuf.ByteString value) Media overlay ID (for synchronized media)setMediaType(String value) MIME type of the resourcesetMediaTypeBytes(com.google.protobuf.ByteString value) MIME type of the resourcesetProperties(int index, String value) Properties associated with this manifest itemMethods 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EpubManifestItem.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EpubManifestItem.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EpubManifestItem.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EpubManifestItem.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EpubManifestItem.Builder>- Throws:
IOException
-
getId
Unique identifier for this manifest item
string id = 1 [json_name = "id"];- Specified by:
getIdin interfaceEpubManifestItemOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Unique identifier for this manifest item
string id = 1 [json_name = "id"];- Specified by:
getIdBytesin interfaceEpubManifestItemOrBuilder- Returns:
- The bytes for id.
-
setId
Unique identifier for this manifest item
string id = 1 [json_name = "id"];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Unique identifier for this manifest item
string id = 1 [json_name = "id"];- Returns:
- This builder for chaining.
-
setIdBytes
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
File path relative to OPF file location
string href = 2 [json_name = "href"];- Specified by:
getHrefin interfaceEpubManifestItemOrBuilder- 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:
getHrefBytesin interfaceEpubManifestItemOrBuilder- Returns:
- The bytes for href.
-
setHref
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
File path relative to OPF file location
string href = 2 [json_name = "href"];- Returns:
- This builder for chaining.
-
setHrefBytes
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
MIME type of the resource
string media_type = 3 [json_name = "mediaType"];- Specified by:
getMediaTypein interfaceEpubManifestItemOrBuilder- Returns:
- The mediaType.
-
getMediaTypeBytes
public com.google.protobuf.ByteString getMediaTypeBytes()MIME type of the resource
string media_type = 3 [json_name = "mediaType"];- Specified by:
getMediaTypeBytesin interfaceEpubManifestItemOrBuilder- Returns:
- The bytes for mediaType.
-
setMediaType
MIME type of the resource
string media_type = 3 [json_name = "mediaType"];- Parameters:
value- The mediaType to set.- Returns:
- This builder for chaining.
-
clearMediaType
MIME type of the resource
string media_type = 3 [json_name = "mediaType"];- Returns:
- This builder for chaining.
-
setMediaTypeBytes
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:
getPropertiesListin interfaceEpubManifestItemOrBuilder- 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:
getPropertiesCountin interfaceEpubManifestItemOrBuilder- Returns:
- The count of properties.
-
getProperties
Properties associated with this manifest item
repeated string properties = 4 [json_name = "properties"];- Specified by:
getPropertiesin interfaceEpubManifestItemOrBuilder- 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:
getPropertiesBytesin interfaceEpubManifestItemOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the properties at the given index.
-
setProperties
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
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
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
Properties associated with this manifest item
repeated string properties = 4 [json_name = "properties"];- Returns:
- This builder for chaining.
-
addPropertiesBytes
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:
hasFallbackin interfaceEpubManifestItemOrBuilder- Returns:
- Whether the fallback field is set.
-
getFallback
Fallback item ID (if this item cannot be processed)
optional string fallback = 5 [json_name = "fallback"];- Specified by:
getFallbackin interfaceEpubManifestItemOrBuilder- 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:
getFallbackBytesin interfaceEpubManifestItemOrBuilder- Returns:
- The bytes for fallback.
-
setFallback
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
Fallback item ID (if this item cannot be processed)
optional string fallback = 5 [json_name = "fallback"];- Returns:
- This builder for chaining.
-
setFallbackBytes
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:
hasMediaOverlayin interfaceEpubManifestItemOrBuilder- Returns:
- Whether the mediaOverlay field is set.
-
getMediaOverlay
Media overlay ID (for synchronized media)
optional string media_overlay = 6 [json_name = "mediaOverlay"];- Specified by:
getMediaOverlayin interfaceEpubManifestItemOrBuilder- 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:
getMediaOverlayBytesin interfaceEpubManifestItemOrBuilder- Returns:
- The bytes for mediaOverlay.
-
setMediaOverlay
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
Media overlay ID (for synchronized media)
optional string media_overlay = 6 [json_name = "mediaOverlay"];- Returns:
- This builder for chaining.
-
setMediaOverlayBytes
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:
hasFileSizein interfaceEpubManifestItemOrBuilder- 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:
getFileSizein interfaceEpubManifestItemOrBuilder- Returns:
- The fileSize.
-
setFileSize
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
File size in bytes (if available)
optional int64 file_size = 7 [json_name = "fileSize"];- Returns:
- This builder for chaining.
-