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 organizationProtobuf type
ai.pipestream.parsed.data.epub.v1.EpubContentItem-
Method Summary
Modifier and TypeMethodDescriptionaddAllProperties(Iterable<String> values) Properties associated with this spine itemaddProperties(String value) Properties associated with this spine itemaddPropertiesBytes(com.google.protobuf.ByteString value) Properties associated with this spine itembuild()clear()Estimated character count for this content fileFile path relative to OPF file locationclearId()Unique identifier for this content item (from manifest)Whether this item is linear (part of main reading flow)MIME type of the content fileProperties associated with this spine itemPosition in the reading order (0-based)Title or heading extracted from this content fileEstimated word count for this content filelongEstimated character count for this content filestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHref()File path relative to OPF file locationcom.google.protobuf.ByteStringFile path relative to OPF file locationgetId()Unique identifier for this content item (from manifest)com.google.protobuf.ByteStringUnique identifier for this content item (from manifest)booleanWhether this item is linear (part of main reading flow)MIME type of the content filecom.google.protobuf.ByteStringMIME type of the content filegetProperties(int index) Properties associated with this spine itemcom.google.protobuf.ByteStringgetPropertiesBytes(int index) Properties associated with this spine itemintProperties associated with this spine itemcom.google.protobuf.ProtocolStringListProperties associated with this spine itemintPosition in the reading order (0-based)getTitle()Title or heading extracted from this content filecom.google.protobuf.ByteStringTitle or heading extracted from this content filelongEstimated word count for this content filebooleanEstimated character count for this content filebooleanWhether this item is linear (part of main reading flow)booleanMIME type of the content filebooleanhasTitle()Title or heading extracted from this content filebooleanEstimated word count for this content fileprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(EpubContentItem other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCharacterCount(long value) Estimated character count for this content fileFile path relative to OPF file locationsetHrefBytes(com.google.protobuf.ByteString value) File path relative to OPF file locationUnique identifier for this content item (from manifest)setIdBytes(com.google.protobuf.ByteString value) Unique identifier for this content item (from manifest)setIsLinear(boolean value) Whether this item is linear (part of main reading flow)setMediaType(String value) MIME type of the content filesetMediaTypeBytes(com.google.protobuf.ByteString value) MIME type of the content filesetProperties(int index, String value) Properties associated with this spine itemsetSpineIndex(int value) Position in the reading order (0-based)Title or heading extracted from this content filesetTitleBytes(com.google.protobuf.ByteString value) Title or heading extracted from this content filesetWordCount(long value) Estimated word count for this content fileMethods 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<EpubContentItem.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<EpubContentItem.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<EpubContentItem.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<EpubContentItem.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EpubContentItem.Builder>- Throws:
IOException
-
getId
Unique identifier for this content item (from manifest)
string id = 1 [json_name = "id"];- Specified by:
getIdin interfaceEpubContentItemOrBuilder- 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:
getIdBytesin interfaceEpubContentItemOrBuilder- Returns:
- The bytes for id.
-
setId
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
Unique identifier for this content item (from manifest)
string id = 1 [json_name = "id"];- Returns:
- This builder for chaining.
-
setIdBytes
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
File path relative to OPF file location
string href = 2 [json_name = "href"];- Specified by:
getHrefin interfaceEpubContentItemOrBuilder- 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 interfaceEpubContentItemOrBuilder- 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.
-
hasMediaType
public boolean hasMediaType()MIME type of the content file
optional string media_type = 3 [json_name = "mediaType"];- Specified by:
hasMediaTypein interfaceEpubContentItemOrBuilder- Returns:
- Whether the mediaType field is set.
-
getMediaType
MIME type of the content file
optional string media_type = 3 [json_name = "mediaType"];- Specified by:
getMediaTypein interfaceEpubContentItemOrBuilder- 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:
getMediaTypeBytesin interfaceEpubContentItemOrBuilder- Returns:
- The bytes for mediaType.
-
setMediaType
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
MIME type of the content file
optional string media_type = 3 [json_name = "mediaType"];- Returns:
- This builder for chaining.
-
setMediaTypeBytes
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:
getSpineIndexin interfaceEpubContentItemOrBuilder- Returns:
- The spineIndex.
-
setSpineIndex
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
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:
hasIsLinearin interfaceEpubContentItemOrBuilder- 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:
getIsLinearin interfaceEpubContentItemOrBuilder- Returns:
- The isLinear.
-
setIsLinear
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
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:
getPropertiesListin interfaceEpubContentItemOrBuilder- 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:
getPropertiesCountin interfaceEpubContentItemOrBuilder- Returns:
- The count of properties.
-
getProperties
Properties associated with this spine item
repeated string properties = 6 [json_name = "properties"];- Specified by:
getPropertiesin interfaceEpubContentItemOrBuilder- 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:
getPropertiesBytesin interfaceEpubContentItemOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the properties at the given index.
-
setProperties
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
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
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
Properties associated with this spine item
repeated string properties = 6 [json_name = "properties"];- Returns:
- This builder for chaining.
-
addPropertiesBytes
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:
hasWordCountin interfaceEpubContentItemOrBuilder- 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:
getWordCountin interfaceEpubContentItemOrBuilder- Returns:
- The wordCount.
-
setWordCount
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
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:
hasCharacterCountin interfaceEpubContentItemOrBuilder- 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:
getCharacterCountin interfaceEpubContentItemOrBuilder- Returns:
- The characterCount.
-
setCharacterCount
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
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:
hasTitlein interfaceEpubContentItemOrBuilder- Returns:
- Whether the title field is set.
-
getTitle
Title or heading extracted from this content file
optional string title = 9 [json_name = "title"];- Specified by:
getTitlein interfaceEpubContentItemOrBuilder- 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:
getTitleBytesin interfaceEpubContentItemOrBuilder- Returns:
- The bytes for title.
-
setTitle
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
Title or heading extracted from this content file
optional string title = 9 [json_name = "title"];- Returns:
- This builder for chaining.
-
setTitleBytes
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.
-