Class EpubEmbeddedResource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<EpubEmbeddedResource.Builder>
com.google.protobuf.GeneratedMessage.Builder<EpubEmbeddedResource.Builder>
ai.pipestream.parsed.data.epub.v1.EpubEmbeddedResource.Builder
- All Implemented Interfaces:
EpubEmbeddedResourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
EpubEmbeddedResource
public static final class EpubEmbeddedResource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<EpubEmbeddedResource.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllProperties(Iterable<String> values) Properties associated with this resourceaddProperties(String value) Properties associated with this resourceaddPropertiesBytes(com.google.protobuf.ByteString value) Properties associated with this resourcebuild()clear()File size in bytes (if available)For fonts: font family nameFor images: height in pixelsFile path relative to OPF file locationclearId()Resource identifier from manifestWhether this resource is referenced by content filesMIME type of the resourceProperties associated with this resourceFor stylesheets: whether it's a primary or alternate stylesheetFor images: width in pixelsstatic final com.google.protobuf.Descriptors.Descriptorcom.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 resourcegetProperties(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 resourceFor 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 namebooleanFor 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 booleanmergeFrom(EpubEmbeddedResource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setFileSize(long value) File size in bytes (if available)setFontFamily(String value) For fonts: font family namesetFontFamilyBytes(com.google.protobuf.ByteString value) For fonts: font family namesetHeight(int value) For images: height in pixelsFile path relative to OPF file locationsetHrefBytes(com.google.protobuf.ByteString value) File path relative to OPF file locationResource identifier from manifestsetIdBytes(com.google.protobuf.ByteString value) Resource identifier from manifestsetIsReferenced(boolean value) Whether this resource is referenced by content filessetMediaType(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 resourcesetStylesheetType(String value) For stylesheets: whether it's a primary or alternate stylesheetsetStylesheetTypeBytes(com.google.protobuf.ByteString value) For stylesheets: whether it's a primary or alternate stylesheetsetWidth(int value) For images: width in pixelsMethods 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<EpubEmbeddedResource.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<EpubEmbeddedResource.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<EpubEmbeddedResource.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<EpubEmbeddedResource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EpubEmbeddedResource.Builder>
-
mergeFrom
public EpubEmbeddedResource.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<EpubEmbeddedResource.Builder>- Throws:
IOException
-
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.
-
setId
Resource identifier from manifest
string id = 1 [json_name = "id"];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Resource identifier from manifest
string id = 1 [json_name = "id"];- Returns:
- This builder for chaining.
-
setIdBytes
Resource identifier 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 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.
-
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 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.
-
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.
-
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.
-
setFileSize
File size in bytes (if available)
optional int64 file_size = 4 [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 = 4 [json_name = "fileSize"];- Returns:
- This builder for chaining.
-
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.
-
setIsReferenced
Whether this resource is referenced by content files
optional bool is_referenced = 5 [json_name = "isReferenced"];- Parameters:
value- The isReferenced to set.- Returns:
- This builder for chaining.
-
clearIsReferenced
Whether this resource is referenced by content files
optional bool is_referenced = 5 [json_name = "isReferenced"];- Returns:
- This builder for chaining.
-
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.
-
setProperties
Properties associated with this resource
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 resource
repeated string properties = 6 [json_name = "properties"];- Parameters:
value- The properties to add.- Returns:
- This builder for chaining.
-
addAllProperties
Properties associated with this resource
repeated string properties = 6 [json_name = "properties"];- Parameters:
values- The properties to add.- Returns:
- This builder for chaining.
-
clearProperties
Properties associated with this resource
repeated string properties = 6 [json_name = "properties"];- Returns:
- This builder for chaining.
-
addPropertiesBytes
Properties associated with this resource
repeated string properties = 6 [json_name = "properties"];- Parameters:
value- The bytes of the properties to add.- Returns:
- This builder for chaining.
-
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.
-
setWidth
For images: width in pixels
optional int32 width = 7 [json_name = "width"];- Parameters:
value- The width to set.- Returns:
- This builder for chaining.
-
clearWidth
For images: width in pixels
optional int32 width = 7 [json_name = "width"];- Returns:
- This builder for chaining.
-
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.
-
setHeight
For images: height in pixels
optional int32 height = 8 [json_name = "height"];- Parameters:
value- The height to set.- Returns:
- This builder for chaining.
-
clearHeight
For images: height in pixels
optional int32 height = 8 [json_name = "height"];- Returns:
- This builder for chaining.
-
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.
-
setFontFamily
For fonts: font family name
optional string font_family = 9 [json_name = "fontFamily"];- Parameters:
value- The fontFamily to set.- Returns:
- This builder for chaining.
-
clearFontFamily
For fonts: font family name
optional string font_family = 9 [json_name = "fontFamily"];- Returns:
- This builder for chaining.
-
setFontFamilyBytes
For fonts: font family name
optional string font_family = 9 [json_name = "fontFamily"];- Parameters:
value- The bytes for fontFamily to set.- Returns:
- This builder for chaining.
-
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.
-
setStylesheetType
For stylesheets: whether it's a primary or alternate stylesheet
optional string stylesheet_type = 10 [json_name = "stylesheetType"];- Parameters:
value- The stylesheetType to set.- Returns:
- This builder for chaining.
-
clearStylesheetType
For stylesheets: whether it's a primary or alternate stylesheet
optional string stylesheet_type = 10 [json_name = "stylesheetType"];- Returns:
- This builder for chaining.
-
setStylesheetTypeBytes
For stylesheets: whether it's a primary or alternate stylesheet
optional string stylesheet_type = 10 [json_name = "stylesheetType"];- Parameters:
value- The bytes for stylesheetType to set.- Returns:
- This builder for chaining.
-