Class EpubEmbeddedResource
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.parsed.data.epub.v1.EpubEmbeddedResource
- All Implemented Interfaces:
EpubEmbeddedResourceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class EpubEmbeddedResource
extends com.google.protobuf.GeneratedMessage
implements EpubEmbeddedResourceOrBuilder
Represents an embedded resource in the EPUB Important for understanding content dependencies and processing requirementsProtobuf type
ai.pipestream.parsed.data.epub.v1.EpubEmbeddedResource- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents an embedded resource in the EPUB Important for understanding content dependencies and processing requirementsNested 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 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 TypeMethodDescriptionbooleanstatic EpubEmbeddedResourcestatic final com.google.protobuf.Descriptors.DescriptorlongFile size in bytes (if available)For fonts: font family namecom.google.protobuf.ByteStringFor fonts: font family nameintFor images: height in pixelsgetHref()File path relative to OPF file locationcom.google.protobuf.ByteStringFile path relative to OPF file locationgetId()Resource identifier from manifestcom.google.protobuf.ByteStringResource identifier from manifestbooleanWhether this resource is referenced by content filesMIME type of the resourcecom.google.protobuf.ByteStringMIME type of the resourcecom.google.protobuf.Parser<EpubEmbeddedResource> getProperties(int index) Properties associated with this resourcecom.google.protobuf.ByteStringgetPropertiesBytes(int index) Properties associated with this resourceintProperties associated with this resourcecom.google.protobuf.ProtocolStringListProperties associated with this resourceintFor stylesheets: whether it's a primary or alternate stylesheetcom.google.protobuf.ByteStringFor stylesheets: whether it's a primary or alternate stylesheetintgetWidth()For images: width in pixelsbooleanFile size in bytes (if available)booleanFor fonts: font family nameinthashCode()booleanFor images: height in pixelsbooleanWhether this resource is referenced by content filesbooleanFor stylesheets: whether it's a primary or alternate stylesheetbooleanhasWidth()For images: width in pixelsprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic EpubEmbeddedResource.Builderstatic EpubEmbeddedResource.BuildernewBuilder(EpubEmbeddedResource prototype) protected EpubEmbeddedResource.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static EpubEmbeddedResourceparseDelimitedFrom(InputStream input) static EpubEmbeddedResourceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EpubEmbeddedResourceparseFrom(byte[] data) static EpubEmbeddedResourceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EpubEmbeddedResourceparseFrom(com.google.protobuf.ByteString data) static EpubEmbeddedResourceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EpubEmbeddedResourceparseFrom(com.google.protobuf.CodedInputStream input) static EpubEmbeddedResourceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EpubEmbeddedResourceparseFrom(InputStream input) static EpubEmbeddedResourceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EpubEmbeddedResourceparseFrom(ByteBuffer data) static EpubEmbeddedResourceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<EpubEmbeddedResource> 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:
-
FILE_SIZE_FIELD_NUMBER
public static final int FILE_SIZE_FIELD_NUMBER- See Also:
-
IS_REFERENCED_FIELD_NUMBER
public static final int IS_REFERENCED_FIELD_NUMBER- See Also:
-
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER- See Also:
-
WIDTH_FIELD_NUMBER
public static final int WIDTH_FIELD_NUMBER- See Also:
-
HEIGHT_FIELD_NUMBER
public static final int HEIGHT_FIELD_NUMBER- See Also:
-
FONT_FAMILY_FIELD_NUMBER
public static final int FONT_FAMILY_FIELD_NUMBER- See Also:
-
STYLESHEET_TYPE_FIELD_NUMBER
public static final int STYLESHEET_TYPE_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
Resource identifier from manifest
string id = 1 [json_name = "id"];- Specified by:
getIdin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Resource identifier from manifest
string id = 1 [json_name = "id"];- Specified by:
getIdBytesin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The bytes for id.
-
getHref
File path relative to OPF file location
string href = 2 [json_name = "href"];- Specified by:
getHrefin interfaceEpubEmbeddedResourceOrBuilder- 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 interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The bytes for href.
-
getMediaType
MIME type of the resource
string media_type = 3 [json_name = "mediaType"];- Specified by:
getMediaTypein interfaceEpubEmbeddedResourceOrBuilder- 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 interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The bytes for mediaType.
-
hasFileSize
public boolean hasFileSize()File size in bytes (if available)
optional int64 file_size = 4 [json_name = "fileSize"];- Specified by:
hasFileSizein interfaceEpubEmbeddedResourceOrBuilder- Returns:
- Whether the fileSize field is set.
-
getFileSize
public long getFileSize()File size in bytes (if available)
optional int64 file_size = 4 [json_name = "fileSize"];- Specified by:
getFileSizein interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The fileSize.
-
hasIsReferenced
public boolean hasIsReferenced()Whether this resource is referenced by content files
optional bool is_referenced = 5 [json_name = "isReferenced"];- Specified by:
hasIsReferencedin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- Whether the isReferenced field is set.
-
getIsReferenced
public boolean getIsReferenced()Whether this resource is referenced by content files
optional bool is_referenced = 5 [json_name = "isReferenced"];- Specified by:
getIsReferencedin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The isReferenced.
-
getPropertiesList
public com.google.protobuf.ProtocolStringList getPropertiesList()Properties associated with this resource
repeated string properties = 6 [json_name = "properties"];- Specified by:
getPropertiesListin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- A list containing the properties.
-
getPropertiesCount
public int getPropertiesCount()Properties associated with this resource
repeated string properties = 6 [json_name = "properties"];- Specified by:
getPropertiesCountin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The count of properties.
-
getProperties
Properties associated with this resource
repeated string properties = 6 [json_name = "properties"];- Specified by:
getPropertiesin interfaceEpubEmbeddedResourceOrBuilder- 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 resource
repeated string properties = 6 [json_name = "properties"];- Specified by:
getPropertiesBytesin interfaceEpubEmbeddedResourceOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the properties at the given index.
-
hasWidth
public boolean hasWidth()For images: width in pixels
optional int32 width = 7 [json_name = "width"];- Specified by:
hasWidthin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- Whether the width field is set.
-
getWidth
public int getWidth()For images: width in pixels
optional int32 width = 7 [json_name = "width"];- Specified by:
getWidthin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The width.
-
hasHeight
public boolean hasHeight()For images: height in pixels
optional int32 height = 8 [json_name = "height"];- Specified by:
hasHeightin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- Whether the height field is set.
-
getHeight
public int getHeight()For images: height in pixels
optional int32 height = 8 [json_name = "height"];- Specified by:
getHeightin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The height.
-
hasFontFamily
public boolean hasFontFamily()For fonts: font family name
optional string font_family = 9 [json_name = "fontFamily"];- Specified by:
hasFontFamilyin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- Whether the fontFamily field is set.
-
getFontFamily
For fonts: font family name
optional string font_family = 9 [json_name = "fontFamily"];- Specified by:
getFontFamilyin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The fontFamily.
-
getFontFamilyBytes
public com.google.protobuf.ByteString getFontFamilyBytes()For fonts: font family name
optional string font_family = 9 [json_name = "fontFamily"];- Specified by:
getFontFamilyBytesin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The bytes for fontFamily.
-
hasStylesheetType
public boolean hasStylesheetType()For stylesheets: whether it's a primary or alternate stylesheet
optional string stylesheet_type = 10 [json_name = "stylesheetType"];- Specified by:
hasStylesheetTypein interfaceEpubEmbeddedResourceOrBuilder- Returns:
- Whether the stylesheetType field is set.
-
getStylesheetType
For stylesheets: whether it's a primary or alternate stylesheet
optional string stylesheet_type = 10 [json_name = "stylesheetType"];- Specified by:
getStylesheetTypein interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The stylesheetType.
-
getStylesheetTypeBytes
public com.google.protobuf.ByteString getStylesheetTypeBytes()For stylesheets: whether it's a primary or alternate stylesheet
optional string stylesheet_type = 10 [json_name = "stylesheetType"];- Specified by:
getStylesheetTypeBytesin interfaceEpubEmbeddedResourceOrBuilder- Returns:
- The bytes for stylesheetType.
-
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 EpubEmbeddedResource parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EpubEmbeddedResource parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EpubEmbeddedResource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EpubEmbeddedResource parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EpubEmbeddedResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EpubEmbeddedResource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static EpubEmbeddedResource parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static EpubEmbeddedResource parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static EpubEmbeddedResource parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static EpubEmbeddedResource 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 EpubEmbeddedResource.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
-