Class EpubTocItem.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<EpubTocItem.Builder>
com.google.protobuf.GeneratedMessage.Builder<EpubTocItem.Builder>
ai.pipestream.parsed.data.epub.v1.EpubTocItem.Builder
- All Implemented Interfaces:
EpubTocItemOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
EpubTocItem
public static final class EpubTocItem.Builder
extends com.google.protobuf.GeneratedMessage.Builder<EpubTocItem.Builder>
implements EpubTocItemOrBuilder
Represents a Table of Contents entry Hierarchical structure for navigation and chunking boundariesProtobuf type
ai.pipestream.parsed.data.epub.v1.EpubTocItem-
Method Summary
Modifier and TypeMethodDescriptionaddAllChildren(Iterable<? extends EpubTocItem> values) Child TOC entries (for hierarchical structure)addChildren(int index, EpubTocItem value) Child TOC entries (for hierarchical structure)addChildren(int index, EpubTocItem.Builder builderForValue) Child TOC entries (for hierarchical structure)addChildren(EpubTocItem value) Child TOC entries (for hierarchical structure)addChildren(EpubTocItem.Builder builderForValue) Child TOC entries (for hierarchical structure)Child TOC entries (for hierarchical structure)addChildrenBuilder(int index) Child TOC entries (for hierarchical structure)build()clear()Child TOC entries (for hierarchical structure)Content item ID this TOC entry points toLink target (content file and optional fragment)Display text for this TOC entryHierarchical level (0 = top level, 1 = first sublevel, etc.)Position in the TOC ordergetChildren(int index) Child TOC entries (for hierarchical structure)getChildrenBuilder(int index) Child TOC entries (for hierarchical structure)Child TOC entries (for hierarchical structure)intChild TOC entries (for hierarchical structure)Child TOC entries (for hierarchical structure)getChildrenOrBuilder(int index) Child TOC entries (for hierarchical structure)List<? extends EpubTocItemOrBuilder> Child TOC entries (for hierarchical structure)Content item ID this TOC entry points tocom.google.protobuf.ByteStringContent item ID this TOC entry points tostatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHref()Link target (content file and optional fragment)com.google.protobuf.ByteStringLink target (content file and optional fragment)getLabel()Display text for this TOC entrycom.google.protobuf.ByteStringDisplay text for this TOC entryintgetLevel()Hierarchical level (0 = top level, 1 = first sublevel, etc.)intPosition in the TOC orderbooleanContent item ID this TOC entry points tobooleanhasHref()Link target (content file and optional fragment)protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(EpubTocItem other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeChildren(int index) Child TOC entries (for hierarchical structure)setChildren(int index, EpubTocItem value) Child TOC entries (for hierarchical structure)setChildren(int index, EpubTocItem.Builder builderForValue) Child TOC entries (for hierarchical structure)setContentSrc(String value) Content item ID this TOC entry points tosetContentSrcBytes(com.google.protobuf.ByteString value) Content item ID this TOC entry points toLink target (content file and optional fragment)setHrefBytes(com.google.protobuf.ByteString value) Link target (content file and optional fragment)Display text for this TOC entrysetLabelBytes(com.google.protobuf.ByteString value) Display text for this TOC entrysetLevel(int value) Hierarchical level (0 = top level, 1 = first sublevel, etc.)setPlayOrder(int value) Position in the TOC orderMethods 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<EpubTocItem.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<EpubTocItem.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<EpubTocItem.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<EpubTocItem.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EpubTocItem.Builder>
-
mergeFrom
public EpubTocItem.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<EpubTocItem.Builder>- Throws:
IOException
-
getLabel
Display text for this TOC entry
string label = 1 [json_name = "label"];- Specified by:
getLabelin interfaceEpubTocItemOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()Display text for this TOC entry
string label = 1 [json_name = "label"];- Specified by:
getLabelBytesin interfaceEpubTocItemOrBuilder- Returns:
- The bytes for label.
-
setLabel
Display text for this TOC entry
string label = 1 [json_name = "label"];- Parameters:
value- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
Display text for this TOC entry
string label = 1 [json_name = "label"];- Returns:
- This builder for chaining.
-
setLabelBytes
Display text for this TOC entry
string label = 1 [json_name = "label"];- Parameters:
value- The bytes for label to set.- Returns:
- This builder for chaining.
-
hasHref
public boolean hasHref()Link target (content file and optional fragment)
optional string href = 2 [json_name = "href"];- Specified by:
hasHrefin interfaceEpubTocItemOrBuilder- Returns:
- Whether the href field is set.
-
getHref
Link target (content file and optional fragment)
optional string href = 2 [json_name = "href"];- Specified by:
getHrefin interfaceEpubTocItemOrBuilder- Returns:
- The href.
-
getHrefBytes
public com.google.protobuf.ByteString getHrefBytes()Link target (content file and optional fragment)
optional string href = 2 [json_name = "href"];- Specified by:
getHrefBytesin interfaceEpubTocItemOrBuilder- Returns:
- The bytes for href.
-
setHref
Link target (content file and optional fragment)
optional string href = 2 [json_name = "href"];- Parameters:
value- The href to set.- Returns:
- This builder for chaining.
-
clearHref
Link target (content file and optional fragment)
optional string href = 2 [json_name = "href"];- Returns:
- This builder for chaining.
-
setHrefBytes
Link target (content file and optional fragment)
optional string href = 2 [json_name = "href"];- Parameters:
value- The bytes for href to set.- Returns:
- This builder for chaining.
-
getLevel
public int getLevel()Hierarchical level (0 = top level, 1 = first sublevel, etc.)
int32 level = 3 [json_name = "level"];- Specified by:
getLevelin interfaceEpubTocItemOrBuilder- Returns:
- The level.
-
setLevel
Hierarchical level (0 = top level, 1 = first sublevel, etc.)
int32 level = 3 [json_name = "level"];- Parameters:
value- The level to set.- Returns:
- This builder for chaining.
-
clearLevel
Hierarchical level (0 = top level, 1 = first sublevel, etc.)
int32 level = 3 [json_name = "level"];- Returns:
- This builder for chaining.
-
getPlayOrder
public int getPlayOrder()Position in the TOC order
int32 play_order = 4 [json_name = "playOrder"];- Specified by:
getPlayOrderin interfaceEpubTocItemOrBuilder- Returns:
- The playOrder.
-
setPlayOrder
Position in the TOC order
int32 play_order = 4 [json_name = "playOrder"];- Parameters:
value- The playOrder to set.- Returns:
- This builder for chaining.
-
clearPlayOrder
Position in the TOC order
int32 play_order = 4 [json_name = "playOrder"];- Returns:
- This builder for chaining.
-
getChildrenList
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];- Specified by:
getChildrenListin interfaceEpubTocItemOrBuilder
-
getChildrenCount
public int getChildrenCount()Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];- Specified by:
getChildrenCountin interfaceEpubTocItemOrBuilder
-
getChildren
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];- Specified by:
getChildrenin interfaceEpubTocItemOrBuilder
-
setChildren
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
setChildren
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
addChildren
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
addChildren
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
addChildren
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
addChildren
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
addAllChildren
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
clearChildren
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
removeChildren
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
getChildrenBuilder
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
getChildrenOrBuilder
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];- Specified by:
getChildrenOrBuilderin interfaceEpubTocItemOrBuilder
-
getChildrenOrBuilderList
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"];- Specified by:
getChildrenOrBuilderListin interfaceEpubTocItemOrBuilder
-
addChildrenBuilder
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
addChildrenBuilder
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
getChildrenBuilderList
Child TOC entries (for hierarchical structure)
repeated .ai.pipestream.parsed.data.epub.v1.EpubTocItem children = 5 [json_name = "children"]; -
hasContentSrc
public boolean hasContentSrc()Content item ID this TOC entry points to
optional string content_src = 6 [json_name = "contentSrc"];- Specified by:
hasContentSrcin interfaceEpubTocItemOrBuilder- Returns:
- Whether the contentSrc field is set.
-
getContentSrc
Content item ID this TOC entry points to
optional string content_src = 6 [json_name = "contentSrc"];- Specified by:
getContentSrcin interfaceEpubTocItemOrBuilder- Returns:
- The contentSrc.
-
getContentSrcBytes
public com.google.protobuf.ByteString getContentSrcBytes()Content item ID this TOC entry points to
optional string content_src = 6 [json_name = "contentSrc"];- Specified by:
getContentSrcBytesin interfaceEpubTocItemOrBuilder- Returns:
- The bytes for contentSrc.
-
setContentSrc
Content item ID this TOC entry points to
optional string content_src = 6 [json_name = "contentSrc"];- Parameters:
value- The contentSrc to set.- Returns:
- This builder for chaining.
-
clearContentSrc
Content item ID this TOC entry points to
optional string content_src = 6 [json_name = "contentSrc"];- Returns:
- This builder for chaining.
-
setContentSrcBytes
Content item ID this TOC entry points to
optional string content_src = 6 [json_name = "contentSrc"];- Parameters:
value- The bytes for contentSrc to set.- Returns:
- This builder for chaining.
-