Package ai.pipestream.data.v1
Class Section.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Section.Builder>
com.google.protobuf.GeneratedMessage.Builder<Section.Builder>
ai.pipestream.data.v1.Section.Builder
- All Implemented Interfaces:
SectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
Section
public static final class Section.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Section.Builder>
implements SectionOrBuilder
Single section within a document outline. Represents a heading, chapter, section, or other structural element.Protobuf type
ai.pipestream.data.v1.Section-
Method Summary
Modifier and TypeMethodDescriptionaddAllTags(Iterable<String> values) Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").addTagsBytes(com.google.protobuf.ByteString value) Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").build()clear()Nesting depth where 0 is top level.Relative font size (0.0-1.0) if inferred from styling.Heading level (HTML h1=1, Markdown #=1, 0 if unknown).Relative link or fragment identifier if applicable.clearId()Stable identifier if present in source document.Preorder position index within the document.Ending page number if known (PDF/EPUB).Starting page number if known (PDF/EPUB).Parent section identifier for hierarchical navigation.Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").Section title or heading text.intgetDepth()Nesting depth where 0 is top level.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorfloatRelative font size (0.0-1.0) if inferred from styling.intHeading level (HTML h1=1, Markdown #=1, 0 if unknown).getHref()Relative link or fragment identifier if applicable.com.google.protobuf.ByteStringRelative link or fragment identifier if applicable.getId()Stable identifier if present in source document.com.google.protobuf.ByteStringStable identifier if present in source document.intPreorder position index within the document.intEnding page number if known (PDF/EPUB).intStarting page number if known (PDF/EPUB).Parent section identifier for hierarchical navigation.com.google.protobuf.ByteStringParent section identifier for hierarchical navigation.getTags(int index) Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").com.google.protobuf.ByteStringgetTagsBytes(int index) Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").intClassification tags (e.g., "chapter", "appendix", "figure", "table", "nav").com.google.protobuf.ProtocolStringListClassification tags (e.g., "chapter", "appendix", "figure", "table", "nav").getTitle()Section title or heading text.com.google.protobuf.ByteStringSection title or heading text.booleanRelative font size (0.0-1.0) if inferred from styling.booleanhasHref()Relative link or fragment identifier if applicable.booleanhasId()Stable identifier if present in source document.booleanEnding page number if known (PDF/EPUB).booleanStarting page number if known (PDF/EPUB).booleanParent section identifier for hierarchical navigation.booleanhasTitle()Section title or heading text.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDepth(int value) Nesting depth where 0 is top level.setFontSizeRel(float value) Relative font size (0.0-1.0) if inferred from styling.setHeadingLevel(int value) Heading level (HTML h1=1, Markdown #=1, 0 if unknown).Relative link or fragment identifier if applicable.setHrefBytes(com.google.protobuf.ByteString value) Relative link or fragment identifier if applicable.Stable identifier if present in source document.setIdBytes(com.google.protobuf.ByteString value) Stable identifier if present in source document.setOrderIndex(int value) Preorder position index within the document.setPageEnd(int value) Ending page number if known (PDF/EPUB).setPageStart(int value) Starting page number if known (PDF/EPUB).setParentId(String value) Parent section identifier for hierarchical navigation.setParentIdBytes(com.google.protobuf.ByteString value) Parent section identifier for hierarchical navigation.Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").Section title or heading text.setTitleBytes(com.google.protobuf.ByteString value) Section title or heading text.Methods 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<Section.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<Section.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<Section.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<Section.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Section.Builder>
-
mergeFrom
public Section.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<Section.Builder>- Throws:
IOException
-
hasId
public boolean hasId()Stable identifier if present in source document.
optional string id = 1 [json_name = "id"];- Specified by:
hasIdin interfaceSectionOrBuilder- Returns:
- Whether the id field is set.
-
getId
Stable identifier if present in source document.
optional string id = 1 [json_name = "id"];- Specified by:
getIdin interfaceSectionOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Stable identifier if present in source document.
optional string id = 1 [json_name = "id"];- Specified by:
getIdBytesin interfaceSectionOrBuilder- Returns:
- The bytes for id.
-
setId
Stable identifier if present in source document.
optional string id = 1 [json_name = "id"];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Stable identifier if present in source document.
optional string id = 1 [json_name = "id"];- Returns:
- This builder for chaining.
-
setIdBytes
Stable identifier if present in source document.
optional string id = 1 [json_name = "id"];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasTitle
public boolean hasTitle()Section title or heading text.
optional string title = 2 [json_name = "title"];- Specified by:
hasTitlein interfaceSectionOrBuilder- Returns:
- Whether the title field is set.
-
getTitle
Section title or heading text.
optional string title = 2 [json_name = "title"];- Specified by:
getTitlein interfaceSectionOrBuilder- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()Section title or heading text.
optional string title = 2 [json_name = "title"];- Specified by:
getTitleBytesin interfaceSectionOrBuilder- Returns:
- The bytes for title.
-
setTitle
Section title or heading text.
optional string title = 2 [json_name = "title"];- Parameters:
value- The title to set.- Returns:
- This builder for chaining.
-
clearTitle
Section title or heading text.
optional string title = 2 [json_name = "title"];- Returns:
- This builder for chaining.
-
setTitleBytes
Section title or heading text.
optional string title = 2 [json_name = "title"];- Parameters:
value- The bytes for title to set.- Returns:
- This builder for chaining.
-
getDepth
public int getDepth()Nesting depth where 0 is top level.
int32 depth = 3 [json_name = "depth"];- Specified by:
getDepthin interfaceSectionOrBuilder- Returns:
- The depth.
-
setDepth
Nesting depth where 0 is top level.
int32 depth = 3 [json_name = "depth"];- Parameters:
value- The depth to set.- Returns:
- This builder for chaining.
-
clearDepth
Nesting depth where 0 is top level.
int32 depth = 3 [json_name = "depth"];- Returns:
- This builder for chaining.
-
getHeadingLevel
public int getHeadingLevel()Heading level (HTML h1=1, Markdown #=1, 0 if unknown).
int32 heading_level = 4 [json_name = "headingLevel"];- Specified by:
getHeadingLevelin interfaceSectionOrBuilder- Returns:
- The headingLevel.
-
setHeadingLevel
Heading level (HTML h1=1, Markdown #=1, 0 if unknown).
int32 heading_level = 4 [json_name = "headingLevel"];- Parameters:
value- The headingLevel to set.- Returns:
- This builder for chaining.
-
clearHeadingLevel
Heading level (HTML h1=1, Markdown #=1, 0 if unknown).
int32 heading_level = 4 [json_name = "headingLevel"];- Returns:
- This builder for chaining.
-
hasHref
public boolean hasHref()Relative link or fragment identifier if applicable.
optional string href = 5 [json_name = "href"];- Specified by:
hasHrefin interfaceSectionOrBuilder- Returns:
- Whether the href field is set.
-
getHref
Relative link or fragment identifier if applicable.
optional string href = 5 [json_name = "href"];- Specified by:
getHrefin interfaceSectionOrBuilder- Returns:
- The href.
-
getHrefBytes
public com.google.protobuf.ByteString getHrefBytes()Relative link or fragment identifier if applicable.
optional string href = 5 [json_name = "href"];- Specified by:
getHrefBytesin interfaceSectionOrBuilder- Returns:
- The bytes for href.
-
setHref
Relative link or fragment identifier if applicable.
optional string href = 5 [json_name = "href"];- Parameters:
value- The href to set.- Returns:
- This builder for chaining.
-
clearHref
Relative link or fragment identifier if applicable.
optional string href = 5 [json_name = "href"];- Returns:
- This builder for chaining.
-
setHrefBytes
Relative link or fragment identifier if applicable.
optional string href = 5 [json_name = "href"];- Parameters:
value- The bytes for href to set.- Returns:
- This builder for chaining.
-
hasParentId
public boolean hasParentId()Parent section identifier for hierarchical navigation.
optional string parent_id = 6 [json_name = "parentId"];- Specified by:
hasParentIdin interfaceSectionOrBuilder- Returns:
- Whether the parentId field is set.
-
getParentId
Parent section identifier for hierarchical navigation.
optional string parent_id = 6 [json_name = "parentId"];- Specified by:
getParentIdin interfaceSectionOrBuilder- Returns:
- The parentId.
-
getParentIdBytes
public com.google.protobuf.ByteString getParentIdBytes()Parent section identifier for hierarchical navigation.
optional string parent_id = 6 [json_name = "parentId"];- Specified by:
getParentIdBytesin interfaceSectionOrBuilder- Returns:
- The bytes for parentId.
-
setParentId
Parent section identifier for hierarchical navigation.
optional string parent_id = 6 [json_name = "parentId"];- Parameters:
value- The parentId to set.- Returns:
- This builder for chaining.
-
clearParentId
Parent section identifier for hierarchical navigation.
optional string parent_id = 6 [json_name = "parentId"];- Returns:
- This builder for chaining.
-
setParentIdBytes
Parent section identifier for hierarchical navigation.
optional string parent_id = 6 [json_name = "parentId"];- Parameters:
value- The bytes for parentId to set.- Returns:
- This builder for chaining.
-
getOrderIndex
public int getOrderIndex()Preorder position index within the document.
int32 order_index = 7 [json_name = "orderIndex"];- Specified by:
getOrderIndexin interfaceSectionOrBuilder- Returns:
- The orderIndex.
-
setOrderIndex
Preorder position index within the document.
int32 order_index = 7 [json_name = "orderIndex"];- Parameters:
value- The orderIndex to set.- Returns:
- This builder for chaining.
-
clearOrderIndex
Preorder position index within the document.
int32 order_index = 7 [json_name = "orderIndex"];- Returns:
- This builder for chaining.
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Specified by:
getTagsListin interfaceSectionOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Specified by:
getTagsCountin interfaceSectionOrBuilder- Returns:
- The count of tags.
-
getTags
Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Specified by:
getTagsin interfaceSectionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index) Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Specified by:
getTagsBytesin interfaceSectionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
setTags
Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Parameters:
index- The index to set the value at.value- The tags to set.- Returns:
- This builder for chaining.
-
addTags
Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Parameters:
value- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Parameters:
values- The tags to add.- Returns:
- This builder for chaining.
-
clearTags
Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Returns:
- This builder for chaining.
-
addTagsBytes
Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Parameters:
value- The bytes of the tags to add.- Returns:
- This builder for chaining.
-
hasFontSizeRel
public boolean hasFontSizeRel()Relative font size (0.0-1.0) if inferred from styling.
optional float font_size_rel = 9 [json_name = "fontSizeRel"];- Specified by:
hasFontSizeRelin interfaceSectionOrBuilder- Returns:
- Whether the fontSizeRel field is set.
-
getFontSizeRel
public float getFontSizeRel()Relative font size (0.0-1.0) if inferred from styling.
optional float font_size_rel = 9 [json_name = "fontSizeRel"];- Specified by:
getFontSizeRelin interfaceSectionOrBuilder- Returns:
- The fontSizeRel.
-
setFontSizeRel
Relative font size (0.0-1.0) if inferred from styling.
optional float font_size_rel = 9 [json_name = "fontSizeRel"];- Parameters:
value- The fontSizeRel to set.- Returns:
- This builder for chaining.
-
clearFontSizeRel
Relative font size (0.0-1.0) if inferred from styling.
optional float font_size_rel = 9 [json_name = "fontSizeRel"];- Returns:
- This builder for chaining.
-
hasPageStart
public boolean hasPageStart()Starting page number if known (PDF/EPUB).
optional int32 page_start = 10 [json_name = "pageStart"];- Specified by:
hasPageStartin interfaceSectionOrBuilder- Returns:
- Whether the pageStart field is set.
-
getPageStart
public int getPageStart()Starting page number if known (PDF/EPUB).
optional int32 page_start = 10 [json_name = "pageStart"];- Specified by:
getPageStartin interfaceSectionOrBuilder- Returns:
- The pageStart.
-
setPageStart
Starting page number if known (PDF/EPUB).
optional int32 page_start = 10 [json_name = "pageStart"];- Parameters:
value- The pageStart to set.- Returns:
- This builder for chaining.
-
clearPageStart
Starting page number if known (PDF/EPUB).
optional int32 page_start = 10 [json_name = "pageStart"];- Returns:
- This builder for chaining.
-
hasPageEnd
public boolean hasPageEnd()Ending page number if known (PDF/EPUB).
optional int32 page_end = 11 [json_name = "pageEnd"];- Specified by:
hasPageEndin interfaceSectionOrBuilder- Returns:
- Whether the pageEnd field is set.
-
getPageEnd
public int getPageEnd()Ending page number if known (PDF/EPUB).
optional int32 page_end = 11 [json_name = "pageEnd"];- Specified by:
getPageEndin interfaceSectionOrBuilder- Returns:
- The pageEnd.
-
setPageEnd
Ending page number if known (PDF/EPUB).
optional int32 page_end = 11 [json_name = "pageEnd"];- Parameters:
value- The pageEnd to set.- Returns:
- This builder for chaining.
-
clearPageEnd
Ending page number if known (PDF/EPUB).
optional int32 page_end = 11 [json_name = "pageEnd"];- Returns:
- This builder for chaining.
-