Class EpubContentItem
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.parsed.data.epub.v1.EpubContentItem
- All Implemented Interfaces:
EpubContentItemOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class EpubContentItem
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a content item in the EPUB spine (reading order) Essential for proper chunking and content organizationNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongEstimated character count for this content filestatic EpubContentItemstatic final com.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 filecom.google.protobuf.Parser<EpubContentItem> getProperties(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 itemintintPosition 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 fileinthashCode()booleanWhether 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 booleanstatic EpubContentItem.Builderstatic EpubContentItem.BuildernewBuilder(EpubContentItem prototype) protected EpubContentItem.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static EpubContentItemparseDelimitedFrom(InputStream input) static EpubContentItemparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EpubContentItemparseFrom(byte[] data) static EpubContentItemparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EpubContentItemparseFrom(com.google.protobuf.ByteString data) static EpubContentItemparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EpubContentItemparseFrom(com.google.protobuf.CodedInputStream input) static EpubContentItemparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EpubContentItemparseFrom(InputStream input) static EpubContentItemparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EpubContentItemparseFrom(ByteBuffer data) static EpubContentItemparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<EpubContentItem> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
HREF_FIELD_NUMBER
public static final int HREF_FIELD_NUMBER- See Also:
-
MEDIA_TYPE_FIELD_NUMBER
public static final int MEDIA_TYPE_FIELD_NUMBER- See Also:
-
SPINE_INDEX_FIELD_NUMBER
public static final int SPINE_INDEX_FIELD_NUMBER- See Also:
-
IS_LINEAR_FIELD_NUMBER
public static final int IS_LINEAR_FIELD_NUMBER- See Also:
-
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER- See Also:
-
WORD_COUNT_FIELD_NUMBER
public static final int WORD_COUNT_FIELD_NUMBER- See Also:
-
CHARACTER_COUNT_FIELD_NUMBER
public static final int CHARACTER_COUNT_FIELD_NUMBER- See Also:
-
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static EpubContentItem parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EpubContentItem parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EpubContentItem parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EpubContentItem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EpubContentItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EpubContentItem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static EpubContentItem parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static EpubContentItem parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static EpubContentItem parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static EpubContentItem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EpubContentItem.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-