Package ai.pipestream.data.v1
Class Section
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
ai.pipestream.data.v1.Section
- All Implemented Interfaces:
SectionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Section
extends com.google.protobuf.GeneratedMessage
implements SectionOrBuilder
Single section within a document outline. Represents a heading, chapter, section, or other structural element.Protobuf type
ai.pipestream.data.v1.Section- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSingle section within a document outline.Nested 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 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 SectionintgetDepth()Nesting depth where 0 is top level.static final com.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.com.google.protobuf.Parser<Section> intgetTags(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.inthashCode()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 booleanstatic Section.Builderstatic Section.BuildernewBuilder(Section prototype) protected Section.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SectionparseDelimitedFrom(InputStream input) static SectionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SectionparseFrom(byte[] data) static SectionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SectionparseFrom(com.google.protobuf.ByteString data) static SectionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SectionparseFrom(com.google.protobuf.CodedInputStream input) static SectionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SectionparseFrom(InputStream input) static SectionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SectionparseFrom(ByteBuffer data) static SectionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Section> 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:
-
TITLE_FIELD_NUMBER
public static final int TITLE_FIELD_NUMBER- See Also:
-
DEPTH_FIELD_NUMBER
public static final int DEPTH_FIELD_NUMBER- See Also:
-
HEADING_LEVEL_FIELD_NUMBER
public static final int HEADING_LEVEL_FIELD_NUMBER- See Also:
-
HREF_FIELD_NUMBER
public static final int HREF_FIELD_NUMBER- See Also:
-
PARENT_ID_FIELD_NUMBER
public static final int PARENT_ID_FIELD_NUMBER- See Also:
-
ORDER_INDEX_FIELD_NUMBER
public static final int ORDER_INDEX_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
FONT_SIZE_REL_FIELD_NUMBER
public static final int FONT_SIZE_REL_FIELD_NUMBER- See Also:
-
PAGE_START_FIELD_NUMBER
public static final int PAGE_START_FIELD_NUMBER- See Also:
-
PAGE_END_FIELD_NUMBER
public static final int PAGE_END_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
-
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.
-
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.
-
getDepth
public int getDepth()Nesting depth where 0 is top level.
int32 depth = 3 [json_name = "depth"];- Specified by:
getDepthin interfaceSectionOrBuilder- Returns:
- The depth.
-
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.
-
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.
-
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.
-
getOrderIndex
public int getOrderIndex()Preorder position index within the document.
int32 order_index = 7 [json_name = "orderIndex"];- Specified by:
getOrderIndexin interfaceSectionOrBuilder- Returns:
- The orderIndex.
-
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.
-
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.
-
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.
-
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.
-
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 Section parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Section parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Section parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Section parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Section parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Section parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Section parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Section parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Section 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 Section.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
-