Package ai.pipestream.data.v1
Interface SectionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Section,Section.Builder
@Generated
public interface SectionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintgetDepth()Nesting depth where 0 is top level.floatRelative 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").Classification 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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasId
boolean hasId()Stable identifier if present in source document.
optional string id = 1 [json_name = "id"];- Returns:
- Whether the id field is set.
-
getId
String getId()Stable identifier if present in source document.
optional string id = 1 [json_name = "id"];- Returns:
- The id.
-
getIdBytes
com.google.protobuf.ByteString getIdBytes()Stable identifier if present in source document.
optional string id = 1 [json_name = "id"];- Returns:
- The bytes for id.
-
hasTitle
boolean hasTitle()Section title or heading text.
optional string title = 2 [json_name = "title"];- Returns:
- Whether the title field is set.
-
getTitle
String getTitle()Section title or heading text.
optional string title = 2 [json_name = "title"];- Returns:
- The title.
-
getTitleBytes
com.google.protobuf.ByteString getTitleBytes()Section title or heading text.
optional string title = 2 [json_name = "title"];- Returns:
- The bytes for title.
-
getDepth
int getDepth()Nesting depth where 0 is top level.
int32 depth = 3 [json_name = "depth"];- Returns:
- The depth.
-
getHeadingLevel
int getHeadingLevel()Heading level (HTML h1=1, Markdown #=1, 0 if unknown).
int32 heading_level = 4 [json_name = "headingLevel"];- Returns:
- The headingLevel.
-
hasHref
boolean hasHref()Relative link or fragment identifier if applicable.
optional string href = 5 [json_name = "href"];- Returns:
- Whether the href field is set.
-
getHref
String getHref()Relative link or fragment identifier if applicable.
optional string href = 5 [json_name = "href"];- Returns:
- The href.
-
getHrefBytes
com.google.protobuf.ByteString getHrefBytes()Relative link or fragment identifier if applicable.
optional string href = 5 [json_name = "href"];- Returns:
- The bytes for href.
-
hasParentId
boolean hasParentId()Parent section identifier for hierarchical navigation.
optional string parent_id = 6 [json_name = "parentId"];- Returns:
- Whether the parentId field is set.
-
getParentId
String getParentId()Parent section identifier for hierarchical navigation.
optional string parent_id = 6 [json_name = "parentId"];- Returns:
- The parentId.
-
getParentIdBytes
com.google.protobuf.ByteString getParentIdBytes()Parent section identifier for hierarchical navigation.
optional string parent_id = 6 [json_name = "parentId"];- Returns:
- The bytes for parentId.
-
getOrderIndex
int getOrderIndex()Preorder position index within the document.
int32 order_index = 7 [json_name = "orderIndex"];- Returns:
- The orderIndex.
-
getTagsList
Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Returns:
- A list containing the tags.
-
getTagsCount
int getTagsCount()Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Returns:
- The count of tags.
-
getTags
Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
com.google.protobuf.ByteString getTagsBytes(int index) Classification tags (e.g., "chapter", "appendix", "figure", "table", "nav").
repeated string tags = 8 [json_name = "tags"];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
hasFontSizeRel
boolean hasFontSizeRel()Relative font size (0.0-1.0) if inferred from styling.
optional float font_size_rel = 9 [json_name = "fontSizeRel"];- Returns:
- Whether the fontSizeRel field is set.
-
getFontSizeRel
float getFontSizeRel()Relative font size (0.0-1.0) if inferred from styling.
optional float font_size_rel = 9 [json_name = "fontSizeRel"];- Returns:
- The fontSizeRel.
-
hasPageStart
boolean hasPageStart()Starting page number if known (PDF/EPUB).
optional int32 page_start = 10 [json_name = "pageStart"];- Returns:
- Whether the pageStart field is set.
-
getPageStart
int getPageStart()Starting page number if known (PDF/EPUB).
optional int32 page_start = 10 [json_name = "pageStart"];- Returns:
- The pageStart.
-
hasPageEnd
boolean hasPageEnd()Ending page number if known (PDF/EPUB).
optional int32 page_end = 11 [json_name = "pageEnd"];- Returns:
- Whether the pageEnd field is set.
-
getPageEnd
int getPageEnd()Ending page number if known (PDF/EPUB).
optional int32 page_end = 11 [json_name = "pageEnd"];- Returns:
- The pageEnd.
-